]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/newlib-tumbl.git/blob - newlib/ChangeLog
* libc/include/assert.h (static_assert): Define.
[fpga/lx-cpu1/newlib-tumbl.git] / newlib / ChangeLog
1 2012-10-16  Aurelien Jacobs  <aurel@gnuage.org>
2
3         * libc/include/assert.h (static_assert): Define.
4
5 2012-10-15  Corinna Vinschen  <vinschen@redhat.com>
6
7         * libc/include/sys/features.h (__GNUC_PREREQ): Define.  Use
8         throughout in place of explicit GNUC version checks.
9         * libc/include/_ansi.h (_NOINLINE): Define.
10         (_NOINLINE_STATIC): Define.
11         * libc/stdio/vfprintf.c (__sbprintf): Define _NOINLINE_STATIC.
12
13 2012-10-09  Peter Rosin  <peda@lysator.liu.se>
14
15         * libc/posix/wordfree.c (wordfree): The wrong words are freed
16         when WRDE_DOOFFS is in use. Restructure the code so that the memory
17         needed to be freed is instead kept in an internal linked list...
18         * libc/posix/wordexp2.h: ...as defined here...
19         * libc/posix/wordexp.c (wordexp): ...and build this internal
20         linked list here, avoiding wasteful strdup calls in the process.
21
22 2012-10-09  Peter Rosin  <peda@lysator.liu.se>
23
24         * libc/posix/wordexp.c (wordexp): Return WRDE_NOSPACE on resource
25         allocation failure. Cleanup leftover resources when failing.
26
27 2012-10-09  Peter Rosin  <peda@lysator.liu.se>
28
29         * libc/posix/wordexp.c (wordexp): Handle expanded words longer
30         than 500 bytes.
31
32 2012-10-09  Peter Rosin  <peda@lysator.liu.se>
33
34         * libc/posix/wordexp.c (wordexp): Don't leak file streams.
35
36 2012-10-03  DJ Delorie  <dj@redhat.com>
37
38         * libc/machine/rl78/setjmp.S: Convert from CPP macros to GAS
39         macros, to avoid dependence on the line separation character.
40
41 2012-10-01  DJ Delorie  <dj@redhat.com>
42
43         * libc/sys/sysnecv850/sbrk.c (_sbrk): Change heap_start to be an
44         array of undefined size, to avoid problems when compiled with
45         -msda=4.
46
47 2012-10-01  Jeff Johnston  <jjohnstn@redhat.com>
48
49         * README: replace sources.redhat.com with sourceware.org.
50         * HOWTO: Ditto.
51
52 2012-09-26  Ian Bolton  <ian.bolton@arm.com>
53         Jim MacArthur  <jim.macarthur@arm.com>
54         Marcus Shawcroft  <marcus.shawcroft@arm.com>
55         Nigel Stephens  <nigel.stephens@arm.com>
56         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
57         Richard Earnshaw  <rearnsha@arm.com>
58         Sofiane Naci  <sofiane.naci@arm.com>
59         Tejas Belagod  <tejas.belagod@arm.com>
60         Yufeng Zhang  <yufeng.zhang@arm.com>
61
62         * configure.host: Add AArch64.
63         * libc/include/machine/ieeefp.h: Add AArch64.
64         * libc/include/machine/setjmp.h: Add AArch64.
65         * libc/include/machine/time.h: Add AArch64.
66         * libc/include/sys/config.h: Add AArch64.
67         * libc/machine/aarch64/Makefile.am: New file.
68         * libc/machine/aarch64/Makefile.in: Generated.
69         * libc/machine/aarch64/aclocal.m4: Generated.
70         * libc/machine/aarch64/configure: Generated.
71         * libc/machine/aarch64/configure.in: New file.
72         * libc/machine/aarch64/setjmp.S: New file.
73         * libc/machine/configure.in: Add AArch64.
74         * libc/machine/configure: Re-generated.
75         * libm/machine/aarch64/Makefile.am: New file.
76         * libm/machine/aarch64/Makefile.in: Generated.
77         * libm/machine/aarch64/aclocal.m4: Generated.
78         * libm/machine/aarch64/configure: Generated.
79         * libm/machine/aarch64/configure.in: New file.
80         * libm/machine/aarch64/s_ceil.c: New file.
81         * libm/machine/aarch64/s_floor.c: New file.
82         * libm/machine/aarch64/s_fma.c: New file.
83         * libm/machine/aarch64/s_fmax.c: New file.
84         * libm/machine/aarch64/s_fmin.c: New file.
85         * libm/machine/aarch64/s_llrint.c: New file.
86         * libm/machine/aarch64/s_llround.c: New file.
87         * libm/machine/aarch64/s_lrint.c: New file.
88         * libm/machine/aarch64/s_lround.c: New file.
89         * libm/machine/aarch64/s_nearbyint.c: New file.
90         * libm/machine/aarch64/s_rint.c: New file.
91         * libm/machine/aarch64/s_round.c: New file.
92         * libm/machine/aarch64/s_trunc.c: New file.
93         * libm/machine/aarch64/sf_ceil.c: New file.
94         * libm/machine/aarch64/sf_floor.c: New file.
95         * libm/machine/aarch64/sf_fma.c: New file.
96         * libm/machine/aarch64/sf_fmax.c: New file.
97         * libm/machine/aarch64/sf_fmin.c: New file.
98         * libm/machine/aarch64/sf_llrint.c: New file.
99         * libm/machine/aarch64/sf_llround.c: New file.
100         * libm/machine/aarch64/sf_lrint.c: New file.
101         * libm/machine/aarch64/sf_lround.c: New file.
102         * libm/machine/aarch64/sf_nearbyint.c: New file.
103         * libm/machine/aarch64/sf_rint.c: New file.
104         * libm/machine/aarch64/sf_round.c: New file.
105         * libm/machine/aarch64/sf_trunc.c: New file.
106         * libm/machine/configure.in: Add AArch64.
107         * libm/machine/configure: Re-generated.
108
109 2012-09-26  Michael Hope  <michael.hope@linaro.org>
110
111         * doc/makedoc.c (dup_): Rename to avoid colliding with dup(2). 
112
113 2012-09-13  Anthony Green  <green@moxielogic.com>
114
115         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Add bi-endian
116         support for moxie.
117
118 2012-08-23  Christopher Faylor  <me.cygwin2012@cgf.cx>
119
120         * libc/stdio/flags.c (__sflags): Guard against using O_BINARY on
121         systems which do not provide it.
122
123 2012-08-21  Christopher Faylor  <me.cygwin2012@cgf.cx>
124
125         * libc/stdio/flags.c (__sflags): Rewrite recognition of extended mode
126         flags to just loop over more allowed flags.  Support glibc 'e' flag on
127         systems defining _GLIBC_EXTENSION.  Support C11 'x' flag.
128
129 2012-08-10  Corinna Vinschen  <vinschen@redhat.com>
130
131         * libc/stdlib/btowc.c (btowc): Cast to avoid compiler warning.
132         * libc/search/hash_buf.c (__get_buf): Initialize local vars to avoid
133         compiler warning.
134         * libc/stdio/fgets.c (_fgets_r): Ditto.
135         * libc/time/strftime.c (strftime): Ditto.
136
137 2012-08-10  Corinna Vinschen  <vinschen@redhat.com>
138
139         * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Fix guard around state to
140         allow usage in !FLOATING_POINT && _WANT_IO_C99_FORMATS case.
141
142 2012-08-08  Eric Blake  <eblake@redhat.com>
143
144         * libc/posix/engine.c(dissect): Guard diagnostic pragma for right
145         versions of GCC only.
146         * libc/string/strcasestr.c: Ditto.
147
148 2012-08-08  Corinna Vinschen  <vinschen@redhat.com>
149
150         Throughout, run newlib with -Wall -Werror option and fix bugs and
151         compiler warnings found this way.
152
153         * libc/stdio/freopen.c (_freopen_r): Fix bug setting _flags.
154
155         * libc/include/stdio.h (_rename): Define when building newlib.
156         * libc/include/sys/signal.h (_kill): Ditto.
157         * libc/include/sys/stat.h (_mkdir): Ditto.
158         * libc/include/sys/time.h (_gettimeofday): Ditto.
159         * libc/include/sys/times.h (_times): Ditto.
160         * libc/include/sys/wait.h (_wait): Ditto.
161         * libc/locale/lmessages.c (empty): Don't define for Cygwin.
162         * libc/locale/lmonetary.c (cnv): Ditto.
163         * libc/locale/nl_langinfo.c (nl_langinfo): Ditto for variable s.
164         * libc/posix/collate.c: Throughout cast to avoid compiler warning.
165         * libc/posix/engine.c (matcher): Initialize dp to avoid compiler
166         warning.
167         (dissect): Deliberately silence gcc compiler warning.  Add comment to
168         explain why.
169         * libc/posix/glob.c: Disable on Cygwin.  Explain why.
170         * libc/posix/regcomp.c: Fix "uninitialized" compiler warnings.
171         * libc/posix/wordexp.c (wordexp): Remove num_bytes variable since result
172         is never used.
173         * libc/posix/popen.c (popen): Ditto for variable last.
174         * libc/reent/mkdirr.c: Include sys/stat.h.
175         * libc/reent/renamer.c: Include stdio.h.
176         * libc/search/hash.c:  Throughout use underscored variants of the stat
177         function family.
178         (init_hash): Add missing definition for the __USE_INTERNAL_STAT64 case.
179         * libc/search/hash_bigkey.c (__big_insert): Add parenthesis to avoid
180         compiler warning.
181         * libc/search/hash_page.c (overflow_page): Initalize freep to NULL to
182         avoid compiler warning.
183         * libc/stdio/asiprintf.c (_asiprintf_r): Cast unsigned char * to char *
184         to avoid compiler warning.
185         (asiprintf): Ditto.
186         * libc/stdio/asprintf.c (_asprintf_r): Ditto.
187         (asprintf): Ditto.
188         * libc/stdio/vasiprintf.c (_vasiprintf_r): Ditto.
189         * libc/stdio/vasprintf.c (_vasprintf_r): Ditto.
190         * libc/stdio/mktemp.c (_gettemp): Cast to unsigned char in call to
191         isdigit to avoid compiler warning.
192         * libc/stdio/vfprintf.c (_VFPRINTF_R): Initialize variables used for
193         grouping to avoid compiler warning.  Only define and set nseps and
194         nrepeats if they are really used.
195         * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Ditto.  Only define state if
196         it is really used.
197         * libc/stdio/vfscanf.c (u_char): Revert to be defined as unsigned char.
198         (__SVFSCANF_R): Cast fmt in call to __mbtowc.
199         * libc/stdlib/mbtowc_r.c (JIS_state_table): Disable when building
200         Cygwin.
201         (JIS_action_table): Ditto.
202         * libc/stdlib/wctomb_r.c (__utf8_wctomb): Add parenthesis to avoid
203         compiler warning.
204         * libc/string/strcasestr.c: Deliberately silence gcc compiler warning.
205         Add comment to explain why.
206         * libc/time/strptime.c (strptime): Cast to unsigned char in calls to
207         isspace to avoid compiler warning.
208         * libm/math/e_atan2.c (__ieee754_atan2): Add parenthesis to avoid
209         compiler warning.
210         * libm/math/e_exp.c (__ieee754_exp): Initialize k to 0 to avoid
211         compiler warning.  Drop setting it to 0 later.
212         * libm/math/ef_exp.c (__ieee754_expf): Ditto.
213         * libm/math/e_pow.c (__ieee754_pow): Add braces to avoid compiler
214         warning.
215         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
216         * libm/math/er_lgamma.c (__ieee754_lgamma_r): Initialize nadj to 0 to
217         avoid compiler warning.
218         * libm/math/erf_lgamma.c (__ieee754_lgammaf_r): Ditto.
219         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Ditto for variable z.
220         * libm/common/sf_round.c (roundf): Remove signbit variable since result
221         is never used.
222
223 2012-08-07  Corinna Vinschen  <vinschen@redhat.com>
224
225         * libc/stdlib/mprec.h (Storeinc): Add parenthesis to avoid compiler
226         warning.
227
228 2012-07-30  Kevin Buettner  <kevinb@redhat.com>
229
230         * libc/sys/sysnecv850/crt0.S (_start): Use v850e-specific
231         start up code for v850e2 and v850e2v3 too.
232
233 2012-07-20  Eric Blake  <eblake@redhat.com>
234
235         * libc/posix/readdir.c (readdir): Drop bogus attempt to catch
236         bogus pointers.
237
238 2012-07-18  Ralf Corsépius  <ralf.corsepius@rtems.org>
239
240         * libc/sys/rtems/machine/_types.h (_ssize_t): Use signed int for
241         __v850__, __851__.
242
243 2012-07-17  Ralf Corsépius  <ralf.corsepius@rtems.org>
244
245         * libc/search/hcreate_r.c (hdestroy_r): #ifdef 0 unused vars ie, idx.
246
247 2012-07-16  Ralf Corsépius  <ralf.corsepius@rtems.org>
248
249         * libc/posix/telldir.c: Conditionally build dd_hash_lock.
250
251 2012-07-13  Ralf Corsépius  <ralf.corsepius@rtems.org>
252
253         * libc/sys/rtems/machine/_types.h (_ssize_t): Add __ARM_EABI__,
254         __v850__, __851__.
255
256 2012-07-09  Corinna Vinschen  <vinschen@redhat.com>
257
258         * libc/stdio/fileno.c (fileno): Check if f is a valid stream.  If not,
259         return -1 and set errno to EBADF per POSIX.
260
261 2012-07-06  Corinna Vinschen  <vinschen@redhat.com>
262
263         Allow building of Cygwin using Mingw64 SDK headers:
264         * libc/include/sys/time.h: Drop _WINSOCK_H guard.  Just use
265         _TIMEVAL_DEFINED instead.
266         * libc/include/sys/types.h: Check for _WINSOCKAPI_ along with
267         _WINSOCK_H.
268         * libc/include/sys/unistd.h: Ditto.
269
270 2012-06-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
271
272         * doc/Makefile.am (makedoc): Use LDFLAGS_FOR_BUILD not LDFLAGS.
273         * doc/Makefile.in: Regenerate.
274
275 2012-06-26  Christopher Faylor  <me.newlib2012@cgf.cx>
276
277         * libc/include/sys/types.h: Don't use the same preprocessor guard for
278         time_t, timespec, and itimerspec.  Add a separate guard specifically
279         for timespec and always unconditionally define itimerspec.
280
281 2012-06-05  Corinna Vinschen  <vinschen@redhat.com>
282
283         * libc/stdio/findfp.c (__sinit): Avoid infinite recursion on
284         _REENT_SMALL targets.  Add comment to explain.
285
286 2012-05-31  Corinna Vinschen  <vinschen@redhat.com>
287
288         * libc/stdio/local.h (_newlib_sfp_lock_exit): Fix typo in non-pthread
289         version.
290
291 2012-05-30  Corinna Vinschen  <vinschen@redhat.com>
292
293         * libc/stdio/fgetws.c (_fgetws_r): Call _mbsnrtowcs_r rather than
294         _mbsrtowcs_r and restrict number of wide chars to n - 1.
295
296 2012-05-30  Corinna Vinschen  <vinschen@redhat.com>
297
298         * libc/stdio/local.h (_newlib_flockfile_start): New macro to
299         secure stream related critical section against thread cancellation.
300         (_newlib_flockfile_exit): Ditto.
301         (_newlib_sfp_lock_end): Ditto.
302         (_newlib_sfp_lock_start): Ditto for the list of streams.
303         (_newlib_sfp_lock_exit): Ditto.
304         (_newlib_sfp_lock_end): Ditto.
305         Use aforementioned macros in place of _flockfile/_funlockfile
306         and __sfp_lock_acquire/__sfp_lock_release throughout the code.
307         * libc/stdio/fclose.c: Explicitely disable and re-enable thread
308         cancellation.  Explain why.
309         * libc/stdio/freopen.c: Ditto.
310         * libc/stdio64/freopen64.c: Ditto.
311
312 2012-05-21  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
313
314         * libc/machine/cr16/sys/asm.h: Added some missing instructions
315         and removed few unsupported instructions of cr16 target.
316
317 2012-05-10  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
318
319         * libc/include/string.h (memrchr): Declare.
320         * libc/string/Makefile.am (ELIX_4_SOURCES): Add memrchr.c.
321         (CHEWOUT_FILES): Add memrchr.def.
322         * libc/string/Makefile.in: Regenerate.
323         * libc/string/memrchr.c: New file.
324
325 2012-05-10  Joel Sherrill <joel.sherrill@oarcorp.com>
326
327         * libc/sys/rtems/machine/_types.h: Add Microblaze.
328
329 2012-05-09  Joel Sherrill <joel.sherrill@oarcorp.com>
330
331         * libc/sys/rtems/crt0.c: Add stubs for access(), ftruncate(),
332         _getpid_r(), geteuid(), getgid, _getgid_r, getpid(), getppid(),
333         and _getpid_r().
334
335 2012-05-03  Greta Yorsh  <Greta.Yorsh@arm.com>
336
337         * testsuite/newlib.string/strcmp-1.c (LONG_TEST): New macro.
338         (MAX_BLOCK_SIZE): Use small value when LONG_TEST is not set.
339         (MAX_DIFF, MAX_LEN, MAX_ZEROS) Likewise.
340
341 2012-03-29  Corinna Vinschen  <vinschen@redhat.com>
342
343         * libc/locale/locale.c (__mb_cur_max): On Cygwin, align default value
344         with default UTF-8 charset.
345
346 2012-03-26  Corinna Vinschen  <vinschen@redhat.com>
347
348         * libc/stdio/findfp.c (__sinit): Set __sdidinit last.
349
350 2012-03-09  Jeff Johnston  <jjohnstn@redhat.com>
351
352         * libc/include/machine/setjmp-dj.h: Modify license to include
353         modification in clause as permitted by DJ Delorie.
354         * libc/machine/arm/access.c: Ditto.
355         * libc/machine/i386/setjmp.S: Ditto.
356         * libc/sys/h8300hms/sys/file.h: Ditto.
357         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
358         * libc/sys/sysmec/access.c: Ditto.
359         * libc/sys/sysnecv850/access.c: Ditto.
360
361 2012-03-02  Jeff Johnston  <jjohnstn@redhat.com>
362
363         * libc/posix/readdir_r.c: Fix return code when end of
364         directory is reached.
365
366 2012-02-23  Dan Egnor  <egnor@ofb.net>
367
368         * configure.host: Accept "arm*" host spec instead of just "arm".
369
370 2012-02-21  Jeremy Bennett  <jeremy.bennett@embecosm.com>
371             Alan Lehotsky  <apl@alum.mit.edu>
372             Joern Rennecke  <joern.rennecke@embecosm.com>
373
374         * configure.host: Add Epiphany support.
375         * libc/include/machine/ieeefp.h: Likewise.
376         * libc/include/machine/setjmp.h: Likewise.
377         * libc/machine/configure.in, libc/sys/configure.in: Likewise.
378         * libc/machine/configure, libc/sys/configure: Regenerate.
379         * libc/machine/epiphany, libc/sys/epiphany: New directories.
380         * NEWS: Mention addition of Epiphany.
381
382 2012-02-15  Christopher Faylor  <me.newlib2012@cgf.cx>
383
384         * configure.host: Fix typo: xdir_dir -> xdr_dir.
385
386 2012-02-09  Eric Blake  <eblake@redhat.com>
387
388         * libc/include/_ansi.h (_ELIDABLE_INLINE): Fix C99 mode.
389
390 2012-02-09  Sebastian Huber <sebastian.huber@embedded-brains.de>
391
392         * libc/sys/rtems/sys/utime.h: Include <sys/types.h> to provide a
393         definition of time_t.
394
395 2012-02-08  Greta Yorsh  <Greta.Yorsh@arm.com>
396
397         * libc/machine/arm/strcmp.S: New File.
398         * libc/machine/arm/strcmp.c: Deleted.
399         * libc/machine/arm/Makefile.am: Replaces strcmp.c with strcmp.S
400         * libc/machine/arm/Makefile.in: Regenerated.
401         * testsuite/newlib.string/strcmp-1.c: New file.
402
403 2012-02-07  Corinna Vinschen  <vinschen@redhat.com>
404
405         * libc/include/inttypes.h: Redefine pointer type macros.
406
407 2012-01-13  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
408
409         * libc/stdio/sprintf.c: Document 'm' conversion specifier.
410         * libc/stdio/swprintf.c: Ditto.
411         * libc/stdio/vfprintf.c (_VFPRINTF_R) [_GLIBC_EXTENSION]: Handle 'm'
412         conversion specifier.
413         * libc/stdio/vfwprintf.c (_VFWPRINTF_R) [_GLIBC_EXTENSION]: Ditto.
414
415 2012-01-12  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
416
417         * libc/include/tgmath.h: New header.
418
419 2012-01-09  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
420
421         * libc/include/sys/unistd.h [__CYGWIN__] (get_current_dir_name):
422         Declare.
423
424 2012-01-09  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
425
426         * libc/include/complex.h: Fix "/*" within comment warning.
427
428 2012-01-09  Corinna Vinschen  <vinschen@redhat.com>
429
430         * libc/include/process.h: Remove Cygwin-only header.
431
432 2012-01-03  Viachaslau Kulakouski  <Viachaslau.Kulakouski@oracle.com>
433
434         * libc/stdlib/__atexit.c: Refer to __atexit_lock instead of lock.
435
436 2011-12-20  Aleksandr Platonov  <pam@oktetlabs.ru>
437
438         * libc/stdio/fvwrite.c (__sfvwrite_r): Set __SMBF flag to avoid double 
439         free in fclose.  Enhance comment.
440
441 2011-12-19  Jeff Johnston  <jjohnstn@redhat.com>
442
443         * NEWS: Update with 1.20.0 info.
444         * README: Ditto.
445         * acinclude.m4: Change version number to 1.20.0.
446         * aclocal.m4: Regenerated.
447         * configure: Ditto.
448         * Makefile.in: Regenerated.
449         * doc/aclocal.m4: Ditto.
450         * doc/configure: Ditto.
451         * libc/*/aclocal.m4: Ditto.
452         * libc/*/configure: Ditto.
453         * libc/libc.texinfo: Ditto.
454         * libm/*/aclocal.m4: Ditto.
455         * libm/*/configure: Ditto.
456         * libm/libm.texinfo: Ditto.
457         * libc/sys/linux/shared.ld: Add VERS_1.20
458
459 2011-12-13  Richard Earnshaw  <rearnsha@arm.com>
460             Thomas Klein  <th.r.klein@web.de>
461
462         * libc/sys/arm/crt0.S: Manually set the target architecture
463         when compiling for Thumb1 on EABI targets.
464         Don't use SWI on M-profile cores.
465         Avoid v6-only Thumb-1 MOV instruction.
466
467 2011-12-12  Akio Idehara  <zbe64533@gmail.com>
468
469         * libc/time/strftime.c (get_era_info): Fix off-by-one error in month
470         calculation.
471
472 2011-12-06  Chris Johns  <chrisj@rtems.org>
473
474         * libc/iconv/Makefile.am (stmp-def): Use $(MAKE) rather than make.
475         * libc/iconv/Makefile.in: Regenerate.
476
477 2011-11-28  DJ Delorie  <dj@redhat.com>
478
479         * configure.host: Add rl78.
480         * libc/include/machine/ieeefp.h: Add rl78 support.
481         * libc/include/machine/setjmp.h: Add rl78 support.
482         * libc/machine/configure.in: Add rl78.
483         * libc/machine/rl78: New directory.
484         * MAINTAINERS (rl78): Add myself as RL78 maintainer.
485
486 2011-11-08  Corinna Vinschen  <vinschen@redhat.com>
487
488         * libc/iconv/ccs/Makefile.am: Add missing backslash.
489         * libc/iconv/ccs/Makefile.in: Regenerate.
490
491 2011-10-18  Dr David Alan Gilbert  <david.gilbert@linaro.org>
492
493         * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memchr-stub.c,
494         memchr.S.
495         * libc/machine/arm/arm_asm.h: Add ifdef to allow it to be included
496         in .S files.
497         * libc/machine/arm/memchr-stub.c: New file - just selects what to
498         compile.
499         * libc/machine/arm/memchr.S: New file - ARMv6t2/v7 version.
500
501         * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add strlen-armv7.S.
502         * libc/machine/arm/strlen-armv7.S: New file.
503         * libc/machine/arm/strlen.c: Add ifdef optimised code so it isn't
504         for v7 or 6t2.
505
506         * libc/machine/arm/Makefile.in: Regenerate.
507
508 2011-10-11  Steven Abner <pheonix@zoomtown.com>
509
510         * libc/time/mktm_r.c: (__tzcalc_limits) Fix Julian day calculation.
511         * libc/time/mktime.c: (mktime) Fix tm_yday, tm_mday updating when
512         timezone causes roll over.
513
514 2011-10-10  Nick Clifton  <nickc@redhat.com>
515
516         * libc/sys/arm/crt0.S: Synchronise with libgloss version.
517         * libc/sys/arm/arm.h: Imported from libgloss.
518
519 2011-10-04  Greta Yorsh  <Greta.Yorsh@arm.com>
520
521         * testsuite/newlib.string/memcpy-1.c: New test.
522
523 2011-10-04  Nick Clifton  <nickc@redhat.com>
524
525         * libc/machine/arm/memcpy.S: Fix unaligned access copying.
526
527 2011-09-29  Greta Yorsh  <Greta.Yorsh@arm.com>
528
529         * libc/machine/arm/memcpy.S: New file.  Contains a hand coded
530         memcpy function optimized for the cortex-a15.
531         * libc/machine/arm/memcpy-stub.c: New file.
532         * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memcpy-stub.c,
533         memcpy.S.
534         * libc/machine/arm/Makefile.in: Regenerate.
535
536 2011-09-08  Jeff Johnston  <jjohnstn@redhat.com>
537
538         * testsuite/lib/flags.exp: Add logic to add the
539         srcdir include directory to compile flags.
540
541 2011-08-26  Steven Abner  <pheonix@zoomtown.com>
542
543         * libc/time/mktm_r.c (_mktm_r): Fix previous fix.
544
545 2011-08-24  Corinna Vinschen  <vinschen@redhat.com>
546
547         * libc/time/mktm_r.c (_mktm_r): Fix computing tm_year.
548
549 2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>
550
551         * libc/stdlib/putenv_r.c: Use "strchr" instead of obsolete "index".
552         * libc/stdlib/setenv_r.c: Use "memcpy" instead of obsolete "bcopy".
553
554 2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>
555
556         * libc/misc/ffs.c, libc/string/bcmp.c, libc/string/bcopy.c,
557         libc/string/bzero.c, libc/string/index.c, libc/string/rindex.c,
558         libc/string/strcasecmp.c, libc/string/strncasecmp.c:
559         Let synopsis reference "#include <strings.h>".
560
561 2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>
562
563         * libc/posix/regexec.c: Define "nope" only #ifndef NDEBUG.
564         * libc/stdio/vfscanf.c: Define "state" only #ifdef _MB_CAPABLE.
565         * libc/string/wcwidth.c: Include <wctypes.h> for "iswprint" and
566         "iswcntrl".
567
568 2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>
569
570         * libc/sys/rtems/include/limits.h: Compute SSIZE_MAX based on
571         __SIZE_MAX__, __SIZEOF_SIZE_T__ and __CHAR_BIT__.
572
573 2011-08-22  Ralf Corsépius <ralf.corsepius@rtems.org>
574
575         * libc/string/index.c: Include <strings.h> for "index".
576         * libc/string/rindex.c: Include <strings.h> for "rindex".
577         * libc/string/strcasecmp.c: Include <strings.h> for "strcasecmp".
578         Don't include <string.h>.
579         * libc/string/strncasecmp.c: Include <strings.h> for "strncasecmp".
580         Don't include <string.h>.
581         * libc/string/bzero.c: Include <strings.h> for "bzero".
582         Don't include <string.h>
583         * libc/misc/ffs.c: Include <strings.h> for "ffs".
584         Don't include <_ansi.h>.
585
586 2011-08-19  Ralf Corsépius <ralf.corsepius@rtems.org>
587
588         * libc/sys/rtems/crt0.c: Rework RTEMS_STUB macro.
589         Include <unistd.h>.
590         Remove C++-style comments.
591         Remove hppa, a29k.
592         Add clock_gettime, gettimeofday, sched_yield.
593
594 2011-08-19  Ralf Corsépius <ralf.corsepius@rtems.org>
595
596         * libc/stdio/vasiprintf.c: Include "local.h" for "_svfiprintf_r".
597         * libc/stdio/vasprintf.c Include "local.h" for "_svfprintf_r".
598         * libc/stdio/vsiprintf.c: Include "local.h" for "_svfiprintf_r".
599         * libc/stdio/vsniprintf.c: Include "local.h" for "_svfiprintf_r".
600         * libc/stdio/vsnprintf.c: Include "local.h" for "_svfprintf_r"
601         * libc/stdio/vsprintf.c: Include "local.h" for "_svfprintf_r"
602
603 2011-08-19  Ralf Corsépius <ralf.corsepius@rtems.org>
604
605         * libc/string/bcmp.c: Include <strings.h> for "bcmp".
606         * libc/string/bcopy.c: Include <strings.h> for "bcopy".
607         * libc/string/strcasestr.c: Include <strings.h> for "strncasecmp".
608         * libc/time/strptime.c: Include <strings.h> for "strncasecmp".
609
610 2011-08-19  Corinna Vinschen  <vinschen@redhat.com>
611
612         * libc/include/process.h: Remove exec family function declarations.
613         Add comment.
614         * libc/include/sys/unistd.h (execlpe): Declare for Cygwin.
615
616 2011-08-19  Craig Howland  <howland@LGSInnovations.com>
617
618         * libc/time/mktime.c (validate_structure): Account for tm_mon possibly
619         being given as negative.
620         (mktime): Set tm_isdst=0 when !daylight.
621
622 2011-08-01  Sebastian Huber <sebastian.huber@embedded-brains.de>
623
624         * libc/include/sys/types.h: XML and RTEMS define
625         _UNIX98_THREAD_MUTEX_ATTRIBUTES and can use the standard
626         definitions. This avoids redefinition warnings.
627
628 2011-07-26  Ralf Corsépius <ralf.corsepius@rtems.org>
629
630         * libc/sys/rtems/sys/dirent.h (scandir):
631         Add const to "select" parameter.
632
633 2011-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
634
635         * libc/iconv/iconv.tex: Rename node "Introduction" into
636         "Introduction to iconv".
637
638 2011-07-20  Yaakov Selkowitz  <yselkowitz@...>
639
640         * libc/include/time.h [_POSIX_CLOCK_SELECTION] (clock_nanosleep):
641         Declare.
642         * libc/include/sys/features.h [__CYGWIN__] (_POSIX_CLOCK_SELECTION):
643         Define.
644
645 2011-07-19  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
646
647         * libc/include/sys/unistd.h (_CS_XBS5_WIDTH_RESTRICTED_ENVS): Define.
648         (_CS_V6_ENV): Fix definition.
649
650 2011-07-19  Ralf Corsépius <ralf.corsepius@rtems.org>
651
652         * libc/locale/lmessages.c (_C_messages_locale):
653         Move __HAVE_LOCALE_INFO_EXTENDED__ before codeset.
654
655 2011-07-19  Matt Johnson  <johnso87@crhc.illinois.edu>
656
657         * libc/reent/sbrkr.c: Define _sbrk_r independently of the definition
658         of MALLOC_PROVIDED.
659
660 2011-07-15  Yufeng Zhang  <yufeng.zhang@arm.com>
661
662         * libc/stdio/vfwprintf.c (wcvt): Add a new parameter len of type
663         int.  *length is set to the value of (rev - digits) regardless
664         of whether _MB_CAPABLE is defined or not.  Replace BUF with len
665         in calling _mbsnrtowcs_r and also in the loop where _MB_CAPABLE
666         is not defined.
667         (_VFWPRINTF_R): Call wcvt with an extra argument.  Call wcvt
668         again with allocated new buffer if buf is not large enough for
669         the conversion.
670         * testsuite/newlib.stdio/stdio.exp: New.
671         * testsuite/newlib.stdio/swprintf.c: Likewise.
672
673 2011-07-15  Matt Johnson  <johnso87@crhc.illinois.edu>
674
675         * libc/stdio/fscanf.c (fscanf): Call _vfscanf_r instead of __svfscanf_r
676         to make sure CHECK_INIT is called.
677         (_fscanf_r): Ditto.
678         * /libc/stdio/scanf.c (scanf): Ditto.
679         (_scanf_r): Ditto.
680         * libc/stdio/fwscanf.c (fwscanf): Call _vfwscanf_r instead of
681         __svfwscanf_r to make sure CHECK_INIT is called.
682         (_fwscanf_r): Ditto.
683         * libc/stdio/wscanf.c (wscanf): Ditto.
684         (_wscanf_r): Ditto.
685
686 2011-07-13  Hans-Peter Nilsson <hp@axis.com>
687
688         * libm/complex/cacos.c: Use temporaries and correct sequencing
689         error in previous reordering change.
690
691 2011-06-25  Andreas Becker  <becker@se-elektronic.de>
692
693         * libc/time/mktime.c (mktime): Lock global timezone info while
694         accessing it.
695
696 2011-06-14  Philip Munts  <phil@munts.net>
697
698         * libc/time/asctime_r.c (asctime_r): Replace call to sprintf with call
699         to siprintf.
700         * libc/time/strftime.c: Define snprintf to sniprintf in multibyte case.
701         * libc/time/tzset_r.c: Define sscanf to siscanf.
702
703 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
704
705         * configure.host: Don't handle ep9312, strongarm, xscale and thumb
706         target names.
707         * libc/machine/configure.in: Don't handle xscale target names.
708         * libc/machine/configure: Regenerate.
709
710 2011-06-14  Craig Howland <howland@LGSInnovations.com>
711
712         * libc/time/tzset_r.c (tzset_r):  Correct behavior for changing from
713         non-GMT to GMT, when un-setting TZ.  Set _timezone and _daylight even
714         if no DST is given in TZ.
715
716 2011-06-13  Eric Blake  <eblake@redhat.com>
717
718         * libc/stdio/wsetup.c (__swsetup_r): Set errno on failure.
719         * libc/stdio/fvwrite.c (__sfvwrite_r): Simplify.
720         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
721         * libc/stdio/local.h (cantwrite): Adjust comment.
722
723 2011-06-09  Yaakov Selkowitz  <yselkowitz@...>
724
725         * libc/include/string.h (strdupa): New macro function.
726         (strndupa): New macro function.
727
728 2011-05-27  Nick Clifton  <nickc@redhat.com>
729
730         * libc/sys/sysnecv850/sbrk.c (_sbrk): Tidy code.
731         Base start of heap on the "heap_start" symbol.
732
733 2011-05-25  Eric Blake  <eblake@redhat.com>
734
735         * libc/string/strerror.c (_strerror_r): Report "Success" for 0.
736
737 2011-05-25  Eric Blake  <eblake@redhat.com>
738
739         * libc/string/strerror.c (strerror): Split body into...
740         (_strerror_r): ...new reentrant function.
741         * libc/string/u_strerr.c (_user_strerror): Update signature.
742         * libc/include/string.h (_strerror_r): New prototype.
743         * libc/posix/collate.c (__collate_err): Adjust callers.
744         * libc/stdio/perror.c (_perror_r): Likewise.
745         * libc/string/strerror_r.c (strerror_r): Likewise.
746         * libc/string/xpg_strerror_r.c (__xpg_strerror_r): Likewise.
747
748 2011-05-19  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
749
750         * libc/include/stdio_ext.h: New header.
751         * libc/stdio/fpurge.c [!__rtems__] (__fpurge): New function.
752
753 2011-05-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
754
755         * Makefile.am (install-data-local): Fix condition and rm call.
756         * Makefile.in: Regenerate.
757
758 2011-05-16  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
759
760         * libc/include/time.h (CLOCK_PROCESS_CPUTIME_ID): Rename from
761         CLOCK_PROCESS_CPUTIME.
762         (CLOCK_THREAD_CPUTIME_ID): Rename from CLOCK_THREAD_CPUTIME.
763         * libc/include/sys/features.h [__CYGWIN__] (_POSIX_CPUTIME): Define.
764         (_POSIX_THREAD_CPUTIME): Define.
765
766 2011-05-16  Christian Bruel  <christian.bruel@st.com>
767
768         * libc/stdlib/strtod.c (_strtod_r): Fix nf/nd counts to not exceed
769         DBL_DIG.
770
771 2011-05-15  Corinna Vinschen  <vinschen@redhat.com>
772
773         * libc/include/sys/features.h (_POSIX_THREAD_ATTR_STACKADDR): Define
774         to 200112L for Cygwin.
775
776 2011-05-12  Peter Rosin  <peda@lysator.liu.se>
777
778         * libc/time/strptime.c (strptime): Fill in tm_yday when all of tm_year,
779         tm_mon and tm_mday are updated. Fill in tm_mon, tm_mday and tm_wday
780         when both of tm_year and tm_yday are updated.
781
782 2011-05-12  Peter Rosin  <peda@lysator.liu.se>
783
784         * libc/time/strptime.c (first_day): Actually return the wday
785         of the first day of the year.
786
787 2011-05-10  Corinna Vinschen  <vinschen@redhat.com>
788
789         * libc/locale/lmessages.c (_C_messages_locale): Add missing comma.
790
791 2011-05-04  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
792
793         * libc/include/signal.h (psignal): Declare.
794         * libc/sys/linux/psignal.c: Move from here...
795         * libc/signal/psignal.c: ... to here. Document.
796         * libc/sys/linux/Makefile.am (GENERAL_SOURCES): Move psignal.c from here...
797         * libc/signal/Makefile.am (LIB_SOURCES): ... to here.
798         (CHEWOUT_FILES): Add psignal.def.
799         * libc/sys/linux/Makefile.in: Regenerate.
800         * libc/signal/Makefile.in: Ditto.
801         * libc/signal/signal.tex: Add references to psignal.
802
803 2011-05-04  Corinna Vinschen  <vinschen@redhat.com>
804
805         * libc/locale/lmessages.h (__messages_load_locale): Declare.  Remove
806         accidental declaration of __numeric_load_locale.
807         * libc/locale/locale.c: Include timelocal.h to get declaration of
808         __time_load_locale.
809         (__set_locale_from_locale_alias): Fix return type.
810         (__locale_msgcharset): Avoid compiler warnings.
811         (_localeconv_r): Ditto.
812
813 2011-05-04  Andy Koppe  <andy.koppe@gmail.com>
814
815         * libc/locale/locale.c (current_categories): On Cygwin, set LC_CTYPE 
816         to C.UTF-8 to match initial __wctomb and __mbtowc settings.
817         (lc_ctype_charset): On Cygwin, initialize to "UTF-8".
818         (loadlocale): Remove unused Cygwin-specifc code.
819
820 2011-05-02  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
821
822         * libc/include/sys/features.h [__CYGWIN__] (_POSIX_SPIN_LOCKS): Define.
823         * libc/include/sys/types.h: Cygwin provides its own pthread_spinlock_t
824         typedef.
825
826 2011-04-19  Corinna Vinschen  <vinschen@redhat.com>
827
828         * libc/include/sys/signal.h (_sig_func_ptr): Define with int parameter
829         per POSIX.  Explain in comment.
830
831 2011-04-15  Eric Blake  <eblake@redhat.com>
832
833         * libc/string/strchrnul.c (strchrnul): Fix strchrnul.
834
835 2011-03-27  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
836
837         * libc/include/string.h (strchrnul): Declare.
838         * libc/string/strchrnul.c: New file.
839         * libc/string/Makefile.am (ELIX_2_SOURCES): Add strchrnul.c.
840         * libc/string/Makefile.in: Regenerate.
841
842 2011-03-23  Nick Clifton  <nickc@redhat.com>
843
844         * libc/machine/frv/setjmp.S: Fix typo in .size directive.
845
846 2011-03-21  Kevin Buettner  <kevinb@redhat.com>
847
848         * libc/sys/sysnecv850/trap.S (___trap0): Fix errno handling.
849         * libc/sys/sysnecv850/rename.c: New file.
850         * libc/sys/sysnecv850/Makefile.am (lib_a_SOURCES): Add rename.c
851         * libc/sys/sysnecv850/Makefile.in: Regenerate.
852         * libc/sys/sysnecv850/fstat.c (_fstat): Invoke trap for SYS_fstat.
853         * libc/sys/sysnecv850/unlink.c (_unlink): Invoke trap for SYS_unlink.
854
855 2011-03-03  Corinna Vinschen  <vinschen@redhat.com>
856
857         * libc/include/string.h: Include sys/cdefs.h.
858
859 2011-03-03  Corinna Vinschen  <vinschen@redhat.com>
860
861         * libc/include/sys/cdefs.h (__CONCAT1): Define.
862         (__CONCAT): Define.
863         (__STRING): Define.
864         (__XSTRING): Define.
865         (__ASMNAME): Define.
866         * libc/include/string.h (strerror_r): Use __ASMNAME to take target
867         specific label prefixes into account.
868
869 2011-03-01  Aaron Landwehr <snaphat@gmail.com>
870
871         * libm/complex/cproj.c: Fix typo.
872         * libm/complex/cprojf.c: Ditto.
873
874 2011-02-22  Corinna Vinschen  <vinschen@redhat.com>
875
876         * libc/stdio/fmemopen.c (fmemopen): Fix EINVAL condition.  Avoid SEGV
877         if incoming buffer is NULL.
878
879 2011-02-09  Eric Blake  <eblake@redhat.com>
880
881         * libc/include/string.h (strerror_r): Update declaration.
882         * libc/string/strerror.c (strerror): Update documentation.
883         * libc/string/strerror_r.c (strerror_r): Always return
884         NUL-terminated string; don't overwrite too-short buf.
885         * libc/string/xpg_strerror_r.c (__xpg_strerror_r): Implement POSIX
886         variant.
887         * libc/string/Makefile.am (GENERAL_SOURCES): Build new file.
888         * libc/string/Makefile.in: Regenerate.
889
890 2011-01-28  Corinna Vinschen  <vinschen@redhat.com>
891
892         * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic
893         changes of flags and fp lock.
894         * libc/stdio/freopen.c: Ditto.
895         * libc/stdio64/freopen64.c: Ditto.
896         * libc/stdio/fgetc.c: Revert change from 2009-04-24, remove sfp locks
897         which guard entire function to avoid potential deadlocks when using
898         stdio functions in multiple thraeds.
899         * libc/stdio/fgets.c: Ditto.
900         * libc/stdio/fgetwc.c: Ditto.
901         * libc/stdio/fgetws.c: Ditto.
902         * libc/stdio/fread.c: Ditto.
903         * libc/stdio/fseek.c: Ditto.
904         * libc/stdio/getc.c: Ditto.
905         * libc/stdio/getdelim.c: Ditto.
906         * libc/stdio/gets.c: Ditto.
907         * libc/stdio/vfscanf.c: Ditto.
908         * libc/stdio/vfwscanf.c: Ditto.
909
910         * libc/stdio/fflush.c (_fflush_r): Split out core functionality into
911         new function __sflush_r.  Just lock file and call __sflush_r from here.
912         * libc/stdio/fwalk.c (_fwalk): Remove static helper function and move
913         functionality back into main function. Don't walk a file with flags
914         value of 1.  Add comment.
915         (_fwalk_reent): Ditto.
916         * libc/stdio/local.h (__sflush_r): Declare.
917         * libc/stdio/refill.c (__srefill): Before calling fwalk, set flags
918         value to 1 so this file pointer isn't walked.  Revert flags afterwards
919         and call __sflush_r for this fp if necessary.  Add comments.
920
921 2011-01-27  Corinna Vinschen  <vinschen@redhat.com>
922
923         * libc/include/sys/features.h: Define __STDC_ISO_10646__ for Cygwin.
924         * libc/include/wchar.h: Include features.h.
925
926 2011-01-15  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
927
928         * libc/include/sys/types.h (ulong): Add typedef.
929
930 2011-01-12  Ralf Corsépius  <ralf.corsepius@rtems.org>
931
932         * libm/math/w_tgamma.c: Only build ifndef _DOUBLE_IS_32BITS.
933         * libm/math/wf_tgamma.c: Map tgamma to tgammaf, ifdef _DOUBLE_IS_32BITS.
934
935 2011-01-12  Jeff Johnston  <jjohnstn@redhat.com>
936
937         * configure.host: Add noinclude variable to allow specification
938         of header files to remove from installation.
939         * acinclude.m4: Provide NO_INCLUDE_LIST variable based on
940         noinclude variable in configure.host.
941         * configure: Regenerated.
942         * Makefile.am: Remove all header files in NO_INCLUDE_LIST.
943         * Makefile.in: Regenerated.
944
945 2011-01-12  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
946
947         * libc/sys/linux/sys/signal.h (sig_t): Move from here...
948         * libc/include/signal.h (sig_t): ...to here.
949
950 2011-01-10  Corinna Vinschen  <vinschen@redhat.com>
951
952         * libc/machine/mips/strlen.c (strlen): Add delay slot for R3000.
953
954 2011-01-10  Joel Sherrill <joel.sherrill@oarcorp.com>
955
956         * libc/include/string.h: Make strsignal() available unconditionally.
957
958 2011-01-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
959
960         * libc/sys/rtems/crt0.c: Adjust free() and calloc() to match their
961         public decls.
962
963 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
964
965         * Makefile.am: Move cleaning targ-include to clean-local.
966         * Makefile.in: Regenerate.
967
968 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
969
970         * libc/stdio/open_memstream.c (internal_open_memstream_r):
971         Don't limit c->max to 64*1024 on targets with SIZE_MAX < 64*1024.
972
973 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
974
975         * libc/xdr/xdr.c: Fix typos in #errors.
976
977 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
978
979         * libc/xdr/xdr_private.h: Include <stdint.h>
980         * libc/xdr/xdr_rec.c: Include limits.h
981
982 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
983
984         * libc/Makefile.am (SUBDEFS): Remove redundant posix/stmp-def.
985         * libc/Makefile.in: Regenerate.
986
987 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
988
989         * libc/configure.in: Remove redundant posix_dir processing.
990         * libc/configure: Regenerate.
991
992 2010-12-31  Ralf Corsepius  <ralf.corsepius@rtems.org>
993
994         * MAINTAINERS: Change corinna@vinchen.de to corinna@vinschen.de.
995
996 2010-12-26  Christopher Faylor  <me+cygwin@cgf.cx>
997
998         * libc/include/sys/errno.h (program_invocation_name): Declare.
999         (program_invocation_short_name): Ditto.
1000
1001 2010-12-16  Jeff Johnston  <jjohnstn@redhat.com>
1002
1003         * NEWS: Update with 1.19.0 info.
1004         * README: Ditto.
1005         * MAINTAINERS: Update.
1006         * acinclude.m4: Change version number to 1.19.0.
1007         * aclocal.m4: Regenerated.
1008         * configure: Ditto.
1009         * Makefile.am: Fix stmp-targ-include target.
1010         * Makefile.in: Regenerated.
1011         * doc/aclocal.m4: Ditto.
1012         * doc/configure: Ditto.
1013         * libc/*/aclocal.m4: Ditto.
1014         * libc/*/configure: Ditto.
1015         * libc/libc.texinfo: Ditto.
1016         * libm/*/aclocal.m4: Ditto.
1017         * libm/*/configure: Ditto.
1018         * libm/libm.texinfo: Ditto.
1019         * libc/sys/linux/shared.ld: Add VERS_1.19
1020
1021 2010-12-14  Jeff Johnston  <jjohnstn@redhat.com>
1022
1023         * Makefile.am: Add support to copy all sub-directories of the
1024         sys/SYS_DIR/include directory, if they contain header files.
1025         * Makefile.in: Regenerated.
1026
1027 2010-12-08  Jeff Johnston  <jjohnstn@redhat.com>
1028
1029         * libm/mathfp/sf_logarithm.c: Change isfinitef reference to isfinite.
1030
1031 2010-12-08  Ralf Corsepius <ralf.corsepius@rtems.org>
1032
1033         * include/sys/types.h: Add #if defined(__rtems__) around
1034         pthread_attr_t.guardsize.
1035
1036 2010-12-08  Joel Sherrill <joel@OARcorp.com>
1037
1038         * include/pthread.h: Add pthread_attr_setstack, pthread_attr_getstack,
1039         pthread_attr_getguardsize, pthread_attr_setguardsize.
1040         * include/sys/types.h (pthread_attr_t): Add guardsize.
1041
1042 2010-12-08  Corinna Vinschen  <corinna@vinschen.de>
1043
1044         * libc/include/strings.h: Don't include locale.h.
1045
1046 2010-12-07  Eric Blake  <eblake@redhat.com>
1047
1048         * libc/include/strings.h: Don't declare removed functions when
1049         requesting POSIX 2008 compliance.
1050
1051 2010-12-07  Jeff Johnston  <jjohnstn@redhat.com>
1052
1053         * libc/stdlib/strtod.c (_strtod_r): Fix code to handle case whereby
1054         _DOUBLE_IS_32BITS is set and DBL_DIGS is 6 instead of 15.
1055
1056 2010-12-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
1057
1058         * libc/include/strings.h: New (split-out from string.h).
1059
1060 2010-12-03  Craig Howland <howland@LGSInnovations.com>
1061
1062         * libc/include/math.h: Missing from previous checkin.
1063
1064 2010-12-02  Craig Howland <howland@LGSInnovations.com>
1065
1066         * libm/common/s_log2.c:  Change from using M_LOG2_E to M_LN2 define
1067         (from math.h--the latter is POSIX, the former non-standard).
1068         * libm/common/sf_log2.c:  Ditto.  Change cast for M_LN2 from float to
1069         float_t (in case all math not done in float).
1070         * libc/include/math.h:  Ditto (same 2 things as sf_log2.c).
1071
1072 2010-12-02  Jayant Sonar  jayant.sonar@kpitcummins.com
1073             Kaushik Phatak  kaushik.phatak@kpitcummins.com
1074
1075         * configure.host: Add CR16 support.
1076         * libc/include/machine/ieeefp.h: Ditto.
1077         * libc/include/machine/setjmp.h: Ditto.
1078         * libc/include/sys/config.h: Ditto.
1079         * libc/machine/configure.in: Ditto
1080         * libc/machine/configure: Regenerated
1081         * libc/machine/cr16/aclocal.m4: New.
1082         * libc/machine/cr16/configure.in: New
1083         * libc/machine/cr16/configure: New
1084         * libc/machine/cr16/getenv.c: New
1085         * libc/machine/cr16/Makefile.am: New
1086         * libc/machine/cr16/Makefile.in: New
1087         * libc/machine/cr16/setjmp.S: New
1088         * libc/machine/cr16/sys/asm.h: New
1089         * libc/machine/cr16/sys/libh.h: New
1090         * libc/machine/cr16/sys/syscall.h: New
1091
1092 2010-11-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
1093
1094         * libm/complex/catan.c, libm/complex/catanf.c,
1095         libm/complex/ctan.c, libm/complex/ctanf.c:
1096         Use HUGE_VAL instead of MAXNUM.
1097
1098 2010-11-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
1099
1100         * libm/complex/cargf.c: Use crealf instead of creal.
1101
1102 2010-11-19  Andy Koppe <andy.koppe@gmail.com>
1103
1104         * libc/locale/locale.c (loadlocale): Recognise the "cjknarrow"
1105         modifier on "C.<charset>" locales too.
1106
1107 2010-11-18  Andy Koppe <andy.koppe@gmail.com>
1108
1109         * libc/locale/locale.c (loadlocale): Fix width of CJK ambigous
1110         characters to 1 for singlebyte charsets and 2 for non-Unicode
1111         multibyte charsets. Change documentation accordingly.
1112
1113 2010-11-17  Bernd Schmidt  <bernds@codesourcery.com>
1114
1115         * configure.host (newlib_cflags): For tic6x, add -DCLOCK_PROVIDED.
1116
1117 2010-11-16  Andrew Makhorin <mao@gnu.org>
1118
1119         * libc/machine/i386/setjmp.S (longjmp): Per POSIX, return 1 if second
1120         argument is 0.
1121
1122 2010-11-16  Ralf Corsépius  <ralf.corsepius@rtems.org>
1123
1124         * libc/include/sys/types.h: Add _mode_t for __rtems__.
1125         * libc/sys/rtems/machine/_types.h: Provide _mode_t, _fpos_t, _off_t.
1126         Add _ssize_t for 64bit sparc.
1127         Let arm, i386, m68k, mips, PPC, sparc use 64bit _off_t, _fpos_t.
1128
1129 2010-11-16  Ralf Corsépius  <ralf.corsepius@rtems.org>
1130
1131         * configure.host: Add -D_COMPILING_NEWLIB to newlib_cflags.
1132
1133 2010-11-04  Ralf Corsépius  <ralf.corsepius@rtems.org>
1134
1135         * libm/complex/cacos.c: Reorder function calls to work around ICE
1136         in arm/thumb-gcc.
1137
1138 2010-10-27  Maurice Baijens  <maurice.baijens@ellips.nl>
1139
1140         * libc/stdlib/strtol.c: Make sure signed characters are not
1141         sign-extended when converted to int and passed to ctype macros.
1142         * libc/stdlib/strtoul.c: Ditto.
1143         * libc/stdlib/strtoll_r.c: Ditto.
1144         * libc/stdlib/strtoull_r.c: Ditto.
1145
1146 2010-10-18  Marco Atzeri  <marco_atzeri@yahoo.it>
1147
1148         * libm/Makefile.am: added complex functions documentation
1149         * libm/libm.texinfo: ditto
1150         * libm/complex/Makefile.am: Ditto
1151         * libm/complex/complex.tex: Ditto
1152         * libm/complex/(cabs.c, cacos.c, cacosh.c, carg.c,
1153         casin.c, casinh.c, catan.c, catanh.c, ccos.c, ccosh.c,
1154         cexp.c, cimag.c, clog.c, conj.c, cpow.c, cproj.c, creal.c,
1155         csin.c, csinh.c, csqrt.c, ctan.c, ctanh.c): Ditto
1156         * libm/Makefile.in: Regenerate
1157         * libm/complex/Makefile.in: Ditto 
1158
1159 2010-10-14  Craig Howland <howland@LGSInnovations.com>
1160
1161         * libc/include/math.h:  Delete cabs() and cabs() prototypes
1162         (c.f. 2010-10-08 change by Corinna).
1163
1164 2010-10-08  Bernd Schmidt  <bernds@codesourcery.com>
1165         Joseph Myers  <joseph@codesourcery.com>
1166
1167         * configure.host: Handle tic6x targets.
1168         * libc/include/machine/ieeefp.h: Define endianness for C6X.
1169         * libc/include/machine/setjmp.h: Add __TMS320C6X__ case.
1170         * libc/machine/configure.in: Handle tic6x targets.
1171         * libc/machine/configure: Regenerate.
1172         * libc/machine/tic6x/Makefile.am, libc/machine/tic6x/configure.in,
1173         libc/machine/tic6x/setjmp.S: New.
1174         * libc/machine/tic6x/Makefile.in, libc/machine/tic6x/aclocal.m4,
1175         libc/machine/tic6x/configure: New (generated).
1176
1177 2010-10-08  Ralf Corsépius  <ralf.corsepius@rtems.org>
1178
1179         * libc/include/sys/unistd.h: Declare getsid, setegid, seteuid for RTEMS.
1180
1181 2010-10-08  Ralf Corsépius  <ralf.corsepius@rtems.org>
1182
1183         * libm/common/sf_llrint.c, libm/common/sf_round.c: Add explicit casts
1184         to __uint32_t to avoid overflows on implicit casts.
1185
1186 2010-10-08  Ralf Corsépius  <ralf.corsepius@rtems.org>
1187
1188         * libm/complex/complex.tex: Add empty stub.
1189
1190 2010-10-08  Corinna Vinschen  <corinna@vinschen.de>
1191
1192         * libm/math/w_cabs.c: Delete.
1193         * libm/math/wf_cabs.c: Delete.
1194         * libm/math/Makefile.am (src): Remove w_cabs.c.
1195         (fsrc): Remove wf_cabs.c.
1196         * libm/math/Makefile.in: Regenerate.
1197
1198 2010-10-08  Marco Atzeri  <marco_atzeri@yahoo.it>
1199
1200         * libc/include/complex.h: New complex header.
1201         * libm/common/fdlibm.h: Added ifdef _COMPLEX_H.
1202         * libm/complex/*: New complex functions imported from NetBSD.
1203         * libm/Makefile.am: Added complex subdir.
1204         * libm/Makefile.in: Regenerate.
1205         * libm/configure.in: Added complex subdir.
1206         * libm/configure: Regenerate.
1207
1208 2010-10-06  Eric Blake  <eblake@redhat.com>
1209
1210         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
1211         periodic needle having false positive.  Affects memmem, strstr,
1212         strcasestr.
1213
1214 2010-09-21  Craig Howland <howland@LGSInnovations.com>
1215
1216         * libc/string/memcpy.c: Do not assign size_t parameter to int.
1217         Use parameter directly, instead.
1218         * libc/string/memccpy.c:  Likewise.
1219         * libc/string/mempcpy.c:  Likewise.
1220         * libc/string/memmove.c:  Likewise.
1221
1222 2010-09-09  Kevin Buettner  <kevinb@redhat.com>
1223
1224         * libc/sys/sysnecv850/Makefile.am (lib_a_SOURCES): Provide an
1225         empty definition.
1226         * libc/sys/sysnecv850/Makefile.in: Regenerate.
1227
1228 2010-08-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1229
1230         * libc/posix/opendir.c (opendir): Fix potential memory leak.
1231
1232 2010-08-10  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1233
1234         * libc/include/sys/dir.h: New BSD-compatibility header.
1235
1236 2010-08-02  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1237
1238         * libc/include/sys/features.h: Define _POSIX_MONOTONIC_CLOCK for Cygwin.
1239
1240 2010-08-06  Corinna Vinschen  <corinna@vinschen.de>
1241
1242         * libc/include/sys/stat.h: Move all POSIX-defined symbolic constants
1243         out of `#ifndef _POSIX_SOURCE' guard.
1244
1245 2010-08-03  Craig Howland <howland@LGSInnovations.com>
1246
1247         * libm/common/s_lrint.c (lrint):  Annotate shift operations with
1248         possible shift amount ranges, and use SAFE_RIGHT_SHIFT to avoid
1249         undefined behaviour.
1250         * libm/common/s_llrint.c (llrint):  Likewise.
1251         * libm/common/s_lround.c (lround):  Correct some comments on ranges.
1252         * libm/common/s_llround.c (llround):  Likewise.
1253
1254 2010-07-30  Anthony Green  <green@moxielogic.com>
1255
1256         * libc/sys/rtems/machine/_types.h: Add moxie support.
1257
1258 2010-07-23  Naveen.H.S  <naveenh1@kpitcummins.com>
1259             Gina Verlekar <gina.verlekar@kpitcummins.com>
1260
1261         * configure.host: Compact v850* support and add
1262         check for newlib_may_supply_syscalls.
1263         * libc/sys/sysnecv850/Makefile.am: Add support for
1264         '--disable-newlib-supplied-syscalls' option.
1265         * libc/sys/sysnecv850/Makefile.in: Regenerated.
1266
1267 2010-07-20  Dave Korn  <dave.korn.cygwin@gmail.com>
1268
1269         * libm/common/fdlibm.h (SAFE_LEFT_SHIFT): New macro definition.
1270         (SAFE_RIGHT_SHIFT): Likewise.
1271         * libm/common/s_llround.c (llround): Annotate shift operations with
1272         possible shift amount ranges, and use SAFE_RIGHT_SHIFT to avoid
1273         undefined behaviour.
1274         * libm/common/s_lround.c (lround): Likewise.
1275
1276 2010-07-19  Eric Blake  <eblake@redhat.com>
1277
1278         * libc/stdio/mktemp.c (_gettemp): Add parameter, all callers
1279         changed.
1280         (mkostemp, _mkostemp_r, mkostemps, _mkostemps_r): New interfaces,
1281         for ELIX level 4.
1282         * libc/include/stdlib.h (mktemp): Avoid namespace issues.
1283         (mkostemp, mkostemps): Declare.
1284
1285 2010-07-13  Corinna Vinschen  <corinna@vinschen.de>
1286
1287         * libc/include/signal.h (sighandler_t): Only define if _POSIX_SOURCE
1288         is undefined.
1289
1290 2010-07-06  Corinna Vinschen  <corinna@vinschen.de>
1291
1292         * libc/posix/rewinddir.c (rewinddir): Remove incorrect cast to off_t.
1293         * libc/sys/rtems/sys/dirent.h (_seekdir): Add prototype.
1294         * libc/sys/linux/sys/dirent.h (_seekdir): Fix prototype to use long
1295         rather than off_t.
1296
1297 2010-07-01  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1298
1299         * libc/include/signal.h (sighandler_t): Add typedef.
1300
1301 2010-06-29  Antony King  <antony.king@st.com>
1302
1303         * libc/ctype/ctype_.c (__ctype_ptr): Reinstate definition (guarded by
1304         _NEED_OLD_CTYPE_PTR_DEFINITION) for backwards compatibility with newlib
1305         1.16.0 and earlier.
1306
1307 2010-06-28  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1308
1309         * libc/include/sys/stat.h: Add ACCESSPERMS, ALLPERMS, and DEFFILEMODE.
1310
1311 2010-06-18  Pavel Pisa <ppisa4lists@pikron.com>
1312
1313         * libc/include/machine/ieeefp.h[__arm__][!__VFP_FP__]: Set to
1314         __IEEE_BIG_ENDIAN and set __IEEE_BYTES_LITTLE_ENDIAN appropriately
1315         based on __ARMEL flag.
1316         * libc/include/machine/endian.h: To set byte order to LITTLE_ENDIAN,
1317         check for __IEEE_LITTLE_ENDIAN or __IEEE_BYTES_LITTLE_ENDIAN.
1318
1319 2010-06-09  Paul Brook  <paul@codesourcery.com>
1320
1321         * libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be
1322         binary compatible with normal layout.
1323         (_REENT_INIT): Adjust to match struct layout.
1324
1325 2010-06-08  Jeff Johnston  <jjohnstn@redhat.com>
1326
1327         * libc/include/wordexp.h: Add __cplusplus wrapper.
1328
1329 2010-06-08  Jeff Johnston  <jjohnstn@redhat.com>
1330
1331         * configure.in: Add test for enable-newlib-register-fini
1332         to set the _WANT_REGISTER_FINI flag.
1333         * configure: Regenerated.
1334         * Makefile.in: Ditto.
1335         * newlib.hin: Add _WANT_REGISTER_FINI flag.
1336         * libc/stdlib/__call_atexit.c: Add test for
1337         _WANT_REGISTER_FINI to enable the register_fini function.
1338
1339 2010-06-04  Mark Mitchell  <mark@codesourcery.com>
1340
1341         * libc/stdlib/__call_atexit.c (__libc_fini): Declare.
1342         (register_fini): New function.
1343         * libc/misc/init.c (_fini): Remove.
1344         (__libc_fini_array): Likewise.
1345         * libc/misc/fini.c: New file.
1346         * libc/misc/Makefile.am (LIB_SOURCES): Add fini.c.
1347         * libc/misc/Makefile.in: Regenerate.
1348
1349 2010-05-31  Kazu Hirata  <kazu@codesourcery.com>
1350
1351         * libc/stdlib/mallocr.c (malloc_extend_top): Backport the
1352         difference between versions 2.6.4 and 2.6.5.
1353
1354 2010-05-18  Christopher Faylor  <me+cygwin@cgf.cx>
1355
1356         * libc/string/strsignal.c (strsignal): Avoid duplicate case statement
1357         where SIGPWR == SIGLOST.
1358
1359 2010-05-11  Jeff Johnston  <jjohnstn@redhat.com>
1360
1361         * libc/stdlib/__call_atexit.c: Fix lock to be of type
1362         _LOCK_RECURSIVE_T as recursive usage is needed.
1363
1364 2010-05-11  Jeff Johnston  <jjohnstn@redhat.com>
1365
1366         * libc/locale/locale.c (loadlocale): Fix dangling
1367         switch statement caused by __HAVE_LOCALE_INFO__ not being
1368         defined.
1369
1370 2010-05-11  Joel Sherrill <joel.sherrill@oarcorp.com>
1371
1372         * libc/string/strsignal.c: New file.
1373         * libc/string/Makefile.am: Add support for strsignal.
1374         * libc/string/strings.tex: Ditto.
1375         * libc/string/Makefile.in: Regenerated.
1376
1377 2010-05-05  DJ Delorie  <dj@redhat.com>
1378
1379         * libc/Makefile.am (stmp-sigset, stmp-iconvset, stmp-extra,
1380         stmp-stdio64, stmp-posix,stmp-targetdep): Use unique temporary
1381         file names to allow for parallel installs.
1382         (CLEANFILES): Add new temporary file names.
1383         * libc/Makefile.in: Regenerate.
1384
1385 2010-05-03  Corinna Vinschen  <corinna@vinschen.de>
1386
1387         * libc/locale/lctype.c: Include <string.h> and "setlocale.h".
1388         (_C_ctype_locale): Add braces to initializer.
1389         (__ctype_load_locale): Fix compiler warnings in non-Cygwin case.
1390         * libc/locale/nl_langinfo.c (nl_langinfo): Expose _NL_CTYPE_MB_CUR_MAX
1391         case only if __HAVE_LOCALE_INFO__ is defined.
1392
1393 2010-05-02  Corinna Vinschen  <corinna@vinschen.de>
1394
1395         * libc/stdlib/wctob.c (wctob): Reorganize and fix WEOF check.  Rename
1396         pwc to pmb and convert to array to avoid buffer overflow.  Rename c to
1397         wc.  Check wc for WEOF instead of for EOF.  Return first byte of pmb if
1398         __wctomb conversion returned exactly one byte, EOF otherwise.
1399
1400 2010-04-30  Corinna Vinschen  <corinna@vinschen.de>
1401
1402         * libc/include/langinfo.h: Fix #endif positioning.
1403
1404 2010-04-28  Corinna Vinschen  <corinna@vinschen.de>
1405
1406         Extend locale support to maintain wide char values of native strings
1407         if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
1408         * libc/include/langinfo.h (enum __nl_item): New type.  Define all
1409         native values accessible through nl_langinfo.  Define previously
1410         existing POSIX-compatible values as macros as well.
1411         * libc/include/stdlib.h (__mb_cur_max): Drop declaration.
1412         (__locale_mb_cur_max): Declare.
1413         (MB_CUR_MAX): Re-define calling __locale_mb_cur_max.
1414         * libc/locale/Makefile.am (ELIX_SOURCES): Add lctype.c.
1415         * libc/locale/Makefile.in: Regenerate.
1416         * libc/locale/lctype.c: New file to define and load LC_CTYPE category.
1417         * libc/locale/lctype.h: New file, matching header.
1418         * libc/locale/lmessages.c (_C_messages_locale): Add default values for
1419         wide char members.
1420         (__messages_load_locale): Add _C_messages_locale in call to 
1421         __set_lc_messages_from_win.
1422         * libc/locale/lmessages.h (struct lc_messages_T): Add wide char members.
1423         * libc/locale/lmonetary.c (_C_monetary_locale):  Add default values for
1424         wide char members.
1425         (__monetary_load_locale): Add _C_monetary_locale in call to
1426         __set_lc_monetary_from_win.
1427         * libc/locale/lmonetary.h (struct lc_monetary_T): Add wide char members.
1428         Add numerical values for international currency formatting per
1429         POSIX-1.2008, if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
1430         * libc/locale/lnumeric.c (_C_numeric_locale): Add default values for
1431         wide char members.
1432         (__numeric_load_locale): Add _C_numeric_locale in call to
1433         __set_lc_numeric_from_win.
1434         * libc/locale/lnumeric.h (struct lc_numeric_T): Add wide char members.
1435         * libc/locale/locale.c (loadlocale): Return doing nothing if category
1436         locale didn't change.  Convert category if chain to switch statement.
1437         Call __ctype_load_locale in LC_CTYPE case.
1438         (__locale_charset): Add (but disable for now) returning codeset from
1439         __get_current_ctype_locale.
1440         (__locale_mb_cur_max): Add (but disable for now) returning mb_cur_max
1441         from __get_current_ctype_locale.
1442         (__locale_msgcharset): Add returning codeset from
1443         __get_current_messages_locale.
1444         (_localeconv_r): Accommodate int_XXX values.
1445         * libc/locale/nl_langinfo.c (nl_ext): New array to define what is to
1446         be returned for non-POSIX values.
1447         (nl_Langinfo): Return correct codeset for each locale category.  Return
1448         extended values if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
1449         * libc/locale/timelocal.c (_C_time_locale): Add default values for
1450         wide char members.
1451         (__time_load_locale): Add _C_time_locale in call to
1452         __set_lc_time_from_win.
1453         * libc/locale/timelocal.h (struct lc_time_T): Add wide char members.
1454         * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Use wide char decimal point
1455         and thousands_sep if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
1456         * libc/time/strftime.c: Rework to accommodate availability of wide char
1457         strings in LC_TIME category if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
1458
1459 2010-04-22  DJ Delorie  <dj@redhat.com>
1460
1461         * libc/Makefile.am (SUBDEFS): Add LIBC_POSIX_DEF.
1462         (libc.info): Add posix.texi.
1463         (libc.dvi): Likewise.
1464         (stmp-posix): New.
1465         (posix.texi): New.
1466         (libc_TEXINFOS): Add posix.texi.
1467         * libc/configure.in (LIBC_POSIX_LIB, LIBC_POSIX_DEF): Add
1468         tests.
1469         * libc/libc.texinfo: Include posix.texi
1470         * libc/locale/locale.c: Fix texinfo typo.
1471         * libc/time/strftime.c: Fix texinfo typo.
1472
1473         * libc/configure: Regenerate.
1474         * libc/Makefile.in: Regenerate.
1475         * libc/argz/Makefile.in: Regenerate.
1476         * libc/ctype/Makefile.in: Regenerate.
1477         * libc/errno/Makefile.in: Regenerate.
1478         * libc/iconv/Makefile.in: Regenerate.
1479         * libc/iconv/ccs/Makefile.in: Regenerate.
1480         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
1481         * libc/iconv/ces/Makefile.in: Regenerate.
1482         * libc/iconv/lib/Makefile.in: Regenerate.
1483         * libc/locale/Makefile.in: Regenerate.
1484         * libc/misc/Makefile.in: Regenerate.
1485         * libc/posix/Makefile.in: Regenerate.
1486         * libc/reent/Makefile.in: Regenerate.
1487         * libc/search/Makefile.in: Regenerate.
1488         * libc/signal/Makefile.in: Regenerate.
1489         * libc/stdio/Makefile.in: Regenerate.
1490         * libc/stdio64/Makefile.in: Regenerate.
1491         * libc/stdlib/Makefile.in: Regenerate.
1492         * libc/string/Makefile.in: Regenerate.
1493         * libc/syscalls/Makefile.in: Regenerate.
1494         * libc/time/Makefile.in: Regenerate.
1495         * libc/unix/Makefile.in: Regenerate.
1496         * libc/xdr/Makefile.in: Regenerate.
1497
1498 2010-04-06  Dave Korn  <dave.korn.cygwin@googlemail.com>
1499
1500         * libc/stdlib/__atexit.c (__atexit_lock): Initialise as recursive
1501         rather than non-recursive lock type.
1502         (__register_exitproc): Use recursive locking APIs on it.
1503         * libc/stdlib/__call_atexit.c (__call_exitprocs): Likewise.
1504
1505 2010-04-06  Corinna Vinschen  <corinna@vinschen.de>
1506
1507         * libc/stdlib/btowc.c (btowc): Reorganize EOF check.  Fix incorrect
1508         return value if input byte is ASCII NUL.
1509
1510 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
1511
1512         * libc/include/sched.h: Include prototypes for
1513         sched_* methods.
1514         * libc/include/sys/sched.h: Update to POSIX
1515         1003.1b-2008.  Rework constants to allow sharing
1516         between RTEMS and Cygwin.
1517
1518 2010-03-27  Corinna Vinschen  <corinna@vinschen.de>
1519
1520         * libc/locale/locale.c (loadlocale): Optimize "EUC" charset check.
1521         Cygwin only: Allow GB2312 and EUC-CN as alternative codeset names
1522         for GBK.  Add to documentation.
1523         * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate EUCCN
1524         to GB2312.
1525
1526 2010-03-17  Craig Howland <howland@LGSInnovations.com>
1527
1528         * libc/include/sys/features.h:  Allow for _XOPEN_SOURCE to have an
1529         empty definition.  Also add support for values of 500 or less.
1530
1531 2010-03-09  Jeff Johnston  <jjohnstn@redhat.com>
1532
1533         * libc/posix/telldir.c (dd_loccnt): Change start index to be 1 
1534         instead of 0.
1535         (_seekdir): A loc of 0 now means rewind dir.
1536
1537 2010-03-08  Craig Howland <howland@LGSInnovations.com>
1538
1539         * libm/common/s_rint.c:  Fix error when integral part had 18 bits and
1540         fraction had bits set beyond first radix bit.  Also, make 2-part
1541         adjustment consistent with 1-part adjustment when adjusting fractional
1542         bits.
1543         * libm/common/sf_rint.c:  Make fractional-bit adjustment consistent
1544         with s_rint.c by setting 0b.01 instead of 0b.001.
1545
1546 2010-03-05  Craig Howland <howland@LGSInnovations.com>
1547
1548         * libm/math/ef_sqrt.c: Delete unused variable sign.
1549         * libc/stdlib/getenv.c: Delete "char *_findenv_r ();", as is not a
1550         proper prototype, and is properly prototyped in stdlib.h, anyway.
1551         * libc/stdlib/getenv_r.c: Ditto.
1552         * libc/search/hash.c: Add _DEFUN to __hash_open() declaration; add
1553         #define __DBINTERFACE_PRIVATE to activate prototypes from db_local.h.
1554         * libc/search/db_local.h: Correct __hash_open() prototype.
1555         * libc/sys/linux/cmath/math_private.h:  Eliminate compiler warnings:
1556         Remove #define INFINITY (redefines from math.h); remove #define __isnanf
1557         and #define __isinff isinff.
1558
1559 2010-03-02  Craig Howland <howland@LGSInnovations.com>
1560
1561         * libc/include/sys/features.h:  Add POSIX.1-permitted definition of
1562         _POSIX_C_SOURCE if not already defined and _XOPEN_SOURCE has an
1563         appropriate value.  Specifically, check for POSIX.1-2008 & 2001 values.
1564         * libc/include/sys/config.h:  Add #include <sys/features.h> so that all
1565         includes get the new check added to it.
1566
1567 2010-03-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
1568
1569         * libc/xdr/README: Correct grammatical errors.
1570         * libc/include/rpc/types.h: Add public types used
1571         by RPC implementations.
1572         * libc/include/rpc/xdr.h: Add defines used by RPC
1573         implementations.
1574         * libc/xdr/Makefile.am: Eliminate automake warning.
1575         * libc/xdr/Makefile.in: Regenerate.
1576
1577 2010-03-02  Corinna Vinschen  <corinna@vinschen.de>
1578
1579         * libc/xdr/Makefile.in: Regenerate.
1580
1581 2010-03-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
1582
1583         Add eXtensible Data Record (XDR) support
1584         * configure.host: Build libc/xdr only on cygwin.
1585         * Makefile.am: Install xdr headers.
1586         * libc/configure.in: Support new libc/xdr subdirectory.
1587         * libc/Makefile.am: Support new libc/xdr subdirectory.
1588         * libc/include/rpc/types.h: New.
1589         * libc/include/rpc/xdr.h: New.
1590         * libc/xdr/README: New.
1591         * libc/xdr/Makefile.am: New.
1592         * libc/xdr/dummy.c: New.
1593         * libc/xdr/xdr.c: New.
1594         * libc/xdr/xdr_array.c: New.
1595         * libc/xdr/xdr_float.c: New.
1596         * libc/xdr/xdr_float_vax.c: New.
1597         * libc/xdr/xdr_mem.c: New.
1598         * libc/xdr/xdr_private.c: New.
1599         * libc/xdr/xdr_private.h: New.
1600         * libc/xdr/xdr_rec.c: New.
1601         * libc/xdr/xdr_reference.c: New.
1602         * libc/xdr/xdr_sizeof.c: New.
1603         * libc/xdr/xdr_stdio.c: New.
1604
1605         Regenerate using ac-2.63 and am-1.11.1
1606         * libc/xdr/Makefile.in: New.
1607         * Makefile.in: Regenerate.
1608         * libc/configure: Regenerate.
1609         * libc/Makefile.in: Regenerate.
1610         * libc/argz/Makefile.in: Regenerate.
1611         * libc/ctype/Makefile.in: Regenerate.
1612         * libc/errno/Makefile.in: Regenerate.
1613         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
1614         * libc/iconv/ccs/Makefile.in: Regenerate.
1615         * libc/iconv/ces/Makefile.in: Regenerate.
1616         * libc/iconv/lib/Makefile.in: Regenerate.
1617         * libc/iconv/Makefile.in: Regenerate.
1618         * libc/locale/Makefile.in: Regenerate.
1619         * libc/misc/Makefile.in: Regenerate.
1620         * libc/posix/Makefile.in: Regenerate.
1621         * libc/reent/Makefile.in: Regenerate.
1622         * libc/search/Makefile.in: Regenerate.
1623         * libc/signal/Makefile.in: Regenerate.
1624         * libc/stdio/Makefile.in: Regenerate.
1625         * libc/stdio64/Makefile.in: Regenerate.
1626         * libc/stdlib/Makefile.in: Regenerate.
1627         * libc/string/Makefile.in: Regenerate.
1628         * libc/syscalls/Makefile.in: Regenerate.
1629         * libc/time/Makefile.in: Regenerate.
1630         * libc/unix/Makefile.in: Regenerate.
1631
1632 2010-02-26  Craig Howland <howland@LGSInnovations.com>
1633
1634         * libm/common/s_ilogb.c:  Fix typo in comments that causes doc
1635         generation to fail.
1636
1637 2010-02-26  Corinna Vinschen  <corinna@vinschen.de>
1638
1639         * libc/time/strftime.c: Add support for era and alt_digits data from
1640         LC_TIME locale category.  Conditionalize using _WANT_C99_TIME_FORMATS
1641         flag.
1642         (STRTOUL): Define differently for building strftime or wcsftime.
1643         (STRCPY): Ditto.
1644         (STRCHR): Ditto.
1645         (STRLEN): Ditto.
1646         (CHECK_LENGTH): Define to simplify code.
1647         (era_info_t): New type to store era info.
1648         (get_era_info): New function to fetch era info matching incoming
1649         struct tm.
1650         (free_era_info): New function to free era info.
1651         (alt_digits_t): New type to store alternative digits.
1652         (get_alt_digits): New function to convert alt_digits string into
1653         alt_digits_t structure.
1654         (free_alt_digits): New function to free alt_digits info.
1655         (conv_to_alt_digits): New function to convert unsigned value into
1656         alternative digits.
1657         (strftime): Conditionalize on _WANT_C99_TIME_FORMATS.  If
1658         _WANT_C99_TIME_FORMATS is defined, define as just a wrapper function
1659         providing era_info and alt_digits pointers and call ...
1660         (__strftime): Rename from strftime and make static if
1661         _WANT_C99_TIME_FORMATS is defined.  Add parameters for era_info and
1662         alt_digits pointers.  Handle conversion modifiers according to
1663         POSIX-1.2008.  Redefine %F and %Y according to POSIX.  Add default case
1664         to allow to bail out on invalid conversion specifiers.
1665         * libc/include/sys/config.h: Move Cygwin build flags to Cygwin's
1666         config.h.
1667
1668         * libc/include/stdio.h: Remove __CYGWIN_USE_BIG_TYPES__ condition.
1669
1670 2010-02-25  Corinna Vinschen  <corinna@vinschen.de>
1671
1672         * libc/locale/locale.c (loadlocale): Fix typo in comment.
1673
1674 2010-02-25  Corinna Vinschen  <corinna@vinschen.de>
1675
1676         * libc/locale/locale.c: Throughout, extensively comment on the
1677         reason for using __CYGWIN__.
1678         (lconv): Remove _CONST entirely.
1679         (loadlocale): Guard calls to function loading locale-specific
1680         category data with __HAVE_LOCALE_INFO__ rather than __CYGWIN__.
1681         * libc/sys/config.h (__HAVE_LOCALE_INFO__): Define for Cygwin.
1682
1683 2010-02-24  Charles Wilson  <...>
1684
1685         Work around issues with new libtool files in ..
1686         * configure.in: Unconditionally call _LT_PROG_ECHO_BACKSLASH.
1687         * iconvdata/configure.in: Ditto.
1688         * libc/configure.in: Ditto.
1689         * libc/machine/configure.in: Ditto.
1690         * libc/machine/i386/configure.in: Ditto.
1691         * libc/sys/configure.in: Ditto.
1692         * libc/sys/linux/configure.in: Ditto.
1693         * libc/sys/linux/linuxthreads/configure.in: Ditto.
1694         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
1695         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
1696         * libc/sys/linux/machine/configure.in: Ditto.
1697         * libc/sys/linux/machine/i386/configure.in: Ditto.
1698         * libm/configure.in: Ditto.
1699         * libm/machine/configure.in: Ditto.
1700         * libm/machine/i386/configure.in: Ditto.
1701         * libc/machine/sh/configure.in: Ditto.  Also, call
1702         AC_NO_EXECUTABLES before NEWLIB_CONFIGURE.
1703         * aclocal.m4: Regenerated.
1704         * configure: Ditto.
1705         * Makefile.in: Ditto.
1706         * doc/aclocal.m4: Ditto.
1707         * doc/Makefile.in: Ditto.
1708         * libc/*/aclocal.m4: Ditto.
1709         * libc/*/Makefile.in: Ditto.
1710         * libc/*/configure: Ditto.
1711         * libm/*/aclocal.m4: Ditto.
1712         * libm/*/Makefile.in: Ditto.
1713         * libm/*/configure: Ditto.
1714
1715 2010-02-24  Jeff Johnston  <jjohnstn@redhat.com>
1716
1717         * libc/stdlib/__call_exit.c: Add include of sys/lock.h.
1718
1719 2010-02-23  Jeff Johnston  <jjohnstn@redhat.com>
1720
1721         * libc/include/sys/types.h: Fix __XMK__ sectioning and remove
1722         redundant code section for __XMK__.
1723
1724 2010-02-22  Corinna Vinschen  <corinna@vinschen.de>
1725
1726         * libc/include/langinfo.h (_NL_TIME_DATE_FMT): Define new nl_item
1727         value for LC_TIME entry date_fmt.
1728         (_DATE_FMT): Define "official" GNU name same as _NL_TIME_DATE_FMT.
1729         * libc/locale/nl_langinfo.c (nl_langinfo): Add case for _DATE_FMT.
1730
1731 2010-02-18  Corinna Vinschen  <corinna@vinschen.de>
1732
1733         * libc/ctype/iswalpha.c (iswalpha): Update to Unicode 5.2.
1734         * libc/ctype/iswprint.c (iswprint): Ditto.
1735         * libc/ctype/iswpunct.c (iswpunct): Drop standalone implementation.
1736         Define in terms of other wctype functions instead.
1737         * libc/ctype/towlower.c (towlower): Update to Unicode 5.2.  Add comment
1738         to explain how to fetch the data from the Unicode database.
1739         * libc/ctype/towupper.c (towupper): Ditto.
1740         * libc/ctype/utf8alpha.h: Ditto.
1741         * libc/ctype/utf8print.h: Ditto.
1742         * libc/ctype/utf8punct.h: Remove.
1743         * libc/ctype/iswcntrl.c (iswcntrl): Add comment to explain how to
1744         fetch the data from the Unicode database.
1745
1746 2010-02-18  Corinna Vinschen  <corinna@vinschen.de>
1747
1748         * libc/locale/timelocal.h (struct lc_time_T): Add missing ERA-related
1749         members.
1750         * libc/locale/timelocal.c (_C_time_local): Set new members to empty
1751         strings.
1752         * libc/locale/nl_langinfo.c (nl_langinfo): Return values from
1753         __get_current_time_locale() for ERA related requests.
1754
1755 2010-02-16  Corinna Vinschen  <corinna@vinschen.de>
1756
1757         * libc/ctype/iswblank.c (iswblank): Remove Unicode characters
1758         U+00A0 and U+200B.  Add Unicode character U+180E.  Add comment
1759         to explain how to generate from Unicode data file.
1760         * libc/ctype/iswspace.c (iswspace): Ditto.
1761
1762 2010-02-15  Corinna Vinschen  <corinna@vinschen.de>
1763
1764         * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Apply previous patch here
1765         as well.
1766
1767 2010-02-15  Corinna Vinschen  <corinna@vinschen.de>
1768
1769         * libc/stdio/vfprintf.c (_VFPRINTF_R): Drop printing a redundant
1770         decimal point in case the float argument is an integral value.
1771
1772 2010-02-11  Craig Howland <howland@LGSInnovations.com>
1773        
1774         * libc/include/machine/ieeefp.h:  isfinite macro modified to run faster
1775         by only calling fpclassify once instead of possibly twice.
1776
1777 2010-02-11  Craig Howland <howland@LGSInnovations.com>
1778
1779         * libm/common/s_ilogb.c:  Adjust documentation to reflect new returns
1780         (see next items) and that ilogb() and ilogbf() are C99/POSIX.
1781         * libm/common/s_ilogb.c (ilogb):  Use C99/POSIX FP_ILOGB0 and
1782         FP_ILOGBNAN returns for 0 and NAN arguments, respectively, instead of
1783         the prior -INT_MAX and INT_MAX.  The FP_ILOGBx defines in math.h
1784         presently match the prior hard-codes, so no functional change is
1785         actually introduced.  (Not at this time, nor planned, but the values
1786         are permitted to be different, so subsequent edits of math.h could
1787         possibly cause a functional change.)
1788         * libm/common/sf_ilogb.c (ilogbf):  Ditto.
1789
1790 2010-02-09  Daniel Gutson  <dgutson@codesourcery.com>
1791
1792         * libc/machine/arm/arm_asm.h (_ISA_THUMB_2): __ARM_ARCH_7EM__
1793         added to the preprocessor condition.
1794
1795 2010-02-09  Corinna Vinschen  <corinna@vinschen.de>
1796
1797         * libc/locale/lmessages.c (__messages_load_locale): Take additional
1798         parameters for wide char to multibyte conversion.  Call
1799         __set_lc_messages_from_win on Cygwin.
1800         * libc/locale/lmessages.h: Make C++-safe.
1801         (__messages_load_locale): Change declaration.
1802         * libc/locale/lmonetary.c (__monetary_load_locale): Use
1803         _monetary_locale_buf as buffer pointer.
1804         * libc/locale/lnumeric.c (__numeric_load_locale): Use
1805         _numeric_locale_buf as buffer pointer.
1806         * libc/locale/timelocal.c (__time_load_locale): Use time_locale_buf
1807         as buffer pointer.
1808         * libc/locale/locale.c (loadlocale): Enable loading LC_MESSAGES data
1809         on Cygwin.
1810
1811 2010-02-08  Josef Wolf  <jw@raven.inka.de>
1812
1813         * libc/machine/m68k/memcpy.S: MISALIGEND_OK should not be set for
1814         __mcpu32__.
1815
1816 2010-02-07  Corinna Vinschen  <corinna@vinschen.de>
1817
1818         * libc/locale/locale.c: Add Cygwin's /usr/share/locale/locale.alias
1819         support to documentation.
1820         (__set_locale_from_locale_alias): Declare when build for Cygwin.
1821         (loadlocale): On Cygwin, if locale can't be recognized, call
1822         __set_locale_from_locale_alias to check for locale alias.
1823         Define FAIL macro to replace `return NULL' statements.  Replace
1824         throughout.
1825
1826 2010-02-07  Corinna Vinschen  <corinna@vinschen.de>
1827
1828         * libc/locale/locale.c: Fix typo in documentation.  Remove useless
1829         _MB_CAPABLE guards within other _MB_CAPABLE guards.  Add comment
1830         to remaining #endif's.
1831
1832 2010-02-06  Corinna Vinschen  <corinna@vinschen.de>
1833
1834         * libc/ctype/ctype_cp.h (_CTYPE_GEORGIAN_PS_128_254): Define.
1835         (_CTYPE_GEORGIAN_PS_255): Define.
1836         (_CTYPE_PT154_128_254): Define.
1837         (_CTYPE_PT154_255): Define.
1838         (__ctype_cp): Add array members for above ctype definitions.
1839         * libc/locale/locale.c (loadlocale): Make TIS-620 charset name
1840         available for all targets.  Add guards for setting the conversion
1841         function pointers.  Add support for GEORGIAN-PS and PT154 charsets.
1842         Change documentation to reflect current behaviour more closely.
1843         * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate
1844         "CP101" to "GEORGIAN-PS" and "CP102" to "PT154".
1845         * libc/stdlib/sb_charsets.c (__cp_conv): Add conversion arrays
1846         for GEORGIAN-PS and PT154.
1847         (__cp_index): Map invalid Windows codepage number 101 to
1848         GEORGIAN-PS conversion array, 102 to PT154 conversion array.
1849
1850 2010-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
1851
1852         * libc/posix/telldir.c: Remove bogus nested prototype of lseek().
1853
1854 2010-02-05  Corinna Vinschen  <corinna@vinschen.de>
1855
1856         * libc/locale/locale.c (loadlocale): Handle ISO-8859 and KOI8 charsets
1857         so that the dashes are optional.  Align documentation.
1858
1859 2010-02-05  Corinna Vinschen  <corinna@vinschen.de>
1860
1861         * libc/stdio/vfprintf.c: Include locale.h also if _WANT_IO_C99_FORMATS
1862         is defined.  Raise conversion buffer size to make sure it has enough
1863         room for numbers plus grouping character.  Define GROUPING flag.
1864         (_VFPRINTF_R): Add PRINTANDPAD macro.  Handle grouping flag character.
1865         Handle grouping for decimal integer and float values.
1866         * libc/stdio/vfwprintf.c: Ditto.
1867
1868 2010-02-01  Christopher Faylor  <me+cygwin@cgf.cx>
1869
1870         * libc/stdlib/__atexit.c (__atexit_lock): Define a global lock for
1871         atexit functions.
1872         (__register_exitproc): Use __atexit_lock rather than a local static
1873         lock.
1874         * libc/stdlib/__call_atexit.c: Ditto.
1875
1876 2010-01-29  Jeff Johnston  <jjohnstn@redhat.com>
1877
1878         * libc/search/Makefile.am: Create .def files for bsearch and qsort.
1879         * libc/search/Makefile.in: Regenerated.
1880         * libc/stdlib/stdlib.tex: Add bsearch and qsort.
1881
1882 2010-01-24  Corinna Vinschen  <corinna@vinschen.de>
1883
1884         * libc/locale/nl_langinfo.c (nl_langinfo): Return "CP932" when using
1885         SJIS on Cygwin.  Explain why.
1886
1887 2010-01-23  Corinna Vinschen  <corinna@vinschen.de>
1888
1889         * libc/locale/locale.c (loadlocale): Allow CP932 as alias for SJIS.
1890         Add to documentation.  Add a few comments to #endif's for Cygwin.  
1891
1892 2010-01-23  Corinna Vinschen  <corinna@vinschen.de>
1893
1894         * libc/locale/locale.c (loadlocale): Disable JIS entirely on Cygwin.
1895         Allow TIS620 and TIS-620 as aliases for CP874 on Cygwin.
1896
1897 2010-01-22  Corinna Vinschen  <corinna@vinschen.de>
1898
1899         * libc/locale/lmonetary.c (__monetary_load_locale): Take additional
1900         parameters for wide char to multibyte conversion.  Call
1901         __set_lc_monetary_from_win on Cygwin.
1902         * libc/locale/lmonetary.h: Make C++-safe.
1903         (__monetary_load_locale): Change declaration.
1904         * libc/locale/lnumeric.c (__numeric_load_locale): Take additional
1905         parameters for wide char to multibyte conversion.  Call
1906         __set_lc_numeric_from_win on Cygwin.
1907         * libc/locale/lnumeric.h: Make C++-safe.
1908         (__numeric_load_locale): Change declaration.
1909         * libc/locale/locale.c (lconv): De-constify for Cygwin.
1910         (__set_charset_from_locale): Rename from
1911         __set_charset_from_codepage.  Take locale as parameter instead of
1912         a codepage.
1913         (loadlocale): Allow "EUC-JP" for "EUCJP" and "EUC-KR" for "EUCKR".
1914         Change documnetation accordingly.  Enable LC_COLLATE, LC_MONETARY,
1915         LC_NUMERIC, and LC_TIME handling on Cygwin.
1916         (_localeconv_r): On Cygwin, copy values from monetary and numeric
1917         domain if change has been noted.
1918         * libc/locale/nl_langinfo.c (nl_langinfo): Accommodate change of
1919         am/pm layout in struct lc_time_T.
1920         * libc/locale/timelocal.c (_C_time_locale): Accommodate
1921         redefinition of am/pm members.
1922         (__time_load_locale): Take additional parameters for wide char
1923         to multibyte conversion.  Call __set_lc_time_from_win on Cygwin.
1924         * libc/locale/timelocal.h: Make C++-safe.
1925         (struct lc_time_T): Convert am and pm to a am_pm array for easier
1926         consumption by strftime and strptime.
1927         (__time_load_locale): Change declaration.
1928         * libc/time/strftime.c: Change documentation to reflect changes to
1929         strftime.  Remove locale constant strings in favor of access to
1930         locale-specifc data.
1931         (_ctloc): Define access method for locale-specifc data.
1932         (TOLOWER): Define for tolower conversion.
1933         (strftime): Throughout, convert locale-specific formats to use
1934         locale-specific data.  Add GNU-specific "%P" format.
1935         * libc/time/strptime.c: Remove locale constant strings in favor of
1936         access to locale-specifc data.
1937         (_ctloc): Define access method for locale-specifc data.
1938         (strptime): Throughout, convert locale-specific formats to use
1939         locale-specific data.
1940
1941 2010-01-20  Corinna Vinschen  <corinna@vinschen.de>
1942
1943         * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate
1944         often-used charsets into Linux compatible codesets.
1945
1946 2010-01-19  Andy Koppe  <andy.koppe@gmail.com>
1947
1948         * libc/stdio/vfscanf.c (__SVFSCANF_R): Fix handling of non-ASCII
1949         characters and allow invalid bytes in format string.
1950
1951 2010-01-19  Corinna Vinschen  <corinna@vinschen.de>
1952
1953         * libc/stdlib/wcstombs_r.c (_wcstombs_r): Handle invalid characters
1954         correctly also in the s==NULL case.
1955
1956 2010-01-17  Corinna Vinschen  <corinna@vinschen.de>
1957
1958         * libc/locale/locale.c (loadlocale): Change comments to refer to
1959         ISO 639-3 rather than 639-2.
1960
1961 2010-01-17  Corinna Vinschen  <corinna@vinschen.de>
1962
1963         * libc/locale/locale.c (loadlocale): Allow three character
1964         language codes to accommodate ISO 639-2 codes.
1965
1966 2010-01-17  Corinna Vinschen  <corinna@vinschen.de>
1967
1968         * libc/locale/locale.c (lc_ctype_charset): Disable defaulting to
1969         "UTF-8" on Cygwin.
1970         (lc_message_charset): Ditto.
1971         (loadlocale): Disable setting charset of the "C" locale to "UTF-8" on
1972         Cygwin.
1973         * libc/stdlib/mbtowc_r.c (__mbtowc): Add Cygwin-specific comment.
1974         * libc/stdlib/wctomb_r.c (__wctomb): Ditto.
1975
1976 2010-01-14  Corinna Vinschen  <corinna@vinschen.de>
1977
1978         * libc/include/sys/_default_fcntl.h (O_CLOEXEC): Define as _FNOINHERIT.
1979         (F_DUPFD_CLOEXEC): Define for Cygwin.
1980         * libc/include/sys/unistd.h (dup3): Define for Cygwin.
1981         (pipe2): Ditto.
1982
1983 2010-01-14  Corinna Vinschen  <corinna@vinschen.de>
1984
1985         * libc/stdio/vfprintf.c (_VFPRINTF_R): Just wave bytes invalid in
1986         the current charset through.
1987
1988 2010-01-11  Sebastian Huber <sebastian.huber@embedded-brains.de>
1989
1990         * libc/posix/telldir.c (_cleanupdir): Fixed usage of freed memory.
1991
1992 2010-01-11  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1993
1994         * libc/include/math.h (log2, log2f): Disable macro versions for C++,
1995         as they are incompatible with OpenMP/C++ headers.
1996
1997 2010-01-10  Corinna Vinschen  <corinna@vinschen.de>
1998
1999         * libc/stdlib/mbtowc_r.c (__ascii_mbtowc): Disallow conversion of
2000         non-ASCII chars on Cygwin.
2001         * libc/stdlib/wctomb_r.c (__ascii_wctomb): Ditto.
2002
2003 2009-12-22  Eric Blake  <ebb9@byu.net>
2004
2005         * libc/include/sys/unistd.h (suboptarg, getsubopt): Move...
2006         * libc/include/stdlib.h: ...here, to match POSIX for getsubopt.
2007
2008 2009-12-17  Jeff Johnston  <jjohnstn@redhat.com>
2009
2010         * NEWS: Update with 1.18.0 info.
2011         * README: Ditto.
2012         * acinclude.m4: Change version number to 1.18.0.
2013         * aclocal.m4: Regenerated.
2014         * configure: Ditto.
2015         * doc/aclocal.m4: Ditto.
2016         * doc/configure: Ditto.
2017         * libc/*/aclocal.m4: Ditto.
2018         * libc/*/configure: Ditto.
2019         * libc/libc.texinfo: Ditto.
2020         * libm/*/aclocal.m4: Ditto.
2021         * libm/*/configure: Ditto.
2022         * libm/libm.texinfo: Ditto.
2023         * libc/sys/linux/shared.ld: Add VERS_1.18
2024
2025 2009-12-17  Jeff Johnston <jjohnstn@redhat.com>
2026
2027         * libc/include/_syslist.h: Add _mkdir transform.
2028
2029 2009-12-17  Jerker Back  <jerker.back@gmail.com>
2030
2031         * libc/iconv/lib/local.h[!__GNUC__]: Add alternative version of
2032         ICONV_ZERO_MB_STATE_T macro.
2033         * libc/iconv/lib/ucsconv.c (ucs_based_conversion_get_state): Use
2034         temporary local variable nullstate to hold empty mbstate_t.
2035
2036 2009-12-17  Jerker Back  <jerker.back@gmail.com>
2037
2038         * libc/include/_ansi.h: Add new _EXFNPTR macro for using with
2039         function pointer arguments.
2040         * libc/iconv/lib/conv.h: Use _EXFNPTR rather than _EXPARM macro.
2041         * libc/iconv/lib/ucsconv.h: Ditto.
2042         * libc/include/stdlib.h: Use new _EXFNPTR macro for function pointers.
2043         * libc/include/sys/reent.h: Ditto.
2044         * libc/include/sys/unistd.h: Ditto.
2045         * libc/search/bsearch.c: Ditto.
2046         * libc/stdio/fseek.c: Ditto.
2047         * libc/stdio64/fseeko64.c: Ditto.
2048         * libc/stdlib/atexit.c: Ditto.
2049         * libc/stdlib/on_exit.c: Ditto.
2050
2051 2009-12-17  Ralf Corsépius <ralf.corsepius@rtems.org>
2052
2053         * libc/include/machine/ieeefp.h: Rework __IEEE_*_ENDIAN handling.
2054         * libc/machine/arm/machine/endian.h: Remove (Conflicts with
2055         libc/include/machine/endian.h)
2056
2057 2009-12-17  Ralf Corsépius <ralf.corsepius@rtems.org>
2058
2059         * libc/include/machine/setjmp.h: Set up _JBLEN #ifdef __m68k__.
2060
2061 2009-12-17  Ralf Corsepius <ralf.corsepius@rtems.org>
2062
2063         * libc/include/pthread.h: Add pthread_atfork, pthread_rwlock_unlock
2064         * libc/include/sys/stat.h: Use struct timespec st_*tim,
2065         blksize_t st_blksize, blkcnt_t st_blocks.
2066         Add st_*time compatibility macros.
2067
2068 2009-12-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2069
2070         * libc/sys/rtems/machine/param.h: Only use sizeof(double) -1
2071         for ALIGNBYTES on SPARC.
2072
2073 2009-12-16  Jeff Johnston  <jjohnstn@redhat.com>
2074
2075         * libc/include/sys/errno.h: Move EHOSTDOWN, EPFNOSUPPORT,
2076         and ETOOMANYREFS into general list as they are referenced
2077         by OpenGroup and needed by RTEMS.
2078
2079 2009-12-16  Ralf Corsépius <ralf.corsepius@rtems.org>
2080
2081         * libc/search/hcreate.c: Don't include <sys/queue.h> (Unused).
2082
2083 2009-12-16  Ralf Corsépius <ralf.corsepius@rtems.org>
2084
2085         * libc/sys/rtems/machine/_types.h: New (Derived from
2086         machine/_default_types.h).
2087         * libc/sys/rtems/crt0.c: Rework. Introduce macro RTEMS_STUB.
2088         * libc/sys/rtems/sys/param.h:
2089         Update copyright notice from FreeBSD.
2090         Remove HZ.
2091         Add #include <sys/priority.h>
2092         Remove priority handling (moved to sys/priority.h).
2093         Remove CLBYTES (Unused, abandoned in BSD).
2094         * libc/sys/rtems/sys/queue.h: Update copyright (from FreeBSD).
2095         Remove CIRCLEQ_*.
2096
2097 2009-12-15  Conny Marco Menebrocker  <c-m-m@gmx.de>
2098
2099         * libc/machine/xc16x/Makefile.am: Fix typo and refer
2100         to puts.c instead of putc.c.
2101         * libc/machine/xc16x/Makefile.in: Regenerated.
2102
2103 2009-12-14  Maxim Kuvyrkov <maxim@codesourcery.com>
2104
2105         * libc/machine/m68k/memcpy.S: Patch to support
2106         boards which do not support unaligned read/write.
2107
2108 2009-12-10  Conny Marco Menebrocker  <c-m-m@gmx.de>
2109
2110         * configure.host: Add xc16x support.
2111         * libc/include/machine/ieeefp.h: Ditto.
2112         * libc/include/sys/config.h: Ditto.
2113         * libc/machine/configure.in: Ditto.
2114         * libc/machine/Makefile.in: Regenerated.
2115         * libc/machine/aclocal.m4: Ditto.
2116         * libc/machine/configure: Ditto.
2117         * libc/machine/xc16x/Makefile.am: New file.
2118         * libc/machine/xc16x/Makefile.in: Ditto.
2119         * libc/machine/xc16x/aclocal.m4: Ditto.
2120         * libc/machine/xc16x/configure: Ditto.
2121         * libc/machine/xc16x/configure.in: Ditto.
2122         * libc/machine/xc16x/putchar.c: Ditto.
2123         * libc/machine/xc16x/puts.c: Ditto.
2124         * libc/machine/xc16x/setjmp.S: Ditto.
2125
2126 2009-12-08  Eric Blake  <ebb9@byu.net>
2127
2128         Fix some *at declarations.
2129         * libc/include/stdio.h (symlinkat): Move this...
2130         * libc/include/sys/_default_fcntl.h (unlinkat): ...and this...
2131         * libc/include/sys/unistd.h (symlinkat, unlinkat): ...here, to
2132         match POSIX.
2133
2134 2009-12-03  Craig Howland <howland@LGSInnovations.com>
2135
2136         * libc/stdlib/strtod.c:  Correct "NO_REENT" to "_REENT_ONLY".
2137         * libc/stdlib/wcstod.c:  Ditto.
2138         * libc/stdlib/dtoastub.c:  Ditto.
2139
2140 2009-11-23  Corinna Vinschen  <corinna@vinschen.de>
2141
2142         Use NetBSD fix for CVE-2009-0689 security vulnerability.
2143         * libc/include/sys/reent.h (_Kmax): Define here based on the sizeof
2144         size_t, as in latest NetBSD.
2145         * libc/reent/reent.c (_reclaim_reent): Use _Kmax rather than constant
2146         value 15.
2147         * libc/stdlib/mprec.c (_Kmax): Don't define here.  Explain why.
2148
2149 2009-11-20  Nick Clifton  <nickc@redhat.com>
2150
2151         * libc/machine/rx/strncat.S (_strncat): Replace use of r6
2152         (call-saved) with r14 (call-used).
2153
2154 2009-11-18  Dave Korn  <dave.korn.cygwin@googlemail.com>
2155
2156         * libm/machine/i386/f_tan.S (_f_tan): Free fp stack register
2157         containing useless constant before advancing fp sp over it.
2158         (_f_tanf): Likewise.
2159
2160 2009-11-18  Corinna Vinschen  <corinna@vinschen.de>
2161
2162         * libc/stdio/vfprintf.c: Include ../stdlib/local.h.  Replace call to
2163         _mbtowc_r with direct call to __mbtowc.
2164         * libc/stdio/vfscanf.c: Ditto.
2165         * libc/stdlib/btowc.c: Include local.h.  Replace call to _mbtowc_r
2166         with direct call to __mbtowc.
2167         * libc/stdlib/mblen.c: Ditto.
2168         * libc/stdlib/mblen_r.c: Ditto.
2169         * libc/stdlib/mbrtowc.c: Ditto.
2170         * libc/stdlib/mbstowcs_r.c: Ditto.
2171         * libc/stdlib/mbtowc.c: Ditto.
2172         * libc/stdlib/wcrtomb.c: Include local.h.  Replace call to _wctomb_r
2173         with direct call to __wctomb.
2174         * libc/stdlib/wcsnrtombs.c: Ditto.
2175         (_wcsnrtombs_r): Ditto.
2176         * libc/stdlib/wcstombs_r.c: Ditto.
2177         * libc/stdlib/wctob.c: Ditto.
2178         * libc/stdlib/wctomb.c: Ditto.
2179
2180         * libc/stdlib/mbrtowc.c (mbrtowc): Implement independently from
2181         _mbrtowc_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are
2182         defined.
2183         * libc/stdlib/wcrtomb.c (wcrtomb): Implement independently from
2184         _wcrtomb_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are
2185         defined.
2186
2187         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Drop unnecessary test for
2188         ch >= 0.
2189
2190 2009-11-17  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
2191
2192         * libm/common/fdlibm.h (logb, logbf): Move decls from here...
2193         * libc/include/math.h (logb, logbf): ...to here.
2194
2195 2009-11-06  Jon Turney  <jon.turney@dronecode.org.uk>
2196
2197         * libc/include/ctype.h (__ctype_lookup): Fix precedence.
2198
2199 2009-10-30  Corinna Vinschen  <corinna@vinschen.de>
2200
2201         * libc/stdio/fflush.c (_fflush_r): Store old errno to check for
2202         low-level seek error condition.  Restore old errno in case of
2203         success.  Don't use new position after seek as error condition,
2204         rather check for return value of -1 and errno.  Handle EINVAL
2205         just like ESPIPE.  Only set fp->_offset if errno is 0.
2206
2207 2009-10-27  Nick Clifton  <nickc@redhat.com>
2208
2209         * MAINTAINERS (ARM): Add myself as an ARM maintainer.
2210
2211 2009-10-26  DJ Delorie  <dj@redhat.com>
2212
2213         * configure.host: Add support for RX architecture.
2214         * libc/include/machine/ieeefp.h: Likewise.
2215         * libc/include/machine/setjmp.h: Likewise.
2216         * libc/include/machine/configure.in: Likewise.
2217         * libc/include/machine/configure: Regenerate.
2218         * libc/machine/rx: New directory.
2219         * libc/machine/rx/*: New files to support RX architecture.
2220
2221 2009-10-24  Eric Blake  <ebb9@byu.net>
2222
2223         * libc/include/ctype.h (__ctype_lookup): New macro.
2224         (isalpha, isupper, islower, isdigit, isxdigit, isspace, ispunct)
2225         (isalnum, isprint, isgraph, iscntrl, isblank): Use it to fix bug
2226         on 64-bit machines.
2227
2228 2009-10-20  Jeff Johnston  <jjohnstn@redhat.com>
2229
2230         * configure.host: Don't set -O2 flag in newlib_cflags.  Leave
2231         that to CFLAGS.
2232         * acinclude.m4: Don't reset CFLAGS before calling _AC_PROG_CC_G
2233         as it sets the same flags as we are using.
2234         * aclocal.m4: Regenerated.
2235         * configure: Ditto.
2236         * Makefile.in: Ditto.
2237         * iconvdata/aclocal.m4: Ditto.
2238         * iconvdata/configure: Ditto.
2239         * iconvdata/Makefile.in: Ditto.
2240         * doc/aclocal.m4: Ditto.
2241         * doc/configure: Ditto.
2242         * doc/Makefile.in: Ditto.
2243         * libc/aclocal.m4: Ditto.
2244         * libc/configure: Ditto.
2245         * libc/Makefile.in: Ditto.
2246         * libc/*Makefile.in: Ditto.
2247         * libc/*aclocal.m4: Ditto.
2248         * libc/*configure: Ditto.
2249         * libm/*Makefile.in: Ditto.
2250         * libm/*aclocal.m4: Ditto.
2251         * libm/*configure: Ditto.
2252
2253 2009-10-16  Jeff Johnston  <jjohnstn@redhat.com>
2254
2255         * libc/include/sys/config.h[__CYGWIN__]: Set __USE_XOPEN2K flag
2256         if not __STRICT_ANSI__ or stdc version C99 or greater.
2257         * libc/include/stdio.h[__STRICT_ANSI__]: Add __USE_XOPEN2K check
2258         for fseeko and ftello prototypes.
2259
2260 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
2261
2262         * libc/include/wchar.h (struct tm0: Declare as incomplete type.
2263
2264 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
2265
2266         * libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
2267         exception for KOI8 charsets.
2268
2269 2009-10-13  Eric Blake  <ebb9@byu.net>
2270
2271         * libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
2272         new to POSIX 2008.
2273
2274 2009-10-13  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
2275
2276         * libc/include/sys/signal.h: Include <sys/types.h> always.
2277         [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
2278         standards.
2279
2280 2009-10-09  Dave Korn  <dave.korn@artimi.com>
2281
2282         * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
2283         defining struct timeval.
2284
2285 2009-10-09  Corinna Vinschen  <corinna@vinschen.de>
2286
2287         * libc/locale/locale.c (DEFAULT_LOCALE): New define.
2288         (__default_locale): New global variable set to the default locale.
2289         (__get_locale_env): Return __default_locale rather than fixed "C".
2290
2291 2009-10-08  Jeff Johnston  <jjohnstn@redhat.com>
2292
2293         * configure.host: For RTEMS, define HAVE_ASSERT_FUNC.
2294         * libc/stdlib/assert.c (_assert_func): Do not specify
2295         __assert_func if HAVE_ASSERT_FUNC flag is set.
2296
2297 2009-10-08  Eric Blake  <ebb9@byu.net>
2298
2299         * libc/include/getopt.h (__getopt_r, __getopt_long_r)
2300         (__getopt_long_only_r): Protect declarations, to avoid compiler
2301         warning.
2302
2303 2009-10-07  Corinna Vinschen  <corinna@vinschen.de>
2304
2305         * libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
2306         charset on Cygwin.
2307
2308 2009-10-03  Corinna Vinschen  <corinna@vinschen.de>
2309
2310         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
2311         value encoding.
2312         * libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
2313         value decoding.
2314
2315 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
2316
2317         * libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as locale
2318         prefix.  Add some words to documentation.
2319
2320 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
2321
2322         * libc/stdlib/sb_charsets.c: Throughout, translate undefined
2323         characters to their corresponding Windows Unicode value.
2324
2325 2009-09-28  Michael Eager <eager@eagercon.com>
2326
2327         * configure.host: Add microblaze.
2328         * libc/include/machine/ieeefp.h [MICROBLAZE]: Define __IEEE_BIG_ENDIAN.
2329         * libc/include/machine/setjmp.h [MICROBLAZE]: Define _JBLEN, _JBTYPE.
2330         * libc/include/sys/config.h [MICROBLAZE]: Define _REENT_SMALL,
2331         _UNIX98_THREAD_MUTEX_ATTRIBUTES.
2332         * libc/include/sys/types.h: Treat XMK like rtems, define
2333         PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE,
2334         PTHREAD_MUTEX_DEFAULT, PTHREAD_STACK_MIN, define stuct pthread_attr_s.
2335         * libc/machine/configure.in: Add microblaze.
2336         * libc/machine/configure: Add microblaze (not regenerated).
2337         * libc/machine/microblaze/configure.in: NEW.
2338         * libc/machine/microblaze/configure: Generate.
2339         * libc/machine/microblaze/Makefile.am: NEW.
2340         * libc/machine/microblaze/Makefile.in: Generate.
2341         * libc/machine/microblaze/{abort.c, strcmp.c, strcpy.c, strlen.c,
2342         mallocr.c, longjmp.S, setjmp.S}: NEW.
2343         * libc/stdlib/mallocr.c [MICROBLAZE]: Don't declare sbrk prototype,
2344         mALLOc(): return malloc value.
2345
2346 2009-09-27  Corinna Vinschen  <corinna@vinschen.de>
2347
2348         * libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin.
2349         (lc_message_charset): Ditto.
2350         (loadlocale): Set charset of the "C" locale to "UTF-8" on Cygwin.
2351         * libc/stdlib/mbtowc_r.c (__mbtowc): Default to __utf8_mbtowc on
2352         Cygwin.
2353         * libc/stdlib/wctomb_r.c (__wctomb): Default to __utf8_wctomb on
2354         Cygwin.
2355
2356 2009-09-26  Eric Blake  <ebb9@byu.net>
2357
2358         * libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:
2359         Add declarations.
2360
2361 2009-09-24  Eric Blake  <ebb9@byu.net>
2362
2363         * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:
2364         Add declarations.
2365
2366 2009-09-23  Corinna Vinschen  <corinna@vinschen.de>
2367
2368         * libc/locale/locale.c: Drop Cygwin-specific windows.h include.
2369         (loadlocale): Call __set_charset_from_codepage with 0 codepage.
2370
2371 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
2372
2373         * libc/include/stdlib.h: Add posix_memalign.
2374
2375 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
2376
2377         * configure.host (*-rtems*): Remove -DMISSING_SYSCALL_NAMES.
2378         Add -DHAVE_BLKSIZE, -D_NO_WORDEXP -D_NO_POPEN.
2379
2380 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
2381
2382         * configure.host (m32c): Move setting -DABORT_PROVIDED to second
2383         "case $host".
2384
2385 2009-09-18  Christopher Faylor  <me+cygwin@cgf.cx>
2386
2387         * libc/include/sys/unistd.h: Declare getpagesize as returning
2388         POSIX-mandated int.
2389         * libc/sys/linux/sys/unistd.h: Ditto.
2390
2391 2009-08-31  Takaki Makino  <t@snowelm.com>
2392
2393         * libm/machine/i386/f_pow.c(_f_pow): Alter ASM so it works with
2394         newer gcc versions.
2395         * libm/maachine/i386/f_powf.c(_f_powf): Ditto.
2396
2397 2009-08-25  Andy Koppe  <andy.koppe@gmail.com>
2398
2399         * libc/stdlib/sb_charsets.c (__micro_atoi): Allow five-digit codepage
2400         numbers.
2401         * libc/locale/locale.c (loadlocale): Set MB_CUR_MAX to 1 for KOI8
2402         charsets.
2403         * libc/stdlib/local.h (__cp_conv): Remove incorrect number of codepages.
2404
2405 2009-08-24  Corinna Vinschen  <corinna@vinschen.de>
2406
2407         * libc/locale/locale.c: Update documentation.
2408         (loadlocale): Map "KOI8-R" and "KOI8-U" to CP20866 and CP21866.
2409
2410 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
2411
2412         * libc/stdlib/sb_charsets.c (__cp_conv): Add KOI8-R (Russian, CP20866)
2413         and KOI8-U (Ukrainian, CP21866) to Windows codepage conversion tables.
2414         * libc/ctype/ctype_cp.h (__ctype_cp): Likewise for ctype tables.
2415
2416 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
2417
2418         * libc/ctype/iswspace.c (iswspace): Include "non-breaking
2419         space" (U+00A0).
2420         * libc/ctype/iswblank.c (iswblank): Likewise.
2421
2422 2009-08-21  Corinna Vinschen  <corinna@vinschen.de>
2423
2424         * libc/locale/locale.c (loadlocale): Throughout check charset string
2425         case insensitive and store internal charset string uppercased.  Allow
2426         "UTF8" additionally to "UTF-8".  Add this change to documentation.
2427
2428 2009-08-21  Eric Blake  <ebb9@byu.net>
2429
2430         * libc/include/iconv.h (iconv): Match POSIX prototype.
2431         * libc/iconv/lib/iconv.c (iconv): Likewise.
2432
2433 2009-08-21  Craig Howland <howland@LGSInnovations.com>
2434
2435         * libm/common/s_remquo.c (remquo):  Fix sign of quotient when |x|==|y|.
2436         * libc/stdio/mktemp.c:  Add #include <stdlib.h> for function prototypes.
2437
2438 2009-08-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2439
2440         * iconvdata/Makefile.am (all): Remove.
2441         * libc/sys/a29khif/Makefile.am (all-am): Rename from ...
2442         (all): ... this.
2443         * libc/sys/arc/Makefile.am: Likewise.
2444         * libc/sys/arm/Makefile.am: Likewise.
2445         * libc/sys/d10v/Makefile.am: Likewise.
2446         * libc/sys/decstation/Makefile.am: Likewise.
2447         * libc/sys/h8300hms/Makefile.am: Likewise.
2448         * libc/sys/h8500hms/Makefile.am: Likewise.
2449         * libc/sys/linux/Makefile.am: Likewise.
2450         * libc/sys/linux/machine/i386/Makefile.am: Likewise.
2451         * libc/sys/m88kbug/Makefile.am: Likewise.
2452         * libc/sys/mmixware/Makefile.am: Likewise.
2453         * libc/sys/netware/Makefile.am: Likewise.
2454         * libc/sys/rdos/Makefile.am: Likewise.
2455         * libc/sys/rtems/Makefile.am: Likewise.
2456         * libc/sys/sh/Makefile.am: Likewise.
2457         * libc/sys/sparc64/Makefile.am: Likewise.
2458         * libc/sys/sun4/Makefile.am: Likewise.
2459         * libc/sys/sysmec/Makefile.am: Likewise.
2460         * libc/sys/sysnec810/Makefile.am: Likewise.
2461         * libc/sys/sysnecv850/Makefile.am: Likewise.
2462         * libc/sys/sysvi386/Makefile.am: Likewise.
2463         * libc/sys/sysvnecv70/Makefile.am: Likewise.
2464         * libc/sys/tic80/Makefile.am: Likewise.
2465         * libc/sys/w65/Makefile.am: Likewise.
2466         * libc/sys/z8ksim/Makefile.am: Likewise.
2467         * iconvdata/Makefile.in: Regenerate.
2468         * libc/sys/a29khif/Makefile.in: Likewise.
2469         * libc/sys/arc/Makefile.in: Likewise.
2470         * libc/sys/arm/Makefile.in: Likewise.
2471         * libc/sys/d10v/Makefile.in: Likewise.
2472         * libc/sys/decstation/Makefile.in: Likewise.
2473         * libc/sys/h8300hms/Makefile.in: Likewise.
2474         * libc/sys/h8500hms/Makefile.in: Likewise.
2475         * libc/sys/linux/Makefile.in: Likewise.
2476         * libc/sys/linux/machine/i386/Makefile.in: Likewise.
2477         * libc/sys/m88kbug/Makefile.in: Likewise.
2478         * libc/sys/mmixware/Makefile.in: Likewise.
2479         * libc/sys/netware/Makefile.in: Likewise.
2480         * libc/sys/rdos/Makefile.in: Likewise.
2481         * libc/sys/rtems/Makefile.in: Likewise.
2482         * libc/sys/sh/Makefile.in: Likewise.
2483         * libc/sys/sparc64/Makefile.in: Likewise.
2484         * libc/sys/sun4/Makefile.in: Likewise.
2485         * libc/sys/sysmec/Makefile.in: Likewise.
2486         * libc/sys/sysnec810/Makefile.in: Likewise.
2487         * libc/sys/sysnecv850/Makefile.in: Likewise.
2488         * libc/sys/sysvi386/Makefile.in: Likewise.
2489         * libc/sys/sysvnecv70/Makefile.in: Likewise.
2490         * libc/sys/tic80/Makefile.in: Likewise.
2491         * libc/sys/w65/Makefile.in: Likewise.
2492         * libc/sys/z8ksim/Makefile.in: Likewise.
2493
2494         * configure.in (newlib_cv_ldbl_eq_dbl): Rename cache variable
2495         from newlib_ldbl_eq_dbl.
2496         * configure: Regenerate.
2497
2498 2009-08-19  Eric Blake  <ebb9@byu.net>
2499
2500         * libc/Makefile.am (SUBDEFS): Correctly build popen docs.
2501         * libc/libc.texinfo (Top): Add posix node to menu.
2502
2503 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
2504
2505         * newlib.hin: Add comment regarding file being manually edited.
2506         * Makefile.am: Add no-op rule for newlib.hin.
2507         * Makefile.in: Regenerated.
2508
2509 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
2510
2511         * acconfig.h: Add templates for _HAVE_LONG_DOUBLE and _LDBL_EQ_DBL.
2512
2513 2009-08-18  Eric Blake  <ebb9@byu.net>
2514
2515         * libc/posix/popen.c (popen): Fix documented prototype.
2516
2517         Improve popen compatibility with glibc.
2518         * libc/posix/popen.c (popen): The 2006-08-22 change to use
2519         FD_CLOEXEC disagrees with other implementations; instead, use
2520         pidlist to work even when fcntl is not available.  Meanwhile,
2521         support the 'e' modifier to set CLOEXEC, as in glibc.  Drop
2522         cygwin-specific code, now that cygwin has its own version.
2523         * libc/posix/Makefile.am (CHEWOUT_FILES): Document popen.
2524         * libc/posix/posix.tex: New file.
2525
2526 2009-08-17  Craig Howland <howland@LGSInnovations.com>
2527
2528         * libc/string/wcsncpy.c (wcsncpy):  Re-write function based on small
2529         version of strncpy() (fixing two bugs).
2530
2531 2009-08-13  Corinna Vinschen  <corinna@vinschen.de>
2532
2533         * libc/stdio/mktemp.c (mkdtemp): Fix typo in function name.
2534
2535 2009-08-12  Jeff Johnston  <jjohnstn@redhat.com>
2536
2537         * libc/stdio/mktemp.c (_gettemp): Do not call _mkdir_r unless
2538         HAVE_MKDIR is defined.
2539
2540 2009-08-12  Hans-Peter Nilsson  <hp@axis.com>
2541
2542         * libc/include/reent.h: Add prototype and definition of _mkdir_r.
2543         * libc/reent/Makefile.am (GENERAL_SOURCES): Add mkdirr.c.
2544         (CHEWOUT_FILES): Add mkdirr.def.
2545         * libc/reent/Makefile.in: Regenerate.
2546         * libc/reent/mkdirr.c: New file.
2547
2548 2009-08-10  Jeff Johnston  <jjohnstn@redhat.com>
2549
2550         * libc/stdlib/wcstombs.c: Change documentation to specify size_t
2551         return type instead of int.
2552
2553 2009-07-29  Jeff Johnston  <jjohnstn@redhat.com>
2554
2555         * libc/stdlib/a64l.c: Fix to use 'a' instead of 'A' in calculation
2556         when a lower-case character is detected.
2557
2558 2009-07-29  Corinna Vinschen  <corinna@vinschen.de>
2559
2560         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Rework UTF-16 surrogate
2561         pair handling to be more bullet-proof even with incomplete UTF-8
2562         sequences.  Add check for 4 byte sequences resulting in values
2563         outside the valid Unicode range.  Add a comment to clarify checking
2564         for invalid CESU-8 sequences.
2565
2566 2009-07-28  Corinna Vinschen  <corinna@vinschen.de>
2567
2568         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Fix incrementing n in case
2569         of handling incomplete sequences.
2570
2571 2009-07-22  Eric Blake  <ebb9@byu.net>
2572
2573         Avoid a fault from locking a closed standard file.
2574         * libc/stdio/fflush.c (_fflush_r): Give up early if stream has
2575         been previously closed.
2576
2577 2009-07-09  Craig Howland <howland@LGSInnovations.com>
2578
2579         * libm/math/ef_scalb.c:  Replace isnanf() (pre-C99 function call) with
2580         isnan() (C99 macro).
2581         * libm/math/wf_log.c:  Ditto.
2582         * libm/math/wf_j0.c:  Ditto.
2583         * libm/math/wf_sqrt.c:  Ditto.
2584         * libm/math/wf_pow.c:  Ditto.
2585         * libm/math/wf_fmod.c:  Ditto.
2586         * libm/math/wf_remainder.c:  Ditto.
2587         * libm/math/wf_scalb.c:  Ditto.
2588         * libm/math/wf_atanh.c:  Ditto.
2589         * libm/math/wf_cosh.c:  Ditto.
2590         * libm/math/wf_acos.c:  Ditto.
2591         * libm/math/wf_acosh.c:  Ditto.
2592         * libm/math/wf_jn.c:  Ditto.
2593         * libm/math/wf_log10.c:  Ditto.
2594         * libm/math/wf_asin.c:  Ditto.
2595         * libm/math/wf_j1.c:  Ditto.
2596         * libm/common/sf_isnan.c:  Add #include <ieeefp.h>, fix comment.
2597         * libm/common/sf_isinf.c:  Add #include <ieeefp.h>, adjust comment to
2598         match that from s_isinf.c.
2599         * libc/include/machine/ieeefp.h:  Simplify isinf and isnan macros to
2600         remove un-necessary extension use (in a similar manner to as was
2601         recently done in math.h).
2602         * libc/include/math.h:  Remove isnanf and isinff prototypes (are in
2603         ieeefp.h).
2604         * libm/machine/spu/sf_isinf.c:  Fix comment (remove <math.h>).
2605
2606 2009-07-06  Joel Sherrill <joel.sherrill@oarcorp.com>
2607
2608         * libc/include/sys/features.h: Enable UNIX98 mutex attributes
2609         for RTEMS.
2610
2611 2009-07-03  Eric Blake  <ebb9@byu.net>
2612
2613         Add mkdtemp, mkstemps.
2614         * libc/stdio/mktemp.c: Fix documentation.
2615         (_gettemp): Add domkdir and length parameters.  Check for
2616         insufficient 'X' suffix.  Drop cygwin-specific code.
2617         (_mkstemp_r, _mktemp_r, mkstemp, mktemp): Adjust clients.
2618         (_mkdtemp_r, _mkstemps_r, mkdtemp, mkstemps): New functions.
2619         * libc/include/stdlib.h (_mkdtemp_r, _mkstemps_r, mkdtemp)
2620         (mkstemps): Declare them.
2621
2622         Add fpurge.
2623         * libc/stdio/fpurge.c (fpurge, _fpurge_r): New file.
2624         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES, fpurge):
2625         Build it.
2626         * libc/stdio/Makefile.in: Regenerated.
2627         * libc/include/stdio.h (fpurge, _fpurge_r): New declarations.
2628         * libc/stdio/stdio.tex: Build documentation.
2629
2630 2009-06-23  Jeff Johnston  <jjohnstn@redhat.com>
2631
2632         * Makefile.am (MATHOBJS_IN_LIBC): Add s_fpclassify and
2633         sf_fpclassify as these are now used for infinity testing.
2634         * Makefile.in: Regenerated.
2635
2636 2009-06-19  Joel Sherrill <joel.sherrill@oarcorp.com>
2637
2638         * libc/sys/rtems/machine/param.h: Change ALIGNBYTES
2639         so it can point to an aligned structure or double.
2640
2641 2009-06-18  Corinna Vinschen  <corinna@vinschen.de>
2642
2643         * libc/locale/locale.c (loadlocale): Add handling of "@cjknarrow"
2644         modifier on _MB_CAPABLE targets.  Add comment to explain.  Improve
2645         documentation.
2646
2647 2009-06-17  Michael Eager <eager@eagercon.com>
2648
2649         * libc/include/pthread.h: Support XMK (Xilinx) BSP, add RTEMS to
2650         PTHREAD_MUTEX_NORMAL.
2651         * libc/include/sys/features.h: Same.
2652         * libc/include/sys/types.h: Same.
2653
2654 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
2655
2656         * libc/include/locale.h (struct lconv): Add missing members required
2657         by POSIX.1-2008.
2658         * libc/locale/locale.c (lconv): Initialize new members to default
2659         values in "C" locale.
2660
2661 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
2662
2663         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length of
2664         radix char instead of assuming length 1.
2665         * libc/stdlib/gdtoa-gethex.c: Remove use of USE_LOCALE.
2666         (gethex): Allow multibyte decimal point.
2667         Fix compiler warnings due to different signedness of pointer types.
2668         * libc/stdlib/strtod.c: Remove use of USE_LOCALE.
2669         (_strtod_r): Allow multibyte decimal point.
2670         * libc/stdlib/wcstod.c (_wcstod_r): Evaluate correct wide char
2671         endptr position if the decimal point is a multibyte char.
2672
2673 2009-06-16  Craig Howland <howland@LGSInnovations.com>
2674
2675         * libc/ctype/local.h (__locale_charset): Add arguments to
2676         prototype
2677         * libc/stdlib/local.h (__locale_charset): Ditto.
2678
2679 2009-06-16  Craig Howland <howland@LGSInnovations.com>
2680
2681         * libc/include/math.h:  Simplify fpclassify, isinf, isnan, and signbit
2682         macros to remove un-necessary extension use.  isinf and isnan also
2683         changed to use fpclassify.  isfinite macro modified to run faster by
2684         only calling fpclassify once instead of possibly twice.
2685
2686 2009-06-09  Corinna Vinschen  <corinna@vinschen.de>
2687
2688         * libc/ctype/tolower.c (tolower): Cast conversion result from
2689         mbtowc/wctomb to unsigned char to avoid negative return values.
2690         * libc/ctype/toupper.c (toupper): Ditto.
2691
2692 2009-06-03  IWAMURO Motonori  <deenheart@gmail.com>
2693
2694         * libc/string/wcwidth.c: Optimize for speed.
2695
2696 2009-06-03  Corinna Vinschen  <corinna@vinschen.de>
2697
2698         * libc/locale/locale.c (lc_ctype_cjk_lang): New static int.
2699         (loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang
2700         to 1 if the language is "jp", "ko", or "zh", to 0 otherwise.
2701         (__locale_cjk_lang): New function.
2702         * libc/string/local.h (__locale_cjk_lang): Declare.
2703         * libc/string/wcwidth.c: Fix comments.
2704         (__wcwidth): Handle CJK Ambiguous Width characters according
2705         to setting returned by __locale_cjk_lang.
2706
2707 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
2708
2709         * libc/include/sys/config.h: Remove specification of _REENT_SMALL for
2710         thumb2.
2711
2712 2009-06-02  IWAMURO Motonori  <deenheart@gmail.com>
2713
2714         * libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.
2715         (__jp2uc): Change the scope to static function.
2716         * libc/ctype/local.h (_jp2uc): Define as macro if defined __CYGWIN__.
2717         * libc/string/local.h (_jp2uc): Include ../ctype/local.h.
2718
2719 2009-05-27  Neal H. Walfield  <neal@gnu.org>
2720
2721         * libc/include/machine/setjmp.h (sigjmp_buf): Size according to
2722         _JBTYPE and the size of sigset_t.
2723
2724 2009-05-15  Craig Howland <howland@LGSInnovations.com>
2725
2726         * configure.in:  Add configuration test for long double type existing
2727         and set flag _HAVE_LONG_DOUBLE if true.  Fix INIT_ARRAY (.init_array)
2728         and _LDBL_EQ_DBL tests to not link so that will work with
2729         cross-compilers.
2730         * configure: Regenerated.
2731         * Makefile.in: Ditto.
2732         * newlib.hin: Add _HAVE_LONG_DOUBLE flag.
2733         * libc/include/math.h:  Change non-builtin defines for HUGE_VAL,
2734         HUGE_VALF, and HUGE_VALL to be constant expressions.  Add definitions
2735         for the non-builtin case for INFINITY and NAN.  Gate HUGE_VALL and
2736         union __ldmath definitions with (new) _HAVE_LONG_DOUBLE.
2737         *libm/common/s_infconst.c:  Change definitions to use values from
2738         float.h instead of non-so-portable integer forms.  Mark as being
2739         deprecated (because now removed from math.h, are not used anywhere
2740         in Newlib, itself).
2741
2742 2009-05-15  Corinna Vinschen  <corinna@vinschen.de>
2743
2744         * libc/string/local.h: New file.
2745         * libc/string/wcswidth.c (wcswidth):  Convert japanese wide
2746         characters to Unicode here.  Handle surrogate pairs for UTF-16
2747         systems.  Call __wcwidth rather than wcwidth.
2748         * libc/string/wcwidth.c: New implementation using Markus Kuhn's
2749         wcwidth implementation for Unicode.
2750         (bisearch): New static function.
2751         (__wcwidth): New function.  Take wint_t rather than wchar_t as
2752         parameter to allow full Unicode handling on UTF-16 systems.
2753         Move old wcwidth implementation here for non-multibyte aware
2754         systems.
2755         (wcwidth): Convert japanese wide characters to Unicode here.
2756         Call __wcwidth rather than using iswprint/iswcntrl.
2757
2758 2009-05-14  Corinna Vinschen  <corinna@vinschen.de>
2759
2760         * libc/ctype/local.h (JP_JIS, JP_SJIS, JP_EUCJP): Move definition
2761         to jp2uc.c.
2762         (__jp2uc): Remove declaration.
2763         (_jp2uc): Declare.
2764         * libc/ctype/jp2uc.c (JP_JIS, JP_SJIS, JP_EUCJP): Define.
2765         (__jp2uc): Remove Cygwin special case.
2766         (_jp2uc): New function.  On Cygwin, just return c.
2767         * libc/ctype/iswalpha.c (iswalpha): Just call _jp2uc.
2768         * libc/ctype/iswblank.c (iswblank): Ditto.
2769         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
2770         * libc/ctype/iswprint.c (iswprint): Ditto.
2771         * libc/ctype/iswpunct.c (iswpunt): Ditto.
2772         * libc/ctype/iswspace.c (iswspace): Ditto.
2773         * libc/ctype/towlower.c (towlower): Ditto.
2774         * libc/ctype/towupper.c (towupper): Ditto.
2775
2776 2009-05-13  Paul Brook  <paul@codesourcery.com>
2777
2778         * libc/machine/arm/setjmp.S: Don't bother saving IP.  Copy SP to
2779         IP before saving.  Likewise when restoring.
2780
2781 2009-05-13  Paul Brook  <paul@codesourcery.com>
2782
2783         * libc/machine/arm/setjmp.S: Add ARMv6-M implementation.
2784
2785 2009-05-13  Corinna Vinschen  <corinna@vinschen.de>
2786
2787         * libc/locale/locale.c (setlocale): Don't build on Cygwin.
2788
2789 2009-05-11  Craig Howland <howland@LGSInnovations.com>
2790
2791         * libm/machine/i386/f_llrint.c: Remove llrint() definition.
2792         * libm/machine/i386/f_llrintf.c: Remove llrintf() definition.
2793
2794 2009-05-08  Nick Clifton  <nickc@redhat.com>
2795
2796         * MAINTAINERS: Add myself as a maintainer for the MN10300 and to
2797         the write-after-approval list.
2798
2799 2009-04-30  Anthony Green  <green@moxielogic.com>
2800
2801         * MAINTAINERS: Add myself as moxie maintainer and to the
2802         write-after-approval list.
2803
2804 2009-04-30  Eric Blake  <ebb9@byu.net>
2805
2806         Allow gcc warning for toupper even with extended charsets.
2807         * libc/include/ctype.h (toupper, tolower)
2808         [_MB_EXTENDED_CHARSETS_ISO]: Allow gcc warning when called with
2809         'char' even when we must call the function for correct behavior.
2810         [!_MB_EXTENDED_CHARSETS_ISO]: Fix regression in result type.
2811
2812 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
2813
2814         * libc/stdio/fgetc.c: Make sure sfp lock is acquired before the
2815         file lock and released before the file lock to avoid a deadlock
2816         scenario.
2817         * libc/stdio/fgets.c: Ditto.
2818         * libc/stdio/fgetwc.c: Ditto.
2819         * libc/stdio/fgetws.c: Ditto.
2820         * libc/stdio/fread.c: Ditto.
2821         * libc/stdio/fseek.c: Ditto.
2822         * libc/stdio/getc.c: Ditto.
2823         * libc/stdio/getdelim.c: Ditto.
2824         * libc/stdio/gets.c: Ditto.
2825
2826 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
2827
2828         * configure.in: Add configuration test for long double equals dbl
2829         and set flag _LDBL_EQ_DBL if true.
2830         * configure: Regenerated.
2831         * newlib.hin: Add _LDBL_EQ_DBL flag.
2832         * libc/include/math.h: Use _LDBL_EQ_DBL flag instead of
2833         _HAVE_LDBL_MATH.
2834         * libc/include/stdlib.h: Use _LDBL_EQ_DBL flag instead of
2835         _HAVE_LDBL_STDLIB.
2836         * libc/common/local.h: Remove _LDBL_EQ_DBL flag setting.
2837         * libc/stdlib/local.h: Ditto.
2838
2839 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
2840
2841         * libc/include/stdint.h (UINTPTR_MAX): Define to __UINTPTR_MAX__
2842         if __UINTPTR_MAX__ defined.
2843
2844 2009-04-24  Eric Blake  <ebb9@byu.net>
2845
2846         Be namespace clean in ctype.h.
2847         * libc/include/ctype.h (_tolower, _toupper, isalpha, isupper)
2848         (islower, isdigit, isxdigit, isspace, ispunct, isalnum)
2849         (isprint, isgraph, iscntrl, isblank, toupper, tolower)
2850         (isascii, toascii): Don't use 'c' as macro parameter name.
2851
2852         Trigger gcc warning if isFoo macros are called with plain char.
2853         * libc/include/ctype.h (isalpha, isupper, islower, isdigit)
2854         (isxdigit, isspace, ispunct, isalnum, isprint, isgraph)
2855         (iscntrl, isblank, toupper, tolower): Rewrite to let 'gcc -Wall'
2856         warn when user calls macro with a char argument.
2857
2858 2009-04-23  Mike Burgess  <wizardsguild@earthlink.net>
2859
2860         * libc/string/strcasecmp.c: Optimized rewrite.
2861         * libc/string/strncasecmp.c: Fix description.
2862         * libc/string/strlwr.c: Avoid passing signed char to tolower.
2863         * libc/string/strupr.c: Avoid passing signed char to tolower.
2864
2865 2009-04-23  Paul Brook  <paul@codesourcery.com>
2866             Kazu Hirata  <kazu@codesourcery.com>
2867
2868         * libc/stdlib/__atexit.c (__register_exitproc): Use weak reference
2869         to malloc.  Allocate dynamically only if it is present.
2870         * libc/stdlib/__call_atexit.c (__call_exitprocs): Use weak
2871         reference to free.  Call free only if it is present.
2872
2873 2009-04-22 Anthony Green <green@moxielogic.com>
2874
2875         * configure.host: Add moxie support.
2876         * libc/machine/configure.in: Add moxie support.
2877         * libc/machine/configure: Rebuilt.
2878         * libc/machine/moxie/aclocal.m4: New file.
2879         * libc/machine/moxie/configure: New file.
2880         * libc/machine/moxie/configure.in: New file.
2881         * libc/machine/moxie/Makefile.am: New file.
2882         * libc/machine/moxie/Makefile.in: New file.
2883         * libc/machine/moxie/setjmp.S: New file.
2884         * libc/include/machine/setjmp.h (_JBLEN): Define for moxie.
2885         * libc/include/machine/ieeefp.h: Add moxie support.
2886
2887 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
2888
2889         * libc/stdio/local.h (__chclass, __state_table, __action_table):
2890         Add extern to the declarations.
2891         * libc/stdlib/local.h (__iso_8859_conv, __cp_conv): Likewise.
2892
2893 2009-04-21  Corinna Vinschen  <corinna@vinschen.de>
2894
2895         * libc/ctype/ctype_.c (_CTYPE_DATA_128_255): Rename from
2896         _CTYPE_DATA_128_256.
2897         * libc/ctype/ctype_cp.h: Split off all character class values for
2898         character 255 from the rest of the definitions.
2899         (__ctype_cp): Use the new definitions.  Make sure that the table
2900         always contains 0 for EOF (-1).
2901         * libc/ctype/ctype_iso.h: Ditto.
2902
2903 2009-04-21  Sandra Loosemore  <sandra@codesourcery.com>
2904
2905         * libc/reent/impure.c (__sf_fake_stdin, __sf_fake_stdout)
2906         (__sf_fake_stderr): Declare locally with weak attribute.
2907
2908 2009-04-21  Mark Mitchell  <mark@codesourcery.com>
2909
2910         * libc/include/_ansi.h: Move C++ defines to top of file.
2911         (_NOTHROW): New macro.
2912         (_EXFUN_NOTHROW): Likewise.
2913         * libc/include/stdlib.h (calloc): Declare with _EXFUN_NOTHROW.
2914         (free): Likewise.
2915         (malloc): Likewise.
2916         (realloc): Likewise.
2917         (_malloc_r): Likewise.
2918         (_callor_r): Likewise.
2919         (_free_r): Likewise.
2920         (_realloc_r): Likewise.
2921
2922 2009-04-20  Jeff johnston  <jjohnstn@redhat.com>
2923
2924         * libc/include/math.h: Change _LDBL_EQ_DBL flag usage to
2925         be _HAVE_LDBL_MATH.
2926         * libc/include/stdlib.h: Change _LDBL_EQ_DBL flag usage to
2927         be _HAVE_LDBL_STDLIB.
2928
2929 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
2930
2931         * libc/include/machine/ieeefp.h (_LDBL_EQ_DBL): Remove.
2932         * libc/stdlib/local.h (_LDBL_EQ_DBL): Add.
2933         * libc/stdlib/strtold.c: Include local.h.
2934         * libc/stdlib/wcstold.c: Likewise.
2935         * libm/common/atanl.c: Likewise.
2936         * libm/common/cosl.c: Likewise.
2937         * libm/common/sinl.c: Likewise.
2938         * libm/common/modfl.c: Likewise.
2939         * libm/common/frexpl.c: Likewise.
2940         * libm/common/tanhl.c: Likewise.
2941         * libm/common/tanl.c: Likewise.
2942         * libm/common/expm1l.c: Likewise.
2943         * libm/common/log1pl.c: Likewise.
2944         * libm/common/ceill.c: Likewise.
2945         * libm/common/fabsl.c: Likewise.
2946         * libm/common/floorl.c: Likewise.
2947         * libm/common/acosl.c: Likewise.
2948         * libm/common/asinl.c: Likewise.
2949         * libm/common/atan2l.c: Likewise.
2950         * libm/common/coshl.c: Likewise.
2951         * libm/common/expl.c: Likewise.
2952         * libm/common/fmodl.c: Likewise.
2953         * libm/common/hypotl.c: Likewise.
2954         * libm/common/ldexpl.c: Likewise.
2955         * libm/common/log10l.c: Likewise.
2956         * libm/common/logl.c: Likewise.
2957         * libm/common/powl.c: Likewise.
2958         * libm/common/sqrtl.c: Likewise.
2959         * libm/common/copysignl.c: Likewise.
2960         * libm/common/ilogbl.c: Likewise.
2961         * libm/common/nanl.c: Likewise.
2962         * libm/common/cbrtl.c: Likewise.
2963         * libm/common/asinhl.c: Likewise.
2964         * libm/common/nextafterl.c: Likewise.
2965         * libm/common/rintl.c: Likewise.
2966         * libm/common/scalbnl.c: Likewise.
2967         * libm/common/exp2l.c: Likewise.
2968         * libm/common/fdiml.c: Likewise.
2969         * libm/common/fmal.c: Likewise.
2970         * libm/common/fmaxl.c: Likewise.
2971         * libm/common/fminl.c: Likewise.
2972         * libm/common/lrintl.c: Likewise.
2973         * libm/common/lroundl.c: Likewise.
2974         * libm/common/nearbyintl.c: Likewise.
2975         * libm/common/remquol.c: Likewise.
2976         * libm/common/roundl.c: Likewise.
2977         * libm/common/scalblnl.c: Likewise.
2978         * libm/common/truncl.c: Likewise.
2979         * libm/common/acoshl.c: Likewise.
2980         * libm/common/atanhl.c: Likewise.
2981         * libm/common/erfcl.c: Likewise.
2982         * libm/common/erfl.c: Likewise.
2983         * libm/common/lgammal.c: Likewise.
2984         * libm/common/remainderl.c: Likewise.
2985         * libm/common/tgammal.c: Likewise.
2986         * libm/common/sinhl.c: Likewise.
2987         * libm/common/llroundl.c: Likewise.
2988         * libm/common/llrintl.c: Likewise.
2989         * libm/common/local.h: New file with _LDBL_EQ_DBL macro.
2990
2991 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
2992
2993         * libc/include/machine/ieeefp.h: _LDBL_EQ_DBL check fixed.
2994         * libc/include/math.h (llrintl): Declare.
2995         * libm/common/llrintl.c: New File.
2996         * libm/common/Makefile.am: New File added.
2997         * libm/common/Makefile.in: Regenerate.
2998
2999 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
3000
3001         * libc/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
3002         avoid executable test.
3003         * libc/configure: Regenerate.
3004
3005 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
3006
3007         * configure.in: Remove _HAVE_ARRAY_ALIASING check.
3008         * configure: Regenerated.
3009         * Makefile.in: Regenerated.
3010         * newlib.hin: Remove _HAVE_ARRAY_ALIASING flag.
3011         * libc/ctype/ctype_.c: Do not check for _HAVE_ARRAY_ALIASING.
3012         * libm/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
3013         avoid executable test.
3014         * libm/configure: Regenerated.
3015
3016 2009-04-16  Jeff johnston  <jjohnstn@redhat.com>
3017
3018         * libc/misc/init.c (__libc_fini_array): Process fini_array in
3019         reverse order as compliant with the ELF specification.
3020
3021 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
3022
3023         * libc/machine/spu/Makefile.am: Add new File.
3024         * libc/machine/spu/Makefile.in: Regenerate.
3025         * libc/machine/spu/fdopen.c: New file.
3026
3027 2009-04-16  Hans-Peter Nilsson  <hp@axis.com>
3028
3029         * libc/include/stdint.h (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Define.
3030
3031 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
3032
3033         * libm/libm.texinfo: Add long double function support chapter.
3034         * libc/include/machine/ieeefp.h: Add _LDBL_EQ_DBL define.
3035         * libc/include/stdlib.h: Include <machine/ieeefp.h>.
3036         (strtold, wcstold): Declare.
3037         * libc/stdlib/strtold.c: New File.
3038         * libc/stdlib/wcstold.c: Likewise.
3039         * libc/configure.in: Add long double check.
3040         * libc/configure: Regenerate.
3041         * libc/stdlib/Makefile.am: Add strtold.c and wcstold.c.
3042         * libc/stdlib/Makefile.in: Regenerate.
3043         * libc/include/math.h (atanl, cosl, sinl, tanl, tanhl): Declare.
3044         (frexpl, modfl, ceill, fabsl, floorl, log1pl, expm1l, acosl): Ditto.
3045         (asinl, atan2l, coshl, sinhl, expl, ldexpl, logl, log10l, powl): Ditto.
3046         (sqrtl, fmodl, hypotl, copysignl, nanl, ilogbl, asinhl, cbrt): Ditto.
3047         (nextafterl, rintl, scalbnl, exp2l, scalblnl, tgammal): Ditto.
3048         (nearbyintl, lrintl, llrintl, roundl, lroundl, llround): Ditto.
3049         (llroundl, truncl, remquol, fdiml, fmaxl, fminl, fmal, acoshl): Ditto.
3050         (atanhl, remainderl, lgammal, erfl, erfcl): Ditto.
3051         * libm/common/atanl.c: New File.
3052         * libm/common/cosl.c: Likewise.
3053         * libm/common/sinl.c: Likewise.
3054         * libm/common/modfl.c: Likewise.
3055         * libm/common/frexpl.c: Likewise.
3056         * libm/common/tanhl.c: Likewise.
3057         * libm/common/tanl.c: Likewise.
3058         * libm/common/expm1l.c: Likewise.
3059         * libm/common/log1pl.c: Likewise.
3060         * libm/common/ceill.c: Likewise.
3061         * libm/common/fabsl.c: Likewise.
3062         * libm/common/floorl.c: Likewise.
3063         * libm/common/acosl.c: Likewise.
3064         * libm/common/asinl.c: Likewise.
3065         * libm/common/atan2l.c: Likewise.
3066         * libm/common/coshl.c: Likewise.
3067         * libm/common/expl.c: Likewise.
3068         * libm/common/fmodl.c: Likewise.
3069         * libm/common/hypotl.c: Likewise.
3070         * libm/common/ldexpl.c: Likewise.
3071         * libm/common/log10l.c: Likewise.
3072         * libm/common/logl.c: Likewise.
3073         * libm/common/powl.c: Likewise.
3074         * libm/common/sqrtl.c: Likewise.
3075         * libm/common/copysignl.c: Likewise.
3076         * libm/common/ilogbl.c: Likewise.
3077         * libm/common/nanl.c: Likewise.
3078         * libm/common/cbrtl.c: Likewise.
3079         * libm/common/asinhl.c: Likewise.
3080         * libm/common/nextafterl.c: Likewise.
3081         * libm/common/rintl.c: Likewise.
3082         * libm/common/scalbnl.c: Likewise.
3083         * libm/common/exp2l.c: Likewise.
3084         * libm/common/fdiml.c: Likewise.
3085         * libm/common/fmal.c: Likewise.
3086         * libm/common/fmaxl.c: Likewise.
3087         * libm/common/fminl.c: Likewise.
3088         * libm/common/lrintl.c: Likewise.
3089         * libm/common/lroundl.c: Likewise.
3090         * libm/common/nearbyintl.c: Likewise.
3091         * libm/common/remquol.c: Likewise.
3092         * libm/common/roundl.c: Likewise.
3093         * libm/common/scalblnl.c: Likewise.
3094         * libm/common/truncl.c: Likewise.
3095         * libm/common/acoshl.c: Likewise.
3096         * libm/common/atanhl.c: Likewise.
3097         * libm/common/erfcl.c: Likewise.
3098         * libm/common/erfl.c: Likewise.
3099         * libm/common/lgammal.c: Likewise.
3100         * libm/common/remainderl.c: Likewise.
3101         * libm/common/tgammal.c: Likewise.
3102         * libm/common/sinhl.c: Likewise.
3103         * libm/common/llroundl.c: Likewise.
3104         * libm/configure.in: Add long double check.
3105         * libm/configure: Regenerate.
3106         * libm/common/Makefile.am: Add new files.
3107         * libm/common/Makefile.in: Regenerate.
3108
3109 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
3110
3111         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Remove _B flag from TAB.
3112         * libc/ctype/ctype_cp.h: Mark non-cased letters in tables for codepages
3113         720, 862, 874, 1255, and 1256 to _U|_L.  Fix a couple of incorrect
3114         class mappings.
3115         * libc/ctype/ctype_iso.h: Mark non-cased letters in ISO-8859 tables
3116         6, 8, and 11 to _U|_L.  Fix a couple of incorrect class mappings.
3117         * libc/ctype/isblank.c (isblank): Special case TAB.
3118         * libc/ctype/islower.c (islower): Check explicitely for _L flag only
3119         in (_U|_L).
3120         * libc/ctype/isupper.c (isupper): Ditto, but check for _U flag.
3121         * libc/include/ctype.h (islower): Same in macro.
3122         (isupper): Ditto.
3123         (isblank): Special case TAB.  Redefine macro for GCC only.
3124
3125 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
3126
3127         * libc/stdlib/local.h (__mbtowc): Declare extern.
3128         (__wctomb): Ditto.
3129
3130 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
3131
3132         * libc/stdlib/mbctype.h (_iseucjp1): Like _iseucjp, but also
3133         recognizes 0x8e and 0x8f lead bytes.
3134         (_iseucjp2): Rename from _iseucjp.
3135         * libc/stdlib/mbtowc_r.c (__eucjp_mbtowc): Convert JIS-X-0212
3136         triplebyte sequences as well.
3137         * libc/stdlib/wctomb_r.c (__eucjp_wctomb): Convert to JIS-X-0212
3138         triplebyte sequences as well.
3139
3140 2009-04-08  Ken Werner  <ken.werner@de.ibm.com>
3141
3142         * configure.in: Add square brackets for the array aliasing conftest.
3143         * configure: Regenerate.
3144
3145 2009-04-06  Mike Burgess  <wizardsguild@earthlink.net>
3146
3147         * libc/string/strncasecmp.c: Optimized rewrite.
3148
3149 2009-04-06  Ken Werner  <ken.werner@de.ibm.com>
3150
3151         * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu.
3152         * libc/include/machine/time.h (nanosleep): Declare.
3153
3154 2009-04-06  Corinna Vinschen  <corinna@vinschen.de>
3155
3156         * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.
3157
3158 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
3159
3160         * libc/stdlib/wcstombs.c: Fix datatypes in documentation.
3161
3162 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
3163
3164         * libc/include/stdio.h (_ELIDABLE_INLINE): Move definition from here...
3165         * libc/include/_ansi.h (_ELIDABLE_INLINE): ..to here.
3166
3167 2009-04-03  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
3168
3169         * libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
3170         to avoid a warning with -Wmissing-prototypes.
3171
3172 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
3173
3174         * libc/machine/spu/mmap_ea.c (mmap_ea): Check length argument.
3175
3176 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
3177
3178         * libc/machine/spu/sys/linux_syscalls.h: include <sys/types.h>
3179         (linux_getpid, linux_gettid): Declare.
3180
3181 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
3182
3183         * libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU
3184         profiling.
3185
3186 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
3187
3188         * libc/include/math.h: Remove duplicate copysign prototype.
3189         Fix __math_68881 define typo.  Guard functions of the rint family.
3190
3191 2009-04-03  Craig Howland <howland@LGSInnovations.com>
3192
3193         * libm/common/s_llrint.c: New file, implementing llrint().
3194         * libm/common/sf_llrint.c: New file, implementing llrintf().
3195         * libm/common/Makefile.am:  Add s_llrint.c (src); sf_llrint.c (fsrc).
3196         * libm/common/Makefile.in:  Regenerate.
3197
3198 2009-04-02  Corinna Vinschen  <corinna@vinschen.de>
3199
3200         * libc/ctype/ctype_c.c: Move inclusion of ctype_iso.h and
3201         ctype_cp.h out of ALLOW_NEGATIVE_CTYPE_INDEX case.
3202         (__ctype_ptr__): Constify in !_MB_CAPABLE case.  Otherwise,
3203         de-constify in !ALLOW_NEGATIVE_CTYPE_INDEX case, too.  Add comment.
3204         (__set_ctype): Set __ctype_ptr__ pointer according to definition
3205         of ALLOW_NEGATIVE_CTYPE_INDEX.
3206         * libc/include/ctype.h (__ctype_ptr__): Constify in !_MB_CAPABLE case.
3207
3208 2009-03-31  Corinna Vinschen  <corinna@vinschen.de>
3209
3210         * libc/ctype/Makefile.am: Remove _tolower.c and _toupper.c
3211         source files.  Add a dependency rule for ctype_o to note
3212         changes in ctype_iso.h and ctype_cp.h.
3213         * libc/ctype/Makefile.in: Regenerate.
3214         * libc/ctype/_tolower.c: Remove file.
3215         * libc/ctype/_toupper.c: Remove file.
3216         * libc/ctype/ctype_.c: Make sure ALLOW_NEGATIVE_CTYPE_INDEX
3217         is always defined on Cygwin.
3218         (_ctype_b): Don't make `static const' on Cygwin.
3219         (ctype_iso.h): Include if _MB_EXTENDED_CHARSETS_ISO is set.
3220         (ctype_cp.h): Include if _MB_EXTENDED_CHARSETS_WINDOWS is set.
3221         (__ctype_ptr): Drop definition.
3222         (__ctype_ptr__): De-constify.  Mark as __EXPORT symbol.
3223         (_ctype_): Add Cygwin-specifc asm define.
3224         (__set_ctype): New function to set __ctype_ptr__ according to
3225         current charset.
3226         * libc/ctype/ctype_cp.h: New file containing Windows codepage
3227         specific character class tables.
3228         * libc/ctype/ctype_iso.h: New file containing ISO-8859-x
3229         specific character class tables.
3230         * libc/ctype/tolower.c (tolower): Reimplement to support any singlebyte
3231         charset if one of the extended charsets is enabled.
3232         * libc/ctype/toupper.c (toupper): Ditto.
3233         * libc/include/ctype.h (_tolower): Define as macro per POSIX.
3234         (_toupper): Ditto.
3235         (__ctype_ptr__): De-constify.
3236         (toupper): Disable macro on systems supporting extended charsets.
3237         (tolower): Ditto.
3238         * libc/include/sys/config.h (__EXPORT): Define empty if not defined.
3239         * libc/locale/locale.c (__mb_cur_max): Mark as __EXPORT symbol.
3240         (__set_ctype): Declare unconditionally.
3241         (loadlocale): Remove __CYGWIN__ guard around __set_ctype call.
3242
3243 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
3244
3245         * libc/locale/locale.c (loadlocale): Revert to charset "GBK" instead
3246         of "GB2312".  Fix documentation accordingly.
3247
3248 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
3249
3250         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Mark TAB as blank character.
3251         * libc/ctype/isblank.c: Replace hardcoded test with test for having _B
3252         marker in ctype array.
3253         * libc/include/ctype.h (isblank): Add macro.
3254
3255 2009-03-25  Craig Howland <howland@LGSInnovations.com>
3256
3257         * libc/include/math.h:  (llround, llroundf): Declare.
3258         * libm/common/s_llround.c: New file, implementing llround().
3259         * libm/common/sf_llround.c: New file, implementing llroundf().
3260         * libm/common/sf_lround.c: Remove spurious cast in _DOUBLE_IS_32BITS
3261         version of function.
3262         * libm/common/sf_lrint.c: Ditto.
3263         * libm/common/sf_logb.c:  Corrected return for subnormal argument
3264         by replacing existing function with a version created from sf_ilogb.c.
3265         * libm/common/s_logb.c: Ditto, except starting point s_ilogb.c.  Also
3266         added documentation for logb() and logbf().
3267         * libm/common/s_signbit.c:  Add signbit() documentation.
3268         * libm/common/s_log2.c: Update return values to match what w_log2.c has,
3269         since log2 uses log(); add note about being derived instead of direct.
3270         * libm/common/sf_fma.c: Add casts to attempt to get correct results,
3271         as well as comments pointing out problems with the implementation.
3272         * libm/common/s_fma.c: Add fma() and fmaf() documentation.
3273         * libm/common/sf_remquo.c: Incorrect quotient returns for large values
3274         corrected by discarding existing function and replacing with Sun
3275         verion, with some enhancements.
3276         * libm/common/s_remquo.c: Ditto.  Add remquo() and remquof()
3277         documentation.
3278         * libm/common/s_fmax.c: Add fmax() and fmaxf() documentation.
3279         * libm/common/s_fmin.c: Add fmin() and fminf() documentation.
3280         * libm/common/s_fdim.c: Return NAN for NAN arg, add fdim() and fdimf()
3281         documentation.
3282         * libm/common/sf_fdim.c: Return NAN for NAN arg, HUGE_VALF for inf arg.
3283         * libm/common/s_trunc.c: Add trunc() and truncf() documentation.
3284         * libm/common/s_rint.c: Add rint() and rintf() documentation.
3285         * libm/common/s_round.c: Add round() and roundf() documentation.
3286         * libm/common/s_scalbn.c: Add scalbln() and scalblnf() documentation.
3287         * libm/common/s_infinity.c: Add infinity() and infinityf()
3288         documentation.
3289         * libm/common/s_lround.c: Add lround(), lroundf(), llround(), and
3290         llroundf() documentation.
3291         * libm/common/s_lrint.c: Add lrint(), lrintf(), llrint(), and llrintf()
3292         documentation.
3293         * libm/common/isgreater.c: New file for documenting math.h function-like
3294         macros isgreater(), isgreaterequal(), isless(), islessequal(),
3295         islessgreater(), and isunordered().
3296         * libm/common/s_isnan.c: Add documentation for function-like macros
3297         fpclassify(), isfinite(), isinf(), isnan(), and isnormal().
3298         * libm/common/s_nearbyint.c: Add nearbyint() and nearbyintf()
3299         documentation.
3300         * libm/common/Makefile.am: Add s_llround.c (src); sf_llround.c (fsrc);
3301         s_fdim.def, s_fma.def, s_fmax.def, s_fmin.def,
3302         s_logb.def, s_lrint.def, s_lround.def, s_nearbyint.def, s_remquo.def,
3303         s_rint.def, s_round.def, s_signbit.def, s_trunc.def, and
3304         isgreater.def (chobj);
3305         re-name all existing chew files (chobj) to match source file base
3306         names (put in underscores), delete all special targets for chew files
3307         (leaving all to be generated by rule).
3308         * libm/common/Makefile.in: regenerate.
3309         * libm/math/w_exp2.c: Add "base 2" to documentation description (and
3310         delete TRAD_SYNOPSIS).
3311         * libm/math/w_gamma.c: Add tgamma() and tgammaf() documentation, along
3312         with some history behind the function names.
3313         * libm/math/math.tex: Add includes for newly-added documentation (see
3314         .def additions to common/Makefile.am and math/Makefile.am in this
3315         ChangeLog list), adjusted existing .def file names to match source file
3316         base names (added underscores); add mention of HUGE_VALF; rename
3317         "Version of library" section to "Error Handling" and add some text
3318         about floating-point exception; added section "Standards Compliance And
3319         Portability".
3320         * libm/math/Makefile.am: Add w_exp2.def (chobj);
3321         re-name all existing chew files (chobj) to match source file base
3322         names, delete all special targets for chew files (leaving all to be
3323         generated by rule).
3324         * libm/math/Makefile.in: regenerated
3325         * doc/makedoc.c: Change silent ignoring of commands < 5 characters
3326         to a failure when reading macro file for commands < 4 characters;
3327         add -v (verbose) option for printing some debugging information;
3328         get rid of spurious translation of "@*" to "*" (no source files used @*,
3329         so no existing doc pages were affected); clean up some compiler
3330         warnings.
3331         * doc/doc.str: add BUGS and SEEALSO sections (to match texi2pod.pl
3332         which has them); Remove ITEM command (redundant with makedoc built-in
3333         "o", not used in any present source file so nothing is lost, anyway).
3334         * HOWTO: New file to hold information for maintainers regarding how
3335         to do things.  Initial sections on documentation and ELIX levels.
3336
3337 2009-03-25  Richard Earnshaw  <rearnsha@arm.com>
3338
3339         * libc/machine/arm/strcmp.c (strcmp_unaligned): Correctly
3340         detect the nul-byte in a big-endian string.
3341
3342 2009-03-25  Jeff Johnston  <jjohnstn@redhat.com>
3343
3344         * libc/string/wcsdup.c: Fix documentation error.
3345         * libc/string/Makefile.am: Fix CHEWOUT files to contain
3346         wcsdup.def rather than wcsdup.
3347         * libc/string/Makefile.in: Regenerated.
3348
3349 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
3350
3351         * libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc
3352         pointers if category is LC_CTYPE.
3353
3354 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
3355
3356         * libc/locale/locale.c (loadlocale): Rename charset "GBK" to
3357         "GB2312".  Fix documentation accordingly.
3358
3359 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
3360
3361         * libc/locale/locale.c (loadlocale): Rename charset "CP949" to
3362         "eucKR".  Fix documentation accordingly.
3363
3364 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
3365
3366         * libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
3367         for "eucJP" charset support.
3368
3369 2009-03-24  Jeff Johnston  <jjohnstn@redhat.com>
3370
3371         * libc/include/sys/errno.h: Move EFTYPE to general usage because
3372         it is used in libc/search.
3373
3374 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
3375
3376         * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
3377         _MB_CAPABLE systems.
3378         * libc/ctype/iswblank.c: Ditto.
3379         * libc/ctype/iswcntrl.c: Ditto.
3380         * libc/ctype/iswprint.c: Ditto.
3381         * libc/ctype/iswpunct.c: Ditto.
3382         * libc/ctype/iswspace.c: Ditto.
3383         * libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
3384         Explain why.
3385         * libc/ctype/towlower.c: Ditto.
3386         * libc/ctype/towupper.c: Ditto.
3387         * libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
3388         and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
3389         defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
3390         * libc/include/sys/reent.h (struct _reent): Mark _current_category
3391         and _current_locale as unused.
3392         * libc/locale/locale.c: Add new charset support to documentation.
3393         Include ../stdio/local.h from here.
3394         (lc_ctype_charset): Set to "ASCII" by default.
3395         (lc_message_charset): Ditto.
3396         (_setlocale_r): Don't set _current_category and _current_locale.
3397         (loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
3398         systems, set __mbtowc and __wctomb function pointers to function
3399         corresponding with current charset.  Don't allow non-existant
3400         ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
3401         On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
3402         call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
3403         _current_category and _current_locale.
3404         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
3405         * libc/stdlib/Makefile.in: Regenerate.
3406         * libc/stdlib/local.h: Add prototype for __locale_charset.
3407         Add prototypes for __mbtowc and __wctomb pointers.
3408         Add prototypes for charset-specific _wctomb_r and _mbtowc_r
3409         functions.
3410         Declare tables and functions from sb_charsets.c.
3411         * libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
3412         by default.
3413         (_mbtowc_r): Just call __mbtowc from here.
3414         (__ascii_mbtowc): New function.
3415         (__iso_mbtowc): New function.
3416         (__cp_mbtowc): New function.
3417         (__utf8_mbtowc): New function.
3418         (__sjis_mbtowc): New function.  Disable on Cygwin.
3419         (__eucjp_mbtowc): New function.  Disable on Cygwin.
3420         (__jis_mbtowc): New function.  Disable on Cygwin.
3421         * libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
3422         conversion tables for all ISO and CP charsets.
3423         (__iso_8859_index): New function.
3424         (__cp_index): New function.
3425         * libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
3426         by default.
3427         (_wctomb_r): Just call __wctomb from here.
3428         (__ascii_wctomb): New function.
3429         (__utf8_wctomb): New function.
3430         (__sjis_wctomb): New function.  Disable on Cygwin.
3431         (__eucjp_wctomb): New function.  Disable on Cygwin.
3432         (__jis_wctomb): New function.  Disable on Cygwin.
3433         (__iso_wctomb): New function.
3434         (__cp_wctomb): New function.
3435
3436 2009-03-23  Richard Earnshaw  <rearnsha@arm.com>
3437
3438         * libc/machine/arm/strcmp.c (strcmp): Treat char as unsigned.
3439
3440 2009-03-23  Corinna Vinschen  <corinna@vinschen.de>
3441
3442         * libc/locale/locale.c (loadlocale): Fix typo in language and
3443         territory evaluation.
3444
3445 2009-03-20  Jeff Johnston  <jjohnstn@redhat.com>
3446
3447         * libc/include/sys/errno.h: Protect various non-standard errnos
3448         with either __LINUX_ERRNO_EXTENSIONS__ or __CYGWIN__.
3449         * libc/include/sys/config.h[__CYGWIN__]: Define
3450         __LINUX_ERRNO_EXTENSIONS__.
3451
3452 2009-03-19  Corinna Vinschen  <corinna@vinschen.de>
3453
3454         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
3455         invalid character sequence.
3456
3457         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to
3458         missing declaration of __locale_charset.
3459         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
3460
3461 2009-03-18  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
3462
3463         * libm/common/s_log2.c: New file.
3464         * libm/common/sf_log2.c: Ditto.
3465         * libm/common/Makefile.am: Add s_log2.c and sf_log2.c.
3466         * libm/common/Makefile.in: Regenerated.
3467         * libc/include/math.h: Add log2 and log2f function prototypes.
3468
3469 2009-03-17  Corinna Vinschen  <corinna@vinschen.de>
3470
3471         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destination
3472         string correctly.
3473
3474 2009-03-16  Mark Mitchell  <mark@codesourcery.com>
3475
3476         * libc/machine/arm/strlen.c (strlen): Fix defect in Thumb-2 mode.
3477
3478 2009-03-16  Richard Earnshaw  <rearnsha@arm.com>
3479
3480         * libc/machine/arm/strlen.c (strlen): Correctly detect
3481         end-of-string.
3482         * libc/machine/arm/strcpy.c (strcpy): Likewise.
3483         * libc/machine/arm/strcmp.c (strcmp, strcmp_unaligned): Likewise.
3484
3485 2009-03-15  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
3486
3487         * libc/include/sys/errno.h (ESTRPIPE): Define.
3488         * libc/string/strerror.c (strerror): Decode it.
3489
3490 2009-03-15  Corinna Vinschen  <corinna@vinschen.de>
3491
3492         * libc/include/wchar.h (wcsdup, _wcsdup_r): Declare.
3493         * libc/string/Makefile.am: Add wcsdup.c.
3494         * libc/string/Makefile.in: Regenerate.
3495         * libc/string/strings.tex: Add wcsdup documentation reference.
3496         * libc/string/wcsdup.c: New file.
3497
3498 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
3499
3500         * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of
3501         !_REENT_ONLY section.
3502
3503 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
3504
3505         * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations
3506         to stdlib.h.
3507         * libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using.
3508         * libc/stdio/mktemp.c: Explain the security risk when using
3509         mktemp.
3510
3511 2009-03-12  Craig Howland <howland@LGSInnovations.com>
3512
3513         * libc/time/time.tex (wcsftime.def):  Include.
3514         * libc/time/wcsftime.c:  Clean up documentation a little.
3515
3516 2009-03-12  Craig Howland <howland@LGSInnovations.com>
3517
3518         * libc/stdio/swscanf.c:  Some documentation corrections.
3519
3520 2009-03-12  Craig Howland <howland@LGSInnovations.com>
3521
3522         * libc/stdio/swprintf.c (_swprintf_r, swprintf):
3523         correct how terminating L'\0' is added;
3524         change return to match standard for when output does not fit;
3525         some corrections and enhancements to the docs.
3526         * libc/stdio/vswprintf.c (_vswprintf_r):  ditto, except for docs.
3527         * libc/stdio/vfwprintf.c:  some corrections to the docs and some
3528         enhancements to comments.  (No code changes.)
3529         * libc/time/strftime.c:  Correct some problems that made wcsftime()
3530         not work correctly:  work properly with swprintf returns that are
3531         different from snprintf returns, correct test vector lengths for
3532         when sizeof(wchar_t) > 1.
3533         * libc/stdio/sprintf.c:  Some documentation and comment corrections and
3534         enhancements to match those done to swprintf.c.
3535
3536 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
3537
3538         * libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare.
3539         * libc/string/Makefile.am: Add wcscasecmp.c, wcsncasecmp.c
3540         * libc/stdio/Makefile.in: Regenerate.
3541         * libc/string/strings.tex: Add new documentation references.
3542         * libc/string/wcscasecmp.c: New file.
3543         * libc/string/wcsncasecmp.c: New file.
3544
3545 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
3546
3547         * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf,
3548         wscanf): Declare.
3549         (_fwscanf_r, _swscanf_r, _vfwscanf_r, _vswscanf_r, _vwscanf_r,
3550         _wscanf_r): Declare.
3551         * libc/stdio/Makefile.am: Add new wscanf files.
3552         * libc/stdio/Makefile.in: Regenerate.
3553         * libc/stdio/fwscanf.c: New file.
3554         * libc/stdio/local.h (__svfwscanf_r, __ssvfwscanf_r, __svfiwscanf_r,
3555         __ssvfiwscanf_r): Declare.
3556         * libc/stdio/stdio.tex: Add new documentation references.
3557         * libc/stdio/swscanf.c: New file.
3558         * libc/stdio/vfwscanf.c: New file.
3559         * libc/stdio/vswscanf.c: New file.
3560         * libc/stdio/vwscanf.c: New file.
3561         * libc/stdio/wscanf.c: New file.
3562
3563         * libc/stdio/vfscanf.c (_sungetc_r): Make externaly available.  Only
3564         define if INTEGER_ONLY is defined.  Declare otherwise.
3565         (__ssrefill_r): Ditto.
3566         (_sfread_r): Ditto.
3567
3568         Remove static eofread/eofread1 functions and use __seofread
3569         function instead, throughout.
3570         * libc/stdio/local.h (__seofread): Declare.
3571         * libc/stdio/stdio.c (__seofread): Define.
3572
3573         * libc/stdio/fgetwc.c (__fgetwc): Fix compiler warning.
3574         * libc/stdio/fgetws.c (_fgetws_r): Ditto.
3575         * libc/stdio/fread.c (_fread_r): Ditto.
3576         * libc/stdio/vfprintf.c: Ditto.
3577         * libc/stdio/vswprintf.c: Ditto.
3578
3579 2009-03-09  Brooks Moses  <brooks@codesourcery.com>
3580
3581         * libc/machine/arm/arm_asm.h: Fix typo.
3582
3583 2009-03-09  Craig Howland <howland@LGSInnovations.com>
3584
3585         * libc/time/strftime.c:  Adapt for dual-purpose use so not only
3586         defines strftime(), but can also define wcsftime(); add optional
3587         test package; speed up %Y handling.
3588         * libc/time/wcsftime.c:  New file, defining wcsftime() (albeit
3589         indirectly by including strftime.c) and its documentation.
3590         * libc/time/time.tex:  Enhance tm_isdst explanation, change strftime
3591         description to match modified description in strftime.c
3592         * libc/time/Makefile.am:  Add wcsftime.c and wcsftime.def.  Add a rule
3593         so that wcsftime.o gets rebuilt when strftime changes.
3594         * libc/time/Makefile.in:  Regenerate.
3595         * libc/include/wchar.h (wcsftime): Declare.
3596
3597 2009-03-06  Hans-Erik Floryd <hans-erik.floryd@rt-labs.com>,
3598             Corinna Vinschen  <corinna@vinschen.de>
3599
3600         * libc/reent/reent.c (_reclaim_reent): Make a block from MP-related
3601         statements in _REENT_SMALL case.  Check if _atexit is not NULL before
3602         dereferencing it.
3603         (_wrapup_reent): Check if _atexit is not NULL before dereferencing it.
3604
3605 2009-03-06  Corinna Vinschen  <corinna@vinschen.de>
3606
3607         * libc/include/stdio.h (__VALIST): Guard against multiple definition.
3608         * libc/include/wchar.h: Include stdarg.h.
3609         (__VALIST): Define conditionally.
3610         (fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, wprintf): Declare.
3611         (_fwprintf_r, _swprintf_r, _vfwprintf_r, _vswprintf_r, _vwprintf_r,
3612          _wprintf_r): Declare.
3613         * libc/stdio/Makefile.am: Add new files.
3614         * libc/stdio/Makefile.in: Regenerate.
3615         * libc/stdio/fwprintf.c: New file.
3616         * libc/stdio/local.h (_svfwprintf_r, _svfiwprintf_r): Declare.
3617         (__CH_CLASS, __STATE, __ACTION): Move definition from vfprintf.c here
3618         and move to the __ namespace.
3619         (__chclass, __state_table, __action_table): Declare.
3620         * libc/stdio/stdio.tex: Add new documentation references.
3621         * libc/stdio/swprintf.c: New file.
3622         * libc/stdio/vfprintf.c (__SPRINT): New macro to call the right
3623         __sprint_r function according to compilation unit.  Use throughout.
3624         (__ssprint_r): Rename STRING_ONLY variant from __sprint_r.
3625         Make externaly available.  Only define if INTEGER_ONLY is defined.
3626         (__sprint_r): Make externaly available.  Only define if INTEGER_ONLY
3627         is defined.  Handle stream orientation.
3628         (__sbprintf): Copy FILE's _flags2 member as well.
3629         (__chclass, __state_table, __action_table): Prepend __ to name and
3630         make externally available.
3631         * libc/stdio/vfwprintf.c: New file.
3632         * libc/stdio/vswprintf.c: New file.
3633         * libc/stdio/vwprintf.c: New file.
3634         * libc/stdio/wprintf.c: New file.
3635
3636 2009-03-03  Corinna Vinschen  <corinna@vinschen.de>
3637
3638         * libc/locale/locale.c (_setlocale_r): New implementation based on
3639         FreeBSD's setlocale.
3640         (currentlocale): New helper function.
3641         (loadlocale): Ditto.
3642         (__locale_charset): New function.
3643         (__locale_msgcharset): Rename from __locale_charset.
3644         * libc/ctype/local.h (__lc_ctype): Remove declaration.
3645         (__locale_charset): Declare.
3646         * libc/ctype/iswalpha.c (iswalpha): Call __locale_charset instead of
3647         using __lc_ctype directly.  Only compare against the charset alone.
3648         * libc/ctype/iswblank.c (iswblank): Ditto.
3649         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
3650         * libc/ctype/iswprint.c (iswprint): Ditto.
3651         * libc/ctype/iswpunct.c (iswpunct): Ditto.
3652         * libc/ctype/iswspace.c (iswspace): Ditto.
3653         * libc/ctype/towlower.c (towlower): Ditto.
3654         * libc/ctype/towupper.c (towupper): Ditto.
3655         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Ditto.
3656         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
3657         * libc/sys/linux/intl/loadmsgcat.c (_nl_init_domain_conv): Call
3658         __locale_msgcharset instead of __locale_charset.
3659
3660 2009-03-02  Jeff Johnston  <jjohnstn@redhat.com>
3661
3662         * libc/stdlib/wctomb_r.c (_wctomb_r): When checking single-byte
3663         charset, cast wchar to size_t in case wchar_t is signed.
3664         * libc/stdlib/wctomb.c (wctomb): Add similar single-byte check.
3665
3666 2009-03-02  Corinna Vinschen  <corinna@vinschen.de>
3667
3668         * libc/stdlib/wctomb_r.c (_wctomb_r): Return EILSEQ in case of an
3669         invalid wchar.  Return -1 if wchar doesn't fit into singlebyte
3670         value in case of using a singlebyte charset.
3671
3672 2009-02-26  Brooks Moses  <brooks@codesourcery.com>
3673
3674         * libc/machine/arm/strcpy.c: Add missing comma.
3675
3676 2009-02-26  Ralf Corsepius  <ralf.corsepius@rtems.org>
3677
3678         * libc/machine/lm32/configure.in: Let
3679         AC_CONFIG_SRCDIR point to setjmp.S instead of setjmp.s
3680         * libs/machine/lm32/configure: Regenerate.
3681
3682 2009-02-25  Brooks Moses  <brooks@codesourcery.com>
3683
3684         * libc/stdlib/Makefile.am (CHEWOUT_FILES): Add
3685           mbsnrtowcs.def, wcsnrtombs.def.
3686         * libc/stdlib/Makefile.in: Regenerate.
3687         * libc/stdlib/stdlib.tex (@menu): Use correct section
3688           names for mbsrtowcs, wcsrtombs.
3689         * libc/stdlib/wcstod.c: Remove stray character in
3690           documentation.
3691
3692 2009-02-25  Corinna Vinschen  <corinna@vinschen.de>
3693
3694         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Remove conversion of 5 and 6
3695         byte UTF-8 sequences since they are invalid in the Unicode standard.
3696         Handle surrogate pairs in case of wchar_t == UTF-16.
3697         * libc/stdlib/wctomb_r.c (_wctomb_r): Don't convert invalid Unicode
3698         wchar_t values beyond 0x10ffff into UTF-8 chars.  Handle surrogate
3699         pairs in case of wchar_t == UTF-16.
3700
3701 2009-02-24  Kevin Buettner  <kevinb@redhat.com>
3702
3703         * libc/stdio/open_memstream.c (stdint.h): Include.
3704
3705 2009-02-23  Craig Howland  <howland@LGSInnovations.com>
3706
3707         * libc/unix/ttyname.c:  Remove ttyname_r() (to a new file to avoid
3708         coupling ttyname_r() and ttyname() due to the latter's large buffer).
3709         * libc/unix/ttyname_r.c:  New file to hold ttyname_r(), previously in
3710         ttyname.c.
3711         * libc/unix/ttyname.h:  New file (common size definition for the 2
3712         ttyname*c files that are now split).
3713         * libc/unix/Makefile.am (ELIX_2_SOURCES):  Add ttyname_r.c.
3714         * libc/unix/Makefile.in:  Regenerate.
3715
3716 2009-02-19  Corinna Vinschen  <corinna@vinschen.de>
3717
3718         * libc/include/wchar.h (mbsnrtowcs): Declare.
3719         (_mbsnrtowcs_r): Declare.
3720         (wcsnrtombs): Declare.
3721         (_wcsnrtombs_r): Declare.
3722         * libc/stdlib/Makefile.am (ELIX_2_SOURCES): Add mbsnrtowcs.c
3723         and wcsnrtombs.c.
3724         * libc/stdlib/Makefile.in: Regenerate.
3725         * libc/stdlib/mbsnrtowcs.c: New file, implementing _mbsnrtowcs_r
3726         and mbsnrtowcs.  Document mbsnrtowcs and mbsrtowcs.
3727         * libc/stdlib/mbsrtowcs.c (_mbsrtowcs_r): Just call _mbsnrtowcs_r.
3728         (mbsrtowcs): Ditto.
3729         * libc/stdlib/wcsnrtombs.c: New file, implementing _wcsnrtombs_r
3730         and wcsnrtombs.  Document wcsrtombs and wcsnrtombs.
3731         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Just call _wcsnrtombs_r.
3732         (wcsrtombs): Ditto.
3733         * libc/stdlib/stdlib.tex: Accommodate new documentation.
3734
3735 2009-02-18  Jeff Johnston  <jjohnstn@redhat.com>
3736
3737         * libc/stdio/open_memstream.c (internal_open_memstream_r): Fix max
3738         buffer size to be in wchar_t units if wide == 1 is passed in.  In
3739         this case, also initialize the first character of the buffer to be
3740         wide char null.
3741         (_open_wmemstream_r): Cast buf to be (char **) to avoid warning.
3742         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Change all occurences of
3743         incrementing the size_t value n to first check that n is not already
3744         size_t -1.  Fix some compiler warnings.
3745         * libc/stdlib/wcstod.c: Add includes for <wctype.h> and <math.h>.
3746
3747 2009-02-18  Corinna Vinschen  <corinna@vinschen.de>
3748
3749         * libc/stdio/open_memstream.c: Add open_wmemstream to doumentation.
3750         (struct memstream): Add wide element.
3751         Change saved to a union to take char and wchar_t values.
3752         (memwriter): Accommodate wide-oriented oeprations.
3753         (memseeker): Ditto.
3754         (memseeker64): Ditto.
3755         (memcloser): Ditto.
3756         (internal_open_memstream_r): New static function.  Take functionality
3757         from former _open_memstream_r and handle additional "wide" parameter.
3758         (_open_memstream_r): Just call internal_open_memstream_r with wide==-1
3759         from here.
3760         (_open_wmemstream_r): New function.
3761         (open_wmemstream): Ditto.
3762         * libc/include/wchar.h (open_wmemstream): Declare.
3763         (_open_wmemstream_r): Declare.
3764
3765 2009-02-16  Corinna Vinschen  <corinna@vinschen.de>
3766
3767         * libc/stdio/fputwc.c: Fix typo in man page info.
3768
3769 2009-02-12  Corinna Vinschen  <corinna@vinschen.de>
3770
3771         * libc/include/wchar.h (_wcstod_r): Declare.
3772         (_wcstof_r): Declare.
3773         (wcstod): Declare.
3774         (wcstof): Declare.
3775         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstod.c.
3776         (CHEWOUT_FILES): Add wcstod.def.
3777         * libc/stdlib/Makefile.in: Regenerate.
3778         * libc/stdlib/stdlib.tex: Add wcstod.
3779         * libc/stdlib/wcstod.c: New file.
3780
3781 2009-02-05  Neal H. Walfield  <neal@gnu.org>
3782
3783         * libc/machine/x86_64/memcpy.S (memcpy): Don't use the red zone.
3784
3785 2009-01-28  Jeff Johnston  <jjohnstn@redhat.com>
3786
3787         * libc/stdio/vfscanf.c (__SVFSCANF_R): Add additional check for
3788         inf and nan processing to not proceed if we have already collected
3789         zeroes.
3790
3791 2009-01-26  DJ Delorie  <dj@redhat.com>
3792
3793         * configure.host (m32c-*-*): Add long long I/O support by default.
3794
3795 2009-01-21  Richard Earnshaw  <rearnsha@arm.com>
3796
3797         * libc/machine/arm/arm_asm.h: New file.
3798         * libc/machine/arm/strlen.c: New file.
3799         * libc/machine/arm/strcpy.c: New file.
3800         * libc/machine/arm/strcmp.c: New file.
3801         * libc/machine/arm/Makefile.am: Add new string routines.
3802
3803 2009-01-19  Neal H. Walfield  <neal@gnu.org>
3804
3805         * libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C)
3806         [__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL.
3807         * libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX,
3808         __PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l,
3809         not ll.
3810
3811 2009-01-12  Nathan Froyd  <froydnj@codesourcery.com>
3812
3813         * libc/machine/powerpc/vfscanf.c (__sccl): Remove declaration.
3814
3815 2009-01-12  Jeff Johnston  <jjohnstn@redhat.com>
3816
3817         * libc/stdio/fwalk.c (__fwalk, __fwalk_reent): Remove locking of
3818         each fp.  Let the function being called lock the fp, if necessary.
3819
3820 2009-01-07  Kazu Hirata  <kazu@codesourcery.com>
3821
3822         * libc/include/sys/stdio.h (_flockfile, _funlockfile): Fix typos.
3823
3824 2009-01-05  Craig Howland <howland@LGSInnovations.com>
3825
3826         * libc/stdio/fwide.c:  Correct typo in TRAD_SYNOPSIS for _fwide_r.
3827
3828 2008-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3829
3830         * NEWS: Update with 1.17.0 info.
3831         * README: Ditto.
3832         * acinclude.m4: Change version number to 1.17.0.
3833         * aclocal.m4: Regenerated.
3834         * configure: Ditto.
3835         * doc/aclocal.m4: Ditto.
3836         * doc/configure: Ditto.
3837         * libc/*/aclocal.m4: Ditto.
3838         * libc/*/configure: Ditto.
3839         * libc/libc.texinfo: Ditto.
3840         * libm/*/aclocal.m4: Ditto.
3841         * libm/*/configure: Ditto.
3842         * libm/libm.texinfo: Ditto.
3843         * libc/sys/linux/shared.ld: Add VERS_1.17
3844
3845 2008-12-17  Jon Beniston <jon@beniston.com>
3846
3847         * configure.host: Set syscall_dir for lm32 target.
3848
3849 2008-12-15  Jeff Johnston  <jjohnstn@redhat.com>
3850
3851         * libc/stdio/stdio.tex: Remove putwc and getwc references as they
3852         are included as part of fputwc and fgetwc, respectively.
3853
3854 2008-12-12  Craig Howland <howland@LGSInnovations.com>
3855
3856         * libc/include/wchar.h:  Added wcstok() declaration.
3857         * libc/string/wcstok.c: New file, implementing wcstok.
3858         * libc/string/Makefile.am: Add wcstok support.
3859         * libc/string/wcstrings.tex: Ditto.
3860         * libc/string/Makefile.in: Regenerated.
3861
3862 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
3863
3864         * libc/stdio/fputws.c: Fix documentation.
3865         * libc/stdio/getwchar.c: Ditto.
3866         * libc/stdio/putwchar.c: Ditto.
3867
3868 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
3869
3870         * libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to
3871         200112L (SUSv3 compliance).
3872         Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).
3873
3874 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
3875
3876         * libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(),
3877         _execve(), _exit().
3878
3879 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
3880
3881         * configure.host: Let *rtems* default to c99-formats.
3882
3883 2008-12-12  Craig Howland  <howland@LGSInnovations.com>
3884
3885         * libc/stdio/freopen.c:  Add <string.h> for memset prototype.
3886         * libc/stdio/fseek.c:  Ditto.
3887         * libc/stdio/fwide.c:  Add <wchar.h> for fwide prototype.
3888
3889 2008-12-11 Jeff Johnston  <jjohnstn@redhat.com>
3890
3891         * libc/include/sys/time.h (gettimeofday): Change prototype so
3892         2nd parameter is void *, matching SUSV2.
3893         * libc/syscalls/sysgettod.c (gettimeofday): Ditto.
3894
3895 2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
3896
3897         * configure.host: Add lm32
3898         * libc/include/machine/ieeefp.h: Add __lm32__
3899         * libc/include/machine/setjmp.h: Add __lm32__
3900         * libc/machine/configure.in: Add lm32
3901         * libc/machine/configure: Regenerated.
3902         * libc/machine/lm32/aclocal.m4: New file.
3903         * libc/machine/lm32/configure.in: Ditto.
3904         * libc/machine/lm32/configure: Ditto.
3905         * libc/machine/lm32/Makefile.am: Ditto.
3906         * libc/machine/lm32/Makefile.in: Ditto.
3907         * libc/machine/lm32/setjmp.s: Ditto.
3908
3909 2008-12-11  Craig Howland  <howland@LGSInnovations.com>
3910
3911         * libc/include/sys/lock.h:  Add void cast to avoid "statement has no
3912         effect" warnings from gcc.
3913         * libc/include/sys/stdio.h:  Ditto.
3914         * libc/include/sys/time.h:  Correct gettimeofday() prototype.
3915         * libc/stdlib/__exp10.c:  Add #include "std.h" for function prototype.
3916         * libc/stdlib/__ten_mu.c:  Ditto.
3917         * libc/stdlib/std.h:  Correct __exp10's ANSI prototype.
3918         * libc/stdlib/ldtoa.c:  Change eiisinf definition to ANSI form.  (Are
3919         already others in file without _ansi method, so did not bother.)
3920         * libc/stdlib/system.c:  Use _ansi forms for function prototypes and
3921         definitions.
3922         * libc/time/mktime.c:  Ditto.
3923         * libc/misc/__dprintf.c:  Ditto.
3924         * libc/include/stdio.h:  Add function prototypes for _fgetc_r,
3925         _fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r,
3926         _funopen_r, and _fopencookie_r.
3927         * libc/include/reent.h:  Add function prototype for _stat64_r, align
3928         _execve_r prototype with POSIX definition for execve.
3929         * libc/reent/execr.c:  Align function prototype with POSIX definition.
3930         * libc/stdio/asniprintf.c:  Add #include "local.h".
3931         * libc/stdio/vasniprintf.c:  Ditto.
3932         * libc/stdio/fread.c:  Remove unused variable newcount.
3933         * libc/stdio/local.h:  Add function prototype for __sccl.
3934         * libc/stdio/open_memstream.c:  Remove unused variable flags.
3935         * libc/stdio/vfscanf.c:  Proper prototyping for ccfn, remove prototype
3936         for __sccl since now in local.h.
3937         * libc/string/memcpy.c:  Add #include <string.h> (for real and for
3938         traditional synopsis), remove extraneous stddef.h and limits.h.
3939         * libc/syscalls/sysclose.c:  Add #include <unistd.h>.
3940         * libc/syscalls/sysfork.c:  Ditto.
3941         * libc/syscalls/sysgetpid.c:  Ditto.
3942         * libc/syscalls/sysexecve.c:  Add #include <unistd.h>, align function
3943         prototype with POSIX definition.
3944         * libc/syscalls/sysfstat.c:  Add #include <sys/stat.h>.
3945         * libc/syscalls/sysgettod.c:  Correct sys/times.h to sys/time.h.
3946         * libc/syscalls/syskill.c:  Add #include <signal.h>.
3947         * libc/syscalls/syslink.c:  Add #include <unistd.h>, fix prototype.
3948         * libc/syscalls/sysunlink.c:  Ditto.
3949         * libc/syscalls/sysstat.c:  Add #include <sys/stat.h>, fix prototype.
3950         * libc/syscalls/syswait.c:  Add #include <sys/wait.h>, fix prototype.
3951
3952 2008-12-10  Corinna Vinschen  <corinna@vinschen.de>
3953
3954         Implement basic wide char stdio functionality, based on FreeBSD.
3955         * libc/include/stdio.h (__SORD): Define.
3956         (__SWID): Define.
3957         * libc/include/wchar.h: Add declarations for new wide char functions.
3958         (getwc): Define as macro.
3959         (getwchar): Ditto.
3960         (putwc): Ditto.
3961         (putwchar): Ditto.
3962         * libc/include/sys/reent.h (struct __sFILE): Add _mbstate member.
3963         (struct __sFILE64): Ditto.
3964         * libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c,
3965         fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c
3966         and ungetwc.c.
3967         (CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def,
3968         fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and
3969         ungetwc.def.
3970         Add header dependency rules for the new files.
3971         * libc/stdio/Makefile.in: Regenerate.
3972         * libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r.
3973         * libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r.
3974         * libc/stdio/findfp.c (std): Initialize FILE's _mbstate member.
3975         (__sfmoreglue): Ditto.
3976         * libc/stdio/fputs.c (_fputs_r): Set stream orientation.
3977         * libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r.
3978         * libc/stdio/fputws.c: New file, implementing fputws and _fputws_r.
3979         * libc/stdio/fread.c (_fread_r): Set stream orientation.
3980         * libc/stdio/freopen.c (_freopen_r): Reset stream orientation.  Reset
3981         _mbstate.
3982         * libc/stdio/fseek.c (_fseek_r): Reset _mbstate.
3983         * libc/stdio/fwide.c: New file, implementing fwide and _fwide_r.
3984         * libc/stdio/fwrite.c (_fwrite_r): Set stream orientation.
3985         * libc/stdio/getwc.c: New file, implementing getwc and _getwc_r.
3986         * libc/stdio/getwchar.c: New file, implementing getwchar and
3987         _getwchar_r.
3988         * libc/stdio/local.h (ORIENT): New macro.
3989         * libc/stdio/puts.c (_puts_r): Set stream orientation.
3990         * libc/stdio/putwc.c: New file, implementing putwc and _putwc_r.
3991         * libc/stdio/putwchar.c: New file, implementing putwchar and
3992         _putwchar_r.
3993         * libc/stdio/refill.c (__srefill_r): Set stream orientation.
3994         * libc/stdio/stdio.tex: Add documentation for new functions.
3995         * libc/stdio/ungetc.c (_ungetc_r): Set stream orientation.
3996         * libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r.
3997         * libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation.
3998         * libc/stdio/wbuf.c (__swbuf_r): Ditto.
3999
4000 2008-12-10  Joseph Myers  <joseph@codesourcery.com>
4001
4002         * libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
4003         INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
4004         constants with "long" types where appropriate.
4005         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
4006         INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
4007         UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
4008         Correct to match logic for defining corresponding types.
4009         (INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
4010         (SIZE_MAX): Define using __SIZE_MAX__ if available.
4011         (PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
4012         (PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
4013         (WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
4014         (UINT8_C, UINT16_C): Define to give signed values if corresponding
4015         types would promote to int.
4016
4017 2008-12-04  Corinna Vinschen  <corinna@vinschen.de>
4018
4019         * libc/include/sys/features.h (_POSIX_V6_ILP32_OFF32): Always define.
4020         (_POSIX_V6_LP64_OFF64): Ditto.
4021         (_POSIX_V6_LPBIG_OFFBIG): Ditto.
4022
4023 2008-11-28  Jeff Johnston  <jjohnstn@redhat.com>
4024
4025         * libc/sys/linux/inode.c: Include <dirent.h> instead of
4026         <linux/dirent.h>.
4027         * libc/sys/linux/io64.c: Add weak alias for _stat64.
4028
4029 2008-11-27  Ralf Corsepius <ralf.corsepius@rtems.org>
4030
4031         * libc/posix/telldir.c: Use #if !defined() instead of #ifndef
4032         to fix GCC warning.
4033
4034 2008-11-27  Ken Werner  <ken.werner@de.ibm.com>
4035
4036         * libc/machine/spu/Makefile.am: Add spu-mcount.S spu-gmon.c.
4037         * libc/machine/spu/Makefile.in: Regenerated.
4038         * libc/machine/spu/spu-gmon.c: New file.
4039         * libc/machine/spu/spu-mcount.S: New file.
4040
4041 2008-11-27  Joel Sherrill <joel.sherrill@oarcorp.com>
4042
4043         * configure.host (*-rtems*): Turn on using portion of unix subdirectory.
4044
4045 2008-11-27  Craig Howland <howland@LGSInnovations.com>
4046
4047         * libc/argz/argz_add.c:  Added #include <argz.h> to get function
4048         prototypes.
4049         * libc/argz/argz_append.c: Ditto.
4050         * libc/argz/argz_count.c: Ditto.
4051         * libc/argz/argz_create.c: Ditto.
4052         * libc/argz/argz_create_sep.c: Ditto.
4053         * libc/argz/argz_delete.c: Ditto.
4054         * libc/argz/argz_next.c: Ditto.
4055         * libc/argz/argz_stringify.c: Ditto
4056         * libc/stdlib/strtod.c: Added #include <stdlib.h> to get function
4057         prototypes.
4058         * libc/stdlib/wcstoul.c: Added #include <wchar.h> to get function
4059         prototypes, corrected traditional usage comment.
4060         * libc/include/wchar.h: Added _mbsrtowcs_r() prototype.
4061
4062 2008-11-26 Ken Werner <ken.werner@de.ibm.com>
4063
4064         * libm/machine/spu/headers/acosd2.h: Rebase against current simdmath.
4065         * libm/machine/spu/headers/asind2.h: Likewise.
4066         * libm/machine/spu/headers/asinhf4.h: Likewise.
4067         * libm/machine/spu/headers/divd2.h: Likewise.
4068         * libm/machine/spu/headers/erf_utils.h: Likewise.
4069         * libm/machine/spu/headers/erfcd2.h: Likewise.
4070         * libm/machine/spu/headers/erfcf4.h: Likewise.
4071         * libm/machine/spu/headers/erfd2.h: Likewise.
4072         * libm/machine/spu/headers/recipd2.h: Likewise.
4073
4074 2008-11-25  Corinna Vinschen  <corinna@vinschen.de>
4075
4076         * libc/stdio/gets.c (_gets_r): Lock stdin here and call
4077         __sgetc_r instead of _getchar_r.
4078
4079 2008-11-24  Craig Howland  <howland@LGSInnovations.com>
4080
4081         * libc/stdlib/wcstoull_r.c:  Add EINVAL return for bad base value,
4082         include wchar.h for prototype, remove extraneous includes, use
4083         C99/POSIX ULLONG_MAX (but allow for poor limits.h).
4084         * libc/stdlib/wcstoull.c:  Fix usage comments (mistakes and to add
4085         base value check noted above), remove extraneous includes.
4086         * libc/stdio/asnprintf.c:  Add #include "local.h" to get function
4087         prototype for _svfprintf_r().
4088         * libc/stdio/vasnprintf.c:  Ditto.
4089         * libc/stdio/local.h:  Add function prototype for __submore().
4090         * libc/include/stdio.h:  Add function prototypes for _fseeko_r and
4091         _ftello_r.
4092         * libc/posix/namespace.h:  Commented out define for write to
4093         eliminate write() prototype being missing for collate.c (which is
4094         the only file that presently includes namespace.h).
4095         * libc/include/reent.h:  Added _rename_r.
4096         * libc/reent/renamer.c:  Corrected function prototypes in synopses.
4097         * libc/locale/ldpart.c:  Use struct stat64 when calling fstat64.
4098
4099 2008-11-24  Jeff Johnston  <jjohnstn@redhat.com>
4100
4101         * libc/search/hash_func.c: Comment out unused static hash functions.
4102         * libc/reent/stat64r.c: New file.
4103         * libc/reent/Makefile.am: Add stat64r.c support.
4104         * libc/reent/Makefile.in: Regenerated.
4105
4106 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
4107
4108         * libc/posix/scandir.c: Fix memory leaks.
4109
4110 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
4111
4112         * libc/posix/Makefile.am: Compile readdir_r.c not readdir.c twice.
4113         * libc/posix/Makefile.in: Regenerated.
4114
4115 2008-11-24  Corinna Vinschen  <corinna@vinschen.de>
4116
4117         * libc/include/stdio.h (__SMOD): Remove definition of unused flag.
4118         * libc/include/sys/reent.h (struct __sFILE): Add _flags2 member.
4119         * libc/stdio/findfp.c (std): Initialize _flags2.
4120         (__sfp): Ditto.
4121         * libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag.
4122         * libc/stdio/vfscanf.c (__ssrefill_r): Ditto.
4123         * libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag.
4124         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
4125
4126 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
4127
4128         * libc/machine/spu/sys/linux_syscalls.h: Additional syscall defines to
4129         be in sync with current kernels.
4130
4131 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
4132             Patrick Mansfield  <patmans@us.ibm.com>
4133             Joel Schopp   <jschopp@austin.ibm.com>
4134
4135         * libc/machine/spu/configure.in: Add __ea detection.
4136         * libc/machine/spu/Makefile.am: Add new files.
4137         * libc/machine/spu/include/ea.h: New file.
4138         * libc/machine/spu/ea_internal.h: Likewise.
4139         * libc/machine/spu/sys/mman.h: Likewise.
4140         * libc/machine/spu/mmap_ea.c: Likewise.
4141         * libc/machine/spu/munmap_ea.c: Likewise.
4142         * libc/machine/spu/mremap_ea.c: Likewise.
4143         * libc/machine/spu/msync_ea.c: Likewise.
4144         * libc/machine/spu/memchr_ea.c: Likewise.
4145         * libc/machine/spu/memcmp_ea.c: Likewise.
4146         * libc/machine/spu/memcpy_ea.c: Likewise.
4147         * libc/machine/spu/memmove_ea.c: Likewise.
4148         * libc/machine/spu/memset_ea.c: Likewise.
4149         * libc/machine/spu/malloc_ea.c: Likewise.
4150         * libc/machine/spu/realloc_ea.c: Likewise.
4151         * libc/machine/spu/calloc_ea.c: Likewise.
4152         * libc/machine/spu/free_ea.c: Likewise.
4153         * libc/machine/spu/posix_memalign_ea.c: Likewise.
4154         * libc/machine/spu/strcat_ea.c: Likewise.
4155         * libc/machine/spu/strchr_ea.c: Likewise.
4156         * libc/machine/spu/strcmp_ea.c: Likewise.
4157         * libc/machine/spu/strcpy_ea.c: Likewise.
4158         * libc/machine/spu/strcspn_ea.c: Likewise.
4159         * libc/machine/spu/strlen_ea.c: Likewise.
4160         * libc/machine/spu/strncat_ea.c: Likewise.
4161         * libc/machine/spu/strncmp_ea.c: Likewise.
4162         * libc/machine/spu/strncpy_ea.c: Likewise.
4163         * libc/machine/spu/strpbrk_ea.c: Likewise.
4164         * libc/machine/spu/strrchr_ea.c: Likewise.
4165         * libc/machine/spu/strspn_ea.c: Likewise.
4166         * libc/machine/spu/strstr_ea.c: Likewise.
4167         * libc/machine/spu/read_ea.c: Likewise.
4168         * libc/machine/spu/pread_ea.c: Likewise.
4169         * libc/machine/spu/readv_ea.c: Likewise.
4170         * libc/machine/spu/write_ea.c: Likewise.
4171         * libc/machine/spu/pwrite_ea.c: Likewise.
4172         * libc/machine/spu/writev_ea.c: Likewise.
4173
4174 2008-11-19  Joel Sherrill <joel.sherrill@oarcorp.com>
4175
4176         * libc/include/sys/config.h[__mips__]: Don't bother
4177         setting __ATTRIBUTE_IMPURE_PTR__ here.
4178         [__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__
4179         macro anymore.
4180
4181 2008-11-19  Jeff Johnston  <jjohnstn@redhat.com>
4182
4183         * libc/sys/linux/bits/dirent.h: New header file.
4184         * libc/sys/linux/sys/dirent.h: Include <bits/dirent.h> instead of
4185         <linux/dirent.h>.
4186         * libc/posix/Makefile.am: Remove reallocf.
4187         * libc/posix/Makefile.in: Regenerated.
4188         * libc/posix/reallocf.c: Moved to...
4189         * libc/stdlib/reallocf.c: Here
4190         * libc/stdlib/malloc.c: Add reallocf documentation.
4191         * libc/include/stdlib.h: Add reallocf and _reallocf_r prototypes.
4192         * libc/stdlib/Makefile.am: Add reallocf.
4193         * libc/stdlib/Makefile.in: Regenerated.
4194         * libc/posix/_isatty.c: Set errno.
4195
4196 2008-11-19  Craig Howland  <howland@LGSInnovations.com>
4197
4198         * libc/unix/collate.c (__collate_err): simplify to remove unnecessary
4199         strdup() and strlen() calls, also getting rid of a compiler warning.
4200
4201 2008-11-19  Ralf Corsepius <ralf.corsepius@rtems.org>
4202
4203         * libc/include/sys/config.h: Don't put
4204         __ATTRIBUTE_IMPURE_PTR__ into .sdata section for mips-rtems.
4205
4206 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
4207
4208         * libc/posix/runetype.h: Add include of stddef.h and remove
4209         defining standard types: size_t and wchar_t.
4210
4211 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
4212
4213         * libc/include/pthread.h: Remove prototypes for
4214         pthread_attr_getcputime and pthread_attr_setcputime which
4215         were proposed but never approved by the POSIX standard.
4216
4217 2008-11-18  Joel Sherrill <joel.sherrill@oarcorp.com>
4218
4219         * libc/unix/ttyname.c: Use isatty() instead of tcgetattr().
4220
4221 2008-11-18  Jeff Johnston  <jjohnstn@redhat.com>
4222
4223         * libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be
4224         ignored if desired by a platform.
4225         * libc/unix/dirname.c: Ditto except replace BASENAME with file name.
4226         * libc/unix/getcwd.c: Ditto.
4227         * libc/unix/getlogin.c: Ditto.
4228         * libc/unix/getpass.c: Ditto.
4229         * libc/unix/getpwent.c: Ditto.
4230         * libc/unix/getut.c: Ditto.
4231         * libc/unix/pread.c: Ditto.
4232         * libc/unix/pwrite.c: Ditto.
4233         * libc/unix/sigset.c: Ditto.
4234
4235 2008-11-18  Craig Howland  <howland@LGSInnovations.com>
4236
4237         * libc/unix/ttyname.c: Add ttyname_r and change ttyname to use
4238         ttyname_r.
4239
4240 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
4241
4242         * configure.host: RTEMS now uses posix subdirectory.
4243
4244 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
4245
4246         * sys/rtems/include/limits.h: Add _POSIX2_RE_DUP_MAX.
4247         * sys/rtems/sys/param.h: sys/rtprio.h not needed.
4248
4249 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
4250
4251         * libc/stdio/diprintf.c: Modify documentation so eclipse newlib
4252         libhover docs generate properly.
4253         * libc/stdio/dprintf.c: Ditto.
4254         * libc/stdio/fflush.c: Ditto.
4255         * libc/stdio/fopencookie.c: Ditto.
4256         * libc/stdio/fread.c: Ditto.
4257         * libc/stdio/fsetpos.c: Ditto.
4258         * libc/stdio/getc_u.c: Ditto.
4259         * libc/stdio/getchar_u.c: Ditto.
4260         * libc/stdio/putc_u.c: Ditto.
4261         * libc/stdio/putchar_u.c: Ditto.
4262         * libc/stdio/remove.c: Ditto.
4263         * libc/stdio/siprintf.c: Ditto.
4264         * libc/stdio/siscanf.c: Ditto.
4265         * libc/stdio/sprintf.c: Ditto.
4266         * libc/stdio/sscanf.c: Ditto.
4267         * libc/stdio/vfprintf.c: Ditto.
4268         * libc/stdio/vfscanf.c: Ditto.
4269         * libc/stdio/viprintf.c: Ditto.
4270         * libc/stdio/viscanf.c: Ditto.
4271         * libc/stdlib/calloc.c: Ditto.
4272         * libc/stdlib/efgcvt.c: Ditto.
4273         * libc/stdlib/envlock.c: Ditto.
4274         * libc/time/asctime.c: Ditto.
4275         * libc/time/ctime.c: Ditto.
4276         * libc/time/gmtime.c: Ditto.
4277         * libc/time/lcltime.c: Ditto.
4278         * libc/time/tzset.c: Ditto.
4279         * libc/stdlib/envlock.h: Moved to libc/include.
4280
4281 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
4282
4283         * libc/include/limits.h: Add ARG_MAX, PATH_MAX, and _POSIX2_RE_DUP_MAX.
4284         * libc/include/envlock.h: New file.
4285         * libc/include/fnmatch.h: Ditto.
4286         * libc/include/glob.h: Ditto.
4287         * libc/include/regex.h: Ditto.
4288         * libc/include/wordexp.h: Ditto.
4289         * libc/posix/Makefile.am: Add new files moved from
4290         libc/sys/linux/stdlib.
4291         * libc/posix/Makefile.in: Regenerated.
4292         * libc/posix/COPYRIGHT: New file moved from libc/sys/linux/stdlib.
4293         * libc/posix/cclass.h: Ditto.
4294         * libc/posix/cname.h: Ditto.
4295         * libc/posix/collate.c: Ditto.
4296         * libc/posix/collate.h: Ditto.
4297         * libc/posix/collcmp.c: Ditto.
4298         * libc/posix/engine.c: Ditto.
4299         * libc/posix/fnmatch.3: Ditto.
4300         * libc/posix/glob.3: Ditto.
4301         * libc/posix/fnmatch.c: Ditto.
4302         * libc/posix/glob.c: Ditto.
4303         * libc/posix/namespace.h: Ditto.
4304         * libc/posix/reallocf.c: Ditto.
4305         * libc/posix/regcomp.c: Ditto.
4306         * libc/posix/regerror.c: Ditto.
4307         * libc/posix/regex.3: Ditto.
4308         * libc/posix/regex2.h: Ditto.
4309         * libc/posix/regexec.c: Ditto.
4310         * libc/posix/regfree.c: Ditto.
4311         * libc/posix/rune.h: Ditto.
4312         * libc/posix/runetype.h: Ditto.
4313         * libc/posix/scandir.c: Remove advertising clause which is not in
4314         effect.
4315         * libc/posix/sysexits.h: Ditto.
4316         * libc/posix/un-namespace.h: Ditto.
4317         * libc/posix/utils.h: Ditto.
4318         * libc/posix/wordexp.c: Ditto.
4319         * libc/posix/wordfree.c: Ditto.
4320         * libc/posix/execl.c: Add !_NO_EXECVE flag check.
4321         * libc/posix/execle.c: Ditto.
4322         * libc/posix/execlp.c: Ditto.
4323         * libc/posix/execv.c: Ditto.
4324         * libc/posix/execve.c: Ditto.
4325         * libc/posix/execvp.c: Ditto.
4326         * libc/posix/popen.c: Add !_NO_POPEN flag check.
4327         * libc/sys/linux/configure: Regenerated.
4328         * libc/sys/linux/configure.in: Remove stdlib.
4329         * libc/sys/linux/include/limits.h: Add include of linux/limits.h.
4330         * libc/sys/linux/stdlib/Makefile.am: Removed.
4331         * libc/sys/linux/stdlib/Makefile.in: Ditto.
4332         * libc/sys/linux/stdlib/COPYRIGHT: Moved to libc/posix.
4333         * libc/sys/linux/stdlib/cclass.h: Ditto.
4334         * libc/sys/linux/stdlib/cname.h: Ditto.
4335         * libc/sys/linux/stdlib/collate.c: Ditto.
4336         * libc/sys/linux/stdlib/collate.h: Ditto.
4337         * libc/sys/linux/stdlib/collcmp.c: Ditto.
4338         * libc/sys/linux/stdlib/engine.c: Ditto.
4339         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
4340         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
4341         * libc/sys/linux/stdlib/glob.3: Ditto.
4342         * libc/sys/linux/stdlib/glob.c: Ditto.
4343         * libc/sys/linux/stdlib/reallocf.c: Ditto.
4344         * libc/sys/linux/stdlib/regcomp.c: Ditto.
4345         * libc/sys/linux/stdlib/regerror.c: Ditto.
4346         * libc/sys/linux/stdlib/regex.3: Ditto.
4347         * libc/sys/linux/stdlib/regex2.h: Ditto.
4348         * libc/sys/linux/stdlib/regexec.c: Ditto.
4349         * libc/sys/linux/stdlib/regfree.c: Ditto.
4350         * libc/sys/linux/stdlib/utils.h: Ditto.
4351         * libc/sys/linux/stdlib/wordexp.c: Ditto.
4352         * libc/sys/linux/stdlib/wordfree.c: Ditto.
4353
4354 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
4355
4356         * libc/include/sys/unistd.h: RTEMS follows standard for sync().
4357
4358 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
4359
4360         * libc/include/time.h: Add CLOCK_MONOTONIC.
4361         * libc/include/sys/features.h: Define
4362         _POSIX_MONOTONIC_CLOCK for RTEMS.
4363
4364 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
4365
4366         * newlib.hin: Restore to previous 1.14 version which has no
4367         PACKAGE_ macros.
4368
4369 2008-10-15  Joel Sherrill <joel.sherrill@oarcorp.com>
4370
4371         * libc/include/sys/unistd.h: Enable ttyname_r() for RTEMS.
4372
4373 2008-10-15  Craig Howland  <howland@LGSInnovations.com>
4374
4375         * libc/include/ctype.h (isblank):  isblank is C99.
4376         * libc/ctype/isblank.c (isblank comments):  ditto.  isblank does not
4377         have a macro version (as was claimed in the description).
4378
4379 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
4380
4381         * libc/stdio/vfscanf.c (__ssvfiscanf_r): Do not support %lc, %C, %ls or
4382         %S conversions when the EL/IX level is 1.
4383
4384 2008-10-06  Eric Blake  <ebb9@byu.net>
4385
4386         * libc/stdlib/ldtoa.c (etoasc): Fix rounding to even when fraction
4387         is 0.5 or 0.75.
4388
4389 2008-10-06  Craig Howland  <howland@LGSInnovations.com>
4390
4391         * libc/time/tzset_r.c (_tzset_r):  Change US default start/end dates to
4392         2007 law revision of start in 2nd Sunday in March, end 1st Sun in Nov.
4393
4394 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
4395
4396         * libc/string/str-two-way.h (critical_factorization): Cast the index
4397         operation to ensure unsigned rollover occurs when adding to SIZE_MAX.
4398
4399 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
4400
4401         * libc/sys/linux/include/stdint.h (SIZE_MAX): Fix value which should
4402         be size of size_t, not int.
4403         (SIZE_MIN): Remove.
4404         * libc/sys/linux/sys/stdint.h: Ditto.
4405
4406 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
4407
4408         * libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add
4409         initialization of _rand_next to 1.
4410
4411 2008-09-29  Peter O'Gorman  <pogma@thewrittenword.com>
4412             Steve Ellcey  <sje@cup.hp.com>
4413
4414         * configure: Regenerate for new libtool.
4415         * aclocal.m4: Ditto.
4416         * Makefile.in: Ditto.
4417         * newlib.hin: Ditto.
4418         * doc/Makefile.in: Ditto.
4419         * doc/configure: Ditto.
4420         * iconvdata/Makefile.in: Ditto.
4421         * iconvdata/aclocal.m4: Ditto.
4422         * iconvdata/configure: Ditto.
4423         * libc/Makefile.in: Ditto.
4424         * libc/aclocal.m4: Ditto.
4425         * libc/configure: Ditto.
4426         * libc/argz/Makefile.in: Ditto.
4427         * libc/ctype/Makefile.in: Ditto.
4428         * libc/errno/Makefile.in: Ditto.
4429         * libc/iconv/Makefile.in: Ditto.
4430         * libc/iconv/ccs/Makefile.in: Ditto.
4431         * libc/iconv/ccs/binary/Makefile.in: Ditto.
4432         * libc/iconv/ces/Makefile.in: Ditto.
4433         * libc/iconv/lib/Makefile.in: Ditto.
4434         * libc/locale/Makefile.in: Ditto.
4435         * libc/machine/Makefile.in: Ditto.
4436         * libc/machine/aclocal.m4: Ditto.
4437         * libc/machine/configure: Ditto.
4438         * libc/machine/a29k/Makefile.in: Ditto.
4439         * libc/machine/a29k/configure: Ditto.
4440         * libc/machine/arm/Makefile.in: Ditto.
4441         * libc/machine/arm/configure: Ditto.
4442         * libc/machine/bfin/Makefile.in: Ditto.
4443         * libc/machine/bfin/configure: Ditto.
4444         * libc/machine/cris/Makefile.in: Ditto.
4445         * libc/machine/cris/configure: Ditto.
4446         * libc/machine/crx/Makefile.in: Ditto.
4447         * libc/machine/crx/configure: Ditto.
4448         * libc/machine/d10v/Makefile.in: Ditto.
4449         * libc/machine/d10v/configure: Ditto.
4450         * libc/machine/d30v/Makefile.in: Ditto.
4451         * libc/machine/d30v/configure: Ditto.
4452         * libc/machine/fr30/Makefile.in: Ditto.
4453         * libc/machine/fr30/configure: Ditto.
4454         * libc/machine/frv/Makefile.in: Ditto.
4455         * libc/machine/frv/configure: Ditto.
4456         * libc/machine/h8300/Makefile.in: Ditto.
4457         * libc/machine/h8300/configure: Ditto.
4458         * libc/machine/h8500/Makefile.in: Ditto.
4459         * libc/machine/h8500/configure: Ditto.
4460         * libc/machine/hppa/Makefile.in: Ditto.
4461         * libc/machine/hppa/configure: Ditto.
4462         * libc/machine/i386/Makefile.in: Ditto.
4463         * libc/machine/i386/aclocal.m4: Ditto.
4464         * libc/machine/i386/configure: Ditto.
4465         * libc/machine/i960/Makefile.in: Ditto.
4466         * libc/machine/i960/configure: Ditto.
4467         * libc/machine/iq2000/Makefile.in: Ditto.
4468         * libc/machine/iq2000/configure: Ditto.
4469         * libc/machine/m32c/Makefile.in: Ditto.
4470         * libc/machine/m32c/configure: Ditto.
4471         * libc/machine/m32r/Makefile.in: Ditto.
4472         * libc/machine/m32r/configure: Ditto.
4473         * libc/machine/m68hc11/Makefile.in: Ditto.
4474         * libc/machine/m68hc11/configure: Ditto.
4475         * libc/machine/m68k/Makefile.in: Ditto.
4476         * libc/machine/m68k/configure: Ditto.
4477         * libc/machine/m88k/Makefile.in: Ditto.
4478         * libc/machine/m88k/configure: Ditto.
4479         * libc/machine/mep/Makefile.in: Ditto.
4480         * libc/machine/mep/configure: Ditto.
4481         * libc/machine/mips/Makefile.in: Ditto.
4482         * libc/machine/mips/configure: Ditto.
4483         * libc/machine/mn10200/Makefile.in: Ditto.
4484         * libc/machine/mn10200/configure: Ditto.
4485         * libc/machine/mn10300/Makefile.in: Ditto.
4486         * libc/machine/mn10300/configure: Ditto.
4487         * libc/machine/mt/Makefile.in: Ditto.
4488         * libc/machine/mt/configure: Ditto.
4489         * libc/machine/necv70/Makefile.in: Ditto.
4490         * libc/machine/necv70/configure: Ditto.
4491         * libc/machine/powerpc/Makefile.in: Ditto.
4492         * libc/machine/powerpc/configure: Ditto.
4493         * libc/machine/sh/Makefile.in: Ditto.
4494         * libc/machine/sh/configure: Ditto.
4495         * libc/machine/sparc/Makefile.in: Ditto.
4496         * libc/machine/sparc/configure: Ditto.
4497         * libc/machine/spu/Makefile.in: Ditto.
4498         * libc/machine/spu/configure: Ditto.
4499         * libc/machine/tic4x/Makefile.in: Ditto.
4500         * libc/machine/tic4x/configure: Ditto.
4501         * libc/machine/tic80/Makefile.in: Ditto.
4502         * libc/machine/tic80/configure: Ditto.
4503         * libc/machine/v850/Makefile.in: Ditto.
4504         * libc/machine/v850/configure: Ditto.
4505         * libc/machine/w65/Makefile.in: Ditto.
4506         * libc/machine/w65/configure: Ditto.
4507         * libc/machine/x86_64/Makefile.in: Ditto.
4508         * libc/machine/x86_64/configure: Ditto.
4509         * libc/machine/xscale/Makefile.in: Ditto.
4510         * libc/machine/xscale/configure: Ditto.
4511         * libc/machine/xstormy16/Makefile.in: Ditto.
4512         * libc/machine/xstormy16/configure: Ditto.
4513         * libc/machine/z8k/Makefile.in: Ditto.
4514         * libc/machine/z8k/configure: Ditto.
4515         * libc/misc/Makefile.in: Ditto.
4516         * libc/posix/Makefile.in: Ditto.
4517         * libc/reent/Makefile.in: Ditto.
4518         * libc/search/Makefile.in: Ditto.
4519         * libc/signal/Makefile.in: Ditto.
4520         * libc/stdio/Makefile.in: Ditto.
4521         * libc/stdio64/Makefile.in: Ditto.
4522         * libc/stdlib/Makefile.in: Ditto.
4523         * libc/string/Makefile.in: Ditto.
4524         * libc/sys/Makefile.in: Ditto.
4525         * libc/sys/aclocal.m4: Ditto.
4526         * libc/sys/configure: Ditto.
4527         * libc/sys/a29khif/Makefile.in: Ditto.
4528         * libc/sys/a29khif/configure: Ditto.
4529         * libc/sys/arc/Makefile.in: Ditto.
4530         * libc/sys/arc/configure: Ditto.
4531         * libc/sys/arm/Makefile.in: Ditto.
4532         * libc/sys/arm/configure: Ditto.
4533         * libc/sys/d10v/Makefile.in: Ditto.
4534         * libc/sys/d10v/configure: Ditto.
4535         * libc/sys/decstation/Makefile.in: Ditto.
4536         * libc/sys/decstation/configure: Ditto.
4537         * libc/sys/h8300hms/Makefile.in: Ditto.
4538         * libc/sys/h8300hms/configure: Ditto.
4539         * libc/sys/h8500hms/Makefile.in: Ditto.
4540         * libc/sys/h8500hms/configure: Ditto.
4541         * libc/sys/linux/Makefile.in: Ditto.
4542         * libc/sys/linux/aclocal.m4: Ditto.
4543         * libc/sys/linux/configure: Ditto.
4544         * libc/sys/linux/argp/Makefile.in: Ditto.
4545         * libc/sys/linux/cmath/Makefile.in: Ditto.
4546         * libc/sys/linux/dl/Makefile.in: Ditto.
4547         * libc/sys/linux/iconv/Makefile.in: Ditto.
4548         * libc/sys/linux/intl/Makefile.in: Ditto.
4549         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
4550         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
4551         * libc/sys/linux/linuxthreads/configure: Ditto.
4552         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
4553         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
4554         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
4555         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
4556         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
4557         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
4558         * libc/sys/linux/machine/Makefile.in: Ditto.
4559         * libc/sys/linux/machine/aclocal.m4: Ditto.
4560         * libc/sys/linux/machine/configure: Ditto.
4561         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
4562         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
4563         * libc/sys/linux/machine/i386/configure: Ditto.
4564         * libc/sys/linux/net/Makefile.in: Ditto.
4565         * libc/sys/linux/stdlib/Makefile.in: Ditto.
4566         * libc/sys/m88kbug/Makefile.in: Ditto.
4567         * libc/sys/m88kbug/configure: Ditto.
4568         * libc/sys/mmixware/Makefile.in: Ditto.
4569         * libc/sys/mmixware/configure: Ditto.
4570         * libc/sys/netware/Makefile.in: Ditto.
4571         * libc/sys/netware/configure: Ditto.
4572         * libc/sys/rdos/Makefile.in: Ditto.
4573         * libc/sys/rdos/configure: Ditto.
4574         * libc/sys/rtems/Makefile.in: Ditto.
4575         * libc/sys/rtems/configure: Ditto.
4576         * libc/sys/sh/Makefile.in: Ditto.
4577         * libc/sys/sh/configure: Ditto.
4578         * libc/sys/sparc64/Makefile.in: Ditto.
4579         * libc/sys/sparc64/configure: Ditto.
4580         * libc/sys/sun4/Makefile.in: Ditto.
4581         * libc/sys/sun4/configure: Ditto.
4582         * libc/sys/sysmec/Makefile.in: Ditto.
4583         * libc/sys/sysmec/configure: Ditto.
4584         * libc/sys/sysnec810/Makefile.in: Ditto.
4585         * libc/sys/sysnec810/configure: Ditto.
4586         * libc/sys/sysnecv850/Makefile.in: Ditto.
4587         * libc/sys/sysnecv850/configure: Ditto.
4588         * libc/sys/sysvi386/Makefile.in: Ditto.
4589         * libc/sys/sysvi386/configure: Ditto.
4590         * libc/sys/sysvnecv70/Makefile.in: Ditto.
4591         * libc/sys/sysvnecv70/configure: Ditto.
4592         * libc/sys/tic80/Makefile.in: Ditto.
4593         * libc/sys/tic80/configure: Ditto.
4594         * libc/sys/w65/Makefile.in: Ditto.
4595         * libc/sys/w65/configure: Ditto.
4596         * libc/sys/z8ksim/Makefile.in: Ditto.
4597         * libc/sys/z8ksim/configure: Ditto.
4598         * libc/syscalls/Makefile.in: Ditto.
4599         * libc/time/Makefile.in: Ditto.
4600         * libc/unix/Makefile.in: Ditto.
4601         * libm/Makefile.in: Ditto.
4602         * libm/aclocal.m4: Ditto.
4603         * libm/configure: Ditto.
4604         * libm/common/Makefile.in: Ditto.
4605         * libm/machine/Makefile.in: Ditto.
4606         * libm/machine/aclocal.m4: Ditto.
4607         * libm/machine/configure: Ditto.
4608         * libm/machine/i386/Makefile.in: Ditto.
4609         * libm/machine/i386/aclocal.m4: Ditto.
4610         * libm/machine/i386/configure: Ditto.
4611         * libm/machine/spu/Makefile.in: Ditto.
4612         * libm/machine/spu/configure: Ditto.
4613         * libm/math/Makefile.in: Ditto.
4614         * libm/mathfp/Makefile.in: Ditto.
4615
4616 2008-09-26  Craig Howland  <howland@LGSInnovations.com>
4617
4618         * libc/stdlib/getenv_r.c (_getenv_r): Modify to not match if name
4619         contains an equal sign.
4620
4621 2008-09-25  Raphael Derossa Pereira  <raphaelpereira@gmail.com>
4622
4623         * libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
4624         new pthread_mutexattr_gettype and pthread_mutexattr_settype
4625         prototypes.
4626         * libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
4627         new mutex type values.
4628         (pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type
4629         field.
4630
4631 2008-09-24  Jeff Johnston  <jjohnstn@redhat.com>
4632
4633         * libc/stdlib/setenv_r.c (_unsetenv_r): Modify to return -1 only if
4634         name is NULL, empty, or contains equal sign.
4635
4636 2008-09-24  Pawel Veselov  <pawel.veselov@gmail.com>
4637
4638         Fix setenv/getenv/unsetenv to be OpenGroup compliant:
4639         * libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer
4640         return types.
4641         * libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with
4642         names that contain equal chars.
4643         * libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int.
4644         * libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to
4645         EINVAL if name contains an equal sign.  Do not remove any equal signs
4646         from the value.
4647         (_unsetenv_r): Modified to return int.  Return -1 and set EINVAL
4648         if name contains equal sign.  Return -1 if no variable(s) were found
4649         and return 0 otherwise.
4650
4651 2008-09-19  Eric Blake  <ebb9@byu.net>
4652
4653         Supply missing POSIX errno values.
4654         * libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
4655         * libc/string/strerror.c (strerror): Decode them, and ECANCELED.
4656
4657 2008-09-10  Ken Werner  <ken.werner@de.ibm.com>
4658
4659         * libc/machine/spu/strcpy.h: Add missing header.
4660         * libc/machine/spu/spu_timer_slih.c: Remove unused Variable.
4661         * libm/machine/spu/headers/lgammaf4.h: Add type cast.
4662
4663 2008-09-08  Jeff Johnston  <jjohnstn@redhat.com>
4664
4665         * libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm
4666         statement to use "m" instead of "0".
4667         (atomic_add): Ditto.
4668         * libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto.
4669         * libc/sys/linux/net/getaddrinfo.c: Add limit.h include.
4670         * libc/sys/linux/stdlib/glob.c: Ditto.
4671
4672 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
4673
4674         * libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
4675         * libm/machine/spu/headers/acosf4.h: Likewise.
4676         * libm/machine/spu/headers/acoshd2.h: Likewise.
4677         * libm/machine/spu/headers/acoshf4.h: Likewise.
4678         * libm/machine/spu/headers/asind2.h: Likewise.
4679         * libm/machine/spu/headers/asinf4.h: Likewise.
4680         * libm/machine/spu/headers/asinhd2.h: Likewise.
4681         * libm/machine/spu/headers/asinhf4.h: Likewise.
4682         * libm/machine/spu/headers/atan2d2.h: Likewise.
4683         * libm/machine/spu/headers/atan2f4.h: Likewise.
4684         * libm/machine/spu/headers/atand2.h: Likewise.
4685         * libm/machine/spu/headers/atanf4.h: Likewise.
4686         * libm/machine/spu/headers/atanhd2.h: Likewise.
4687         * libm/machine/spu/headers/atanhf4.h: Likewise.
4688         * libm/machine/spu/headers/cos_sin.h: Likewise.
4689         * libm/machine/spu/headers/cosd2.h: Likewise.
4690         * libm/machine/spu/headers/cosf4.h: Likewise.
4691         * libm/machine/spu/headers/coshd2.h: Likewise.
4692         * libm/machine/spu/headers/coshf4.h: Likewise.
4693         * libm/machine/spu/headers/divd2.h: Likewise.
4694         * libm/machine/spu/headers/divf4.h: Likewise.
4695         * libm/machine/spu/headers/erf_utils.h: Likewise.
4696         * libm/machine/spu/headers/erfcd2.h: Likewise.
4697         * libm/machine/spu/headers/erfcf4.h: Likewise.
4698         * libm/machine/spu/headers/erfd2.h: Likewise.
4699         * libm/machine/spu/headers/erff4.h: Likewise.
4700         * libm/machine/spu/headers/exp2d2.h: Likewise.
4701         * libm/machine/spu/headers/exp2f4.h: Likewise.
4702         * libm/machine/spu/headers/expd2.h: Likewise.
4703         * libm/machine/spu/headers/expf4.h: Likewise.
4704         * libm/machine/spu/headers/expm1d2.h: Likewise.
4705         * libm/machine/spu/headers/expm1f4.h: Likewise.
4706         * libm/machine/spu/headers/floord2.h: Likewise.
4707         * libm/machine/spu/headers/floorf4.h: Likewise.
4708         * libm/machine/spu/headers/hypotd2.h: Likewise.
4709         * libm/machine/spu/headers/hypotf4.h: Likewise.
4710         * libm/machine/spu/headers/isnand2.h: Likewise.
4711         * libm/machine/spu/headers/isnanf4.h: Likewise.
4712         * libm/machine/spu/headers/ldexpd2.h: Likewise.
4713         * libm/machine/spu/headers/ldexpf4.h: Likewise.
4714         * libm/machine/spu/headers/lgammad2.h: Likewise.
4715         * libm/machine/spu/headers/lgammaf4.h: Likewise.
4716         * libm/machine/spu/headers/log10d2.h: Likewise.
4717         * libm/machine/spu/headers/log1pd2.h: Likewise.
4718         * libm/machine/spu/headers/log1pf4.h: Likewise.
4719         * libm/machine/spu/headers/log2d2.h: Likewise.
4720         * libm/machine/spu/headers/log2f4.h: Likewise.
4721         * libm/machine/spu/headers/logbf4.h: Likewise.
4722         * libm/machine/spu/headers/logd2.h: Likewise.
4723         * libm/machine/spu/headers/logf4.h: Likewise.
4724         * libm/machine/spu/headers/nearbyintf4.h: Likewise.
4725         * libm/machine/spu/headers/nextafterd2.h: Likewise.
4726         * libm/machine/spu/headers/nextafterf4.h: Likewise.
4727         * libm/machine/spu/headers/powd2.h: Likewise.
4728         * libm/machine/spu/headers/powf4.h: Likewise.
4729         * libm/machine/spu/headers/recipd2.h: Likewise.
4730         * libm/machine/spu/headers/recipf4.h: Likewise.
4731         * libm/machine/spu/headers/rintf4.h: Likewise.
4732         * libm/machine/spu/headers/scalbnf4.h: Likewise.
4733         * libm/machine/spu/headers/signbitd2.h: Likewise.
4734         * libm/machine/spu/headers/sincosd2.h: Likewise.
4735         * libm/machine/spu/headers/sincosf4.h: Likewise.
4736         * libm/machine/spu/headers/sind2.h: Likewise.
4737         * libm/machine/spu/headers/sinf4.h: Likewise.
4738         * libm/machine/spu/headers/sinhd2.h: Likewise.
4739         * libm/machine/spu/headers/sinhf4.h: Likewise.
4740         * libm/machine/spu/headers/sqrtd2.h: Likewise.
4741         * libm/machine/spu/headers/sqrtf4.h: Likewise.
4742         * libm/machine/spu/headers/tand2.h: Likewise.
4743         * libm/machine/spu/headers/tanf4.h: Likewise.
4744         * libm/machine/spu/headers/tanhd2.h: Likewise.
4745         * libm/machine/spu/headers/tanhf4.h: Likewise.
4746         * libm/machine/spu/headers/tgammad2.h: Likewise.
4747         * libm/machine/spu/headers/tgammaf4.h: Likewise.
4748         * libm/machine/spu/headers/truncd2.h: Likewise.
4749         * libm/machine/spu/headers/truncf4.h: Likewise.
4750         * libm/machine/spu/headers/simdmath.h: Likewise.
4751
4752 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
4753
4754         * libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
4755         * libm/machine/spu/headers/asinhd2.h: Likewise.
4756         * libm/machine/spu/headers/atanhd2.h: Likewise.
4757         * libm/machine/spu/headers/atanhf4.h: Likewise.
4758         * libm/machine/spu/headers/erff4.h: Likewise.
4759         * libm/machine/spu/headers/expd2.h: Likewise.
4760         * libm/machine/spu/headers/ldexpd2.h: Likewise.
4761         * libm/machine/spu/headers/lgammaf4.h: Likewise.
4762         * libm/machine/spu/headers/logbf4.h: Likewise.
4763         * libm/machine/spu/headers/nextafterd2.h: Likewise.
4764         * libm/machine/spu/headers/nextafterf4.h: Likewise.
4765         * libm/machine/spu/headers/recipd2.h: Likewise.
4766         * libm/machine/spu/headers/simdmath.h: Likewise.
4767         * libm/machine/spu/headers/acoshd2.: Likewise.
4768
4769 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
4770
4771         * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
4772         * libm/machine/spu/headers/cbrtf.h: Likewise.
4773
4774 2008-09-01  Ken Werner  <ken.werner@de.ibm.com>
4775
4776         * libc/machine/spu/include/spu_timer.h: spu_timebase function added.
4777         * libc/machine/spu/spu_timebase.c: New file.
4778         * libc/machine/spu/Makefile.am: Add new file.
4779         * libc/machine/spu/Makefile.in: Regenerated.
4780
4781 2008-08-28  Craig Howland  <howland@LGSInnovations.com>
4782
4783         * libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
4784         any positive value from user (per std) rather than depending
4785         upon 1).
4786
4787 2008-08-28  Corinna Vinschen  <corinna@vinschen.de>
4788
4789         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
4790         for accepting a converted character.
4791
4792 2008-08-27  Sandra Loosemore  <sandra@codesourcery.com>
4793
4794         * libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
4795         from building pdfs.
4796         * libm/libm.texinfo: Likewise.
4797
4798 2008-08-27  Corinna Vinschen  <corinna@vinschen.de>
4799
4800         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
4801         accepting a converted character and continuing the loop.
4802
4803 2008-07-24  Jeff Johnston  <jjohnstn@redhat.com>
4804
4805         * libc/include/ctype.h (_ctype_): Restore for C++ backward
4806         compatability only.
4807
4808 2008-07-21  Jeff Johnston  <jjohnstn@redhat.com>
4809
4810         * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
4811         less than the old __ctype_ptr.
4812         * libc/ctype/isalnum.c: Use __ctype_ptr__.
4813         * libc/ctype/isalpha.c: Ditto.
4814         * libc/ctype/iscntrl.c: Ditto.
4815         * libc/ctype/isdigit.c: Ditto.
4816         * libc/ctype/islower.c: Ditto.
4817         * libc/ctype/isprint.c: Ditto.
4818         * libc/ctype/ispunct.c: Ditto.
4819         * libc/ctype/isspace.c: Ditto.
4820         * libc/ctype/isupper.c: Ditto.
4821         * libc/ctype/isxdigit.c: Ditto.
4822         * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
4823         and add declaration of __ctype_ptr__.  Remove older ctype table pointers
4824         from here even though they can still work.
4825
4826 2008-07-18  Ken Werner  <ken.werner@de.ibm.com>
4827
4828         * libc/machine/spu/strcpy.h: Fix error in previous patch.
4829
4830 2008-07-17  Jeff Johnston  <jjohnstn@redhat.com>
4831
4832         * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when
4833         __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
4834
4835 2008-07-17  Ken Werner  <ken.werner@de.ibm.com>
4836
4837         * libc/machine/spu/strcpy.h: Pad null bytes if necessary.
4838
4839 2008-07-08  Kenji Tanaka  <tanaka.ken2@jp.panasonic.com>
4840
4841         * libc/machine/mn10300/memset.S: Fix bug where return value is
4842         incorrectly set if number of bytes set is a multiple of 4.
4843
4844 2008-07-07  Hans-Peter Nilsson  <hp@axis.com>
4845
4846         * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
4847         (strncpy): Cast src to uintptr_t before checking alignment with "&".
4848
4849 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
4850
4851         * libc/argz/argz_count.c: Include stddef.h to get size_t.
4852         * libc/argz/argz_extract.c: Ditto.
4853         * libc/argz/argz_stringify.c: Ditto.
4854         * libc/search/hash.h: Ditto.
4855         * libc/sys/linux/include/sched.h: Ditto.
4856         * libc/sys/linux/sys/types.h: Ditto.
4857
4858 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
4859
4860         * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
4861         source data is taken care of before loop unrolling.
4862
4863 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
4864
4865         Fix strict-aliasing issues with _strtod_r and Storeinc.
4866         * libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
4867         rv, rv0 from double to type U.  Use accessor macros dval, dword0
4868         and dword1 for all accesses except for the ULtod call, where rv.i
4869         replaces the pointer cast.
4870         * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
4871         of access macros.  Tweak comment.
4872         Remove #ifdef'd YES_ALIAS code.
4873         (dword0, dword1, dval): Define in terms of uncast union member
4874         access.  Ditto for _DOUBLE_IS_32BITS variants.
4875         (Storeinc): Replace aliasing-flawed microoptimized definition with
4876         alternative suggested in comment.  Remove now stale comment.
4877
4878 2008-06-21  Corinna Vinschen  <corinna@vinschen.de>
4879
4880         * libc/include/machine/setjmp.h (_longjmp): Define as function on
4881         Cygwin.
4882         (_setjmp): Ditto.
4883
4884 2008-06-18  Eric Blake  <ebb9@byu.net>
4885
4886         Per Posix, strsignal returns non-const char*.
4887         * libc/include/string.h (strsignal): Fix return type.
4888
4889 2008-06-17  Ken Werner  <ken.werner@de.ibm.com>
4890
4891         * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
4892         support.
4893
4894 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
4895
4896         * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
4897         * libc/machine/spu/sys/sched.h: Likewise.
4898         * libc/machine/spu/sys/syscall.h: Likewise.
4899
4900 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
4901
4902         * libc/machine/spu/mk_syscalls: Provide .type and .size directives
4903         in generated assembler files.
4904         * libc/machine/spu/fprintf.S: Regenerate.
4905         * libc/machine/spu/fscanf.S: Regenerate.
4906         * libc/machine/spu/printf.S: Regenerate.
4907         * libc/machine/spu/scanf.S: Regenerate.
4908         * libc/machine/spu/snprintf.S: Regenerate.
4909         * libc/machine/spu/sprintf.S: Regenerate.
4910         * libc/machine/spu/sscanf.S: Regenerate.
4911         * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
4912         and .size directives.
4913         * libc/machine/spu/setjmp.S (setjmp): Likewise.
4914         (longjmp): Likewise.
4915
4916 2008-06-11  Jeff Johnston  <jjohnstn@redhat.com>
4917
4918         * libc/include/machine/_default_types.h: Fix GNUC check to
4919         handle 4.0 and greater.
4920
4921 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
4922
4923         * libc/machine/spu/Makefile.am: Add new files.
4924         * libc/machine/spu/Makefile.in: Likewise.
4925         * libc/machine/spu/include/spu_timer.h: New file to add timer support
4926         using interrupts.
4927         * libc/machine/spu/spu_clock_stop.c: Likewise.
4928         * libc/machine/spu/spu_clock_svcs.c: Likewise.
4929         * libc/machine/spu/spu_timer_flih.S: Likewise.
4930         * libc/machine/spu/spu_timer_free.c: Likewise.
4931         * libc/machine/spu/spu_timer_internal.h: Likewise.
4932         * libc/machine/spu/spu_timer_slih.c: Likewise.
4933         * libc/machine/spu/spu_timer_slih_reg.c: Likewise.
4934         * libc/machine/spu/spu_timer_stop.c: Likewise.
4935         * libc/machine/spu/spu_timer_svcs.c: Likewise.
4936
4937 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
4938
4939         * libc/machine/spu/strcat.c: Return value fixed.
4940         * libc/machine/spu/strncat.c: Likewise.
4941
4942 2008-05-28  Eric Blake  <ebb9@byu.net>
4943
4944         Fix bug in previous patch.
4945         * libc/machine/i386/memset.S (memset): Mask second arg correctly.
4946
4947 2008-05-27  Jeff Johnston  <jjohnstn@redhat.com>
4948
4949         * libc/string/memset.c: Fix documented prototype to remove
4950         erroneous const attribute on first parameter.
4951
4952 2008-05-26  Eric Blake  <ebb9@byu.net>
4953
4954         Optimize the generic and x86 memchr.
4955         * libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
4956         Pre-align pointer so unaligned searches aren't penalized.
4957         * libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
4958         operations are faster than repnz byte searches.
4959
4960 2008-05-26  Eric Blake  <ebb9@byu.net>
4961
4962         Optimize the generic and x86 memset.
4963         * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
4964         Pre-align pointer so unaligned stores aren't penalized.
4965         * libc/machine/i386/memset.S (memset) [!__OPTIMIZE_SIZE__]:
4966         Pre-align pointer so unaligned stores aren't penalized.  Prefer
4967         8-byte over 4-byte alignment.  Reduce register pressure.
4968
4969 2008-05-26  Eric Blake  <ebb9@byu.net>
4970
4971         Optimize the generic and x86 strlen.
4972         * libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
4973         data so unaligned searches aren't penalized.
4974         * libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
4975         Word operations are faster than repnz byte searches.
4976
4977 2008-05-23  Corinna Vinschen  <corinna@vinschen.de>
4978
4979         * libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.
4980
4981 2008-05-22  Jeff Johnston  <jjohnstn@redhat.com>
4982
4983         * libc/include/sys/reent.h: Add _h_errno field.
4984         * libc/sys/linux/libc-symbols.h: Add default stubs for new libc macros
4985         now used in net directory.
4986         * libc/sys/linux/bits/libc-lock.h: Always define _IO_MTSAFE_IO.
4987         * libc/sys/linux/include/hesiod.h: Add needed macros for new code
4988         in net directory.
4989         * libc/sys/linux/include/netdb.h: Ditto.
4990         * libc/sys/linux/include/resolv.h: Ditto.
4991         * libc/sys/linux/include/stdint.h: Ditto.
4992         * libc/sys/linux/include/arpa/nameser.h: Ditto.
4993         * libc/sys/linux/include/net/ethernet.h: Ditto.
4994         * libc/sys/linux/include/net/if_ppp.h: Ditto.
4995         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
4996         * libc/sys/linux/machine/i386/get_clockfreq.c: Remove static memmem.
4997         * libc/sys/linux/machine/i386/include/endian.h: Protect macros with
4998         flags to avoid duplicate definition.
4999         * libc/sys/linux/machine/i386/include/param.h: Ditto.
5000         * libc/sys/linux/net/Makefile.am: Modified to account for removed and
5001         added files.
5002         * libc/sys/linux/net/Makefile.in: Regenerated.
5003         * libc/sys/linux/net/base64.c: Replaced with glibc version of code.
5004         * libc/sys/linux/net/getaddrinfo.c: Ditto.
5005         * libc/sys/linux/net/getnameinfo.c: Ditto.
5006         * libc/sys/linux/net/getproto.c: Ditto.
5007         * libc/sys/linux/net/getservent.c: Ditto.
5008         * libc/sys/linux/net/inet_netof.c: Ditto.
5009         * libc/sys/linux/net/inet_lnaof.c: Ditto.
5010         * libc/sys/linux/net/ns_name.c: Ditto.
5011         * libc/sys/linux/net/ns_netint.c: Ditto.
5012         * libc/sys/linux/net/inet_ntoa.c: Ditto.
5013         * libc/sys/linux/net/ns_parse.c: Ditto.
5014         * libc/sys/linux/net/ns_print.c: Ditto.
5015         * libc/sys/linux/net/ns_ttl.c: Ditto.
5016         * libc/sys/linux/net/nsap_addr.c: Ditto.
5017         * libc/sys/linux/net/rcmd.c: Ditto.
5018         * libc/sys/linux/net/res_comp.c: Ditto.
5019         * libc/sys/linux/net/res_data.c: Ditto.
5020         * libc/sys/linux/net/res_debug.c: Ditto.
5021         * libc/sys/linux/net/res_init.c: Ditto.
5022         * libc/sys/linux/net/res_mkquery.c: Ditto.
5023         * libc/sys/linux/net/res_query.c: Ditto.
5024         * libc/sys/linux/net/res_send.c: Ditto.
5025         * libc/sys/linux/net/send.c: Ditto.
5026         * libc/sys/linux/stdlib/collate.c: Ditto.
5027         * libc/sys/linux/sys/ioctl.h: Ditto.
5028         * libc/sys/linux/sys/socket.h: Ditto.
5029         * libc/sys/linux/sys/unistd.h: Ditto.
5030         * libc/sys/linux/iconv/iconvconfig.c: Removed either because no longer
5031         used or because licensing includes advertising clause that cannot be
5032         ignored.
5033         * libc/sys/linux/iconv/strtab.c: Ditto.
5034         * libc/sys/linux/include/libc_private.h: Ditto.
5035         * libc/sys/linux/include/nsswitch.h: Ditto.
5036         * libc/sys/linux/include/net/if_atm.h: Ditto.
5037         * libc/sys/linux/include/net/if_media.h: Ditto.
5038         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
5039         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
5040         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
5041         * libc/sys/linux/intl/locale.alias: Ditto.
5042         * libc/sys/linux/net/addr2ascii.3: Ditto.
5043         * libc/sys/linux/net/bindresvport.c: Ditto.
5044         * libc/sys/linux/net/byteorder.3: Ditto.
5045         * libc/sys/linux/net/res_config.h: Ditto.
5046         * libc/sys/linux/net/ether_addr.c: Ditto.
5047         * libc/sys/linux/net/ethers.3: Ditto.
5048         * libc/sys/linux/net/getaddrinfo.3: Ditto.
5049         * libc/sys/linux/net/gethostbydns.c: Ditto.
5050         * libc/sys/linux/net/gethostbyht.c: Ditto.
5051         * libc/sys/linux/net/gethostbyname.3: Ditto.
5052         * libc/sys/linux/net/gethostbynis.c: Ditto.
5053         * libc/sys/linux/net/gethostnamadr.c: Ditto.
5054         * libc/sys/linux/net/getifaddrs.3: Ditto.
5055         * libc/sys/linux/net/getifaddrs.c: Ditto.
5056         * libc/sys/linux/net/getipnodebyname.3: Ditto.
5057         * libc/sys/linux/net/getnameinfo.3: Ditto.
5058         * libc/sys/linux/net/getnetbydns.c: Ditto.
5059         * libc/sys/linux/net/getnetbyht.c: Ditto.
5060         * libc/sys/linux/net/getnetbynis.c: Ditto.
5061         * libc/sys/linux/net/getnetent.3: Ditto.
5062         * libc/sys/linux/net/getnetnamadr.c: Ditto.
5063         * libc/sys/linux/net/getprotoent.3: Ditto.
5064         * libc/sys/linux/net/getprotoent.c: Ditto.
5065         * libc/sys/linux/net/getprotoname.c: Ditto.
5066         * libc/sys/linux/net/getservbyname.c: Ditto.
5067         * libc/sys/linux/net/getservbyport.c: Ditto.
5068         * libc/sys/linux/net/getservent.3: Ditto.
5069         * libc/sys/linux/net/herror.c: Ditto.
5070         * libc/sys/linux/net/hesiod.3: Ditto.
5071         * libc/sys/linux/net/hesiod.c: Ditto.
5072         * libc/sys/linux/net/if_indextoname.3: Ditto.
5073         * libc/sys/linux/net/inet.3: Ditto.
5074         * libc/sys/linux/net/inet6_option_space.3: Ditto.
5075         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
5076         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
5077         * libc/sys/linux/net/inet_net.3: Ditto.
5078         * libc/sys/linux/net/inet_network.c: Ditto.
5079         * libc/sys/linux/net/innetgr-stub.c: Ditto.
5080         * libc/sys/linux/net/ip6opt.c: Ditto.
5081         * libc/sys/linux/net/iso_addr.3: Ditto.
5082         * libc/sys/linux/net/iso_addr.c: Ditto.
5083         * libc/sys/linux/net/linkaddr.3: Ditto.
5084         * libc/sys/linux/net/linkaddr.c: Ditto.
5085         * libc/sys/linux/net/map_v4v6.c: Ditto.
5086         * libc/sys/linux/net/name6.c: Ditto.
5087         * libc/sys/linux/net/namespace.h: Ditto.
5088         * libc/sys/linux/net/ns.3: Ditto.
5089         * libc/sys/linux/net/ns_addr.c: Ditto.
5090         * libc/sys/linux/net/ns_ntoa.c: Ditto.
5091         * libc/sys/linux/net/nsdispatch.3: Ditto.
5092         * libc/sys/linux/net/nsdispatch.c: Ditto.
5093         * libc/sys/linux/net/nslexer.c: Ditto.
5094         * libc/sys/linux/net/nslexer.l: Ditto.
5095         * libc/sys/linux/net/nsparser.c: Ditto.
5096         * libc/sys/linux/net/nsparser.h: Ditto.
5097         * libc/sys/linux/net/nsparser.y: Ditto.
5098         * libc/sys/linux/net/rcmd.3: Ditto.
5099         * libc/sys/linux/net/rcmdsh.3: Ditto.
5100         * libc/sys/linux/net/res_mkupdate.c: Ditto.
5101         * libc/sys/linux/net/res_update.c: Ditto.
5102         * libc/sys/linux/net/resolver.3: Ditto.
5103         * libc/sys/linux/net/rthdr.c: Ditto.
5104         * libc/sys/linux/net/vars.c: Ditto.
5105         * libc/sys/linux/shlib-compat.h: New file.
5106         * libc/sys/linux/machine/i386/atomic.h: Ditto.
5107         * libc/sys/linux/net/XXX-lookup.c: Ditto.
5108         * libc/sys/linux/net/alias-lookup.c: Ditto.
5109         * libc/sys/linux/net/res_libc.c: Ditto.
5110         * libc/sys/linux/net/aliases.h: Ditto.
5111         * libc/sys/linux/net/check_pf.c: Ditto.
5112         * libc/sys/linux/net/databases.def: Ditto.
5113         * libc/sys/linux/net/digits_dots.c: Ditto.
5114         * libc/sys/linux/net/ether_aton.c: Ditto.
5115         * libc/sys/linux/net/ether_aton_r.c: Ditto.
5116         * libc/sys/linux/net/ether_hton.c: Ditto.
5117         * libc/sys/linux/net/ether_line.c: Ditto.
5118         * libc/sys/linux/net/ether_ntoa.c: Ditto.
5119         * libc/sys/linux/net/ether_ntoa_r.c: Ditto.
5120         * libc/sys/linux/net/ether_ntoh.c: Ditto.
5121         * libc/sys/linux/net/etherent.h: Ditto.
5122         * libc/sys/linux/net/ethers-lookup.c: Ditto.
5123         * libc/sys/linux/net/function.def: Ditto.
5124         * libc/sys/linux/net/getXXbyYY.c: Ditto.
5125         * libc/sys/linux/net/getXXbyYY_r.c: Ditto.
5126         * libc/sys/linux/net/getXXent.c: Ditto.
5127         * libc/sys/linux/net/getXXent_r.c: Ditto.
5128         * libc/sys/linux/net/getaliasent.c: Ditto.
5129         * libc/sys/linux/net/getaliasent_r.c: Ditto.
5130         * libc/sys/linux/net/getaliasname.c: Ditto.
5131         * libc/sys/linux/net/getaliasname_r.c: Ditto.
5132         * libc/sys/linux/net/gethstbyad.c: Ditto.
5133         * libc/sys/linux/net/gethstbyad_r.c: Ditto.
5134         * libc/sys/linux/net/gethstbynm.c: Ditto.
5135         * libc/sys/linux/net/gethstbynm2.c: Ditto.
5136         * libc/sys/linux/net/gethstbynm2_r.c: Ditto.
5137         * libc/sys/linux/net/gethstbynm_r.c: Ditto.
5138         * libc/sys/linux/net/gethstent.c: Ditto.
5139         * libc/sys/linux/net/gethstent_r.c: Ditto.
5140         * libc/sys/linux/net/getnetbyad.c: Ditto.
5141         * libc/sys/linux/net/getnetbyad_r.c: Ditto.
5142         * libc/sys/linux/net/getnetbynm.c: Ditto.
5143         * libc/sys/linux/net/getnetbynm_r.c: Ditto.
5144         * libc/sys/linux/net/getnetent.c: Ditto.
5145         * libc/sys/linux/net/getnetent_r.c: Ditto.
5146         * libc/sys/linux/net/getnetgrent.c: Ditto.
5147         * libc/sys/linux/net/getnetgrent_r.c: Ditto.
5148         * libc/sys/linux/net/getnssent.c: Ditto.
5149         * libc/sys/linux/net/getnssent_r.c: Ditto.
5150         * libc/sys/linux/net/getproto_r.c: Ditto.
5151         * libc/sys/linux/net/getprtent.c: Ditto.
5152         * libc/sys/linux/net/getprtent_r.c: Ditto.
5153         * libc/sys/linux/net/getprtname.c: Ditto.
5154         * libc/sys/linux/net/getprtname_r.c: Ditto.
5155         * libc/sys/linux/net/getrpcbyname.c: Ditto.
5156         * libc/sys/linux/net/getrpcbyname_r.c: Ditto.
5157         * libc/sys/linux/net/getrpcbynumber.c: Ditto.
5158         * libc/sys/linux/net/getrpcbynumber_r.c: Ditto.
5159         * libc/sys/linux/net/getrpcent.c: Ditto.
5160         * libc/sys/linux/net/getrpcent_r.c: Ditto.
5161         * libc/sys/linux/net/getservent_r.c: Ditto.
5162         * libc/sys/linux/net/getsrvbynm.c: Ditto.
5163         * libc/sys/linux/net/getsrvbynm_r.c: Ditto.
5164         * libc/sys/linux/net/getsrvbypt.c: Ditto.
5165         * libc/sys/linux/net/getsrvbypt_r.c: Ditto.
5166         * libc/sys/linux/net/grp-lookup.c: Ditto.
5167         * libc/sys/linux/net/herrno.c: Ditto.
5168         * libc/sys/linux/net/hosts-lookup.c: Ditto.
5169         * libc/sys/linux/net/ifaddrs.h: Ditto.
5170         * libc/sys/linux/net/ifreq.c: Ditto.
5171         * libc/sys/linux/net/ifreq.h: Ditto.
5172         * libc/sys/linux/net/in6_addr.c: Ditto.
5173         * libc/sys/linux/net/inet6_option.c: Ditto.
5174         * libc/sys/linux/net/inet_mkadr.c: Ditto.
5175         * libc/sys/linux/net/inet_net.c: Ditto.
5176         * libc/sys/linux/net/key-lookup.c: Ditto.
5177         * libc/sys/linux/net/local.h: Ditto.
5178         * libc/sys/linux/net/netgroup.h: Ditto.
5179         * libc/sys/linux/net/netgrp-lookup.c: Ditto.
5180         * libc/sys/linux/net/network-lookup.c: Ditto.
5181         * libc/sys/linux/net/not-cancel.h: Ditto.
5182         * libc/sys/linux/net/ns_samedomain.c: Ditto.
5183         * libc/sys/linux/net/nscd-types.h: Ditto.
5184         * libc/sys/linux/net/nss.h: Ditto.
5185         * libc/sys/linux/net/nsswitch.c: Ditto.
5186         * libc/sys/linux/net/nsswitch.h: Ditto.
5187         * libc/sys/linux/net/opensock.c: Ditto.
5188         * libc/sys/linux/net/proto-lookup.c: Ditto.
5189         * libc/sys/linux/net/pwd-lookup.c: Ditto.
5190         * libc/sys/linux/net/res_debug.h: Ditto.
5191         * libc/sys/linux/net/res_hconf.c: Ditto.
5192         * libc/sys/linux/net/res_hconf.h: Ditto.
5193         * libc/sys/linux/net/rexec.c: Ditto.
5194         * libc/sys/linux/net/rpc-lookup.c: Ditto.
5195         * libc/sys/linux/net/ruserpass.c: Ditto.
5196         * libc/sys/linux/net/service-lookup.c: Ditto.
5197         * libc/sys/linux/net/spwd-lookup.c: Ditto.
5198         * libc/sys/linux/net/nscd/nscd-client.h: Ditto.
5199         * libc/sys/linux/net/nscd/nscd_proto.h: Ditto.
5200
5201 2008-05-21  Eric Blake  <ebb9@byu.net>
5202
5203         Optimize the generic strchr.
5204         * libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align
5205         data so unaligned searches aren't penalized.  Special-case
5206         searching for 0.
5207
5208         Optimize strchr for x86.
5209         * libc/machine/i386/strchr.S (strchr) [!__OPTIMIZE_SIZE__]:
5210         Pre-align data so unaligned searches aren't penalized.
5211         Special-case searching for 0.
5212
5213 2008-05-20  Nick Clifton  <nickc@redhat.com>
5214
5215         * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak).
5216
5217 2008-05-20  DJ Delorie  <dj@redhat.com>
5218
5219         * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty.
5220
5221 2008-05-14  Jeff Johnston  <jjohnstn@redhat.com>
5222
5223         * libc/include/sys/reent.h: Change _REENT_INIT... macros to
5224         access macro parameter with parentheses around it.
5225
5226 2008-04-26  Mark Mitchell  <mark@codesourcery.com>
5227
5228         * libc/include/stdint.h (SIZE_MIN): Remove.
5229         (SIZE_MAX): Define.
5230         * testsuite/newlib.stdlib/stdlib.exp: New.
5231         * testsuite/newlib.stdlib/size_max.c: Likewise.
5232
5233 2008-04-29  Eric Blake  <ebb9@byu.net>
5234
5235         Fix 2008-04-14 regression in asprintf(ptr,"").
5236         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio
5237         baggage.
5238         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise.
5239         * libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise.
5240         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
5241         * libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise.
5242         * libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc
5243         an initial buffer for asprintf.
5244
5245 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
5246
5247         * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
5248         (fstatat): Fix type of third parameter.
5249
5250 2008-04-25  Nick Clifton  <nickc@redhat.com>
5251
5252         * libc/machine/arm/setjmp.S: Fix thumb2 support.
5253
5254 2008-04-24  Nick Clifton  <nickc@redhat.com>
5255
5256         * libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
5257         should be _DOUBLE_IS_32BITS.
5258
5259 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
5260
5261         * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
5262         (UTIME_OMIT): Ditto.
5263         (utimensat): Declare for Cygwin.
5264         (futimens): Ditto.
5265
5266 2008-04-23  Ken Werner  <ken.werner@de.ibm.com>
5267
5268         * libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE.
5269         * libc/include/math.h: Likewise.
5270
5271 2008-04-23  Corinna Vinschen  <corinna@vinschen.de>
5272
5273         * libc/include/stdio.h (renameat): Declare for Cygwin.
5274         (symlinkat): Ditto.
5275         * libc/include/sys/unistd.h (readlink): Align declaration to POSIX.
5276         (faccessat): Declare for Cygwin.
5277         (fchownat): Ditto.
5278         (linkat): Ditto.
5279         (readlinkat): Ditto.
5280         * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin.
5281         (AT_EACCESS): Ditto.
5282         (AT_SYMLINK_NOFOLLOW): Ditto.
5283         (AT_SYMLINK_FOLLOW): Ditto.
5284         (AT_REMOVEDIR): Ditto.
5285         (futimesat): Declare for Cygwin.
5286         (openat): Ditto.
5287         (unlinkat): Ditto.
5288         * libc/include/sys/stat.h (fchmodat): Ditto.
5289         (fstatat): Ditto.
5290         (mkdirat): Ditto.
5291         (mkfifoat): Ditto.
5292         (mknodat): Ditto.
5293
5294 2008-04-22  Nick Clifton  <nickc@redhat.com>
5295
5296         * libc/machine/arm/setjmp.S: Add support for thumb2 multiple
5297         register load/store instructions.
5298
5299 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
5300
5301         * libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
5302
5303 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
5304
5305         * libc/machine/spu/impure.c: Add missing underscore to impure_data.
5306
5307 2008-04-14  Patrick Mansfield  <patmans@us.ibm.com>
5308
5309         * libc/machine/spu/impure.c: New file, supply a non-static _impure_data.
5310         * libc/machine/spu/Makefile.am: Add new file impure.c.
5311         * libc/machine/spu/Makefile.in: Regenerate.
5312         * libc/machine/spu/sys/errno.h: Define errno to be _reent_data._errno.
5313
5314 2008-04-14  Jeff Johnston  <jjohnstn@redhat.com>
5315
5316         * libc/stdio/Makefile.am: Build vfprintf.c and vfscanf.c with
5317         -DSTRING_ONLY defined with and without -DINTEGER_ONLY defined
5318         to build special versions for sprintf/sscanf family functions.
5319         * libc/stdio/Makefile.in: Regenerated.
5320         * libc/stdio/vfprintf.c[STRING_ONLY][INTEGER_ONLY](_VFPRINTF_R):
5321         Redefine to be _svfiprintf_r which is optimized to work with siprintf
5322         family of functions (i.e. no I/O) and does not support floating-point.
5323         [STRING_ONLY][!INTEGER_ONLY](_VFPRINTF_R): Redefine to be
5324         _svfprintf_r which is optimized to work with sprintf family of
5325         functions and not use I/O.
5326         [STRING_ONLY](__sprint_r): New string only version of static function.
5327         designed to work with sprintf family of functions.
5328         * libc/stdio/vfscanf.c[STRING_ONLY][INTEGER_ONLY](_SVFSCANF_R):
5329         Redefine to be _ssvfiscanf_r which is optimized to work with siscanf
5330         family of functions (i.e. no I/O) and no float-point support.
5331         [STRING_ONLY][!INTEGER_ONLY](_SVFSCANF_R): Redefine to be
5332         __ssvfscanf_r which is optimized to work with sscanf family of
5333         functions and does not require I/O functions.
5334         * libc/stdio/asprintf.c: Call _svfprintf_r instead of _vfprintf_r.
5335         * libc/stdio/snprintf.c: Ditto.
5336         * libc/stdio/sprintf.c: Ditto.
5337         * libc/stdio/vasnprintf.c: Ditto.
5338         * libc/stdio/vasprintf.c: Ditto.
5339         * libc/stdio/siprintf.c: Call _svfiprintf_r instead of _vfiprintf_r.
5340         * libc/stdio/sniprintf.c: Ditto.
5341         * libc/stdio/vasiprintf.c: Ditto.
5342         * libc/stdio/vsiprintf.c: Ditto.
5343         * libc/stdio/vsniprintf.c: Ditto.
5344         * libc/stdio/vsprintf.c: Ditto.
5345         * libc/stdio/local.h: Add prototypes for _svfprintf_r, _svfiprintf_r,
5346         _ssvfscanf_r, and _ssvfiscanf_r.
5347         * libc/stdio/sscanf.c: Call _ssvfscanf_r instead of _svfscanf_r.
5348         * libc/stdio/vsscanf.c: Ditto.
5349         * libc/stdio/siscanf.c: Call _ssvfiscanf_r instead of _svfiscanf_r.
5350         * libc/stdio/vsiscanf.c: Ditto.
5351
5352 2008-04-04  DJ Delorie  <dj@redhat.com>
5353
5354         * libm/machine/spu/configure: Regenerate with autoconf 2.61.
5355         * libc/sys/configure: Regenerate with autoconf 2.61.
5356         * libc/machine/configure: Regenerate with autoconf 2.61.
5357
5358 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
5359
5360         * libc/machine/spu/memcmp.c: New file for SPU optimized memcmp.
5361         * libc/machine/spu/strncmp.h: New file supply _strncmp_internal.
5362         * libc/machine/spu/Makefile.am: Add memcmp.c.
5363         * libc/machine/spu/Makefile.in: Rebuild.
5364         * libc/machine/spu/strncmp.c: Use _strncmp_internal.
5365
5366 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
5367
5368         * configure.host: Build SPU with -DREENTRANT_SYSCALLS_PROVIDED and
5369           -DMISSING_SYSCALL_NAMES.
5370
5371 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
5372
5373         * libc/machine/spu/Makefile.am: Add assert.c.
5374         * libc/machine/spu/Makefile.in: Regenerate.
5375         * libc/machine/spu/assert.c: New file.
5376
5377 2008-03-27 Patrick Mansfield <patmans@us.ibm.com>
5378
5379         * libc/include/reent.h: Define _func_r functions in this file to
5380         func if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES are
5381         defined.
5382
5383 2008-03-27  Corinna Vinschen  <corinna@vinschen.de>
5384
5385         * libc/include/sys/unistd.h: Declare lockf(2) and define lockf
5386         constants when building for Cygwin.
5387
5388 2008-03-11  Jeff Johnston  <jjohnstn@redhat.com>
5389
5390         * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
5391         stdin gets resolved properly before refilling.
5392
5393 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
5394
5395         * libc/include/getopt.h: Hide newlib extensions under
5396         the __need_getopt_newlib flag.
5397         * libc/stdlib/getopt.c: #define __need_getopt_newlib before including
5398         getopt.h.  Put entire code under !HAVE_GETOPT to support platforms
5399         with their own getopt implementation.
5400         * configure.host: Specify HAVE_GETOPT for x86-linux.
5401
5402 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
5403
5404         * libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify
5405         this macro completely instead of referring to CHECK_STD_INIT which
5406         is only found in libc/stdio/local.h.
5407         * libc/stdio/dprintf.c: Add include of local.h.
5408         * libc/stdio/vdprintf.c: Ditto.
5409         * libc/stdio/vdiprintf.c: Ditto.
5410
5411 2008-03-04  Eric Blake  <ebb9@byu.net>
5412
5413         Fix strtod("nan()", ptr).
5414         * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
5415         n-char-sequence is omitted, still parse the ().
5416
5417 2008-03-03  Eric Blake  <ebb9@byu.net>
5418
5419         Fix ftell bug after ungetc.
5420         * libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on
5421         ftell.
5422         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
5423         * libc/stdio/fflush.c (_fflush_r): Clear unget buffer when
5424         repositioning underlying fd offset.
5425
5426 2008-03-02  Jeff Johnston  <jjohnstn@redhat.com>
5427
5428         * libc/include/getopt.h (no_argument): Added for glibc compatibility.
5429         (required_argument, optional_argument): Ditto.
5430
5431 2008-02-29  Gregory Pietsch  <gpietsch@comcast.net>
5432
5433         * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept
5434         data area so as to support reentrant calls.  Change all callers
5435         to fill in data area with global values and restore any changes
5436         to the global values after call.
5437         (__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines
5438         to support reentrancy that add a data area argument.
5439         * libc/include/getopt.h: Add new _r routines and provide macros
5440         so they can be called with using double-underscores.
5441
5442 2008-02-21  Eric Blake  <ebb9@byu.net>
5443
5444         Fix strtod("-0x", NULL).
5445         * libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse
5446         fails.
5447
5448 2008-02-12  Jeff Johnston  <jjohnstn@redhat.com>
5449
5450         * libc/machine/powerpc/vfprintf.c (_VFPRINTF_R): Prepare
5451         for user specifying --disable-newlib-io-long-long on configure.
5452         Call _fflush_r instead of fflush.  For _mbtowc_r, pass the
5453         reentrant pointer passed in rather than _REENT.
5454
5455 2008-02-12  Peter Rosin  <peda@lysator.liu.se>
5456
5457         * libc/stdlib/getopt.c (getopt_internal): Handle optional
5458         arguments better for long options and short options not
5459         appearing as the first option in a sequence.
5460
5461 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
5462
5463         * libc/machine/spu/straddr.h: New file, supplies _straddr.
5464         * libc/machine/spu/strcat.c: Use _straddr and _strcpy.
5465         * libc/machine/spu/strcpy.c: Use _strcpy.
5466         * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU
5467         str[n]cpy and str[n]cat.
5468         * libc/machine/spu/strncat.c: Use _straddr and _strcpy.
5469         * libc/machine/spu/strncpy.c: Use _strcpy.
5470
5471 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
5472
5473         * libc/machine/spu/strlen.c: Remove the len variable and unneeded
5474         calculation of its value.
5475
5476 2008-01-25  Hans-Peter Nilsson  <hp@bitrange.com>
5477
5478         * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
5479         Make ISO C.
5480
5481 2008-01-21  DJ Delorie  <dj@redhat.com>
5482
5483         * libc/sys/sh/syscalls.c (_isatty): New.
5484
5485 2008-01-21  Neal H. Walfield  <neal@gnu.org>
5486
5487         * Makefile.am (crt1.o): Use correct source.
5488         * Makefile.in: Regenerated.
5489
5490 2008-01-15  Eric Blake  <ebb9@byu.net>
5491
5492         * libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
5493         * libc/string/Makefile: Regenerate.
5494
5495 2008-01-15  Corinna Vinschen  <corinna@vinschen.de>
5496
5497         * libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
5498         pthread_sigmask or sigprocmask depending on _POSIX_THREADS.
5499         (sigsetjmp): Use __SIGMASK_FUNC.
5500         (siglongjmp): Ditto.
5501         (_setjmp): Define as macro.
5502         (_longjmp): Ditto.
5503
5504 2008-01-11  Eric Blake  <ebb9@byu.net>
5505
5506         Make strstr and strcasestr O(n), not O(n^2); add memmem.
5507         * libc/string/str-two-way.h: New file.
5508         * libc/string/memmem.c (memmem): New file.
5509         * libc/include/string.h (memmem): Declare for all platforms.
5510         * libc/string/strstr.c (strstr): Provide O(n) implementation when
5511         not optimizing for space.
5512         * libc/string/strcasestr.c (strcasestr): Likewise.
5513         * libc/string/Makefile.am (ELIX_SOURCES): Rename to...
5514         (ELIX_2_SOURCES): ...this.
5515         (ELIX_4_SOURCES): New category, for memmem.
5516         (lib_a_SOURCES, libstring_la_SOURCES): Build new file.
5517         (CHEWOUT_FILES): Build documentation for memmem.
5518         * libc/string/strings.tex: Include new docs.
5519
5520 2008-01-08  Jeff Johnston  <jjohnstn@redhat.com>
5521
5522         * libc/machine/m68k/memcpy.S: Remove % from register references
5523         as this is already handled by m68kasm.h.
5524         * libc/machine/m68k/memset.S: Ditto.
5525
5526 2008-01-07  Jeff Johnston  <jjohnstn@redhat.com>
5527
5528         * libc/machine/m68k/m68kasm.h: New file.
5529         * libc/machine/m68k/setjmp.S: Remove common definitions and
5530         place in m68kasm.h.  Include "m68kasm.h".
5531         * libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use
5532         SYM() macro when referencing function name.
5533         * libc/machine/m68k/memset.S: Ditto.
5534
5535 2008-01-03  Jeff Johnston  <jjohnstn@redhat.com>
5536
5537         Make isatty syscall handling consistent with other newlib syscalls.
5538
5539         * libc/include/_syslist.h: Add _isatty.
5540         * libc/include/reent.h: Add _isatty_r.
5541         * libc/include/sys/unistd.h: Add _isatty.
5542         * libc/posix/Makefile.am: Add new _isatty.c file.
5543         * libc/posix/Makefile.in: Regenerated.
5544         * libc/posix/_isatty.c: New file.
5545         * libc/posix/isatty.c: Changed to call _isatty().
5546         * libc/reent/Makefile.am: Add new isattyr.c file.
5547         * libc/reent/Makefile.in: Regenerated.
5548         * libc/reent/isattyr.c: New file.
5549         * libc/stdio/freopen.c: Changed to call _isatty_r().
5550         * libc/stdio/makebuf.c: Ditto.
5551         * libc/sys/a29khif/_isatty.S: Change isatty to _isatty.
5552         * libc/sys/arc/isatty.c: Ditto.
5553         * libc/sys/arm/syscalls.c: Ditto.
5554         * libc/sys/d10v/syscalls.c: Ditto.
5555         * libc/sys/h8300hms/syscalls.c: Ditto.
5556         * libc/sys/h8500hms/syscalls.c: Ditto.
5557         * libc/sys/linux/Makefile.am: Add new isatty.c file.
5558         * libc/sys/linux/Makefile.in: Regenerated.
5559         * libc/sys/linux/isatty.c: New file.
5560         * libc/syscalls/Makefile.am: Add new sysisatty.c file.
5561         * libc/syscalls/Makefile.in: Regenerated.
5562         * libc/syscalls/sysisatty.c: New file.
5563
5564 2008-01-02  Jeff Johnston  <jjohnstn@redhat.com>
5565
5566         * libc/syscalls/sysclose.c: Always call reentrant version of the
5567         underlying syscall since one is guaranteed to exist in libc/reent.
5568         * libc/syscalls/sysexecve.c: Ditto.
5569         * libc/syscalls/sysfcntl.c: Ditto.
5570         * libc/syscalls/sysfork.c: Ditto.
5571         * libc/syscalls/sysfstat.c: Ditto.
5572         * libc/syscalls/sysgetpid.c: Ditto.
5573         * libc/syscalls/sysgettod.c: Ditto.
5574         * libc/syscalls/syskill.c: Ditto.
5575         * libc/syscalls/syslink.c: Ditto.
5576         * libc/syscalls/syslseek.c: Ditto.
5577         * libc/syscalls/sysopen.c: Ditto.
5578         * libc/syscalls/sysread.c: Ditto.
5579         * libc/syscalls/syssbrk.c: Ditto.
5580         * libc/syscalls/sysstat.c: Ditto.
5581         * libc/syscalls/systimes.c: Ditto.
5582         * libc/syscalls/sysunlink.c: Ditto.
5583         * libc/syscalls/syswait.c: Ditto.
5584         * libc/syscalls/syswrite.c: Ditto.
5585
5586 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
5587
5588         * NEWS: Update with 1.16.0 info.
5589         * README: Ditto.
5590         * acinclude.m4: Change version number to 1.16.0.
5591         * aclocal.m4: Regenerated.
5592         * configure: Ditto.
5593         * doc/aclocal.m4: Ditto.
5594         * doc/configure: Ditto.
5595         * libc/*/aclocal.m4: Ditto.
5596         * libc/*/configure: Ditto.
5597         * libc/libc.texinfo: Ditto.
5598         * libm/*/aclocal.m4: Ditto.
5599         * libm/*/configure: Ditto.
5600         * libm/libm.texinfo: Ditto.
5601         * libc/sys/linux/shared.ld: Add VERS_1.16.
5602
5603 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
5604
5605         * libc/string/strcasestr.c: Remove id macro.
5606         * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority
5607         field reference to be __sched_priority.
5608         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
5609         * libc/sys/linux/linuxthreads/manager.c: Ditto.
5610         * libc/sys/linux/stdlib/collate.c: Remove id macro.
5611         * libc/sys/linux/stdlib/collcmp.c: Ditto.
5612         * libc/sys/linux/stdlib/engine.c: Ditto.
5613         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
5614         * libc/sys/linux/stdlib/glob.c: Ditto.
5615         * libc/sys/linux/stdlib/reallocf.c: Ditto.
5616         * libc/sys/linux/stdlib/regcomp.c: Ditto.
5617         * libc/sys/linux/stdlib/regerror.c: Ditto.
5618         * libc/sys/linux/stdlib/regexec.c: Ditto.
5619         * libc/sys/linux/stdlib/regfree.c: Ditto.
5620         * libc/sys/linux/sys/cdefs.h: Replace with latest version.
5621         * libc/sys/linux/include/argp.h: Ditto.
5622         * libc/sys/linux/sys/libc-lock.h: New file.
5623         * libc/sys/linux/sys/stdint.h: Ditto.
5624         * libc/sys/linux/include/sched.h: New file.
5625
5626 2007-12-19  Dave Korn  <dave.korn@artimi.com>
5627             Jeff Johnston  <jjohnstn@redhhat.com>
5628
5629         * libc/include/_ansi.h: Add _LONG_LONG definition.
5630         * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add
5631         prototypes.
5632         * libc/machine/i386/machine/fastmath.h: Add support for new i386
5633         fast math versions of rint, lrint, and llrint family functions.
5634         * libm/machine/i386/Makefile.am: Add new files.
5635         * libm/machine/i386/Makefile.in: Regenerated.
5636         * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c,
5637         libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c,
5638         libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c,
5639         libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c,
5640         libm/machine/i386/f_rintl.c:  New files with fast math implementations.
5641
5642 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
5643
5644         * libc/include/sys/features.h: Add checks for C90 compilers using
5645         -ansi.
5646
5647 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
5648
5649         * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.
5650         * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and
5651         wcpncpy.c.
5652         (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def.
5653         * libc/string/Makefile.in: Regenerate.
5654         * libc/string/wcpcpy.c: New file.
5655         * libc/string/wcpncpy.c: New file.
5656         * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
5657
5658 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
5659
5660         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call to
5661         _wcsrtombs_r.
5662
5663 2007-11-19  Nick Clifton  <nickc@redhat.com>
5664
5665         * libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2.
5666         * libc/machine/mn10300/Makefile.in: Regenerate.
5667         * libc/machine/mn10300/memchar.S: Remove redundant labels.  Add
5668         .debug_frame section.
5669         * libc/machine/mn10300/memcmp.S: Likewise.
5670         * libc/machine/mn10300/memcpy.S: Likewise.
5671         * libc/machine/mn10300/memset.S: Likewise.
5672         * libc/machine/mn10300/strchr.S: Likewise.
5673         * libc/machine/mn10300/strcmp.S: Likewise.
5674         * libc/machine/mn10300/strcpy.S: Likewise.
5675         * libc/machine/mn10300/strlen.S: Likewise.
5676
5677 2007-11-15  Jeff Johnston  <jjohnstn@redhat.com>
5678
5679         * libc/include/sys/_default_fcntl.h: New header file that
5680         is the default version of sys/fcntl.h.
5681         * libc/include/sys/fcntl.h: Changed to simply include
5682         sys/_default_fcntl.h.
5683         * libc/sys/arm/sys/fcntl.h: New file that includes
5684         sys/_default_fcntl.h and defines O_BINARY.
5685
5686 2007-11-08  Corinna Vinschen  <corinna@vinschen.de>
5687
5688         * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.
5689
5690 2007-11-07  Dave Brolley  <brolley@redhat.com>
5691
5692         * libc/machine/configure: Regenerated to pick up mep-elf changes.
5693
5694         * Contribute mep-elf from Red Hat
5695         2006-10-27  DJ Delorie  <dj@redhat.com>
5696
5697         * libc/include/machine/setjmp.h: Add MeP support.
5698
5699         2003-04-17  DJ Delorie  <dj@redhat.com>
5700
5701         * configure.host (mep-*-*): Support "long long" type.
5702
5703         2001-06-06  DJ Delorie  <dj@redhat.com>
5704
5705         * libc/include/machine/ieeefp.h (mep): Support little endian too.
5706
5707         2001-05-14  DJ Delorie  <dj@redhat.com>
5708
5709         * configure.host: Add mep's machine_dir.
5710         * libc/include/setjmp.h: Add mep support.
5711         * libc/machine/mep: New.
5712         * libc/machine/mep/setjmp.S: New, support mep's setjmp/longjmp.
5713
5714         2001-05-04  DJ Delorie  <dj@redhat.com>
5715
5716         * configure.host: Add mep.
5717         * libc/include/machine/ieeefp.h: Ditto.
5718
5719 2007-10-31  DJ Delorie  <dj@redhat.com>
5720
5721         * libc/signal/signal.c (_raise_r): Don't attempt to initialize the
5722         signal table, just use a default, in case initialization cause
5723         recursion.
5724
5725 2007-10-23  Jeff Johnston  <jjohnstn@redhat.com>
5726
5727         * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating
5728         size if output buffer is NULL.
5729
5730 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
5731
5732         * libm/mathfp/s_logarithm.c: Fix error introduced by previous
5733         fix when handling negative input values.  Make function
5734         consistent with math directory and glibc version such that
5735         inf and nan values return inf and nan respectively with no
5736         errno setting.
5737         * libm/mathfp/sf_logarithm.c: Ditto.
5738         * libm/math/w_log.c: Set errno to ERANGE when input is 0.0.
5739         * libm/math/wf_log.c: Ditto.
5740         * libm/math/w_log10.c: Ditto.
5741         * libm/math/wf_log10.c: Ditto.
5742
5743 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
5744
5745         * libm/mathfp/s_logarithm.c: Fix case where input is 0 to
5746         return -inf.
5747         * libm/mathfp/sf_logarithm.c: Ditto.
5748
5749 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
5750
5751         * libc/machine/i386/machine/fastmath.h: New file.
5752
5753 2007-10-13  Eric Blake  <ebb9@byu.net>
5754
5755         * libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:
5756         Correctly nest else within conditionals.
5757         Reported by Artur Lipowski.
5758
5759 2007-10-09  Nick Clifton  <nickc@redhat.com>
5760
5761         * libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with
5762         the STT_COMMON type.
5763
5764 2007-10-09  Ben Elliston  <bje@au.ibm.com>
5765
5766         * libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h
5767         before simdmath.h to get a definition for `vector'.
5768         * libm/machine/spu/headers/asind2.h: Likewise.
5769
5770 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
5771
5772         * libm/machine/spu/headers/dom_chkd_less_than.h: New file.
5773         * libm/machine/spu/headers/dom_chkd_negone_one.h: Ditto.
5774         * libm/machine/spu/headers/dom_chkf_less_than.h: Ditto.
5775         * libm/machine/spu/headers/dom_chkf_negone_one.h: Ditto.
5776         * libm/machine/spu/headers/acos.h: Add domain check.
5777         * libm/machine/spu/headers/acosf.h: Ditto.
5778         * libm/machine/spu/headers/acosh.h: Ditto.
5779         * libm/machine/spu/headers/acoshf.h: Ditto.
5780         * libm/machine/spu/headers/asin.h: Ditto.
5781         * libm/machine/spu/headers/asinf.h: Ditto.
5782         * libm/machine/spu/headers/atanh.h: Ditto.
5783         * libm/machine/spu/headers/atanhf.h: Ditto.
5784         * libm/machine/spu/headers/fmod.h: Ditto.
5785         * libm/machine/spu/headers/fmodf.h: Ditto.
5786         * libm/machine/spu/headers/log.h: Ditto.
5787         * libm/machine/spu/headers/log10.h: Ditto.
5788         * libm/machine/spu/headers/log1p.h: Ditto.
5789         * libm/machine/spu/headers/log1pf.h: Ditto.
5790         * libm/machine/spu/headers/log2.h: Ditto.
5791         * libm/machine/spu/headers/log2f.h: Ditto.
5792         * libm/machine/spu/headers/sqrt.h: Ditto.
5793         * libm/machine/spu/headers/sqrtf.h: Ditto.
5794         * libm/machine/spu/headers/tgamma.h: Ditto.
5795         * libm/machine/spu/headers/tgammaf.h: Ditto.
5796
5797 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
5798
5799         * libm/machine/spu/Makefile.am: Add new C files.
5800         * libm/machine/spu/Makefile.in: Regenerate.
5801         * libm/machine/spu/headers/acos.h: New file.
5802         * libm/machine/spu/headers/acosd2.h: Ditto.
5803         * libm/machine/spu/headers/acosf.h: Ditto.
5804         * libm/machine/spu/headers/acosf4.h: Ditto.
5805         * libm/machine/spu/headers/acosh.h: Ditto.
5806         * libm/machine/spu/headers/acoshd2.h: Ditto.
5807         * libm/machine/spu/headers/acoshf.h: Ditto.
5808         * libm/machine/spu/headers/acoshf4.h: Ditto.
5809         * libm/machine/spu/headers/asin.h: Ditto.
5810         * libm/machine/spu/headers/asind2.h: Ditto.
5811         * libm/machine/spu/headers/asinf.h: Ditto.
5812         * libm/machine/spu/headers/asinf4.h: Ditto.
5813         * libm/machine/spu/headers/asinh.h: Ditto.
5814         * libm/machine/spu/headers/asinhd2.h: Ditto.
5815         * libm/machine/spu/headers/asinhf.h: Ditto.
5816         * libm/machine/spu/headers/asinhf4.h: Ditto.
5817         * libm/machine/spu/headers/atan.h: Ditto.
5818         * libm/machine/spu/headers/atan2.h: Ditto.
5819         * libm/machine/spu/headers/atan2d2.h: Ditto.
5820         * libm/machine/spu/headers/atan2f.h: Ditto.
5821         * libm/machine/spu/headers/atan2f4.h: Ditto.
5822         * libm/machine/spu/headers/atand2.h: Ditto.
5823         * libm/machine/spu/headers/atanf4.h: Ditto.
5824         * libm/machine/spu/headers/atanh.h: Ditto.
5825         * libm/machine/spu/headers/atanhd2.h: Ditto.
5826         * libm/machine/spu/headers/atanhf.h: Ditto.
5827         * libm/machine/spu/headers/atanhf4.h: Ditto.
5828         * libm/machine/spu/headers/cos.h: Ditto.
5829         * libm/machine/spu/headers/cos_sin.h: Ditto.
5830         * libm/machine/spu/headers/cosd2.h: Ditto.
5831         * libm/machine/spu/headers/cosf.h: Ditto.
5832         * libm/machine/spu/headers/cosf4.h: Ditto.
5833         * libm/machine/spu/headers/cosh.h: Ditto.
5834         * libm/machine/spu/headers/coshd2.h: Ditto.
5835         * libm/machine/spu/headers/coshf.h: Ditto.
5836         * libm/machine/spu/headers/coshf4.h: Ditto.
5837         * libm/machine/spu/headers/divd2.h: Ditto.
5838         * libm/machine/spu/headers/divf4.h: Ditto.
5839         * libm/machine/spu/headers/erf.h: Ditto.
5840         * libm/machine/spu/headers/erf_utils.h: Ditto.
5841         * libm/machine/spu/headers/erfc.h: Ditto.
5842         * libm/machine/spu/headers/erfcd2.h: Ditto.
5843         * libm/machine/spu/headers/erfcf.h: Ditto.
5844         * libm/machine/spu/headers/erfcf4.h: Ditto.
5845         * libm/machine/spu/headers/erfd2.h: Ditto.
5846         * libm/machine/spu/headers/erff.h: Ditto.
5847         * libm/machine/spu/headers/erff4.h: Ditto.
5848         * libm/machine/spu/headers/exp.h: Ditto.
5849         * libm/machine/spu/headers/exp2.h: Ditto.
5850         * libm/machine/spu/headers/exp2d2.h: Ditto.
5851         * libm/machine/spu/headers/exp2f4.h: Ditto.
5852         * libm/machine/spu/headers/expd2.h: Ditto.
5853         * libm/machine/spu/headers/expf4.h: Ditto.
5854         * libm/machine/spu/headers/expm1.h: Ditto.
5855         * libm/machine/spu/headers/expm1d2.h: Ditto.
5856         * libm/machine/spu/headers/expm1f.h: Ditto.
5857         * libm/machine/spu/headers/expm1f4.h: Ditto.
5858         * libm/machine/spu/headers/floord2.h: Ditto.
5859         * libm/machine/spu/headers/floorf4.h: Ditto.
5860         * libm/machine/spu/headers/hypot.h: Ditto.
5861         * libm/machine/spu/headers/hypotd2.h: Ditto.
5862         * libm/machine/spu/headers/hypotf.h: Ditto.
5863         * libm/machine/spu/headers/hypotf4.h: Ditto.
5864         * libm/machine/spu/headers/isnan.h: Ditto.
5865         * libm/machine/spu/headers/isnand2.h: Ditto.
5866         * libm/machine/spu/headers/isnanf.h: Ditto.
5867         * libm/machine/spu/headers/isnanf4.h: Ditto.
5868         * libm/machine/spu/headers/ldexpd2.h: Ditto.
5869         * libm/machine/spu/headers/ldexpf4.h: Ditto.
5870         * libm/machine/spu/headers/lgamma.h: Ditto.
5871         * libm/machine/spu/headers/lgammad2.h: Ditto.
5872         * libm/machine/spu/headers/lgammaf.h: Ditto.
5873         * libm/machine/spu/headers/lgammaf4.h: Ditto.
5874         * libm/machine/spu/headers/log.h: Ditto.
5875         * libm/machine/spu/headers/log10.h: Ditto.
5876         * libm/machine/spu/headers/log10d2.h: Ditto.
5877         * libm/machine/spu/headers/log1p.h: Ditto.
5878         * libm/machine/spu/headers/log1pd2.h: Ditto.
5879         * libm/machine/spu/headers/log1pf.h: Ditto.
5880         * libm/machine/spu/headers/log1pf4.h: Ditto.
5881         * libm/machine/spu/headers/log2.h: Ditto.
5882         * libm/machine/spu/headers/log2d2.h: Ditto.
5883         * libm/machine/spu/headers/log2f4.h: Ditto.
5884         * libm/machine/spu/headers/logbf.h: Ditto.
5885         * libm/machine/spu/headers/logbf4.h: Ditto.
5886         * libm/machine/spu/headers/logd2.h: Ditto.
5887         * libm/machine/spu/headers/logf4.h: Ditto.
5888         * libm/machine/spu/headers/nearbyintf.h: Ditto.
5889         * libm/machine/spu/headers/nearbyintf4.h: Ditto.
5890         * libm/machine/spu/headers/nextafter.h: Ditto.
5891         * libm/machine/spu/headers/nextafterd2.h: Ditto.
5892         * libm/machine/spu/headers/nextafterf.h: Ditto.
5893         * libm/machine/spu/headers/nextafterf4.h: Ditto.
5894         * libm/machine/spu/headers/pow.h: Ditto.
5895         * libm/machine/spu/headers/powd2.h: Ditto.
5896         * libm/machine/spu/headers/powf.h: Ditto.
5897         * libm/machine/spu/headers/powf4.h: Ditto.
5898         * libm/machine/spu/headers/recipd2.h: Ditto.
5899         * libm/machine/spu/headers/recipf4.h: Ditto.
5900         * libm/machine/spu/headers/rintf.h: Ditto.
5901         * libm/machine/spu/headers/rintf4.h: Ditto.
5902         * libm/machine/spu/headers/scalbnf4.h: Ditto.
5903         * libm/machine/spu/headers/signbit.h: Ditto.
5904         * libm/machine/spu/headers/signbitd2.h: Ditto.
5905         * libm/machine/spu/headers/simdmath.h: Ditto.
5906         * libm/machine/spu/headers/sin.h: Ditto.
5907         * libm/machine/spu/headers/sincos.h: Ditto.
5908         * libm/machine/spu/headers/sincosd2.h: Ditto.
5909         * libm/machine/spu/headers/sincosf.h: Ditto.
5910         * libm/machine/spu/headers/sincosf4.h: Ditto.
5911         * libm/machine/spu/headers/sind2.h: Ditto.
5912         * libm/machine/spu/headers/sinf.h: Ditto.
5913         * libm/machine/spu/headers/sinf4.h: Ditto.
5914         * libm/machine/spu/headers/sinh.h: Ditto.
5915         * libm/machine/spu/headers/sinhd2.h: Ditto.
5916         * libm/machine/spu/headers/sinhf.h: Ditto.
5917         * libm/machine/spu/headers/sinhf4.h: Ditto.
5918         * libm/machine/spu/headers/sqrtd2.h: Ditto.
5919         * libm/machine/spu/headers/sqrtf.h: Ditto.
5920         * libm/machine/spu/headers/sqrtf4.h: Ditto.
5921         * libm/machine/spu/headers/tan.h: Ditto.
5922         * libm/machine/spu/headers/tand2.h: Ditto.
5923         * libm/machine/spu/headers/tanf.h: Ditto.
5924         * libm/machine/spu/headers/tanf4.h: Ditto.
5925         * libm/machine/spu/headers/tanh.h: Ditto.
5926         * libm/machine/spu/headers/tanhd2.h: Ditto.
5927         * libm/machine/spu/headers/tanhf.h: Ditto.
5928         * libm/machine/spu/headers/tanhf4.h: Ditto.
5929         * libm/machine/spu/headers/tgamma.h: Ditto.
5930         * libm/machine/spu/headers/tgammad2.h: Ditto.
5931         * libm/machine/spu/headers/tgammaf.h: Ditto.
5932         * libm/machine/spu/headers/tgammaf4.h: Ditto.
5933         * libm/machine/spu/headers/truncd2.h: Ditto.
5934         * libm/machine/spu/headers/truncf4.h: Ditto.
5935         * libm/machine/spu/log2.c: Ditto.
5936         * libm/machine/spu/s_asinh.c: Ditto.
5937         * libm/machine/spu/s_atan.c: Ditto.
5938         * libm/machine/spu/s_cos.c: Ditto.
5939         * libm/machine/spu/s_erf.c: Ditto.
5940         * libm/machine/spu/s_expm1.c: Ditto.
5941         * libm/machine/spu/s_isnan.c: Ditto.
5942         * libm/machine/spu/s_log1p.c: Ditto.
5943         * libm/machine/spu/s_nextafter.c: Ditto.
5944         * libm/machine/spu/s_sin.c: Ditto.
5945         * libm/machine/spu/s_tan.c: Ditto.
5946         * libm/machine/spu/s_tanh.c: Ditto.
5947         * libm/machine/spu/sf_asinh.c: Ditto.
5948         * libm/machine/spu/sf_cos.c: Ditto.
5949         * libm/machine/spu/sf_erf.c: Ditto.
5950         * libm/machine/spu/sf_expm1.c: Ditto.
5951         * libm/machine/spu/sf_log1p.c: Ditto.
5952         * libm/machine/spu/sf_logb.c: Ditto.
5953         * libm/machine/spu/sf_nearbyint.c: Ditto.
5954         * libm/machine/spu/sf_nextafter.c: Ditto.
5955         * libm/machine/spu/sf_rint.c: Ditto.
5956         * libm/machine/spu/sf_sin.c: Ditto.
5957         * libm/machine/spu/sf_tan.c: Ditto.
5958         * libm/machine/spu/sf_tanh.c: Ditto.
5959         * libm/machine/spu/w_acos.c: Ditto.
5960         * libm/machine/spu/w_acosh.c: Ditto.
5961         * libm/machine/spu/w_asin.c: Ditto.
5962         * libm/machine/spu/w_atan2.c: Ditto.
5963         * libm/machine/spu/w_atanh.c: Ditto.
5964         * libm/machine/spu/w_cosh.c: Ditto.
5965         * libm/machine/spu/w_exp.c: Ditto.
5966         * libm/machine/spu/w_exp2.c: Ditto.
5967         * libm/machine/spu/w_hypot.c: Ditto.
5968         * libm/machine/spu/w_lgamma.c: Ditto.
5969         * libm/machine/spu/w_log.c: Ditto.
5970         * libm/machine/spu/w_log10.c: Ditto.
5971         * libm/machine/spu/w_pow.c: Ditto.
5972         * libm/machine/spu/w_sincos.c: Ditto.
5973         * libm/machine/spu/w_sinh.c: Ditto.
5974         * libm/machine/spu/w_tgamma.c: Ditto.
5975         * libm/machine/spu/wf_acos.c: Ditto.
5976         * libm/machine/spu/wf_acosh.c: Ditto.
5977         * libm/machine/spu/wf_asin.c: Ditto.
5978         * libm/machine/spu/wf_atan2.c: Ditto.
5979         * libm/machine/spu/wf_atanh.c: Ditto.
5980         * libm/machine/spu/wf_cosh.c: Ditto.
5981         * libm/machine/spu/wf_hypot.c: Ditto.
5982         * libm/machine/spu/wf_lgamma.c: Ditto.
5983         * libm/machine/spu/wf_pow.c: Ditto.
5984         * libm/machine/spu/wf_sincos.c: Ditto.
5985         * libm/machine/spu/wf_sinh.c: Ditto.
5986         * libm/machine/spu/wf_sqrt.c: Ditto.
5987         * libm/machine/spu/wf_tgamma.c: Ditto.
5988
5989 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
5990
5991         * configure.host: Define _POSIX_MODE to match the existing vector
5992         math code, as we don't support the matherr callout.
5993         * libm/machine/spu/Makefile.am: New file.
5994         * libm/machine/spu/Makefile.in: Auto-generated.
5995         * libm/machine/spu/headers/atanf.h: New file.
5996         * libm/machine/spu/headers/cbrt.h: Ditto.
5997         * libm/machine/spu/headers/cbrtf.h: Ditto.
5998         * libm/machine/spu/headers/ceil.h: Ditto.
5999         * libm/machine/spu/headers/ceilf.h: Ditto.
6000         * libm/machine/spu/headers/copysign.h: Ditto.
6001         * libm/machine/spu/headers/copysignf.h: Ditto.
6002         * libm/machine/spu/headers/exp2f.h: Ditto.
6003         * libm/machine/spu/headers/expf.h: Ditto.
6004         * libm/machine/spu/headers/fabs.h: Ditto.
6005         * libm/machine/spu/headers/fabsf.h: Ditto.
6006         * libm/machine/spu/headers/fdim.h: Ditto.
6007         * libm/machine/spu/headers/fdimf.h: Ditto.
6008         * libm/machine/spu/headers/floor.h: Ditto.
6009         * libm/machine/spu/headers/floorf.h: Ditto.
6010         * libm/machine/spu/headers/fma.h: Ditto.
6011         * libm/machine/spu/headers/fmaf.h: Ditto.
6012         * libm/machine/spu/headers/fmax.h: Ditto.
6013         * libm/machine/spu/headers/fmaxf.h: Ditto.
6014         * libm/machine/spu/headers/fmin.h: Ditto.
6015         * libm/machine/spu/headers/fminf.h: Ditto.
6016         * libm/machine/spu/headers/fmod.h: Ditto.
6017         * libm/machine/spu/headers/fmodf.h: Ditto.
6018         * libm/machine/spu/headers/frexp.h: Ditto.
6019         * libm/machine/spu/headers/frexpf.h: Ditto.
6020         * libm/machine/spu/headers/ilogb.h: Ditto.
6021         * libm/machine/spu/headers/ilogbf.h: Ditto.
6022         * libm/machine/spu/headers/ldexp.h: Ditto.
6023         * libm/machine/spu/headers/ldexpf.h: Ditto.
6024         * libm/machine/spu/headers/llrint.h: Ditto.
6025         * libm/machine/spu/headers/llrintf.h: Ditto.
6026         * libm/machine/spu/headers/llround.h: Ditto.
6027         * libm/machine/spu/headers/llroundf.h: Ditto.
6028         * libm/machine/spu/headers/log10f.h: Ditto.
6029         * libm/machine/spu/headers/log2f.h: Ditto.
6030         * libm/machine/spu/headers/logf.h: Ditto.
6031         * libm/machine/spu/headers/lrint.h: Ditto.
6032         * libm/machine/spu/headers/lrintf.h: Ditto.
6033         * libm/machine/spu/headers/lround.h: Ditto.
6034         * libm/machine/spu/headers/lroundf.h: Ditto.
6035         * libm/machine/spu/headers/nearbyint.h: Ditto.
6036         * libm/machine/spu/headers/remainder.h: Ditto.
6037         * libm/machine/spu/headers/remainderf.h: Ditto.
6038         * libm/machine/spu/headers/remquo.h: Ditto.
6039         * libm/machine/spu/headers/remquof.h: Ditto.
6040         * libm/machine/spu/headers/rint.h: Ditto.
6041         * libm/machine/spu/headers/round.h: Ditto.
6042         * libm/machine/spu/headers/roundf.h: Ditto.
6043         * libm/machine/spu/headers/scalbn.h: Ditto.
6044         * libm/machine/spu/headers/scalbnf.h: Ditto.
6045         * libm/machine/spu/headers/sqrt.h: Ditto.
6046         * libm/machine/spu/headers/trunc.h: Ditto.
6047         * libm/machine/spu/headers/truncf.h: Ditto.
6048         * libm/machine/spu/headers/vec_literal.h: Ditto.
6049         * libm/machine/spu/llrint.c: Ditto.
6050         * libm/machine/spu/llrintf.c: Ditto.
6051         * libm/machine/spu/llround.c: Ditto.
6052         * libm/machine/spu/llroundf.c: Ditto.
6053         * libm/machine/spu/log2f.c: Ditto.
6054         * libm/machine/spu/s_cbrt.c: Ditto.
6055         * libm/machine/spu/s_ceil.c: Ditto.
6056         * libm/machine/spu/s_copysign.c: Ditto.
6057         * libm/machine/spu/s_fabs.c: Ditto.
6058         * libm/machine/spu/s_fdim.c: Ditto.
6059         * libm/machine/spu/s_floor.c: Ditto.
6060         * libm/machine/spu/s_fma.c: Ditto.
6061         * libm/machine/spu/s_fmax.c: Ditto.
6062         * libm/machine/spu/s_fmin.c: Ditto.
6063         * libm/machine/spu/s_frexp.c: Ditto.
6064         * libm/machine/spu/s_ilogb.c: Ditto.
6065         * libm/machine/spu/s_ldexp.c: Ditto.
6066         * libm/machine/spu/s_lrint.c: Ditto.
6067         * libm/machine/spu/s_lround.c: Ditto.
6068         * libm/machine/spu/s_nearbyint.c: Ditto.
6069         * libm/machine/spu/s_remquo.c: Ditto.
6070         * libm/machine/spu/s_rint.c: Ditto.
6071         * libm/machine/spu/s_round.c: Ditto.
6072         * libm/machine/spu/s_scalbn.c: Ditto.
6073         * libm/machine/spu/s_trunc.c: Ditto.
6074         * libm/machine/spu/sf_atan.c: Ditto.
6075         * libm/machine/spu/sf_cbrt.c: Ditto.
6076         * libm/machine/spu/sf_ceil.c: Ditto.
6077         * libm/machine/spu/sf_copysign.c: Ditto.
6078         * libm/machine/spu/sf_fabs.c: Ditto.
6079         * libm/machine/spu/sf_fdim.c: Ditto.
6080         * libm/machine/spu/sf_floor.c: Ditto.
6081         * libm/machine/spu/sf_fma.c: Ditto.
6082         * libm/machine/spu/sf_fmax.c: Ditto.
6083         * libm/machine/spu/sf_fmin.c: Ditto.
6084         * libm/machine/spu/sf_frexp.c: Ditto.
6085         * libm/machine/spu/sf_ilogb.c: Ditto.
6086         * libm/machine/spu/sf_ldexp.c: Ditto.
6087         * libm/machine/spu/sf_lrint.c: Ditto.
6088         * libm/machine/spu/sf_lround.c: Ditto.
6089         * libm/machine/spu/sf_remquo.c: Ditto.
6090         * libm/machine/spu/sf_round.c: Ditto.
6091         * libm/machine/spu/sf_scalbn.c: Ditto.
6092         * libm/machine/spu/sf_trunc.c: Ditto.
6093         * libm/machine/spu/w_fmod.c: Ditto.
6094         * libm/machine/spu/w_remainder.c: Ditto.
6095         * libm/machine/spu/w_sqrt.c: Ditto.
6096         * libm/machine/spu/wf_exp.c: Ditto.
6097         * libm/machine/spu/wf_exp2.c: Ditto.
6098         * libm/machine/spu/wf_fmod.c: Ditto.
6099         * libm/machine/spu/wf_log.c: Ditto.
6100         * libm/machine/spu/wf_log10.c: Ditto.
6101         * libm/machine/spu/wf_remainder.c: Ditto.
6102
6103 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
6104
6105         * libc/machine/spu/sys/uio.h: New file for readv and writev use.
6106
6107 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
6108
6109         * libc/include/sched.h: New file, just include sys/sched.h.
6110         * libc/machine/spu/sys/sched.h: New file, has just sched_yield
6111         prototype.
6112         * libc/machine/spu/sys/utime.h: New file, has utime prototype and
6113         struct utimbuf definition.
6114
6115 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
6116
6117         * libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
6118         specific struct and typedef.
6119
6120 2007-09-18  Patrick Mansfield  <patmans@us.ibm.com>
6121
6122         * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to
6123         typedef dev_t, gid_t, and uid_t.
6124         * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t
6125         types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead.
6126         Change to lower case for all __foo_t_defined names.
6127         * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t,
6128         __uid_t, and __gid_t making them all four bytes. Change to lower case
6129         for all __foo_t_defined names.
6130
6131 2007-09-18  Jeff Johnston  <jjohnstn@redhat.com>
6132
6133         * libc/reent/renamer.c: New file.
6134         * libc/reent/Makefile.am: Add new file.
6135         * libc/reent/Makefile.in: Regenerated.
6136         * libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c
6137         and add check for rename syscall.
6138
6139 2007-09-17  Eric Blake  <ebb9@byu.net>
6140
6141         Obey POSIX on printf("%.s", (char*)NULL).
6142         * libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account
6143         for %s on NULL.  Skip NULL check when optimizing for size.
6144
6145 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
6146
6147         * libc/include/sys/_types.h: Protect all types with flag
6148         checks to allow definition in machine/_types.h.
6149
6150 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
6151
6152         * libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t
6153         definitions in light of the previous change.
6154
6155 2007-09-07  Patrick Mansfield  <patmans@us.ibm.com>
6156
6157         * libc/include/machine/_default_types.h: New file, contains what
6158         was previously in libc/include/machine/_types.h.
6159         * libc/include/machine/_types.h: Now only includes
6160         machine/_default_types.h.
6161         * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t.
6162         * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here,
6163         with conditional declarations.
6164         * libc/machine/spu/machine/_types.h: New file, add SPU specific
6165         typedefs for _fpos_t and _fpos64_t.
6166
6167 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
6168
6169         * libc/include/math.h (_M_LOG2E): Replace with..
6170         (_M_LOG2_E): New macro.
6171         (log2, log2f, M_LOG2_E): Use _M_LOG2_E.
6172
6173 2007-09-06  Brian Dessent  <brian@dessent.net>
6174
6175         * libc/reent/getreent.c: Allow for case where __getreent is
6176         defined as a macro.
6177
6178 2007-09-06  Jeff Johnston  <jjohnstn@redhat.com>
6179
6180         * libc/include/math.h (_M_LOG2E): New log2 of e macro.
6181         (log2): Use _M_LOG2E instead of M_LOG2E.
6182         (log2f): Ditto.
6183         (M_LOG2E): Define to be _M_LOG2E.
6184
6185 2007-09-04  Kazunori Asayama <asayama@sm.sony.co.jp>
6186
6187         * libm/math/wf_tgamma.c: Add missing include.
6188
6189 2007-08-31  Antony King  <antony.king@st.com>
6190
6191         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith
6192         bits and redefine associated dword0 macro (rvalue issue).
6193         * libc/stdio/vfieeefp.h: Ditto.
6194         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
6195         to prevent setting dword1 which is an rvalue only.
6196
6197 2007-08-28  Hans Kester  <hans.kester@ellips.nl>
6198
6199         * configure.host: Added support for x86_64.
6200         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64.
6201         * libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64.
6202         * libc/machine/x86_64/aclocal.m4: Generated.
6203         * libc/machine/x86_64/configure.in: New.
6204         * libc/machine/x86_64/configure: Generated.
6205         * libc/machine/x86_64/Makefile.am: New.
6206         * libc/machine/x86_64/Makefile.in: Generated.
6207         * libc/machine/x86_64/setjmp.S: New.
6208         * libc/machine/x86_64/memcpy.S: New.
6209         * libc/machine/x86_64/memset.S: New.
6210         * libc/machine/configure.in: Added support for x86_64.
6211         * libc/machine/configure: Regenerated.
6212
6213 2007-08-24  Jeff Johnston  <jjohnstn@redhat.com>
6214
6215         * libm/common/sf_lround.c (lroundf): Cast sizeof calculation
6216         to int before comparing it to a signed int value.
6217
6218 2007-08-24  Hans-Peter Nilsson  <hp@axis.com>
6219
6220         * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
6221         (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
6222         Define.
6223
6224 2007-08-23  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
6225
6226         Reduce the memory consumption of variable argument functions
6227         for SPU (cell):
6228         * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources
6229           to assembler sources.
6230         * libc/machine/spu/Makefile.in: Regenerated.
6231         * libc/machine/spu/stdio.c: Add __check_init function wrapping
6232           CHECK_INIT macro to use from assembler routines.
6233         * libc/machine/spu/c99ppe.h: Add definitions for assembler code.
6234         * libc/machine/spu/fiprintf.S: New file.
6235         * libc/machine/spu/fiscanf.S: Ditto.
6236         * libc/machine/spu/fprintf.S: Ditto.
6237         * libc/machine/spu/fscanf.S: Ditto.
6238         * libc/machine/spu/iprintf.S: Ditto.
6239         * libc/machine/spu/iscanf.S: Ditto.
6240         * libc/machine/spu/printf.S: Ditto.
6241         * libc/machine/spu/scanf.S: Ditto.
6242         * libc/machine/spu/siprintf.S: Ditto.
6243         * libc/machine/spu/siscanf.S: Ditto.
6244         * libc/machine/spu/sniprintf.S: Ditto.
6245         * libc/machine/spu/snprintf.S: Ditto.
6246         * libc/machine/spu/sprintf.S: Ditto.
6247         * libc/machine/spu/sscanf.S: Ditto.
6248         * libc/machine/spu/stack_reg_va.S: Ditto.
6249         * libc/machine/spu/syscall.def: Ditto. (for maintenance)
6250         * libc/machine/spu/mk_syscalls: Ditto. (for maintenance)
6251         * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S)
6252         * libc/machine/spu/fiscanf.c: Ditto.
6253         * libc/machine/spu/fprintf.c: Ditto.
6254         * libc/machine/spu/fscanf.c: Ditto.
6255         * libc/machine/spu/iprintf.c: Ditto.
6256         * libc/machine/spu/iscanf.c: Ditto.
6257         * libc/machine/spu/printf.c: Ditto.
6258         * libc/machine/spu/scanf.c: Ditto.
6259         * libc/machine/spu/siprintf.c: Ditto.
6260         * libc/machine/spu/siscanf.c: Ditto.
6261         * libc/machine/spu/sniprintf.c: Ditto.
6262         * libc/machine/spu/snprintf.c: Ditto.
6263         * libc/machine/spu/sprintf.c: Ditto.
6264         * libc/machine/spu/sscanf.c: Ditto.
6265
6266 2007-08-03  Ralf Corsepius  <ralf.corsepius@rtems.org>
6267
6268         * libc/include/tar.h: New.
6269
6270 2007-08-03  Jeff Johnston  <jjohnstn@redhat.com>
6271
6272         * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to
6273         lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string.
6274         * libc/sys/linux/intl/Makefile.in: Regenerated.
6275         * libc/sys/linux/intl/stpcpy.c: Renamed to...
6276         * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
6277
6278 2007-08-02  Eric Blake  <ebb9@byu.net>
6279
6280         Implement fmemopen and open_memstream.
6281         * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file.
6282         * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream):
6283         New file.
6284         * libc/stdio/fopencookie.c (fcwriter): Minor optimization.
6285         * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x
6286         functions together.
6287         (fmemopen, open_memstream): Declare new functions.
6288         * libc/stdio/stdio.tex: Document them.
6289         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add
6290         fmemopen and open_memstream.
6291         * libc/stdio/Makefile.in: Regenerate.
6292
6293 2007-07-31  Eric Blake  <ebb9@byu.net>
6294
6295         More POSIX stream corner cases.
6296         * libc/stdio/findfp.c (__sinit): Open stderr read/write.
6297         * libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
6298         requested.
6299         * libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
6300
6301 2007-07-18  Eric Blake  <ebb9@byu.net>
6302
6303         Fix 'make info'.
6304         * libc/stdio/stdio.tex: Add missing include.
6305         * libc/stdio/vfprintf.c: Use expected node name.
6306         * libc/stdio/vfscanf.c: Likewise.
6307         * libc/stdio/sscanf.c: Likewise.
6308         * libc/stdio/sprintf.c: Likewise.
6309         * libc/stdio/siscanf.c: Likewise.
6310         * libc/stdio/siprintf.c: Likewise.
6311         * libc/stdio/fopencookie.c: Quote raw {}.
6312         Reported by DJ Delorie.
6313
6314 2007-07-13  Eric Blake  <ebb9@byu.net>
6315
6316         Fix fflush issues.
6317         * libc/stdio/fflush.c (_fflush_r): New function.
6318         (fflush): Fix reentrancy and large offset behavior.
6319         * libc/include/stdio.h (_fflush_r): Add prototype.
6320         * libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
6321         * libc/stdio/freopen.c (_freopen_r): Likewise.
6322         * libc/stdio/fseek.c (_fseek_r): Likewise.
6323         * libc/stdio/ftell.c (_ftell_r): Likewise.
6324         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
6325         * libc/stdio/refill.c (__srefill_r): Likewise.
6326         * libc/stdio/setvbuf.c (setvbuf): Likewise.
6327         * libc/stdio/ungetc.c (_ungetc_r): Likewise.
6328         * libc/stdio/vfprintf.c (__sbprintf): Likewise.
6329         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
6330         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
6331         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.  Defer to
6332         32-bit version if not large file.
6333         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
6334         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
6335
6336         Documentation updates.
6337         * libc/stdio/ungetc.c: Document ungetc.
6338         * libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
6339         of files with documentation.
6340         * libc/stdio/Makefile.in: Regenerate.
6341         * libc/stdio/stdio.tex: Sort and update stdio documentation index.
6342
6343 2007-07-11  Jeff Johnston  <jjohnstn@redhat.com>
6344
6345         * libc/include/math.h: Fix so C99 functions/macros are accessible
6346         when -std=c99 is used when compiling and not when using C89.
6347
6348 2007-07-06  Corinna Vinschen  <corinna@vinschen.de>
6349
6350         * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
6351         wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
6352         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
6353         (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
6354         wcstoull_r.c.
6355         (CHEWOUT_FILES): Add .def files accordingly.
6356         * libc/stdlib/Makefile.in: Regenerate.
6357         * libc/stdlib/stdlib.tex: Add documentation links for above functions.
6358         * libc/stdlib/strtoll.c: Fix portability note.
6359         * libc/stdlib/strtoull.c: Ditto.
6360         * libc/stdlib/wcstol.c: New file.
6361         * libc/stdlib/wcstoll.c: New file.
6362         * libc/stdlib/wcstoll_r.c: New file.
6363         * libc/stdlib/wcstoul.c: New file.
6364         * libc/stdlib/wcstoull.c: New file.
6365         * libc/stdlib/wcstoull_r.c: New file.
6366
6367 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
6368
6369         * libc/include/sys/time.h (gettimeofday): Change to proper
6370         prototype where second parameter is void *.
6371         * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
6372         accordingly.
6373         * libc/include/reent.h: Fix prototype for _gettimeofday_r.
6374         * libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
6375         * libc/sys/rdos/gettod.c: Ditto.
6376         * libc/sys/sh/syscalls.c: Ditto.
6377         * libc/time/time.c (time): Change call to _gettimeofday_r
6378         to pass NULL as 2nd argument.
6379
6380 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
6381
6382         * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
6383         * libc/sys/linux/intl/l10nflist.c: Ditto.
6384
6385 2007-07-04  Corinna Vinschen  <corinna@vinschen.de>
6386
6387         * libc/include/wchar.h: Add prototype for wcsxfrm.
6388         * libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
6389         (CHEWOUT_FILES): Add wcsxfrm.def.
6390         * libc/string/Makefile.in: Regenerate.
6391         * libc/string/wcsxfrm.c: New file.
6392         * libc/string/wcstrings.tex: Add wcsxfrm.
6393
6394 2007-06-28  Corinna Vinschen  <corinna@vinschen.de>
6395
6396         * libc/include/string.h: Add prototypes for stpcpy and stpncpy.
6397         * libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
6398         stpncpy.c.
6399         (CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
6400         * libc/string/Makefile.in: Regenerate.
6401         * libc/string/stpcpy.c: New file.
6402         * libc/string/stpncpy.c: New file.
6403         * libc/string/strings.tex: Add stpcpy and stpncpy.
6404
6405 2007-06-27  Eric Blake  <ebb9@byu.net>
6406
6407         Support __func__ in assert, as required by C99.
6408         * libc/stdlib/assert.c (__assert_func): New function.
6409         (__assert): Use __assert_func.
6410         * libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
6411         possible.
6412
6413 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
6414
6415         * libc/machine/spu/perror.c: Pass errno as the second argument to
6416         the assist call.
6417
6418 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
6419
6420         * libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related
6421         defines; expose ftruncate, truncate and sync prototypes.
6422
6423 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
6424
6425         * libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
6426         * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
6427         visible.
6428
6429 2007-06-15  Patrick Mansfield  <patmans@us.ibm.com>
6430
6431         * libc/machine/spu/Makefile.am: Remove mktemp.c, it was left in
6432         from a dropped patch.
6433         * libc/machine/spu/Makefile.in: Regenerate.
6434
6435 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
6436
6437         * libc/machine/spu/creat.c: New file copied from libc/posix/creat.c,
6438         it just calls open with appropriate arguments.
6439         * libc/machine/spu/Makefile.am: Add creat.c.
6440         * libc/machine/spu/Makefile.in: Regenerate.
6441
6442 2007-06-13  Jeff Johnston  <jjohnstn@redhat.com>
6443
6444         * libc/machine/spu/Makefile.am: Re-add back setjmp.S which
6445         I accidentally dropped.
6446         * libc/machine/spu/Makefile.in: Regenerated.
6447
6448 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
6449
6450         * libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
6451         * libc/include/sys/unistd.h: Change usleep prototype to Posix
6452         form and move outside of OS flag checks.
6453         * libc/machine/spu/Makefile.am: Add sleep and usleep.
6454         * libc/machine/spu/Makefile.in: Regenerate.
6455         * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
6456         * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
6457
6458 2007-06-11  Corinna Vinschen  <corinna@vinschen.de>
6459
6460         * libc/include/sys/unistd.h: Declare confstr for Cygwin.
6461         Define confstr constants for Cygwin.  Add comment.
6462
6463 2007-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
6464
6465         * libc/sys/mmixware/access.c (access): Do not try to use a magic
6466         file-handle and a direct syscall, just use _open.
6467         * libc/sys/mmixware/sys/syscall.h (TMPFNO): Remove this magic
6468         file-handle.
6469
6470         * libc/sys/mmixware/_exit.c (_exit): Update comment about
6471         passing on the exit value.
6472
6473 2007-06-08  Jeff Johnston  <jjohnstn@redhat.com>
6474
6475         * libc/string/strcasestr.c: New file.
6476         * libc/include/string.h: Add strcasestr.
6477         * libc/string/strings.tex: Add strcasestr.
6478         * libc/string/Makefile.am: Ditto.
6479         * libc/string/Makefile.in: Regenerated.
6480
6481 2007-06-06  Christian Groessler  <chris@groessler.org>
6482
6483         * libc/stdlib/ldtoa (_ldcheck): Make sure the setting of
6484         rnd is done after the last local variable declaration.
6485
6486 2007-06-06  Jeff Johnston  <jjohnstn@redhat.com>
6487
6488         * libc/stdlib/mprec.h[Just_16]: Make sure that Pack_16 is defined.
6489
6490 2007-06-05  Christian Groessler  <chris@groessler.org>
6491
6492         * libc/argz/argz_insert.c (argz_insert): Move delta variable
6493         declaration to top of function in keeping with C89 standard.
6494
6495 2007-06-04  Eric Blake  <ebb9@byu.net>
6496
6497         Implement funopen, fopencookie.
6498         * libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
6499         Switch to reentrant callbacks.
6500         * libc/include/stdio.h (funopen): Fix declaration.
6501         (fopencookie): Declare.
6502         * libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
6503         (__sseek64, __swrite64): Fix prototypes.
6504         [__SCLE]: Pull in setmode declaration.
6505         * libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
6506         reentrancy.
6507         * libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
6508         (__sseek64, __swrite64): Fix reentrancy.
6509         * libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
6510         reentrancy.
6511         * libc/stdio/ftell.c (_ftell_r): Likewise.
6512         * libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
6513         * libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
6514         * libc/stdio/freopen.c (_freopen_r): Likewise.
6515         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
6516         * libc/stdio/refill.c (__srefill_r): Likewise.
6517         * libc/stdio/siscanf.c (eofread): Likewise.
6518         * libc/stdio/sscanf.c (eofread): Likewise.
6519         * libc/stdio/vsiscanf.c (eofread1): Likewise.
6520         * libc/stdio/vsscanf.c (eofread1): Likewise.
6521         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
6522         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
6523         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
6524         * libc/stdio/fflush.c (fflush): Improve reentrancy, although more
6525         could be fixed.
6526         * libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
6527         * libc/stdio/funopen.c (_funopen_r, funopen): New file.
6528         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
6529         new files.
6530         * libc/stdio/Makefile.in: Regenerate.
6531
6532 2007-05-29  Eric Blake  <ebb9@byu.net>
6533
6534         Avoid more compiler warnings.
6535         * libc/stdlib/btowc.c: Add missing header.
6536         * libc/stdlib/getopt.c (getopt_internal): Initialize variable.
6537         * libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration.
6538         * libc/stdlib/wctob.c: Add missing header.
6539         * libc/string/strcpy.c (strcpy): Avoid warnings.
6540         * libc/string/strrchr.c (strrchr): Likewise.
6541
6542 2007-05-29  Corinna Vinschen  <corinna@vinschen.de>
6543
6544         * libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string
6545         argument.
6546         * libc/argz/argz_append.c (argz_append): Handle empty buf argument.
6547         * libc/argz/argz_create_sep.c (argz_create_sep): Return (NULL, 0)
6548         on empty input strings.
6549         * libc/argz/argz_extract.c (argz_extract): Check argz_len before
6550         looping through argz.
6551         * libc/argz/argz_stringify.c (argz_stringify): Ditto.
6552
6553 2007-05-27  Brian Dessent  <brian@dessent.net>
6554
6555         * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
6556         handling %p.
6557
6558 2007-05-25  Eric Blake  <ebb9@byu.net>
6559
6560         * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
6561
6562 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
6563             Charles Wilson  <libtool@cwilson.fastmail.fm>
6564
6565         * libtool.m4: removed
6566         * configure.in: invoke _LD_DECL_SED before conditionally initializing
6567         libtool.  Move AC_PROG_AWK outside conditional.
6568         * libc/sys/linux/configure.in: Ditto.
6569         * libc/sys/linux/linuxthreads/configure.in: Ditto.
6570         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
6571         * libc/sys/linux/machine/i386/configure.in: Ditto.
6572
6573         * iconvdata/configure.in: invoke _LD_DECL_SED before conditionally
6574         initializing libtool.
6575         * libc/configure.in: Ditto.
6576         * libc/machine/configure.in: Ditto.
6577         * libc/machine/i386/configure.in: Ditto.
6578         * libc/sys/configure.in: Ditto.
6579         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
6580         * libc/sys/linux/machine/configure.in: Ditto.
6581         * libm/configure.in: Ditto.
6582         * libm/machine/configure.in: Ditto.
6583
6584         * Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
6585         * doc/Makefile.am: Ditto.
6586         * iconvdata/Makefile.am: Ditto.
6587         * libc/Makefile.am: Ditto.
6588         * libc/machine/Makefile.am: Ditto.
6589         * libc/machine/a29k/Makefile.am: Ditto.
6590         * libc/machine/arm/Makefile.am: Ditto.
6591         * libc/machine/bfin/Makefile.am: Ditto.
6592         * libc/machine/cris/Makefile.am: Ditto.
6593         * libc/machine/crx/Makefile.am: Ditto.
6594         * libc/machine/d10v/Makefile.am: Ditto.
6595         * libc/machine/d30v/Makefile.am: Ditto.
6596         * libc/machine/fr30/Makefile.am: Ditto.
6597         * libc/machine/frv/Makefile.am: Ditto.
6598         * libc/machine/h8300/Makefile.am: Ditto.
6599         * libc/machine/h8500/Makefile.am: Ditto.
6600         * libc/machine/hppa/Makefile.am: Ditto.
6601         * libc/machine/i386/Makefile.am: Ditto.
6602         * libc/machine/i960/Makefile.am: Ditto.
6603         * libc/machine/iq2000/Makefile.am: Ditto.
6604         * libc/machine/m32c/Makefile.am: Ditto.
6605         * libc/machine/m32r/Makefile.am: Ditto.
6606         * libc/machine/m68hc11/Makefile.am: Ditto.
6607         * libc/machine/m68k/Makefile.am: Ditto.
6608         * libc/machine/m88k/Makefile.am: Ditto.
6609         * libc/machine/mips/Makefile.am: Ditto.
6610         * libc/machine/mn10200/Makefile.am: Ditto.
6611         * libc/machine/mn10300/Makefile.am: Ditto.
6612         * libc/machine/mt/Makefile.am: Ditto.
6613         * libc/machine/necv70/Makefile.am: Ditto.
6614         * libc/machine/powerpc/Makefile.am: Ditto.
6615         * libc/machine/sh/Makefile.am: Ditto.
6616         * libc/machine/sparc/Makefile.am: Ditto.
6617         * libc/machine/spu/Makefile.am: Ditto.
6618         * libc/machine/tic4x/Makefile.am: Ditto.
6619         * libc/machine/tic80/Makefile.am: Ditto.
6620         * libc/machine/v850/Makefile.am: Ditto.
6621         * libc/machine/w65/Makefile.am: Ditto.
6622         * libc/machine/xscale/Makefile.am: Ditto.
6623         * libc/machine/xstormy16/Makefile.am: Ditto.
6624         * libc/machine/z8k/Makefile.am: Ditto.
6625         * libc/sys/Makefile.am: Ditto.
6626         * libc/sys/a29khif/Makefile.am: Ditto.
6627         * libc/sys/arc/Makefile.am: Ditto.
6628         * libc/sys/arm/Makefile.am: Ditto.
6629         * libc/sys/d10v/Makefile.am: Ditto.
6630         * libc/sys/decstation/Makefile.am: Ditto.
6631         * libc/sys/h8300hms/Makefile.am: Ditto.
6632         * libc/sys/h8500hms/Makefile.am: Ditto.
6633         * libc/sys/linux/Makefile.am: Ditto.
6634         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
6635         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
6636         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
6637         * libc/sys/linux/machine/Makefile.am: Ditto.
6638         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
6639         * libc/sys/m88kbug/Makefile.am: Ditto.
6640         * libc/sys/mmixware/Makefile.am: Ditto.
6641         * libc/sys/netware/Makefile.am: Ditto.
6642         * libc/sys/rdos/Makefile.am: Ditto.
6643         * libc/sys/rtems/Makefile.am: Ditto.
6644         * libc/sys/sh/Makefile.am: Ditto.
6645         * libc/sys/sparc64/Makefile.am: Ditto.
6646         * libc/sys/sun4/Makefile.am: Ditto.
6647         * libc/sys/sysmec/Makefile.am: Ditto.
6648         * libc/sys/sysnec810/Makefile.am: Ditto.
6649         * libc/sys/sysnecv850/Makefile.am: Ditto.
6650         * libc/sys/sysvi386/Makefile.am: Ditto.
6651         * libc/sys/sysvnecv70/Makefile.am: Ditto.
6652         * libc/sys/tic80/Makefile.am: Ditto.
6653         * libc/sys/w65/Makefile.am: Ditto.
6654         * libc/sys/z8ksim/Makefile.am: Ditto.
6655         * libm/Makefile.am: Ditto.
6656         * libm/machine/Makefile.am: Ditto.
6657         * libm/machine/i386/Makefile.am: Ditto.
6658         * libm/machine/spu/Makefile.am: Ditto.
6659
6660         * aclocal.m4: Regenerate.
6661         * iconvdata/aclocal.m4: Regenerate.
6662         * libc/aclocal.m4: Regenerate.
6663         * libc/machine/aclocal.m4: Regenerate.
6664         * libc/machine/i386/aclocal.m4: Regenerate.
6665         * libc/sys/aclocal.m4: Regenerate.
6666         * libc/sys/linux/aclocal.m4: Regenerate.
6667         * libc/sys/linux/linuxthreads/aclocal.m4: Regenerate.
6668         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Regenerate.
6669         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Regenerate.
6670         * libc/sys/linux/machine/aclocal.m4: Regenerate.
6671         * libc/sys/linux/machine/i386/aclocal.m4: Regenerate.
6672         * libm/aclocal.m4: Regenerate.
6673         * libm/machine/aclocal.m4: Regenerate.
6674         * libm/machine/i386/aclocal.m4: Regenerate.
6675
6676         * Makefile.in: Regenerate.
6677         * doc/Makefile.in: Regenerate.
6678         * iconvdata/Makefile.in: Regenerate.
6679         * libc/Makefile.in: Regenerate.
6680         * libc/argz/Makefile.in: Regenerate.
6681         * libc/ctype/Makefile.in: Regenerate.
6682         * libc/errno/Makefile.in: Regenerate.
6683         * libc/iconv/Makefile.in: Regenerate.
6684         * libc/iconv/ccs/Makefile.in: Regenerate.
6685         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
6686         * libc/iconv/ces/Makefile.in: Regenerate.
6687         * libc/iconv/lib/Makefile.in: Regenerate.
6688         * libc/locale/Makefile.in: Regenerate.
6689         * libc/machine/Makefile.in: Regenerate.
6690         * libc/machine/a29k/Makefile.in: Regenerate.
6691         * libc/machine/arm/Makefile.in: Regenerate.
6692         * libc/machine/bfin/Makefile.in: Regenerate.
6693         * libc/machine/cris/Makefile.in: Regenerate.
6694         * libc/machine/crx/Makefile.in: Regenerate.
6695         * libc/machine/d10v/Makefile.in: Regenerate.
6696         * libc/machine/d30v/Makefile.in: Regenerate.
6697         * libc/machine/fr30/Makefile.in: Regenerate.
6698         * libc/machine/frv/Makefile.in: Regenerate.
6699         * libc/machine/h8300/Makefile.in: Regenerate.
6700         * libc/machine/h8500/Makefile.in: Regenerate.
6701         * libc/machine/hppa/Makefile.in: Regenerate.
6702         * libc/machine/i386/Makefile.in: Regenerate.
6703         * libc/machine/i960/Makefile.in: Regenerate.
6704         * libc/machine/iq2000/Makefile.in: Regenerate.
6705         * libc/machine/m32c/Makefile.in: Regenerate.
6706         * libc/machine/m32r/Makefile.in: Regenerate.
6707         * libc/machine/m68hc11/Makefile.in: Regenerate.
6708         * libc/machine/m68k/Makefile.in: Regenerate.
6709         * libc/machine/m88k/Makefile.in: Regenerate.
6710         * libc/machine/mips/Makefile.in: Regenerate.
6711         * libc/machine/mn10200/Makefile.in: Regenerate.
6712         * libc/machine/mn10300/Makefile.in: Regenerate.
6713         * libc/machine/mt/Makefile.in: Regenerate.
6714         * libc/machine/necv70/Makefile.in: Regenerate.
6715         * libc/machine/powerpc/Makefile.in: Regenerate.
6716         * libc/machine/sh/Makefile.in: Regenerate.
6717         * libc/machine/sparc/Makefile.in: Regenerate.
6718         * libc/machine/spu/Makefile.in: Regenerate.
6719         * libc/machine/tic4x/Makefile.in: Regenerate.
6720         * libc/machine/tic80/Makefile.in: Regenerate.
6721         * libc/machine/v850/Makefile.in: Regenerate.
6722         * libc/machine/w65/Makefile.in: Regenerate.
6723         * libc/machine/xscale/Makefile.in: Regenerate.
6724         * libc/machine/xstormy16/Makefile.in: Regenerate.
6725         * libc/machine/z8k/Makefile.in: Regenerate.
6726         * libc/misc/Makefile.in: Regenerate.
6727         * libc/posix/Makefile.in: Regenerate.
6728         * libc/reent/Makefile.in: Regenerate.
6729         * libc/search/Makefile.in: Regenerate.
6730         * libc/signal/Makefile.in: Regenerate.
6731         * libc/stdio/Makefile.in: Regenerate.
6732         * libc/stdio64/Makefile.in: Regenerate.
6733         * libc/stdlib/Makefile.in: Regenerate.
6734         * libc/string/Makefile.in: Regenerate.
6735         * libc/sys/Makefile.in: Regenerate.
6736         * libc/sys/a29khif/Makefile.in: Regenerate.
6737         * libc/sys/arc/Makefile.in: Regenerate.
6738         * libc/sys/arm/Makefile.in: Regenerate.
6739         * libc/sys/d10v/Makefile.in: Regenerate.
6740         * libc/sys/decstation/Makefile.in: Regenerate.
6741         * libc/sys/h8300hms/Makefile.in: Regenerate.
6742         * libc/sys/h8500hms/Makefile.in: Regenerate.
6743         * libc/sys/linux/Makefile.in: Regenerate.
6744         * libc/sys/linux/argp/Makefile.in: Regenerate.
6745         * libc/sys/linux/cmath/Makefile.in: Regenerate.
6746         * libc/sys/linux/dl/Makefile.in: Regenerate.
6747         * libc/sys/linux/iconv/Makefile.in: Regenerate.
6748         * libc/sys/linux/intl/Makefile.in: Regenerate.
6749         * libc/sys/linux/linuxthreads/Makefile.in: Regenerate.
6750         * libc/sys/linux/linuxthreads/machine/Makefile.in: Regenerate.
6751         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerate.
6752         * libc/sys/linux/machine/Makefile.in: Regenerate.
6753         * libc/sys/linux/machine/i386/Makefile.in: Regenerate.
6754         * libc/sys/linux/net/Makefile.in: Regenerate.
6755         * libc/sys/linux/stdlib/Makefile.in: Regenerate.
6756         * libc/sys/m88kbug/Makefile.in: Regenerate.
6757         * libc/sys/mmixware/Makefile.in: Regenerate.
6758         * libc/sys/netware/Makefile.in: Regenerate.
6759         * libc/sys/rdos/Makefile.in: Regenerate.
6760         * libc/sys/rtems/Makefile.in: Regenerate.
6761         * libc/sys/sh/Makefile.in: Regenerate.
6762         * libc/sys/sparc64/Makefile.in: Regenerate.
6763         * libc/sys/sun4/Makefile.in: Regenerate.
6764         * libc/sys/sysmec/Makefile.in: Regenerate.
6765         * libc/sys/sysnec810/Makefile.in: Regenerate.
6766         * libc/sys/sysnecv850/Makefile.in: Regenerate.
6767         * libc/sys/sysvi386/Makefile.in: Regenerate.
6768         * libc/sys/sysvnecv70/Makefile.in: Regenerate.
6769         * libc/sys/tic80/Makefile.in: Regenerate.
6770         * libc/sys/w65/Makefile.in: Regenerate.
6771         * libc/sys/z8ksim/Makefile.in: Regenerate.
6772         * libc/syscalls/Makefile.in: Regenerate.
6773         * libc/time/Makefile.in: Regenerate.
6774         * libc/unix/Makefile.in: Regenerate.
6775         * libm/Makefile.in: Regenerate.
6776         * libm/common/Makefile.in: Regenerate.
6777         * libm/machine/Makefile.in: Regenerate.
6778         * libm/machine/i386/Makefile.in: Regenerate.
6779         * libm/machine/spu/Makefile.in: Regenerate.
6780         * libm/math/Makefile.in: Regenerate.
6781         * libm/mathfp/Makefile.in: Regenerate.
6782
6783         * configure: Regenerate.
6784         * iconvdata/configure: Regenerate.
6785         * libc/configure: Regenerate.
6786         * libc/machine/configure: Regenerate.
6787         * libc/machine/i386/configure: Regenerate.
6788         * libc/sys/configure: Regenerate.
6789         * libc/sys/linux/configure: Regenerate.
6790         * libc/sys/linux/linuxthreads/configure: Regenerate.
6791         * libc/sys/linux/linuxthreads/machine/configure: Regenerate.
6792         * libc/sys/linux/linuxthreads/machine/i386/configure: Regenerate.
6793         * libc/sys/linux/machine/configure: Regenerate.
6794         * libc/sys/linux/machine/i386/configure: Regenerate.
6795         * libm/configure: Regenerate.
6796         * libm/machine/configure: Regenerate.
6797         * libm/machine/i386/configure: Regenerate.
6798
6799 2007-05-23  Eric Blake  <ebb9@byu.net>
6800
6801         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
6802         sizeof(void*) is 8 but sizeof(long) is 4.
6803         * libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise.  Fix %i scanning
6804         of "-0x".  Support "-nan" and "inf" for %e.  Audit usage of ungetc
6805         to fix reentrancy and bug on encoding error in multibyte locales.
6806         Always return EOF on read error.
6807
6808 2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
6809
6810         * libc/machine/spu/sys/syscall.h: Update the __send_to_ppe
6811         prototype.
6812         * libc/machine/spu/fclose.c: Use the __send_to_ppe return value
6813         instead of the slot 0 value, remove any now unused variables, and
6814         for some cases, now store the result in an int vs int*.
6815         * libc/machine/spu/feof.c: Ditto.
6816         * libc/machine/spu/ferror.c: Ditto.
6817         * libc/machine/spu/fflush.c: Ditto.
6818         * libc/machine/spu/fgetc.c: Ditto.
6819         * libc/machine/spu/fgetpos.c: Ditto.
6820         * libc/machine/spu/fgets.c: Ditto.
6821         * libc/machine/spu/fileno.c: Ditto.
6822         * libc/machine/spu/fopen.c: Ditto.
6823         * libc/machine/spu/fprintf.c: Ditto.
6824         * libc/machine/spu/fputc.c: Ditto.
6825         * libc/machine/spu/fputs.c: Ditto.
6826         * libc/machine/spu/fread.c: Ditto.
6827         * libc/machine/spu/freopen.c: Ditto.
6828         * libc/machine/spu/fscanf.c: Ditto.
6829         * libc/machine/spu/fseek.c: Ditto.
6830         * libc/machine/spu/fsetpos.c: Ditto.
6831         * libc/machine/spu/ftell.c: Ditto.
6832         * libc/machine/spu/fwrite.c: Ditto.
6833         * libc/machine/spu/getc.c: Ditto.
6834         * libc/machine/spu/getchar.c: Ditto.
6835         * libc/machine/spu/gets.c: Ditto.
6836         * libc/machine/spu/printf.c: Ditto.
6837         * libc/machine/spu/putc.c: Ditto.
6838         * libc/machine/spu/putchar.c: Ditto.
6839         * libc/machine/spu/puts.c: Ditto.
6840         * libc/machine/spu/remove.c: Ditto.
6841         * libc/machine/spu/rename.c: Ditto.
6842         * libc/machine/spu/scanf.c: Ditto.
6843         * libc/machine/spu/setvbuf.c: Ditto.
6844         * libc/machine/spu/snprintf.c: Ditto.
6845         * libc/machine/spu/sprintf.c: Ditto.
6846         * libc/machine/spu/sscanf.c: Ditto.
6847         * libc/machine/spu/tmpfile.c: Ditto.
6848         * libc/machine/spu/tmpnam.c: Ditto.
6849         * libc/machine/spu/ungetc.c: Ditto.
6850         * libc/machine/spu/vfprintf.c: Ditto.
6851         * libc/machine/spu/vfscanf.c: Ditto.
6852         * libc/machine/spu/vprintf.c: Ditto.
6853         * libc/machine/spu/vscanf.c: Ditto.
6854         * libc/machine/spu/vsnprintf.c: Ditto.
6855         * libc/machine/spu/vsprintf.c: Ditto.
6856         * libc/machine/spu/vsscanf.c: Ditto.
6857
6858 2007-05-23  Eric Blake  <ebb9@byu.net>
6859
6860         * libc/stdio/vfscanf.c (__SVFSCANF_R): Support scanf(%1$s).
6861         Avoid warning when !FLOATING_POINT.
6862         * libc/stdio/vfprintf.c (_VFPRINTF_R): Simplify _NO_POS_ARGS
6863         slightly.
6864
6865 2007-05-23  Corinna Vinschen  <vinschen@redhat.com>
6866
6867         * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len
6868         to zero.
6869         * libc/include/argz.h: Guard against multiple inclusion.  Guard for
6870         use with C++.
6871
6872 2007-05-18  Eric Blake  <ebb9@byu.net>
6873
6874         * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
6875         compilers.
6876         * libc/stdio/vfscanf.c: Likewise.
6877
6878 2007-05-17  Cary R.  <cygcary <at> yahoo.com>
6879
6880         * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc
6881         (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0))
6882         * libm/math/wf_atan2.c: Ditto.
6883
6884 2007-05-17  Yaakov Selkowitz  <yselkowitz <at> users.sourceforge.net>
6885
6886         * libm/common/Makefile.am: Add support for exp10, exp10f,
6887         pow10, and pow10f functions.
6888         * libm/common/Makefile.in: Regenerated.
6889         * libm/common/s_pow10.c: New file.
6890         * libm/common/sf_pow10.c: Ditto.
6891         * libm/common/s_exp10.c: Ditto.
6892         * libm/common/sf_exp10.c: Ditto.
6893         * libc/include/math.h [!pow10]: New pow10 prototype.
6894         [!pow10f]: New pow10f prototype.
6895         [!exp10]: New exp10 prototype.
6896         [!exp10f]: New exp10f prototype.
6897
6898 2007-05-17  Charles Wilson  <cygwin@...>
6899
6900         * stdio/tmpfile.c: Include <sys/stat.h>.
6901         * stdio64/tmpfile64.c: Ditto.
6902
6903 2007-05-16  Eric Blake  <ebb9@byu.net>
6904
6905         Close security hole in tmpfile.
6906         * libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
6907         generation and opening the fd.
6908         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
6909
6910         * libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)
6911         (MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros
6912         required by POSIX.
6913         * libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to
6914         avoid clash with <math.h>.
6915
6916         * libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.
6917         * libc/search/hash.c (__hash_open): Likewise.
6918
6919 2007-05-14 Eric Blake <ebb9@byu.net>
6920
6921         Reduce stack size of *printf.
6922         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point
6923         in %f.  Avoid malloc when possible for %S.
6924         (BUF): Improve stack locality by using smaller size.
6925         (MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define.
6926         (exponent): Use smaller stack size.
6927
6928 2007-05-11  Eric Blake  <ebb9@byu.net>
6929
6930         Minimize printf/scanf size on platforms that don't need C99.
6931         * acconfig.h (_WANT_IO_C99_FORMATS): New macro.
6932         * newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
6933         * configure.in (newlib-io-c99-formats): New configure option.
6934         (_WANT_IO_C99_FORMATS): Define appropriately.
6935         * configure.host (*-linux*, cygwin): Default c99-formats to yes.
6936         * libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
6937         Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
6938         * libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
6939         Likewise.
6940         * configure: Regenerate.
6941
6942         * libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)
6943         (get_arg): Support '%a' and '%A'.
6944
6945 2007-05-09  Eric Blake  <ebb9@byu.net>
6946
6947         Allow zero size with non-null buf in *asnprintf.
6948         * libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing
6949         user's buf.
6950         * libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise.
6951         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
6952         * libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
6953
6954 2007-05-07  Charles Wilson  <cygwin@...>
6955
6956         * libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.
6957
6958 2007-05-03  Eric Blake  <ebb9@byu.net>
6959
6960         Add support for asnprintf, and improve *printf documentation.
6961         * libc/stdio/Makefile.am (ELIX_SOURCES): Rename...
6962         (ELIX_2_SOURCES): ...to this.
6963         (ELIX_4_SOURCES): Add new variable.  Build asnprintf.
6964         (GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES.
6965         (CHEWOUT_FILES): Include diprintf in documentation.
6966         * libc/stdio/Makefile.in: Regenerate.
6967         * libc/stdio/diprintf.c: Improve documentation.
6968         * libc/stdio/dprintf.c: Likewise.
6969         * libc/stdio/siprintf.c: Likewise.
6970         * libc/stdio/sprintf.c: Likewise.
6971         * libc/stdio/vfprintf.c: Likewise.
6972         * libc/stdio/viprintf.c: Likewise.
6973         * libc/stdio/vsniprintf.c: Consolidate documentation.
6974         * libc/stdio/asiprintf.c: Refer to documentation.
6975         * libc/stdio/asprintf.c: Likewise.
6976         * libc/stdio/fiprintf.c: Likewise.
6977         * libc/stdio/fprintf.c: Likewise.
6978         * libc/stdio/iprintf.c: Likewise.
6979         * libc/stdio/printf.c: Likewise.
6980         * libc/stdio/sniprintf.c: Likewise.
6981         * libc/stdio/vdiprintf.c: Likewise.
6982         * libc/stdio/vdprintf.c: Likewise.
6983         * libc/stdio/vsiprintf.c: Likewise.
6984         * libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf.
6985         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file.
6986         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file.
6987         * libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New
6988         file.
6989         * libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file.
6990         * libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in
6991         typical case.
6992         * libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise.
6993         * libc/include/stdio.h: Add prototypes for new functions; sort
6994         existing functions.
6995
6996 2007-05-03  Kazu Hirata  <kazu@codesourcery.com>
6997
6998         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
6999         and memset.S.
7000         * libc/machine/m68k/Makefile.in: Regenerate.
7001         * libc/machine/m68k/memcpy.S: Use sub.l followed by dbra.
7002         * libc/machine/m68k/memset.S: Likewise.
7003
7004 2007-05-01  Eric Blake  <ebb9@byu.net>
7005
7006         * libc/stdio64/local64.h: Delete, move contents to...
7007         * libc/stdio/local.h: ...here.
7008         * libc/stdio64/fdopen64.c: Update includes.
7009         * libc/stdio64/fopen64.c: Likewise.
7010         * libc/stdio64/freopen64.c: Likewise.
7011         * libc/stdio64/fseeko64.c: Likewise.
7012         * libc/stdio64/ftello64.c: Likewise.
7013         * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
7014         and stderr with 64-bit offset.
7015         * libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
7016         * libc/stdio/makebuf.c (__smakebuf_r): Likewise.
7017         * libc/stdio/mktemp.c (_gettemp): Likewise.
7018
7019 2007-05-01  Cary R.  <cygcary <at> yahoo.com>
7020
7021         * libm/math/e_pow.c: Fix to be consistent with glibc with regards
7022         to treatment of NaN and +-inf arguments.
7023         * libm/math/ef_pow.c: Ditto.
7024         * libm/math/w_pow.c: Ditto.
7025         * libm/math/wf_pow.c: Ditto.
7026         * libm/math/w_acos.c: Fix domain errors to return NaN.
7027         * libm/math/w_asin.c: Ditto.
7028         * libm/math/wf_acos.c: Ditto.
7029         * libm/math/wf_asin.c: Ditto.
7030         * libm/math/w_log.c: Fix to return NaN for negative number inputs.
7031         * libm/math/wf_log.c: Ditto.
7032         * libm/math/wf_log10.c: Ditto.
7033         * libm/math/w_log10.c: Ditto.
7034
7035 2007-04-27  Jeff Johnston  <jjohnstn@redhat.com>
7036
7037         * libc/machine/m68k/Makefile.am: Temporarily remove
7038         memcpy.S and memset.S until logic can be confirmed for
7039         !(__mcoldfile__) case.
7040         * libc/machine/m68k/Makefile.in: Regenerated.
7041
7042 2007-04-27  Kazu Hirata  <kazu@codesourcery.com>
7043
7044         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
7045         and memset.S.
7046         * libc/machine/m68k/Makefile.in: Regenerate.
7047         * libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
7048
7049 2007-04-26  Patrick Mansfield <patmans@us.ibm.com>
7050
7051         * libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be
7052         overridden via machine/ieeefp.h.
7053         * libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp
7054         macros for isnan and related macros.
7055         * libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be
7056         overridden via machine/ieeefp.h.
7057         * libm/machine/spu/Makefile.am: Add new files.
7058         * libm/machine/spu/Makefile.in: Autogenerate with new files.
7059         * libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf.
7060         * libm/machine/spu/sf_finite.c: Add SPU specific finitef.
7061         * libm/machine/spu/sf_isinf.c: Add SPU specific isinff.
7062         * libm/machine/spu/sf_isinff.c: Add SPU specific __isinff.
7063         * libm/machine/spu/sf_isnan.c: Add SPU specific isnanf.
7064         * libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf.
7065         * libm/machine/spu/sf_nan.c: Add SPU specific nanf.
7066
7067 2007-04-25  Jeff Johnston  <jjohnstn@redhat.com>
7068
7069         * libm/common/s_fpclassify.c (__fpclassifyf): Move this to...
7070         * libm/common/sf_fpclassify.c: ...here.  New file.
7071         * libm/common/Makefile.am: Add sf_fpclassify.c.
7072         * libm/common/Makefile.in: Regenerated.
7073
7074 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
7075
7076         * libc/machine/spu/sys/errno.h: New file, so spu errno values match
7077         ppu linux values. This file is a copy of the cris/sys/errno.h plus
7078         a few changes (see spu errno.h comments).
7079
7080 2007-04-25  Eric Blake  <ebb9@byu.net>
7081
7082         * libc/stdio/vfprintf.c (get_arg): Support %1$lc.  Simplify types
7083         that promote to int.
7084
7085 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
7086
7087         * libm/machine/spu/headers/feholdexcept.h: Use *envp not env so
7088         we clear the proper bits in the fpscr, and don't set some random ones.
7089
7090 2007-04-24  Eric Blake  <ebb9@byu.net>
7091
7092         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
7093         or NaN with %05f.
7094
7095         * libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
7096         _MB_CAPABLE.
7097
7098         * libc/include/limits.h (NL_ARGMAX): Define a default value.
7099         * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
7100         NL_ARGMAX, if present.
7101
7102 2007-04-23  Brian Dessent  <brian@dessent.net>
7103
7104         * libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag
7105         has been specified with types 'f', 'F', 'g', or 'G', ensure the
7106         trailing decimal is printed.
7107
7108 2007-04-23  Ralf Wildenhues  <Ralf.Wildenhues <at> gmx.de>
7109
7110         * confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New
7111         file.  Override Autoconf-2.59's version of these macros with
7112         fixed handling of multiple adjacent whitespace in arguments.
7113         * aclocal.m4: Regenerated forcefully.
7114         * configure: Ditto.
7115         * Makefile.in: Ditto.
7116         * libc/*Makefile.in: Ditto.
7117         * libc/*aclocal.m4: Ditto.
7118         * libc/*configure: Ditto.
7119         * libm/*Makefile.in: Ditto.
7120         * libm/*aclocal.m4: Ditto.
7121         * libm/*configure: Ditto.
7122
7123 2007-04-23  Jeff Johnston  <jjohnstn@redhat.com>
7124
7125         * libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule.
7126         * libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES
7127         and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule.
7128         * libc/sys/arc/Makefile.in: Regenerated.
7129
7130 2007-04-17  Brian Dessent  <brian@dessent.net>
7131
7132         * libc/stdio/sscanf.c: Update documentation comments.
7133         * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
7134
7135 2007-04-12  Eric Blake  <ebb9@byu.net>
7136
7137         * libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
7138         (chclass): Recognize 'F', 'X', 'n', and not 'W'.
7139         (get_arg): Handle %1$F, %1$n.
7140
7141 2007-04-10  Eric Blake  <ebb9@byu.net>
7142
7143         * libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
7144         CFLAGS=-O0.
7145
7146 2007-04-09  Eric Blake  <ebb9@byu.net>
7147
7148         * libc/include/stdio.h: Add gcc format attributes to printf and
7149         scanf families.
7150
7151 2007-04-09  Joel Schopp <jschopp@austin.ibm.com>
7152
7153         * libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data
7154         even if the passed in length n is shorter than the source string.
7155         This matches both the non-spu specific and the glibc strxfrm
7156         behaviour.
7157
7158 2007-04-04  Mark Mitchell  <mark@codesourcery.com>
7159
7160         * libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit
7161         functions registering additional atexit functions.
7162
7163         * testsuite/lib/flags.exp (newlib_include_flags): Drop
7164         -I${newlib_dir}.
7165
7166 2007-04-04  Patrick Mansfield <patmans@us.ibm.com>
7167
7168         * libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
7169         prototype.
7170         * libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
7171         * libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
7172         * libc/machine/spu/fclose.c: Ditto.
7173         * libc/machine/spu/feof.c: Ditto.
7174         * libc/machine/spu/ferror.c: Ditto.
7175         * libc/machine/spu/fflush.c: Ditto.
7176         * libc/machine/spu/fgetc.c: Ditto.
7177         * libc/machine/spu/fgetpos.c: Ditto.
7178         * libc/machine/spu/fgets.c: Ditto.
7179         * libc/machine/spu/fileno.c: Ditto.
7180         * libc/machine/spu/fopen.c: Ditto.
7181         * libc/machine/spu/fprintf.c: Ditto.
7182         * libc/machine/spu/fputc.c: Ditto.
7183         * libc/machine/spu/fputs.c: Ditto.
7184         * libc/machine/spu/fread.c: Ditto.
7185         * libc/machine/spu/freopen.c: Ditto.
7186         * libc/machine/spu/fscanf.c: Ditto.
7187         * libc/machine/spu/fseek.c: Ditto.
7188         * libc/machine/spu/fsetpos.c: Ditto.
7189         * libc/machine/spu/ftell.c: Ditto.
7190         * libc/machine/spu/fwrite.c: Ditto.
7191         * libc/machine/spu/getc.c: Ditto.
7192         * libc/machine/spu/getchar.c: Ditto.
7193         * libc/machine/spu/gets.c: Ditto.
7194         * libc/machine/spu/perror.c: Ditto.
7195         * libc/machine/spu/printf.c: Ditto.
7196         * libc/machine/spu/putc.c: Ditto.
7197         * libc/machine/spu/putchar.c: Ditto.
7198         * libc/machine/spu/puts.c: Ditto.
7199         * libc/machine/spu/remove.c: Ditto.
7200         * libc/machine/spu/rename.c: Ditto.
7201         * libc/machine/spu/rewind.c: Ditto.
7202         * libc/machine/spu/scanf.c: Ditto.
7203         * libc/machine/spu/setbuf.c: Ditto.
7204         * libc/machine/spu/setvbuf.c: Ditto.
7205         * libc/machine/spu/snprintf.c: Ditto.
7206         * libc/machine/spu/sprintf.c: Ditto.
7207         * libc/machine/spu/sscanf.c: Ditto.
7208         * libc/machine/spu/tmpfile.c: Ditto.
7209         * libc/machine/spu/tmpnam.c: Ditto.
7210         * libc/machine/spu/ungetc.c: Ditto.
7211         * libc/machine/spu/vfprintf.c: Ditto.
7212         * libc/machine/spu/vfscanf.c: Ditto.
7213         * libc/machine/spu/vprintf.c: Ditto.
7214         * libc/machine/spu/vscanf.c: Ditto.
7215         * libc/machine/spu/vsnprintf.c: Ditto.
7216         * libc/machine/spu/vsprintf.c: Ditto.
7217         * libc/machine/spu/vsscanf.c: Ditto.
7218
7219 2007-04-04  Jeff Johnston  <jjohnstn@redhat.com>
7220
7221         * libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
7222
7223 2007-04-04  Eric Blake  <ebb9@byu.net>
7224
7225         * libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
7226         (asiprintf): Avoid overhead.
7227         * libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
7228         (asprintf): Avoid overhead.
7229         * libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
7230         * libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
7231         * libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
7232         (fiprintf): Avoid overhead.
7233         * libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
7234         (fprintf): Avoid overhead.
7235         * libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
7236         (iprintf): Avoid overhead.
7237         * libc/stdio/printf.c (_printf_r): Use _DEFUN.
7238         (printf): Avoid overhead.
7239         * libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
7240         * libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
7241         * libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
7242         * libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
7243         * libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
7244         * libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
7245         * libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
7246         * libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
7247         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
7248         vdiprintf.c.
7249         * libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
7250         (_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
7251
7252 2007-03-30  Dave Korn  <dave.korn@artimi.com>
7253
7254         * libc/include/stdio.h (_ELIDABLE_INLINE):  New macro to conceal
7255         conflicting inline semantics between C99 and GNU89.
7256         (__sgetc_r):  Replace static inline with _ELIDABLE_INLINE to be
7257         compatible with -fkeep-inline-functions usage.
7258         (__sputc_r):  Likewise for consistency even though disabled.
7259
7260 2007-03-29  Nick Clifton  <nickc@redhat.com>
7261
7262         Reflect changes made to generic vfprintf.c:
7263         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
7264         and add a "struct reent *" argument.
7265         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
7266         argument and call _VFPRINTF_R instead of VFPRINTF.
7267         (_VFPRINTF_R): Add data pointer to call to cantwrite().
7268         Fix uses of __sprint() and __sbprintf.
7269
7270 2007-03-20  Nick Clifton  <nickc@redhat.com>
7271
7272         Reflect changes made to generic vfprintf.c:
7273         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
7274         and add a "struct reent *" argument.
7275         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
7276         argument and call _VFPRINTF_R instead of VFPRINTF.
7277         (_VFPRINTF_R): Add data pointer to call to cantwrite().
7278         Fix uses of __sprint() and __sbprintf.
7279
7280 2007-03-16  Charles Wilson  <cygwin@...>
7281
7282         * libc/argz/argz_insert.c: "before" pointer is
7283         invalid after *argz realloc.  Compute offset
7284         between "before" and *argz, and use it after
7285         reallocation instead.
7286
7287 2007-03-16  Eric Blake  <ebb9@byu.net>
7288
7289         * libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
7290         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
7291
7292 2007-03-15  Jeff Johnston  <jjohnstn@redhat.com>
7293
7294         * configure.in: Add new --enable-newlib-reent-small option.
7295         * configure: Regenerated.
7296         * acconfig.h: Add _WANT_REENT_SMALL.
7297         * newlib.hin: Regenerated minus PACKAGE macros to add
7298         _WANT_REENT_SMALL macro.
7299         * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
7300         if not already set.
7301         * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
7302         there is no buffer.
7303         * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
7304         use reentrant pointer passed in when resetting the file
7305         pointer to one of the std streams.
7306
7307 2007-03-15  Eric Blake  <ebb9@byu.net>
7308
7309         * libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
7310         (__smakebuf): Rename...
7311         (__smakebuf_r): to this.
7312         * libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
7313         * libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
7314         allocation, then rename...
7315         (__smakebuf_r): ...to this and fix reentrancy.
7316         * libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
7317         allocation, then rename...
7318         (__swsetup_r): ...to this and fix reentrancy.
7319         * libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
7320         * libc/stdio/refill.c (__srefill_r): Likewise.
7321         * libc/stdio/fclose.c (_fclose_r): Likewise.
7322         * libc/stdio/fread.c (_fread_r): Likewise.
7323         * libc/stdio/freopen.c (_freopen_r): Likewise.
7324         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
7325         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
7326         * libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
7327         failed asprintf allocation, and fix reentrancy.
7328         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
7329         as required by POSIX.
7330         * libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
7331         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
7332         * libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
7333
7334 2007-03-12  Eric Blake  <ebb9@byu.net>
7335
7336         * libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
7337         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
7338         allocation to caller.
7339         * libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
7340         * libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
7341         * libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
7342
7343 2007-02-23  Jeff Johnston  <jjohnstn@redhat.com>
7344
7345         * libm/math/w_pow.c: Fix typo in documentation comment.
7346
7347 2007-02-21  Patrick Mansfield <patmans@us.ibm.com>
7348
7349         * libc/reent/timer.c: Removed (split into two new files).
7350         * libc/reent/timesr.c: New file for _times_r.
7351         * libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
7352         * reent/Makefile.in: Remove timer.c, add timesr.c and
7353         gettimeofdayr.c.
7354         * libc/reent/Makefile.am: Regenerate.
7355
7356 2007-02-20  Patrick Mansfield <patmans@us.ibm.com>
7357
7358         * configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
7359
7360 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
7361
7362         * libc/machine/spu/Makefile.am: Add new objects.
7363         * libc/machine/spu/Makefile.in: Regenerated.
7364         * libc/machine/spu/fiprintf.c: New file. Add implementation of
7365         integer-only version.
7366         * libc/machine/spu/fiscanf.c: Ditto.
7367         * libc/machine/spu/iprintf.c: Ditto.
7368         * libc/machine/spu/iscanf.c: Ditto.
7369         * libc/machine/spu/siprintf.c: Ditto.
7370         * libc/machine/spu/siscanf.c: Ditto.
7371         * libc/machine/spu/sniprintf.c: Ditto.
7372         * libc/machine/spu/vfiprintf.c: Ditto.
7373         * libc/machine/spu/vfiscanf.c: Ditto.
7374         * libc/machine/spu/viprintf.c: Ditto.
7375         * libc/machine/spu/viscanf.c: Ditto.
7376         * libc/machine/spu/vsiprintf.c: Ditto.
7377         * libc/machine/spu/vsiscanf.c: Ditto.
7378         * libc/machine/spu/vsniprintf.c: Ditto.
7379         * libc/machine/spu/fprintf.c: Add support for integer-only
7380         version.
7381         * libc/machine/spu/fscanf.c: Ditto.
7382         * libc/machine/spu/printf.c: Ditto.
7383         * libc/machine/spu/scanf.c: Ditto.
7384         * libc/machine/spu/snprintf.c: Ditto.
7385         * libc/machine/spu/sprintf.c: Ditto.
7386         * libc/machine/spu/sscanf.c: Ditto.
7387         * libc/machine/spu/vfprintf.c: Ditto.
7388         * libc/machine/spu/vfscanf.c: Ditto.
7389         * libc/machine/spu/vprintf.c: Ditto.
7390         * libc/machine/spu/vscanf.c: Ditto.
7391         * libc/machine/spu/vsnprintf.c: Ditto.
7392         * libc/machine/spu/vsprintf.c: Ditto.
7393         * libc/machine/spu/vsscanf.c: Ditto.
7394
7395 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
7396
7397         * libc/include/stdio.h: Add declaration for vsiprintf.
7398
7399 2007-02-14  Patrick Mansfield <patmans@us.ibm.com>
7400
7401         Add a floating point environment for SPU (cell):
7402
7403         * configure.host: add libm_machine_dir=spu.
7404         * libm/machine/configure: Add spu.
7405         * libm/machine/configure.in: regenerated with spu added.
7406         * libc/machine/spu/include/fenv.h: New file.
7407         * libc/machine/spu/sys/fenv.h: Ditto.
7408         * libm/machine/spu/Makefile.am: Ditto.
7409         * libm/machine/spu/Makefile.in: Ditto.
7410         * libm/machine/spu/aclocal.m4: Ditto.
7411         * libm/machine/spu/configure: Ditto.
7412         * libm/machine/spu/configure.in: Ditto.
7413         * libm/machine/spu/fe_dfl_env.c: Ditto.
7414         * libm/machine/spu/feclearexcept.c: Ditto.
7415         * libm/machine/spu/fegetenv.c: Ditto.
7416         * libm/machine/spu/fegetexceptflag.c: Ditto.
7417         * libm/machine/spu/fegetround.c: Ditto.
7418         * libm/machine/spu/feholdexcept.c: Ditto.
7419         * libm/machine/spu/feraiseexcept.c: Ditto.
7420         * libm/machine/spu/fesetenv.c: Ditto.
7421         * libm/machine/spu/fesetexceptflag.c: Ditto.
7422         * libm/machine/spu/fesetround.c: Ditto.
7423         * libm/machine/spu/fetestexcept.c: Ditto.
7424         * libm/machine/spu/feupdateenv.c: Ditto.
7425         * libm/machine/spu/headers/feclearexcept.h: Ditto.
7426         * libm/machine/spu/headers/fefpscr.h: Ditto.
7427         * libm/machine/spu/headers/fegetenv.h: Ditto.
7428         * libm/machine/spu/headers/fegetexceptflag.h: Ditto.
7429         * libm/machine/spu/headers/fegetround.h: Ditto.
7430         * libm/machine/spu/headers/feholdexcept.h: Ditto.
7431         * libm/machine/spu/headers/feraiseexcept.h: Ditto.
7432         * libm/machine/spu/headers/fesetenv.h: Ditto.
7433         * libm/machine/spu/headers/fesetexceptflag.h: Ditto.
7434         * libm/machine/spu/headers/fesetround.h: Ditto.
7435         * libm/machine/spu/headers/fetestexcept.h: Ditto.
7436         * libm/machine/spu/headers/feupdateenv.h: Ditto.
7437
7438 2007-02-14  Corinna Vinschen  <corinna@vinschen.de>
7439
7440         * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
7441         Cygwin.
7442
7443 2007-02-08  Corinna Vinschen  <corinna@vinschen.de>
7444
7445         * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
7446         Cygwin.  Fix value of _POSIX_SEMAPHORES.  Fix formatting.
7447
7448 2007-02-07  Corinna Vinschen  <corinna@vinschen.de>
7449
7450         * libc/include/sys/features.h: Add definition of all supported
7451         _POSIX_xxx values for Cygwin.
7452         * libc/include/sys/types.h (pthread_rwlock_t): Omit definition
7453         on Cygwin.
7454         (pthread_rwlockattr_t): Ditto.
7455         * libc/include/sys/unistd.h: Define all _SC_xxx values as
7456         required by SUSv3.  Unify formatting.
7457
7458 2007-02-02  Ralf Corsépius <ralf.corsepius@rtems.org>
7459
7460         * libc/include/sys/errno.h: Add ECANCELED.
7461
7462 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
7463             Kazunori Asayama <asayama@sm.sony.co.jp>
7464
7465         * libc/machine/spu/Makefile.am: Add objects.
7466         * libc/machine/spu/Makefile.in: Regenerated.
7467         * libc/machine/spu/vsscanf.c: New file. Add a stdio function
7468         implementation.
7469         * libc/machine/spu/snprintf.c: Ditto.
7470         * libc/machine/spu/sprintf.c: Ditto.
7471         * libc/machine/spu/sscanf.c: Ditto.
7472         * libc/machine/spu/remove.c: Ditto.
7473         * libc/machine/spu/rename.c: Ditto.
7474         * libc/machine/spu/tmpnam.c: Ditto.
7475         * libc/machine/spu/vsnprintf.c: Add initialization routine of
7476         stdio stuffs.
7477         * libc/machine/spu/vsprintf.c: Ditto.
7478
7479 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
7480             Kazunori Asayama <asayama@sm.sony.co.jp>
7481
7482         * configure.host: Enable SPU specific stdio directory.
7483         * libc/machine/spu/Makefile.am: Add objects.
7484         * libc/machine/spu/Makefile.in: Regenerated.
7485         * libc/machine/spu/c99ppe.h: Add macros and function
7486         declarations to initialize SPU specific stdio stuffs.
7487         * libc/machine/spu/stdio.c: Add functions to manage Cell SPU
7488         specific FILE structures.
7489         * libc/machine/spu/perror.c: Add initialization routine of
7490         stdio stuffs.
7491         * libc/machine/spu/printf.c: Ditto.
7492         * libc/machine/spu/putchar.c: Ditto.
7493         * libc/machine/spu/puts.c: Ditto.
7494         * libc/machine/spu/vprintf.c: Ditto.
7495         * libc/machine/spu/clearerr.c: New file. Add a stdio function
7496         implementation.
7497         * libc/machine/spu/feof.c: Ditto.
7498         * libc/machine/spu/ferror.c: Ditto.
7499         * libc/machine/spu/fileno.c: Ditto.
7500         * libc/machine/spu/fopen.c: Ditto.
7501         * libc/machine/spu/fclose.c: Ditto.
7502         * libc/machine/spu/freopen.c: Ditto.
7503         * libc/machine/spu/fflush.c: Ditto.
7504         * libc/machine/spu/fseek.c: Ditto.
7505         * libc/machine/spu/ftell.c: Ditto.
7506         * libc/machine/spu/rewind.c: Ditto.
7507         * libc/machine/spu/fgetpos.c: Ditto.
7508         * libc/machine/spu/fsetpos.c: Ditto.
7509         * libc/machine/spu/fread.c: Ditto.
7510         * libc/machine/spu/fwrite.c: Ditto.
7511         * libc/machine/spu/getc.c: Ditto.
7512         * libc/machine/spu/getchar.c: Ditto.
7513         * libc/machine/spu/gets.c: Ditto.
7514         * libc/machine/spu/fgetc.c: Ditto.
7515         * libc/machine/spu/fgets.c: Ditto.
7516         * libc/machine/spu/ungetc.c: Ditto.
7517         * libc/machine/spu/putc.c: Ditto.
7518         * libc/machine/spu/fputc.c: Ditto.
7519         * libc/machine/spu/fputs.c: Ditto.
7520         * libc/machine/spu/vfprintf.c: Ditto.
7521         * libc/machine/spu/vfscanf.c: Ditto.
7522         * libc/machine/spu/fprintf.c: Ditto.
7523         * libc/machine/spu/fscanf.c: Ditto.
7524         * libc/machine/spu/scanf.c: Ditto.
7525         * libc/machine/spu/vscanf.c: Ditto.
7526         * libc/machine/spu/setbuf.c: Ditto.
7527         * libc/machine/spu/setvbuf.c: Ditto.
7528         * libc/machine/spu/tmpfile.c: Ditto.
7529
7530 2007-02-01  Jeff Johnston  <jjohnstn@redhat.com>
7531
7532         * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
7533         * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
7534         around stdio macros that manipulate fields in the normal file
7535         structure.
7536         * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
7537         <sys/custom_file.h> to define custom FILE structure.
7538         * libc/include/sys/custom_file.h: New default header file
7539         that generates error if not overridden when __CUSTOM_FILE_IO__ set.
7540         * libc/machine/spu/sys/custom_file.h: New file.
7541
7542 2007-01-31  Kazunori Asayama <asayama@sm.sony.co.jp>
7543
7544         * configure.host: Define stdio directory as a variable.
7545         * libc/Makefile.am: Define stdio related names
7546         as macros.
7547         * libc/configure.in: Add detection routine of stdio directory.
7548         * libc/Makefile.in: Regenerated.
7549         * libc/configure: Ditto.
7550         * libc/argz/Makefile.in: Ditto.
7551         * libc/ctype/Makefile.in: Ditto.
7552         * libc/errno/Makefile.in: Ditto.
7553         * libc/iconv/Makefile.in: Ditto.
7554         * libc/iconv/ccs/Makefile.in: Ditto.
7555         * libc/iconv/ccs/binary/Makefile.in: Ditto.
7556         * libc/iconv/ces/Makefile.in: Ditto.
7557         * libc/iconv/lib/Makefile.in: Ditto.
7558         * libc/locale/Makefile.in: Ditto.
7559         * libc/misc/Makefile.in: Ditto.
7560         * libc/posix/Makefile.in: Ditto.
7561         * libc/reent/Makefile.in: Ditto.
7562         * libc/search/Makefile.in: Ditto.
7563         * libc/signal/Makefile.in: Ditto.
7564         * libc/stdio/Makefile.in: Ditto.
7565         * libc/stdio64/Makefile.in: Ditto.
7566         * libc/stdlib/Makefile.in: Ditto.
7567         * libc/string/Makefile.in: Ditto.
7568         * libc/syscalls/Makefile.in: Ditto.
7569         * libc/time/Makefile.in: Ditto.
7570         * libc/unix/Makefile.in: Ditto.
7571
7572 2007-01-30  Ben Elliston  <bje@au.ibm.com>
7573
7574         * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
7575         fmt member.
7576         * libc/machine/spu/printf.c (c99_printf_t): Likewise.
7577         (printf): Pass fmt to va_start to suppress a warning.
7578
7579         * libc/search/hash.c (init_hash): Make `info' parameter const.
7580
7581 2007-01-19  Kazunori Asayama <asayama@sm.sony.co.jp>
7582
7583         * libc/machine/spu/c99ppe.h: Replace vector with __vector.
7584         * libc/machine/spu/vec_literal.h: Ditto.
7585         * libc/machine/spu/strncmp.c: Ditto.
7586
7587 2007-01-15  Joseph Myers  <joseph@codesourcery.com>
7588             Kazu Hirata  <kazu@codesourcery.com>
7589
7590         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
7591         for E500V1 and E500V2.
7592
7593 2007-01-11  Jeff Johnston  <jjohnstn@redhat.com>
7594
7595         * libm/configure.in: Always configure machine directory.
7596         * libm/Makefile.am: Make machine subdirectory part of SUBDIRS
7597         unconditionally.
7598         * libm/configure: Regenerated.
7599         * libm/Makefile.in: Ditto.
7600         * libm/*/Makefile.in: Ditto.
7601
7602 2007-01-05  Brian Ford  <Brian.Ford@FlightSafety.com>
7603
7604         * configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
7605
7606 2007-01-02  Ben Elliston  <bje@au.ibm.com>
7607
7608         * doc/makedoc.c: Include <stdlib.h>.
7609         (malloc, realloc): Remove extern declarations.
7610
7611 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
7612
7613         * NEWS: Update with 1.15.0 info.
7614         * README: Ditto.
7615         * acinclude.m4: Change version number to 1.15.0.
7616         * aclocal.m4: Regenerated.
7617         * configure: Ditto.
7618         * doc/aclocal.m4: Ditto.
7619         * doc/configure: Ditto.
7620         * libc/*/aclocal.m4: Ditto.
7621         * libc/*/configure: Ditto.
7622         * libc/libc.texinfo: Ditto.
7623         * libm/*/aclocal.m4: Ditto.
7624         * libm/*/configure: Ditto.
7625         * libm/libm.texinfo: Ditto.
7626         * libc/sys/linux/shared.ld: Add VERS_1.15.
7627
7628 2006-12-18  Kazu Hirata  <kazu@codesourcery.com>
7629
7630         Merge from newlib-csl-20060320-branch:
7631         2006-12-01  Nathan Sidwell  <nathan@codesourcery.com>
7632                     Kazu Hirata  <kazu@codesourcery.com>
7633
7634         * configure.host: Recognize fido.
7635
7636 2006-12-18  Joel Schopp <jschopp@austin.ibm.com>
7637
7638         * libc/machine/spu/c99ppe.h: New file
7639         * libc/machine/spu/perror.c: New file to override libc/stdio version.
7640         * libc/machine/spu/printf.c: New file
7641         * libc/machine/spu/putchar.c: New file
7642         * libc/machine/spu/puts.c: New file
7643         * libc/machine/spu/vprintf.c: New file
7644         * libc/machine/spu/vsnprintf.c: New file
7645         * libc/machine/spu/vsprintf.c: New file
7646         * libc/machine/spu/Makefile.am: Add new targets.
7647         * libc/machine/spu/Makefile.in: Regenerated.
7648
7649 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
7650
7651         * aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
7652         * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
7653
7654 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
7655
7656         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
7657         2.6.5 version of Doug Lea's malloc which is the basis of
7658         this code.
7659
7660 2006-12-18  Kazunori Asayama <asayama@sm.sony.co.jp>
7661
7662         * libc/include/machine/setjmp.h[__SPU__]: Replace vector with __vector.
7663
7664 2006-12-14  Jeff Johnston  <jjohnstn@redhat.com>
7665             Eric Blake  <ebb9@byu.net>
7666
7667         * libc/stdio/fflush.c (fflush): On seekable streams, always flush
7668         read but unused data.
7669         * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
7670         even read streams may have side effects that must happen.
7671
7672 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
7673
7674         * libc/machine/spu/setjmp.S: Fix to handle registers past 115
7675         correctly.
7676
7677 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
7678
7679         * libc/include/alloca.h: Add undef alloca to work with xlc.
7680
7681 2006-12-12  Joel Schopp <jschopp@austin.ibm.com>
7682
7683         * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
7684         cell spu.
7685
7686 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
7687
7688         * libc/machine/spu/strncpy.c: Add padding.
7689
7690 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
7691
7692         * testsuite/newlib.string/tstring.c:
7693
7694 2006-12-01  Kazunori Asayama  <asayama@sm.sony.co.jp>
7695
7696         * libc/machine/spu/strchr.c: Fix mask for misaligned string.
7697         * libc/machine/spu/strrchr.c: Ditto.
7698
7699 2006-11-30  Lev Bishop  <lev.bishop@gmail.com>
7700
7701         * libc/include/math.h: Allow C99 functions/macros to be
7702         defined for C++ even when __STRICT_ANSI__.
7703
7704 2006-11-29  Jeff Johnston  <jjohnstn@redhat.com>
7705
7706         * libc/stdio/makebuf.c (__smakebuf): If dealing with
7707         an asprintf-family buffer, make the default initial size 64.
7708
7709 2006-11-29  Eric Blake  <ebb9@byu.net>
7710
7711         * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
7712         asprintf, as well as quadratic realloc behavior.
7713
7714 2006-11-29  Kazunori Asayama  <asayama@sm.sony.co.jpi
7715
7716         * libc/machine/spu/memset.c: Fix type of explicit cast.
7717         * libc/machine/spu/strncmp.c: Add explicit cast.
7718         * libc/machine/spu/strrchr.c: Ditto.
7719         * libc/machine/spu/strspn.c: Ditto.
7720
7721 2006-11-22  Luca Barbato  <lu_zero@gentoo.org>
7722
7723         * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
7724         * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
7725         * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
7726         * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
7727         * libc/machine/spu/strncat.c: Explicit cast.
7728         * libc/machine/spu/strncmp.c: Use spu_splats.
7729         * libc/machine/spu/strncpy.c: Explicit cast.
7730         * libc/machine/spu/strrchr.c: Use spu_splats.
7731         * libc/machine/spu/strspn.c: Use spu_splats.
7732
7733 2006-11-15  Till Straumann  <strauman@slac.stanford.edu>
7734
7735         * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
7736
7737 2006-11-14  Eric Blake  <ebb9@byu.net>
7738
7739         * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
7740         (chclass): ' is a flag.  j, t, and z are modifiers.
7741
7742 2006-11-08  Jie Zhang  <jie.zhang@analog.com>
7743
7744         * configure.host: Add support for bfin.
7745         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
7746         * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
7747         * libc/machine/bfin/aclocal.m4: Generate.
7748         * libc/machine/bfin/configure.in: New.
7749         * libc/machine/bfin/configure: Generate.
7750         * libc/machine/bfin/Makefile.am: New.
7751         * libc/machine/bfin/Makefile.in: Generate.
7752         * libc/machine/bfin/setjmp.S: New.
7753         * libc/machine/bfin/longjmp.S: New.
7754         * libc/machine/configure.in: Add bfin support.
7755         * libc/machine/configure: Generate.
7756
7757 2006-11-07  Corinna Vinschen  <corinna@vinschen.de>
7758
7759         * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
7760         (_PC_FILESIZEBITS): Add definition.
7761         (_PC_2_SYMLINKS): Ditto.
7762         (_PC_SYMLINK_MAX): Ditto.
7763
7764 2006-10-27  Joel Schopp  <jschopp@austin.ibm.com>
7765
7766         * libc/machine/spu/memcpy.c: Override generic function with vectorized
7767         version optimized for the cell spu.
7768         * libc/machine/spu/memmove.c: Ditto.
7769         * libc/machine/spu/memset.c: Ditto.
7770         * libc/machine/spu/strcat.c: Ditto.
7771         * libc/machine/spu/strchr.c: Ditto.
7772         * libc/machine/spu/strcmp.c: Ditto.
7773         * libc/machine/spu/strcpy.c: Ditto.
7774         * libc/machine/spu/strcspn.c: Ditto.
7775         * libc/machine/spu/strlen.c: Ditto.
7776         * libc/machine/spu/strncat.c: Ditto.
7777         * libc/machine/spu/strncmp.c: Ditto.
7778         * libc/machine/spu/strncpy.c: Ditto.
7779         * libc/machine/spu/strpbrk.c: Ditto.
7780         * libc/machine/spu/strrchr.c: Ditto.
7781         * libc/machine/spu/strspn.c: Ditto.
7782         * libc/machine/spu/strxfrm.c: Ditto.
7783         * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
7784         removing altivec style initializers.
7785         * libc/machine/spu/Makefile.am: Add new files to list so they build
7786         * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
7787
7788 2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>
7789
7790         * README: Add a brief section on how to regenerate
7791         configuration files in newlib.
7792
7793 2006-10-25  Vladimir Prus  <vladimir@codesourcery.com>
7794
7795         * libc/include/math.h: (exception): Add a comment
7796         telling fixincludes that we handle C vs. C++ issue.
7797
7798 2006-10-11  Yang Tse  <yangsita@gmail.com>
7799
7800         * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
7801         braced-groups.
7802
7803 2006-10-11  Corinna Vinschen  <corinna@vinschen.de>
7804
7805         * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
7806
7807 2006-09-26  Jeff Johnston  <jjohnstn@redhat.com>
7808
7809         * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
7810         for clearerr, feof, or fileno.
7811         * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
7812         the dummy std stream scheme to use pointers to const external
7813         fake files, one for each standard stream.
7814         * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
7815         argument.  For _REENT_SMALL, reset the file pointer if it
7816         matches one of the fake std stream pointers.
7817         * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
7818         argument.
7819         * libc/stdio/fclose.c: Ditto.
7820         * libc/stdio/feof.c: Ditto.
7821         * libc/stdio/ferror.c: Ditto.
7822         * libc/stdio/fflush.c: Ditto.
7823         * libc/stdio/fgetc.c: Ditto.
7824         * libc/stdio/fgets.c: Ditto.
7825         * libc/stdio/fileno.c: Ditto.
7826         * libc/stdio/findfp.c: Ditto.
7827         * libc/stdio/fputc.c: Ditto.
7828         * libc/stdio/fputs.c: Ditto.
7829         * libc/stdio/fread.c: Ditto.
7830         * libc/stdio/freopen.c: Ditto.
7831         * libc/stdio/fseek.c: Ditto.
7832         * libc/stdio/ftell.c: Ditto.
7833         * libc/stdio/fwrite.c: Ditto.
7834         * libc/stdio/getc.c: Ditto.
7835         * libc/stdio/getdelim.c: Ditto.
7836         * libc/stdio/putc.c: Ditto.
7837         * libc/stdio/refill.c: Ditto.
7838         * libc/stdio/setvbuf.c: Ditto.
7839         * libc/stdio/ungetc.c: Ditto.
7840         * libc/stdio/vfprintf.c: Ditto.
7841         * libc/stdio/vfscanf.c: Ditto.
7842         * libc/stdio/wbuf.c: Ditto.: Ditto.
7843         * libc/stdio/wsetup.c: Ditto.
7844         * libc/stdio64/freopen64.c: Ditto.
7845         * libc/stdio64/fseeko64.c: Ditto.
7846         * libc/stdio64/ftello64.c: Ditto.
7847         * libc/machine/powerpc/vfprintf.c: Ditto.
7848         * libc/machine/powerpc/vfscanf.c: Ditto.
7849
7850 2006-09-22  Paul Brook  <paul@codesourcery.com>
7851
7852         * libc/include/sys/reent.h: Define and use __reent_assert.
7853
7854 2006-09-13  Joel Sherrill <joel@oarcorp.com>
7855
7856         * libc/include/pthread.h: Add pthread barriers,
7857         rwlocks, and spinlocks.  Change const to
7858         _CONST and prefix parameter names with
7859         an underscore.
7860         * libc/include/sys/types.h: Add id and attribute
7861         types for barriers, wrlocks, and spinlocks.
7862         * libc/include/sys/features.h: Enable barriers,
7863         wrlocks, and spinlocks for RTEMS.
7864
7865 2006-09-13  Patrick Mansfield <patmans@us.ibm.com>
7866
7867         * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
7868         supposed to be writable.
7869         * libm/common/s_lib_ver.c: Ditto.
7870
7871 2006-09-12  Paul Brook  <paul@codesourcery.com>
7872
7873         * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
7874
7875 2006-09-07  Masaki Muranaka  <monaka@monami-software.com>
7876
7877
7878         * libc/machine/xstormy16/Makefile.am:
7879         Add $(lpfx) prefix to LIBADD objects.
7880         lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
7881         * libc/machine/xstormy16/Makefile.in: Regenerated.
7882
7883 2006-09-06  Eric Blake  <ebb9@byu.net>
7884
7885         * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
7886         't', and 'z' modifiers.
7887
7888 2006-09-01  Kazu Hirata  <kazu@codesourcery.com>
7889
7890         Merge from newlib-csl-20060320-branch:
7891         2006-05-22  Sandra Loosemore <sandra@codesourcery.com>
7892
7893         * configure.host: Tell it we have _rename and _system when
7894         building m68k-unknown-elf.
7895
7896 2006-08-29  Paul Brook  <paul@codesourcery.com>
7897
7898         * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
7899
7900 2006-08-27  Joel Sherrill <joel.sherrill@OARcorp.com>
7901
7902         * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
7903         BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
7904         This is needed to build all AVR and H8300 RTEMS multilib variants.
7905
7906 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
7907
7908         * libc/machine/configure.in: Add configuration for SPU.
7909         * libc/machine/configure: Regenerated.
7910         * libc/machine/spu/memcpy.c: Include string.h.
7911
7912 2006-08-22  Eric Blake  <ebb9@byu.net>
7913
7914         * libc/posix/popen.c (popen): Don't close output end of pipe in
7915         child if stdout was closed on entry.
7916         [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
7917
7918 2006-08-19  Ramana Radhakrishnan  <ramana.r@gmail.com>
7919
7920         * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
7921         line.
7922
7923 2006-08-17  Brian Ford  <Brian.Ford@FlightSafety.com>
7924
7925         * libc/time/gmtime.c: Correct man page; clock is not a
7926         local time and no conversion occurs.
7927
7928 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
7929
7930         * configure.host (newlib_cflags) [spu]: Add special compiler
7931         options to reduce size.
7932
7933 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
7934
7935         * configure.host: Add spu support.
7936         * libc/include/stdint.h: Ditto.
7937         * libc/include/machine/ieeefp.h: Ditto.
7938         * libc/include/machine/setjmp.h: Ditto.
7939         * libc/include/sys/config.h: Ditto.
7940         * libc/include/sys/types.h: Ditto.
7941         * libc/machine/spu/Makefile.am: New file.
7942         * libc/machine/spu/Makefile.in: Ditto.
7943         * libc/machine/spu/aclocal.m4: Ditto.
7944         * libc/machine/spu/configure: Ditto.
7945         * libc/machine/spu/configure.in: Ditto.
7946         * libc/machine/spu/memcpy.c: Ditto.
7947         * libc/machine/spu/setjmp.S: Ditto.
7948
7949 2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
7950
7951         * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
7952         properly.
7953
7954 2006-08-01  Jeff Johnston  <jjohnstn@redhat.com>
7955
7956         * libc/Makefile.am: Add libc_TEXINFOS dependency on
7957         generated .texi files.
7958         * libm/Makefile.am: Add libm_TEXINFOS dependency on
7959         generated .texi files.
7960         * libc/Makefile.in: Regenerated.
7961         * libm/Makefile.in: Ditto.
7962
7963 2006-08-01  Thiemo Seufer  <ths@mips.com>
7964             Nigel Stephens  <nigel@mips.com>
7965
7966         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
7967         define this to force _impure_ptr to live in the .sdata section.
7968
7969 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
7970
7971         * acinclude.m4: Check for readelf tool.
7972         * configure.in: Use ${READELF} instead of hard-coding.
7973         * Regenerate all aclocal.m4, Makefile.in, and configure files.
7974
7975 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
7976
7977         * libc/sys/linux/mmap.c: Remove include of sys/mman.h
7978         to avoid conflict with newer glibc's revision of mremap.
7979
7980 2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>
7981
7982         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
7983         floating-point format support.  Also redefine
7984         dword0 and dword1 macros.
7985         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
7986         to prevent setting dword1 which is an rvalue only.
7987
7988 2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>
7989
7990         * libc/stdlib/Makefile.am: Add new gdtoa routines.
7991         * libc/stdlib/Makefile.in: Regenerated.
7992         * libc/stdlib/gd_qnan.h: New file.
7993         * libc/stdlib/gdtoa-gethex.c: Ditto.
7994         * libc/stdlib/gdtoa-hexnan.c: Ditto.
7995         * libc/stdlib/gdtoa.h: Ditto.
7996         * libc/stdlib/mprec.c: Add new helper routines needed by
7997         the new gdtoa code.
7998         * libc/stdlib/mprec.h: Integrate some defines and prototypes
7999         used by gdtoa routines here.
8000         * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
8001         which adds C99 support such as nan, inf, and hexadecimal input
8002         format.
8003
8004 2006-06-15  Corinna Vinschen  <corinna@vinschen.de>
8005
8006         * libc/include/stdio.h (__sgetc_r): Fix typo.
8007         * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
8008         * libc/stdio/rget.c (__srbuf): Reinstantiate.
8009         * libc/stdio/wbuf.c (__swbuf): Ditto.
8010
8011 2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>
8012
8013         * libc/include/stdio.h: Add new reentrant I/O prototypes for
8014         read/write functions.  Change getc/putc macros to have reentrant underlying
8015         macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
8016         * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
8017         new reentrant I/O functions/macros for reading/writing.
8018         * libc/stdio/fgets.c: Ditto.
8019         * libc/stdio/fputc.c: Ditto.
8020         * libc/stdio/fputs.c: Ditto.
8021         * libc/stdio/fread.c: Ditto.
8022         * libc/stdio/fseek.c: Ditto.
8023         * libc/stdio64/fseeko64.c: Ditto.
8024         * libc/stdio/fwrite.c: Ditto.
8025         * libc/stdio/getc.c: Ditto.
8026         * libc/stdio/getc_u.c: Ditto.
8027         * libc/stdio/getchar.c: Ditto.
8028         * libc/stdio/getchar_u.c: Ditto.
8029         * libc/stdio/putc.c: Ditto.
8030         * libc/stdio/putc_u.c: Ditto.
8031         * libc/stdio/putchar.c: Ditto.
8032         * libc/stdio/puts.c: Ditto.
8033         * libc/stdio/vfprintf.c: Ditto.
8034         * libc/stdio/vfscanf.c: Ditto.
8035         * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
8036         Change all previous callers of __sfvwrite.  Set errno to EBADF and
8037         set error flag on if attempt is made to write to file that does not
8038         allow writing.
8039         * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
8040         * libc/stdio/local.h: Ditto.
8041         * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
8042         Set errno to EBADF and the error flag on if attempt is made to
8043         read unreadable file.  Change all previous callers of __srefill.
8044         * libc/stdio/rget.c
8045         * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
8046         all previous callers of __swbuf.
8047         * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
8048         huge value macros are already defined correctly for i386 by <math.h>.
8049
8050 2006-06-13  Sandra Loosemore <sandra@codesourcery.com>
8051
8052         * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
8053         Make them do something useful in the ARM_RDI_MONITOR case.
8054
8055 2006-06-07  Fred Fish  <fnf@specifix.com>
8056
8057         * libc/search/hash_bigkey.c (MIN,MAX): Remove
8058         defines that are already supplied by <sys/param.h>.
8059
8060 2006-06-07  Fred Fish  <fnf@specifix.com>
8061
8062         * configure.host: Remove references to HAVE_GETTIMEOFDAY.
8063
8064 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
8065
8066         * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
8067         usleep.c.
8068         * libc/posix/Makefile.in: Regenerate.
8069         * libc/posix/sleep.c: New file.
8070         * libc/posix/usleep.c: Ditto.
8071
8072 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
8073
8074         * configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
8075         -DABORT_PROVIDED flag.
8076         * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
8077         * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
8078
8079 2006-06-05  Jeff Johnston  <jjohnstn@redhat.com>
8080
8081         * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
8082         * Makefile.in: Regenerated.
8083         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
8084         extraneous CFLAGS reference now that CCASFLAGS are being extended
8085         properly via multilib.
8086         * libc/machine/sh/Makefile.in: Regenerated.
8087
8088 2006-06-02  Shaun Jackman  <sjackman@gmail.com>
8089
8090         * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
8091         sigismember.
8092
8093 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
8094
8095         * libc/misc/dprintf.c: Removed.
8096         * libc/misc/__dprintf.c: Renamed from dprintf.c.
8097         * libc/misc/Makefile.am: Changed appropriately for rename.
8098         * libc/misc/Makefile.in: Regenerated.
8099
8100 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
8101
8102         * libc/include/stdio.h: Protect dprintf prototype
8103         with #ifndef dprintf so as to not interfere with
8104         historical code defining their own dprintf macro.
8105
8106 2006-05-18  Jeff Johnston  <jjohnstn@redhat.com>
8107
8108         * libc/include/stdio.h: Add prototypes for fiscanf,
8109         iscanf, and siscanf.
8110
8111 2006-05-11  J"orn Rennecke <joern.rennecke@st.com>
8112
8113         * acinclude.m4 (_NEWLIB_VERSION): Rename to:
8114         (DEF_NEWLIB_VERSION).
8115         * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
8116         * configure: Regenerate.
8117
8118 2006-05-09  Jeff Johnston  <jjohnstn@redhat.com>
8119
8120         * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
8121         lib_a_SOURCES.
8122         * libc/ctype/Makefile.in: Regenerated.
8123
8124 2006-05-09  Kazu Hirata  <kazu@codesourcery.com>
8125
8126         * libc/machine/arm/Makefile.am: Fix a typo.
8127         * libc/machine/arm/Makefile.in: Regenerated.
8128
8129 2006-05-08  J"orn Rennecke <joern.rennecke@st.com>
8130
8131         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
8132         * libc/machine/sh/Makefile.in: Regenerate.
8133
8134 2006-05-03  J"orn Rennecke <joern.rennecke@st.com>
8135
8136         * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
8137         * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
8138
8139 2006-05-02  Jeff Johnston  <jjohnstn@redhat.com>
8140
8141         * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
8142         .s.
8143         * libc/sys/sysnec810/Makefile.in: Regenerated.
8144         * libc/sys/sysnec810/crt0.S: Renamed from .s file.
8145         * libc/sys/sysnec810/io.S: Ditto.
8146         * libc/sys/sysnec810/crt0.s: Renamed to .S file.
8147         * libc/sys/sysnec810/io.s: Ditto.
8148
8149 2006-05-01  Jeff Johnston  <jjohnstn@redhat.com>
8150
8151         * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
8152         be specified instead of object, do so.
8153         * libc/ctype/Makefile.am: Ditto.
8154         * libc/iconv/ccs/Makefile.am: Ditto.
8155         * libc/iconv/ces/Makefile.am: Ditto.
8156         * libc/iconv/lib/Makefile.am: Ditto.
8157         * libc/locale/Makefile.am: Ditto.
8158         * libc/posix/Makefile.am: Ditto.
8159         * libc/reent/Makefile.am: Ditto.
8160         * libc/search/Makefile.am: Ditto.
8161         * libc/stdio/Makefile.am: Ditto.
8162         * libc/stdio64/Makefile.am: Ditto.
8163         * libc/stdlib/Makefile.am: Ditto.
8164         * libc/string/Makefile.am: Ditto.
8165         * libc/syscalls/Makefile.am: Ditto.
8166         * libc/unix/Makefile.am: Ditto.
8167         * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
8168         prefix added automatically.  Any specified rules must use $(lpfx) for
8169         object file names.
8170         * libc/machine/arm/Makefile.am: Ditto.
8171         * libc/machine/cris/Makefile.am: Ditto.
8172         * libc/machine/crx/Makefile.am: Ditto.
8173         * libc/machine/d10v/Makefile.am: Ditto.
8174         * libc/machine/d30v/Makefile.am: Ditto.
8175         * libc/machine/fr30/Makefile.am: Ditto.
8176         * libc/machine/frv/Makefile.am: Ditto.
8177         * libc/machine/h8300/Makefile.am: Ditto.
8178         * libc/machine/h8500/Makefile.am: Ditto.
8179         * libc/machine/hppa/Makefile.am: Ditto.
8180         * libc/machine/i386/Makefile.am: Ditto.
8181         * libc/machine/i960/Makefile.am: Ditto.
8182         * libc/machine/iq2000/Makefile.am: Ditto.
8183         * libc/machine/m32c/Makefile.am: Ditto.
8184         * libc/machine/m32r/Makefile.am: Ditto.
8185         * libc/machine/m68hc11/Makefile.am: Ditto.
8186         * libc/machine/m68k/Makefile.am: Ditto.
8187         * libc/machine/m88k/Makefile.am: Ditto.
8188         * libc/machine/mips/Makefile.am: Ditto.
8189         * libc/machine/mn10200/Makefile.am: Ditto.
8190         * libc/machine/mn10300/Makefile.am: Ditto.
8191         * libc/machine/mt/Makefile.am: Ditto.
8192         * libc/machine/necv70/Makefile.am: Ditto.
8193         * libc/machine/powerpc/Makefile.am: Ditto.
8194         * libc/machine/sh/Makefile.am: Ditto.
8195         * libc/machine/sh/Makefile.in: Ditto.
8196         * libc/machine/sparc/Makefile.am: Ditto.
8197         * libc/machine/tic4x/Makefile.am: Ditto.
8198         * libc/machine/tic80/Makefile.am: Ditto.
8199         * libc/machine/v850/Makefile.am: Ditto.
8200         * libc/machine/w65/Makefile.am: Ditto.
8201         * libc/machine/xscale/Makefile.am: Ditto.
8202         * libc/machine/xstormy16/Makefile.am: Ditto.
8203         * libc/machine/z8k/Makefile.am: Ditto.
8204         * libc/sys/a29khif/Makefile.am: Ditto.
8205         * libc/sys/arm/Makefile.am: Ditto.
8206         * libc/sys/d10v/Makefile.am: Ditto.
8207         * libc/sys/h8300hms/Makefile.am: Ditto.
8208         * libc/sys/h8500hms/Makefile.am: Ditto.
8209         * libc/sys/linux/Makefile.am: Ditto.
8210         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
8211         * libc/sys/linux/net/Makefile.am: Ditto.
8212         * libc/sys/linux/stdlib/Makefile.am: Ditto.
8213         * libc/sys/m88kbug/Makefile.am: Ditto.
8214         * libc/sys/mmixware/Makefile.am: Ditto.
8215         * libc/sys/rdos/Makefile.am: Ditto.
8216         * libc/sys/rtems/Makefile.am: Ditto.
8217         * libc/sys/sh/Makefile.am: Ditto.
8218         * libc/sys/sun4/Makefile.am: Ditto.
8219         * libc/sys/sysmec/Makefile.am: Ditto.
8220         * libc/sys/sysnec810/Makefile.am: Ditto.
8221         * libc/sys/sysnecv850/Makefile.am: Ditto.
8222         * libc/sys/sysvi386/Makefile.am: Ditto.
8223         * libc/sys/sysvnecv70/Makefile.am: Ditto.
8224         * libc/sys/tic80/Makefile.am: Ditto.
8225         * libc/sys/w65/Makefile.am: Ditto.
8226         * libc/sys/z8ksim/Makefile.am: Ditto.
8227         * libc/machine/necv70/fastmath.S: Renamed from .s file.
8228         * libc/machine/necv70/setjmp.S: Ditto.
8229         * libc/machine/necv70/fastmath.s: Removed.
8230         * libc/machine/necv70/setjmp.s: Ditto.
8231         * libc/machine/w65/*.S: New files renamed from .s files.
8232         * libc/machine/w65/*.s: Renamed and removed.
8233         * libc/sys/a29khif/*.S: New files renamed from .s files.
8234         * libc/sys/a29khif/*.s: Renamed and removed.
8235         * libc/sys/sysvi386/*.S: New files renamed from .s files.
8236         * libc/sys/sysvi386/*.s: Renamed and removed.
8237         * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
8238         * libc/sys/sysvnecv70/*.s: Renamed and removed.
8239         * libc/*Makefile.in: Regenerated as appropriate.
8240
8241 2006-04-24  DJ Delorie  <dj@redhat.com>
8242
8243         * libc/machine/sh/configure.in: Avoid link tests.
8244         * libc/machine/sh/configure: Regenerate.
8245
8246 2006-04-18  Jeff Johnston  <jjohnstn@redhat.com>
8247
8248         * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
8249         (sigaddset, sigemptyset): Add return code.
8250
8251 2006-04-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
8252
8253         * acinclude.m4: New _NEWLIB_VERSION.
8254         * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
8255         Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
8256         Use new form of AC_INIT_AUTOMAKE.
8257         * configure.in: AC_PREREQ(2.59).
8258         Use autoconf-2.5.x version of AC_INIT.
8259         Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
8260         autoconf-2.13's AC_OUTPUT.
8261         * libm/configure.in: Ditto.
8262         * libm/machine/configure.in: Ditto.
8263         * libm/machine/i386/configure.in: Ditto.
8264         * libc/configure.in: Ditto.
8265         * libc/machine/a29k/configure.in: Ditto.
8266         * libc/machine/arm/configure.in: Ditto.
8267         * libc/machine/configure.in: Ditto.
8268         * libc/machine/mn10300/configure.in: Ditto.
8269         * libc/machine/powerpc/configure.in: Ditto.
8270         * libc/machine/z8k/configure.in: Ditto.
8271         * libc/machine/h8300/configure.in: Ditto.
8272         * libc/machine/mips/configure.in: Ditto.
8273         * libc/machine/crx/configure.in: Ditto.
8274         * libc/machine/m68hc11/configure.in: Ditto.
8275         * libc/machine/h8500/configure.in: Ditto.
8276         * libc/machine/xscale/configure.in: Ditto.
8277         * libc/machine/d10v/configure.in: Ditto.
8278         * libc/machine/fr30/configure.in: Ditto.
8279         * libc/machine/sh/configure.in: Ditto.
8280         * libc/machine/tic80/configure.in: Ditto.
8281         * libc/machine/m32r/configure.in: Ditto.
8282         * libc/machine/xstormy16/configure.in: Ditto.
8283         * libc/machine/i386/configure.in: Ditto.
8284         * libc/machine/d30v/configure.in: Ditto.
8285         * libc/machine/mn10200/configure.in: Ditto.
8286         * libc/machine/frv/configure.in: Ditto.
8287         * libc/machine/mt/configure.in: Ditto.
8288         * libc/machine/i960/configure.in: Ditto.
8289         * libc/machine/v850/configure.in: Ditto.
8290         * libc/machine/necv70/configure.in: Ditto.
8291         * libc/machine/tic4x/configure.in: Ditto.
8292         * libc/machine/cris/configure.in: Ditto.
8293         * libc/machine/m68k/configure.in: Ditto.
8294         * libc/machine/m32c/configure.in: Ditto.
8295         * libc/machine/hppa/configure.in: Ditto.
8296         * libc/machine/w65/configure.in: Ditto.
8297         * libc/machine/iq2000/configure.in: Ditto.
8298         * libc/machine/sparc/configure.in: Ditto.
8299         * libc/machine/m88k/configure.in: Ditto.
8300         * libc/sys/linux/configure.in: Ditto.
8301         * libc/sys/linux/machine/configure.in: Ditto.
8302         * libc/sys/linux/machine/i386/configure.in: Ditto.
8303         * libc/sys/linux/linuxthreads/configure.in: Ditto.
8304         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
8305         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
8306         * libc/sys/arm/configure.in: Ditto.
8307         * libc/sys/configure.in: Ditto.
8308         * libc/sys/decstation/configure.in: Ditto.
8309         * libc/sys/a29khif/configure.in: Ditto.
8310         * libc/sys/sysnecv850/configure.in: Ditto.
8311         * libc/sys/d10v/configure.in: Ditto.
8312         * libc/sys/netware/configure.in: Ditto.
8313         * libc/sys/mmixware/configure.in: Ditto.
8314         * libc/sys/h8500hms/configure.in: Ditto.
8315         * libc/sys/sh/configure.in: Ditto.
8316         * libc/sys/tic80/configure.in: Ditto.
8317         * libc/sys/rdos/configure.in: Ditto.
8318         * libc/sys/sysmec/configure.in: Ditto.
8319         * libc/sys/sysvi386/configure.in: Ditto.
8320         * libc/sys/h8300hms/configure.in: Ditto.
8321         * libc/sys/sparc64/configure.in: Ditto.
8322         * libc/sys/arc/configure.in: Ditto.
8323         * libc/sys/sysnec810/configure.in: Ditto.
8324         * libc/sys/m88kbug/configure.in: Ditto.
8325         * libc/sys/sysvnecv70/configure.in: Ditto.
8326         * libc/sys/z8ksim/configure.in: Ditto.
8327         * libc/sys/rtems/configure.in: Ditto.
8328         * libc/sys/w65/configure.in: Ditto.
8329         * libc/sys/sun4/configure.in: Ditto.
8330         * doc/configure.in: Ditto.
8331         * iconvdata/configure.in: Ditto.
8332         * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
8333
8334 2006-04-11  Jeff Johnston  <jjohnstn@redhat.com>
8335
8336         * acinclude.m4: Properly add square brackets for
8337         AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
8338         macros no longer available.  Add LIB_AM_PROG_AS to
8339         remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
8340         macro.  Substitute lpfx (library object prefix).
8341         * configure.host: Set lpfx depending on whether
8342         libtool is used or not.
8343         * configure.in: Individually specify libc and libm
8344         to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
8345         necessary.
8346         * Makefile.am: Use $(lpfx) to get object names for
8347         math-library functions that should also be in libc.
8348         * libc/machine/configure.in: Use case statement to determine
8349         AC_CONFIG_SUBDIRS statement.
8350         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
8351         * libc/sys/linux/machine/configure.in: Ditto.
8352         * libc/sys/configure.in: Ditto.
8353         * libm/machine/configure.in: Ditto.
8354         * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
8355         * libm/configure.in: Add AM_CONDITIONAL statement
8356         for HAVE_LIBM_MACHINE_DIR.
8357         * libc/machine/a29k/Makefile.am: Modified to work with
8358         latest automake.  Change includes setting AM_CCASFLAGS
8359         so building .S files will properly pick up flags used
8360         to build C files.
8361         * libc/machine/arm/Makefile.am: Ditto.
8362         * libc/machine/crx/Makefile.am: Ditto.
8363         * libc/machine/d10v/Makefile.am: Ditto.
8364         * libc/machine/d30v/Makefile.am: Ditto.
8365         * libc/machine/fr30/Makefile.am: Ditto.
8366         * libc/machine/frv/Makefile.am: Ditto.
8367         * libc/machine/h8300/Makefile.am: Ditto.
8368         * libc/machine/h8500/Makefile.am: Ditto.
8369         * libc/machine/hppa/Makefile.am: Ditto.
8370         * libc/machine/i386/Makefile.am: Ditto.
8371         * libc/machine/iq2000/Makefile.am: Ditto.
8372         * libc/machine/m32c/Makefile.am: Ditto.
8373         * libc/machine/m32r/Makefile.am: Ditto.
8374         * libc/machine/m68hc11/Makefile.am: Ditto.
8375         * libc/machine/m68k/Makefile.am: Ditto.
8376         * libc/machine/m88k/Makefile.am: Ditto.
8377         * libc/machine/mips/Makefile.am: Ditto.
8378         * libc/machine/mn10200/Makefile.am: Ditto.
8379         * libc/machine/mn10300/Makefile.am: Ditto.
8380         * libc/machine/mt/Makefile.am: Ditto.
8381         * libc/machine/necv70/Makefile.am: Ditto.
8382         * libc/machine/powerpc/Makefile.am: Ditto.
8383         * libc/machine/sh/Makefile.am: Ditto.
8384         * libc/machine/sparc/Makefile.am: Ditto.
8385         * libc/machine/tic4x/Makefile.am: Ditto.
8386         * libc/machine/tic80/Makefile.am: Ditto.
8387         * libc/machine/v850/Makefile.am: Ditto.
8388         * libc/machine/w65/Makefile.am: Ditto.
8389         * libc/machine/xscale/Makefile.am: Ditto.
8390         * libc/machine/xstormy16/Makefile.am: Ditto.
8391         * libc/machine/z8k/Makefile.am: Ditto.
8392         * libc/sys/a29khif/Makefile.am: Ditto.
8393         * libc/sys/arc/Makefile.am: Ditto.
8394         * libc/sys/arm/Makefile.am: Ditto.
8395         * libc/sys/d10v/Makefile.am: Ditto.
8396         * libc/sys/decstation/Makefile.am: Ditto.
8397         * libc/sys/h8300hms/Makefile.am: Ditto.
8398         * libc/sys/h8500hms/Makefile.am: Ditto.
8399         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
8400         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
8401         * libc/sys/m88kbug/Makefile.am: Ditto.
8402         * libc/sys/mmixware/Makefile.am: Ditto.
8403         * libc/sys/netware/Makefile.am: Ditto.
8404         * libc/sys/rdos/Makefile.am: Ditto.
8405         * libc/sys/rtems/Makefile.am: Ditto.
8406         * libc/sys/sh/Makefile.am: Ditto.
8407         * libc/sys/sparc64/Makefile.am: Ditto.
8408         * libc/sys/sysmec/Makefile.am: Ditto.
8409         * libc/sys/sysnec810/Makefile.am: Ditto.
8410         * libc/sys/sysnecv850/Makefile.am: Ditto.
8411         * libc/sys/sysvi386/Makefile.am: Ditto.
8412         * libc/sys/sysvnecv70/Makefile.am: Ditto.
8413         * libc/sys/tic80/Makefile.am: Ditto.
8414         * libc/sys/w65/Makefile.am: Ditto.
8415         * libc/sys/z8ksim/Makefile.am: Ditto.
8416         * libm/machine/i386/Makefile.am: Ditto.
8417         * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
8418         trap.S so that automake will generate a .S.o suffix rule.
8419         * libc/argz/Makefile.am: Modified to work with
8420         latest automake.  Change includes adding lib_a_CFLAGS
8421         so automake doesn't complain about libtool and non-libtool
8422         libraries sharing objects.
8423         * libc/ctype/Makefile.am: Ditto.
8424         * libc/errno/Makefile.am: Ditto.
8425         * libc/iconv/ccs/Makefile.am: Ditto.
8426         * libc/iconv/ces/Makefile.am: Ditto.
8427         * libc/iconv/lib/Makefile.am: Ditto.
8428         * libc/locale/Makefile.am: Ditto.
8429         * libc/misc/Makefile.am: Ditto.
8430         * libc/posix/Makefile.am: Ditto.
8431         * libc/reent/Makefile.am: Ditto.
8432         * libc/search/Makefile.am: Ditto.
8433         * libc/signal/Makefile.am: Ditto.
8434         * libc/stdio/Makefile.am: Ditto.
8435         * libc/stdio64/Makefile.am: Ditto.
8436         * libc/stdlib/Makefile.am: Ditto.
8437         * libc/string/Makefile.am: Ditto.
8438         * libc/sys/linux/Makefile.am: Ditto.
8439         * libc/sys/linux/argp/Makefile.am: Ditto.
8440         * libc/sys/linux/cmath/Makefile.am: Ditto.
8441         * libc/sys/linux/dl/Makefile.am: Ditto.
8442         * libc/sys/linux/iconv/Makefile.am: Ditto.
8443         * libc/sys/linux/intl/Makefile.am: Ditto.
8444         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
8445         * libc/sys/linux/net/Makefile.am: Ditto.
8446         * libc/sys/linux/stdlib/Makefile.am: Ditto.
8447         * libc/syscalls/Makefile.am: Ditto.
8448         * libc/time/Makefile.am: Ditto.
8449         * libc/unix/Makefile.am: Ditto.
8450         * libm/Makefile.am: Ditto.
8451         * libm/common/Makefile.am: Ditto.
8452         * libm/math/Makefile.am: Ditto.
8453         * libm/mathfp/Makefile.am: Ditto.
8454         * Regenerate all aclocal.m4, Makefile.in, and configure files.
8455
8456 2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
8457
8458         * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
8459         anymore.  Assume there is a gettimeofday syscall.
8460
8461 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
8462
8463         * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
8464         for the declaration of n_long.
8465
8466 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
8467
8468         * libc/sys/linux/include/net/if.h: Include sys/socket.h for
8469         struct sockaddr.
8470         (IFF_SMART): Replace this define with IFF_NOTRAILERS.
8471         (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
8472         (IFF_NOTRAILERS): New define.
8473         (struct ifreq): Add ifru_netmask.
8474         (ifr_netmask): New define.
8475
8476 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
8477
8478         * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
8479         match sys/ioctl.h.
8480
8481 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
8482
8483         * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
8484         linux-newlib libc implementations.
8485
8486 2006-03-29  Eric Blake  <ebb9@byu.net>
8487
8488         * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
8489         * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
8490
8491 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
8492
8493         * libc/sys/linux/io.c (__mknod): Fix declaration of
8494         syscall to pass a dev_t as third argument rather than
8495         a pointer to dev_t.
8496
8497 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
8498
8499         * libc/sys/linux/net/name6.c: Fix struct references.
8500
8501 2006-03-22  Mark Mitchell  <mark@codesourcery.com>
8502
8503         * configure.host: Allow hosts to set the default
8504         newlib_atexit_dynamic_alloc value.
8505         * configure.in: Likewise.
8506         * configure: Regenerated.
8507
8508 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
8509
8510         * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
8511         * configure.in (--disable-newlib-atexit-dynamic-alloc): New
8512         option.
8513         * configure: Regenerated.
8514         * newlib.hin: Regenerated.
8515         * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
8516         if _ATEXIT_DYNAMIC_ALLOC is undefined.
8517         * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
8518         if _ATEXIT_DYNAMIC_ALLOC is undefined.
8519
8520 2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>
8521
8522         * libc/sys/linux/linuxthreads/config.h: Remove definition
8523         of UINT32_C.
8524
8525 2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>
8526
8527         * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
8528         for a string I/O file that isn't using the asprintf family.
8529
8530 2006-03-07  Eric Blake  <ebb9@byu.net>
8531
8532         * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
8533         filename, allow read-only or write-only FILE atop O_RDWR file
8534         descriptor.
8535         * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
8536
8537 2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>
8538
8539         * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
8540         * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
8541
8542 2006-03-02  Jeff Johnston  <jjohnstn@redhat.com>
8543
8544         * libm/math/math.tex: Fix reference to sisnan.def which
8545         is now in common subdirectory.
8546         * libm/mathfp/mathfp.tex: Ditto.
8547
8548 2006-02-27  Jeff Johnston  <jjohnstn@redhat.com>
8549
8550         * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
8551         s_isnand, and sf_isnanf object files.
8552         * Makefile.in: Regenerated.
8553         * libc/include/ieeefp.h: Undef isnan and isinf to avoid
8554         conflict if <math.h> has previously been included.
8555         * libc/include/math.h
8556         * libc/include/math.h: Make isnan and isinf macros to
8557         conform to C99.
8558         (__isinfd, __isinff, __isnand, __isnanf): New functions.
8559         * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
8560         and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
8561         sf_isinf files which have been moved from math/mathfp directories.
8562         * libm/common/Makefile.in: Regenerated.
8563         * libm/common/s_isinfd.c: New file.
8564         * libm/common/s_isnand.c: Ditto.
8565         * libm/common/sf_isinff.c: Ditto.
8566         * libm/common/sf_isnanf.c: Ditto.
8567         * libm/common/s_isinf.c: Moved from libm/math directory.
8568         * libm/common/s_isnan.c: Ditto.
8569         * libm/common/sf_isinf.c: Ditto.
8570         * libm/common/sf_isnan.c: Ditto.
8571         * libm/math/Makefile.am: Remove isinf and isnan family functions
8572         which have been moved into common directory.
8573         * libm/mathfp/Makefile.am: Ditto.
8574         * libm/math/Makefile.in: Regenerated.
8575         * libm/mathfp/Makefile.in: Ditto.
8576         * libm/math/s_isinf.c: Removed.
8577         * libm/math/s_isnan.c: Ditto.
8578         * libm/math/sf_isinf.c: Ditto.
8579         * libm/math/sf_isnan.c: Ditto.
8580         * libm/mathfp/s_isinf.c: Ditto.
8581         * libm/mathfp/s_isnan.c: Ditto.
8582         * libm/mathfp/sf_isinf.c: Ditto.
8583         * libm/mathfp/sf_isnan.c: Ditto.
8584
8585 2006-02-20  Jeff Johnston  <jjohnstn@redhat.com>
8586
8587         * libc/stdio/fflush.c (fflush): For an fflush on a read-only
8588         stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
8589         * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
8590         seek, turn off the __SNPT no-optimization flag.
8591
8592 2006-02-16  Jeff Johnston  <jjohnstn@redhat.com>
8593
8594         * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
8595         will be defined.
8596         * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
8597         <features.h> to preset special flags.
8598
8599 2006-02-15  Corinna Vinschen  <corinna@vinschen.de>
8600
8601         * libc/include/sys/time.h (struct timeval): Change member types
8602         according to SUSv3.
8603         * libc/include/sys/types.h (useconds_t): Change to unsigned
8604         according to SUSv3.
8605         (suseconds_t): Define type.
8606
8607 2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
8608             David Carne  <davidcarne@gmail.com>
8609
8610         * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
8611         instead of strlen to determine number of bytes to copy.
8612         * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
8613         before looking at storage location.
8614
8615 2006-02-07  Paul Brook  <paul@codesourcery.com>
8616
8617         * libc/machine/arm/setjmp.S: Add Thumb-2 support.
8618         * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
8619         * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
8620         * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
8621         * libc/sys/arm/trap.S: Disable for Thumb-2.
8622
8623 2006-01-31  Leif Ekblad  <leif@rdos.net>
8624
8625         * configure.host: RDOS support added
8626         * libc/include/sys/config.h: Ditto.
8627         * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
8628         * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
8629         * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
8630         * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
8631         * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
8632         * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
8633         * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
8634         * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
8635         * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
8636         * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
8637         * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
8638         * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
8639         * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
8640         * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
8641         * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
8642         * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
8643         * libc/sys/rdos/write.c: Ditto.
8644
8645 2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>
8646
8647         * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
8648         so as not to define PACKAGE and VERSION in newlib.h.
8649         * aclocal.m4: Regenerated.
8650         * configure: Ditto.
8651         * newlib.hin: Ditto.
8652
8653 2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>
8654
8655         * acconfig.h: New file to generate newlib.hin from.
8656         * newlib.hin: Regenerated.
8657         * stamp-h.in: Regenerated.
8658         * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
8659         called automatically.
8660         * Makefile.in: Regenerated.
8661         * acinclude.m4: Add proper comment for hack in previous change.
8662         * aclocal.m4 */aclocal.m4: Regenerated.
8663         * configure */configure: Regenerated.
8664
8665 2006-01-11  Jeff Johnston  <jjohnstn@redhat.com>
8666
8667         * acinclude.m4: Add hack to prevent INSTALL in subdirs
8668         from being set to "../".
8669         * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
8670         * aclocal.m4: Regenerated.
8671         * configure: Ditto.
8672         * Makefile.in: Ditto.
8673         * doc/aclocal.m4: Ditto.
8674         * doc/configure: Ditto.
8675         * iconvdata/aclocal.m4: Ditto.
8676         * iconvdata/configure: Ditto.
8677         * libc/*/aclocal.m4: Ditto.
8678         * libc/*/configure: Ditto.
8679         * libc/libc.texinfo: Ditto.
8680         * libm/*/aclocal.m4: Ditto.
8681         * libm/*/configure: Ditto.
8682
8683 2006-01-10  Eric Blake  <ebb9@byu.net>
8684
8685         * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
8686         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
8687
8688 2006-01-10  Jeff Johnston  <jjohnstn@redhat.com>
8689
8690         * libm/mathfp/s_frexp.c: Check for special values on
8691         the original input, not the manipulated output value.
8692         * libm/mathfp/sf_frexp.c: Ditto.
8693         * libm/mathfp/s_atangent.c: Don't use local value branch
8694         when checking for quadrant.
8695         * libm/mathfp/sf_atangent.c: Ditto.
8696
8697 2006-01-09  Jeff Johnston  <jjohnstn@redhat.com>
8698
8699         * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
8700         * libc/stdio64/freopen64.c: Ditto.
8701
8702 2006-01-09  Eric Blake  <ebb9@byu.net>
8703
8704         * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
8705         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
8706
8707 2006-01-06  Jeff Johnston  <jjohnstn@redhat.com>
8708
8709         * libc/sys/linux/include/getopt.h: Add macros needed by
8710         new version of getopt.c in libc/stdlib.
8711
8712 2006-01-04  Gregory Pietsch  <gpietsch@comcast.net>
8713
8714         * libc/stdlib/getopt.c: Replaced with version
8715         that adds getopt_long and getopt_long_only support.
8716         * libc/include/getopt.h: New file.
8717
8718 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
8719
8720         * NEWS: Update with 1.14.0 info.
8721         * README: Ditto.
8722         * acinclude.m4: Change version number to 1.14.0.
8723         * aclocal.m4: Regenerated.
8724         * configure: Ditto.
8725         * doc/aclocal.m4: Ditto.
8726         * doc/configure: Ditto.
8727         * libc/*/aclocal.m4: Ditto.
8728         * libc/*/configure: Ditto.
8729         * libc/libc.texinfo: Ditto.
8730         * libm/*/aclocal.m4: Ditto.
8731         * libm/*/configure: Ditto.
8732         * libm/libm.texinfo: Ditto.
8733         * libc/sys/linux/shared.ld: Add VERS_1.14.
8734
8735 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
8736
8737         * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
8738         take a pointer to struct stat64 rather than struct stat.
8739
8740 2005-12-16  Ralf Corsepius <ralf.corsepius@rtems.org>
8741
8742         * libc/include/stdint.h: Prefer long over int for int32_t.
8743         Use __have_long32 to set up int32_t.
8744         * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
8745         (Sync with stdint.h).
8746
8747 2005-12-14  Corinna Vinschen  <corinna@vinschen.de>
8748
8749         * libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
8750         typo in O_NDELAY comment.
8751
8752 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
8753
8754         * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
8755         * libc/include/machine/setjmp.h (__mt__): Likewise.
8756         * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
8757         * libc/machine/configure.in: Ditto.
8758
8759 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
8760
8761         * configure.host: Replace ms1 arch with mt arch.
8762         * libc/machine/mt: Renamed from ms1 dir.
8763
8764 2005-12-08  Shaun Jackman  <sjackman@gmail.com>
8765
8766         * libc/include/sys/types.h: Remove the ifdef armour around
8767         standard POSIX types.
8768
8769 2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>
8770
8771         * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
8772         rtems_gxx_key_delete, rtems_gxx_getspecific,
8773         rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
8774         rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
8775         rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
8776
8777 2005-12-05  Christopher Faylor  <cgf@timesys.com>
8778
8779         * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
8780         file.  Declare unsetenv and _unsetenv_r when not cygwin.
8781
8782 2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>
8783
8784         * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
8785         Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
8786
8787 2005-11-18  Christopher Faylor  <cgf@timesys.com>
8788
8789         * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
8790
8791 2005-11-18  Christopher Faylor  <cgf@timesys.com>
8792
8793         * include/time.h: Remove more cygwin-specific stuff.
8794
8795 2005-11-18  Christopher Faylor  <cgf@timesys.com>
8796
8797         * include/time.h: Move cygwin declarations to cygwin-specific header.
8798         * include/sys/time.h: Rename cygwin include to "sys_time.h".
8799
8800 2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>
8801
8802         * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
8803         in libc/sys/linux/include.
8804         * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
8805         * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
8806         * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
8807         in libc/sys/linux/dl.
8808
8809 2005-11-11  Christopher Faylor  <cgf@timesys.com>
8810
8811         * libc/include/sys/time.h: For cygwin, use general header rather than
8812         specific "sys/select.h".
8813
8814 2005-11-08  Tom Walsh  <tom@openhardware.net>
8815
8816         * libc/time/tzvars.c: New file.
8817         * libc/time/tzset_r.c: Moved globals into tzvars.c
8818         so other time functions needn't link in __tzset_r and its
8819         dependencies.
8820         * libc/time/Makefile.am: Add the new file.
8821         * libc/time/Makefile.in: Regenerated.
8822
8823 2005-11-08  Christopher Faylor  <cgf@timesys.com>
8824
8825         * libc/include/string.h: Add cygwin-specific function declaration.
8826
8827 2005-11-07  Corinna Vinschen  <corinna@vinschen.de>
8828
8829         * libc/include/ieeefp.h: Add C++ guards.
8830
8831 2005-11-03  Jeff Johnston  <jjohnstn@redhat.com>
8832
8833         * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
8834         * libc/unix/getlogin.c: Ditto.
8835         * libc/unix/getpass.c: Ditto.
8836         * libc/unix/getut.c: Ditto.
8837         * libc/unix/ttyname.c: Ditto.
8838
8839 2005-11-03  Shaun Jackman  <sjackman@gmail.com>
8840
8841         * libc/include/sys/unistd.h (readlink, symlink): Provide these
8842         prototypes by default.
8843         * libc/sys/linux/include/unistd.h (readlink): Remove this
8844         prototype.
8845         * libc/sys/linux/sys/unistd.h (readlink, symlink): New
8846         prototypes.
8847
8848 2005-11-01  Ralf Corsepius <ralf.corsepius@rtems.org>
8849
8850         * libc/include/stdint.h: Cleanup #if vs. #ifdef.
8851
8852 2005-10-31  Darin Johnson  <darin@usa.net>
8853
8854         * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
8855         correct for constants.
8856
8857 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
8858
8859         * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
8860         * libc/stdio/siscanf.c: Likewise.
8861         * libc/stdio/sprintf.c: Likewise.
8862         * libc/stdio/sscanf.c: Likewise.
8863         * libc/stdio/vfprintf.c: Likewise.
8864         * libc/stdio/vfscanf.c: Likewise.
8865         * libc/stdio/viprintf.c: Likewise.
8866         * libc/stdio/viscanf.c: Likewise.
8867
8868 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
8869
8870         * libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
8871         example to use "_end" symbol instead of "end".  Change write  example
8872         to use "outbyte" instead of "writechar".
8873
8874 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
8875
8876         * libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
8877         * libc/ctype/islower.c: Likewise.
8878         * libc/ctype/isupper.c: Likewise.
8879         * libc/ctype/iswalnum.c: Likewise.
8880         * libc/ctype/iswalpha.c: Likewise.
8881         * libc/ctype/iswblank.c: Likewise.
8882         * libc/ctype/iswcntrl.c: Likewise.
8883         * libc/ctype/iswdigit.c: Likewise.
8884         * libc/ctype/iswgraph.c: Likewise.
8885         * libc/ctype/iswlower.c: Likewise.
8886         * libc/ctype/iswprint.c: Likewise.
8887         * libc/ctype/iswpunct.c: Likewise.
8888         * libc/ctype/iswspace.c: Likewise.
8889         * libc/ctype/iswupper.c: Likewise.
8890         * libc/ctype/iswxdigit.c: Likewise.
8891         * libc/ctype/tolower.c: Likewise.
8892         * libc/ctype/toupper.c: Likewise.
8893         * libc/ctype/towctrans.c: Likewise.
8894         * libc/ctype/towlower.c: Likewise.
8895         * libc/ctype/towupper.c: Likewise.
8896         * libc/string/strcasecmp.c: Likewise.
8897         * libc/string/strcoll.c: Likewise.
8898         * libc/string/strings.tex: Likewise.
8899         * libc/string/strlwr.c: Likewise.
8900         * libc/string/strncasecmp.c: Likewise.
8901         * libc/string/strupr.c: Likewise.
8902         * libc/string/wcscoll.c: Likewise.
8903         * libc/string/wcslcat.c: Likewise.
8904         * libc/string/wcslcpy.c: Likewise.
8905         * libc/string/wcsnlen.c: Likewise.
8906         * libc/string/wcsstr.c: Likewise.
8907         * libc/string/wcstrings.tex: Likewise.
8908         * libc/string/wmemchr.c: Likewise.
8909         * libc/string/wmemcmp.c: Likewise.
8910         * libc/string/wmemcpy.c: Likewise.
8911         * libc/string/wmemmove.c: Likewise.
8912         * libc/string/wmemset.c: Likewise.
8913
8914 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
8915
8916         * libc/misc/unctrl.c: Replace FUNCTION description.
8917         * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
8918         * libc/stdio/getdelim.c: Fix spelling errors.
8919         * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
8920         * libc/stdio/putw.c: Likewise.
8921         * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
8922         documentation.
8923         * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
8924         * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
8925         * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
8926         * libc/stdlib/mlock.c: Likewise.
8927         * libc/stdlib/mstats.c: Likewise.
8928         * libc/time/tzlock.c: Likewise.
8929         * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
8930         * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
8931         and hyphenate "pseudo-random".
8932         * libc/string/bcmp.c: Remove extra blank lines in  documentation.
8933         * libc/string/strncat.c: Likewise.
8934         * libc/string/memchr.c: Remove extra ">" character in  documentation.
8935         * libc/string/strcspn.c: Use "characters" instead of "chars".
8936         * libc/string/strpbrk.c: Likewise.
8937         * libc/string/strerror_r.c: Capitalize "GNU".
8938         * libc/string/strnlen.c: Likewise.
8939         * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
8940         documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
8941         * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
8942         * libc/string/wcschr.c: Likewise.
8943         * libc/string/wcscmp.c: Likewise.
8944         * libc/string/wcscpy.c: Likewise.
8945         * libc/string/wcscspn.c: Likewise.
8946         * libc/string/wcslen.c: Likewise.
8947         * libc/string/wcsncat.c: Likewise.
8948         * libc/string/wcsncmp.c: Likewise.
8949         * libc/string/wcsncpy.c: Likewise.
8950         * libc/string/wcsnlen.c: Likewise.
8951         * libc/string/wcspbrk.c: Likewise.
8952         * libc/string/wcsrchr.c: Likewise.
8953         * libc/string/wcsspn.c: Likewise.
8954         * libc/string/wmemchr.c: Likewise.
8955         * libc/string/wmemcmp.c: Likewise.
8956         * libc/string/wmemcpy.c: Likewise.
8957         * libc/string/wmemset.c: Likewise.
8958         * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
8959         * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
8960         * libc/string/wcwidth.c: Likewise.
8961         * libm/common/s_modf.c: Remove extra period from documentation.
8962         * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
8963         documentation.
8964         * libm/mathfp/s_isnan.c: Likewise.
8965         * libm/math/s_ldexp.c: Fix punctuation.
8966         * libm/mathfp/s_ldexp.c: Likewise.
8967         * libm/math/w_log.c: Likewise.
8968         * libm/mathfp/s_logarithm.c: Likewise.
8969         * libm/math/w_j0.c: Add spaces to FUNCTION description.
8970         * libm/mathfp/w_jn.c: Likewise.
8971
8972 2005-10-26  Shaun Jackman  <sjackman@gmail.com>
8973
8974         * libc/posix/scandir.c (scandir): Update the function
8975         prototype to match the header.
8976         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
8977         extraneous #endif.
8978         * libc/sys/linux/sys/lock.h: Do not include
8979         machine/weakalias.h, since it's not used by this file.
8980
8981 2005-10-26  Jeff Johnston  <jjohnstn@redhat.com>
8982
8983         * libc/Makefile.am: Reorder SUBLIBS so machine and sys
8984         directories can override properly.
8985
8986 2005-10-20  Jeff Johnston  <jjohnstn@redhat.com>
8987
8988         * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
8989         gcc is 3.3 or greater, use special gcc builtins.
8990
8991 2005-10-20  Corinna Vinschen <corinna@vinschen.de>
8992
8993         * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
8994
8995 2005-10-18  Corinna Vinschen <corinna@vinschen.de>
8996
8997         * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
8998
8999 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
9000
9001         * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
9002         * libm/common/Makefile.am: Add s_infconst.c support.
9003         * libm/common/Makefile.in: Regenerated.
9004         * libm/common/s_infconst.c: New file with float and
9005         long double infinity support added.
9006         * libm/math/Makefile.am: Remove s_infconst.c support.
9007         * libm/math/Makefile.in: Regenerated.
9008         * libm/math/s_infconst.c: Moved to common directory.
9009         * libm/mathfp/Makefile.am: Remove s_infconst.c support.
9010         * libm/mathfp/Makefile.in: Regenerated.
9011         * libm/mathfp/s_infconst.c: Moved to common directory.
9012
9013 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
9014
9015         * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
9016         dbgprintf to prevent conflict with new dprintf function.
9017
9018 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
9019
9020         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
9021         "nan" processing for systems that have long double support.
9022
9023 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
9024
9025         * libc/sys/linux/sys/types.h (int8_t): Add type.
9026
9027 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
9028
9029         * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
9030         * libm/common/Makefile.in: Regenerate.
9031         * libm/common/common.tex: Delete file.
9032         * libm/math/math.tex: Include .def files from common/.
9033         * libm/mathfp/mathfp.tex: Likewise.
9034
9035 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
9036
9037         * libc/libc.texinfo (Top): Surround this node with @ifnottex
9038         instead of @ifinfo.  Update menu to add Introduction and match
9039         SUBDIRS order.
9040         (Introduction): New section.
9041
9042 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
9043
9044         * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
9045         with "Red Hat newlib C Library".
9046         * libc/sys.tex (Stubs): Likewise.
9047         * libm/math/math.tex (Math): Likewise.
9048         * libm/mathfp/mathfp.tex (Math): Likewise.
9049
9050 2005-10-11  Shaun Jackman  <sjackman@gmail.com>
9051
9052         * libc/include/stdio.h (dprintf): New declaration.
9053         (vdprintf): Ditto.
9054         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
9055         and vdprintf.c.
9056         * libc/stdio/Makefile.in: Regenerate.
9057         * libc/stdio/dprintf.c: New file.
9058         * libc/stdio/vdprintf.c: New file.
9059         * libc/stdio/stdio.tex (dprintf): New entry.
9060
9061 2005-10-11  David Weatherford  <weath@tensilica.com>
9062
9063         * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
9064         Print "inf" and "nan" in lowercase for e/f/g formats and in
9065         uppercase for E/F/G formats.
9066
9067 2005-10-07  Bob Wilson  <bob.wilson@acm.org>
9068
9069         * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
9070         to ENOMEM on failure.
9071
9072 2005-10-06  Ralf Corsepius <ralf.corsepius@rtems.org>
9073
9074         * libc/include/stdint.h: Add [u]int_fast<N>_t types.
9075
9076 2005-10-04  Ralf Corsepius <ralf.corsepius@rtems.org>
9077
9078         * libc/include/stdint.h: Move magic to set __have_long* to the
9079         beginning.  Use #if __have* instead of #if defined(__have*).
9080         Minor typo fixes.
9081
9082 2005-10-04  James E Wilson  <wilson@specifix.com>
9083
9084         * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
9085         #error.
9086
9087 2005-10-03  Jeff Johnston  <jjohnstn@redhat.com>
9088
9089         * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
9090         incorporate Ralf's change below.
9091
9092 2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
9093
9094         * libc/include/stdint.h:
9095         Use __INTMAX_TYPE__ to derive intmax_t.
9096         Use __UINTMAX_TYPE__ to derive uintmax_t.
9097         Fix minor typo.
9098
9099 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
9100
9101         * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
9102         handling GCC >= 4.
9103
9104 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
9105
9106         * libc/sys/linux/include/stdint.h: Update to match functionality
9107         of generic newlib stdint.h.
9108
9109 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
9110
9111         * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
9112         and do not #undef the macro after it is used.  Fix typos.
9113         Also change 64-bit constants to use the __have_long64 and
9114         __have_longlong64 flags to determine if long or long long
9115         constants should be used.
9116         * libc/include/inttypes.h: Include stddef.h to get wchar_t
9117         type defined.
9118
9119 2005-09-20  Shaun Jackman  <sjackman@gmail.com>
9120
9121         * libc/include/stdint.h: Fix typo in names of
9122         LEAST macros.
9123
9124 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
9125
9126         * libc/sys/rtems/include/inttypes.h: Moved to...
9127         * libc/include/inttypes.h: ...here.
9128
9129 2005-09-19  Jeff Johnston  <jjohnstn@redhat.com>
9130
9131         * libc/sys/rtems/include/stdint.h: Moved to...
9132         * libc/include/stdint.h: ...here.
9133
9134 2005-09-08  Jeff Johnston  <jjohnstn@redhat.com>
9135
9136         * Makefile.am: Add include files under bits sub-directory.
9137         * Makefile.in: Regenerated.
9138         * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
9139         actual value of 1 to be compatible with newer glibc headers.
9140         * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
9141         glibc headers.
9142         * libc/sys/linux/sys/dirent.h: Ditto.
9143         * libc/sys/linux/argp/argp-xinl.c: Ditto.
9144         * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
9145         profile_fixup routines are marked used so they won't be
9146         optimized away.
9147         * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
9148         to mark functions as weak.
9149         * libc/sys/linux/dl/dl-open.c: Ditto.
9150         * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
9151         rules about lvalues.
9152         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
9153         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
9154         weak_extern macro to mark functions as weak.  Instead always
9155         use #pragma weak.
9156         * iconvdata/jis0208.h: Fix to work with gcc4.
9157         * libc/sys/linux/dl/dl-load.c: Ditto.
9158         * libc/sys/linux/dl/dl-reloc.c: Ditto.
9159         * libc/sys/linux/dl/do-rel.h: Ditto.
9160         * libc/sys/linux/dl/dynamic-link.h: Ditto.
9161         * libc/sys/linux/include/ltdl.h: Ditto.
9162         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
9163         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
9164         * libc/sys/linux/net/ns_ntoa.c: Ditto.
9165         * libc/sys/linux/bits/initspin.h: New file.
9166         * libc/sys/linux/bits/libc-lock.h: Ditto.
9167         * libc/sys/linux/bits/pthreadtypes.h: Ditto.
9168         * libc/sys/linux/bits/typesizes.h: Ditto.
9169
9170 2005-09-08  Eric Blake  <ebb9@byu.net>
9171
9172         * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
9173         before is NULL.
9174
9175 2005-09-08  Brian Dessent  <brian@dessent.net>
9176
9177         * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
9178         mantissa.
9179         * s_lrint.c: Ditto.
9180
9181 2005-09-02  Jeff Johnston  <jjohnstn@redhat.com>
9182
9183         * libc/include/stdio.h: Add prototype for viprintf.
9184
9185 2005-09-01  Jeff Johnston  <jjohnstn@redhat.com>
9186
9187         * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
9188         any positive power results in 0.
9189         * libm/mathfp/sf_pow.c (powf): Ditto.
9190
9191 2005-08-31  Paul Brook  <paul@codesourcery.com>
9192
9193         * configure.host: Set have_crt0 to no for Arm targts when not
9194         providing syscalls.  Set sys_dir=arm unconditionally.
9195         Default have_crt0 based on sys_dir.
9196         * configure.in: Use have_crt0.
9197         * libc/configure.in: Ditto.
9198         * libc/sys/configure.in: Ditto.
9199         * configure: Regenerate.
9200         * libc/configure: Regenerate.
9201         * libc/sys/configure: Regenerate.
9202         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
9203         Only build other files when providing syscalls.
9204         * libc/sys/arm/Makefile.in: Regenerate.
9205         * libc/sys/arm/aeabi_atexit.c: New file.
9206
9207 2005-08-26  Christopher Faylor  <cgf@timesys.com>
9208
9209         * libc/include/string.h: Revert previous change.
9210
9211 2005-08-25  Christopher Faylor  <cgf@timesys.com>
9212
9213         * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
9214
9215 2005-08-22  Shaun Jackman  <sjackman@gmail.com>
9216
9217         * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
9218         define _opendir as opendir, _readdir as readdir, and
9219         _closedir as closedir so that the implementations in
9220         libc/posix will be used.
9221
9222 2005-08-10  DJ Delorie  <dj@redhat.com>
9223
9224         * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
9225
9226 2005-08-10  Stephen Huw Clarke  <stephen.clarke@st.com>
9227
9228         * libm/common/sf_fmax.c: Fix to properly handle NaNs.
9229         * libm/common/s_max.c: Ditto.
9230         * libm/common/sf_fmin.c: Ditto.
9231         * libm/common/s_min.c: Ditto.
9232
9233 2005-08-10  DJ Delorie  <dj@redhat.com>
9234
9235         * configure.host: Add m32c support.
9236         * libc/include/machine/ieeefp.h: Likewise.
9237         * libc/include/machine/setjmp.h: Likewise.
9238         * libc/include/sys/config.h: Likewise.
9239         * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
9240         * libc/machine/m32c/aclocal.m4: New file.
9241         * libc/machine/m32c/configure: Ditto.
9242         * libc/machine/m32c/configure.in: Ditto.
9243         * libc/machine/m32c/Makefile.am: Ditto.
9244         * libc/machine/m32c/Makefile.in: Ditto.
9245         * libc/machine/m32c/setjmp.S: Ditto.
9246
9247 2005-08-02  Bob Wilson  <bob.wilson@acm.org>
9248
9249         * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
9250         to the value for 2^126.
9251
9252 2005-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
9253
9254         * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
9255         used.
9256
9257 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
9258            Darin Petkov <darin@tensilica.com>
9259
9260        * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
9261
9262 2005-07-19  Paul Brook  <paul@codesourcery.com>
9263
9264         * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
9265
9266 2005-07-18  Joseph S. Myers  <joseph@codesourcery.com>
9267
9268         * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
9269         names after PASS and FAIL which do not depend on source directory
9270         name or on whether test passed or failed.
9271         * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
9272
9273 2005-07-08  Ola Hugosson   <Ola.Hugosson@anoto.com>
9274
9275         * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
9276
9277 2005-07-07  Shaun Jackman  <sjackman@gmail.com>
9278
9279         * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
9280         twice for the same directory. _closedir calls free, and freeing
9281         the same pointer twice may cause a crash.
9282
9283 2005-07-06  Aldy Hernandez  <aldyh@redhat.com>
9284
9285         * configure.host: Added entry for ms1*.
9286         * libc/include/machine/ieeefp.h: Handle ms1.
9287         * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
9288         * libc/machine/ms1/aclocal.m4: New.
9289         * libc/machine/ms1/configure: New.
9290         * libc/machine/ms1/configure.in: New.
9291         * libc/machine/ms1/Makefile.am: New.
9292         * libc/machine/ms1/Makefile.in: New.
9293         * libc/machine/ms1/setjmp.S: New.
9294
9295 2005-07-04  Mark Mitchell  <mark@codesourcery.com>
9296
9297         * Makefile.am (site.exp): Set tmpdir.
9298         * Makefile.in: Regenerated.
9299         * testsuite/lib/checkoutput.exp (newlib_check_output): Put
9300         executables in $tmpdir.
9301         * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
9302         libgloss version if not running in the build directory.
9303         * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
9304         $tmpdir.
9305         * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
9306         in $tmpdir.
9307
9308 2005-06-28  Dave Korn  <dave.korn@artimi.com>
9309
9310         * libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
9311         and miscalculation caused by fp representation of zero.
9312         * libm/common/sf_lrint.c (lrintf):  Likewise.
9313
9314 2005-06-16  Christopher Faylor  <cgf@timesys.com>
9315
9316         * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
9317         determine characteristics of long double.  Use a union instead.
9318         * ldtoa.c (_ldtoa_r): Ditto.
9319         (_ldcheck): Ditto.
9320         (_strtold): Ditto.
9321         (union uconv): New union.
9322
9323 2005-06-03  Jeff Johnston  <jjohnstn@redhat.com>
9324
9325         * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
9326         instead of memcpy.
9327
9328 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
9329
9330         * configure.host (mn10300-*): Add long long I/O support by default.
9331
9332 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
9333
9334         * libc/sys/linux/getpwuid.c: Removed.
9335         * libc/sys/linux/getpwnam.c: Removed.
9336         * libc/sys/linux/getpwent.c: New file containing logic
9337         from files removed above.  This allows overriding of file
9338         in libc/unix.
9339         * libc/sys/linux/Makefile.am: Support changes above.
9340         * libc/sys/linux/Makefile.in: Regenerated.
9341
9342 2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>
9343
9344         * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
9345         when checking for multiple flags.
9346
9347 2005-04-18  Hans-Peter Nilsson  <hp@axis.com>
9348
9349         * configure.host <cris-*-* | crisv32-*-*>: Set
9350         default_newlib_io_long_long="yes".
9351
9352 2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>
9353
9354         * libc/include/libgen.h: New file.
9355
9356 2005-04-08  Shaun Jackman  <sjackman@gmail.com>
9357
9358         * libc/unix/Makefile.am: Add support for basename and dirname.
9359         * libc/unix/Makefile.in: Regenerated.
9360         * libc/unix/basename.c: New file.
9361         * libc/unix/dirname.c: New file.
9362
9363 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
9364
9365         * libc/sys/linux/inode.c (lchown): New function.
9366
9367 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
9368
9369         * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
9370         ELIX level is defined.
9371         * libc/unix/Makefile.in: Regenerated.
9372
9373 2005-04-05  Dave Korn  <dave.korn@artimi.com>
9374
9375         * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
9376         something that looks like a "NaN", put back the characters processed.
9377
9378 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
9379
9380         * libc/stdlib/strtod.c (_strtod_r): Never change s00.
9381
9382 2005-03-23  Christopher Faylor  <cgf@timesys.com>
9383
9384         * configure.host: For cygwin, redefine CC with cygwin include directory
9385         first to mimic the behavior of the top-level configury.  Move include
9386         directory out of newlib_cflags.
9387
9388 2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>
9389
9390         * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
9391         * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
9392         than errno.
9393
9394 2005-03-22  Christopher Faylor  <cgf@timesys.com>
9395
9396         * libc/include/machine/_types.h: Make trivial change to comment to
9397         avoid a spurious warning from gcc.
9398
9399 2005-03-21  Nicholas Wourms  <nwourms@netscape.net>
9400
9401         * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
9402         since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
9403         reent.h include.
9404
9405 2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
9406             Corinna Vinschen  <corinna@vinschen.de>
9407
9408         * libc/include/ctype.h: Remove invalid +1 offset from
9409         ctype macro references to __ctype_ptr.
9410         (_ctype_): Move declaration outside #ifndef __cplusplus.
9411
9412 2005-03-18  Corinna Vinschen  <corinna@vinschen.de>
9413
9414         * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
9415         evaluate first parameter only once.
9416         (siglongjmp): Ditto.
9417
9418 2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>
9419
9420         * configure.in: Add new check to see if compiler supports
9421         aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
9422         * configure: Regenerated.
9423         * Makefile.in: Ditto.
9424         * newlib.hin: Add _HAVE_ARRAY_ALIASING.
9425         * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
9426         aliasing the _ctype_ array to _ctype_b.
9427         * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
9428         _ctype_ as deprecated.
9429
9430 2005-03-17  Hans-Peter Nilsson  <hp@axis.com>
9431
9432         * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
9433         -DCOMPACT_CTYPE.
9434
9435 2005-03-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
9436
9437         * libc/sys/rtems/include/inttypes.h: New file.
9438         * libc/sys/rtems/include/stdint.h: Ditto.
9439
9440 2005-03-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
9441
9442         * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
9443
9444 2005-03-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
9445
9446         * libc/include/machine/_types.h: New file.
9447         * libc/include/sys/types.h: Do not check for __rtems__
9448         when including <machine/_types.h>.  Remove some redundant
9449         declarations now that <machine/_types.h> is included.
9450         * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
9451         shared header file.
9452
9453 2005-02-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
9454
9455         * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
9456         L qualifier for these long constants.
9457
9458 2005-02-25  Eric Blake  <ebb9@byu.net>
9459
9460         * libc/include/time.h (__tzrule_struct): Make offset long, since
9461         a 16-bit int overflows on a 12-hour offset.
9462         * libc/sys/linux/include/time.h: Ditto.
9463         * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
9464         * libc/time/mktm_r.c: Ditto.
9465         * libc/time/gettzinfo.c: Ditto.
9466         * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
9467         years.  Fix '%z' to use long, not int.
9468
9469 2005-02-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
9470
9471         * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
9472         manipulate float values in integer form.
9473         * libm/common/sf_round.c: Ditto.
9474
9475 2005-02-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
9476
9477         * libc/include/sys/types.h [__rtems__]: Include new
9478         header file machine/_types.h.
9479         * libc/include/machine/types.h: Ditto.
9480         * libc/sys/rtems/machine/_types.h: New file.
9481
9482 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
9483
9484         * libc/include/time.h (_timezone): Change to long also for Cygwin.
9485         (timezone): Drop cast from definition.
9486
9487 2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>
9488
9489         * libc/include/time.h [!CYGWIN](_timezone): Change to long.
9490         (__tzrule_type, __tzinfo_type): New types.
9491         (__gettzinfo): New function.
9492         * libc/sys/linux/include/time.h: Ditto.
9493         * libc/time/Makefile.am: Add gettzinfo.c.
9494         * libc/time/Makefile.in: Regenerated.
9495         * libc/time/local.h: Moved __tzrule_type to time.h.
9496         * libc/time/mktime.c: Call __gettzinfo to reference
9497         __tznorth, __tzyear, and __tzrule array.
9498         * libc/time/mktm_r.c: Ditto.
9499         * libc/time/strftime.c: Ditto.
9500         * libc/time/tzset_r.c: Ditto.  Also remove definition
9501         of __tzrule which is now in gettzinfo.c.  Change _timezone
9502         references to not cast to time_t.
9503         * libc/time/gettzinfo.c: New file.
9504
9505 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
9506
9507         * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
9508
9509 2005-02-22  Corinna Vinschen  <corinna@vinschen.de>
9510
9511         * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
9512
9513 2005-02-16  Eric Blake  <ebb9@byu.net>
9514
9515         * libc/time/time.tex: Improve the documentation.
9516         * libc/time/strftime.c: Improve the documentation.
9517         (iso_year_adjust): New helper function.
9518         (strftime): Simplify '%E' and '%O'. Change '%c' to use
9519         recursion. Fix '%C', '%y', and '%Y' to deal with years with more
9520         than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
9521         '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
9522         Avoid core dumps on valid inputs (maxsize == 0, or
9523         tim_p->tm_isdst > 1).
9524
9525 2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
9526
9527         * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
9528         members to uid_t and gid_t according to SUSv3.
9529         * libc/include/sys/time.h (utimes):  Change second parameter
9530         to const according to SUSv3.
9531
9532 2005-02-07  Antony King  <antony.king@st.com>
9533
9534         * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
9535         called before _flockfile to prevent lock object use before
9536         initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
9537         take a struct _reent * instead of a FILE *.
9538         * libc/stdio/fclose.c (_fclose_r): Ditto.
9539         * libc/stdio/feof.c (feof): Ditto.
9540         * libc/stdio/ferror.c (ferror): Ditto.
9541         * libc/stdio/fflush.c (fflush): Ditto.
9542         * libc/stdio/fgetc.c (fgetc): Ditto.
9543         * libc/stdio/fgets.c (fgets): Ditto.
9544         * libc/stdio/fileno.c (fileno): Ditto.
9545         * libc/stdio/fputc.c (fputc): Ditto.
9546         * libc/stdio/fputs.c (fputs): Ditto.
9547         * libc/stdio/fread.c (fread): Ditto.
9548         * libc/stdio/freopen.c (_freopen_r): Ditto.
9549         * libc/stdio/fseek.c (_fseek_r): Ditto.
9550         * libc/stdio/ftell.c (_ftell_r): Ditto.
9551         * libc/stdio/fwrite.c (fwrite): Ditto.
9552         * libc/stdio/getc.c (getc): Ditto.
9553         * libc/stdio/getdelim.c (__getdelim): Ditto.
9554         * libc/stdio/putc.c (putc): Ditto.
9555         * libc/stdio/setvbuf.c (setvbuf): Ditto.
9556         * libc/stdio/ungetc.c (_ungetc_r): Ditto.
9557         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
9558         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
9559         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
9560         * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
9561         * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
9562         _reent * instead of a FILE * and so replace incorrect use of
9563         _REENT with argument.
9564         * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
9565         * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
9566         CHECK_INIT() take a struct _reent * instead of a FILE *.
9567         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
9568         * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
9569         * libc/stdio/perror.c (perror): Ditto.
9570         * libc/stdio/printf.c (printf, _printf_r): Ditto.
9571         * libc/stdio/putchar.c (putchar): Ditto.
9572         * libc/stdio/puts.c (puts): Ditto.
9573         * libc/stdio/refill.c (__srefill): Ditto.
9574         * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
9575         * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
9576         * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
9577         * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
9578         * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
9579         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
9580         * libc/stdio/wbuf.c (__swbuf): Ditto.
9581         * libc/stdio/wsetup.c (__swsetup): Ditto.
9582         * libc/stdlib/mallocr.c (malloc_stats): Ditto.
9583         * libc/stdlib/mstats.c (_mstats_r): Ditto.
9584         * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
9585         * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
9586         * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
9587         to _flockfile and _funlockfile; rely on locking in _ftell_r.
9588         * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
9589         * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
9590         initialision of _data field in FILE structure.
9591         * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
9592
9593 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
9594
9595         * libc/stdio/findfp.c (__sinit): Protect with new lock.
9596         (__sinit_lock): New lock.
9597         (__sinit_lock_acquire, __sinit_lock_release): New functions.
9598         * libc/stdio/local.h: Add reference to new __sinit locking
9599         functions.
9600
9601 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
9602
9603         * libc/include/math.h (isfinite, isnormal, isunordered): Change
9604         input variable names to avoid mixups with nesting macros.
9605
9606 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
9607
9608         * configure.host: Add support for cris-*-* and crisv32-*-*.
9609         * libc/include/machine/ieeefp.h: Ditto.
9610         * libc/include/machine/setjmp.h: Ditto.
9611         * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
9612         libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
9613         libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
9614         libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
9615         libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
9616         libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
9617         libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
9618         files.
9619
9620 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
9621
9622         * testsuite/newlib.string/memmove1.c: New test.
9623
9624 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
9625
9626         * testsuite/include/check.h: Include stdlib.h.
9627
9628 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
9629
9630         * Makefile.am (stmp-targ-include): Support include header files
9631         from machine directories.
9632         (install-data-local): Ditto.
9633         * Makefile.in: Regenerate.
9634
9635 2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>
9636
9637         * libc/include/string.h: Remove Linux-specific declaration of
9638         strsignal and add #include <sys/string.h>.
9639         * libc/include/sys/string.h: New file.
9640         * libc/include/sys/linux/sys/string.h: New file with strsignal
9641         declaration deleted above.
9642
9643 2005-01-20  Jeff Johnston  <jjohnstn@redhat.com>
9644
9645         * libc/time/strftime.c (strftime): Change %r and %x to be compliant
9646         to POSIX standard for "C" locale.  Allow %E and %O modifiers
9647         to be ignored as long as they precede valid specifiers according
9648         to POSIX.
9649
9650 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
9651
9652         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
9653         environment variable is set.
9654
9655 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
9656
9657         * tzset_r.c (_tzname): Add a comma.
9658
9659 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
9660
9661         * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
9662         _VFPRINTF_R.
9663
9664 2005-01-07  Paul Brook  <paul@codesourcery.com>
9665
9666         * configure.in: Add test for .init_array.
9667         * configure: Regenerate.
9668         * newlib.hin: Add HAVE_INITFINI_ARRAY.
9669         * libc/misc/Makefile.am: Add init.c
9670         * libc/misc/Makefile.in: Regenerate.
9671         * libc/misc/init.c: New file.
9672         * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
9673         _init/_fini if they exist.
9674
9675 2005-01-06  Jeff Johnston  <jjohnstn@redhat.com>
9676
9677         * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
9678         * (strtof): Ditto.
9679         * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
9680         * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
9681         functions for use by strtod and strtof.
9682         * Makefile.in: Regenerated.
9683
9684 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
9685
9686         * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
9687         bit-test in combination with NULL test.
9688
9689 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
9690
9691         * README: Fix typo of LGPL.  Change "license" to "copyright".
9692
9693 2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>
9694
9695         * NEWS: Update with 1.13.0 info.
9696         * README: Ditto.
9697         * acinclude.m4: Change version number to 1.13.0.
9698         * aclocal.m4: Regenerated.
9699         * configure: Ditto.
9700         * doc/aclocal.m4: Ditto.
9701         * doc/configure: Ditto.
9702         * libc/*/aclocal.m4: Ditto.
9703         * libc/*/configure: Ditto.
9704         * libc/libc.texinfo: Ditto.
9705         * libm/*/aclocal.m4: Ditto.
9706         * libm/*/configure: Ditto.
9707         * libm/libm.texinfo: Ditto.
9708         * libc/sys/linux/shared.ld: Add VERS_1.13.
9709
9710 2004-12-17  Christian Groessler  <chris@groessler.org>
9711
9712         * libc/machine/z8k/memcmp.S: New file.
9713         * libc/machine/z8k/memcpy.S: Ditto.
9714         * libc/machine/z8k/memmove.S: Ditto.
9715         * libc/machine/z8k/memset.S: Ditto.
9716         * libc/machine/z8k/Makefile.am: Add new files.
9717         * libc/machine/z8k/Makefile.in: Regenerated.
9718         * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
9719         part.  Implement Z8002 stdcall version.
9720
9721 2004-12-13  Jeff Johnston  <jjohnstn@redhat.com>
9722
9723         * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
9724         a low-level read if we don't get the full amount of bytes so
9725         EOF or error flags will be set.
9726
9727 2004-12-09  Alex Mogilnikov  <alx@intellectronika.ru>
9728
9729         * libc/time/tzset_r (_tzset_r): Properly skip over
9730         '/' when it is detected.
9731
9732 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
9733
9734         * libc/time/tzset_r (_tzset_r): Fix loop.
9735
9736 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
9737
9738         * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
9739         m_day.
9740         (__tzcalc_limits): Fix reference to month array to be zero-based.
9741
9742 2004-12-07  Jeff Johnston  <jjohnstn@redhat.com>
9743
9744         * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
9745         and usleep.
9746
9747 2004-12-03  Jeff Johnston  <jjohnstn@redhat.com>
9748
9749         * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
9750         libgcc dependencies.
9751         (libm_la_LDFLAGS): Ditto.
9752         * Makefile.in: Regenerated.
9753
9754 2004-12-03  Shaun Jackman  <sjackman@gmail.com>
9755
9756         * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
9757         our link to use readlink so as to preserve any relative link created
9758         by install-toollibLIBRARIES.
9759         * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
9760
9761 2004-12-02  Shaun Jackman  <sjackman@gmail.com>
9762
9763         * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
9764         time_t before including sys/stat.h, which uses it.
9765         * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
9766         <linux/time.h> just prior to definition of __KERNEL__ so as to
9767         allow building on Debian Linux where otherwise, mktime would
9768         be redefined.
9769
9770 2004-11-26  Paul Brook  <paul@codesourcery.com>
9771
9772         * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
9773
9774 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
9775
9776         * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
9777         const for value string parameter to match Single Unix and glibc.
9778         * libc/stdlib/putenv.c: Ditto.
9779         * libc/stdlib/putenv_r.c: Ditto.
9780
9781 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
9782
9783         * libc/stdio/Makefile.am: Fix missing vfscanf.
9784         * libc/stdio/Makefile.in: Regenerated.
9785
9786 2004-11-23  Jeff Johnston  <jjohnstn@redhat.com>
9787
9788         * libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
9789         do some reordering.
9790         * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
9791         * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
9792         family functions.
9793         * libc/stdio/Makefile.in: Regenerated.
9794         * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
9795         * libc/stdio/iprintf.c: Ditto.
9796         * libc/stdio/local.h (__svfiscanf_r): New prototype.
9797         * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
9798         * libc/stdio/sniprintf.c: Move docs to siprintf.c.
9799         * libc/stdio/stdio.tex: Add new functions.
9800         * libc/stdio/vfscanf.c: Split out __sccl function to separate
9801         file and add special name defines so this file can be used
9802         to build vfiscanf.o.
9803         * libc/stdio/asiprintf.c: New file.
9804         * libc/stdio/fiscanf.c: Ditto.
9805         * libc/stdio/iscanf.c: Ditto.
9806         * libc/stdio/sccl.c: Ditto.
9807         * libc/stdio/siscanf.c: Ditto.
9808         * libc/stdio/vasiprintf.c: Ditto.
9809         * libc/stdio/viprintf.c: Ditto.
9810         * libc/stdio/viscanf.c: Ditto.
9811         * libc/stdio/vsiprintf.c: Ditto.
9812         * libc/stdio/vsiscanf.c: Ditto.
9813         * libc/stdio/vsniprintf.c: Ditto.
9814
9815 2004-11-19  Shaun Jackman  <sjackman@gmail.com>
9816
9817         * libc/include/stdio.h: Add sniprintf.
9818         * libc/stdio/Makefile.am: Add sniprintf.c.
9819         * libc/stdio/Makefile.in: Regenerated.
9820         * libc/stdio/sniprintf.c: New file.
9821         * libc/stdio/stdio.tex: Add sniprintf.
9822
9823 2004-11-17  Christopher Faylor  <cgf@timesys.com>
9824
9825         * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin.  Clear
9826         EOF flag if successful.
9827
9828 2004-10-28  Christopher Faylor  <cgf@timesys.com>
9829
9830         * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
9831         so that all relevant definitions have been performed for use in the
9832         include.
9833
9834 2004-10-26  Jason Tishler  <jason@tishler.net>
9835
9836         * libc/stdio/fread.c (fread): Fix return value for unbuffered
9837         fread.
9838
9839 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9840
9841         * libc/include/machine/setjmp.h: Add AVR support.
9842         * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
9843
9844 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
9845
9846         * libc/include/sys/signal.h: If <signal.h> didn't include
9847         this header file, include <signal.h> to account for
9848         applications that take advantage that the two header
9849         files are the same in glibc.
9850
9851 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
9852
9853         * configure.host: Add support for crx.
9854         * libc/include/machine/ieeefp.h: Ditto.
9855         * libc/include/machine/setjmp.h: Ditto.
9856         * libc/machine/crx/Makefile.am: New file.
9857         * libc/machine/crx/configure.in: Ditto.
9858         * libc/machine/crx/setjmp.S: Ditto.
9859         * libc/machine/crx/getenv.c: Ditto.
9860         * libc/machine/crx/aclocal.m4: Generate.
9861         * libc/machine/crx/configure: Ditto.
9862         * libc/machine/crx/Makefile.in: Ditto.
9863         * libc/machine/crx/sys/asm.h: New file.
9864         * libc/machine/crx/sys/libh.h: Ditto.
9865         * libc/machine/crx/sys/syscall.h: Ditto.
9866
9867 2004-10-05  Jeff Johnston  <jjohnstn@redhat.com>
9868
9869         * Makefile.am (stmp-targ-include): Support sys header files
9870         from machine directories.
9871         * Makefile.in: Regenerated.
9872
9873 2004-10-04  Jeff Johnston  <jjohnstn@redhat.com>
9874
9875         * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
9876         count skipped zero characters as part of the nread count for %n.
9877         * libc/machine/powerpc/vfscanf.c: Ditto.
9878
9879 2004-09-24  Jeff Johnston  <jjohnstn@redhat.com>
9880
9881         * libc/stdio/local.h: Include <stdlib.h>.
9882
9883 2004-09-24  Corinna Vinschen  <corinna@vinschen.de>
9884
9885         * libc/stdio/fread.c (fread): Include <malloc.h>.
9886
9887 2004-09-22  Jeff Johnston  <jjohnstn@redhat.com>
9888
9889         * libc/stdio/fread.c (fread):  For non-space-optimized case,
9890         add special code for unbuffered files to use user buffer and
9891         only require one low-level system read.
9892
9893 2004-09-21  Ian Lance Taylor  <ian@wasabisystems.com>
9894
9895         * libc/machine/xscale/setjmp.S: New file, copied from
9896         libc/machine/arm/setjmp.S.
9897         * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
9898         * libc/machine/xscale/Makefile.in: Regenerate.
9899
9900 2004-09-16  Antony King  <antony.king@st.com>
9901
9902         * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
9903         with locking API.
9904         * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add
9905         check for__SSTR in _flags and if set, skip lock request.
9906         (_funlockfile)[!SINGLE_THREAD]: Ditto.
9907         * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
9908         not NULL.
9909         * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
9910         initialisation of _file to -1 in local FILE.
9911         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
9912         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
9913         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
9914         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
9915         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
9916         _flags in local FILE to prevent locking.
9917         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
9918
9919 2004-09-16  Antony King  <antony.king@st.com>
9920
9921         * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
9922         and only walk the reentrancy parameter.
9923         (_fwalk_reent): Ditto.
9924         * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
9925
9926 2004-09-16  Antony King  <antony.king@st.com>
9927
9928         * libc/stdio64/freopen64.c: Remove casting of fp lock to
9929         _LOCK_RECURSIVE_T.
9930
9931 2004-09-16  Antony King  <antony.king@st.com>
9932
9933         * libc/time/tzlock.c: Add default stubs that use generic
9934         locking code.
9935
9936 2004-09-16  Antony King  <antony.king@st.com>
9937
9938         * libc/ctype/ctype.tex: Added missing documentation.
9939         * libc/stdio/stdio.tex Ditto.
9940         * libc/stdlib/stdlib.tex Ditto.
9941         * libc/string/strings.tex Ditto.
9942         * libc/time/time.tex: Ditto.
9943         * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
9944
9945 2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
9946
9947         * libc/reent/impure.c (reent_data): Define as alias to impure_data
9948         when building for Cygwin.
9949         * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
9950         _global_impure_ptr.
9951
9952 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
9953
9954         * configure.host: Reverting 2004-09-14 change as fix has occurred on
9955         Cygwin side.
9956         * configure.in: Ditto.
9957         * libc/configure.in: Ditto.
9958         * libc/sys/configure.in: Ditto.
9959         * configure: Ditto.
9960         * libc/configure: Ditto.
9961         * libc/sys/configure: Ditto.
9962         * libc/include/sys/reent.h: Ditto.
9963         * libc/stdlib/__atexit.c: Ditto.
9964         * libc/stdlib/__call_atexit.c: Ditto.
9965         * libc/stdlib/cxa_atexit.c: Ditto.
9966         * libc/stdlib/cxa_finalize.c: Ditto.
9967         * libc/sys/cygwin/Makefile.am: Removed again.
9968         * libc/sys/cygwin/Makefile.in: Ditto.
9969         * libc/sys/cygwin/aclocal.m4: Ditto.
9970         * libc/sys/cygwin/configure: Ditto.
9971         * libc/sys/cygwin/configure.in: Ditto.
9972         * libc/sys/cygwin/dummy.c: Ditto.
9973         * libc/sys/cygwin/sys/reent.h: Ditto.
9974
9975 2004-09-14  Jeff Johnston  <jjohnstn@redhat.com>
9976
9977         * configure.host: Add Cygwin sys directory.
9978         * configure.in: Do not set CRT0 for cygwin.
9979         * libc/configure.in: Ditto.
9980         * libc/sys/configure.in: Ditto.
9981         * configure: Regenerated.
9982         * libc/configure: Ditto.
9983         * libc/sys/configure: Ditto.
9984         * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
9985         * libc/stdlib/__atexit.c: Keep cxa support protected by new
9986         __REENT_HAS_CXA_SUPPORT flag.
9987         * libc/stdlib/__call_atexit.c: Ditto.
9988         * libc/stdlib/cxa_atexit.c: Ditto.
9989         * libc/stdlib/cxa_finalize.c: Ditto.
9990         * libc/sys/cygwin/Makefile.am: New file.
9991         * libc/sys/cygwin/Makefile.in: Ditto.
9992         * libc/sys/cygwin/aclocal.m4: Ditto.
9993         * libc/sys/cygwin/configure: Ditto.
9994         * libc/sys/cygwin/configure.in: Ditto.
9995         * libc/sys/cygwin/dummy.c: Ditto.
9996         * libc/sys/cygwin/sys/reent.h: Ditto.  This file is stabilized
9997         version of reent.h.
9998
9999 2004-09-13 Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
10000
10001         * libc/iconv/iconv.tex: Updated with new content.
10002         * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
10003         instead of NLS_DEFAULT_NLSPATH.
10004         * libc/iconv/lib/iconvnls.h: Fix typo.
10005         * libc/include/sys/iconvnls.h: New file.
10006
10007 2004-09-09  Paul Brook  <paul@codesourcery.com>
10008
10009         * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
10010         and _is_cxa.
10011         (struct _atexit): Add _next when _REENT_SMALL.
10012         (struct _reent): Add _atexit0 when _REENT_SMALL.
10013         (_REENT_INIT_PTR): Adjust.
10014         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
10015         __call_exit.c.
10016         (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
10017         * libc/stdlib/Makefile.in: Regenerate.
10018         * libc/stdlib/__atexit.c: New file.
10019         * libc/stdlib/__call_atexit.c: New file.
10020         * libc/stdlib/atexit.h: Remove old definitions.  Add new.
10021         * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
10022         * libc/stdlib/cxa_atexit.c: New file.
10023         * libc/stdlib/cxa_finalize.c: New file.
10024         * libc/stdlib/exit.c (exit): Use __call_exitprocs.
10025         * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
10026         2004-09-09  Jeff Johnston  <jjohnstn@redhat.com>
10027         * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
10028         _on_exit_args_ptr.
10029
10030 2004-08-23  Jeff Johnston  <jjohnstn@redhat.com>
10031
10032         * libc/include/sys/unistd.h (getpass): Change prototype to use
10033         const instead of __const.
10034
10035 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
10036
10037         * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
10038         #if.
10039
10040 2004-08-12  Jeff Johnston  <jjohnstn@redhat.com>
10041
10042         * libc/sys/linux/sys/types.h (u64): New typedef to allow building
10043         on linux systems with glibc 2.3.3 installed.
10044         * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
10045         profile_fixup so newlib can build on fc3 system.
10046
10047 2004-07-30  Alexandre Oliva  <aoliva@redhat.com>
10048
10049         Introduce SH2a support.
10050         2004-03-16  Corinna Vinschen  <vinschen@redhat.com>
10051         * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
10052         __SH2A_SINGLE_ONLY__, too.
10053         * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
10054         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
10055         * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu.  Fix comments.
10056         2004-02-10  DJ Delorie  <dj@redhat.com>
10057         * libc/sys/sh/crt0.S (start_l): Support sh2a.
10058
10059 2004-07-29  Jeff Johnston  <jjohnstn@redhat.com>
10060
10061         * libc/time/strptime.c: Correct full-name of "March" typo.
10062
10063 2004-07-16  Anil Paranjpe  <anilp1@kpitcummins.com>
10064
10065         * configure.host (h8300*-*-*): Default long long printing support.
10066
10067 2004-07-16  Jeff Johnston  <jjohnstn@redhat.com>
10068
10069         * libc/stdio/fvwrite.c (_sfvwrite):  For asprintf family
10070         calls, if realloc fails, free up buffer as it is no longer
10071         used.
10072
10073 2004-07-07  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
10074
10075         * libc/iconv/iconv.tex: Updated to represent recent changes.
10076         * libc/iconv/lib/iconv.c: Documentation updated.
10077
10078 2004-07-07  Nick Clifton  <nickc@redhat.com>
10079
10080         * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
10081         for xStormy16.
10082
10083 2004-07-06  Chris Demetriou  <cgd@broadcom.com>
10084
10085         * configure.host (mips*-*-elf*): Default long long printing
10086         support.
10087
10088 2004-07-05  Jeff Johnston  <jjohnstn@redhat.com>
10089
10090         * libc/Makefile.am (libc.dvi): Add target and specify
10091         same dependencies as libc.info.
10092         * libc/Makefile.in: Regenerated.
10093         * libm/Makefile.am (libm.dvi): Add target and specify
10094         same dependencies as libm.info.
10095         * libm/Makefile.in: Regenerated.
10096
10097 2004-06-29  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
10098
10099         * acinclude.m4: Move --enable-newlib-iconv option back here.
10100         * configure.in: Remove --enable-newlib-iconv option.  Don't
10101         tie iconv support to --enable-newlib-mb.
10102         * aclocal.m4: Regenerated.
10103         * configure: Ditto.
10104         * doc/aclocal.m4, doc/configure: Ditto.
10105         * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
10106         * libm/*/aclocal.m4: Ditto.
10107         * libm/*/configure: Ditto.
10108         * libc/*/aclocal.m4: Ditto.
10109         * libc/*/configure: Ditto.
10110
10111 2004-06-25  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
10112
10113         * acinclude.m4: Move iconv options into configure.in.
10114         * aclocal.m4: Regenerated.
10115         * configure: Ditto.
10116         * configure.in: Add iconv options.
10117         * newlib.hin: Add new iconv encodings and remove deleted ones.
10118         * doc/aclocal.m4: Regenerated.
10119         * doc/configure: Ditto.
10120         * iconvdata/aclocal.m4: Ditto.
10121         * iconvdata/configure: Ditto.
10122         * libc/iconv: Design change.  New size-optimized ccs format.
10123         * libc/iconv/AUTHORS: Removed.
10124         * libc/iconv/COPYING: Ditto.
10125         * libc/iconv/README.ORIGINAL: Ditto.
10126         * libc/iconv/README.TODO: Ditto.
10127         * libc/iconv/charset.aliases: Ditto.
10128         * libc/iconv/encoding.aliases: New file.
10129         * libc/iconv/Makefile.am: Updated.
10130         * libc/iconv/Makefile.in: Regenerated.
10131         * libc/iconv/iconv.tex: Updated.
10132         * libc/iconv/ccs/Makefile.am: Ditto.
10133         * libc/iconv/ccs/Makefile.in: Regenerated.
10134         * libc/iconv/ccs/big5.c: Updated.
10135         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
10136         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
10137         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
10138         * libc/iconv/ccs/cp775.c: Ditto.
10139         * libc/iconv/ccs/cp850.c: Ditto.
10140         * libc/iconv/ccs/cp852.c: Ditto.
10141         * libc/iconv/ccs/cp855.c: Ditto.
10142         * libc/iconv/ccs/cp866.c: Ditto.
10143         * libc/iconv/ccs/iso_8859_1.c: Ditto.
10144         * libc/iconv/ccs/README.CCS.SOURCES: Removed.
10145         * libc/iconv/ccs/gb_2312_80.c: Ditto.
10146         * libc/iconv/ccs/iconv_mktbl: Ditto.
10147         * libc/iconv/ccs/jis_x0201.c: Ditto.
10148         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
10149         * libc/iconv/ccs/shift_jis.c: Ditto.
10150         * libc/iconv/ccs/us_ascii.c: Ditto.
10151         * libc/iconv/ccs/ccs.h: New file.
10152         * libc/iconv/ccs/ccsbi.c: Ditto.
10153         * libc/iconv/ccs/ccsbi.h: Ditto.
10154         * libc/iconv/ccs/ccsnames.h: Ditto.
10155         * libc/iconv/ccs/iso_8859_10.c: Ditto.
10156         * libc/iconv/ccs/iso_8859_11.c: Ditto.
10157         * libc/iconv/ccs/iso_8859_13.c: Ditto.
10158         * libc/iconv/ccs/iso_8859_14.c: Ditto.
10159         * libc/iconv/ccs/iso_8859_3.c: Ditto.
10160         * libc/iconv/ccs/iso_8859_6.c: Ditto.
10161         * libc/iconv/ccs/iso_8859_7.c: Ditto.
10162         * libc/iconv/ccs/iso_8859_8.c: Ditto.
10163         * libc/iconv/ccs/iso_8859_9.c: Ditto.
10164         * libc/iconv/ccs/iso_ir_111.c: Ditto.
10165         * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
10166         * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
10167         * libc/iconv/ccs/koi8_ru.c: Ditto.
10168         * libc/iconv/ccs/koi8_uni.c: Ditto.
10169         * libc/iconv/ccs/mktbl.pl: Ditto.
10170         * libc/iconv/ccs/win_1250.c: Ditto.
10171         * libc/iconv/ccs/win_1251.c: Ditto.
10172         * libc/iconv/ccs/win_1252.c: Ditto.
10173         * libc/iconv/ccs/win_1253.c: Ditto.
10174         * libc/iconv/ccs/win_1254.c: Ditto.
10175         * libc/iconv/ccs/win_1255.c: Ditto.
10176         * libc/iconv/ccs/win_1256.c: Ditto.
10177         * libc/iconv/ccs/win_1257.c: Ditto.
10178         * libc/iconv/ccs/win_1258.c: Ditto.
10179         * libc/iconv/ccs/iso_8859_15.c: Updated.
10180         * libc/iconv/ccs/iso_8859_2.c: Ditto.
10181         * libc/iconv/ccs/iso_8859_4.c: Ditto.
10182         * libc/iconv/ccs/iso_8859_5.c: Ditto.
10183         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
10184         * libc/iconv/ccs/koi8_r.c: Ditto.
10185         * libc/iconv/ccs/koi8_u.c: Ditto.
10186         * libc/iconv/ccs/ksx1001.c: Ditto.
10187         * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
10188         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
10189         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
10190         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
10191         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
10192         * libc/iconv/ccs/binary/Makefile.am: Updated.
10193         * libc/iconv/ccs/binary/Makefile.in: Regenerated.
10194         * libc/iconv/ccs/binary/big5.cct: Updated.
10195         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
10196         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
10197         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
10198         * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
10199         * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
10200         * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
10201         * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
10202         * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
10203         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
10204         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
10205         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
10206         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
10207         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
10208         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
10209         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
10210         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
10211         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
10212         * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
10213         * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
10214         * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
10215         * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
10216         * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
10217         * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
10218         * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
10219         * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
10220         * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
10221         * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
10222         * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
10223         * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
10224         * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
10225         * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
10226         * libc/iconv/ccs/binary/win_1250.cct: Ditto.
10227         * libc/iconv/ccs/binary/win_1251.cct: Ditto.
10228         * libc/iconv/ccs/binary/win_1252.cct: Ditto.
10229         * libc/iconv/ccs/binary/win_1253.cct: Ditto.
10230         * libc/iconv/ccs/binary/win_1254.cct: Ditto.
10231         * libc/iconv/ccs/binary/win_1255.cct: Ditto.
10232         * libc/iconv/ccs/binary/win_1256.cct: Ditto.
10233         * libc/iconv/ccs/binary/win_1257.cct: Ditto.
10234         * libc/iconv/ccs/binary/win_1258.cct: Ditto.
10235         * libc/iconv/ces/Makefile.am: Updated.
10236         * libc/iconv/ces/Makefile.in: Regenerated.
10237         * libc/iconv/ces/ucs-2-internal.c: Updated.
10238         * libc/iconv/ces/ucs-4-internal.c: Ditto.
10239         * libc/iconv/ces/utf-16.c: Ditto.
10240         * libc/iconv/ces/utf-8.c: Ditto.
10241         * libc/iconv/ces/cesbi.c: New file.
10242         * libc/iconv/ces/cesbi.h: Ditto.
10243         * libc/iconv/ces/cesdeps.h: Ditto.
10244         * libc/iconv/ces/euc.c: Ditto.
10245         * libc/iconv/ces/mkdeps.pl: Ditto.
10246         * libc/iconv/ces/table-pcs.c: Ditto.
10247         * libc/iconv/ces/table.c: Ditto.
10248         * libc/iconv/ces/ucs-2.c: Ditto.
10249         * libc/iconv/ces/ucs-4.c: Ditto.
10250         * libc/iconv/ces/us-ascii.c: Ditto.
10251         * libc/iconv/ces/euc-jp.c: Removed.
10252         * libc/iconv/ces/euc-kr.c: Ditto.
10253         * libc/iconv/ces/euc-tw.c: Ditto.
10254         * libc/iconv/ces/gb2312.c: Ditto.
10255         * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
10256         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
10257         * libc/iconv/lib/Makefile.am: Updated.
10258         * libc/iconv/lib/Makefile.in: Regenerated.
10259         * libc/iconv/lib/endian.h: Updated.
10260         * libc/iconv/lib/iconv.c: Ditto.
10261         * libc/iconv/lib/local.h: Ditto.
10262         * libc/iconv/lib/aliases.c: Removed.
10263         * libc/iconv/lib/bialiasesi.c: Ditto.
10264         * libc/iconv/lib/biccs.c: Ditto.
10265         * libc/iconv/lib/bices.c: Ditto.
10266         * libc/iconv/lib/ccs.c: Ditto.
10267         * libc/iconv/lib/ces.c: Ditto.
10268         * libc/iconv/lib/ces_euc.c: Ditto.
10269         * libc/iconv/lib/ces_iso2022.c: Ditto.
10270         * libc/iconv/lib/ces_table.c: Ditto.
10271         * libc/iconv/lib/converter.c: Ditto.
10272         * libc/iconv/lib/deps.h: Ditto.
10273         * libc/iconv/lib/loaddata.c: Ditto.
10274         * libc/iconv/lib/aliasesbi.c: New file.
10275         * libc/iconv/lib/aliasesi.c: Ditto.
10276         * libc/iconv/lib/conv.h: Ditto.
10277         * libc/iconv/lib/encnames.h: Ditto.
10278         * libc/iconv/lib/encoding.deps: Ditto.
10279         * libc/iconv/lib/iconvnls.c: Ditto.
10280         * libc/iconv/lib/iconvnls.h: Ditto.
10281         * libc/iconv/lib/nullconv.c: Ditto.
10282         * libc/iconv/lib/ucsconv.c: Ditto.
10283         * libc/iconv/lib/ucsconv.h: Ditto.
10284         * libc/include/iconv.h: Update copyright.
10285         * libc/*/aclocal.m4: Regenerated.
10286         * libc/*/configure: Ditto.
10287         * libm/*/aclocal.m4: Ditto.
10288         * libm/*/configure: Ditto.
10289
10290 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
10291
10292         * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
10293         instead of typedefing jmp_buf.
10294
10295         2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
10296         * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
10297         * libc/machine/h8300/defines.h (LEN): New macro.
10298         * libc/machine/h8300/memcpy.S: Add h8sx version.
10299         * libc/machine/h8300/memset.S: Likewise.
10300         * libc/machine/h8300/strcmp.S: Likewise.
10301         * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
10302         * libc/machine/h8300/h8sx_strcpy.S: New file.
10303         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
10304         * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
10305         __H8300SX__.
10306         * libc/include/machine/setjmp.h: Likewise.
10307         * libc/include/sys/config.h: Likewise.
10308         * libc/machine/h8300/defines.h: Likewise.
10309         * libc/machine/h8300/setjmp.S: Likewise.
10310         * libc/machine/h8300/strcmp.S: Likewise.
10311         * libc/sys/h8300hms/close.S: Likewise.
10312         * libc/sys/h8300hms/fstat.S: Likewise.
10313         * libc/sys/h8300hms/lseek.S: Likewise.
10314         * libc/sys/h8300hms/read.S: Likewise.
10315         * libc/sys/h8300hms/write.S: Likewise.
10316         * libc/sys/h8300hms/crt0.S: Likewise.
10317         * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
10318         __H8300SX__ is defined.
10319         * libc/sys/h8300hms/setarch.h: Likewise.
10320
10321 2004-06-17  Jeff Johnston  <jjohnstn@redhat.com>
10322
10323         * libc/include/sys/reent.h (_GLOBAL_REENT): Back
10324         out change which set _GLOBAL_REENT to _global_impure_ptr until
10325         we understand why Cygwin breaks because of it.
10326
10327 2004-06-14  Jeff Johnston  <jjohnstn@redhat.com>
10328
10329         * libc/sys/linux/machine/i386/syscall.h: For now, set up
10330         __syscall_return macro for systems with vsyscall.
10331
10332 2004-06-11  Antony King  <antony.king@st.com>
10333
10334         * libc/include/sys/_types.h: Include <sys/lock.h> and change
10335         _flock_t to be of type _LOCK_RECURSIVE_T.
10336         * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
10337         (_REENT_INIT_PTR): Ditto.  Use memset where appropriate.
10338         (_global_impure_ptr): New declaration.
10339         (_GLOBAL_REENT): Change to be _global_impure_ptr.
10340         * libc/include/sys/stdio.h: Include <sys/lock.h> and
10341         <sys/reent.h>.
10342         (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
10343         (_funlockfile)[!SINGLE_THREAD]: Ditto.
10344         * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
10345         * libc/stdio/fclose.c: Remove casting of fp lock to
10346         _LOCK_RECURSIVE_T.
10347         * libc/stdio/findfp.c: Ditto.
10348         * libc/stdio/fopen.c: Ditto.
10349         * libc/stdio/freopen.c: Ditto.
10350         * libc/stdio/vfprintf.c: Ditto.
10351         * libc/stdio64/fopen64.c: Ditto.
10352         * libc/stdlib/envlock.c: Add default stubs that use generic
10353         locking code.
10354         * libc/stdlib/mlock.c: Ditto.
10355
10356         Jeff Johnston  <jjohnstn@redhat.com>
10357         * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
10358         (_flock_t): Change to be a struct containing a single member
10359         named mutex which is of type __flock_mutex_t.
10360
10361 2004-06-09  Jeff Johnston  <jjohnstn@redhat.com>
10362
10363         * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
10364         from /usr/include/asm/signal.h instead of kernel sources.  Also
10365         default max to 32 if not found in header file.
10366         * libc/sys/linux/Makefile.in: Regenerated.
10367         * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
10368         systems where __syscall_return is not defined.
10369         * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
10370         systems to use syscall() function instead of assembler interrupt.
10371
10372 2004-06-09  Toralf Lund  <toralf@procaptura.com>
10373
10374         * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
10375         files from libc/sys/arm to libc/machine/arm.
10376         * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
10377         library build support for files moved from libc/sys/arm.
10378         * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in:  Remove
10379         references to access and setjmp.
10380         * configure.host: Add checks for newlib_may_supply_syscalls to
10381         determine whether or not to use sys/arm directory and use
10382         special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
10383
10384 2004-06-02  Jeff Johnston  <jjohnstn@redhat.com>
10385
10386         * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
10387         reset digit flags appropriately after we have discovered "0x".
10388         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
10389
10390 2004-05-27  Jeff Johnston  <jjohnstn@redhat.com>
10391
10392         * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
10393         from here ...
10394         (_VFPRINTF_R): ... to here so all I/O printf routines
10395         are covered.
10396
10397 2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>
10398
10399         * libc/search/hash_buf.c: Protect MAX and MIN macros from
10400         redefinition.
10401         * libc/search/hash.c: Ditto.
10402
10403 2004-05-25  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10404
10405         * newlib.hin: (_WANT_IO_POS_ARGS): New define.
10406         (_WANT_IO_LONG_LONG): Ditto.
10407         (_WANT_IO_LONG_DOUBLE): Ditto.
10408         * configure.in: Add new configuration options
10409         --enable-newlib-io-long-long and --enable-newlib-io-long-double
10410         which tie to new defines in newlib.hin.
10411         * configure: Regenerated.
10412         * configure.host: Add checks for new configuration options.  Also
10413         fix up check for --enable-newlib-io-pos-args so configuration
10414         option will override any default for a given platform.
10415         Remove defining compiler flags for the _WANT_IO* options.
10416         * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
10417         instead of looking for old compiler flags.
10418         * libc/stdio/vfscanf.c: Ditto.
10419         * libc/stdio/vfieeefp.h: Ditto.
10420         * libc/machine/powerpc/vfprintf.c: Ditto.
10421         * libc/machine/powerpc/vfscanf.c: Ditto.
10422
10423 2004-05-25  Jeff Johnston  <jjohnstn@redhat.com>
10424
10425         * testsuite/include/check.h: Add include of <stdio.h>.
10426
10427 2004-05-17  Corinna Vinschen  <corinna@vinschen.de>
10428
10429         * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
10430
10431 2004-05-11  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10432
10433         * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
10434         of free.
10435
10436 2004-05-07  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10437
10438         * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
10439         list for reentrant pointer.  Call _vfiprintf_r.
10440         * libc/stdio/siprintf.c (_siprintf_r): New function.
10441         * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
10442         pointer argument.  Change all callers.  Call _VFPRINTF_R.
10443         * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
10444         prototypes.
10445
10446 2004-05-07  Jeff Johnston  <jjohnstn@redhat.com>
10447
10448         * libc/include/sys/param.h: Remove endian info and include
10449         <machine/endian.h> instead.
10450         * libc/include/machine/endian.h: New file.
10451         * libc/include/machine/param.h: Ditto.
10452         * libc/machine/arm/machine/endian.h: Ditto.
10453         * libc/machine/arm/machine/param.h: Ditto.
10454         * libc/sys/arm/sys/param.h: Removed.
10455         * libc/sys/sysvi386/sys/param.h: Ditto.
10456         * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
10457
10458 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10459
10460         * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
10461         multibyte functions return failure for %C, %S, %lc, and %ls
10462         format specifiers.
10463
10464 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10465
10466         * testsuite/include/check.h (CHECK): Add flush of stdout.
10467
10468 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10469
10470         * libc/include/stdio.h (_ungetc_r): New prototype.
10471         * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
10472         (__submore): Add reentrant struct pointer argument.
10473         (ungetc): Change to call _ungetc_r.
10474
10475 2004-04-28  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10476
10477         * libc/stdio/local.h (_fwalk_reent): Specify prototype of
10478         function pointer argument.
10479         * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
10480         to specify function pointer arguments.
10481         (__fwalk, __fwalk_reent): Ditto.
10482
10483 2004-04-26  Aldy Hernandez  <aldyh@redhat.com>
10484
10485         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
10486         CT_INT case.
10487
10488 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10489
10490         * configure.in: Define _MB_CAPABLE if mb supported.
10491         * configure: Regenerated.
10492         * configure.host: Remove manual setting of MB_CAPABLE compiler
10493         flag.
10494         * newlib.hin: Add _MB_CAPABLE flag.
10495         * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
10496         and check for _MB_CAPABLE flag instead of MB_CAPABLE.
10497         * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
10498         * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
10499         * libc/ctype/jp2uc.c: Ditto.
10500         * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
10501         * libc/locale/locale.c: Ditto
10502         * libc/machine/powerpc/vfscanf.c: Ditto
10503         * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
10504         * libc/stdlib/mblen.c: Ditto
10505         * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
10506         * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
10507         * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
10508         * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
10509         * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
10510         * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
10511         * libc/sys/linux/intl/explodename.c: Ditto
10512         * libc/sys/linux/intl/finddomain.c: Ditto
10513         * libc/sys/linux/intl/l10nflist.c: Ditto
10514         * libc/sys/linux/intl/loadmsgcat.c: Ditto
10515         * libc/sys/linux/intl/localealias.c: Ditto
10516
10517 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
10518
10519         * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
10520         (__svfscanf_r): In integer conversions, leave out leading zeroes
10521         which are not part of a base prefix.
10522         Keep track of width truncation to fit into buf, not counting left-out
10523         zeroes against width till the truncation has been compensated for.
10524         This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
10525
10526 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
10527
10528         * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
10529
10530 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10531
10532         * libc/stdio/asprintf.c libc/stdio/clearerr.c,
10533         libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
10534         libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
10535         libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
10536         libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
10537         libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
10538         libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
10539         libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
10540         libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
10541         libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
10542         libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
10543         libc/stdio/getchar.c libc/stdio/getchar_u.c,
10544         libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
10545         libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
10546         libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
10547         libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
10548         libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
10549         libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
10550         libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
10551         libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
10552         libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
10553         libc/stdio/siprintf.c libc/stdio/snprintf.c,
10554         libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
10555         libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
10556         libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
10557         libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
10558         libc/stdio/vprintf.c libc/stdio/vscanf.c,
10559         libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
10560         libc/stdio/vsscanf.c libc/stdio/wbuf.c,
10561         libc/stdio/wsetup.c: Perform minor formatting changes.  Move
10562         copyright notices to top of file, ensure that <_ansi.h> is
10563         included, be consistent with open parentheses, use _DEFUN macro,
10564         include "local.h" where needed, and remove various compiler
10565         warnings.
10566
10567 2004-04-21  J"orn Rennecke <joern.rennecke@superh.com>
10568
10569         * libc/stdio/vfscanf.c (NNZDIGITS): New define.
10570         (__svfscanf_r): In integer conversions, leave out leading zeroes
10571         which are not part of a base prefix.
10572         Keep track of width truncation to fit into buf, not counting left-out
10573         zeroes against width till the truncation has been compensated for.
10574
10575 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
10576
10577         * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
10578
10579 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
10580
10581         * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
10582
10583 2004-04-10  Corinna Vinschen  <corinna@vinschen.de>
10584
10585         * libc/include/sys/unistd.h (sync): Define void on Cygwin according
10586         to SUSv3.
10587
10588 2004-04-08  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10589
10590         * libc/stdio/fclose.c (_fclose_r): New function.
10591         * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
10592         * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
10593         * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
10594         * libc/include/stdio.h (_fclose_r): New prototype.
10595         * libc/stdio/fopen.c: Fix typo in comment.
10596
10597 2004-04-08  Jeff Johnston  <jjohnstn@redhat.com>
10598
10599         * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
10600         to handle _r reentrant functions.
10601
10602 2004-04-08  Eric Christopher  <echristo@redhat.com>
10603
10604         * libc/include/machine/setjmp.h: Fix endif locations.
10605
10606 2004-04-01  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10607
10608         * libc/time/strptime.c: Add standard includes to avoid
10609         warning messages at compilation time.
10610
10611 2004-04-01  Jeff Johnston  <jjohnstn@redhat.com>
10612
10613         * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
10614         of file.
10615
10616 2004-03-30  Jeff Johnston  <jjohnstn@redhat.com>
10617
10618         * libc/machine/h8300/Makefile.am: Reformat slightly.
10619         * libc/machine/h8300/Makefile.in: Regenerate.
10620
10621 2004-03-30  Thomas Pfaff  <tpfaff@gmx.net>
10622
10623         * libc/stdio/findfp.c (__fp_lock_all): Add call to
10624         __sfp_lock_acquire.
10625         (__fp_unlock_all): Add call to __sfp_lock_release.
10626
10627 2004-03-25  Thomas Pfaff  <tpfaff@gmx.net>
10628
10629         * libc/stdio/fclose.c (fclose): Protect file pointer list when
10630         releasing a file.
10631          * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
10632         fwalk.
10633         * libc/stdio/fdopen.c (_fdopen_r): Add calls to
10634         _flockfile/_funlockfile.
10635         * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
10636         to recursive.
10637         Change __lock_acquire/__lock_release calls for __sfp_lock to
10638         __sfp_lock_acquire/__sfp_lock_release throughout.
10639         (std): Make sure that file lock is only initialized once.
10640         (__sfp): Move _file initialization. Initialize file lock.
10641         (__sfp_lock_acquire): New function.
10642         (__sfp_lock_release): Ditto.
10643         (__fp_lock_all): Remove __sfp_lock_acquire call.
10644         (__fp_unlock_all): Remove __sfp_lock_release call.
10645         * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
10646         Add calls to _flockfile/_funlockfile. Remove
10647         __lock_init_recursive call.
10648         * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
10649         * libc/stdio/fwalk.c (__fwalk): New static function.
10650         (_fwalk): Protect file pointer list. Use __fwalk to walk through
10651         file pointers.
10652         * libc/stdio/local.h: Add defines for
10653         __sfp_lock_acquire/__sfp_lock_release when
10654         single threaded. Add function prototypes otherwise.
10655         * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
10656         _flockfile/_funlockfile.
10657         * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
10658         Add calls to _flockfile/_funlockfile. Remove
10659          __lock_init_recursive call.
10660         * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
10661         list.
10662
10663 2004-03-25  Jeff Johnston  <jjohnstn@redhat.com>
10664
10665         * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
10666         defined.  Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
10667         * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
10668         to be __LOCK_INIT_RECURSIVE.
10669
10670 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
10671
10672         * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
10673         _exit.c with _exit.S.
10674         * libc/sys/h8300hms/Makefile.in: Regenerate.
10675         * libc/sys/h8300hms/_exit.c: Remove.
10676         * libc/sys/h8300hms/_exit.S: New.
10677
10678 2004-03-09  Thomas Pfaff  <tpfaff@gmx.net>
10679
10680         * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
10681         Change __sfp_lock to static global.
10682         (__fp_lock): New static function.
10683         (__fp_unlock): Ditto.
10684         (__fp_lock_all): New function.
10685         (__fp_unlock_all): Ditto.
10686
10687 2004-02-10  Christopher Faylor  <cgf@redhat.com>
10688
10689         * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
10690         * libm/mathfp/er_lgamma.c (lgamma): Ditto.
10691         * libm/mathfp/erf_gamma.c (gammaf): Ditto.
10692         * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
10693
10694 2004-02-09  Christopher Faylor  <cgf@redhat.com>
10695
10696         * libc/include/time.h (TIMER_RELTIME): New define.
10697
10698 2004-02-09  Jeff Johnston  <jjohnstn@redhat.com>
10699
10700         * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
10701         * libc/stdlib/Makefile.in: Regenerated.
10702
10703 2004-02-08  Christopher Faylor  <cgf@redhat.com>
10704
10705         * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
10706         * libc/include/sys/reent.h (__getreent): Protect against possibly being
10707         defined.
10708         * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
10709
10710 2004-02-05  Paul Brook  <paul@codesourcery.com>
10711
10712         * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set
10713         IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
10714
10715 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
10716
10717         * NEWS: Update with 1.12.0 info.
10718         * README: Ditto.
10719         * acinclude.m4: Change version number to 1.12.0.
10720         * aclocal.m4: Regenerated.
10721         * configure: Ditto.
10722         * doc/aclocal.m4: Ditto.
10723         * doc/configure: Ditto.
10724         * libc/*/aclocal.m4: Ditto.
10725         * libc/*/configure: Ditto.
10726         * libc/libc.texinfo: Ditto.
10727         * libm/*/aclocal.m4: Ditto.
10728         * libm/*/configure: Ditto.
10729         * libm/libm.texinfo: Ditto.
10730         * libc/sys/linux/shared.ld: Add VERS_1.12.
10731
10732 2004-02-02  Joel Sherrill  <joel@oarcorp.com>
10733
10734         * configure.host: Add support for tic4x.
10735         * libc/include/machine/ieeefp.h: Ditto.
10736         * libc/include/machine/setjmp.h: Ditto.
10737         * libc/machine/tic4x/Makefile.am: New file.
10738         * libc/machine/tic4x/configure.in: Ditto.
10739         * libc/machine/tic4x/setjmp.S: Ditto.
10740         * libc/machine/tic4x/aclocal.m4: Generated.
10741         * libc/machine/tic4x/configure: Ditto.
10742         * libc/machine/tic4x/Makefile.in: Ditto.
10743
10744 2004-01-30  Jeff Johnston  <jjohnstn@redhat.com>
10745
10746         * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
10747         file chain on the passed in reentrancy struct if it
10748         is _GLOBAL_REENT.
10749
10750 2004-01-30  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10751             Jeff Johnston  <jjohnstn@redhat.com>
10752
10753         * libc/iconv/iconv.tex: Updated with more information.
10754
10755 2004-01-30  Thomas Pfaff  <tpfaff@gmx.net>
10756             Jeff Johnston  <jjohnstn@redhat.com>
10757
10758         * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
10759         struct for std streams and traverse the global reeentrancy
10760         struct for all other streams.
10761
10762 2004-01-27  Jeff Johnston  <jjohnstn@redhat.com>
10763
10764         * libc/stdlib/atexit.c: Protect global atexit list with a
10765         lock when newlib is multithreaded.
10766
10767 2004-01-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10768
10769         * configure.in: Add support to generate iconv converter flags
10770         for newlib.h
10771         * newlib.hin: Add iconv converter flags.
10772         * configure: Regenerated.
10773         * libc/Makefile.in: Ditto.
10774         * libc/configure.in: Moved iconv converter parsing logic to
10775         top level newlib configure.in.
10776         * libc/configure: Regenerated.
10777         * libc/iconv/Makefile.in: Ditto.
10778         * libc/iconv/README.TODO
10779         * libc/iconv/charset.aliases: Remove wrong BE aliases for
10780         UCS2/UCS4/UTF8.
10781         * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
10782         newlib.h can be used.
10783         * libc/iconv/ces/Makefile.am: Ditto.
10784         * libc/iconv/lib/Makefile.am: Ditto.
10785         * libc/iconv/ccs/Makefile.in: Regenerated.
10786         * libc/iconv/ces/Makefile.in: Ditto.
10787         * libc/iconv/lib/Makefile.in: Ditto.
10788         * libc/iconv/ccs/README.CCS.SOURCES: Updated.
10789         * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
10790         * libc/iconv/ccs/big5.c: Switch to use new underscored flags
10791         defined in newlib.h.
10792         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
10793         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
10794         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
10795         * libc/iconv/ccs/cp775.c: Ditto.
10796         * libc/iconv/ccs/cp850.c: Ditto.
10797         * libc/iconv/ccs/cp852.c: Ditto.
10798         * libc/iconv/ccs/cp855.c: Ditto.
10799         * libc/iconv/ccs/cp866.c: Ditto.
10800         * libc/iconv/ccs/gb_2312_80.c: Ditto.
10801         * libc/iconv/ccs/iso_8859_1.c: Ditto.
10802         * libc/iconv/ccs/iso_8859_15.c: Ditto.
10803         * libc/iconv/ccs/iso_8859_2.c: Ditto.
10804         * libc/iconv/ccs/iso_8859_4.c: Ditto.
10805         * libc/iconv/ccs/iso_8859_5.c: Ditto.
10806         * libc/iconv/ccs/jis_x0201.c: Ditto.
10807         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
10808         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
10809         * libc/iconv/ccs/koi8_r.c: Ditto.
10810         * libc/iconv/ccs/koi8_u.c: Ditto.
10811         * libc/iconv/ccs/ksx1001.c: Ditto.
10812         * libc/iconv/ccs/shift_jis.c: Ditto.
10813         * libc/iconv/ccs/us_ascii.c: Ditto.
10814         * libc/iconv/ccs/binary/big5.cct: Newly generated.
10815         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
10816         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
10817         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
10818         * libc/iconv/ccs/binary/cp775.cct: Ditto.
10819         * libc/iconv/ccs/binary/cp850.cct: Ditto.
10820         * libc/iconv/ccs/binary/cp852.cct: Ditto.
10821         * libc/iconv/ccs/binary/cp855.cct: Ditto.
10822         * libc/iconv/ccs/binary/cp866.cct: Ditto.
10823         * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
10824         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
10825         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
10826         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
10827         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
10828         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
10829         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
10830         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
10831         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
10832         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
10833         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
10834         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
10835         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
10836         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
10837         * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
10838         * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
10839         * libc/iconv/ces/euc-kr.c: Ditto.
10840         * libc/iconv/ces/euc-tw.c: Ditto.
10841         * libc/iconv/ces/gb2312.c: Ditto.
10842         * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
10843         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
10844         * libc/iconv/ces/ucs-2-internal.c: Ditto.
10845         * libc/iconv/ces/ucs-4-internal.c: Ditto.
10846         * libc/iconv/ces/utf-16.c: Ditto.
10847         * libc/iconv/ces/utf-8.c: Ditto.
10848         * libc/iconv/lib/aliases.c: Ditto.
10849         * libc/iconv/lib/biccs.c: Ditto.
10850         * libc/iconv/lib/bices.c: Ditto.
10851         * libc/iconv/lib/ccs.c: Ditto.
10852         * libc/iconv/lib/ces.c: Ditto.
10853         * libc/iconv/lib/ces_euc.c: Ditto.
10854         * libc/iconv/lib/ces_iso2022.c: Ditto.
10855         * libc/iconv/lib/ces_table.c: Ditto.
10856         * libc/iconv/lib/converter.c: Ditto.
10857         * libc/iconv/lib/deps.h: Ditto.
10858         * libc/iconv/lib/endian.h: Ditto.
10859         * libc/iconv/lib/iconv.c: Ditto.
10860         * libc/iconv/lib/loaddata.c: Ditto.
10861         * libc/iconv/lib/local.h: Include newlib.h.
10862         * libc/argz/Makefile.in: Regenerated.
10863         * libc/ctype/Makefile.in: Ditto.
10864         * libc/errno/Makefile.in: Ditto.
10865         * libc/iconv/ccs/binary/Makefile.in: Ditto.
10866         * libc/locale/Makefile.in: Ditto.
10867         * libc/misc/Makefile.in: Ditto.
10868         * libc/posix/Makefile.in: Ditto.
10869         * libc/reent/Makefile.in: Ditto.
10870         * libc/search/Makefile.in: Ditto.
10871         * libc/signal/Makefile.in: Ditto.
10872         * libc/stdio/Makefile.in: Ditto.
10873         * libc/stdio64/Makefile.in: Ditto.
10874         * libc/stdlib/Makefile.in: Ditto.
10875         * libc/string/Makefile.in: Ditto.
10876         * libc/syscalls/Makefile.in: Ditto.
10877         * libc/time/Makefile.in: Ditto.
10878         * libc/unix/Makefile.in: Ditto.
10879         * testsuite/newlib.iconv/iconv.exp: New file.
10880         * testsuite/newlib.iconv/iconvjp.c: Ditto.
10881         * testsuite/newlib.iconv/iconvnm.c: Ditto.
10882         * testsuite/newlib.iconv/iconvru.c: Ditto.
10883
10884 2004-01-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10885
10886         * acinclude.m4 (--enable-newlib-iconv): New configuration option.
10887         (--enable-newlib-builtin-converters): Ditto.
10888         * configure.in: Add code to set _ICONV_ENABLED flag.
10889         Set _MB_LEN_MAX to 1 if not mb enabled.
10890         * configure: Regenerated.
10891         * aclocal.m4: Ditto.
10892         * Makefile.in: Ditto.
10893         * newlib.hin: Add _ICONV_ENABLED flag.
10894         * libc/Makefile.am: Add support for iconv.
10895         * libc/configure.in: Ditto.
10896         * libc/Makefile.in: Regenerated.
10897         * libc/aclocal.m4: Ditto.
10898         * libc/configure: Ditto.
10899         * libc/libc.texinfo: Add iconv documentation.
10900         * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
10901         libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
10902         libc/iconv/README.TODO, libc/iconv/charset.aliases,
10903         libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
10904         libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
10905         libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
10906         libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
10907         libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
10908         libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
10909         libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
10910         libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
10911         libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
10912         libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
10913         libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
10914         libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
10915         libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
10916         libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
10917         libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
10918         libc/iconv/ccs/binary/big5.cct,
10919         libc/iconv/ccs/binary/cns11643_plane1.cct,
10920         libc/iconv/ccs/binary/cns11643_plane14.cct,
10921         libc/iconv/ccs/binary/cns11643_plane2.cct,
10922         libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
10923         libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
10924         libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
10925         libc/iconv/ccs/binary/iso_8859_1.cct,
10926         libc/iconv/ccs/binary/iso_8859_15.cct,
10927         libc/iconv/ccs/binary/iso_8859_2.cct,
10928         libc/iconv/ccs/binary/iso_8859_4.cct,
10929         libc/iconv/ccs/binary/iso_8859_5.cct,
10930         libc/iconv/ccs/binary/jis_x0201.cct,
10931         libc/iconv/ccs/binary/jis_x0208_1983.cct,
10932         libc/iconv/ccs/binary/jis_x0212_1990.cct,
10933         libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
10934         libc/iconv/ccs/binary/ksx1001.cct,
10935         libc/iconv/ccs/binary/shift_jis.cct,
10936         libc/iconv/ccs/binary/us_ascii.cct,
10937         libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
10938         libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
10939         libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
10940         libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
10941         libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
10942         libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
10943         libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
10944         libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
10945         libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
10946         libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
10947         libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
10948         libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
10949         libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
10950         libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
10951         libc/iconv/lib/local.h, libc/include/iconv.h: New files.
10952         * libc/sys/linux/include/iconv.h: Ditto.
10953         * libc/include/sys/_types.h (_iconv_t): Added.
10954         * doc/aclocal.m4: Regenerated.
10955         * doc/configure: Ditto.
10956         * doc/Makefile.in: Ditto.
10957         * iconvdata/Makefile.in: Ditto.
10958         * iconvdata/aclocal.m4: Ditto.
10959         * iconvdata/configure: Ditto.
10960         * libc/*aclocal.m4: Ditto.
10961         * libc/*Makefile.in: Ditto.
10962         * libc/*configure: Ditto.
10963         * libm/*aclocal.m4: Ditto.
10964         * libm/*Makefile.in: Ditto.
10965         * libm/*configure: Ditto.
10966
10967 2004-01-22  Thomas Pfaff  <tpfaff@gmx.net>
10968
10969         * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
10970         by a lock when newlib is multithreaded.
10971
10972 2004-01-21  Jeff Johnston  <jjohnstn@redhat.com>
10973
10974         * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
10975         pointer to match C99 spec.
10976         * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
10977         dst is NULL.  Also fix to not alter src pointer when dst is NULL
10978         and call _mbrtowc_r instead of _mbtowc_r.
10979         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
10980         of _wctomb_r.
10981
10982 2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>
10983
10984         * libc/stdio/fclose.c (fclose): Release FILE as the last step.
10985         * libc/stdio/freopen.c (freopen): Ditto.
10986
10987 2004-01-16  Christopher Faylor  <cgf@redhat.com>
10988
10989         * libc/stdio/vfprintf.c: Add sys/lock.h include.
10990
10991 2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>
10992
10993         * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
10994         * libc/stdio/vfprintf.c (__sbprintf): Ditto.
10995         Add calls to __lock_init_recursive and __lock_close_recursive
10996         instead.
10997
10998 2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>
10999
11000         * libc/stdio/fclose.c: Include sys/lock.h.
11001         (fclose): Destroy lock when file is closed.
11002         * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
11003         member.
11004         * libc/stdio/freopen.c: Include sys/lock.h.
11005         (_freopen_r): Destroy lock when file is closed.
11006         * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
11007         _lock member.
11008
11009 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
11010
11011         * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
11012         Remove warnings.
11013
11014 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
11015
11016         * libc/sys/rtems/sys/queue.h: New file.
11017         * libc/include/sys/signal.h: Reflect renumbering of signals to
11018         fit into 32-bit mask.
11019         * libc/include/sys/unistd.h: Add fdatasync() prototype.
11020         * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
11021         required.  In particular, add the reentrant variants of libc calls.
11022         * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
11023
11024 2004-01-06  Mark Mitchell  <mark@codesourcery.com>
11025
11026         * libc/sys/arm/syscalls.c (unistd.h): Include it.
11027         (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
11028         Similarly for stdout and stderr.
11029
11030 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
11031
11032         * libc/libc.texinfo: Correct escape character for @ sign
11033         so file will be processed by make info.  Update copyright years.
11034         * libm/libm.texinfo: Ditto.
11035
11036 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
11037
11038         * libc/include/sys/stat.h: No longer include stat-dj.h.
11039         * libc/include/sys/stat-dj.h: Removed.
11040
11041 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
11042
11043         * libc/include/wchar.h: Include <sys/reent.h>.
11044
11045 2003-12-05  Christopher Faylor  <cgf@redhat.com>
11046
11047         * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
11048         when defining _mbrtowc.
11049         * libc/stdlib/mbsinit.c: Ditto.
11050         * libc/stdlib/mbsrtowcs.c: Ditto.
11051         * libc/stdlib/wcrtomb.c: Ditto.
11052         * libc/stdlib/wcsrtombs.c: Ditto.
11053         * libc/stdlib/wctob.c: Ditto.
11054
11055 2003-12-05  Christopher Faylor  <cgf@redhat.com>
11056
11057         * libc/stdlib/mbrlen.c: Change include order to prevent compiler
11058         errors when defining _mbrtowc.
11059         * libc/stdlib/mbsinit.c: Ditto.
11060         * libc/stdlib/mbsrtowcs.c: Ditto.
11061
11062 2003-12-05  Christopher Faylor  <cgf@redhat.com>
11063
11064         * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
11065         errors when defining _mbrtowc.
11066
11067 2003-12-04  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
11068
11069         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
11070         of mb routines for %lc and %ls support.
11071         * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
11072         %ls, and %S support.  Remove CYGNUS_NEC markers and
11073         code within.
11074
11075 2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>
11076
11077         * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
11078         _wcrtomb_r, and _wcsrtombs_r.
11079
11080 2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
11081
11082         * libc/include/sys/fcntl.h: Don't define struct flock when on
11083         Cygwin.  This is done in winsup/cygwin/include/cygwin/types.h now.
11084
11085 2003-11-28  Christopher Faylor  <cgf@redhat.com>
11086
11087         * libc/include/sys/signal.h: Use system specific signal file when
11088         building on cygwin.
11089
11090 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
11091
11092         * libc/include/stdlib.h (_atoi_r): New prototype.
11093         * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
11094
11095 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
11096
11097         * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
11098         * libc/stdlib/atol.c (_atol_r): New reentrant function.
11099         * libc/stdlib/atoll.c (_atoll_r): Ditto.
11100
11101 2003-11-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
11102             Jeff Johnston  <jjohnstn@redhat.com>
11103
11104         * libc/include/stdlib.h (lldiv_t): New type.
11105         (atoll, llabs, lldiv): New prototypes.
11106         * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
11107         * libc/stdlib/stdlib.tex: Ditto.
11108         * libc/stdlib/Makefile.in: Regenerated.
11109         * libc/stdlib/atoll.c: New file.
11110         * libc/stdlib/llabs.c: Ditto.
11111         * libc/stdlib/lldiv.c: Ditto.
11112
11113 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
11114
11115         * libc/include/fcntl.h: Declare syscalls only when building newlib.
11116         * libc/include/unistd.h: Ditto.
11117         * libc/include/stat.h: Ditto.  Also declare struct stat64.
11118
11119 2003-11-24  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
11120
11121         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
11122         specifier to use ch instead of *fmt.
11123
11124 2003-11-21  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
11125
11126         * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
11127         code within checks for MB_CAPABLE.  For non-mb-capable platforms,
11128         use simple byte logic.
11129
11130 2003-11-21  Jeff Johnston  <jjohnstn@redhat.com>
11131
11132         * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
11133         _strtold routine for processing floats and doubles since it
11134         is not as fast as _strtod_r.
11135
11136 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
11137
11138         * libc/machine/h8300/defines.h : Correct pointer register defines
11139         for normal mode.
11140         * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
11141         for normal mode.
11142         * libc/machine/h8300/reg_memcpy.S : Likewise.
11143         * libc/machine/h8300/reg_memset.S : Likewise.
11144         * libc/machine/h8300/strcmp.S : Likewise.
11145
11146 2003-11-19  Nicholas Wourms  <nwourms@netscape.net>
11147
11148         * configure.host: Enable positional arguments for printf
11149         family for Cygwin.
11150         * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
11151         pointer reference for quad_ptr_t.
11152
11153 2003-11-19  Jeff Johnston  <jjohnstn@redhat.com>
11154
11155         * libc/stdio/scanf.c: Don't include local.h more than once.
11156
11157 2003-11-18  Corinna Vinschen  <corinna@vinschen.de>
11158
11159         * libc/include/sys/fcntl.h: Declare _open64.
11160         * libc/include/sys/stat.h: Declare _fstat64.
11161         * libc/include/sys/unistd.h: Declare _lseek64.
11162
11163 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
11164
11165         * libc/include/stdlib.h (getprogname): Declare for Cygwin.
11166         (setprogname): Ditto.
11167
11168 2003-11-10  Jeff Johnston  <jjohnstn@redhat.com>
11169
11170         * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
11171         to use (Ebits + 1) which accounts for the sign-bit.
11172
11173 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
11174
11175         * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux
11176         x86 build.
11177         * iconvdata/Makefile.am: Make dependent on newlib's configure.host
11178         and set up default flags to pass to aclocal.
11179         * iconvdata/Makefile.in: Regenerated.
11180         * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
11181         and getpwuid routines.
11182         * libc/sys/linux/Makefile.in: Regenerated.
11183         * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
11184         applications to link with newlib's shared libc library.
11185         * libc/sys/linux/getpwnam.c: Ditto.
11186         * libc/sys/linux/getpwuid.c: Ditto.
11187         * libc/sys/linux/sys/types.h: Include <features.h> and supply types
11188         that were formerly supplied by /usr/include/linux/types.h with
11189         kernel types.
11190         * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
11191         test _ELIX_LEVEL macro.
11192
11193 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
11194
11195         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
11196         referring to _NO_LONGLONG macro.
11197
11198 2003-11-06  Jeff Johnston  <jjohnstn@redhat.com>
11199
11200         * libc/sys/linux/linuxthreads/td_init.c: Replace function name
11201         in LOG() macro so this will compile on gcc 3.4 and up.
11202         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
11203         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
11204         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
11205         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
11206         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
11207         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
11208         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
11209         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
11210         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
11211         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
11212         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
11213         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
11214         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
11215         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
11216         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
11217         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
11218         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
11219         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
11220         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
11221         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
11222         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
11223         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
11224         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
11225         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
11226         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
11227         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
11228         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
11229         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
11230         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
11231         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
11232         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
11233         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
11234         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
11235         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
11236         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
11237         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
11238
11239 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
11240             Artem B. Bityuckiy  <abitytsky@softminecorp.com>
11241
11242         * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
11243         %ls, %S, %lc, and %C format specifiers.
11244         (get_arg): Ditto.
11245         * libc/stdio/sprintf.c: Add documentation regarding new
11246         format specifiers added in vfprintf.c.
11247
11248 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
11249
11250         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
11251         to make code work as specified in standard.
11252
11253 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
11254
11255         * configure.in: Use absolute newlib basedir when forming
11256         CC_FOR_NEWLIB include options.
11257         * configure: Regenerated.
11258
11259 2003-10-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
11260
11261         * libc/string/wcsnlen.c: New file.
11262         * libc/include/wchar.h: Add wcsnlen prototype.
11263         * libc/string/Makefile.am: Add wcsnlen support.
11264         * libc/string/Makefile.in: Regenerated.
11265         * libc/string/wcstrings.tex: Add wcsnlen documentation.
11266
11267 2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
11268
11269         * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
11270
11271 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
11272
11273         * libc/locale/locale.c: Use double quotes in code.
11274         * libc/locale/locale.tex: Likewise.
11275         * libc/libc.texinfo: Hyphenate "floating-point".
11276         * libc/machine/necv70/necv70.tex: Likewise.
11277         * libc/stdio/sprintf.c: Likewise.
11278         * libc/stdio/sscanf.c: Likewise.
11279         * libc/stdlib/atof.c: Likewise.
11280         * libc/stdlib/ldtoa.c: Fix comment typo.
11281         * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
11282         * libc/stdlib/ldiv.c: Likewise.
11283         * libm/common/s_expm1.c: Likewise.
11284         * libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
11285         * libm/common/s_infinity: Hyphenate "double- and single-precision".
11286         * libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
11287         * libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
11288         and "floating-point".
11289         * libm/common/s_scalbn.c: Correct the FUNCTION summary.
11290         * libm/math/e_pow.c: Fix comment typo.
11291         * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
11292         * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
11293         * libm/math/s_atan.c: Likewise.
11294         * libm/math/s_frexp.c: Likewise.  Also use "nonzero".
11295         * libm/math/s_isnan.c: Hyphenate "single-precision" and
11296         "floating-point".  Use "nonzero".
11297         * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
11298         * libm/math/w_acos.c: Likewise.
11299         * libm/math/w_acosh.c: Likewise.
11300         * libm/math/w_asin.c: Likewise.
11301         * libm/math/w_atan2.c: Likewise.
11302         * libm/math/w_atanh.c: Likewise.
11303         * libm/math/w_cosh.c: Likewise.
11304         * libm/math/w_exp.c: Likewise.
11305         * libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
11306         version of 2^x in the description.
11307         * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
11308         * libm/math/w_gamma.c: Likewise.
11309         * libm/math/w_hypot.c: Likewise.
11310         * libm/math/w_j0.c: Likewise.
11311         * libm/math/w_sinh.c: Likewise.
11312         * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
11313         * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
11314         "floating-point".
11315         * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
11316         * libm/mathfp/e_atanh.c: Likewise.
11317         * libm/mathfp/e_hypot.c: Likewise.
11318         * libm/mathfp/er_lgamma.c: Likewise.
11319         * libm/mathfp/s_acos.c: Likewise.
11320         * libm/mathfp/s_asine.c: Likewise.
11321         * libm/mathfp/s_asinh.c: Likewise.
11322         * libm/mathfp/s_atan.c: Likewise.
11323         * libm/mathfp/s_atan2.c: Likewise.
11324         * libm/mathfp/s_atangent.c: Likewise.
11325         * libm/mathfp/s_cosh.c: Likewise.
11326         * libm/mathfp/s_exp.c: Likewise.
11327         * libm/mathfp/s_fmod.c: Likewise.
11328         * libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
11329         * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
11330         "floating-point".  Use "nonzero".
11331         * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
11332         * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
11333         * libm/mathfp/s_sineh.c: Likewise.
11334         * libm/mathfp/w_jn.c: Likewise.
11335
11336 2003-10-15  Alexandre Oliva  <aoliva@redhat.com>
11337
11338         * Makefile.am: Add $(MAKE) comments to multido and multiclean
11339         lines, to enable parallel make.
11340         * Makefile.in: Rebuilt.
11341
11342 2003-10-14  Christopher Faylor  <cgf@redhat.com>
11343
11344         * libc/time/clock.c: Clarify documentation of return value when no
11345         measurement is available.
11346
11347 2003-09-29  Ian Lance Taylor  <ian@wasabisystems.com>
11348
11349         * libm/configure.in: Check libm_machine_dir, not machine_dir.
11350         * libm/configure: Regenerate.
11351         * libm/Makefile.in: Ditto.
11352
11353 2003-09-29  J"orn Rennecke <joern.rennecke@superh.com>
11354
11355         * libc/machine/sh/strncpy.S: New file.
11356         * libc/machine/sh/Makefile.am: Add entry & rule for new file.
11357         * libc/machine/sh/Makefile.in: Regenerate.
11358
11359 2003-09-11  James E Wilson  <wilson@specifixinc.com>
11360
11361         * MAINTAINERS: Update my e-mail address.
11362
11363 2003-09-10  Corinna Vinschen  <corinna@vinschen.de>
11364
11365         * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
11366
11367 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
11368
11369         * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
11370         prototype.
11371         * libc/machine/powerpc/simdldtoa.c: Remove prototype for
11372         _simdldcheck().  Also add unsigned cast for index variable in
11373         for loop using sizeof operators.
11374         * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
11375         * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
11376         * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
11377         plus fix shift calculation for determining if there is a
11378         carry from word2.
11379
11380 2003-09-09  Corinna Vinschen  <corinna@vinschen.de>
11381
11382         * libc/include/grp.h: Don't define setgrfile, group_from_gid and
11383         setgroupent for Cygwin.
11384
11385 2003-09-05  Jeff Johnston  <jjohnstn@redhat.com>
11386
11387         * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
11388         is different for _REENT_SMALL than when using regular reent
11389         struct.
11390
11391 2003-09-05  Ben Elliston  <bje@wasabisystems.com>
11392
11393         * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
11394         modern versions of GCC issue a warning.
11395
11396         * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
11397         after continuation characters that induces a warning from modern
11398         versions of GCC.
11399
11400 2003-09-04  Ben Elliston  <bje@wasabisystems.com>
11401
11402         * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards.  #ifndef FOO ||
11403         FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
11404
11405 2003-09-02  Thomas Pfaff  <tpfaff@gmx.net>
11406
11407         * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
11408         * libc/stdlib/exit.c : Ditto.
11409         * libc/stdlib/on_exit.c: Ditto.
11410
11411 2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
11412
11413         * libc/include/reent.h: Define stat64 as __stat64 when
11414         compiling newlib for Cygwin.
11415
11416 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
11417
11418         * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
11419         __stat64 when compiling newlib.
11420
11421 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
11422
11423         * libc/include/stdio.h: Allow the io64 function prototypes for
11424         Cygwin when compiling newlib.
11425         * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
11426         to expose the Cygwin struct __stat64 type.
11427         * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
11428         pointer.
11429         * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
11430
11431 2003-08-23  Christopher Faylor  <cgf@redhat.com>
11432
11433         * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
11434         definition to fseeko64.
11435
11436 2003-08-22  Jeff Johnston  <jjohnstn@redhat.com>
11437
11438         * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
11439         * libc/stdio: Globally remove/replace all references to fp->_data.
11440         Replace with _REENT or _GLOBAL_REENT where appropriate.
11441         * libc/stdio/asprintf.c: Ditto.
11442         * libc/stdio/fclose.c: Ditto.
11443         * libc/stdio/fvwrite.c: Ditto.
11444         * libc/stdio/makebuf.c: Ditto.
11445         * libc/stdio/refill.c: Ditto.
11446         * libc/stdio/local.h: Ditto.
11447         * libc/stdio/setvbuf.c: Ditto.
11448         * libc/stdio/sscanf.c: Ditto.
11449         * libc/stdio/stdio.c: Ditto.
11450         * libc/stdio/ungetc.c: Ditto.
11451         * libc/stdio/vfscanf.c: Ditto.
11452         * libc/stdio/vsscanf.c: Ditto.
11453         * libc/stdio/fopen.c: Ditto.  Also use _fseek_r in _fopen_r.
11454         * libc/stdio/vasprintf.c: Ditto.  Also call _vfprintf_r directly.
11455         * libc/stdio/vsnprintf.c: Ditto.
11456         * libc/stdio/vsprintf.c: Ditto.
11457         * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
11458         instead of _REENT to walk file list.
11459         * libc/stdio/fflush.c: Ditto.
11460         * libc/stdio/fgetpos.c: Add reentrant version and have regular
11461         version call reentrant version with _REENT argument.
11462         * libc/stdio/fsetpos.c: Ditto.
11463         * libc/stdio/fseek.c: Ditto.
11464         * libc/stdio/fseeko.c: Ditto.
11465         * libc/stdio/ftell.c: Ditto.
11466         * libc/stdio/ftello.c: Ditto.
11467         * libc/stdio/freopen.c: Ditto.
11468         * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
11469         new files to chain.  Also use _GLOBAL_REENT pointer for
11470         cleaning up.
11471         * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
11472         * libc/stdio/siprintf.c: Ditto.
11473         * libc/stdio/iprintf.c: Ditto.
11474         * libc/stdio/fprintf.c: Ditto.
11475         * libc/stdio/printf.c: Ditto.
11476         * libc/stdio/snprintf.c: Call _vfprintf_r directly.
11477         * libc/stdio/sprintf.c: Ditto.
11478         * libc/stdio/vprintf.c: Ditto.  Also add _REENT_ONLY check.
11479         * libc/stdio/rewind.c: Call _fseek_r directly.
11480         * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
11481         * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
11482         data pointer.
11483         (get_arg): Add extra struct _reent pointer argument.
11484         * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
11485         to fp->_data.
11486         * libc/stdio64/fopen64.c: Ditto.
11487         * libc/stdio64/freopen64.c: Ditto.
11488         * libc/stdio64/fsetpos64.c: Ditto.
11489         * libc/stdio64/ftello64.c: Ditto.
11490         * libc/stdio64/local64.h: Ditto.
11491         * libc/stdio64/stdio64.c: Ditto.
11492         * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
11493         _fstat64_r for the meantime.
11494
11495 2003-08-19  Jeff Johnston  <jjohnstn@redhat.com>
11496
11497         * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
11498         overflow detection.
11499
11500 2003-08-13  Aldy Hernandez  <aldyh@redhat.com>
11501
11502         * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
11503         extern "C".
11504
11505 2003-08-13  Jeff Johnston  <jjohnstn@redhat.com>
11506
11507         * libc/include/math.h: Add prototypes for __signbitf and
11508         __signbitd.
11509
11510 2003-07-31  Jeff Johnston  <jjohnstn@redhat.com>
11511
11512         * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
11513         correct type of conversion when dealing with EUCJP or SJIS.
11514         * libc/ctype/iswblank.c: Ditto.
11515         * libc/ctype/iswcntrl.c: Ditto.
11516         * libc/ctype/iswprint.c: Ditto.
11517         * libc/ctype/iswpunct.c: Ditto.
11518         * libc/ctype/iswspace.c: Ditto.
11519         * libc/ctype/towlower.c: Ditto.
11520         * libc/ctype/towupper.c: Ditto.
11521
11522 2003-07-31  Nick Clifton  <nickc@redhat.com>
11523
11524         * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
11525         before calling main, in case it saves its argument registers.
11526         Remove reference to deleted v850ea port.
11527         * configure.host: Remove reference to deleted v850ea port.
11528         Do not use -mv850 when building for v850e target.  This
11529         prevents the ctbp system register from being initialised.
11530
11531 2003-07-29  Honda Hiroki  <hhonda@ipflex.com>
11532
11533         * libc/stdio/vfprintf.c: Set output size to 1 when
11534         we have %f format with precision 0 and # flag not specified.
11535
11536 2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
11537
11538         * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
11539         .am33_2.
11540
11541 2003-07-25  Christopher Faylor  <cgf@redhat.com>
11542
11543         * libc/stdio64/fdopen64.c: Include sys/lock.h.
11544
11545 2003-07-25  Christopher Faylor  <cgf@redhat.com>
11546
11547         * configure.host: Find cygwin include directory, when appropriate.
11548
11549 2003-07-24  Christopher Faylor  <cgf@redhat.com>
11550
11551         * libc/stdio64/fdopen64.c: New file.
11552         * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
11553         * libc/stdio64/Makefile.in: Regenerate.
11554         * libc/include/stdio.h (fdopen64): Define.
11555         * libc/include/stdio.h (_fdopen64_r): Ditto.
11556
11557 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
11558
11559         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
11560         * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
11561         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
11562         restore callee-saved FP registers.
11563
11564 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
11565
11566         * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
11567         for __sh__.
11568         * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
11569         truncate.c.
11570         * libc/sys/sh/Makefile.in: Regenerate.
11571         * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
11572         * libc/sys/sh/ftruncate.c: New file.
11573         * libc/sys/sh/truncate.c: Likewise.
11574
11575 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
11576
11577         * libc/include/math.h (nan, nanf): Update prototype to C99.
11578         * libm/common/s_nan.c (nan): Likewise.
11579         * libm/common/s_nanf.c (nanf, nan): Likewise.
11580         * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
11581
11582 2003-07-07  Jeff Johnston  <jjohnstn@redhat.com>
11583
11584         * libc/include/stdbool.h: Removed as this is defined by gcc.
11585
11586 2003-07-03  Shaun Jackman  <sjackman@pathwayconnect.com>
11587
11588         * libc/include/stdbool.h: New header file defined by C99.
11589
11590 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
11591
11592         * libc/include/sys/types.h (int8_t): Make signed.
11593
11594 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
11595
11596         * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
11597
11598 2003-06-27  Jose Goncalves  <jose.goncalves@inov.pt>
11599
11600         * libc/sys/linux/mq_open.c (mq_open): Only set created flag
11601         on if we actually created the shared memory file exclusively.
11602
11603 2003-06-27  Joe Vornehm  <joev@mitre.org>
11604
11605         * libm/common/s_fpclassify.c (__fpclassifyf): Fix
11606         comparisons to account for unsigned internal value w.
11607
11608 2003-06-26  Jeff Johnston  <jjohnstn@redhat.com>
11609
11610         * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
11611         wrbuf for a non-creating open.
11612
11613 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
11614
11615         * libc/machine/h8300/setarch.h: New.
11616         * libc/machine/h8300/memcpy.S: Use it.
11617         * libc/machine/h8300/memset.S: Likewise.
11618         * libc/machine/h8300/reg_memcpy.S: Likewise.
11619         * libc/machine/h8300/reg_memset.S: Likewise.
11620         * libc/machine/h8300/setjmp.S: Likewise.
11621         * libc/machine/h8300/strcmp.S: Likewise.
11622
11623 2003-06-24  Richard Sandiford  <rsandifo@redhat.com>
11624
11625         * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
11626         to atexit().
11627
11628 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
11629
11630         * configure.host (iq2000): Add tabs.
11631
11632 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
11633
11634         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
11635         to handle latest on_exit change.
11636         * libc/sys/linux/Makefile.am: Remove special compilation
11637         for malloc.c and mcheck.c.
11638         * libc/sys/linux/Makefile.in: Regenerated.
11639         * libc/sys/linux/mntent.c: Add definition of _LIBC flag
11640         after including <features.h>.
11641         * libc/sys/linux/mcheck.c: Ditto.
11642         * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
11643         for <features.h>.
11644         * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
11645         add -DNOT_IN_libc to C flags.
11646         * libc/sys/linux/intl/Makefile.in: Regenerated.
11647         * libc/sys/linux/intl/config.h: Add definition of _LIBC.
11648         * libc/sys/linux/linuxthreads/semaphore.h: Include
11649         <bits/pthreadtypes.h>.
11650         * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
11651         including <features.h>.
11652         * libc/sys/linux/sys/lock.h: Ditto.
11653
11654 2003-06-11  Nick Clifton  <nickc@redhat.com>
11655
11656         * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
11657         _on_exit_args_ptr.
11658
11659 2003-06-10  Stan Cox  <scox@redhat.com>
11660             Anthony Green  <green@redhat.com>
11661
11662         * configure.host: Add iq2000 support.
11663         * newlib/libc/include/machine/ieeefp.h: Ditto.
11664         * newlib/libc/include/machine/setjmp.h: Ditto.
11665         * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
11666         libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
11667         libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
11668         libc/machine/iq2000/Makefile.in: New files.
11669
11670 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
11671
11672         * libc/sys/h8300hms/setarch.h: New file.
11673         * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
11674         libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
11675         libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
11676         libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
11677
11678 2003-06-06  Jeff Johnston  <jjohnstn@redhat.com>
11679
11680         * libc/argz/argz_add.c: Change to use _DEFUN macro for function
11681         definition.
11682         * libc/argz/argz_add_sep.c: Ditto.
11683         * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
11684         * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
11685         * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
11686         * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
11687         * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
11688         * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
11689         * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
11690         * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
11691         * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
11692         * libc/posix/closedir.c libc/posix/creat.c: Ditto.
11693         * libc/posix/execl.c libc/posix/execle.c: Ditto.
11694         * libc/posix/execlp.c libc/posix/execve.c: Ditto.
11695         * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
11696         * libc/posix/popen.c libc/posix/readdir.c: Ditto.
11697         * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
11698         * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
11699         * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
11700         * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
11701         * libc/search/tfind.c libc/search/tsearch.c: Ditto.
11702         * libc/search/twalk.c libc/signal/signal.c: Ditto.
11703
11704 2003-06-05  Nick Clifton  <nickc@redhat.com>
11705
11706         * libc/include/sys/reent.h (struct _on_exit_args): New
11707         structure containing fields used by the on_exit() function.
11708         (struct _atexit): Include struct _on_exit_args.  For
11709         _REENT_SMALL do his via a pointer that is initialised when
11710         needed.
11711         * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
11712         structure, if one has been allocated.
11713         * libc/stdlib/atexit.c (atexit): Update indirection to
11714         _fntypes field.
11715         * libc/stdlib/on_exit.c (on_exit): Indirect via the
11716         _on_exit_args structure.  For _REENT_SMALL, allocate a
11717         structure if one does not exist.
11718         * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
11719         structure.
11720
11721 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
11722
11723         * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
11724         * libc/sys/linux/net/Makefile.in: Regenerated.
11725
11726 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
11727
11728         * libc/reent/execr.c: Use _DEFUN macro for function declaration.
11729         * libc/reent/fcntlr.c: Ditto.
11730         * libc/reent/fstat64r.c: Ditto.
11731         * libc/reent/linkr.c: Ditto.
11732         * libc/reent/lseek64r.c: Ditto.
11733         * libc/reent/lseekr.c: Ditto.
11734         * libc/reent/openr.c: Ditto.
11735         * libc/reent/readr.c: Ditto.
11736         * libc/reent/reent.c: Ditto.
11737         * libc/reent/sbrkr.c: Ditto.
11738         * libc/reent/signalr.c: Ditto.
11739         * libc/reent/signgam.c: Ditto.
11740         * libc/reent/statr.c: Ditto.
11741         * libc/reent/timer.c: Ditto.
11742         * libc/reent/unlinkr.c: Ditto.
11743         * libc/reent/writer.c: Ditto.
11744         * libc/syscalls/sysclose.c: Ditto.
11745         * libc/syscalls/sysexecve.c: Ditto.
11746         * libc/syscalls/sysfcntl.c: Ditto.
11747         * libc/syscalls/sysfork.c: Ditto.
11748         * libc/syscalls/sysfstat.c: Ditto.
11749         * libc/syscalls/sysgetpid.c: Ditto.
11750         * libc/syscalls/sysgettod.c: Ditto.
11751         * libc/syscalls/syskill.c: Ditto.
11752         * libc/syscalls/syslink.c: Ditto.
11753         * libc/syscalls/syslseek.c: Ditto.
11754         * libc/syscalls/sysopen.c: Ditto.
11755         * libc/syscalls/sysread.c: Ditto.
11756         * libc/syscalls/syssbrk.c: Ditto.
11757         * libc/syscalls/sysstat.c: Ditto.
11758         * libc/syscalls/systimes.c: Ditto.
11759         * libc/syscalls/sysunlink.c: Ditto.
11760         * libc/syscalls/syswait.c: Ditto.
11761         * libc/syscalls/syswrite.c: Ditto.
11762
11763 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
11764
11765         * libc/time/tzset_r.c: Change local variables that are
11766         set via sscanf using the %h format specifier to be unsigned short
11767         instead of int.
11768
11769 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
11770
11771         * configure.host:  Allow i[34567]86 variant.
11772         * configure.in: Likewise.
11773         * README: Likewise to the docs.
11774         * configure: Regenerated.
11775         * Makefile.in: Ditto.
11776
11777 2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>
11778             Tom Fitzsimmons  <fitzsim@redhat.com>
11779
11780         * configure.in: Add iconvdata support for x86 linux.
11781         * configure: Regenerated.
11782         * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic
11783         library, iconv, and linuxthreads support.
11784         * libc/sys/linux/configure.in: Ditto.
11785         * libc/sys/linux/Makefile.in: Regenerated.
11786         * libc/sys/linux/configure: Ditto.
11787         * iconvdata/EUC-JP.irreversible: New file.
11788         * iconvdata/Makefile.am: Ditto.
11789         * iconvdata/Makefile.in: Ditto.
11790         * iconvdata/SJIS.irreversible: Ditto.
11791         * iconvdata/aclocal.m4: Ditto.
11792         * iconvdata/configure: Ditto.
11793         * iconvdata/configure.in: Ditto.
11794         * iconvdata/dummy.c: Ditto.
11795         * iconvdata/euc-jp.c: Ditto.
11796         * iconvdata/gconv-modules: Ditto.
11797         * iconvdata/jis0201.c: Ditto.
11798         * iconvdata/jis0201.h: Ditto.
11799         * iconvdata/jis0208.c: Ditto.
11800         * iconvdata/jis0208.h: Ditto.
11801         * iconvdata/jis0212.c: Ditto.
11802         * iconvdata/jis0212.h: Ditto.
11803         * iconvdata/sjis.c: Ditto.
11804         * libc/include/errno.h: Protect definition of error_t.
11805         * libc/sys/linux/gethostid.c: New file.
11806         * libc/sys/linux/sethostid.c: Ditto.
11807         * libc/sys/linux/dl/Makefile.am: Ditto.
11808         * libc/sys/linux/dl/Makefile.in: Ditto.
11809         * libc/sys/linux/dl/abi-tag.h: Ditto.
11810         * libc/sys/linux/dl/atomicity.h: Ditto.
11811         * libc/sys/linux/dl/dl-addr.c: Ditto.
11812         * libc/sys/linux/dl/dl-cache.c: Ditto.
11813         * libc/sys/linux/dl/dl-cache.h: Ditto.
11814         * libc/sys/linux/dl/dl-close.c: Ditto.
11815         * libc/sys/linux/dl/dl-debug.c: Ditto.
11816         * libc/sys/linux/dl/dl-deps.c: Ditto.
11817         * libc/sys/linux/dl/dl-dst.h: Ditto.
11818         * libc/sys/linux/dl/dl-error.c: Ditto.
11819         * libc/sys/linux/dl/dl-fini.c: Ditto.
11820         * libc/sys/linux/dl/dl-init.c: Ditto.
11821         * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
11822         * libc/sys/linux/dl/dl-libc.c: Ditto.
11823         * libc/sys/linux/dl/dl-librecon.h: Ditto.
11824         * libc/sys/linux/dl/dl-load.c: Ditto.
11825         * libc/sys/linux/dl/dl-lookup.c: Ditto.
11826         * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
11827         * libc/sys/linux/dl/dl-minimal.c: Ditto.
11828         * libc/sys/linux/dl/dl-misc.c: Ditto.
11829         * libc/sys/linux/dl/dl-object.c: Ditto.
11830         * libc/sys/linux/dl/dl-open.c: Ditto.
11831         * libc/sys/linux/dl/dl-osinfo.h: Ditto.
11832         * libc/sys/linux/dl/dl-profile.c: Ditto.
11833         * libc/sys/linux/dl/dl-profstub.c: Ditto.
11834         * libc/sys/linux/dl/dl-reloc.c: Ditto.
11835         * libc/sys/linux/dl/dl-runtime.c: Ditto.
11836         * libc/sys/linux/dl/dl-support.c: Ditto.
11837         * libc/sys/linux/dl/dl-sym.c: Ditto.
11838         * libc/sys/linux/dl/dl-version.c: Ditto.
11839         * libc/sys/linux/dl/dlfcn.h: Ditto.
11840         * libc/sys/linux/dl/do-lookup.h: Ditto.
11841         * libc/sys/linux/dl/do-rel.h: Ditto.
11842         * libc/sys/linux/dl/dynamic-link.h: Ditto.
11843         * libc/sys/linux/dl/kernel-features.h: Ditto.
11844         * libc/sys/linux/dl/ldsodefs.h: Ditto.
11845         * libc/sys/linux/dl/libintl.h: Ditto.
11846         * libc/sys/linux/dl/trusted-dirs.h: Ditto.
11847         * libc/sys/linux/dl/unsecvars.h: Ditto.
11848         * libc/sys/linux/iconv/Makefile.am: Ditto.
11849         * libc/sys/linux/iconv/Makefile.in: Ditto.
11850         * libc/sys/linux/iconv/categories.def: Ditto.
11851         * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
11852         * libc/sys/linux/iconv/gconv.c: Ditto.
11853         * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
11854         * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
11855         * libc/sys/linux/iconv/gconv_cache.c: Ditto.
11856         * libc/sys/linux/iconv/gconv_charset.h: Ditto.
11857         * libc/sys/linux/iconv/gconv_close.c: Ditto.
11858         * libc/sys/linux/iconv/gconv_conf.c: Ditto.
11859         * libc/sys/linux/iconv/gconv_db.c: Ditto.
11860         * libc/sys/linux/iconv/gconv_dl.c: Ditto.
11861         * libc/sys/linux/iconv/gconv_int.h: Ditto.
11862         * libc/sys/linux/iconv/gconv_open.c: Ditto.
11863         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
11864         * libc/sys/linux/iconv/gconv_trans.c: Ditto.
11865         * libc/sys/linux/iconv/hash-string.h: Ditto.
11866         * libc/sys/linux/iconv/iconv.c: Ditto.
11867         * libc/sys/linux/iconv/iconv.h: Ditto.
11868         * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
11869         * libc/sys/linux/iconv/iconv_close.c: Ditto.
11870         * libc/sys/linux/iconv/iconv_open.c: Ditto.
11871         * libc/sys/linux/iconv/iconvconfig.c: Ditto.
11872         * libc/sys/linux/iconv/iconvconfig.h: Ditto.
11873         * libc/sys/linux/iconv/loadinfo.h: Ditto.
11874         * libc/sys/linux/iconv/localeinfo.h: Ditto.
11875         * libc/sys/linux/iconv/loop.c: Ditto.
11876         * libc/sys/linux/iconv/skeleton.c: Ditto.
11877         * libc/sys/linux/iconv/strtab.c: Ditto.
11878         * libc/sys/linux/include/dl-hash.h: Ditto.
11879         * libc/sys/linux/include/dlfcn.h: Ditto.
11880         * libc/sys/linux/include/fnmatch.h: Ditto.
11881         * libc/sys/linux/include/gconv.h: Ditto.
11882         * libc/sys/linux/include/glob.h: Ditto.
11883         * libc/sys/linux/include/hesiod.h: Ditto.
11884         * libc/sys/linux/include/ifaddrs.h: Ditto.
11885         * libc/sys/linux/include/libc_private.h: Ditto.
11886         * libc/sys/linux/include/link.h: Ditto.
11887         * libc/sys/linux/include/namespace.h: Ditto.
11888         * libc/sys/linux/include/netconfig.h: Ditto.
11889         * libc/sys/linux/include/netdb.h: Ditto.
11890         * libc/sys/linux/include/nsswitch.h: Ditto.
11891         * libc/sys/linux/include/regex.h: Ditto.
11892         * libc/sys/linux/include/resolv.h: Ditto.
11893         * libc/sys/linux/include/rune.h: Ditto.
11894         * libc/sys/linux/include/runetype.h: Ditto.
11895         * libc/sys/linux/include/semaphore.h: Ditto.
11896         * libc/sys/linux/include/setlocale.h: Ditto.
11897         * libc/sys/linux/include/un-namespace.h: Ditto.
11898         * libc/sys/linux/include/wordexp.h: Ditto.
11899         * libc/sys/linux/include/arpa/ftp.h: Ditto.
11900         * libc/sys/linux/include/arpa/inet.h: Ditto.
11901         * libc/sys/linux/include/arpa/nameser.h: Ditto.
11902         * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
11903         * libc/sys/linux/include/arpa/telnet.h: Ditto.
11904         * libc/sys/linux/include/arpa/tftp.h: Ditto.
11905         * libc/sys/linux/include/net/bpf.h: Ditto.
11906         * libc/sys/linux/include/net/bpf_compat.h: Ditto.
11907         * libc/sys/linux/include/net/bpfdesc.h: Ditto.
11908         * libc/sys/linux/include/net/bridge.h: Ditto.
11909         * libc/sys/linux/include/net/ethernet.h: Ditto.
11910         * libc/sys/linux/include/net/fddi.h: Ditto.
11911         * libc/sys/linux/include/net/if.h: Ditto.
11912         * libc/sys/linux/include/net/if_arc.h: Ditto.
11913         * libc/sys/linux/include/net/if_arp.h: Ditto.
11914         * libc/sys/linux/include/net/if_atm.h: Ditto.
11915         * libc/sys/linux/include/net/if_dl.h: Ditto.
11916         * libc/sys/linux/include/net/if_gif.h: Ditto.
11917         * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
11918         * libc/sys/linux/include/net/if_llc.h: Ditto.
11919         * libc/sys/linux/include/net/if_media.h: Ditto.
11920         * libc/sys/linux/include/net/if_mib.h: Ditto.
11921         * libc/sys/linux/include/net/if_ppp.h: Ditto.
11922         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
11923         * libc/sys/linux/include/net/if_slvar.h: Ditto.
11924         * libc/sys/linux/include/net/if_sppp.h: Ditto.
11925         * libc/sys/linux/include/net/if_stf.h: Ditto.
11926         * libc/sys/linux/include/net/if_tap.h: Ditto.
11927         * libc/sys/linux/include/net/if_tapvar.h: Ditto.
11928         * libc/sys/linux/include/net/if_tun.h: Ditto.
11929         * libc/sys/linux/include/net/if_tunvar.h: Ditto.
11930         * libc/sys/linux/include/net/if_types.h: Ditto.
11931         * libc/sys/linux/include/net/if_var.h: Ditto.
11932         * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
11933         * libc/sys/linux/include/net/intrq.h: Ditto.
11934         * libc/sys/linux/include/net/iso88025.h: Ditto.
11935         * libc/sys/linux/include/net/net_osdep.h: Ditto.
11936         * libc/sys/linux/include/net/netisr.h: Ditto.
11937         * libc/sys/linux/include/net/pfil.h: Ditto.
11938         * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
11939         * libc/sys/linux/include/net/ppp_comp.h: Ditto.
11940         * libc/sys/linux/include/net/ppp_defs.h: Ditto.
11941         * libc/sys/linux/include/net/radix.h: Ditto.
11942         * libc/sys/linux/include/net/raw_cb.h: Ditto.
11943         * libc/sys/linux/include/net/route.h: Ditto.
11944         * libc/sys/linux/include/net/slcompress.h: Ditto.
11945         * libc/sys/linux/include/net/slip.h: Ditto.
11946         * libc/sys/linux/include/net/zlib.h: Ditto.
11947         * libc/sys/linux/include/netinet/icmp6.h: Ditto.
11948         * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
11949         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
11950         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
11951         * libc/sys/linux/include/netinet/igmp.h: Ditto.
11952         * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
11953         * libc/sys/linux/include/netinet/in.h: Ditto.
11954         * libc/sys/linux/include/netinet/in_gif.h: Ditto.
11955         * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
11956         * libc/sys/linux/include/netinet/in_systm.h: Ditto.
11957         * libc/sys/linux/include/netinet/in_var.h: Ditto.
11958         * libc/sys/linux/include/netinet/ip.h: Ditto.
11959         * libc/sys/linux/include/netinet/ip6.h: Ditto.
11960         * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
11961         * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
11962         * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
11963         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
11964         * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
11965         * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
11966         * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
11967         * libc/sys/linux/include/netinet/ip_var.h: Ditto.
11968         * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
11969         * libc/sys/linux/include/netinet/tcp.h: Ditto.
11970         * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
11971         * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
11972         * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
11973         * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
11974         * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
11975         * libc/sys/linux/include/netinet/tcpip.h: Ditto.
11976         * libc/sys/linux/include/netinet/udp.h: Ditto.
11977         * libc/sys/linux/include/netinet/udp_var.h: Ditto.
11978         * libc/sys/linux/include/netinet6/ah.h: Ditto.
11979         * libc/sys/linux/include/netinet6/ah6.h: Ditto.
11980         * libc/sys/linux/include/netinet6/esp.h: Ditto.
11981         * libc/sys/linux/include/netinet6/esp6.h: Ditto.
11982         * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
11983         * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
11984         * libc/sys/linux/include/netinet6/in6.h: Ditto.
11985         * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
11986         * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
11987         * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
11988         * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
11989         * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
11990         * libc/sys/linux/include/netinet6/ip6.h: Ditto.
11991         * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
11992         * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
11993         * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
11994         * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
11995         * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
11996         * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
11997         * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
11998         * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
11999         * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
12000         * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
12001         * libc/sys/linux/include/netinet6/nd6.h: Ditto.
12002         * libc/sys/linux/include/netinet6/pim6.h: Ditto.
12003         * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
12004         * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
12005         * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
12006         * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
12007         * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
12008         * libc/sys/linux/include/netns/idp.h: Ditto.
12009         * libc/sys/linux/include/netns/idp_var.h: Ditto.
12010         * libc/sys/linux/include/netns/ns.h: Ditto.
12011         * libc/sys/linux/include/netns/ns_error.h: Ditto.
12012         * libc/sys/linux/include/netns/ns_if.h: Ditto.
12013         * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
12014         * libc/sys/linux/include/netns/sp.h: Ditto.
12015         * libc/sys/linux/include/netns/spidp.h: Ditto.
12016         * libc/sys/linux/include/netns/spp_debug.h: Ditto.
12017         * libc/sys/linux/include/netns/spp_timer.h: Ditto.
12018         * libc/sys/linux/include/netns/spp_var.h: Ditto.
12019         * libc/sys/linux/include/rpc/Makefile: Ditto.
12020         * libc/sys/linux/include/rpc/auth.h: Ditto.
12021         * libc/sys/linux/include/rpc/auth_des.h: Ditto.
12022         * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
12023         * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
12024         * libc/sys/linux/include/rpc/clnt.h: Ditto.
12025         * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
12026         * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
12027         * libc/sys/linux/include/rpc/des.h: Ditto.
12028         * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
12029         * libc/sys/linux/include/rpc/nettype.h: Ditto.
12030         * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
12031         * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
12032         * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
12033         * libc/sys/linux/include/rpc/raw.h: Ditto.
12034         * libc/sys/linux/include/rpc/rpc.h: Ditto.
12035         * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
12036         * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
12037         * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
12038         * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
12039         * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
12040         * libc/sys/linux/include/rpc/rpcent.h: Ditto.
12041         * libc/sys/linux/include/rpc/svc.h: Ditto.
12042         * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
12043         * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
12044         * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
12045         * libc/sys/linux/include/rpc/types.h: Ditto.
12046         * libc/sys/linux/include/rpc/xdr.h: Ditto.
12047         * libc/sys/linux/intl/Makefile.am: Ditto.
12048         * libc/sys/linux/intl/Makefile.in: Ditto.
12049         * libc/sys/linux/intl/bindtextdom.c: Ditto.
12050         * libc/sys/linux/intl/catgets.c: Ditto.
12051         * libc/sys/linux/intl/catgetsinfo.h: Ditto.
12052         * libc/sys/linux/intl/config.h: Ditto.
12053         * libc/sys/linux/intl/dcgettext.c: Ditto.
12054         * libc/sys/linux/intl/dcigettext.c: Ditto.
12055         * libc/sys/linux/intl/dcngettext.c: Ditto.
12056         * libc/sys/linux/intl/dgettext.c: Ditto.
12057         * libc/sys/linux/intl/dngettext.c: Ditto.
12058         * libc/sys/linux/intl/explodename.c: Ditto.
12059         * libc/sys/linux/intl/finddomain.c: Ditto.
12060         * libc/sys/linux/intl/gettext.c: Ditto.
12061         * libc/sys/linux/intl/gettext.h: Ditto.
12062         * libc/sys/linux/intl/gettextP.h: Ditto.
12063         * libc/sys/linux/intl/hash-string.h: Ditto.
12064         * libc/sys/linux/intl/l10nflist.c: Ditto.
12065         * libc/sys/linux/intl/loadinfo.h: Ditto.
12066         * libc/sys/linux/intl/loadmsgcat.c: Ditto.
12067         * libc/sys/linux/intl/locale.alias: Ditto.
12068         * libc/sys/linux/intl/localealias.c: Ditto.
12069         * libc/sys/linux/intl/ngettext.c: Ditto.
12070         * libc/sys/linux/intl/open_catalog.c: Ditto.
12071         * libc/sys/linux/intl/plural.c: Ditto.
12072         * libc/sys/linux/intl/plural.y: Ditto.
12073         * libc/sys/linux/intl/stpcpy.c: Ditto.
12074         * libc/sys/linux/intl/textdomain.c: Ditto.
12075         * libc/sys/linux/linuxthreads/LICENSE: Ditto.
12076         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
12077         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
12078         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
12079         * libc/sys/linux/linuxthreads/attr.c: Ditto.
12080         * libc/sys/linux/linuxthreads/barrier.c: Ditto.
12081         * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
12082         * libc/sys/linux/linuxthreads/cancel.c: Ditto.
12083         * libc/sys/linux/linuxthreads/condvar.c: Ditto.
12084         * libc/sys/linux/linuxthreads/config.h: Ditto.
12085         * libc/sys/linux/linuxthreads/configure: Ditto.
12086         * libc/sys/linux/linuxthreads/configure.in: Ditto.
12087         * libc/sys/linux/linuxthreads/defs.awk: Ditto.
12088         * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
12089         * libc/sys/linux/linuxthreads/events.c: Ditto.
12090         * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
12091         * libc/sys/linux/linuxthreads/getreent.c: Ditto.
12092         * libc/sys/linux/linuxthreads/internals.h: Ditto.
12093         * libc/sys/linux/linuxthreads/join.c: Ditto.
12094         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
12095         * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
12096         * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
12097         * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
12098         * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
12099         * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
12100         * libc/sys/linux/linuxthreads/manager.c: Ditto.
12101         * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
12102         * libc/sys/linux/linuxthreads/mutex.c: Ditto.
12103         * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
12104         * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
12105         * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
12106         * libc/sys/linux/linuxthreads/prio.c: Ditto.
12107         * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
12108         * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
12109         * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
12110         * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
12111         * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
12112         * libc/sys/linux/linuxthreads/pthread.c: Ditto.
12113         * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
12114         * libc/sys/linux/linuxthreads/queue.h: Ditto.
12115         * libc/sys/linux/linuxthreads/reent.c: Ditto.
12116         * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
12117         * libc/sys/linux/linuxthreads/restart.h: Ditto.
12118         * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
12119         * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
12120         * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
12121         * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
12122         * libc/sys/linux/linuxthreads/signals.c: Ditto.
12123         * libc/sys/linux/linuxthreads/specific.c: Ditto.
12124         * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
12125         * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
12126         * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
12127         * libc/sys/linux/linuxthreads/td_init.c: Ditto.
12128         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
12129         * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
12130         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
12131         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
12132         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
12133         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
12134         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
12135         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
12136         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
12137         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
12138         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
12139         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
12140         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
12141         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
12142         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
12143         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
12144         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
12145         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
12146         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
12147         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
12148         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
12149         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
12150         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
12151         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
12152         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
12153         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
12154         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
12155         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
12156         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
12157         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
12158         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
12159         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
12160         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
12161         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
12162         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
12163         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
12164         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
12165         * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
12166         * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
12167         * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
12168         * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
12169         * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
12170         * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
12171         * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
12172         * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
12173         * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
12174         * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
12175         * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
12176         * libc/sys/linux/linuxthreads/tststack.c: Ditto.
12177         * libc/sys/linux/linuxthreads/unload.c: Ditto.
12178         * libc/sys/linux/linuxthreads/weaks.c: Ditto.
12179         * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
12180         * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
12181         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
12182         * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
12183         * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
12184         * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
12185         * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
12186         * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
12187         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
12188         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
12189         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
12190         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
12191         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
12192         * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
12193         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
12194         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
12195         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
12196         * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
12197         * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
12198         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
12199         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
12200         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
12201         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
12202         * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
12203         * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
12204         * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
12205         * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
12206         * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
12207         * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
12208         * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
12209         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
12210         * libc/sys/linux/net/Makefile.am: Ditto.
12211         * libc/sys/linux/net/Makefile.in: Ditto.
12212         * libc/sys/linux/net/addr2ascii.3: Ditto.
12213         * libc/sys/linux/net/addr2ascii.c: Ditto.
12214         * libc/sys/linux/net/ascii2addr.c: Ditto.
12215         * libc/sys/linux/net/base64.c: Ditto.
12216         * libc/sys/linux/net/bindresvport.c: Ditto.
12217         * libc/sys/linux/net/byteorder.3: Ditto.
12218         * libc/sys/linux/net/ether_addr.c: Ditto.
12219         * libc/sys/linux/net/ethers.3: Ditto.
12220         * libc/sys/linux/net/getaddrinfo.3: Ditto.
12221         * libc/sys/linux/net/getaddrinfo.c: Ditto.
12222         * libc/sys/linux/net/gethostbydns.c: Ditto.
12223         * libc/sys/linux/net/gethostbyht.c: Ditto.
12224         * libc/sys/linux/net/gethostbyname.3: Ditto.
12225         * libc/sys/linux/net/gethostbynis.c: Ditto.
12226         * libc/sys/linux/net/gethostnamadr.c: Ditto.
12227         * libc/sys/linux/net/getifaddrs.3: Ditto.
12228         * libc/sys/linux/net/getifaddrs.c: Ditto.
12229         * libc/sys/linux/net/getipnodebyname.3: Ditto.
12230         * libc/sys/linux/net/getnameinfo.3: Ditto.
12231         * libc/sys/linux/net/getnameinfo.c: Ditto.
12232         * libc/sys/linux/net/getnetbydns.c: Ditto.
12233         * libc/sys/linux/net/getnetbyht.c: Ditto.
12234         * libc/sys/linux/net/getnetbynis.c: Ditto.
12235         * libc/sys/linux/net/getnetent.3: Ditto.
12236         * libc/sys/linux/net/getnetnamadr.c: Ditto.
12237         * libc/sys/linux/net/getproto.c: Ditto.
12238         * libc/sys/linux/net/getprotoent.3: Ditto.
12239         * libc/sys/linux/net/getprotoent.c: Ditto.
12240         * libc/sys/linux/net/getprotoname.c: Ditto.
12241         * libc/sys/linux/net/getservbyname.c: Ditto.
12242         * libc/sys/linux/net/getservbyport.c: Ditto.
12243         * libc/sys/linux/net/getservent.3: Ditto.
12244         * libc/sys/linux/net/getservent.c: Ditto.
12245         * libc/sys/linux/net/herror.c: Ditto.
12246         * libc/sys/linux/net/hesiod.3: Ditto.
12247         * libc/sys/linux/net/hesiod.c: Ditto.
12248         * libc/sys/linux/net/if_indextoname.3: Ditto.
12249         * libc/sys/linux/net/ifname.c: Ditto.
12250         * libc/sys/linux/net/inet.3: Ditto.
12251         * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
12252         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
12253         * libc/sys/linux/net/inet_addr.c: Ditto.
12254         * libc/sys/linux/net/inet_lnaof.c: Ditto.
12255         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
12256         * libc/sys/linux/net/inet_net.3: Ditto.
12257         * libc/sys/linux/net/inet_net_ntop.c: Ditto.
12258         * libc/sys/linux/net/inet_net_pton.c: Ditto.
12259         * libc/sys/linux/net/inet_neta.c: Ditto.
12260         * libc/sys/linux/net/inet_netof.c: Ditto.
12261         * libc/sys/linux/net/inet_network.c: Ditto.
12262         * libc/sys/linux/net/inet_ntoa.c: Ditto.
12263         * libc/sys/linux/net/inet_ntop.c: Ditto.
12264         * libc/sys/linux/net/inet_pton.c: Ditto.
12265         * libc/sys/linux/net/innetgr-stub.c: Ditto.
12266         * libc/sys/linux/net/ip6opt.c: Ditto.
12267         * libc/sys/linux/net/iso_addr.3: Ditto.
12268         * libc/sys/linux/net/iso_addr.c: Ditto.
12269         * libc/sys/linux/net/issetugid-stub.c: Ditto.
12270         * libc/sys/linux/net/linkaddr.3: Ditto.
12271         * libc/sys/linux/net/linkaddr.c: Ditto.
12272         * libc/sys/linux/net/map_v4v6.c: Ditto.
12273         * libc/sys/linux/net/name6.c: Ditto.
12274         * libc/sys/linux/net/namespace.h: Ditto.
12275         * libc/sys/linux/net/ns.3: Ditto.
12276         * libc/sys/linux/net/ns_addr.c: Ditto.
12277         * libc/sys/linux/net/ns_name.c: Ditto.
12278         * libc/sys/linux/net/ns_netint.c: Ditto.
12279         * libc/sys/linux/net/ns_ntoa.c: Ditto.
12280         * libc/sys/linux/net/ns_parse.c: Ditto.
12281         * libc/sys/linux/net/ns_print.c: Ditto.
12282         * libc/sys/linux/net/ns_ttl.c: Ditto.
12283         * libc/sys/linux/net/nsap_addr.c: Ditto.
12284         * libc/sys/linux/net/nsdispatch.3: Ditto.
12285         * libc/sys/linux/net/nsdispatch.c: Ditto.
12286         * libc/sys/linux/net/nslexer.c: Ditto.
12287         * libc/sys/linux/net/nslexer.l: Ditto.
12288         * libc/sys/linux/net/nsparser.c: Ditto.
12289         * libc/sys/linux/net/nsparser.h: Ditto.
12290         * libc/sys/linux/net/nsparser.y: Ditto.
12291         * libc/sys/linux/net/rcmd.3: Ditto.
12292         * libc/sys/linux/net/rcmd.c: Ditto.
12293         * libc/sys/linux/net/rcmdsh.3: Ditto.
12294         * libc/sys/linux/net/rcmdsh.c: Ditto.
12295         * libc/sys/linux/net/recv.c: Ditto.
12296         * libc/sys/linux/net/res_comp.c: Ditto.
12297         * libc/sys/linux/net/res_config.h: Ditto.
12298         * libc/sys/linux/net/res_data.c: Ditto.
12299         * libc/sys/linux/net/res_debug.c: Ditto.
12300         * libc/sys/linux/net/res_init.c: Ditto.
12301         * libc/sys/linux/net/res_mkquery.c: Ditto.
12302         * libc/sys/linux/net/res_mkupdate.c: Ditto.
12303         * libc/sys/linux/net/res_query.c: Ditto.
12304         * libc/sys/linux/net/res_send.c: Ditto.
12305         * libc/sys/linux/net/res_update.c: Ditto.
12306         * libc/sys/linux/net/resolver.3: Ditto.
12307         * libc/sys/linux/net/rthdr.c: Ditto.
12308         * libc/sys/linux/net/send.c: Ditto.
12309         * libc/sys/linux/net/un-namespace.h: Ditto.
12310         * libc/sys/linux/net/vars.c: Ditto.
12311         * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
12312         * libc/sys/linux/stdlib/Makefile.am: Ditto.
12313         * libc/sys/linux/stdlib/Makefile.in: Ditto.
12314         * libc/sys/linux/stdlib/cclass.h: Ditto.
12315         * libc/sys/linux/stdlib/cname.h: Ditto.
12316         * libc/sys/linux/stdlib/collate.c: Ditto.
12317         * libc/sys/linux/stdlib/collate.h: Ditto.
12318         * libc/sys/linux/stdlib/collcmp.c: Ditto.
12319         * libc/sys/linux/stdlib/engine.c: Ditto.
12320         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
12321         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
12322         * libc/sys/linux/stdlib/glob.3: Ditto.
12323         * libc/sys/linux/stdlib/glob.c: Ditto.
12324         * libc/sys/linux/stdlib/reallocf.c: Ditto.
12325         * libc/sys/linux/stdlib/regcomp.c: Ditto.
12326         * libc/sys/linux/stdlib/regerror.c: Ditto.
12327         * libc/sys/linux/stdlib/regex.3: Ditto.
12328         * libc/sys/linux/stdlib/regex2.h: Ditto.
12329         * libc/sys/linux/stdlib/regexec.c: Ditto.
12330         * libc/sys/linux/stdlib/regfree.c: Ditto.
12331         * libc/sys/linux/stdlib/utils.h: Ditto.
12332         * libc/sys/linux/stdlib/wordexp.c: Ditto.
12333         * libc/sys/linux/stdlib/wordfree.c: Ditto.
12334         * libc/sys/linux/sys/dlfcn.h: Ditto.
12335         * libc/sys/linux/sys/elfclass.h: Ditto.
12336         * libc/sys/linux/sys/event.h: Ditto.
12337         * libc/sys/linux/sys/ioccom.h: Ditto.
12338         * libc/sys/linux/sys/libc-tsd.h: Ditto.
12339         * libc/sys/linux/sys/link.h: Ditto.
12340         * libc/sys/linux/sys/lock.h: Ditto.
12341         * libc/sys/linux/sys/param.h: Ditto.
12342         * libc/sys/linux/sys/socket.h: Ditto.
12343         * libc/sys/linux/sys/sockio.h: Ditto.
12344
12345 2003-05-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
12346
12347         * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for
12348         normal mode
12349         * newlib/libc/machine/h8300/memset.S: Likewise
12350         * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
12351         * newlib/lib/machine/h8300/reg_memset.S: Likewise
12352         * newlib/lib/machine/h8300/setjmp.S: Likewise
12353         * newlib/lib/machine/h8300/strcmp.S: Likewise
12354         * newlib/lib/sys/h8300hms/crt0.S: Likewise
12355
12356 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
12357
12358         * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
12359         * libc/include/stdio.h: Ditto.
12360         * libc/include/sys/config.h: Ditto.
12361         * libc/stdio/mktemp.c: Ditto.
12362
12363 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
12364
12365         * libc/locale/ldpart.c (__part_load_locale): Substitute
12366         __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
12367         * libc/search/hash.c (__hash_open): Ditto.
12368         (init_hash): Ditto.
12369         * libc/stdio/fseek.c (fseek): Ditto.
12370         * libc/stdio/makebuf.c (__smakebuf): Ditto.
12371         * libc/stdio/mktemp.c (_gettemp): Ditto.
12372
12373 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
12374
12375         * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
12376
12377 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
12378
12379         * configure.host: Accomodate removing the libc/sys/cygwin dir.
12380         * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
12381         if __CYGWIN_USE_BIG_TYPES__ is set.
12382         * libc/search/hash.c (__hash_open): Ditto.
12383         (init_hash): Ditto.
12384         * libc/stdio/fseek.c (fseek): Ditto.
12385         * libc/stdio/makebuf.c (__smakebuf): Ditto.
12386         * libc/stdio/mktemp.c (_gettemp): Ditto.
12387         * libc/sys/cygwin/Makefile.am: Remove.
12388         * libc/sys/cygwin/Makefile.in: Remove.
12389         * libc/sys/cygwin/aclocal.m4: Remove.
12390         * libc/sys/cygwin/configure: Remove.
12391         * libc/sys/cygwin/configure.in: Remove.
12392         * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
12393         * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
12394         directory.
12395         * libc/sys/cygwin/sys/param.h: Ditto.
12396         * libc/sys/cygwin/sys/utime.h: Ditto.
12397         * libc/sys/cygwin/sys/utmp.h: Ditto.
12398
12399 2003-05-11  Corinna Vinschen  <corinna@vinschen.de>
12400
12401         * libc/include/sys/types.h: Don't define key_t for Cygwin.
12402
12403 2003-05-10  Christopher Faylor  <cgf@redhat.com>
12404
12405         * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
12406         64 bit inodes.
12407
12408 2003-05-09  Corinna Vinschen  <corinna@vinschen.de>
12409
12410         * libc/include/sys/config.h: Remove all Cygwin specific configuration.
12411         Include cygwin/config.h instead.
12412
12413 2003-04-16  Jeff Johnston  <jjohnstn@redhat.com>
12414
12415         * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
12416         all code with #ifdef __SPE__ test.
12417         * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
12418
12419 2003-04-15  Chris January <chris@atomice.net>
12420
12421         * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
12422         Cygwin.
12423
12424 2003-04-09  J"orn Rennecke <joern.rennecke@superh.com>
12425
12426         * libc/machine/sh/memset.S: Avoid clobbering volatile
12427         objects following a tiny to-be-set array in the same quadword.
12428
12429 2001-04-09  Corinna Vinschen  <corinna@vinschen.de>
12430
12431         * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.
12432         * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
12433         * libc/string/Makefile.in: Regenerated.
12434         * libc/string/wcswidth.c: New file.
12435         * libc/string/wcwidth.c: New file.
12436         * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
12437
12438 Thu Apr  3 14:01:16 2003  J"orn Rennecke <joern.rennecke@superh.com>
12439
12440         * libc/machine/sh/memset.S: Fix problem with alloco region
12441         exceeding destination region for length >= 88 bytes, start
12442         & 0x16 == 0, end & 0x1f == 18.
12443
12444 2001-04-03  Corinna Vinschen  <corinna@vinschen.de>
12445
12446         * libc/string/wcscoll.c: Fix comment.
12447
12448 2001-04-02  Corinna Vinschen  <corinna@vinschen.de>
12449
12450         * libc/include/wchar.h: Add definition for wcscoll.
12451         * libc/string/Makefile.am: Add wcscoll.c.
12452         * libc/string/Makefile.in: Regenerated.
12453         * libc/string/wcscoll.c: New file.
12454         * libc/string/wcstrings.tex: Add wcscoll.
12455
12456 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
12457
12458         * libc/stdio/sscanf.c: Update flags description.
12459         * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
12460         type.
12461         (__svfscanf_r): Add 'hh' and 'll' handling.
12462
12463 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
12464
12465         * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
12466         __d_position member to _off_t.
12467
12468 2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>
12469
12470         * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
12471         count all characters used to create number against maximum width.
12472         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
12473
12474 2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>
12475
12476         * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
12477         support.
12478         * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
12479         flag to support simulator only extensions.
12480
12481 2003-03-17  Bob Cassels  <bcassels@abinitio.com>
12482
12483         * libc/string/wcschr.c: (wcschr): Look for character first,
12484         then for end of string, so you can do wcschr(x, '\0').
12485
12486 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>
12487
12488         * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
12489         with internal (_fpos_t and _off_t) datatypes when compiling newlib.
12490         * libc/include/sys/unistd.h: Declare _lseek using _off_t.
12491         * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
12492         * libc/stdio/fseeko.c (fseeko): Ditto.
12493         * libc/stdio/ftello.c (ftello): Ditto.
12494         * libc/stdio/stdio.c (__swrite): Ditto.
12495         (__sseek): Ditto.
12496         * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
12497         * libc/stdio/fseek.c (fseek): Ditto.
12498         * libc/stdio/fsetpos.c (fsetpos): Ditto.
12499         * libc/stdio/ftell.c (ftell): Ditto.
12500         * libc/stdio/local.h: Declare __sseek using _off_t.
12501
12502 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
12503
12504         * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
12505
12506 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
12507
12508         * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
12509         Cygwin.
12510
12511 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
12512
12513         * libc/include/pwd.h: Add guards to avoid type clashes when compiling
12514         Cygwin.
12515         * libc/include/sys/stat.h: Ditto.
12516         * libc/include/sys/unistd.h: Ditto.
12517         * libc/sys/cygwin/sys/dirent.h: Ditto.
12518
12519 2003-03-07  Christopher Faylor  <cgf@redhat.com>
12520
12521         * libc/include/sys/unistd.h: Guard getopt.h call to force only
12522         declaration of getopt and avoid getopt_long declaration.
12523         * libc/sys/cygwin/include/unistd.h: Remove.
12524
12525 2003-03-07  Corinna Vinschen  <corinna@vinschen.de>
12526
12527         * configure.host: Define stdio64_dir for Cygwin.
12528         * libc/include/stdio.h: Change definition of fpos_t to fulfill
12529         Cygwin 64bit file access requirements.
12530         Drop definition of f*64() functions when compiled for Cygwin.
12531         * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
12532         * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
12533         * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
12534
12535 2003-03-07   Jeff Johnston  <jjohnstn@redhat.com>
12536
12537         * libc/include/sys/reent.h: Remove extraneous _sig_func
12538         declaration.
12539
12540 2003-02-25   D.Venkatasubramanian <dvenkat@noida.hcltech.com>
12541
12542         * libc/sys/h8300hms/Makefile.am: Add support for new files.
12543         * libc/sys/h8300hms/Makefile.in: Regenerated.
12544         * libc/sys/h8300hms/close.S: New file.
12545         * libc/sys/h8300hms/fstat.S: Ditto.
12546         * libc/sys/h8300hms/lseek.S: Ditto.
12547         * libc/sys/h8300hms/open.S: Ditto.
12548         * libc/sys/h8300hms/stat.S: Ditto.
12549         * libc/sys/h8300hms/read.S: New file to replace read.c.
12550         * libc/sys/h8300hms/read.c: Removed.
12551         * libc/sys/h8300hms/syscalls.c: Removed functions _open,
12552         _lseek, _close, _stat, _fstat.
12553         * libc/sys/h8300hms/write.S: New file to replace write.c.
12554         * libc/sys/h8300hms/write.c: Removed.
12555
12556 2003-02-20  Nick Clifton  <nickc@redhat.com>
12557
12558         * Add support for Cirrus Maverick ARM co-processor:
12559
12560         2000-09-13  Aldy Hernandez  <aldyh@redhat.com>
12561
12562                 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
12563                 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
12564
12565         2000-08-11  Aldy Hernandez  <aldyh@redhat.com>
12566
12567                 * configure.host: set sys_dir, syscall_dir, and
12568                 newlib_cflags for ep9312 host.
12569
12570         * configure.host: Restore alpha sorting of entries in case
12571         statements.
12572
12573 2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
12574
12575         * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
12576
12577 2003-02-18  Christian Groessler  <chris@groessler.org>
12578
12579         * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
12580         support z8001 segmented mode.
12581
12582 2003-02-18  Earnie Boyd  <earnie@users.sf.net>
12583
12584         * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
12585         with a NULL value.
12586
12587 2003-02-10  Christopher Faylor  <cgf@redhat.com>
12588
12589         * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
12590         Don't define some types under cygwin.
12591
12592 2003-02-07  Jeff Johnston  <jjohnstn@redhat.com>
12593
12594         * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
12595         option to allow disabling of syscalls being supplied in newlib.
12596         * aclocal.m4: Regenerated.
12597         * configure: Ditto.
12598         * configure.host: Add support of new configuration option and add
12599         -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
12600         * doc/aclocal.m4: Regenerated.
12601         * doc/configure: Ditto.
12602         * libc/*aclocal.m4: Ditto.
12603         * libc/*configure: Ditto.
12604         * libm/*aclocal.m4: Ditto.
12605         * libm/*configure: Ditto.
12606         * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
12607         is disabled.
12608         * libc/sys/arm/Makefile.in: Regenerated.
12609
12610 2003-02-05  Jonathan Larmour  <jifl@eCosCentric.com>
12611
12612         * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
12613         -1 to be sure it cannot later match a valid file fd causing
12614         isatty() to return 1.
12615         * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
12616         * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
12617         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
12618
12619 2003-02-03  Jeff Johnston  <jjohnstn@redhat.com>
12620
12621         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
12622         buffer based on the precision, after we have processed the input value
12623         in a local buffer and know its relative magnitude.
12624
12625 2003-01-31  Michael Snyder  <msnyder@redhat.com>
12626
12627         * libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
12628         into registers r1 and r2, so that the simulator can distinguish
12629         this trap from a breakpoint trap.  Copied from libgloss.
12630
12631 2003-01-31  Michael Snyder  <msnyder@redhat.com>
12632
12633         * libc/sys/h8300hms/crt0.S (_start): Change local label
12634         from .loop to .Loop, so that ld and gdb will ignore it.
12635
12636 2003-01-29  Jason Tishler  <jason@tishler.net>
12637
12638         * libc/include/time.h: Declare nanosleep() under Cygwin.
12639
12640 2003-01-24  Nick Clifton  <nickc@redhat.com>
12641
12642         * Add sh2e support:
12643
12644         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
12645
12646                 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
12647                 * libc/machine/sh/setjmp.S: Likewise.
12648                 * libc/include/machine/ieeefp.h: Likewise.
12649
12650 2003-01-24  Corinna Vinschen  <corinna@vinschen.de>
12651
12652         * libc/include/sys/unistd.h: Add setregid and setreuid declarations
12653         for Cygwin.
12654
12655 2003-01-21 Anita Kulkarni  <anitak@kpit.com>
12656
12657         * libc/time/difftime.c : Typecast the result to double.
12658
12659 2003-01-20  Christopher Faylor  <cgf@redhat.com>
12660
12661         * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
12662
12663 2003-01-18  Nick Clifton  <nickc@redhat.com>
12664
12665         * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
12666         __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
12667
12668 2003-01-16  Joel Sherrill <joel@OARcorp.com>
12669
12670         * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
12671         libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
12672         constants are defined in each file in the shared versions in
12673         libc/include.
12674         * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
12675         autoconf can link programs.
12676         * libc/include/machine/types.h: Explicitly specify signed on
12677         intXX_t types to ensure they are signed.
12678
12679 2003-01-14  Christopher Faylor  <cgf@redhat.com>
12680
12681         * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
12682         extensions.
12683
12684 2003-01-08  Richard Sandiford  <rsandifo@redhat.com>
12685
12686         * configure.host (mips64vr-elf, mips64vrel-elf): New config.
12687
12688 2003-01-07  Charles Wilson  <cwilson@ece.gatech.edu>
12689
12690         * libc/stdio/sprintf.c: fix typo
12691         * libc/stdio/vfprintf.c: fix typo
12692
12693 2003-01-07  Jeff Johnston  <jjohnstn@redhat.com>
12694
12695         * configure.host: Support long double I/O for x86-linux.
12696         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
12697         large enough to hold formatted result.
12698         * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
12699
12700 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
12701
12702         * Makefile.am: Add vasprintf.
12703         * Makefile.in: Regenerated.
12704
12705 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
12706
12707         * asprintf.c (_asprintf_r): insure both declarations
12708         are the same.
12709
12710 2002-12-28  Christopher Faylor  <cgf@redhat.com>
12711
12712         * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
12713         than defining getopt directly.
12714
12715 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
12716
12717         * NEWS: Update with 1.11.0 info.
12718         * README: Ditto.
12719         * acinclude.m4: Change version number to 1.11.0.
12720         * aclocal.m4: Regenerated.
12721         * configure: Ditto.
12722         * doc/aclocal.m4: Ditto.
12723         * doc/configure: Ditto.
12724         * libc/*/aclocal.m4: Ditto.
12725         * libc/*/configure: Ditto.
12726         * libc/libc.texinfo: Ditto.
12727         * libm/*/aclocal.m4: Ditto.
12728         * libm/*/configure: Ditto.
12729         * libm/libm.texinfo: Ditto.
12730         * libc/sys/linux/shared.ld: Add VERS_1.11.
12731
12732 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
12733
12734         * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
12735         Solutions to Red Hat Inc.
12736         * libc/machine/i386/f_atan2f.S: Ditto.
12737         * libc/machine/i386/f_exp.c: Ditto.
12738         * libc/machine/i386/f_expf.c: Ditto.
12739         * libc/machine/i386/f_frexp.S: Ditto.
12740         * libc/machine/i386/f_frexpf.S: Ditto.
12741         * libc/machine/i386/f_ldexp.S: Ditto.
12742         * libc/machine/i386/f_ldexpf.S: Ditto.
12743         * libc/machine/i386/f_log.S: Ditto.
12744         * libc/machine/i386/f_log10.S: Ditto.
12745         * libc/machine/i386/f_log10f.S: Ditto.
12746         * libc/machine/i386/f_logf.S: Ditto.
12747         * libc/machine/i386/f_pow.c: Ditto.
12748         * libc/machine/i386/f_powf.c: Ditto.
12749         * libc/machine/i386/f_tan.S: Ditto.
12750         * libc/machine/i386/f_tanf.S: Ditto.
12751         * libc/machine/i386/memchr.S: Ditto.
12752         * libc/machine/i386/memcmp.S: Ditto.
12753         * libc/machine/i386/memcpy.S: Ditto.
12754         * libc/machine/i386/memmove.S: Ditto.
12755         * libc/machine/i386/memset.S: Ditto.
12756         * libc/machine/i386/strchr.S: Ditto.
12757         * libc/machine/i386/strlen.S: Ditto.
12758         * libm/machine/i386/f_atan2.S: Ditto.
12759         * libm/machine/i386/f_atan2f.S: Ditto.
12760         * libm/machine/i386/f_exp.c: Ditto.
12761         * libm/machine/i386/f_expf.c: Ditto.
12762         * libm/machine/i386/f_frexp.S: Ditto.
12763         * libm/machine/i386/f_frexpf.S: Ditto.
12764         * libm/machine/i386/f_ldexp.S: Ditto.
12765         * libm/machine/i386/f_ldexpf.S: Ditto.
12766         * libm/machine/i386/f_log.S: Ditto.
12767         * libm/machine/i386/f_log10.S: Ditto.
12768         * libm/machine/i386/f_log10f.S: Ditto.
12769         * libm/machine/i386/f_logf.S: Ditto.
12770         * libm/machine/i386/f_pow.c: Ditto.
12771         * libm/machine/i386/f_powf.c: Ditto.
12772         * libm/machine/i386/f_tan.S: Ditto.
12773         * libm/machine/i386/f_tanf.S: Ditto.
12774
12775 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
12776
12777         * libc/stdlib/environ.c: Update license to Red Hat.
12778         * libc/machine/hppa/setjmp.S: Ditto.
12779         * libm/test/Makefile.in: Ditto.
12780
12781 2002-12-19  Jeff Johnston  <jjohnstn@redhat.com>
12782
12783         * configure.host: Remove references to go32.
12784         * libc/sys/go32/*: Removed.
12785
12786 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
12787
12788         * libc/include/sys/config.h: Change setting of INT_MAX
12789         and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
12790         __H8300S__.  Also consolidate flag settings for these
12791         platforms.
12792
12793 2002-12-10  Joel Sherrill  <joel@OARcorp.com>
12794
12795         * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
12796         for i386-rtems targets.
12797
12798 2002-12-06  Jeff Johnston  <jjohnstn@redhat.com>
12799
12800         * libc/include/stdlib.h (strtof): New prototype (from C99).
12801         (strtodf): Changed from prototype to macro which redefines
12802         to strtof.
12803         * libc/stdlib/atof.c: Change documentation to refer to strtof
12804         instead of strtodf.
12805         * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
12806         strtodf.
12807         * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
12808         (strtof): New function.
12809         * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
12810         calls strtof.
12811
12812 2002-11-27  Christopher Faylor  <cgf@redhat.com>
12813
12814         * libc/string/memset.c (memset): Fix comment.
12815
12816 2002-11-26  Christopher Faylor  <cgf@redhat.com>
12817
12818         * libc/string/memset.c (memset): Move initialization of 'd' earlier in
12819         function.
12820
12821 2002-11-25  Christopher Faylor  <cgf@redhat.com>
12822
12823         * libc/string/memset.c (memset): Minor optimization: Use new 'd'
12824         variable, introduced below, everywhere.
12825
12826 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
12827
12828         * libc/string/memset.c (memset): Make it safe even if
12829         sizeof (int) = 2.
12830
12831 2002-11-22  Joe Buehler  <jbuehler@hekimian.com>
12832
12833         * configure.in: Change check for libc/include in ${CC} to
12834         use an intermediate value so as to work with different shells.
12835         * configure: Regenerated.
12836         * Makefile.in: Ditto.
12837
12838 2002-11-22  Vijay L. Khuspe  <vijayk1@kpit.com>
12839
12840         * libc/sys/h8300hms/read.c: Add support for normal mode
12841         architecture.
12842
12843 2002-11-20  Ryo Tsuruta  <ryo@kitanet.ne.jp>
12844
12845         * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
12846         code for __H8300H__ and __H8300S__.  Also return 32-bit return code
12847         when -mint32 is used.
12848
12849 2002-11-18  Nick Clifton  <nickc@redhat.com>
12850
12851         * libc/sys/arm/crt0.S: Add NULL to end of argv array.
12852
12853 2002-11-14  Jeff Johnston  <jjohnstn@redhat.com>
12854
12855         * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
12856         only issue one pass/fail message for a compile/link/execute.
12857         * testsuite/newlib.elix/elix.exp: New file.
12858         * testsuite/newlib.elix/tmmap.c: Ditto.
12859
12860 2002-11-06  Christopher Faylor  <cgf@redhat.com>
12861
12862         * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
12863         * libc/stdlib/mlock.c: Ditto.
12864         * libc/stdlib/msize.c: Ditto.
12865         * libc/stdlib/msize.c: Ditto.
12866         * libc/stdlib/mtrim.c: Ditto.
12867         * libc/stdlib/valloc.c: Ditto.
12868
12869 2002-11-12  Jeff Johnston  <jjohnstn@redhat.com>
12870
12871         * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
12872         for inf/nan, make sure that the check ignores the sign bit.
12873
12874 2002-11-07  Joel Sherrill <joel@OARcorp.com>
12875
12876         * libc/sys/rtems/machine: New directory.
12877         * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
12878         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
12879         libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
12880         targets more BSD like when installed without requiring files to
12881         be overwritten at install point when RTEMS itself is installed.
12882         * Makefile.am: Pick up system dependent machine .h files such as
12883         might be found on a BSD-ish system.
12884         * Makefile.in: Regenerate.
12885         * libc/include/machine/types.h: When on an RTEMS target, define a
12886         few BSD flavor types.
12887
12888 2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
12889
12890         * include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.
12891
12892 2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
12893
12894         * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
12895         * libc/include/wctype.h: Ditto.
12896
12897 2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
12898
12899         * libc/include/wchar.h: Add extern "C" specifier if C++.
12900         * libc/include/wctype.h: Ditto.
12901
12902 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
12903
12904         * testsuite/newlib.wctype/tiswctype.c: New test case.
12905         * testsuite/newlib.wctype/twctrans.c: Ditto.
12906
12907 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
12908
12909         * libc/sys/linux/machine/i386/include/endian.h: New file.
12910         * libc/sys/linux/machine/i386/include/param.h: Ditto.
12911
12912 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
12913
12914         * libm/machine/i386/aclocal.m4: Regenerated.
12915         * libm/machine/i386/configure: Ditto.
12916
12917 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
12918
12919         * testsuite/include/check.h: New header file to use with
12920         test cases.
12921         * testsuite/lib/newlib.exp: Add testsuite/include directory
12922         to list of header files to use.
12923         * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
12924         * testsuite/newlib.wctype/wctype.exp: New file.
12925
12926 2002-10-11  Graham Stott  <graham.stott@btinternet.com>
12927             Richard Sandiford  <rsandifo@redhat.com>
12928
12929         * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
12930         * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
12931         doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
12932
12933 2002-10-07      Joel Sherrill <joel@OARcorp.com>
12934
12935         * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
12936         dummy programs.
12937
12938 2002-10-07      Joel Sherrill <joel@OARcorp.com>
12939
12940         * libc/include/pthread.h: Define PTHREAD_CANCELED.
12941
12942 2002-10-07      Joel Sherrill <joel@OARcorp.com>
12943
12944         * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
12945         libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
12946         compile with current GNU tools.
12947
12948 2002-10-07  Jeff Johnston  <jjohnstn@redhat.com>
12949
12950         * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
12951         the build library.
12952         * configure.in: Ditto.
12953         * Makefile.in: Regenerated.
12954         * configure: Ditto.
12955         * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
12956         for specifying configured libraries/directories.
12957         * libc/sys/linux/configure.in: Ditto.
12958         * libc/sys/linux/Makefile.in: Regenerated.
12959         * libc/sys/linux/configure: Ditto.
12960
12961 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
12962
12963         * libc/include/reent.h: Update documentation at start of file.
12964
12965 2002-09-27  Jim Wilson  <wilson@redhat.com>
12966
12967         * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
12968         the ctbp register.
12969
12970 2002-09-27  Jeff Johnston  <jjohnstn@redhat.com>
12971
12972         * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
12973         Also convert to EUCJP before using arrays.  For values not in
12974         the conversion arrays, return WEOF.
12975         * libc/ctype/jp2uc.h: Change from one array to a number of
12976         arrays to account for the fact that the originating table
12977         is not contiguous for the input values since some are invalid.
12978
12979 2002-09-24  Jeff Johnston  <jjohnstn@redhat.com>
12980
12981         * libc/time/ctime.c: Fix prototype documentation.
12982
12983 2002-09-24  Corinna Vinschen  <corinna@vinschen.de>
12984
12985         * libc/include/sys/errno.h: Add EOVERFLOW.
12986
12987 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
12988
12989         * libc/include/wctype.h: New file.
12990
12991 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
12992
12993         * libc/ctype/Makefile.am: Add new files.
12994         * libc/ctype/Makefile.in: Regenerated.
12995         * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
12996         and wctrans functions to documentation index.
12997         * libc/ctype/iswalnum.c: New file.
12998         * libc/ctype/iswalpha.c: Ditto.
12999         * libc/ctype/iswblank.c: Ditto.
13000         * libc/ctype/iswcntrl.c: Ditto.
13001         * libc/ctype/iswctype.c: Ditto.
13002         * libc/ctype/iswdigit.c: Ditto.
13003         * libc/ctype/iswgraph.c: Ditto.
13004         * libc/ctype/iswlower.c: Ditto.
13005         * libc/ctype/iswprint.c: Ditto.
13006         * libc/ctype/iswpunct.c: Ditto.
13007         * libc/ctype/iswspace.c: Ditto.
13008         * libc/ctype/iswupper.c: Ditto.
13009         * libc/ctype/iswxdigit.c: Ditto.
13010         * libc/ctype/jp2uc.c: Ditto.
13011         * libc/ctype/jp2uc.h: Ditto.
13012         * libc/ctype/local.h: Ditto.
13013         * libc/ctype/towctrans.c: Ditto.
13014         * libc/ctype/towlower.c: Ditto.
13015         * libc/ctype/towupper.c: Ditto.
13016         * libc/ctype/utf8alpha.h: Ditto.
13017         * libc/ctype/utf8print.h: Ditto.
13018         * libc/ctype/utf8punct.h: Ditto.
13019         * libc/ctype/wctrans.c: Ditto.
13020         * libc/ctype/wctype.c: Ditto.
13021         * libc/locale/locale.c (__lc_ctype): New external array to
13022         replace static lc_ctype array.
13023         * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
13024         rather than reentrancy structure's _current_locale field.
13025         * libc/stdlib/wctomb_r.c: Ditto.
13026
13027 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
13028
13029         * configure.host: Minor comment and formatting changes.
13030         * libc/Makefile.am: Add libc_la_DEPENDENCIES.
13031         * libc/Makefile.in: Regenerated.
13032         * libc/include/sys/config.h: Minor format change.
13033
13034 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
13035
13036         * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
13037         statement comment.
13038
13039 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
13040
13041         * libc/posix/opendir.c (opendir): Change code to check
13042         for HAVE_FCNTL before calling fcntl.
13043         * libc/search/hash.c (hash_open): Ditto.
13044         * libc/search/hash_page.c (open_tmp): Ditto.
13045         * libc/reent/Makefile.am: Add fcntlr.c.
13046         * libc/reent/Makefile.in: Regenerated.
13047         * libc/reent/fcntlr.c: New file.
13048         * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
13049         instead of _fcntl when HAVE_FCNTL flag is set.
13050         * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
13051         to see if _fcntl or _fcntl_r should be called.  If flag is not
13052         set, default to ENOSYS stub.
13053
13054 2002-09-16  Jeff Johnston  <jjohnstn@redhat.com>
13055
13056         * libc/include/wchar.h (mbstate_t): Change protective flag to
13057         be _MBSTATE_T.
13058         * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
13059         [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
13060         for Cygwin.
13061         * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
13062
13063 2002-09-11  Jeff Johnston  <jjohnstn@redhat.com>
13064
13065         * acinclude.m4 (enable-newlib-mb): Change check to
13066         default newlib_mb variable to empty string rather than "no".
13067         * configure.host: Remove hard-coding of -DMB_CAPABLE for
13068         x86-linux and Cygwin.  Add code to check for newlib_mb
13069         being unset in which case set to "yes" for x86-linux and
13070         Cygwin.  Change check for newlib_mb being "yes" to allow
13071         for an empty string.
13072         * configure.in (_MB_LEN_MAX): New AC_DEFINE.
13073         * newlib.hin (_MB_LEN_MAX): New define to configure.
13074         * aclocal.m4: Regenerated.
13075         * configure: Ditto.
13076         * libc/include/limits.h: New file.
13077         * libc/sys/linux/include/limits.h: Ditto.
13078         * doc/aclocal.m4 doc/configure libc/aclocal.m4
13079           libc/configure libc/machine/aclocal.m4
13080           libc/machine/configure libc/machine/a29k/aclocal.m4
13081           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
13082           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
13083           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
13084           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
13085           libc/machine/fr30/configure libc/machine/frv/aclocal.m4
13086           libc/machine/frv/configure libc/machine/h8300/aclocal.m4
13087           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
13088           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
13089           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
13090           libc/machine/i386/configure libc/machine/i960/aclocal.m4
13091           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
13092           libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
13093           libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
13094           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
13095           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
13096           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
13097           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
13098           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
13099           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
13100           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
13101           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
13102           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
13103           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
13104           libc/machine/v850/configure libc/machine/w65/aclocal.m4
13105           libc/machine/w65/configure libc/machine/xscale/aclocal.m4
13106           libc/machine/xscale/configure
13107           libc/machine/xstormy16/aclocal.m4
13108           libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
13109           libc/machine/z8k/configure libc/sys/aclocal.m4
13110           libc/sys/configure libc/sys/a29khif/aclocal.m4
13111           libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
13112           libc/sys/arc/configure libc/sys/arm/aclocal.m4
13113           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
13114           libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
13115           libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
13116           libc/sys/decstation/configure libc/sys/go32/aclocal.m4
13117           libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
13118           libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
13119           libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
13120           libc/sys/idt/configure libc/sys/linux/aclocal.m4
13121           libc/sys/linux/configure
13122           libc/sys/linux/machine/aclocal.m4
13123           libc/sys/linux/machine/configure
13124           libc/sys/linux/machine/i386/aclocal.m4
13125           libc/sys/linux/machine/i386/configure
13126           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
13127           libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
13128           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
13129           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
13130           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
13131           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
13132           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
13133           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
13134           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
13135           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
13136           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
13137           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
13138           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
13139           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
13140           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
13141           libm/aclocal.m4 libm/configure: Regenerated.
13142
13143 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
13144
13145         * libc/sys/linux/machine/i386/crt0.c (_start): Remove
13146         code that clears the .bss section.
13147
13148 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
13149
13150         * libc/include/sys/_types.h (_mbstate_t): Changed to use
13151         unsigned char internally.
13152         * libc/sys/linux/sys/_types.h: Ditto.
13153         * libc/include/sys/reent.h
13154         * libc/stdlib/mblen.c (mblen): Use function-specific state
13155         value from default reentrancy structure.
13156         * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
13157         _mbtowc_r is less than 0, reset state __count value and
13158         return -1.
13159         * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
13160         is NULL, use the function-specific pointer provided in the
13161         default reentrancy structure.
13162         * libc/stdlib/mbrtowc.c: Add reentrant form of function.
13163         If input state pointer is NULL, use function-specific area
13164         provided in reentrancy structure.
13165         * libc/stdlib/mbsrtowcs.c: Ditto.
13166         * libc/stdlib/wcrtomb.c: Ditto.
13167         * libc/stdlib/wcsrtombs.c: Ditto.
13168         * libc/stdlib/mbstowcs.c: Reformat.
13169         * libc/stdlib/wcstombs.c: Ditto.
13170         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
13171         reset the state's __count value and return -1.
13172         * libc/stdlib/mbtowc.c: Ditto.
13173         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
13174         If number of bytes is used up before completing a valid multibyte
13175         character, return -2 and save the state.
13176         * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
13177         and change some __count references to __state for clarity.
13178
13179 2002-09-06  Jeff Johnston  <jjohnstn@redhat.com>
13180
13181         * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
13182         is defined by <limits.h>.
13183
13184 2002-09-05  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
13185
13186         * libc/include/wchar.h (WCHAR_MAX): Only define if not already
13187         defined.
13188
13189 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
13190
13191         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
13192         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
13193         __WCHAR_MAX__ or 0x7fffffffu.
13194         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
13195         * libc/string/wcsncmp.c: Ditto.
13196
13197 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
13198
13199         * libc/string/wcschr.c: Add include of <stddef.h>.
13200         * libc/string/wcspbrk.c: Ditto.
13201         * libc/string/wcsrchr.c: Ditto.
13202         * libc/string/wcsstr.c: Ditto.
13203
13204 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
13205
13206         * libc/include/sys/_types.h (_flock_t): Added.
13207         * libc/include/sys/lock.h (__lock_try_acquire): New interface.
13208         (__lock_try_acquire_recursive): Ditto.
13209         * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
13210         _lock field.
13211         * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
13212         field.
13213         * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
13214         * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
13215         * libc/sys/linux/include/time.h (struct timespec): Moved from
13216         <sys/types.h> and added check for __need_timespec flag so type
13217         can be defined by itself.
13218         * libc/sys/linux/sys/_types.h (_flock_t): New type.
13219         * libc/sys/linux/sys/types.h (struct timespec): Moved to
13220         <time.h>.
13221
13222 2002-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
13223
13224         * libc/sys/linux/argp: New directory.
13225         * libc/sys/linux/getopt.c: New file.
13226         * libc/sys/linux/getopt1.c: New file.
13227         * libc/sys/linux/getoptlong.c: Remove file.
13228         * libc/sys/linux/include/argp.h: New file.
13229         * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
13230         based on ELIX level.
13231         (SUBDIRS): Add argp_dir.
13232         (SUBLIBS): Add ARGP_LIB.
13233         (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
13234         getopt_long.$(oext).
13235         * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
13236
13237 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
13238
13239         * libc/libc.texinfo: Add node reference to wide-character strings.
13240         * libc/string/wcstrings.tex: New file.
13241         * libc/string/strtok_r.c: Remove outdated advertising clause.
13242         * libc/string/Makefile.am (doc): Add wide-character string
13243         chapter to documentation.
13244         * libc/string/Makefile.in: Regenerated.
13245
13246 2002-08-29  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
13247
13248         * libc/include/wchar.h: Define NULL. Define WEOF more general
13249         way. Declare functions in newlib manner.
13250         * libc/stdlib/Makefile.am: Delete wmem*.c
13251         * libc/stdlib/Makefile.in: Regenerated.
13252         * libc/stdlib/wmemchr.c: Delete.
13253         * libc/stdlib/wmemcmp.c: Ditto.
13254         * libc/stdlib/wmemcpy.c: Ditto.
13255         * libc/stdlib/wmemmove.c: Ditto.
13256         * libc/stdlib/wmemset.c: Ditto.
13257         * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
13258         * libc/string/Makefile.in: Regenerated.
13259         * libc/string/wcscat.c: New file derived from the NetBSD C Library.
13260         * libc/string/wcschr.c: Ditto.
13261         * libc/string/wcscmp.c: Ditto.
13262         * libc/string/wcscpy.c: Ditto.
13263         * libc/string/wcscspn.c: Ditto.
13264         * libc/string/wcslcat.c: Ditto.
13265         * libc/string/wcslcpy.c: Ditto.
13266         * libc/string/wcslen.c: Ditto.
13267         * libc/string/wcsncat.c: Ditto.
13268         * libc/string/wcsncmp.c: Ditto.
13269         * libc/string/wcsncpy.c: Ditto.
13270         * libc/string/wcspbrk.c: Ditto.
13271         * libc/string/wcsrchr.c: Ditto.
13272         * libc/string/wcsspn.c: Ditto.
13273         * libc/string/wcsstr.c: Ditto.
13274         * libc/string/wmemchr.c: Ditto.
13275         * libc/string/wmemcmp.c: Ditto.
13276         * libc/string/wmemcpy.c: Ditto.
13277         * libc/string/wmemmove.c: Ditto.
13278         * libc/string/wmemset.c: Ditto.
13279
13280 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
13281
13282         * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
13283         default locale "" is accepted for LC_CTYPE or LC_MESSAGES
13284         and is treated as if "C" was specified.
13285
13286 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
13287
13288         * Makefile.am (install-data-local): Move install of build
13289         newlib.h after installing headers in libc/include so as to
13290         overwrite default newlib.h.
13291         * Makefile.in: Regenerated.
13292
13293 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
13294
13295         * libc/include/newlib.h: New file for tools that use newlib
13296         headers but don't build newlib first (e.g. gcc).
13297
13298 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
13299
13300         * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
13301         * libc/stdlib/wmemcmp.c: Ditto.
13302         * libc/stdlib/wmemcpy.c: Ditto.
13303         * libc/stdlib/wmemmove.c: Ditto.
13304         * libc/stdlib/wmemset.c: Ditto.
13305
13306 2002-08-27  Egor Duda  <deo@logos-m.ru>
13307
13308         * libc/stdlib/wmemchr.c: New file.
13309         * libc/stdlib/wmemcmp.c: Ditto.
13310         * libc/stdlib/wmemcpy.c: Ditto.
13311         * libc/stdlib/wmemmove.c: Ditto.
13312         * libc/stdlib/wmemset.c: Ditto.
13313         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
13314         * configure.host: Default -DMB_CAPABLE for cygwin.
13315         * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
13316         wmemmove() and wmemset().  Add include of <_ansi.h>.
13317         * libc/stdlib/Makefile.in: Regenerate.
13318
13319 2002-08-27  Jeff Johnston  <jjohnstn@redhat.com>
13320
13321         * configure.host: Remove _ELIX_LEVEL flag setting.
13322         * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
13323         (install-data-local): Install newlib.h.
13324         * Makefile.in: Regenerated.
13325         * aclocal.m4: Ditto.
13326         * configure: Ditto.
13327         * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
13328         newlib.hin.  Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
13329         and _NEWLIB_VERSION to fill in newlib.h header file entries.
13330         In AC_OUTPUT statement, unset ac_file so multilib support does
13331         not use last ac_file temporary used in newlib.h configuration.
13332         * libc/include/_ansi.h: Include <newlib.h>.
13333         * newlib.hin: New template file for newlib.h.
13334         * stamp-h.in: New file.
13335
13336 2002-08-26  Wu Yongwei <adah@netstd.com>
13337
13338         * time.h (timezonevar): Change "#if" to "#ifdef".
13339
13340 2002-08-26  Jeff Johnston  <jjohnstn@redhat.com>
13341
13342         * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
13343         * Makefile.in: Regenerated.
13344         * acinclude.m4: Add support for --enable-newlib-elix-level option.
13345         * aclocal.m4: Regenerated.
13346         * configure: Ditto.
13347         * configure.host: Add code to define _ELIX_LEVEL if
13348         --enable-newlib-elix-level option is used.
13349         * configure.in:
13350         * libc/aclocal.m4: Regenerated.
13351         * libc/configure: Ditto.
13352         * libc/argz/Makefile.am: Add EL/IX level checking.
13353         * libc/argz/Makefile.in: Regenerated.
13354         * libc/argz/dummy.c: New file.
13355         * libc/ctype/Makefile.am: Add EL/IX level checking.
13356         * libc/ctype/Makefile.in: Regenerated.
13357         * libc/locale/Makefile.am: Add EL/IX level checking.
13358         * libc/locale/Makefile.in: Regenerated.
13359         * libc/posix/Makefile.am: Add EL/IX level checking.
13360         * libc/posix/Makefile.in: Regenerated.
13361         * libc/posix/telldir.c: Add EL/IX level checking.
13362         * libc/reent/Makefile.am: Ditto.
13363         * libc/reent/fstat64r.c: Ditto.
13364         * libc/reent/lseek64r.c: Ditto.
13365         * libc/reent/open64r.c: Ditto.
13366         * libc/reent/Makefile.in: Regenerated.
13367         * libc/search/Makefile.am: Add EL/IX level checking.
13368         * libc/search/Makefile.in: Regenerated.
13369         * libc/stdio/Makefile.am: Add EL/IX level checking.
13370         * libc/stdio/Makefile.in: Regenerated.
13371         * libc/stdio64/Makefile.am: Add EL/IX level checking.
13372         * libc/stdio64/Makefile.in: Regenerated.
13373         * libc/stdio64/dummy.c: New file.
13374         * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
13375         after first include.
13376         * libc/stdio64/fopen64.c: Ditto.
13377         * libc/stdio64/freopen64.c: Ditto.
13378         * libc/stdio64/fseeko64.c: Ditto.
13379         * libc/stdio64/fsetpos64.c: Ditto.
13380         * libc/stdio64/ftello64.c: Ditto.
13381         * libc/stdio64/tmpfile64.c: Ditto.
13382         * libc/stdlib/Makefile.am: Add EL/IX level checking.
13383         * libc/stdlib/Makefile.in: Regenerated.
13384         * libc/stdlib/mstats.c: Add EL/IX level checking.
13385         * libc/string/Makefile.am: Ditto.
13386         * libc/string/Makefile.in: Regenerated.
13387         * libc/sys/linux/Makefile.am: Add EL/IX level checking.
13388         * libc/sys/linux/Makefile.in: Regenerated.
13389         * libc/sys/linux/aclocal.m4: Ditto.
13390         * libc/sys/linux/configure: Ditto.
13391         * libc/sys/linux/aio.c: Add EL/IX level checking.
13392         * libc/sys/linux/ftok.c: Ditto.
13393         * libc/sys/linux/getdate.c: Ditto.
13394         * libc/sys/linux/ids.c: Ditto.
13395         * libc/sys/linux/inode.c: Ditto.
13396         * libc/sys/linux/io.c: Ditto.
13397         * libc/sys/linux/process.c: Ditto.
13398         * libc/sys/linux/resource.c: Ditto.
13399         * libc/sys/linux/sched.c: Ditto.
13400         * libc/sys/linux/sig.c: Ditto.
13401         * libc/sys/linux/termios.c: Ditto.
13402         * libc/sys/linux/wait.c: Ditto plus add __waitpid and
13403         __libc___waitpid weak aliases.
13404         * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
13405         that generate the code for a syscall, but do not create a
13406         weak alias.
13407         * libc/syscalls/Makefile.am: Add EL/IX level checking.
13408         * libc/syscalls/Makefile.in: Regenerated.
13409         * libc/time/tzset_r.c: Change to replace strdup with equivalent
13410         functionality.
13411         * libc/unix/Makefile.am: Add EL/IX level checking.
13412         * libc/unix/Makefile.in: Regenerated.
13413
13414 2002-08-26  Christopher Faylor  <cgf@redhat.com>
13415
13416         * libc/include/malloc.h: On cygwin, define malloc _r functions as
13417         wrapper macros to standard malloc functions.
13418         * libc/include/stdlib.h: Ditto.
13419         * configure.host: Always define MALLOC_PROVIDED on cygwin.
13420
13421 2002-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
13422
13423         * libc/include/langinfo.h: New file.
13424         * libc/include/wchar.h: Likewise.
13425         * libc/include/sys/syslimits.h: Likewise.
13426         * libc/locale/fix_grouping.c: Likewise.
13427         * libc/locale/ldpart.c: Likewise.
13428         * libc/locale/ldpart.h: Likewise.
13429         * libc/locale/lmessages.c: Likewise.
13430         * libc/locale/lmessages.h: Likewise.
13431         * libc/locale/lmonetary.c: Likewise.
13432         * libc/locale/lmonetary.h: Likewise.
13433         * libc/locale/lnumeric.c: Likewise.
13434         * libc/locale/lnumeric.h: Likewise.
13435         * libc/locale/nl_langinfo.3: Likewise.
13436         * libc/locale/nl_langinfo.c: Likewise.
13437         * libc/locale/timelocal.c: Likewise.
13438         * libc/locale/timelocal.h: Likewise.
13439         * libc/stdlib/btowc.c: Likewise.
13440         * libc/stdlib/mbrlen.c: Likewise.
13441         * libc/stdlib/mbrtowc.c: Likewise.
13442         * libc/stdlib/mbsinit.c: Likewise.
13443         * libc/stdlib/mbsrtowcs.c: Likewise.
13444         * libc/stdlib/wcrtomb.c: Likewise.
13445         * libc/stdlib/wcsrtombs.c: Likewise.
13446         * libc/stdlib/wctob.c: Likewise.
13447         * libc/sys/linux/prof-freq.c: Likewise.
13448         * libc/sys/linux/profile.c: Likewise.
13449         * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
13450         * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
13451         * libc/include/stdlib.h: Change re-entrant functions to take
13452         mbstate_t pointers.
13453         * libc/include/sys/_types.h: Define _mbstate_t.
13454         * libc/include/sys/config.h (MB_LEN_MAX): New macro.
13455         * libc/include/sys/errno.h (EILSEQ): New error code.
13456         * libc/include/sys/reent.h: Include wchar.h.  Change reentrant
13457         structure to use mbstate_t.
13458         * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
13459         * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
13460         * libc/machine/powerpc/vfscanf.c: Likewise.
13461         * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
13462         * libc/stdio/vfprintf.c: Likewise.
13463         * libc/stdio/vfscanf.c: Likewise.
13464         * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
13465         * libc/stdlib/mblen.c: Use mbstate_t.
13466         * libc/stdlib/mblen_r.c: Likewise.
13467         * libc/stdlib/mbstowcs.c: Likewise.
13468         * libc/stdlib/mbstowcs_r.c: Likewise.
13469         * libc/stdlib/mbtowc.c: Likewise.
13470         * libc/stdlib/mbtowc_r.c: Likewise.
13471         * libc/stdlib/wcstombs.c: Likewise.
13472         * libc/stdlib/wcstombs_r.c: Likewise.
13473         * libc/stdlib/wctomb_r.c: Likewise.
13474         * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
13475         profile.c.
13476         * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
13477         dl-procinfo.c.
13478         * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
13479         * libc/sys/linux/sys/types.h (off_t): Define type.
13480         * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
13481         to C-UTF-8.
13482         * testsuite/newlib.locale/UTF-8.exp: Likewise.
13483
13484 2002-08-20  Casper S. Hornstrup  <chorns@users.sourceforge.net>
13485
13486         * libc/stdlib/mallocr.c: #include windows.h on Win32.
13487           (AlignPage): Continue macro on next line.
13488
13489 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
13490
13491         * libc/sys/linux/include/pthread.h: New file.
13492
13493 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
13494
13495         * libc/include/sys/types.h: Support __need_inttypes macro
13496         that only sets the __intxx and __uintxx types.
13497         * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
13498         to get mprec.h.
13499         * libc/machine/powerpc/Makefile.in: Regenerated.
13500         * libc/machine/powerpc/vfprintf.c: Fix state variable type.
13501         * libc/machine/powerpc/vfscanf.c: Fix state variable type.  Remove
13502         redundant fixed-point conversion prototypes.
13503         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
13504         after setting __need_inttypes.
13505
13506 2002-08-18  Christopher Faylor  <cgf@redhat.com>
13507
13508         * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
13509
13510 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
13511
13512         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
13513         _LONG_DOUBLE to double.
13514
13515 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
13516
13517         * configure.host: Add powerpc*-*-eabispe* configuration.
13518         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
13519         * libc/machine/powerpc/atosfix32.c: Ditto.
13520         * libc/machine/powerpc/atosfix64.c: Ditto.
13521         * libc/machine/powerpc/atoufix16.c: Ditto.
13522         * libc/machine/powerpc/atoufix32.c: Ditto.
13523         * libc/machine/powerpc/atoufix64.c: Ditto.
13524         * libc/machine/powerpc/fix64.h: Ditto.
13525         * libc/machine/powerpc/simdldtoa.c: Ditto.
13526         * libc/machine/powerpc/strtosfix16.c: Ditto.
13527         * libc/machine/powerpc/strtosfix32.c: Ditto.
13528         * libc/machine/powerpc/strtosfix64.c: Ditto.
13529         * libc/machine/powerpc/strtoufix16.c: Ditto.
13530         * libc/machine/powerpc/strtoufix32.c: Ditto.
13531         * libc/machine/powerpc/strtoufix64.c: Ditto.
13532         * libc/machine/powerpc/ufix64toa.c: Ditto.
13533         * libc/machine/powerpc/configure.in: Add check for
13534         powerpc*-eabispe and add fixed-point conversion functions.
13535         * libc/machine/powerpc/configure: Regenerated.
13536         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
13537         %r and %R format specifiers which handle fixed-point data.
13538         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
13539         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
13540         function prototypes.
13541
13542 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
13543
13544         *  Makefile.am: Move cmath stuff into libc/sys/linux.
13545         *  Makefile.in: Regenerated.
13546         *  configure.host: Default -DMB_CAPABLE for x86-linux.
13547         *  libc/include/reent.h: Define _sbrk to take signed int argument.
13548         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
13549         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
13550         make locale name checking more efficient.  Also allow "C-ISO-8859-1"
13551         locale for LC_CTYPE and LC_MESSAGES.
13552         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
13553         *  libc/sys/linux/brk.c: Change sbrk prototype.
13554         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
13555         include <sys/features.h>.
13556         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
13557         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
13558         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
13559         with a few local additions.
13560         *  libc/sys/linux/sys/features.h: New file.
13561         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
13562         to take signed argument.
13563         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
13564         prototypes to take signed size argument.
13565
13566 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
13567
13568         * libc/sys/linux/cmath: New directory.
13569         * libc/sys/linux/include/cmathcalls.h: New file.
13570         * libc/sys/linux/include/complex.h: New file.
13571         * libc/sys/linux/machine/i386/huge_val.h: New file
13572         * libm/math/w_sincos.c: New file
13573         * libm/math/wf_sincos.c: New file
13574         * libm/mathfp/s_sincos.c: New file
13575         * libm/mathfp/sf_sincos.c: New file
13576         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
13577         * libc/include/math.h: Add sincos and sincosf declarations.
13578         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
13579         (SUBLIBS): Likewise.
13580         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
13581         * libm/math/Makefile.am (src): Add w_sincos.c.
13582         (fsrc): Add wf_sincos.c.
13583         * libm/mathfp/Makefile.am (src): Add s_sincos.c
13584         (fsrc): Add sf_sincos.c.
13585
13586 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
13587
13588         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
13589         Declare as extern chars and use the address operator to
13590         properly use values set in linker script.
13591
13592 2002-08-09  Jason Tishler  <jason@tishler.net>
13593
13594         * libc/stdlib/mallocr.c: Include <limits.h>.
13595         (request2size): Change macro to do
13596         unsigned long comparisons and avoid signed overflow.
13597         (mALLOc): Add overflow check for the number of bytes to allocate.
13598         (rEALLOc): Ditto.
13599
13600 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
13601
13602         * configure.host: Add check for --enable-newlib-io-pos-args
13603         and define WANT_IO_POS_ARGS flag if enabled.  Define
13604         the flag by default for x86-linux configurations.
13605         * configure.in: Add support for --enable-newlib-io-pos-args.
13606         * libc/configure.in: Ditto.
13607         * configure: Regenerated.
13608         * libc/configure: Ditto.
13609         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
13610         vfprintf.c and vfiprintf.c.
13611         * libc/stdio/Makefile.in: Regenerated.
13612         * libc/stdio/vfprintf.c: Add positional argument support that
13613         is enabled by compiling with -DWANT_IO_POS_ARGS.
13614
13615 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
13616
13617         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
13618         based on __mips_soft_float rather than __mips64.
13619         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
13620         of both 32-bit and 64-bit code.
13621
13622 2002-08-04  Christopher Faylor  <cgf@redhat.com>
13623
13624         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
13625         arguments for popen to match similar functionality in fopen.
13626
13627 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
13628
13629         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
13630
13631 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
13632
13633         * libc/sys/linux/Makefile.am: Add aio64.c.
13634         * libc/sys/linux/Makefile.in: Regenerated.
13635         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
13636         * libc/sys/linux/aio64.c: New file.
13637
13638 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
13639
13640         *  libc/include/sys/param.h (MAX, MIN): Added macros.
13641         *  libc/sys/linux/Makefile.am: Add new files.
13642         *  libc/sys/linux/Makefile.in: Regenerated.
13643         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
13644         *  libc/sys/linux/inode.c (fchdir): Added syscall.
13645         *  libc/sys/linux/ftw.c: New file.
13646         *  libc/sys/linux/ftw64.c: Ditto.
13647         *  libc/sys/linux/getwd.c: Ditto.
13648         *  libc/sys/linux/scandir64.c: Ditto.
13649         *  libc/sys/linux/strverscmp.c: Ditto.
13650         *  libc/sys/linux/versionsort.c: Ditto.
13651         *  libc/sys/linux/versionsort64.c: Ditto.
13652
13653 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
13654
13655         * libc/string/strings.tex: Fix typo for memccpy.
13656
13657 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
13658
13659         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
13660         * libc/sys/linux/sys/types.h (off64_t): Definition added.
13661
13662 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
13663
13664         * libc/sys/linux/Makefile.am: Add fclean.c.
13665         * libc/sys/linux/Makefile.in: Regenerated.
13666         * libc/sys/linux/fclean.c: New file.
13667
13668 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
13669
13670         * libc/sys/linux/Makefile.am: Add confstr.c.
13671         * libc/sys/linux/Makefile.in: Regenerated.
13672         * libc/sys/linux/confstr.c: New file.
13673         * libc/sys/linux/confstr.h: Ditto.
13674         * libc/sys/linux/sys/unistd.h: Include <features.h> and
13675         <bits/environments.h>.
13676
13677 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
13678
13679         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
13680         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
13681         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
13682         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
13683         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
13684         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
13685
13686 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
13687
13688         * libc/sys/linux/Makefile.am: Add new files.
13689         * libc/sys/linux/Makefile.in: Regenerated.
13690         * libc/sys/linux/fstab.c: New file.
13691         * libc/sys/linux/fstatvfs.c: Ditto.
13692         * libc/sys/linux/fstatvfs64.c: Ditto.
13693         * libc/sys/linux/internal_statvfs.c: Ditto.
13694         * libc/sys/linux/mntent.c: Ditto.
13695         * libc/sys/linux/mntent_r.c: Ditto.
13696         * libc/sys/linux/statvfs.c: Ditto.
13697         * libc/sys/linux/statvfs64.c: Ditto.
13698         * libc/sys/linux/include/paths.h: Ditto.
13699         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
13700         with double-underscore weak-aliases.
13701         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
13702
13703 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
13704
13705         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
13706         to use _sig_func_ptr type casted constants.
13707         (_sig_func_ptr): Typedef moved to sys/signal.h.
13708         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
13709         For __rtems, use POSIX definition, otherwise default to ANSI.
13710         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
13711
13712 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
13713
13714         * configure.host: Recognize m6811-elf and m6812-elf targets.
13715         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
13716         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
13717         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
13718         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
13719         according to __INT_MAX__.
13720         (_POINTER_INT): Define to short.
13721         * libc/machine/m68hc11/Makefile.am: New file.
13722         * libc/machine/m68hc11/Makefile.in: New file.
13723         * libc/machine/m68hc11/configure.in: New file.
13724         * libc/machine/m68hc11/configure: New file.
13725         * libc/machine/m68hc11/aclocal.m4: New file.
13726         * libc/machine/m68hc11/setjmp.S: New file.
13727
13728 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
13729
13730         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
13731         prototypes.
13732         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
13733         * libc/stdlib/Makefile.in: Regenerated.
13734         * libc/stdlib/strdup.c: Removed.
13735         * libc/stdlib/strdup_r.c: Removed.
13736         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
13737         mempcpy.c, strndup.c, and strndup_r.c.
13738         * libc/string/Makefile.in: Regenerated.
13739         * libc/string/memccpy.c: New file.
13740         * libc/string/mempcpy.c: Ditto.
13741         * libc/string/strndup.c: Ditto.
13742         * libc/string/strndup_r.c: Ditto.
13743         * libc/string/strdup.c: New file moved from stdlib.
13744         * libc/string/strdup_r.c: Ditto.
13745         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
13746
13747 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
13748
13749         * libc/include/stdio.h: Move fcloseall prototype within
13750         #ifndef _REENT_ONLY section.
13751         * libc/sys/linux/Makefile.am: Add new files.
13752         * libc/sys/linux/Makefile.in: Regenerated.
13753         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
13754         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
13755         * libc/sys/linux/sys/types.h: Add ino64_t type.
13756         * libc/sys/linux/ctermid.c: New file.
13757         * libc/sys/linux/ttyname_r.c: Ditto.
13758         * libc/sys/linux/readdir64.c: Ditto.
13759
13760 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
13761
13762         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
13763         * libc/stdio/Makefile.am: Added fcloseall.c support.
13764         * libc/stdio/Makefile.in: Regenerated.
13765         * libc/stdio/fcloseall.c: New file.
13766         * libc/stdio64/Makefile.am: Remove missing .def references.
13767         * libc/stdio64/Makefile.in: Regenerated.
13768
13769 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
13770
13771         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
13772         * libc/machine/powerpc/times.c: New file.
13773         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
13774         * libc/machine/powerpc/Makefile.in: Regenerated.
13775
13776 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
13777
13778         * libc/machine/powerpc/time.c: New file.
13779         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
13780         time.c.
13781         * libc/machine/powerpc/Makefile.in: Regenerated.
13782
13783 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
13784
13785         * libc/libc.texinfo: Change copyright notices to Red Hat from
13786         Cygnus.
13787         * libm/libm.texinfo: Likewise.
13788         * README: Change docs URL to
13789         http://sources.redhat.com/newlib/docs.html.
13790
13791 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
13792
13793         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
13794         * libc/sys/linux/Makefile.in: Regenerated.
13795         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
13796         * libc/sys/linux/io.c: Add ftruncate syscall.
13797         * libc/sys/linux/fpathconf.c: New file.
13798         * libc/sys/linux/pathconf.c: Ditto.
13799         * libc/sys/linux/linux_fsinfo.h: Ditto.
13800         * libc/sys/linux/sys/unistd.h: Ditto.
13801
13802 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
13803
13804         * libc/stdio64/Makefile.am: Remove missing files.
13805         * libc/stdio64/Makefile.in: Regenerated.
13806
13807 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
13808
13809         * libc/include/sys/config.h[__i386__][__linux__]: Define
13810         _LARGE64FILE_SOURCE to 1.
13811         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
13812         * libc/sys/linux/Makefile.in: Regenerated.
13813         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
13814         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
13815         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
13816         of <linux/resource.h>.
13817         * libc/sys/linux/getrlimit64.c: New file.
13818         * libc/sys/linux/setrlimit64.c: Ditto.
13819
13820 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
13821
13822         * libc/argz/argz_replace.c: Include buf_findstr.h.
13823         * libc/argz/buf_findstr.c: Likewise.
13824         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
13825         value to (char *).
13826         * libc/argz/envz_get.c: Likewise.
13827         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
13828         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
13829         * libc/stdlib/getsubopt.3: New file.
13830         * libc/stdlib/getsubopt.c: New file.
13831         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
13832         Change esp to ebp.
13833
13834 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
13835
13836         * configure.host(stdio64_dir): New setting that is used to
13837         enable building of new stdio64 directory.
13838         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
13839         large files.
13840         (stmp-stdio64,stdio64.texi): New targets to optionally add in
13841         stdio64 info to info files.
13842         * libc/Makefile.in: Regenerated.
13843         * libc/configure: Ditto.
13844         * libc/configure.in: Add configuration variables that are set
13845         when stdio64 is selected as subdir in configure.host.
13846         * libc/libc.texinfo: Add optional menu item for Stdio64, based
13847         on whether STDIO64 flag is set or not.
13848         * libc/sys.tex: Add optional stdio64 syscalls based on whether
13849         STDIO64 flag is set or not.
13850         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
13851         _r sycall routines.
13852         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
13853         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
13854         (__SL64): New file flag indicating file is opened via fopen64.
13855         * libc/include/sys/_types.h(_off64_t): Added.
13856         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
13857         * libc/include/sys/reent.h(struct __sFILE64): New file structure
13858         for 64-bit offset large file support.
13859         (__FILE): New intermediate type either set to struct __sFILE64 or
13860         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
13861         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
13862         * libc/reent/Makefile.in: Regenerated.
13863         * libc/reent/fstat64r.c: New file.
13864         * libc/reent/lseek64r.c: Ditto.
13865         * libc/reent/open64r.c: Ditto.
13866         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
13867         based on whether STDIO64 flag is set.
13868         * libc/stdio/stdio.tex: Add blank line.
13869         * libc/stdio64/Makefile.am: New file.
13870         * libc/stdio64/Makefile.in: Ditto.
13871         * libc/stdio64/fgetpos64.c: Ditto.
13872         * libc/stdio64/fopen64.: Ditto.
13873         * libc/stdio64/freopen64.c: Ditto.
13874         * libc/stdio64/fseeko64.c: Ditto.
13875         * libc/stdio64/fsetpos64.c: Ditto.
13876         * libc/stdio64/ftello64.c: Ditto.
13877         * libc/stdio64/local64.h: Ditto.
13878         * libc/stdio64/stdio64.c: Ditto.
13879         * libc/stdio64/stdio64.tex: Ditto.
13880         * libc/stdio64/tmpfile64.c: Ditto.
13881         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
13882         open64.
13883
13884 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
13885
13886         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
13887         if LIBC_EXTRA_LIB is present.
13888         * libc/Makefile.in: Regenerated.
13889         * libc/libc.texinfo: Add blank line.
13890         * libc/argz/Makefile.am: Add doc support.
13891         * libc/search/Makefile.am: Ditto.
13892         * libc/argz/Makefile.in: Regenerated.
13893         * libc/search/Makefile.in: Ditto.
13894         * libc/misc/misc.tex: Add ffs function.
13895         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
13896
13897 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
13898
13899         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
13900         definition that was removed in error.
13901
13902 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
13903
13904         * libc/include/machine/ieeefp.h: Change to only define
13905         floating point defines (e.g one of __IEEE_BIG_ENDIAN or
13906         __IEEE_LITTLE_ENDIAN must be defined for each platform).
13907         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
13908         remove redundant floating point definitions.
13909
13910 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
13911
13912         * libc/sys/linux/callocr.c: Fix so code references
13913         calloc.
13914
13915 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
13916
13917         * libc/sys/linux/Makefile.am: Add new files.
13918         * libc/sys/linux/Makefile.in: Regenerated.
13919         * libc/sys/linux/bp-sym.h: Moved to include directory.
13920         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
13921         * libc/sys/linux/inode.c: Set _LIBC to 1.
13922         * libc/sys/linux/mq_close.c: Ditto.
13923         * libc/sys/linux/mq_getattr.c: Ditto.
13924         * libc/sys/linux/mq_open.c: Ditto.
13925         * libc/sys/linux/mq_receive.c: Ditto.
13926         * libc/sys/linux/mq_send.c: Ditto.
13927         * libc/sys/linux/mq_setattr.c: Ditto.
13928         * libc/sys/linux/mq_unlink.c: Ditto.
13929         * libc/sys/linux/calloc.c: New file.
13930         * libc/sys/linux/callocr.c: Ditto.
13931         * libc/sys/linux/cfreer.c: Ditto.
13932         * libc/sys/linux/config.h: Ditto.
13933         * libc/sys/linux/free.c: Ditto.
13934         * libc/sys/linux/freer.c: Ditto.
13935         * libc/sys/linux/msize.c: Ditto.
13936         * libc/sys/linux/msizer.c: Ditto.
13937         * libc/sys/linux/mstats.c: Ditto.
13938         * libc/sys/linux/mtrim.c: Ditto.
13939         * libc/sys/linux/mtrimr.c: Ditto.
13940         * libc/sys/linux/pvallocr.c: Ditto.
13941         * libc/sys/linux/realloc.c: Ditto.
13942         * libc/sys/linux/reallocr.c: Ditto.
13943         * libc/sys/linux/thread-m.h: Ditto.
13944         * libc/sys/linux/vallocr.c: Ditto.
13945         * libc/sys/linux/bp-checks.h: Ditto.
13946         * libc/sys/linux/libc-symbols.h: Ditto.
13947         * libc/sys/linux/libc-tsd.h: Ditto.
13948         * libc/sys/linux/libintl.h: Ditto.
13949         * libc/sys/linux/malign.c: Ditto.
13950         * libc/sys/linux/malignr.c: Ditto.
13951         * libc/sys/linux/mallinfor.c: Ditto.
13952         * libc/sys/linux/malloc.c: Ditto.
13953         * libc/sys/linux/mallocr.c: Ditto.
13954         * libc/sys/linux/malloptr.c: Ditto.
13955         * libc/sys/linux/mallstatsr.c: Ditto.
13956         * libc/sys/linux/mcheck.c: Ditto.
13957         * libc/sys/linux/mhooks.h: Ditto.
13958         * libc/sys/linux/include/bp-sym.h: Ditto.
13959         * libc/sys/linux/include/malloc.h: Ditto.
13960         * libc/sys/linux/include/mcheck.h: Ditto.
13961         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
13962         getpagesize.c.
13963         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
13964         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
13965         * libc/sys/linux/machine/i386/getpagesize.c: New file.
13966         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
13967         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
13968         * libc/sys/linux/machine/i386/sysdep.h: New file.
13969         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
13970         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
13971         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
13972
13973 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
13974
13975         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
13976         instead of <asm/siginfo.h>.
13977         * libc/sys/linux/sys/signal.h: Change to include various linux
13978         <bits/xxx.h> header files, rather than <linux/signal.h> so as
13979         to work with multiple releases of glibc header files.
13980
13981 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
13982
13983         * testsuite/newlib.search/hsearchtest.c: New file to test
13984         newlib/libc/search.
13985         * testsuite/newlib.search/hsearchtest.exp: Likewise.
13986
13987 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
13988
13989         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
13990         a terminal.
13991         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
13992
13993 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
13994
13995         * libc/include/math.h (MAXFLOAT): Added.
13996
13997 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
13998
13999         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
14000         Make strcmp.S unconditional.
14001         * libc/machine/sh/Makefile.in: Regenerate.
14002         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
14003         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
14004         for SHcompact.
14005
14006 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
14007
14008         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
14009         define before including <sys/lock.h>.
14010
14011 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
14012
14013         * libc/include/utime.h: Add include of <_ansi.h>.
14014         * libc/sys/linux/Makefile.am: Add utimes.c.
14015         * libc/sys/linux/Makefile.in: Regenerated.
14016         * libc/sys/linux/inode.c(__umask): New static routine.
14017         (umask): Written to use __umask and attempt to thread lock.
14018         (getumask): New function written to use __umask and thread lock.
14019         * libc/sys/linux/utimes.c: New file.
14020         * libc/sys/linux/sys/time.h: Fix utimes prototype.
14021         * libc/sys/linux/sys/utime.h: New file.
14022
14023 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
14024
14025         * libtool.m4: New file.
14026         * libc/sys/linux/process.c: Implement vfork in terms of fork,
14027         rather than as a syscall.
14028
14029 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
14030
14031         * libc/include/stdio.h: Add new prototypes.
14032         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
14033         * libc/stdio/Makefile.in: Regenerated.
14034         * libc/stdio/fseek.c: Add fseeko documentation.
14035         * libc/stdio/ftell.c: Add ftello documentation.
14036         * libc/stdio/fseeko.c: New file.
14037         * libc/stdio/ftello.c: New file.
14038
14039 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
14040
14041         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
14042         * libc/stdio/Makefile.in: Regenerated.
14043         * libc/stdio/asprintf.c: New file.
14044         * libc/stdio/vasprintf.c: Ditto.
14045         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
14046         the buffer for asprintf support.
14047         * libc/stdio/sprintf.c: Add asprintf documentation.
14048         * libc/stdio/vfprintf.c: Add vasprintf documentation.
14049         * libc/include/stdio.h: Add new prototypes.
14050
14051 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
14052
14053         * libc/search/hcreate.c: Remove advertising clause from license.
14054         * libc/search/hcreate_r.c: Likewise.
14055
14056 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
14057
14058         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
14059         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
14060         Check that one of them is defined and error out if not.
14061         Add any platforms defined in <machine/ieeefp.h> that are missing.
14062         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
14063         (DB_LITTLE_ENDIAN): New defines.
14064         * libc/search/hash.c: Replace all incorrect checks for
14065         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
14066         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
14067         * libc/search/hash_page.c: Likewise.
14068
14069 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
14070
14071         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
14072
14073 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
14074
14075         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
14076         * libc/include/time.h: Same.
14077         * libc/include/string.h: Same.
14078         * libc/include/stdlib.h: Same.
14079         * libc/include/signal.h: Same.
14080         * libc/include/setjmp.h: Same.
14081         * libc/include/math.h: Same.
14082         * libc/include/locale.h: Same.
14083         * libc/include/ctype.h: Same.
14084         * libc/include/machine/setjmp.h: Same.
14085         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
14086         (_END_STD_C): Add.
14087
14088 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
14089
14090         * libc/include/sys/_types.h: Define _ssize_t as int if int is
14091         32-bits, otherwise define it as long.
14092         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
14093         and define ssize_t as _ssize_t.
14094         * libc/reent/readr.c: Change return type to _ssize_t.
14095         * libc/reent/writer.c: Ditto.
14096         * libc/sys/linux/Makefile.am: Add aio.c.
14097         * libc/sys/linux/Makefile.in: Regenerated.
14098         * libc/sys/linux/aio.c: New file.
14099         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
14100         * libm/common/fdlibm.h: Undef __P before defining it.
14101
14102 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
14103
14104         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
14105         exponent_is_even_int variable.  Handle case where x is
14106         negative, and y is an odd integer.
14107         * libm/mathfp/sf_pow.c (powf): Likewise.
14108
14109         * libm/mathfp/er_lgamma.c: Remove __kernel references.
14110         * libm/mathfp/erf_lgamma.c: Likewise.
14111         * libm/mathfp/s_tgamma.c: Likewise.
14112         * libm/mathfp/sf_tgamma.c: Likewise.
14113
14114 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
14115
14116         * libc/sys/linux/Makefile.am: Add new clock routines.
14117         * libc/sys/linux/Makefile.in: Regenerated.
14118         * libc/sys/linux/clock_getres.c: New file.
14119         * libc/sys/linux/clock_gettime.c: Ditto.
14120         * libc/sys/linux/clock_settime.c: Ditto.
14121         * libc/sys/linux/hp-timing.h: Ditto.
14122         * libc/sys/linux/libc-internal.h: Ditto.
14123         * libc/sys/linux/sysconf.c: Fix typo.
14124         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
14125         * libc/sys/linux/machine/hp-timing.h: New file.
14126         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
14127         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
14128         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
14129         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
14130         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
14131         * libc/sys/linux/sys/linux_time.h: New file.
14132         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
14133         replace with <sys/linux_time.h>.
14134
14135 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
14136
14137         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
14138
14139 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
14140
14141         * libc/sys/linux/Makefile.am: Consolidate additional items under
14142         ADD_OBJS.
14143         * libc/sys/linux/Makefile.in: Regenerated.
14144
14145 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
14146
14147         * libc/sys/linux/sethostname.c: New file.
14148         * libc/sys/linux/Makefile.am: Add sethostname.c support.
14149         * libc/sys/linux/Makefile.in: Regenerated.
14150
14151 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
14152
14153         * libc/search/db_local.h: New file.
14154         * libc/include/db.h: Remove.
14155         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
14156         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
14157         "db_local.h".
14158         * libc/search/hash_bigkey.c: Likewise.
14159         * libc/search/hash_buf.c: Likewise.
14160         * libc/search/hash_func.c: Likewise.
14161         * libc/search/hash_log2.c: Likewise.
14162         * libc/search/hash_page.c: Likewise.
14163
14164 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
14165
14166         * libc/machine/sh/strlen.S: New file.
14167         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
14168         * libc/machine/sh/Makefile.am: Regenerate.
14169
14170 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
14171
14172         * libc/sys/linux/gethostname.c: Change name to __gethostname and
14173         add gethostname alias.
14174
14175 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
14176
14177         * libc/include/math.h: Remove <sys/types.h>.
14178         (__dmath): Use __ULong instead of __uint32_t.
14179         * libc/include/sys/reent.h: If long or int is not 32-bits,
14180         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
14181         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
14182         * libm/common/fdlibm.h: Ditto.
14183
14184 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
14185
14186         * libc/include/ndbm.h: Remove.
14187         * libc/search/ndbm.c: Remove.
14188
14189 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
14190
14191         * libc/stdio/fseek.c (fseek): Fix braces.
14192
14193 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
14194
14195         * libc/time/strftime.c (strftime): Add %e format specifier.
14196
14197 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
14198
14199         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
14200         previously defined.
14201
14202 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
14203
14204         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
14205         (BYTE_ORDER): Define as appropriate for the target.
14206
14207 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
14208
14209         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
14210         to _ssize_t.
14211         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
14212
14213 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
14214
14215         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
14216         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
14217         [HAVE_GETDATE](getdate_err): New error code.
14218         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
14219         * libc/stdio/Makefile.in: Regenerated.
14220         * libc/stdio/getdelim.c: New file.
14221         * libc/stdio/getline.c: Ditto.
14222         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
14223         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
14224         * libc/sys/linux/Makefile.in: Regenerated.
14225         * libc/sys/linux/getdate.c: New file.
14226         * libc/sys/linux/getdate_err.c: Ditto.
14227         * libc/sys/linux/ntp_gettime.c: Ditto.
14228         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
14229         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
14230
14231 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
14232
14233         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
14234         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
14235         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
14236         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
14237         * libc/include/sys/param.h: Remove i386 case which is handled
14238         by default case.
14239         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
14240         definitions in case they are already defined.
14241         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
14242         _IEEE_LITTLE_ENDIAN flags.
14243         * libc/include/sys/reent.h: Change __uint32_t references to
14244         use _ULong instead.
14245         (_REENT_GETDATE_REENT_P): New macro.
14246         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
14247         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
14248         * libc/search/hash.h: Add default setting of BYTE_ORDER,
14249         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
14250         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
14251         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
14252         pid_t, off_t, loff_t, caddr_t, and daddr_t type
14253         definitions which are done by subsequent glibc headers.
14254         Add macro definitions to prevent subsequent header files from
14255         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
14256         intptr_t to after glibc definitions of types they are based on.
14257
14258 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
14259
14260         * libc/include/errno.h: Protect from multiple inclusion.
14261
14262 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
14263
14264         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
14265
14266 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
14267
14268         * Makefile.am (LIB_OBJECTLISTS): Add
14269         libc/search/objectlist.awk.in.
14270         * libc/Makefile.am (SUBDIRS): Add search.
14271         (SUBLIBS): Add search/libsearch.la.
14272         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
14273         * libc/search: New directory.
14274         * libc/search/Makefile.am: New file.
14275         * libc/search/extern.h: New file.
14276         * libc/search/hash.c: New file.
14277         * libc/search/hash.h: New file.
14278         * libc/search/hash_bigkey.c: New file.
14279         * libc/search/hash_buf.c: New file.
14280         * libc/search/hash_func.c: New file.
14281         * libc/search/hash_log2.c: New file.
14282         * libc/search/hash_page.c: New file.
14283         * libc/search/hcreate.3: New file.
14284         * libc/search/hcreate.c: New file.
14285         * libc/search/hcreate_r.c: New file.
14286         * libc/search/ndbm.c: New file.
14287         * libc/search/page.h: New file.
14288         * libc/search/tdelete.c: New file.
14289         * libc/search/tdestroy.c: New file.
14290         * libc/search/tfind.c: New file.
14291         * libc/search/tsearch.3: New file.
14292         * libc/search/tsearch.c: New file.
14293         * libc/search/twalk.c: New file.
14294         * libc/include/db.h: New file.
14295         * libc/include/ndbm.h: New file.
14296         * libc/include/search.h: New file.
14297         * libc/include/sys/queue.h: New file.
14298         * libc/include/sys/cdefs.h: New file.
14299         * libc/include/sys/param.h
14300         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
14301         LITTLE_ENDIAN or BIG_ENDIAN.
14302         * libc/include/sys/errno.h (EFTYPE): New macro.
14303         * libc/search/bsearch.c: Move from libc/stdlib.
14304         * libc/search/qsort.c: Likewise.
14305         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
14306         qsort.c.
14307         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
14308         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
14309
14310 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
14311
14312         * libc/sys/linux/Makefile.am: Add support for message queue routines,
14313         ipc routines, and ftok.
14314         * libc/sys/linux/Makefile.in: Regenerated.
14315         * libc/sys/linux/ftok.c: New file.
14316         * libc/sys/linux/ipc.c: Ditto.
14317         * libc/sys/linux/mq_close.c: Ditto.
14318         * libc/sys/linux/mq_getattr.c: Ditto.
14319         * libc/sys/linux/mq_notify.c: Ditto.
14320         * libc/sys/linux/mq_open.c: Ditto.
14321         * libc/sys/linux/mq_receive.c: Ditto.
14322         * libc/sys/linux/mq_send.c: Ditto.
14323         * libc/sys/linux/mq_setattr.c: Ditto.
14324         * libc/sys/linux/mq_unlink.c: Ditto.
14325         * libc/sys/linux/mqlocal.h: Ditto.
14326         * libc/sys/linux/include/mqueue.h: Ditto.
14327         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
14328         __uid_t_defined.
14329
14330 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
14331
14332         * libm/common/sf_lround.c (round): Change name to: (lround).
14333         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
14334         remquof.
14335
14336 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
14337
14338         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
14339         procedure.
14340         (newlib_pass_fail): Change to compile and run only one file.
14341         * testsuite/newlib.locale/locale.exp: Use new
14342         newlib_pass_fail_all procedure.
14343         * testsuite/newlib.string/string.exp: Likewise.
14344
14345 2002-06-18  Dave Brolley  <brolley@redhat.com>
14346
14347         From Catherine Moore, Michael Meissner, Richard Sandiford:
14348         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
14349         (_JBTYPE): Ditto.
14350         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
14351         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
14352         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
14353         * configure.host: Support frv-*-*.
14354         * libc/machine/frv/Makefile.am: New file.
14355         * libc/machine/frv/configure.in: New file.
14356         * libc/machine/frv/setjmp.S: New file.
14357
14358 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
14359
14360         * libc/include/ctype.h: Remove isblank macro.
14361
14362         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
14363         * libc/ctype/isblank.c: New file.
14364         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
14365         declaration.  Add isblank macro.
14366
14367 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
14368
14369         * testsuite/newlib.stdlib/atexit.c: New file.
14370         * testsuite/newlib.stdlib/atexit.exp: Ditto.
14371         * testsuite/newlib.string/tstring.c: Change default start size
14372         to something more reasonable for embedded platforms.
14373
14374 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
14375
14376         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
14377
14378         * libc/argz: New directory.
14379         * libc/argz/*: New files.
14380         * libc/argz/argz_add.c: New file.
14381         * libc/argz/argz_add_sep.c: New file.
14382         * libc/argz/argz_append.c: New file.
14383         * libc/argz/argz_count.c: New file.
14384         * libc/argz/argz_create.c: New file.
14385         * libc/argz/argz_create_sep.c: New file.
14386         * libc/argz/argz_delete.c: New file.
14387         * libc/argz/argz_extract.c: New file.
14388         * libc/argz/argz_insert.c: New file.
14389         * libc/argz/argz_next.c: New file.
14390         * libc/argz/argz_replace.c: New file.
14391         * libc/argz/argz_stringify.c: New file.
14392         * libc/argz/buf_findstr.c: New file.
14393         * libc/argz/envz_add.c: New file.
14394         * libc/argz/envz_entry.c: New file.
14395         * libc/argz/envz_get.c: New file.
14396         * libc/argz/envz_merge.c: New file.
14397         * libc/argz/envz_remove.c: New file.
14398         * libc/argz/envz_strip.c: New file.
14399         * libc/include/argz.h: New file.
14400         * libc/include/envz.h: New file.
14401         * Makefile.am (LIBC_OBJECTLISTS): Add
14402         libc/argz/objectlist.awk.in.
14403         * libc/Makefile.am (SUBDIRS): Add argz.
14404         (SUBLIBS): Add argz/libargz.la.
14405         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
14406         * libc/include/errno.h: Add error_t typedef.
14407
14408 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
14409
14410         * libc/include/stdlib.h: Add _Exit prototype.
14411         * libc/stdlib/Makefile.am: Add _Exit.c support.
14412         * libc/stdlib/Makefile.in: Ditto.
14413         * libc/stdlib/_Exit.c: New file.
14414
14415 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
14416
14417         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
14418         x is close to -1.0 and y is very large to use ax (absolute value)
14419         instead of x.
14420         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
14421
14422 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
14423
14424         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
14425         Fix clobbering bytes before destination if src and dst have same
14426         non-zero misalignment.
14427
14428         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
14429         Fixed bug in writing end of set region.
14430
14431 2002-06-10  Christopher Faylor  <cgf@redhat.com>
14432
14433         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
14434         spawnve declaration.
14435
14436 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
14437
14438         * libm/common/s_fdim.c: New file.
14439         * libm/common/s_fma.c: Likewise.
14440         * libm/common/s_fmax.c: Likewise.
14441         * libm/common/s_fmin.c: Likewise.
14442         * libm/common/s_fpclassify.c: Likewise.
14443         * libm/common/s_lrint.c: Likewise.
14444         * libm/common/s_lround.c: Likewise.
14445         * libm/common/s_nearbyint.c: Likewise.
14446         * libm/common/s_remquo.c: Likewise.
14447         * libm/common/s_round.c: Likewise.
14448         * libm/common/s_scalbln.c: Likewise.
14449         * libm/common/s_signbit.c: Likewise.
14450         * libm/common/s_trunc.c: Likewise.
14451         * libm/common/sf_fdim.c: Likewise.
14452         * libm/common/sf_fma.c: Likewise.
14453         * libm/common/sf_fmax.c: Likewise.
14454         * libm/common/sf_fmin.c: Likewise.
14455         * libm/common/sf_lrint.c: Likewise.
14456         * libm/common/sf_lround.c: Likewise.
14457         * libm/common/sf_nearbyint.c: Likewise.
14458         * libm/common/sf_remquo.c: Likewise.
14459         * libm/common/sf_round.c: Likewise.
14460         * libm/common/sf_scalbln.c: Likewise.
14461         * libm/common/sf_trunc.c: Likewise.
14462         * libm/math/w_exp2.c: Likewise.
14463         * libm/math/w_tgamma.c: Likewise.
14464         * libm/math/wf_exp2.c: Likewise.
14465         * libm/math/wf_tgamma.c: Likewise.
14466         * libm/mathfp/s_exp2.c: Likewise.
14467         * libm/mathfp/s_tgamma.c: Likewise.
14468         * libm/mathfp/sf_exp2.c: Likewise.
14469         * libm/mathfp/sf_tgamma.c: Likewise.
14470         * libm/math/er_gamma.c: Fix return value.
14471         * libm/math/erf_gamma.c: Likewise.
14472         * libm/mathfp/er_gamma.c: Likewise.
14473         * libm/mathfp/erf_gamma.c: Likewise.
14474         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
14475         declarations and macros.
14476         Regenerated all Makefile.in, aclocal.m4 and configure files to
14477         use new libtool macros in top-level libtool.m4
14478
14479 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
14480
14481         * libc/include/string.h[__linux__]: Add strsignal prototype.
14482         * libc/include/sys/lock.h: New file with default locking support.
14483         * libc/include/sys/reent.h: Add signal buffer support for strsignal
14484         and psignal.
14485         * libc/posix/Makefile.am: Add support for readdir_r.c.
14486         * libc/posix/Makefile.in: Regenerated.
14487         * libc/posix/closedir.c: Add locking support and hash table cleanup.
14488         * libc/posix/opendir.c: Add lock support.
14489         * libc/posix/readdir.c: Ditto.
14490         * libc/posix/rewinddir.c: Ditto.
14491         * libc/posix/scandir.c: Ditto.
14492         * libc/posix/seekdir.c: Ditto.
14493         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
14494         clean up leftover hash table entries.
14495         * libc/posix/readdir_r.c: New file.
14496         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
14497         * libc/sys/linux/Makefile.in: Regenerated.
14498         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
14499         * libc/sys/linux/sys/signal.h: Add psignal prototype.
14500         * libc/sys/linux/psignal.c: New file.
14501         * libc/sys/linux/strsignal.c: Ditto.
14502
14503 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
14504
14505         * libc/include/sys/types.h: Don't define dev_t when compiling for
14506         Cygwin.
14507
14508 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
14509
14510         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
14511         make siglist.inc dependent on sig.c instead of signal.c.
14512         * libc/sys/linux/Makefile.in: Regenerated.
14513         * libc/sys/linux/sig.c: Rename from signal.c and change code to
14514         use NSIG instead of _NSIG.
14515         * libc/sys/linux/sigaction.c: New file.
14516         * libc/sys/linux/signal.c: Changed to be linux signal() function
14517         so as to override regular newlib default signal.c.
14518         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
14519         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
14520         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
14521         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
14522         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
14523         default linux sigset_t typedef by defining it equal to __sigset_t.
14524         * libc/unix/sigset.c: Add check so code isn't compiled on systems
14525         with a sigset_t that isn't implemented with a single int.
14526
14527 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
14528
14529         * libc/sys/linux/Makefile.am: Add support for new files.
14530         * libc/sys/linux/Makefile.in: Regenerated.
14531         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
14532         * libc/sys/linux/signal.c: Change to use real-time syscalls for
14533         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
14534         it is in a separate file now.
14535         * libc/sys/linux/machine/i386/Makefile.am
14536         * libc/sys/linux/machine/i386/Makefile.in
14537         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
14538         * libc/sys/linux/sigaction.c: New file.
14539         * libc/sys/linux/sigqueue.c: Ditto.
14540         * libc/sys/linux/sigwait.c: Ditto.
14541         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
14542         * libc/sys/linux/kernel_sigaction.h: Ditto.
14543
14544 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
14545
14546         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
14547         tcsendbrk.c.
14548         * libc/sys/linux/Makefile.in: Regenerated.
14549         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
14550         tcgetpgrp(), and tcsetpgrp() functions.
14551         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
14552         to get __MAX_BAUD rate.
14553         * libc/sys/linux/machine/i386/include/termios.h: New file.
14554         * libc/include/machine/termios.h: Ditto.
14555         * libc/sys/linux/cfspeed.c: Ditto.
14556         * libc/sys/linux/tcsendbrk.c: Ditto.
14557
14558 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
14559
14560         * libc/include/string.h: Add strnlen and strerror_r prototypes.
14561         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
14562         * libc/string/Makefile.in: Regenerated.
14563         * libc/string/strerror_r.c: New file.
14564         * libc/string/strnlen.c: New file.
14565         * libc/sys/linux/Makefile.am: Add rename.c.
14566         * libc/sys/linux/Makefile.in: Regenerated.
14567         * libc/sys/linux/rename.c: New file to override default rename.
14568
14569 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
14570
14571         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
14572         * libc/sys/linux/sys/time.h: Add conversion macros.
14573         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
14574         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
14575         * libc/sys/linux/gethostname.c: New file.
14576         * libc/sys/linux/seteuid.c: New file.
14577         * libc/sys/linux/sysctl.c: New file.
14578
14579 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
14580
14581         * libc/string/Makefile.am: Add support for strsep.c.
14582         * libc/string/Makefile.in: Regenerated.
14583         * libc/string/strsep.c: New file.
14584         * libc/string/strtok.c: Change to call __strtok_r service routine.
14585         * libc/string/strtok_r.c: Add __strtok_r routine which takes
14586         additional flag parameter regarding whether to skip leading delimeters.
14587         Change strtok_r to call __strtok_r.
14588
14589 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
14590
14591         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
14592         * libc/stdio/Makefile.in: Regenerated.
14593         * libc/stdio/setbuffer.c: New file.
14594         * libc/stdio/setlinebuf.c: New file.
14595
14596 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
14597
14598         * libc/sys/linux/Makefile.am: Add resource.c.
14599         * libc/sys/linux/Makefile.in: Regenerated.
14600         * libc/sys/linux/resource.c: New file.
14601         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
14602         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
14603         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
14604         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
14605         are now found in libc/sys/linux/resource.c.
14606
14607 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
14608
14609         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
14610         to use void * pointers and comply with Single Unix spec.
14611         * libc/string/bcmp.c: Change to use void * instead of char *.
14612         * libc/string/bcopy.c: Ditto.
14613         * libc/string/bzero.c: Ditto.
14614
14615 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
14616
14617         * libc/sys/linux/shm_open.c: New file.
14618         * libc/sys/linux/shm_unlink.c: Ditto.
14619         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
14620         shm_unlink.c.
14621         * libc/sys/linux/Makefile.in: Regenerated.
14622         * libc/sys/linux/sys/types.h: Add some additional checks to see
14623         if clock_t or time_t is already defined.
14624
14625 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
14626
14627         * Makefile.am: Don't pass $toollibdir down directly in
14628         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
14629         Pass it under the name: top_toollibdir.
14630         * Makefile.in: Regenerated.
14631
14632 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
14633
14634         * libc/include/sys/types.h: Revert previous patch.
14635
14636 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
14637
14638         * libc/include/sys/types.h: Include cygwin/types.h always under
14639         Cygwin, not only if _POSIX_THREADS is defined.
14640
14641 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
14642
14643         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
14644
14645 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
14646
14647         * Makefile.am: Copy and install headers from sys/machine/include
14648         directory.  Also pass $toollibdir to lower-level directories.
14649         * Makefile.in: Regenerated.
14650         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
14651         stderr to use _REENT macro instead of _impure_ptr directly.
14652         * libc/include/sys/config.h[__i386__][__linux__]: Define
14653         __DYNAMIC_REENT__.
14654         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
14655         call to __getreent() function if !__SINGLE_THREAD__ and
14656         __DYNAMIC_REENT__ is set.
14657         * libc/reent/Makefile.am: Add support for getreent.c.
14658         * libc/reent/Makefile.in: Regenerated.
14659         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
14660         * libc/sys/linux/Makefile.am: Add support for new files.
14661         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
14662         * libc/sys/linux/Makefile.in: Regenerated.
14663         * libc/sys/linux/configure: Ditto.
14664         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
14665         __close, __read, __write, __poll, __open, __lseek, __fcntl from
14666         their __libc_ counterparts.
14667         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
14668         and weak-alias to regular names.
14669         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
14670         to pread64 and __pread64.
14671         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
14672         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
14673         weak-alias to pwrite64.
14674         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
14675         __libc_sched_getscheduler, __libc_sched_get_priority_max,
14676         __libc_sched_get_priority_min, and __libc_sched_setschedule to
14677         name with __ instead of __libc_.
14678         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
14679         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
14680         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
14681         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
14682         to raise.
14683         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
14684         __libc_send to __send.
14685         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
14686         __gettimeofday.
14687         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
14688         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
14689         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
14690         type and typedef __jmp_buf to jmp_buf.
14691         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
14692         setjmp.S.
14693         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
14694         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
14695         section.
14696         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
14697         prefix for function macros and then use weak_alias() to regular names.
14698         * libc/sys/linux/machine/i386/syscall.h: Ditto.
14699         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
14700         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
14701         to be flockfile() and funlockfile() respectively.
14702         * libc/sys/linux/sys/types.h
14703         * libc/reent/getreent.c: New file.
14704         * libc/sys/linux/flockfile.c: Ditto.
14705         * libc/sys/linux/funlockfile.c: Ditto.
14706         * libc/sys/linux/getreent.c: Ditto.
14707         * libc/sys/linux/pread.c: Ditto.
14708         * libc/sys/linux/pwrite.c: Ditto.
14709         * libc/sys/linux/raise.c: Ditto.
14710         * libc/sys/linux/system.c: Ditto.
14711         * libc/sys/linux/tcdrain.c: Ditto.
14712         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
14713         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
14714         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
14715         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
14716         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
14717
14718 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
14719
14720         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
14721         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
14722         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
14723         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
14724
14725 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
14726
14727         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
14728         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
14729         exit point.
14730
14731 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
14732
14733         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
14734         options when testing natively on i[3456]86-*-linux.
14735
14736         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
14737         only one pass or fail per test file.  Trim \r's from output
14738         values received from test programs.  Remove support for named
14739         tests.
14740         * testsuite/newlib.locale/UTF-8.exp: Update to support new
14741         newlib_check_output behaviour.
14742         * testsuite/newlib.locale/UTF-8.c: Likewise.
14743
14744 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
14745
14746         * libc/include/stdlib.h: Add on_exit prototype.
14747         * libc/include/sys/reent.h (struct _atexit): Add argument array
14748         and bits to track type of exit routine to support both on_exit
14749         and atexit.
14750         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
14751         by default and change the setting of the atexit structure.
14752         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
14753         * libc/stdlib/on_exit.c: New file.
14754         * libc/stdlib/Makefile.am: Add support for on_exit.
14755         * libc/stdlib/Makefile.in: Regenerated.
14756         * libc/stdlib/atexit.c: Change to initialize types field.
14757         * libc/stdlib/exit.c: Change to look at types field for each
14758         exit routine and either call an atexit-style or an on_exit-style
14759         routine accordingly.
14760
14761 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
14762
14763         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
14764         allow v specifier with n or L specifiers.  For vector c format,
14765         move tmp declaration to the top.
14766
14767 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
14768
14769         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
14770         the original format specifier when looping for vectors to compensate
14771         for any changes made in vector %g format processing.
14772         Also add syntax checking for various invalid scenarios
14773         involving vector format extensions.
14774         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
14775         return code setting for vector formats.  Also treat vector
14776         separator mismatch as a match error instead of an input error.
14777         Perform some syntax checking for vector formats.
14778
14779 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
14780
14781         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
14782         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
14783         * libc/string/strlcat.c: New file.
14784         * libc/string/strlcpy.c: New file.
14785
14786 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
14787
14788         * libc/string/strchr.c: Fix comment typo.
14789
14790 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
14791
14792         * acinclude.m4: Add support for --enable-newlib-multithread.
14793         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
14794         --enable-newlib-multithread=no.
14795
14796         * libc/stdio/getc_u.c: New file.
14797         * libc/stdio/getchar_u.c: New file.
14798         * libc/stdio/putc_u.c: New file.
14799         * libc/stdio/putchar_u.c: New file.
14800         * libc/include/stdio.h: Add declarations for getc_unlocked,
14801         getchar_unlocked, putc_unlocked and putchar_unlocked.
14802         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
14803         (CHEWOUT_FILES): Add new files' .def's.
14804         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
14805
14806 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
14807
14808         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
14809         Also handle as single quad word when destination ends at last
14810         byte of first quad word.  Fix byte selection in single quad code.
14811
14812 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
14813
14814         * libc/include/sys/stdio.h: New file.
14815         * libc/sys/linux/sys/stdio.h: New file.
14816         * libc/include/stdio.h: Add declarations for flockfile,
14817         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
14818         * libc/stdio/clearerr.c: Add file locking.
14819         * libc/stdio/fclose.c: Likewise.
14820         * libc/stdio/feof.c: Likewise.
14821         * libc/stdio/ferror.c: Likewise.
14822         * libc/stdio/fflush.c: Likewise.
14823         * libc/stdio/fgetc.c: Likewise.
14824         * libc/stdio/fgetpos.c: Likewise.
14825         * libc/stdio/fgets.c: Likewise.
14826         * libc/stdio/fileno.c: Likewise.
14827         * libc/stdio/fputc.c: Likewise.
14828         * libc/stdio/fputs.c: Likewise.
14829         * libc/stdio/fread.c: Likewise.
14830         * libc/stdio/freopen.c: Likewise.
14831         * libc/stdio/fseek.c: Likewise.
14832         * libc/stdio/ftell.c: Likewise.
14833         * libc/stdio/fwrite.c: Likewise.
14834         * libc/stdio/getc.c: Likewise.
14835         * libc/stdio/putc.c: Likewise.
14836         * libc/stdio/setvbuf.c: Likewise.
14837         * libc/stdio/ungetc.c: Likewise.
14838         * libc/stdio/vfprintf.c: Likewise.
14839
14840 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
14841
14842         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
14843         support for 'p' format.  Fix code to print bytes for vector
14844         integer formats that do not specify 'h' or 'l'.
14845         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
14846         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
14847         formats that do not specify 'h' or 'l'.
14848
14849         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
14850
14851 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
14852
14853         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
14854         (_sbrk): Add cast of return value.
14855
14856 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
14857
14858         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
14859         (_REENT_L64A_BUF): New macro for accessing area.
14860         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
14861         *  libc/stdlib/Makefile.in: Regenerated.
14862         *  libc/stdlib/a64l.c: New file.
14863         *  libc/stdlib/l64a.c: New file.
14864
14865 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
14866
14867         * libc/unix/pread.c: Fix typo for _pread_r.
14868         * libc/unix/pwrite.c: Fix type for _pwrite_r.
14869         * libc/sys/linux/pread64.c: Fix typo for read syscall.
14870         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
14871
14872 2002-05-03  Christopher Faylor  <cgf@redhat.com>
14873
14874         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
14875
14876 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
14877
14878         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
14879
14880 2002-05-01  Christopher Faylor  <cgf@redhat.com>
14881
14882         * utmp.h: Define more UNIX constants.
14883
14884 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
14885
14886         * Makefile.am: Add support for checking multilibs.
14887
14888         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
14889         (SUBDEFS): Add LIBC_EXTRA_DEF.
14890         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
14891         (LIBC_EXTRA_DEF): Likewise.
14892         (extra_dir): Likewise.
14893         * libc/machine/xscale/machine: New directory.
14894         * libc/machine/xscale/machine/profile.h: New file.
14895
14896         * Makefile.am (site.exp): Remove newlib_cflags.  Add
14897         multibuildtop.
14898         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
14899         * testsuite/lib/flags.exp: New file.
14900         * testsuite/lib/newlib.exp: Load flags.exp.
14901         (newlib_target_compile): Remove libgloss directory references.
14902         (newlib_init): Remove newlib_cflags references.
14903
14904 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
14905
14906         * testsuite/lib/newlib.exp (newlib_target_compile): Change
14907         method of finding libgloss_target_dir.
14908
14909         * Makefile.am (site.exp): Change host_alias, host_triplet,
14910         target_alias, target_triplet to refer to gcc's host and target
14911         variables (newlib's build and host variables).
14912         * testsuite/lib/newlib.exp (newlib_init): Change build
14913         references to host references, host references to target
14914         references to reflect Makefile.am changes.
14915         (newlib_target_compile): Likewise.
14916         (newlib_finish): Likewise.
14917
14918 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
14919
14920         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
14921
14922 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
14923
14924         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
14925         (_system): New function. Ditto.
14926         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
14927         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
14928         targets.
14929
14930 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
14931
14932         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
14933         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
14934         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
14935         *  libc/sys/linux/Makefile.in: Regenerated.
14936         *  libc/unix/Makefile.in: Ditto.
14937         *  libc/sys/linux/pread64.c: New file.
14938         *  libc/sys/linux/pwrite64.c: Ditto.
14939         *  libc/unix/pread.c: Ditto.
14940         *  libc/unix/pwrite.c: Ditto.
14941
14942 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
14943
14944         *  libc/sys/linux/Makefile.am: Add io64.c.
14945         *  libc/sys/linux/Makefile.in: Regenerated.
14946         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
14947         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
14948         *  libc/sys/linux/io64.c: New file.
14949
14950 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
14951
14952         * configure.in (CC_FOR_NEWLIB): New variable that
14953         bases on $(CC) and adds targ-include and libc/include as
14954         -isystem directives if they are not already part of $(CC).
14955         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
14956         $(CC_FOR_NEWLIB).
14957         * configure: Regenerated.
14958         * Makefile.in: Ditto.
14959
14960 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
14961
14962         *  libc/sys/linux/Makefile.am: Add support for sched.c.
14963         *  libc/sys/linux/Makefile.in: Regenerated.
14964         *  libc/sys/linux/sched.c: New file.
14965         *  libc/sys/linux/sys/types.h: Add struct timespec.
14966
14967 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
14968
14969         * configure.in (CC_FOR_BUILD): Set to gcc whether
14970         cross-compiling or not.
14971         (CC): Add -isystem's for targ-include and libc/include when they
14972         do not already appear in CC.
14973
14974 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
14975
14976         * Makefile.am (check-DEJAGNU): New target.
14977         (site.exp): Likewise.
14978         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
14979         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
14980         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
14981         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
14982         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
14983         * testsuite: New directory.
14984         * testsuite/config: Likewise.
14985         * testsuite/lib: Likewise.
14986         * testsuite/newlib.locale: Likewise.
14987         * testsuite/newlib.string: Likewise.
14988         * testsuite/config/default.exp: New file.
14989         * testsuite/lib/checkoutput.exp: New file.
14990         * testsuite/lib/newlib.exp: New file.
14991         * testsuite/lib/passfail.exp: New file.
14992         * testsuite/newlib.locale/UTF-8.c: New file.
14993         * testsuite/newlib.locale/UTF-8.exp: New file.
14994         * testsuite/newlib.locale/locale.exp: New file.
14995         * testsuite/newlib.string/string.exp: New file.
14996         * testsuite/newlib.string/tstring.c: New file.
14997
14998 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
14999
15000         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
15001         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
15002         *  libc/sys/linux/Makefile.in: Regenerated.
15003         *  libc/sys/linux/mmap.c: New file.
15004         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
15005         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
15006
15007 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
15008
15009         * acinclude.m4 (newlib_cflags): Remove include directories that
15010         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
15011
15012 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
15013
15014         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
15015         * libc/machine/xscale/memcmp.c: Ditto.
15016         * libc/machine/xscale/memcpy.c: Ditto.
15017         * libc/machine/xscale/memmove.c: Ditto.
15018         * libc/machine/xscale/memset.c: Ditto.
15019         * libc/machine/xscale/strchr.c: Ditto.
15020         * libc/machine/xscale/strcmp.c: Ditto.
15021         * libc/machine/xscale/strcpy.c: Ditto.
15022         * libc/machine/xscale/strlen.c: Ditto.
15023
15024 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
15025
15026         * libc/include/sys/config.h: Remove include of <limits.h>.
15027         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
15028         define INT_MAX and LONG_MAX.  Use them in tests.
15029
15030 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
15031
15032         *  configure.host: Add support for powerpc-eabialtivec*.
15033         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
15034         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
15035         *  libc/include/machine/malloc.h: New file.
15036         *  libc/include/machine/stdlib.h: Ditto.
15037         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
15038         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
15039         sources based on configuration.
15040         *  libc/machine/powerpc/Makefile.in: Regenerated.
15041         *  libc/machine/powerpc/configure: Ditto.
15042         *  libc/machine/powerpc/configure.in: Add check for
15043         powerpc-eabialtivec* in which case add in additional source files.
15044         *  libc/machine/powerpc/setjmp.S: Add altivec support.
15045         *  libc/machine/powerpc/vec_calloc.c: New file.
15046         *  libc/machine/powerpc/vec_free.c: Ditto.
15047         *  libc/machine/powerpc/vec_malloc.c: Ditto.
15048         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
15049         *  libc/machine/powerpc/vec_realloc.c: Ditto.
15050         *  libc/machine/powerpc/machine/malloc.h: Ditto.
15051         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
15052         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
15053         with added altivec format specifiers.
15054         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
15055         added altivec format specifiers.
15056
15057 2002-04-19      Joel Sherrill <joel@OARcorp.com>
15058
15059         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
15060         while autoconf is trying to link main(){}.
15061
15062 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
15063
15064         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
15065         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
15066
15067 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
15068
15069         * libc/time/time.tex: Add tzset info.
15070
15071 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
15072
15073         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
15074         (strptime): Moved prototype to be within !__STRICT_ANSI__.
15075         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
15076         (tzname): Defined for all platforms.
15077         (daylight, timezone): Defined only for CYGWIN.
15078         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
15079         environment set up.
15080         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
15081         environment variable is set.
15082         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
15083         tzset_r.c.
15084         * libc/time/Makefile.in: Regenerated.
15085         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
15086         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
15087         * libc/time/lcltime_r.c (lcltime_r): Ditto.
15088         * libc/time/local.h: New local header file.
15089         * libc/time/mktime.c (mktime): Add timezone support.
15090         * libc/time/mktm_r.c: New file which is the common engine
15091         for gmtime_r and lcltime_r.  This code has timezone support.
15092         * libc/time/strftime.c (strftime): Add %Z timezone support.
15093         * libc/time/tzlock.c: New file containing timezone lock stubs.
15094         * libc/time/tzset.c: New file containing tzset() routine.
15095         * libc/time/tzset_r.c: New file containing _tzset_r and
15096         internal routine for calculating timezone changes for specified year.
15097
15098 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
15099
15100         * configure.in (CRT0_DIR): Set to libc/.
15101         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
15102         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
15103         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
15104         $(CRT1_DIR)/$(CRT1).
15105         * libc/machine/xstormy16/Makefile.in: Regenerated.
15106         * libc/machine/xstormy16/aclocal.m4: Regenerated.
15107         * libc/machine/xstormy16/configure: Regenerated.
15108
15109 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
15110
15111         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
15112         fails, don't bail out, and try to correct next time.
15113
15114         * libc/include/sys/config.h: Include limits.h.
15115
15116 2002-04-12  Eric Norum  <eric.norum@usask.com>
15117
15118         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
15119         routine to allow autoconf to determine that building executables
15120         for rtems works.
15121         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
15122         (rtems_gxx_mutex_once): Ditto.
15123
15124 2002-04-09  Tom Rix  <trix@redhat.com>
15125
15126         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
15127
15128 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
15129
15130         * libc/include/time.h: Fix strptime declaration.
15131         * libc/time/Makefile.am: Add strptime.c.
15132         * libc/time/Makefile.in: Regenerated.
15133         * libc/time/strptime.c: New file.
15134
15135 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
15136
15137         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
15138         siglongjmp prototype, and sigsetjmp macro definition.
15139         * libc/sys/linux/siglongjmp.c: New file.
15140         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
15141         * libc/sys/linux/Makefile.in: Regenerated.
15142
15143 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
15144
15145         * Makefile.am: Add support for installing crt1.o if one exists.
15146         * configure.host: Specify crt1.o for linux.
15147         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
15148         * Makefile.in: Regenerated.
15149         * configure: Ditto.
15150         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
15151         Added for non-Cygwin, non-RTEMS configurations.
15152         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
15153         * libc/sys/linux/Makefile.in: Regenerated.
15154         * libc/sys/linux/crt1.c: New empty file to override one defaulted
15155         by gcc.  This fixes problem with reconfiguring linux newlib build.
15156         * libc/sys/linux/sysconf.c: New file.
15157
15158 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
15159
15160         * configure.host: Add support for machine subdirectory of
15161         sys subdirectory.
15162         * configure.in: Add check for sys machine subdirectory.
15163         * Makefile.am: Ditto.
15164         * configure: Regenerated.
15165         * Makefile.in: Ditto.
15166         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
15167         * libc/sys/linux/sys/syscall.h: Ditto.
15168         * libc/sys/linux/sleep.c: New file.
15169         * libc/sys/linux/socket.c: Ditto.
15170         * libc/sys/linux/sockops.h: Ditto.
15171         * libc/sys/linux/stack.c: Ditto.
15172         * libc/sys/linux/usleep.c: Ditto.
15173         * libc/sys/linux/machine/Makefile.am: Ditto.
15174         * libc/sys/linux/machine/Makefile.in: Ditto.
15175         * libc/sys/linux/machine/aclocal.m4: Ditto.
15176         * libc/sys/linux/machine/configure: Ditto.
15177         * libc/sys/linux/machine/configure.in: Ditto.
15178         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
15179         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
15180         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
15181         * libc/sys/linux/machine/i386/configure: Ditto.
15182         * libc/sys/linux/machine/i386/configure.in: Ditto.
15183         * libc/sys/linux/machine/i386/crt0.c: Ditto.
15184         * libc/sys/linux/machine/i386/sigset.c: Ditto.
15185         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
15186         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
15187         * libc/sys/linux/machine/i386/syscall.h: Ditto.
15188         * libc/sys/linux/sys/select.h: Ditto.
15189         * libc/sys/linux/configure.in: Add support for machine directory.
15190         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
15191         * libc/sys/linux/Makefile.in: Regenerated.
15192         * libc/sys/linux/configure: Ditto.
15193         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
15194         * libc/sys/linux/inode.c: Ditto.
15195         * libc/sys/linux/linux.c: Ditto.
15196         * libc/sys/linux/process.c: Ditto.
15197         * libc/sys/linux/systat.c: Ditto.
15198         * libc/sys/linux/time.c: Ditto.
15199         * libc/sys/linux/wait.c: Ditto.
15200         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
15201         * libc/sys/linux/io.c: Change header plus add readv/writev.
15202         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
15203         use __sigsuspend syscall.
15204         * libc/sys/linux/select.c: Change header plus change select to
15205         use _newselect syscall.
15206         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
15207         used by glibc header files.
15208         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
15209         types.
15210
15211 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
15212
15213         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
15214         initializing a struct _reent that has been dynamically allocated.
15215         (_REENT_CHECK_MISC): New macro that checks _misc struct for
15216         _REENT_SMALL and does nothing otherwise.
15217         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
15218         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
15219         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
15220         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
15221         [_REENT_SMALL](struct _misc_reent): New structure containing
15222         miscellaneous reentrant areas needed by newlib.
15223         [_REENT_SMALL](struct _reent): Add _misc pointer.
15224         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
15225         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
15226         and _REENT_STRTOK_LAST macros.
15227         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
15228         and _REENT_MBLEN_STATE macros.
15229         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
15230         and _REENT_MBTOWC_STATE macros.
15231         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
15232         and _REENT_WCTOMB_STATE macros.
15233
15234 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
15235
15236         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
15237
15238 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
15239
15240         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
15241
15242 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
15243
15244         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
15245         Store high part of leading bytes too.
15246
15247 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
15248
15249         * libm/math/ef_hypot.c: Increase scale factor to 68.
15250
15251 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
15252
15253         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
15254         error.
15255
15256 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
15257
15258         * libc/sys/go32/access.c: Change license to relaxed license
15259         used in identical file throughout newlib/libgloss.
15260
15261 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
15262
15263         * libc/sys/arm/access.c: New file.
15264         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
15265         * libc/sys/arm/Makefile.in: Regenerate.
15266         * libc/sys/arm/syscalls.c (_stat): New function.
15267
15268 2002-03-11  Michael Meissner  <meissner@redhat.com>
15269
15270         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
15271         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
15272         * libc/machine/mips/Makefile.in: Regenerate.
15273         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
15274         * libc/machine/mips/memset.c: Dito.
15275         * libc/machine/mips/strcmp.c: Dito.
15276         * libc/machine/mips/strlen.c: Dito.
15277         * libc/machine/mips/strncmp.c: Dito.
15278
15279 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
15280
15281         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
15282         object so it works for shared library or statici library.
15283 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
15284
15285         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
15286         (strptime): Moved prototype to be within !__STRICT_ANSI__.
15287         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
15288         (tzname): Defined for all platforms.
15289         (daylight, timezone): Defined only for CYGWIN.
15290         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
15291         environment set up.
15292         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
15293         environment variable is set.
15294         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
15295         tzset_r.c.
15296         *  libc/time/Makefile.in: Regenerated.
15297         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
15298         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
15299         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
15300         *  libc/time/local.h: New local header file.
15301         *  libc/time/mktime.c (mktime): Add timezone support.
15302         *  libc/time/mktm_r.c: New file which is the common engine
15303         for gmtime_r and lcltime_r.  This code has timezone support.
15304         *  libc/time/strftime.c (strftime): Add %Z timezone support.
15305         *  libc/time/tzlock.c: New file containing timezone lock stubs.
15306         *  libc/time/tzset.c: New file containing tzset() routine.
15307         *  libc/time/tzset_r.c: New file containing _tzset_r and
15308         internal routine for calculating timezone changes for specified year.
15309
15310 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
15311
15312         * configure.in (CRT0_DIR): Set to libc/.
15313         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
15314         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
15315         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
15316         $(CRT1_DIR)/$(CRT1).
15317         * libc/machine/xstormy16/Makefile.in: Regenerated.
15318         * libc/machine/xstormy16/aclocal.m4: Regenerated.
15319         * libc/machine/xstormy16/configure: Regenerated.
15320
15321 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
15322
15323         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
15324         fails, don't bail out, and try to correct next time.
15325
15326         * libc/include/sys/config.h: Include limits.h.
15327
15328 2002-04-12  Eric Norum  <eric.norum@usask.com>
15329
15330         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
15331         routine to allow autoconf to determine that building executables
15332         for rtems works.
15333         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
15334         (rtems_gxx_mutex_once): Ditto.
15335
15336 2002-04-09  Tom Rix  <trix@redhat.com>
15337
15338         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
15339
15340 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
15341
15342         * libc/include/time.h: Fix strptime declaration.
15343         * libc/time/Makefile.am: Add strptime.c.
15344         * libc/time/Makefile.in: Regenerated.
15345         * libc/time/strptime.c: New file.
15346
15347 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
15348
15349         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
15350         siglongjmp prototype, and sigsetjmp macro definition.
15351         * libc/sys/linux/siglongjmp.c: New file.
15352         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
15353         * libc/sys/linux/Makefile.in: Regenerated.
15354
15355 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
15356
15357         * Makefile.am: Add support for installing crt1.o if one exists.
15358         * configure.host: Specify crt1.o for linux.
15359         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
15360         * Makefile.in: Regenerated.
15361         * configure: Ditto.
15362         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
15363         Added for non-Cygwin, non-RTEMS configurations.
15364         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
15365         * libc/sys/linux/Makefile.in: Regenerated.
15366         * libc/sys/linux/crt1.c: New empty file to override one defaulted
15367         by gcc.  This fixes problem with reconfiguring linux newlib build.
15368         * libc/sys/linux/sysconf.c: New file.
15369
15370 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
15371
15372         * configure.host: Add support for machine subdirectory of
15373         sys subdirectory.
15374         * configure.in: Add check for sys machine subdirectory.
15375         * Makefile.am: Ditto.
15376         * configure: Regenerated.
15377         * Makefile.in: Ditto.
15378         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
15379         * libc/sys/linux/sys/syscall.h: Ditto.
15380         * libc/sys/linux/sleep.c: New file.
15381         * libc/sys/linux/socket.c: Ditto.
15382         * libc/sys/linux/sockops.h: Ditto.
15383         * libc/sys/linux/stack.c: Ditto.
15384         * libc/sys/linux/usleep.c: Ditto.
15385         * libc/sys/linux/machine/Makefile.am: Ditto.
15386         * libc/sys/linux/machine/Makefile.in: Ditto.
15387         * libc/sys/linux/machine/aclocal.m4: Ditto.
15388         * libc/sys/linux/machine/configure: Ditto.
15389         * libc/sys/linux/machine/configure.in: Ditto.
15390         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
15391         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
15392         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
15393         * libc/sys/linux/machine/i386/configure: Ditto.
15394         * libc/sys/linux/machine/i386/configure.in: Ditto.
15395         * libc/sys/linux/machine/i386/crt0.c: Ditto.
15396         * libc/sys/linux/machine/i386/sigset.c: Ditto.
15397         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
15398         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
15399         * libc/sys/linux/machine/i386/syscall.h: Ditto.
15400         * libc/sys/linux/sys/select.h: Ditto.
15401         * libc/sys/linux/configure.in: Add support for machine directory.
15402         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
15403         * libc/sys/linux/Makefile.in: Regenerated.
15404         * libc/sys/linux/configure: Ditto.
15405         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
15406         * libc/sys/linux/inode.c: Ditto.
15407         * libc/sys/linux/linux.c: Ditto.
15408         * libc/sys/linux/process.c: Ditto.
15409         * libc/sys/linux/systat.c: Ditto.
15410         * libc/sys/linux/time.c: Ditto.
15411         * libc/sys/linux/wait.c: Ditto.
15412         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
15413         * libc/sys/linux/io.c: Change header plus add readv/writev.
15414         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
15415         use __sigsuspend syscall.
15416         * libc/sys/linux/select.c: Change header plus change select to
15417         use _newselect syscall.
15418         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
15419         used by glibc header files.
15420         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
15421         types.
15422
15423 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
15424
15425         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
15426         initializing a struct _reent that has been dynamically allocated.
15427         (_REENT_CHECK_MISC): New macro that checks _misc struct for
15428         _REENT_SMALL and does nothing otherwise.
15429         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
15430         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
15431         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
15432         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
15433         [_REENT_SMALL](struct _misc_reent): New structure containing
15434         miscellaneous reentrant areas needed by newlib.
15435         [_REENT_SMALL](struct _reent): Add _misc pointer.
15436         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
15437         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
15438         and _REENT_STRTOK_LAST macros.
15439         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
15440         and _REENT_MBLEN_STATE macros.
15441         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
15442         and _REENT_MBTOWC_STATE macros.
15443         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
15444         and _REENT_WCTOMB_STATE macros.
15445
15446 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
15447
15448         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
15449
15450 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
15451
15452         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
15453
15454 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
15455
15456         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
15457         Store high part of leading bytes too.
15458
15459 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
15460
15461         * libm/math/ef_hypot.c: Increase scale factor to 68.
15462
15463 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
15464
15465         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
15466         error.
15467
15468 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
15469
15470         * libc/sys/go32/access.c: Change license to relaxed license
15471         used in identical file throughout newlib/libgloss.
15472
15473 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
15474
15475         * libc/sys/arm/access.c: New file.
15476         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
15477         * libc/sys/arm/Makefile.in: Regenerate.
15478         * libc/sys/arm/syscalls.c (_stat): New function.
15479
15480 2002-03-11  Michael Meissner  <meissner@redhat.com>
15481
15482         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
15483         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
15484         * libc/machine/mips/Makefile.in: Regenerate.
15485         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
15486         * libc/machine/mips/memset.c: Dito.
15487         * libc/machine/mips/strcmp.c: Dito.
15488         * libc/machine/mips/strlen.c: Dito.
15489         * libc/machine/mips/strncmp.c: Dito.
15490
15491 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
15492
15493         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
15494         object so it works for shared library or statici library.
15495         * libc/machine/i386/Makefile.in: Regenerated.
15496
15497 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
15498
15499         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
15500         Add memcpy.S, memset.S and strcpy.S.
15501         * libc/machine/sh/Makefile.in: Regenerate.
15502         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
15503         (SHHI, SHLO): Define.
15504         * libc/machine/sh/memset.S: Add code for SH5.
15505         * libc/machine/sh/memset.S: Likewise.
15506         * libc/machine/sh/strcpy.S: Likewise.
15507
15508 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
15509
15510         * configure.host: Add check for --disable-newlib-io-float
15511         configuration option and add -DNO_FLOATING_POINT to newlib cflags
15512         if appropriate.
15513         * acinclude.m4: Added --disable-newlib-io-float option.
15514         * aclocal.m4: Regenerated.
15515         * configure: Ditto.
15516         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
15517         * libc/*/aclocal.m4 libc/*/configure
15518         * libm/*/aclocal.m4 libm/*/configure: Ditto.
15519         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
15520         if NO_FLOATING_POINT flag is not defined.
15521
15522 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
15523
15524         * libc/include/sys/config.h: Add __extension__ in front of
15525         long long references.
15526
15527 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
15528
15529         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
15530         (_stat): Ditto.
15531
15532 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
15533
15534         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
15535         of off_t.
15536
15537 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
15538
15539         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
15540         clobbered registers.
15541
15542 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
15543
15544         * configure.host (newlib_cflags): When host is in m68* add
15545         -DCOMPACT_CTYPE.
15546
15547 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
15548
15549         * libc/include/sys/config.h: Add definitions for
15550         __int16_t, __uint16_t, __int64_t, and __uint64_t.
15551
15552 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
15553
15554         * libc/sys/mmixware/link.c: New.
15555         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
15556         volatile.
15557         * libc/sys/mmixware/times.c (_times): Renamed from times.
15558         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
15559         properly by reading previous contents, not through BinaryReadWrite.
15560         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
15561         * libc/sys/mmixware/Makefile.in: Regenerate.
15562
15563 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
15564
15565         * libc/include/grp.h: Don't declare group functions when compiling
15566         Cygwin.
15567
15568 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
15569
15570         * libc/include/grp.h: Include Cygwin specific header.
15571         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
15572         when compiling for Cygwin.
15573         * libc/include/sys/types.h: Don't define off_t, uid_t
15574         and gid_t when compiling for Cygwin.
15575
15576 2002-02-08  matthew green  <mrg@redhat.com>
15577
15578         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
15579         _REENT_EMERGENCY_SIZE, not sizeof(char *).
15580
15581 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
15582
15583         Contribute sh64-elf.
15584         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
15585         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
15586         support in printf.
15587         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
15588         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
15589         any labels.
15590         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
15591         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
15592         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
15593         * libc/machine/sh/configure.in: Rework conditionals.
15594         * libc/machine/sh/Makefile.am: Likewise.
15595         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
15596         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
15597         * configure.host: Match `sh*'.
15598         * libc/include/machine/setjmp.h: Define for SH5.
15599         * libc/machine/sh/configure.in: Detect SH5.
15600         * libc/machine/sh/configure: Rebuilt.
15601         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
15602         * libc/machine/sh/Makefile.in: Rebuilt.
15603         * libc/machine/sh/asm.h: Adjust for SH5.
15604         * libc/machine/sh/setjmp.S: Implement in SHmedia.
15605         * libc/sys/sh/crt0.S: Likewise.
15606         * libc/sys/sh/trap.S: Likewise.
15607
15608 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
15609
15610         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
15611         (mach_add_obj): Conditionally set to setjmp.o or nothing.
15612         (LIB_SOURCES): Remove $(mach_add_src).
15613         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
15614         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
15615         * libc/machine/i386/Makefile.in: Regenerate.
15616
15617 2002-02-05  Manik Raina <manik@cisco.com>
15618
15619         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
15620         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
15621         s, p, k, and outstr.
15622         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
15623
15624 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
15625
15626         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
15627         _REENT_CHECK_EMERGENCY macro.
15628
15629 2002-02-03  matthew green  <mrg@redhat.com>
15630
15631         * libc/reent/signgam.c (__signgam): Fix error in previous.
15632
15633 2002-02-02  matthew green  <mrg@redhat.com>
15634
15635         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
15636
15637         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
15638         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
15639         * libc/include/sys/reent.h (struct _reent): Completely new version
15640         for _REENT_SMALL.
15641         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
15642         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
15643         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
15644         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
15645         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
15646         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
15647         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
15648         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
15649         (_REENT_EMERGENCY): Likewise.
15650
15651         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
15652         the start of the real __sFILE, used for stdin, stdout and stderr until
15653         they are setup properly.
15654         (struct __sFILE): Move location of _data in _REENT_SMALL case.
15655         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
15656         allocated stdin, stdout and stderr.
15657         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
15658         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
15659         * libc/stdio/perror.c (_perror_r): Likewise.
15660         * libc/stdio/printf.c (printf, _printf_r): Likewise.
15661         * libc/stdio/putchar.c (_putchar_r): Likewise.
15662         * libc/stdio/puts.c (_puts_r): Likewise.
15663         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
15664         * libc/stdio/vprintf.c (vprintf): Likewise.
15665         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
15666
15667         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
15668
15669         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
15670         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
15671         for _REENT_SMALL.
15672         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
15673         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
15674
15675         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
15676         _REENT_SMALL.
15677         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
15678         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
15679         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
15680         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
15681         * libc/stdlib/rand48.c (__dorand48): Likewise.
15682         * libc/stdlib/seed48.c (_seed48_r): Likewise.
15683         * libc/stdlib/srand48.c (_srand48_r): Likewise.
15684         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
15685         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
15686         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
15687         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
15688         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
15689         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
15690         * libc/stdlib/rand.c (rand): Likewise.
15691
15692         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
15693         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
15694
15695         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
15696         _REENT_MP_FREELIST() and _REENT_MP_P5S.
15697         * libc/include/sys/reent.h (struct _mprec): New structure.
15698
15699         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
15700         _unused_strtok_last.
15701         * libc/string/strtok.c (strtok): Use a local static variable.
15702
15703         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
15704         (_REENT_EMERGENCY_SIZE): Likewise.
15705         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
15706         _REENT_ASCTIME_BUF().
15707         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
15708         _REENT_TM().
15709
15710         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
15711         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
15712         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
15713         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
15714         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
15715         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
15716
15717 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
15718
15719         * configure.host (xstormy16): Don't use the generic malloc.
15720         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
15721         * libc/machine/xstormy16/Makefile.in: Regenerate.
15722         * libc/machine/xstormy16/mallocr.c: New file.
15723         * libc/machine/xstormy16/tiny-malloc.c: New file.
15724
15725 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
15726
15727         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
15728         when _CYGWIN_TYPES_H is not defined.
15729
15730 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
15731
15732         * libc/include/sys/signal.h: Revert 2002-01-23 change.
15733
15734 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
15735
15736         * libc/include/sys/signal.h: Remove pthread_kill declaration
15737         when __CYGWIN__ is defined.
15738
15739 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
15740
15741         * libc/include/time.h: Add prototype for strptime for Cygwin.
15742
15743 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
15744
15745         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
15746         dst was not word aligned.
15747
15748         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
15749         if too much memory is requested.
15750
15751 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
15752
15753         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
15754         reads blanks from the input file to break if EOF reached
15755         rather than end processing.
15756
15757 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
15758
15759         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
15760
15761 2002-01-07 Alan Matsuoka <alanm@redhat.com>
15762
15763         * libc/include/machine/ieeefp.h: Configure d10v doubles to
15764         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
15765         libc/include/sys/config.h: Ditto.
15766
15767 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
15768
15769         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
15770
15771 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
15772             Catherine Moore  <clm@redhat.com>
15773             Richard Henderson  <rth@redhat.com>
15774             Corinna Vinschen  <vinschen@redhat.com>
15775
15776         * configure.host: Add support for xstormy16.
15777         * libc/include/machine/ieeefp.h: Add support for xstormy16.
15778         * libc/include/machine/setjmp.h: Add support for xstormy16.
15779         * libc/include/sys/config.h: Add support for xstormy16.
15780         * libc/machine/xstormy16/Makefile.am: New file.
15781         * libc/machine/xstormy16/Makefile.in: New file.
15782         * libc/machine/xstormy16/aclocal.m4: New file.
15783         * libc/machine/xstormy16/configure: New file.
15784         * libc/machine/xstormy16/configure.in: New file.
15785         * libc/machine/xstormy16/setjmp.S: New file.
15786
15787 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
15788
15789         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
15790         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
15791
15792 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
15793
15794         * libm/machine/Makefile.am: Change rules to create correct lib.a.
15795         * libm/machine/Makefile.in: Regenerated through automake.
15796
15797 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
15798
15799         * Makefile.am (DOCDIR): Force to empty string when doc
15800         directory is not present.
15801
15802 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
15803
15804         * libc/machine/i386/f_*: Move to libm/machine/i386.
15805
15806 2001-12-18      Joel Sherrill <joel@OARcorp.com>
15807
15808         * libm/machine/Makefile.am: Add dummy doc stub so
15809         "make info" works.
15810
15811 2001-12-17      Joel Sherrill <joel@OARcorp.com>
15812
15813         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
15814
15815 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
15816
15817         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
15818         $(COMPILE) rather than $(CC).
15819         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
15820         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
15821         $(LIB_COMPILE) change.
15822         (vfiprintf.$(oext)): Likewise.
15823
15824 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
15825
15826         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
15827         conditionalized including of getopt stuff.
15828
15829 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
15830
15831         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
15832         compile line.
15833         (vfiprintf.$(oext)): Likewise.
15834
15835 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
15836
15837         * Makefile.shared: New file.
15838         * libc/sys/linux/shared.ld: New file.
15839         * libm/machine/*: New files.
15840         * libm/machine/i386/*: New files.
15841         * Makefile.am: Add libtool support.  Change math and mathfp
15842         references to variables.
15843         * configure.host: Add variables for libtool support.  Add
15844         libm_machine_dir variable.
15845         * configure.in: Add objectlist variables, for libtool
15846         support.  Add CC_FOR_BUILD tests.
15847         * libc/Makefile.am: Add libtool support.  Change crt0.o
15848         reference to be a variable reference.
15849         * libc/configure.in: Add libtool support.  Change sublib
15850         names to be lib${subdir}.la when using libtool.
15851         * libc/ctype/Makefile.am: Add libtool support.
15852         * libc/errno/Makefile.am: Likewise.
15853         * libc/locale/Makefile.am: Likewise.
15854         * libc/machine/Makefile.am: Likewise.
15855         * libc/machine/configure.in: Likewise.
15856         * libc/machine/i386/Makefile.am: Likewise.
15857         * libc/machine/i386/configure.in: Likewise.
15858         * libc/misc/Makefile.am: Likewise.
15859         * libc/posix/Makefile.am: Likewise.
15860         * libc/reent/Makefile.am: Likewise.
15861         * libc/signal/Makefile.am: Likewise.
15862         * libc/stdio/Makefile.am: Likewise.
15863         * libc/stdlib/Makefile.am: Likewise.
15864         * libc/string/Makefile.am: Likewise.
15865         * libc/sys/Makefile.am: Likewise.
15866         * libc/sys/configure.in: Likewise.
15867         * libc/sys/linux/Makefile.am: Add libtool support.  Change
15868         awk reference to a variable reference.  Change signal.h
15869         reference to a variable reference.
15870         * libc/sys/linux/configure.in: Add libtool support.
15871         * libc/syscalls/Makefile.am: Likewise.
15872         * libc/time/Makefile.am: Likewise.
15873         * libc/unix/Makefile.am: Likewise.
15874         * libm/Makefile.am: Add libtool support.  Change math and
15875         mathfp references to variables.
15876         * libm/configure.in: Add libtool support.  Add
15877         LIBM_MACHINE_LIB variable.
15878         * libm/common/Makefile.am: Add libtool support.
15879         * libm/math/Makefile.am: Likewise.
15880         * libm/mathfp/Makefile.am: Likewise.
15881         Regenerate all Makefile.in, aclocal.m4, and configure.
15882
15883 2001-12-13 Anita Kulkarni <anitak@kpit.com>
15884
15885         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
15886
15887 2001-12-06  John Peacock <jpeacock@rowman.com>
15888
15889         * libc/include/sys/unistd.h: Correct ualarm declaration.
15890
15891 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
15892
15893         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
15894         vector before calling the initialisation functions.
15895
15896 2001-11-29  Christopher Faylor  <cgf@redhat.com>
15897
15898         * libc/include/dirent.h: Protect against multiple inclusion.
15899
15900 2001-11-27  Christopher Faylor  <cgf@redhat.com>
15901
15902         * libc/include/sys/types.h: Define useconds_t.
15903         * libc/include/sys/ulimit.h: Declare ualarm.
15904
15905 2001-11-21  Christopher Faylor  <cgf@redhat.com>
15906
15907         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
15908
15909 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
15910
15911         * libc/sys/mmixware/*: Tweak license header in all source files.
15912
15913 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
15914
15915         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
15916         to here.  Rearrange for general inclusion by stdlib.h.
15917         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
15918         isn't defined.
15919         * libc/sys/linux/include/alloca.h: Move to libc/include.
15920
15921 2001-11-12  Anthony Green  <green@redhat.com>
15922
15923         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
15924
15925 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
15926
15927         * libc/sys/mmixware/*: Correct spacing in all source files.
15928         * libc/sys/mmixware/syscall.h: Move misplaced file...
15929         * libc/sys/mmixware/sys/syscall.h: ...here.
15930
15931 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
15932
15933         * libc/include/machine/ieeefp.h: Add support for mmix target.
15934         * libc/include/machine/setjmp.h: Ditto.
15935         * configure.host: Ditto.
15936         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
15937         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
15938         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
15939         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
15940         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
15941         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
15942         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
15943         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
15944         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
15945         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
15946         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
15947         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
15948         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
15949         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
15950         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
15951         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
15952         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
15953         libc/sys/mmixware/aclocal.m4: Generate.
15954
15955 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
15956
15957         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
15958         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
15959         when __CYGWIN__ is defined.
15960         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
15961         logwtmp().
15962
15963 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
15964
15965         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
15966         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
15967         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
15968         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
15969
15970 2001-10-24  Christopher Faylor  <cgf@redhat.com>
15971
15972         * libc/stdio/fseek.c: Reset pointer to buffer base
15973         when forced to seek outside of current buffer contents.
15974         This prevents the code from erroneously thinking there is
15975         anything in the current buffer.
15976
15977 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
15978
15979         * libc/include/math.h: The C++ standard adds the single-precision
15980         versions of the elementary functions.
15981
15982 2001-10-22  Christopher Faylor  <cgf@redhat.com>
15983
15984         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
15985         throughout.
15986         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
15987         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
15988         * system.c (_system_r): Ditto.
15989
15990 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
15991
15992         * libc/include/sys/unistd.h: Add prototype for fchdir() when
15993         __CYGWIN__ or __rtems__ is defined.
15994
15995 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
15996
15997         * libc/include/stdlib.h: add declarations for
15998         _strtoull_r, _strtoll_r, strtoull, and strtoll.
15999         * libc/stdio/local.h: remove declarations of
16000         __strtoull_r and __strtoll_r.
16001         * libc/stdio/vfscanf.c(__svfscanf_r): call
16002         _strtoull_r instead of __strtoull_r. Ditto
16003         _strtoll_r vs. __strtoll_r.
16004         * libc/stdlib/Makefile.am: add new files to
16005         .c list and .def list
16006         * libc/stdlib/Makefile.in: regenerate
16007         * libc/stdlib/strtoll_r.c: rename __strtoll_r
16008         as _strtoll_r
16009         * libc/stdlib/strtoull_r.c: rename __strtoull_r
16010         as _strtoull_r
16011         * libc/stdlib/strtoull.c: new file
16012         * libc/stdlib/strtoll.c: new file
16013
16014 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
16015
16016         * libc/include/process.h: Add getpid() declaration.
16017
16018 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
16019
16020         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
16021         for new style arm/elf ctor/dtor handling.
16022         Minor formatting tidy up.
16023
16024 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
16025
16026         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
16027         and strtoull_r.c.
16028         * libc/stdlib/Makefile.in: Regenerated.
16029         * libc/stdlib/strtoll_r.c: New file.
16030         * libc/stdlib/strtoull_r.c: New file.
16031         * libc/stdio/local.h: Add prototypes for long long string
16032         conversion routines.
16033         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
16034         tied to %L integer conversion specifier.
16035
16036 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
16037
16038         * strftime.c (strftime): Fix "%W" implementation to properly handle
16039         Mondays too.
16040
16041 2001-09-07  Jeff Law  <law@redhat.com>
16042
16043         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
16044         __fini with "mov.l" instead of "mov.w".
16045
16046 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
16047
16048         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
16049         and getopt.h.
16050
16051 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
16052
16053         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
16054
16055 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
16056
16057         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
16058         field.
16059         (__DIRENT_VERSION): New define.
16060
16061 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
16062
16063         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
16064         Shrink __d_reserved accordingly to keep structure size.
16065         (dirfd): Declare external.
16066
16067 2001-08-29  Joel Sherrill <joel@OARcorp.com>
16068
16069         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
16070
16071 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
16072
16073         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
16074           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
16075           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
16076           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
16077           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
16078           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
16079           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
16080           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
16081         Add conditional compilation to avoid HW FPU instructions
16082         when compiled for soft-float.
16083
16084 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
16085
16086         * Makefile.am: Add check for ln failing when creating libg.a
16087         so that cp gets used as a backup.
16088         * Makefile.in: Regenerated.
16089
16090 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
16091
16092         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
16093         No longer include time.h.  Add struct __tm to use for
16094         _localtime_buf in the reentrant structure.  Add a
16095         _NULL definition to use in initializing the reentrant struct.
16096         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
16097         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
16098         <sys/_types.h>.
16099         * libc/include/sys/unistd.h: Include <sys/_types.h>.
16100         * libc/time/lcltime.c (localtime): Cast the reentrant struct
16101         _localtime_buf to be struct tm *.
16102
16103 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
16104
16105         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
16106         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
16107         __ctors_end.
16108         * libc/sys/h8300hms/syscalls.c: Include errno.h.
16109         (_unlink): New stub function.
16110
16111 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
16112
16113         * libc/include/sys/errno.h: Add a cautionary comment.
16114
16115 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
16116
16117         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
16118         for SIZE_SZ so that alignment ends up a minimum of 8.
16119
16120 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
16121
16122         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
16123         arguments.
16124
16125         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
16126         Cygwin.
16127
16128 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
16129
16130         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
16131         macro constants for mallopt options.
16132         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
16133
16134 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
16135
16136         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
16137         otherwise default.
16138
16139 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
16140
16141         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
16142
16143 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
16144
16145         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
16146         Define for little endian ARMs.
16147
16148         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
16149         __IEEE_BYTES_LITTLE_ENDIAN is defined.
16150
16151 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
16152
16153         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
16154
16155 2001-06-11  Egor Duda  <deo@logos-m.ru>
16156
16157         * libc/ctype/ctype_.c: When compiled with gcc on platforms
16158         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
16159         initialized memory region. Platform can define COMPACT_CTYPE
16160         to avoid allocation of the additional 128 bytes of data.
16161         Add pointer to _ctype_ array. Always initialize all _ctype_
16162         array elements.
16163
16164 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
16165
16166         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
16167         NULL pointer.
16168
16169 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
16170
16171         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
16172
16173 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
16174
16175         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
16176         matching, non-word alignment, and the length is <= 4 but more than
16177         enough to move them over a word boundary.
16178         Add comments explaining what each instruction does.
16179
16180 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
16181
16182         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
16183         * libc/include/sys/unistd.h: Ditto.
16184
16185 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
16186
16187         * libc/string/strrchr.c: Use strchr for the speed improvements.
16188
16189 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
16190
16191         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
16192         real file systems, let __smakebuf() determine if line buffering
16193         should be used for stdout.
16194
16195 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
16196
16197         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
16198
16199 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
16200
16201         * libc/include/stdlib.h: Add prototype for _strtod_r.
16202
16203 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
16204
16205         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
16206         * libc/stdio/vprintf.c (_vprintf_r): new function
16207         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
16208         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
16209         _DEFUN, and call _vfprintf_r, not vfprintf.
16210         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
16211         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
16212         _DEFUN, and call _vfprintf_r, not vfprintf.
16213
16214 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
16215
16216         * libc/include/sys/unistd.h [X_OK]: Use better protection against
16217         Cygwin X_OK definitions in sys/file.h.
16218
16219 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
16220
16221         * libc/include/sys/time.h: Define timercmp and other macros for
16222         __CYGWIN__, too.
16223
16224 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
16225
16226         * acinclude.m4: Added --enable-malloc-debugging configure flag.
16227         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
16228         --enable-malloc-debugging selected.
16229         * aclocal.m4 configure: Regenerated.
16230           libm/aclocal.m4 libm/configure: Ditto.
16231         * libc/aclocal.m4 libc/configure: Ditto.
16232         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
16233         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
16234         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
16235         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
16236         * doc/aclocal.m4 doc/configure: Ditto.
16237
16238 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
16239
16240         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
16241         into one list.
16242         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
16243         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
16244         function prototypes.
16245         (_fscanf_r, _sscanf_r): Ditto.
16246         * libc/include/stdlib.h: Added _strtod_r prototype.
16247         * libc/stdio/Makefile.am: Add new v*scanf functions.
16248         * libc/stdio/Makefile.in: Regenerate.
16249         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
16250         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
16251         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
16252         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
16253         (sscanf): Changed to call __svfscanf_r with _REENT argument.
16254         (_sscanf_r): New routine.
16255         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
16256         with __svfscanf_r prototype.
16257         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
16258         routines.
16259         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
16260         structure as argument as calls reentrant versions of helper functions
16261         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
16262         to _strtol_r and _strtod_r respectively.
16263         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
16264         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
16265         _REENT argument.
16266         * libc/stdio/vscanf.c: New file.
16267         * libc/stdio/vsscanf.c: Ditto.
16268
16269 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
16270
16271         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
16272         Define daylight to _daylight if it is not defined
16273         Prepare a variable export of timezone based on timezonevariable.
16274         (Cannot be used with the timezone() function.)
16275
16276 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
16277
16278         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
16279          Correct the numerical values.
16280
16281 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
16282
16283         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
16284
16285 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
16286
16287         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
16288         on case insensitve file systems.
16289
16290 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
16291
16292         * libc/include/sys/features.h: Add appropriate defines for Cygwin
16293         pthread support.
16294         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
16295         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
16296         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
16297
16298 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
16299
16300         * libc/include/machine/ieeefp.h: Comment about new configuration
16301         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
16302         * libm/common/fdlib.h: Define new macros for testing floats.
16303         * libm/common/sf_*: Use them.
16304         * libm/math/ef_*: Likewise.
16305         * libm/math/sf_*: Likewise.
16306
16307 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
16308
16309         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
16310         prolog to by-pass possible assembler error.
16311
16312 2001-03-21  Egor Duda  <deo@logos-m.ru>
16313
16314         Allow building internal stubs for non-reentrant syscalls
16315         if target provides its own malloc
16316         * libc/reent/reent.c (errno): Move definition here.
16317         * libc/reent/sbrkr.c: From here.
16318
16319 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
16320
16321         * libc/include/sys/types.h (BSD int typedefs): Guard with
16322         _BSDTYPES_DEFINED rather than _WINSOCK_H.
16323         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
16324         _SYS_TYPES_FD_SET.
16325         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
16326         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
16327
16328 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
16329
16330         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
16331         _PC_POSIX_SECURITY constants for Cygwin.
16332
16333 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
16334
16335         * libc/sys/cygwin/crt0.c: Add copyright hint.
16336         * libc/sys/cygwin/sys/dirent.h: Ditto.
16337         * libc/sys/cygwin/sys/param.h: Ditto.
16338         * libc/sys/cygwin/sys/utime.h: Ditto.
16339         * libc/sys/cygwin/sys/utmp.h: Ditto.
16340
16341 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
16342
16343         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
16344         equivalent to LONGINT.
16345
16346 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
16347
16348         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
16349         jmpbuf on MIPS64 targets.
16350         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
16351
16352 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
16353
16354         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
16355           declarations.
16356
16357 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
16358
16359         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
16360         For RTEMS, define to be ssize_t.  Default to int if not defined.
16361         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
16362         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
16363         * libc/stdio/local.h (__sread, __swrite): Likewise.
16364         * libc/include/sys/reent.h (_read, _write): Likewise.
16365         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
16366         * libc/syscalls/sysread.c (read): Likewise.
16367         * libc/syscalls/syswrite.c (write): Likewise.
16368
16369 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
16370
16371         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
16372
16373 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
16374
16375         * libc/include/sys/stat.h: Use special defines for executable stat bits
16376         when compiling for Cygwin.
16377         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
16378         for Cygwin.
16379
16380 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
16381
16382         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
16383         of strtok_r is always defined.
16384
16385 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
16386
16387         * libc/include/machine/ansi.h: New dummy header file.
16388
16389 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
16390
16391         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
16392         changed the copyright information to allow free modification of the
16393         file with no reference to "copying.dj".
16394         * libc/include/sys/stat-dj.h: Ditto.
16395         * libc/machine/i386/setjmp.S: Ditto.
16396         * libc/sys/h8300hms/sys/file.h: Ditto.
16397         * libc/sys/sysmec/access.c: Ditto.
16398         * libc/sys/sysnecv850/access.c: Ditto.
16399         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
16400         * libc/stdlib/getenv_r.c: Ditto.
16401         * libc/stdlib/putenv_r.c: Ditto.
16402         * libc/stdlib/setenv_r.c: Ditto.
16403         * libc/stdlib/getenv.c: Removed DJ reference since any possible
16404         modifications will now be in the _r version of this file.
16405         * libc/stdlib/putenv.c: Ditto.
16406         * libc/stdlib/setenv.c: Ditto.
16407         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
16408         valid.  Added a reference to DJ's web page that contains his address.
16409         * libc/sys/go32/*.s: Removed references to DJ's old address.
16410         * libc/sys/go32/*.c: Ditto.
16411         * libc/sys/go32/*.h: Ditto.
16412         * libc/sys/go32/*.S: Ditto.
16413         * libc/sys/go32/sys/*.h: Ditto.
16414
16415 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
16416
16417         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
16418         HAVE_FCNTL flag check.
16419         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
16420         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
16421
16422 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
16423
16424         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
16425
16426 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
16427
16428         * libc/include/stdlib.h: Add declarations of rand48 functions and
16429         their reentrant versions.
16430         * libc/include/sys/reent.h: Move macros from rand48.h. Add
16431         struct _rand48 for shared parameters of rand48 functions.
16432         (struct _reent): Add a variable _r48 of struct _rand48.
16433         (_REENT_INIT): Add _r48 initialization.
16434         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
16435         (CHEWOUT_FILES): Add rand48.def.
16436         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
16437         * libc/stdlib/Makefile.in: Regenerated.
16438         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
16439         NetBSD C library.
16440         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
16441         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
16442         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
16443         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
16444         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
16445         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
16446         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
16447         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
16448         * libc/stdlib/rand48.c (__dorand48): Ditto.
16449         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
16450         parameters into macros referring them in the reentrant structure.
16451
16452 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
16453
16454         * libc/include/sys/stat.h: Add mknod for Cygwin now that
16455         Cygwin definition has correct prototype.
16456
16457 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
16458
16459         * libc/include/sys/stat.h: Must revert change for mknod
16460         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
16461         prototype.
16462
16463 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
16464
16465         * libc/include/stdio.h: Revert putw prototype.
16466
16467 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
16468
16469         * libc/include/grp.h: add prototype for initgroups.
16470         * libc/include/stdio.h: fix prototype for putw.
16471         * libc/include/sys/signal.h: add prototype for killpg.
16472         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
16473         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
16474         vhangup and remove duplicate sysconf prototype.
16475
16476 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
16477
16478         * libc/sys/rtems/sys/types.h: Removed.
16479
16480 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
16481
16482         * libc/include/locale.h: add LC_MESSAGES definition
16483
16484 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
16485
16486         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
16487         SYS_get_argN):
16488         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
16489         __setup_argv_and_call_main): New.
16490
16491 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
16492
16493         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
16494         if defined.
16495         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
16496         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
16497         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
16498         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
16499
16500 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
16501
16502         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
16503         compiling under Cygwin.
16504
16505 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
16506
16507         * libc/include/math.h (signgam): Change to errno-like solution
16508         using a function to return the address of the real signgam.
16509         * libc/reent/signgam.c: New file containing __signgam().
16510         * libc/reent/Makefile.am: Added signgam.c to list of files.
16511         * libc/reent/Makefile.in: Regenerated.
16512
16513 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
16514
16515         * libc/sys/sh/syscalls.c (_times): New.
16516
16517         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
16518         * libc/sys/sh/syscalls.c (_gettimeofday): New.
16519
16520 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
16521
16522         * libc/include/math.h (signgam): Regress previous fix as
16523         it does not handle programs with extern int signgam in them.
16524
16525 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
16526
16527         * libc/include/math.h (signgam): Changed to a macro refering to
16528         its location in the reentrant structure.
16529
16530 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
16531
16532         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
16533         that suppressed . for %.0f, 0.1.  Check now looks if there
16534         are padding zeroes (expt) in addition to any digits (ndig) to
16535         print.
16536
16537 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
16538
16539         * libc/sys/arc/Makefile.am: New file.
16540         * libc/sys/arc/Makefile.in: Ditto.
16541         * libc/sys/arc/aclocal.m4: Ditto.
16542         * libc/sys/arc/configure: Ditto.
16543         * libc/sys/arc/configure.in: Ditto.
16544         * libc/sys/arc/crt0.S: Ditto.
16545         * libc/sys/arc/isatty.c: Ditto.
16546         * libc/sys/arc/mem-layout.c: Ditto.
16547         * libc/sys/arc/sbrk.c: Ditto.
16548         * libc/sys/arc/syscalls.c: Ditto.
16549         * libc/sys/arc/sys/syscall.h: Ditto.
16550
16551 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
16552
16553         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
16554
16555 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
16556
16557         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
16558
16559 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
16560
16561         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
16562
16563 2001-01-09  Nick Clifton  <nickc@redhat.com>
16564
16565         * configure.host (v859): Remove unsupported compiler options.
16566
16567 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
16568
16569         * src/newlib/configure.host (*-*-rtems*): add printf long long
16570         support for RTEMS.
16571
16572 2000-12-19  Graham Stott <grahams@redhat.com>
16573
16574         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
16575
16576 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
16577
16578         * configure.host: Turn on long double I/O for Cygwin.
16579
16580 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
16581
16582         * MAINTAINERS: Removed Ranjith.
16583         * NEWS: Updated for 1.9.0.
16584         * README: Updated.
16585         * acinclude.m4: Updated to release 1.9.0.
16586         * aclocal.m4 configure
16587           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
16588           libc/machine/aclocal.m4 libc/machine/configure
16589           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
16590           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
16591           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
16592           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
16593           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
16594           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
16595           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
16596           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
16597           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
16598           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
16599           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
16600           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
16601           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
16602           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
16603           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
16604           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
16605           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
16606           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
16607           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
16608           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
16609           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
16610           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
16611           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
16612           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
16613           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
16614           libc/sys/aclocal.m4 libc/sys/configure
16615           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
16616           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
16617           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
16618           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
16619           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
16620           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
16621           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
16622           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
16623           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
16624           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
16625           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
16626           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
16627           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
16628           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
16629           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
16630           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
16631           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
16632           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
16633           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
16634           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
16635           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
16636           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
16637           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
16638           libm/aclocal.m4 libm/configure: Regenerated.
16639
16640 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
16641
16642         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
16643         when __CYGWIN__ is defined.
16644
16645 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
16646
16647         * libc/stdlib/ldtoa.c (_ldcheck): New routine
16648         that categorizes a long double as NaN, Infinity, or other.
16649         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
16650         isinfl and isnanl static routines which were i386-specific.  Changed
16651         calls to the two removed routines to a single _ldcheck call.
16652         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
16653
16654 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
16655
16656         * Makefile.am: Fixed install-data-local target to use
16657         $(mkinstalldirs) for the installed header files to ensure
16658         the directories exist before copying.
16659         * Makefile.in: Regenerated.
16660
16661 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
16662
16663         * libc/include/sys/unistd.h: Restored Cygwin _SC
16664         constants and moved new constants appropriately
16665         so Cygwin will build.
16666
16667 2000-12-11  Joel Sherrill <joel@OARcorp.com>
16668
16669         * Merge RTEMS specific .h files into main libc/include.
16670         * libc/sys/rtems/include/signal.h: Removed.
16671         * libc/sys/rtems/include/time.h: Removed.
16672         * libc/sys/rtems/sys/features.h: Removed.
16673         * libc/sys/rtems/sys/sched.h: Removed.
16674         * libc/sys/rtems/sys/siginfo.h: Removed.
16675         * libc/sys/rtems/sys/signal.h: Removed.
16676         * libc/sys/rtems/sys/time.h: Removed.
16677         * libc/sys/rtems/sys/times.h: Removed.
16678         definitions for time_t and clock_t since these are
16679         no longer in time.h.
16680         * libc/include/pthread.h: New file.
16681         * libc/include/sys/sched.h: New file.
16682         * libc/include/sys/features.h: New file.
16683         * libc/include/time.h: Removed duplicate definition of clock_t
16684         and time_t, get them from <sys/types.h> instead.  Add prototypes
16685         for POSIX clock and timer functionality.
16686         * libc/sys/linux/sys/types.h: Changed to include
16687         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
16688         * libc/include/sys/signal.h: Add more complete set of POSIX
16689         signal functionality including real-time and threaded signals.
16690         * libc/include/sys/types.h: Add clock_t, time_t, struct
16691         timespec, and struct itimerspec.  Centralizing these makes
16692         things cleaner.  RTEMS uses 64-bit dev_t.
16693         Added numerous primitive definitions
16694         for pthreads including macros, pthread_attr_t,
16695         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
16696         pthread_once_t, and pthread_t.
16697         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
16698         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
16699         Feature flags removed and moved to new file <sys/features.h>.
16700         Full set of POSIX sysconf() constants
16701
16702 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
16703
16704         * configure.host: Added x86 linux target.
16705         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
16706         definitions provided if not already defined.
16707         * libc/sys/linux/crt0.c: New file.
16708         * libc/sys/linux/Makefile.am: Ditto.
16709         * libc/sys/linux/Makefile.in: Ditto.
16710         * libc/sys/linux/aclocal.m4: Ditto.
16711         * libc/sys/linux/brk.c: Ditto.
16712         * libc/sys/linux/configure: Ditto.
16713         * libc/sys/linux/configure.in: Ditto.
16714         * libc/sys/linux/getoptlong.c: Ditto.
16715         * libc/sys/linux/ids.c: Ditto.
16716         * libc/sys/linux/inode.c: Ditto.
16717         * libc/sys/linux/io.c: Ditto.
16718         * libc/sys/linux/linux.c: Ditto.
16719         * libc/sys/linux/process.c: Ditto.
16720         * libc/sys/linux/realpath.c: Ditto.
16721         * libc/sys/linux/select.c: Ditto.
16722         * libc/sys/linux/signal.c: Ditto.
16723         * libc/sys/linux/systat.c: Ditto.
16724         * libc/sys/linux/termios.c: Ditto.
16725         * libc/sys/linux/time.c: Ditto.
16726         * libc/sys/linux/wait.c: Ditto.
16727         * libc/sys/linux/include/alloca.h: Ditto.
16728         * libc/sys/linux/include/getopt.h: Ditto.
16729         * libc/sys/linux/include/stdint.h: Ditto.
16730         * libc/sys/linux/include/unistd.h: Ditto.
16731         * libc/sys/linux/sys/cdefs.h: Ditto.
16732         * libc/sys/linux/sys/dirent.h: Ditto.
16733         * libc/sys/linux/sys/errno.h: Ditto.
16734         * libc/sys/linux/sys/fcntl.h: Ditto.
16735         * libc/sys/linux/sys/file.h: Ditto.
16736         * libc/sys/linux/sys/ioctl.h: Ditto.
16737         * libc/sys/linux/sys/resource.h: Ditto.
16738         * libc/sys/linux/sys/signal.h: Ditto.
16739         * libc/sys/linux/sys/stat.h: Ditto.
16740         * libc/sys/linux/sys/syscall.h: Ditto.
16741         * libc/sys/linux/sys/termios.h: Ditto.
16742         * libc/sys/linux/sys/time.h: Ditto.
16743         * libc/sys/linux/sys/types.h: Ditto.
16744         * libc/sys/linux/sys/utmp.h: Ditto.
16745         * libc/sys/linux/sys/utsname.h: Ditto.
16746         * libc/sys/linux/sys/wait.h: Ditto.
16747
16748 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
16749
16750         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
16751         can be a relative path to $(top_srcdir)/install.sh so ensure the
16752         autoconf detected settings are properly passed recursively.
16753         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
16754         properly to subdirectories.
16755         * Makefile.in: Regenerated.
16756
16757 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
16758
16759         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
16760         a floating point register unless really printing a floating
16761         point number.
16762
16763 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
16764
16765         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
16766         Also removed \r's.
16767         (asctoeg): Replaced alloca call with stack array and malloc
16768         when storage exceeds reasonable limit.
16769         (e53toe): Fixed einfin calls missing ldp parameter.
16770         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
16771
16772 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
16773
16774
16775         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
16776
16777 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
16778
16779         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
16780         * libc/stdlib/Makefile.in: Regenerated.
16781         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
16782         * libc/stdio/vfieeefp.h: Added long double bit structures.
16783         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
16784         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
16785         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
16786         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
16787         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
16788         _strtold routines used for conversions between character
16789         and long double.
16790
16791 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
16792
16793         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
16794
16795 2000-12-04  Joel Sherrill <joel@OARcorp.com>
16796
16797         * libc/include/machine/time.h: RTEMS systems can configure clock
16798         tick rate so use sysconf() to ask.
16799
16800 2000-12-04  Joel Sherrill <joel@OARcorp.com>
16801
16802         * libc/include/sys/times.h: Add reference to POSIX standard.
16803
16804 2000-12-04  Joel Sherrill <joel@OARcorp.com>
16805
16806         * libc/include/sys/time.h: Added BSD timer manipulation macros
16807         used by RTEMS code.
16808
16809 2000-12-04  Joel Sherrill <joel@OARcorp.com>
16810
16811         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
16812         referenced by code generated by gcc 2.8.1.
16813         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
16814         satisfy gcc.
16815
16816 2000-12-04  Joel Sherrill <joel@OARcorp.com>
16817
16818         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
16819
16820 2000-12-04  Joel Sherrill <joel@OARcorp.com>
16821
16822         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
16823
16824 2000-12-04  Joel Sherrill <joel@OARcorp.com>
16825
16826         * configure.host (or16, or32): New entries for OpenCores
16827         OpenRisc CPUs.
16828         (*-*-rtems*): Add -DNO_EXEC.
16829
16830 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
16831
16832         * libc/include/sys/errno.h: Added comments on many error numbers.
16833         * libc/string/strerror.c: Added some more strings.
16834
16835 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
16836
16837         * libc/sys/sh/syscalls.c (_link): New stub.
16838
16839 2000-11-29  Nick Clifton  <nickc@redhat.com>
16840
16841         * configure.host: Add xscale target.
16842         * libc/machine/xscale: New directory.
16843         * libc/machine/xscale/Makefile.am: New file.
16844         * libc/machine/xscale/Makefile.in: New file.
16845         * libc/machine/xscale/aclocal.m4: New file.
16846         * libc/machine/xscale/configure: New file.
16847         * libc/machine/xscale/configure.in: New file.
16848         * libc/machine/xscale/memchr.S: New file.
16849         * libc/machine/xscale/memcmp.S: New file.
16850         * libc/machine/xscale/memcpy.S: New file.
16851         * libc/machine/xscale/memmove.S: New file.
16852         * libc/machine/xscale/memset.S: New file.
16853         * libc/machine/xscale/strchr.S: New file.
16854         * libc/machine/xscale/strcmp.S: New file.
16855         * libc/machine/xscale/strcpy.S: New file.
16856         * libc/machine/xscale/strlen.S: New file.
16857
16858 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
16859
16860         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
16861         avoid compiler warnings.
16862
16863 2000-11-22  Michael Meissner  <meissner@redhat.com>
16864
16865         * libc/posix/execl.c (execl): Don't reference environ directly,
16866         reference it only via a static pointer to avoid problems with some
16867         shared library systems and with different uses of small data where
16868         the user specifies his own version of environ.
16869         * libc/posix/execv.c (execv): Ditto.
16870         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
16871         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
16872         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
16873
16874         * libc/stdlib/getenv.c (environ): Delete unused reference to
16875         environ.
16876
16877         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
16878         colorization.
16879         * libc/stdlib/system.c: Ditto.
16880
16881 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
16882
16883         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
16884         including windows headers.
16885
16886 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
16887
16888         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
16889         * libc/include/dirent.h: Added definition of MAXNAMLEN if
16890         not defined by sys/dirent.h.
16891         * libc/posix/execvp.c: Added include of dirent.h to get
16892         MAXNAMLEN value which used to be in unistd.h.
16893
16894 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
16895
16896         * libc/include/sys/types.h: Change type of i to `size_t' in
16897         FD_ZERO macro to avoid compiler warnings.
16898
16899 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
16900
16901         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
16902         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
16903
16904 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
16905
16906         * libc/include/sys/unistd.h: Add defines for sysconf values
16907         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
16908         _SC_AVPHYS_PAGES.
16909
16910 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
16911
16912         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
16913         declarations for __CYGWIN__.
16914
16915 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
16916
16917         * libc/signal/signal.c (__sigtramp_r): ISO C requires
16918         case labels to be integral constant expressions, so
16919         use an if/else tree instead.
16920         (_raise_r): Likewise.
16921
16922 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
16923
16924         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
16925         clipping patch from e-mail reader.
16926
16927 2000-09-13  Will Cohen  <wcohen@redhat.com>
16928
16929         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
16930         Added return value 0.
16931         (_longjmp): Allow longjmp to return value of second argument
16932         passed to it.
16933
16934 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
16935
16936         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
16937         inline code to prevent having to include another header file.
16938
16939 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
16940
16941         * Makefile.am: Fix space vs. tab problem in install-data-local.
16942         * Makefile.in: Regenerate.
16943
16944 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
16945
16946         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
16947         (_EXPARM): New macro for defining a function parameter.
16948         * libc/include/stdlib.h: Use _EXPARM.
16949         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
16950
16951 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
16952
16953         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
16954         required, as documented in the gnu coding standards.
16955         * Makefile.in: Regenerate.
16956
16957 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
16958
16959         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
16960         make O_NDELAY and O_NONBLOCK have the same value.
16961
16962 2000-08-30  Kazu Hirata  <kazu@hxi.com>
16963
16964         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
16965
16966 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
16967
16968         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
16969         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
16970         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
16971         everywhere else.
16972
16973 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
16974
16975         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
16976         * libc/include/string.h: Don't include <sys/types.h>,
16977         as it causes really bad namespace pollution.  Don't declare
16978         swab(), it is properly declared in unistd.h.
16979
16980 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
16981
16982         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
16983         (broken) support for non-existent /etc/passwd field "comment".
16984
16985 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
16986
16987         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
16988         only if _DIRENT_HAVE_D_NAMLEN is defined.
16989         (alphasort): aligned prototype with
16990         libc/sys/cygwin/sys/dirent.h and simplified function body.
16991         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
16992         long telldir (DIR *) as mentioned in annex B of POSIX.1
16993
16994 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
16995
16996         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
16997         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
16998         Added __CLI and __STI macros (controlled via
16999         _I386MACH_ALLOW_HW_INTERRUPTS macro).
17000         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
17001         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
17002         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
17003         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
17004         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
17005         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
17006         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
17007         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
17008         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
17009         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
17010         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
17011         for all global entry points.
17012         * libc/machine/i386/setjmp.S: removed code replicated in
17013         libc/machine/i386/i386mach.h and included i386mach.h instead;
17014         Use __CLI and __STI instead of cli and sti.
17015
17016 2000-08-25  DJ Delorie  <dj@redhat.com>
17017
17018         * libc/include/sys/unistd.h (environ): this one isn't from the
17019         DLL, no __IMPORT
17020
17021 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
17022
17023         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
17024         environ when compiling under cygwin since it is already declared in
17025         unistd.h.
17026
17027 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
17028
17029         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
17030         like  x << y-z  to the equivalent  x << (y-z).
17031         (d2b): changed if statements with assignment to perform the
17032         assignment prior to the if check.
17033         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
17034         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
17035         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
17036         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
17037         precedence.
17038         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
17039         Added "_execve" prototype (for execl.c, execle.c, execv.c, and
17040         execve.c).
17041         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
17042         precedence.
17043         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
17044         clarify && and || precendence (and to remove pascalism).
17045         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
17046         * libm/math/s_infconst.c: added another pair of braces to all
17047         initializers for __infinity (need three: for __infinity[1] array,
17048         for union __dmath, and for i[2]).
17049
17050 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
17051
17052         * libc/stdlib/abort.c: changed description: uses "raise" instead of
17053         "getpid" and "kill"; added: uses "write" and "_exit".
17054         Also included unistd.h for "_exit" prototype.
17055         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
17056         reent.h for "_fork_r" and "_wait_r" prototypes.
17057         (do_system): changed  extern char *environ[] to POSIX-friendly
17058         extern char **environ.
17059         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
17060         prototypes.
17061         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
17062         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
17063         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
17064         * libc/reent/openr.c: included fcntl.h for "open" prototype.
17065         * libc/reent/signalr.c: included signal.h for "kill" prototype,
17066         unistd.h for "getpid" prototype.
17067         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
17068         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
17069         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
17070         prototype.  Also included stdlib.h for "abort", string.h for
17071         "strdup" and "strncmp" prototypes.
17072         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
17073         "strncpy", unistd.h for "read" and "close" prototypes.
17074         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
17075         "strcat" prototypes.
17076
17077 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
17078
17079         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
17080         used later (ifdef __SCLE)
17081         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
17082         used later (ifdef MB_CAPABLE)
17083         * libc/string/memset.c (memset): removed unused variables "count"
17084         and "unaligned_addr"
17085         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
17086         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
17087         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
17088         and "gid"
17089
17090 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
17091
17092         * libc/stdlib/envlock.c: changed documented "__env_lock" and
17093         "__env_unlock" prototype from "void *" or "char *" to
17094         "struct _reent *" to match real function.  Also added include
17095         of envlock.h.
17096         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
17097         "__malloc_unlock" prototype from "void *" or "char *" to
17098         "struct _reent *" to match real function.
17099         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
17100         prototypes (for getenv_r.c and setenv_r.c).
17101
17102 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
17103
17104         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
17105         and prototype in cygwin's utmp.h
17106
17107 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
17108
17109         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
17110
17111 2000-08-09  Nick Clifton  <nickc@cygnus.com>
17112
17113         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
17114         epilogue and to allow the functions to be used in a Thumb based
17115         toolchain.
17116
17117 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
17118
17119         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
17120         so size of 0 results in nothing being written to string.
17121         Also fixed code so that when size is non-zero, there is only
17122         a maximum of size - 1 characters written to the array and
17123         a nul terminator is appended at the end.
17124         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
17125
17126 2000-08-01  DJ Delorie  <dj@redhat.com>
17127
17128         * libc/include/sys/config.h: define __IMPORT appropriately
17129         * libc/include/ctype.h (_ctype_): use __IMPORT
17130         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
17131         * libc/include/math.h (__mb_cur_max): ditto
17132         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
17133         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
17134         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
17135         * libc/include/unistd.h (environ): ditto
17136
17137 2000-07-28  Michael Meissner  <meissner@redhat.com>
17138
17139         * libc/include/math.h (__infinity): Declare as an array without
17140         bounds to get around small data support.  Rewrite Cygwin support
17141         to be more general.
17142         * libm/math/s_infconst.c (__infinity): Ditto.
17143         * libm/mathfp/s_infconst.c (__infinity): Ditto.
17144
17145 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
17146
17147         * libc/include/math.h: Use appropriate dll import linkage for
17148         __infinity under Cygwin.
17149
17150 2000-07-13  DJ Delorie  <dj@cygnus.com>
17151
17152         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
17153
17154 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
17155
17156         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
17157         to argument list for AngelSWI_Reason_GetCmdLine.
17158
17159 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
17160
17161         * configure.host: Add support for AVR target.
17162         * libc/include/machine/ieeefp.h: Likewise.
17163         * libc/include/sys/config.h: Likewise.
17164
17165 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
17166
17167         * README: Newlib 1.8.2 must be built in a separate directory
17168         than the sources.
17169
17170 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
17171
17172         * libc/include/sys/reent.h (_rand_next): Added __extension__
17173         qualifier as long long type is not strict ANSI.
17174         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
17175         to long long constant.
17176
17177 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
17178
17179         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
17180         `setegid' provided by Cygwin.
17181
17182 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
17183
17184         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
17185         account for Cygwin.
17186
17187 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
17188
17189         * libc/include/sys/reent.h (_rand_next): Changed to
17190         unsigned long long and moved to end of _reent struct in _new union.
17191         (_REENT_INIT): Changed to move _rand_next initialization.
17192         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
17193         linear congruential algorithm that is used by DJGPP.
17194
17195 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
17196
17197         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
17198         * libc/include/sys/config.h: Define __RAND_MAX.
17199
17200 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
17201
17202         * libc/stdlib/rand_r.c: New algorithm that meets minimal
17203         standard.
17204
17205 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
17206
17207         * libc/include/string.h: Work around problem with strsignal and gdb.
17208
17209 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
17210
17211         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
17212         * libc/include/malloc.h: Ditto.
17213         * libc/include/process.h: Ditto.
17214         * libc/include/stdio.h: Ditto.
17215         * libc/include/stdlib.h: Ditto.
17216         * libc/include/time.h: Ditto.
17217         * libc/include/machine/setjmp.h: Ditto.
17218         * libc/include/sys/errno.h: Ditto.
17219         * libc/include/sys/signal.h: Ditto.
17220         * libc/include/sys/stat.h: Ditto.
17221         * libc/include/sys/time.h: Ditto.
17222         * libc/include/sys/unistd.h: Ditto.
17223         * libc/include/string.h: Ditto.  strsignal should return a const char *.
17224
17225 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
17226
17227         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
17228         * libm/common/s_log1p.c (log1p): Likewise.
17229         * libm/common/s_scalbn.c (scalbn): Likewise.
17230         * libm/math/e_log.c: Likewise.
17231         * libm/math/e_asin.c: Likewise.
17232         * libm/math/ef_asin.c: Likewise.
17233         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
17234         * libm/math/e_j1.c (pone, qone): Likewise.
17235         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
17236         * libm/math/ef_j1.c (ponef, qonef): Likewise.
17237         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
17238         * libm/mathfp/e_j1.c (pone, qone): Likewise.
17239         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
17240         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
17241
17242 2000-05-19  DJ Delorie  <dj@cygnus.com>
17243
17244         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
17245         (__sread): always read in binary mode
17246         (__swrite): always write in binary mode
17247         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
17248         compatibility issues with different dll versions
17249         * libc/stdio/fopen.c: use __stextmode
17250         * libc/stdio/fdopen.c: ditto
17251         * libc/stdio/freopen.c: ditto
17252         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
17253         * libc/stdio/local.h: declare __stextmode
17254
17255 2000-05-18  DJ Delorie  <dj@cygnus.com>
17256
17257         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
17258
17259 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
17260
17261         * libc/include/ctype.h: Changed tolower and toupper macros
17262         to use __extension__ to prevent pedantic warnings.
17263
17264 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
17265
17266         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
17267         structures.
17268
17269 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
17270
17271         * libc/include/machine/ieeefp.h: Add ia64 support.
17272         * configure.host: Likewise.
17273
17274 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
17275
17276         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
17277         month is now padded with space, not zero.  This now conforms to
17278         ANSI standard.
17279
17280 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
17281
17282         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
17283         host or network path") used by cygwin. Add some comments.
17284
17285 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
17286
17287         * libc/include/stdio.h (FILE): define __SCLE for "convert line
17288         endings" for Cygwin.
17289         (__sgetc): convert line endings if needed
17290         (__sputc): ditto
17291         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
17292         * libc/stdio/fopen.c (_fopen_r): ditto
17293         * libc/stdio/freopen.c (freopen): ditto
17294         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
17295         * libc/stdio/fvwrite.c (__sfvwrite): ditto
17296
17297 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
17298
17299         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
17300         post-increment when it is worth it, spacewise.
17301
17302 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
17303
17304         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
17305         * libc/stdio/findfp.c (std): Added declaration of flags and file.
17306         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
17307         return type.
17308         * libc/stdio/putchar.c (putchar): Added return statement.
17309         * libc/stdio/refill.c (lflush): Added correct parentheses.
17310         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
17311         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
17312         prints long value to use l qualifier.
17313         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
17314         messages and initialized local values: ilim, ilim1, and spec_case.
17315         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
17316         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
17317         * libc/stdlib/mprec.c: Ditto.
17318         * libc/stdlib/setenv_r.c: Ditto.
17319         * libc/stdlib/strtod.c: Ditto.
17320         * libc/stdlib/strtol.c: Ditto.
17321         * libc/stdlib/strtoul.c: Ditto.
17322         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
17323         * libm/common/sf_log1p.c: Ditto.
17324         * libm/common/sf_scalbn.c: Ditto.
17325         * libm/math/ef_log.c: Ditto.
17326
17327 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
17328
17329         * libc/posix/execvp.c (execvp): Check path for
17330         trailing slash.
17331
17332 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
17333
17334         * libc/include/sys/unistd.h: Add prototypes for
17335         fchmod, fchown, lchown.
17336
17337 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
17338
17339         * acinclude.m4: Changed release to 1.8.2.
17340         * aclocal.m4 configure doc/aclocal.m4 doc/configure
17341           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
17342           libc/machine/configure libc/machine/a29k/aclocal.m4
17343           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
17344           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
17345           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
17346           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
17347           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
17348           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
17349           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
17350           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
17351           libc/machine/i386/configure libc/machine/i960/aclocal.m4
17352           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
17353           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
17354           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
17355           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
17356           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
17357           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
17358           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
17359           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
17360           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
17361           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
17362           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
17363           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
17364           libc/machine/v850/configure libc/machine/w65/aclocal.m4
17365           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
17366           libc/machine/z8k/configure libc/sys/aclocal.m4
17367           libc/sys/aclocal.m4 libc/sys/configure
17368           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
17369           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
17370           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
17371           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
17372           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
17373           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
17374           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
17375           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
17376           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
17377           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
17378           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
17379           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
17380           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
17381           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
17382           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
17383           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
17384           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
17385           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
17386           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
17387           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
17388           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
17389           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
17390           libm/aclocal.m4 libm/configure: Regenerated.
17391
17392 2000-03-24  Nick Clifton  <nickc@cygnus.com>
17393
17394         * libc/sys/arm/syscalls.c: Fix compile time warnings.
17395         (do_AngelSWI): Add "cc" to list o registers clobbered.
17396
17397 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
17398
17399         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
17400         information to be clobbered by an Angel C library support syscall.
17401
17402 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
17403
17404         * libc/stdlib/envlock.c: Fixed comment typo.
17405
17406 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
17407
17408         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
17409         code to update nread as each character is processed instead
17410         of using buffer contents which throw away leading zeroes.
17411
17412 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
17413
17414         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
17415
17416 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
17417
17418         * libc/include/string.h: Include <sys/types.h>.
17419
17420 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
17421
17422         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
17423         with XSH5, not SVID.
17424
17425 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
17426
17427         * libc/include/string.h: Changed last argument back to ssize_t
17428         to make it compatible with XPG4 definition which is
17429         defined in <unistd.h>.  There is a conflict in the SVID 3
17430         and XPG4 definitions and newlib will settle with XPG4.
17431         * libc/string/swab.c: Ditto.
17432
17433 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
17434
17435         * libc/include/string.h: Changed last argument to size_t.
17436         * libc/string/swab.c: Changed last argument to size_t.
17437
17438 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
17439
17440         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
17441         (CHEWOUT_FILES): Added unlinkr.def.
17442         * libc/reent/Makefile.in: Rebuilt.
17443         * libc/sys.tex: Include unlinkr.def.
17444         * libc/reent/linkr.c (_unlink_r): Moved to...
17445         * libc/reent/unlinkr.c: ... new file.
17446
17447 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
17448
17449         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
17450         (CHEWOUT_FILES): Added swab.def.
17451         * libc/string/Makefile.in: Rebuilt.
17452         * libc/string/string.tex: Include swab.def.
17453         * libc/include/string.h (swab): Declare.
17454         * libc/string/swab.c: New file.
17455
17456 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
17457
17458         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
17459         (CHEWOUT_FILES): Added getw.def and putw.def.
17460         * libc/stdio/Makefile.in: Rebuilt.
17461         * libc/stdio/stdio.tex: Include getw.def and putw.def.
17462         * libc/stdio/getw.c: New file.
17463         * libc/stdio/putw.c: New file.
17464
17465 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
17466
17467         * libc/stdio/flags.c (__sflags): Added check that mode[1]
17468         is non-null before looking at mode[2].
17469
17470 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
17471
17472         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
17473         * libm/mathfp/sf_atan.c: Ditto.
17474
17475 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
17476
17477         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
17478
17479 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
17480
17481         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
17482         _DOUBLE_IS_32BITS.
17483
17484 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
17485
17486         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
17487         call prior to calling _VFPRINTF_R so reentrant data area is set.
17488         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
17489
17490 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
17491
17492         * libc/stdio/vfscanf.c (limits.h): #include.
17493         (MAX_LONG_LEN): #define.
17494         (__svfscanf): Handle floating point numbers with arbitrary amounts
17495         of leading zeroes.
17496
17497 2000-02-15  Nick Clifton  <nickc@cygnus.com>
17498
17499         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
17500         zero.  Set the blocksize to 1024/
17501
17502 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
17503
17504         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
17505         with line buffering.
17506
17507 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
17508
17509         * acinclude.m4: Changed include directory for winsup headers.
17510         * aclocal.m4 configure libc/aclocal.m4
17511           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
17512           libc/locale/Makefile.in libc/machine/aclocal.m4
17513           libc/machine/configure libc/machine/a29k/aclocal.m4
17514           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
17515           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
17516           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
17517           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
17518           libc/machine/fr30/configure
17519           libc/machine/h8300/aclocal.m4
17520           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
17521           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
17522           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
17523           libc/machine/i386/configure libc/machine/i960/aclocal.m4
17524           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
17525           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
17526           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
17527           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
17528           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
17529           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
17530           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
17531           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
17532           libc/machine/powerpc/configure
17533           libc/machine/sh/aclocal.m4
17534           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
17535           libc/machine/sparc/configure
17536           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
17537           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
17538           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
17539           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
17540           libc/misc/Makefile.in libc/posix/Makefile.in
17541           libc/reent/Makefile.in
17542           libc/signal/Makefile.in
17543           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
17544           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
17545           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
17546           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
17547           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
17548           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
17549           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
17550           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
17551           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
17552           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
17553           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
17554           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
17555           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
17556           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
17557           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
17558           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
17559           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
17560           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
17561           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
17562           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
17563           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
17564           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
17565           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
17566           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
17567           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
17568           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
17569           libm/configure: Regenerated.
17570
17571 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
17572
17573         * libc/stdlib/putenv_r.c (_putenv_r): New file.
17574         * libc/stdlib/strdup_r.c (_strdup_r): New file.
17575         * libc/include/string.h: Added _strdup_r.
17576         * libc/stdlib/putenv.c: Added call to reentrant version.
17577         * libc/stdlib/strdup.c: Ditto.
17578         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
17579         * libc/include/stdlib.h: Ditto.
17580         * libc/stdlib/Makefile.in: Regenerated.
17581         * libc/string/Makefile.in: Regenerated.
17582         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
17583         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
17584         management calls to reentrant versions.
17585         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
17586         * libc/stdlib/wctomb.c: Ditto.
17587         * libc/stdlib/mblen.c: Ditto.
17588         * libc/stdlib/mbstowcs.c: Ditto.
17589         * libc/stdlib/mbtowc.c: Ditto.
17590         * libc/stdlib/getenv.c: Ditto.
17591         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
17592         and _strdup_r.
17593
17594 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
17595
17596         patch from Corinna Vinschen <corinna@vinschen.de>
17597         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
17598
17599 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
17600
17601         * libm/mathfp/s_atangent.c: Fix exponent calculation.
17602         * libm/mathfp/s_ldexp.c: Ditto.
17603         * libm/mathfp/sf_atangent.c: Ditto.
17604         * libm/mathfp/sf_ldexp.c: Ditto.
17605
17606 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
17607
17608         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
17609         * libc/include/locale.h: define NULL to be 0.
17610
17611 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
17612
17613         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
17614         function.
17615
17616 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
17617
17618         * libc/machine/mn10300/setjmp.S: Handle am33.
17619
17620 1999-11-26  Nick Clifton  <nickc@cygnus.com>
17621
17622         * libc/sys/arm/syscalls.c: Add function prototypes.
17623         (stack_ptr): Move declaration before function definitions.
17624
17625 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
17626
17627         * NEWS: Updated version information.
17628         * README: Ditto.
17629
17630 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
17631
17632         * libc/machine/i386/strchr.S: Fixed alignment test.
17633
17634 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
17635
17636         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
17637
17638 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
17639
17640         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
17641         ensuring that there is space between the two.
17642
17643 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
17644
17645         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
17646         only.
17647
17648 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
17649
17650         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
17651         section
17652
17653 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
17654
17655         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
17656         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
17657
17658 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
17659         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
17660           per POSIX 1003.1b.
17661         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
17662           per POSIX 1003.1b.
17663
17664 1999-09-13  DJ Delorie  <dj@cygnus.com>
17665
17666         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
17667         also.
17668
17669 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
17670
17671         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
17672         also note BUFSIZ as its size.
17673
17674 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
17675
17676         * configure.host: Corrected feature defines for RTEMS.
17677         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
17678         * libc/include/sys/stat.h: mkfifo() should take const path arg.
17679         * libc/include/sys/unistd.h: pathconf() should take const path arg.
17680           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
17681           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
17682           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
17683           _PC_PRIO_IO, and _PC_SYNC_IO.
17684         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
17685         * libc/machine/m68k/Makefile.in: Regenerated.
17686         * libc/machine/m68k/strcpy.c: New file.
17687         * libc/machine/m68k/strlen.c: New file.
17688         * libc/stdio/tmpnam.c: Always make the returned name usable.
17689         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
17690         * libc/sys/rtems/sys/dirent.h: New file.
17691         * libc/sys/rtems/sys/types.h: Added dev_t.
17692
17693 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
17694
17695         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
17696
17697 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
17698
17699         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
17700         my patch.
17701
17702 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
17703
17704         patch from Jeff Johnston <jjohnstn@cygnus.com>
17705         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
17706         buffer is not in a useful state.
17707
17708 1999-09-01  Nick Clifton  <nickc@cygnus.com>
17709
17710         * libc/sys/arm/syscalls.c (_link): Add stub.
17711
17712 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
17713
17714         * ftell.c (ftell): Use actual position within buffer for text mode.
17715         * findfp.c (std): Initialize ptr->_bf._size.
17716
17717 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
17718
17719         * libc/include/sys/unistd.h: Add nice() declaration.
17720
17721 1999-08-09  Nick Clifton  <nickc@cygnus.com>
17722
17723         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
17724         declare as a thumb function so that the disassembler will see the
17725         mode change.
17726
17727 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
17728
17729         * libc/reent/reent.tex: Updated list of reentrant functions.
17730
17731 1999-07-09  Michael Meissner  <meissner@cygnus.com>
17732
17733         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
17734
17735 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
17736
17737         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
17738         separate file.
17739         * libc/stdio/snprintf.c: New file.
17740         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
17741         separate file.
17742         * libc/stdio/vsnprintf.c: New file.
17743         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
17744         * libc/stdio/Makefile.in: Regenerated.
17745
17746 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
17747
17748         Patch submitted by Egor Duda <deo@logos-m.ru>:
17749         * libc/include/stdio.h: Add declarations for *nprintf.
17750         * libc/stdio/sprintf.c (snprintf): New function.
17751         (_snprintf_r): New function.
17752         * libc/stdio/vsprintf.c (vsnprintf): New function.
17753         (_vnsprintf_r): New function.
17754
17755 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17756
17757         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
17758         * libm/Makefile.am (stmp-targetdep): Ditto.
17759         * libc/Makefile.in: Regenerated.
17760         * libm/Makefile.in: Ditto.
17761
17762 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17763
17764         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
17765         * libm/Makefile.am (stmp-targetdep): Ditto.
17766         * libc/Makefile.in: Regenerated.
17767         * libm/Makefile.in: Ditto.
17768
17769 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
17770
17771         * Makefile.am: Removed dependencies on all-recursive and added "."
17772         to the SUBDIRS list to prevent infinite recursion from occurring.
17773         Also removed any references to EXTRA_DATA.
17774         * libc/Makefile.am: Ditto.
17775         * libc/machine/Makefile.am: Ditto.
17776         * libc/machine/i386/Makefile.am: Ditto.
17777         * libm/Makefile.am: Ditto.
17778         * libc/sys/Makefile.am: Ditto.
17779         * Makefile.in: Regenerated.
17780         * aclocal.m4: Ditto.
17781         * configure: Ditto.
17782         * doc/Makefile.in: Ditto.
17783         * doc/aclocal.m4: Ditto.
17784         * doc/configure: Ditto.
17785         * libc/Makefile.in: Ditto.
17786         * libc/aclocal.m4: Ditto.
17787         * libc/configure: Ditto.
17788         * libc/machine/Makefile.in: Ditto.
17789         * libc/machine/aclocal.m4: Ditto.
17790         * libc/machine/configure: Ditto.
17791         * libc/machine/mn10300/Makefile.in: Ditto.
17792         * libc/machine/mn10300/aclocal.m4: Ditto.
17793         * libc/machine/mn10300/configure: Ditto.
17794         * libc/sys/Makefile.in: Ditto.
17795         * libc/sys/aclocal.m4: Ditto.
17796         * libc/sys/configure: Ditto.
17797         * libm/Makefile.in: Ditto.
17798         * libm/aclocal.m4: Ditto.
17799         * libm/configure: Ditto.
17800
17801 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
17802
17803         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
17804
17805 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
17806
17807         * libc/include/stdlib.h: Add reentrant routines.
17808         * libc/stdlib/Makefile.am: Add reentrant routines.
17809         * libc/stdlib/Makefile.in: Ditto.
17810         * libc/stdlib/envlock.c: New file.
17811         * libc/stdlib/envlock.h: New file.
17812         * libc/stdlib/getenv.c: Modify to call reentrant routine.
17813         * libc/stdlib/getenv_r.c: New file.
17814         * libc/stdlib/mblen.c: Modify to call reentrant routine.
17815         * libc/stdlib/mblen_r.c: New file.
17816         * libc/stdlib/setenv.c: Modify to call reentrant routine.
17817         * libc/stdlib/setenv_r.c: New file.
17818         * libc/stdlib/stdlib.tex: Add reentrant routines.
17819
17820 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
17821
17822         * libc/include/sys/types.h: Define __MS_types__ whenever
17823         cygwin or win32.
17824
17825 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
17826
17827         * libc/include/machine/ieeefp.h: Always default to little
17828         endian if Windows, regardless of architecture.
17829         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
17830         regardless of architecture.
17831
17832 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
17833
17834         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
17835         _WIN32 isn't defined.
17836
17837 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17838
17839         * libm/common/s_rint.c (rint): Add volatile qualifier for
17840         intermediate value w.
17841         * libm/common/sf_rint.c (rintf): Ditto.
17842
17843 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17844
17845         * libc/sys/arm/syscalls.c (remap_handle): Added check to
17846         ensure that std streams are initialized before being referenced.
17847
17848 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
17849
17850         * README: Update reference to newlib@cygnus.com new
17851         newlib@sourceware.cygnus.com address.
17852
17853 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
17854
17855         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
17856         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
17857         defined, even if _WIN32 isn't defined.
17858
17859 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
17860
17861         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
17862
17863 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
17864
17865         * libc/include/sys/reent.h: Change Long and ULong to __Long and
17866         __ULong.
17867         * libc/stdlib/dtoa.c: Ditto.
17868         * libc/stdlib/mprec.c: Ditto.
17869         * libc/stdlib/mprec.h: Ditto.
17870         * libc/stdlib/strtod.c: Ditto.
17871
17872 1999-04-21  Nick Clifton  <nickc@cygnus.com>
17873
17874         * configure.host (mcore): Remove mcore machine directory.
17875
17876 1999-04-18  Nick Clifton  <nickc@cygnus.com>
17877
17878         * libc/include/machine/ieeefp.h: Add support for mcore target.
17879         * libc/include/machine/setjmp.h: Add support for mcore target.
17880         * configure.host: Add support for mcore target.
17881
17882 1999-04-13  Mark Salter  <msalter@cygnus.com>
17883
17884         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
17885         * libc/sys/arm/syscalls.c: Added isatty.
17886
17887 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17888
17889         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
17890         insert zeroes after significant digits.
17891
17892 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17893
17894         * libc/stdio/vfprintf.c (cvt): Changed floating point
17895         cvt routine to use union used by dtoa to properly determine
17896         if the sign bit is on or not.
17897         * libc/stdio/vfieeefp.h: New file
17898
17899 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17900
17901         * aclocal.m4: Regenerated.
17902         * configure: Regenerated.
17903
17904 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17905
17906         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
17907         f_tanf reference.
17908         * libc/machine/i386/Makefile.in: Regenerated.
17909
17910 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17911
17912         * acinclude.m4: Changed to work with new automake.
17913         * configure: Regenerated.
17914         * libc/machine/i386/aclocal.m4: Regenerated.
17915         * libc/machine/i386/configure: Regenerated.
17916
17917 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
17918
17919         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
17920         for telldir() and seekdir().  Rename unused structure element
17921         for use with these two routines.
17922
17923 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17924
17925         * libc/time/mktime.c (validate_structure): Multiple fixes to
17926         code to handle cases where input fields are outside valid ranges.
17927         * libc/stdlib/div.c (div): Modified invalid rounding check.
17928         * libc/stdlib/ldiv.c (ldiv): Ditto.
17929
17930 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17931
17932         * libc/machine/i386/memcpy.S: Performance rewrite.
17933         * libc/machine/i386/memmove.S: Ditto.
17934         * libc/machine/i386/i386mach.h: Added more register definitions.
17935         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
17936         option used.
17937         * libc/include/machine/fastmath.h: Add definitions for x86
17938         fast-math routines.
17939
17940 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
17941
17942         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
17943
17944 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
17945
17946         Adjust newlib headers for new Cygwin Win32 API header files:
17947         * libc/include/sys/time.h: Check _WINSOCK_H rather than
17948         _GNU_H_WINDOWS32_SOCKETS.
17949         * libc/include/sys/types.h: Ditto.
17950
17951 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
17952
17953         *include/sys/reent.h: Add checks for size of Bigint element Long.
17954         *libc/dtoa.c: Change routines to use generic Long type.
17955         *libc/mprec.c: Change routines to use generic Long type.
17956         *libc/mprec.h: Change routines to use generic Long type.
17957
17958 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
17959
17960         * libc/Makefile.am: Add .def files.
17961         * libc/Makefile.in: Regenerate.
17962         * libc/e_acosh.c: Documentation update.
17963         * libc/e_atanh.c: Documentation update.
17964         * libc/e_hypot.c: Documentation update.
17965         * libc/e_remainder.c: Documentation update.
17966         * libc/er_lgamma.c: Documentation update.
17967         * libc/mathfp.tex: Documentation update.
17968         * libc/s_acos.c: Documentation update.
17969         * libc/s_atan.c: Documentation update.
17970         * libc/s_atan2.c: Documentation update.
17971         * libc/s_cosh.c: Documentation update.
17972         * libc/s_fmod.c: Documentation update.
17973         * libc/s_isnan.c: Documentation update.
17974         * libc/s_log10.c: Documentation update.
17975         * libc/s_pow.c: Documentation update.
17976         * libc/w_jn.c: Documentation update.
17977
17978 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
17979
17980         * aclocal.m4: Regenerate.
17981         * configure: Regenerate.
17982
17983 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17984
17985         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
17986         to return 1 if user specified return code is 0.
17987         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
17988
17989 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17990
17991         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
17992         to save the return address.  Fixed longjmp to return to the original
17993         calling address of setjmp and to return the user specified return code
17994         rather than default to 1.
17995         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
17996
17997 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17998
17999         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
18000
18001 1999-02-10  Nick Clifton  <nickc@cygnus.com>
18002
18003         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
18004         volatile so that its assignments will not be discarded.
18005
18006 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
18007
18008         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
18009         be __STRICT_ANSI__ which is generated by compiler.
18010         * libc/include/ctype.h: Ditto.
18011         * libc/include/math.h: Ditto.
18012         * libc/include/stdio.h: Ditto.
18013         * libc/include/stdlib.h: Ditto.
18014         * libc/include/string.h: Ditto.
18015         * libc/include/sys/signal.h: Ditto.
18016
18017 1999-02-08  Nick Clifton  <nickc@cygnus.com>
18018
18019         * configure.host: Add support for StrongARM target.
18020
18021 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
18022
18023         * libc/string/strncpy.c (strncpy): Removed redundant code
18024         that was copying bytes if data unaligned.
18025
18026 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
18027
18028         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
18029         mbstowcs.def, and wcstombs.def.
18030
18031 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
18032
18033         * libc/include/sys/errno.h: Add Cygwin errno.
18034         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
18035         is specified.
18036
18037 1999-01-29  Nick Clifton  <nickc@cygnus.com>
18038
18039         * libc/sys/arm/syscalls.c: Move C library functions into seperate
18040         file.
18041
18042         * libc/sys/arm/libcfunc.c: New file containing C library functions
18043         from syscalls.c
18044
18045         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
18046         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
18047
18048
18049 1999-01-27  Michael Meissner  <meissner@cygnus.com>
18050
18051         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
18052         type, and cut size in half so that the jmp_buf array is guaranteed
18053         to be aligned on a 64-bit boundary.
18054
18055 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
18056
18057         * libc/string/strings.tex: Added information about
18058         strcasecmp and strncasecmp.
18059         * libc/stdlib/stdlib.tex: Added missing information
18060         about mblen, mbstowcs, and wcstombs.
18061         * libc/string/strchr.c: Changed how mask is built to use
18062         shift operators so register will be used instead of storage.
18063
18064 1999-01-22  DJ Delorie  <dj@cygnus.com>
18065
18066         * libc/include/stdlib.h: don't use dllimport if we're building
18067         newlib, since it's inside cygwin.dll
18068
18069 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
18070
18071         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
18072         _ctype_ under cygwin.
18073
18074 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
18075
18076         * include/stdlib.h: Fix typo from previous checkin.
18077
18078 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
18079
18080         * include/ctype.h: Use __declspec(dllimport) method for exporting
18081         variable from cygwin DLL.
18082         * include/time.h: Ditto.
18083         * sys/errno.h: Ditto.
18084         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
18085         * libc/locale/locale.c: Use __declspec(dllexport) method for
18086         exporting variable from cygwin DLL.
18087
18088 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
18089
18090         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
18091         access of bogus pointer will result in SIGSEGV.
18092
18093 1999-01-07  Nick Clifton  <nickc@cygnus.com>
18094
18095         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
18096         of an underscore prefix to function names.
18097
18098 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
18099
18100         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
18101         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
18102
18103 1998-12-31  Michael Meissner  <meissner@cygnus.com>
18104
18105         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
18106         to `%' if not already defined.
18107
18108 1998-12-30  Michael Meissner  <meissner@cygnus.com>
18109
18110         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
18111         arguments const char *, not char *.
18112         * libc/include/stdio.h (_tempnam_r): Ditto.
18113
18114         * libc/include/sys/reent.h (struct _reent): The _sig_func type
18115         points to a function taking an integer, not void.
18116
18117 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
18118
18119         * configure.host: Add a define for Cygwin builds.
18120         * libc/include/ctype.h: Don't use dll imported variables in newlib.
18121
18122 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
18123
18124         * libc/include/ctype.h: Define _ctype_ as dll imported variable
18125         for use with Cygwin.
18126         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
18127         dll imported variables for use with Cygwin.
18128         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
18129         as a dll imported variable for Cygwin.
18130
18131 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
18132
18133         * libc/include/sys/unistd.h: Add proto for getpass.
18134
18135 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
18136
18137         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
18138         alphasort.
18139
18140 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
18141
18142         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
18143         not posix_path_list_p.
18144
18145 1998-12-15  Nick Clifton  <nickc@cygnus.com>
18146
18147         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
18148         a signed int.
18149
18150 1998-12-13  Nick Clifton  <nickc@cygnus.com>
18151
18152         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
18153
18154 1998-12-12  Nick Clifton  <nickc@cygnus.com>
18155
18156         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
18157         <msalter@cygnus.com>
18158         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
18159         * libc/machine/fr30/Makefile.in: Regenerated.
18160
18161 1998-12-11  Nick Clifton  <nickc@cygnus.com>
18162
18163         * configure.host: Remove use of libc/sys for FR30 port.
18164         * libc/sys/fr30: Remove directory (replaced by libgloss).
18165
18166 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
18167
18168         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
18169         * libc/string/strncat.c (ALIGNED): Ditto.
18170
18171 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
18172
18173         * libc/include/sys/time.h: include sys/types.h
18174
18175 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18176
18177         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
18178         comparison found when checking word at a time.
18179
18180 1998-12-04  Nick Clifton  <nickc@cygnus.com>
18181
18182         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
18183
18184 1998-12-03  Nick Clifton  <nickc@cygnus.com>
18185
18186         * libc/sys/fr30/syscalls.c (_times): New function stub.
18187
18188 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18189
18190         * configure.host (mach_add_setjmp): Replaced mach_add_objs
18191         with mach_add_setjmp flag which indicates if setjmp should
18192         be added to the machine directory objects.
18193         * acinclude.m4: Removed reference to mach_add_objs.
18194         * aclocal.m4: Regenerated.
18195         * Makefile.in: Regenerated.
18196         * configure: Regenerated.
18197         * libc/aclocal.m4: Regenerated.
18198         * libc/Makefile.in: Regenerated.
18199         * libc/configure: Regenerated.
18200         * libc/machine/aclocal.m4: Regenerated.
18201         * libc/machine/Makefile.in: Regenerated.
18202         * libc/machine/configure: Regenerated.
18203         * libc/machine/i386/aclocal.m4: Regenerated.
18204         * libc/machine/i386/Makefile.am: Altered to selectively add
18205         setjmp.S to the src files list.
18206         * libc/machine/i386/Makefile.in: Regenerated.
18207         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
18208         * libc/machine/i386/configure: Regenerated.
18209
18210 1998-12-02  Nick Clifton  <nickc@cygnus.com>
18211
18212         * libc/sys/fr30/crt0.s (_start): Fix function names.
18213
18214         * libc/machine/fr30: New directory
18215         * libc/machine/fr30/Makefile.am: New file.
18216         * libc/machine/fr30/Makefile.in: New generated file.
18217         * libc/machine/fr30/configure.in: New file.
18218         * libc/machine/fr30/configure: New generated file.
18219         * libc/machine/fr30/aclocal.m4: New generated file.
18220         * libc/sys/fr30/Makefile.am: New file.
18221         * libc/sys/fr30/Makefile.in: New generated file.
18222         * libc/sys/fr30/configure.in: New file.
18223         * libc/sys/fr30/configure: New generated file.
18224         * libc/sys/fr30/syscalls.c: New file.
18225
18226 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
18227
18228         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
18229
18230 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
18231
18232         * libc/time/strftime.c (strftime): Also handle %y for years before
18233         1900.
18234
18235 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
18236
18237         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
18238         UNIX convention.  Perform tolower on characters before comparing
18239         them rather than use toupper.
18240         * libc/string/strncasecmp.c (strncasecmp): Ditto.
18241
18242 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18243
18244         * configure.host: Added using i386 machine directory
18245         for all x86 cross-compiler and configuring
18246         which added object files to use via new "mach_add_objs" variable.
18247         * configure: Regenerated.
18248         * libc/configure: Regenerated.
18249         * libc/Makefile.in: Regenerated.
18250         * libc/aclocal.m4: Regenerated.
18251         * libc/ctype/Makefile.in: Regenerated.
18252         * libc/errno/Makefile.in: Regenerated.
18253         * libc/locale/Makefile.in: Regenerated.
18254         * libc/machine/Makefile.in: Regenerated.
18255         * libc/machine/aclocal.m4: Regenerated.
18256         * libc/machine/configure: Regenerated.
18257         * libc/posix/Makefile.in: Regenerated.
18258         * libc/reent/Makefile.in: Regenerated.
18259         * libc/signal/Makefile.in: Regenerated.
18260         * libc/stdio/Makefile.in: Regenerated.
18261         * libc/stdlib/Makefile.in: Regenerated.
18262         * libc/string/Makefile.in: Regenerated.
18263         * libc/string/memmove.c: Optimized code to use memcpy
18264         logic when performing a non-destructive copy.
18265         * libc/string/strncmp.c: Altered code to allow building
18266         optimized for size or speed.
18267         * libc/syscalls/Makefile.in: Regenerated.
18268         * libc/time/Makefile.in: Regenerated.
18269         * libc/unix/Makefile.in: Regenerated.
18270         * libc/machine/i386/Makefile.am: Added new files and reference
18271         to "mach_add_objs" to indicate optional object files.
18272         * libc/machine/i386/Makefile.in: Regenerated.
18273         * libc/machine/i386/aclocal.m4: Regenerated.
18274         * libc/machine/i386/configure: Regenerated.
18275         * libc/machine/i386/memchr.S: New file that implements
18276         function in Intel assembler.
18277         * libc/machine/i386/memcmp.S: ditto.
18278         * libc/machine/i386/memcpy.S: ditto.
18279         * libc/machine/i386/memmove.S: ditto.
18280         * libc/machine/i386/memset.S: ditto.
18281         * libc/machine/i386/strchr.S: ditto.
18282         * libc/machine/i386/strlen.S: ditto.
18283         * libc/machine/i386/f_atan2.S: New file that implements
18284         fast version of math function to be used by compiler when
18285         --ffast_math compile option is used.
18286         * libc/machine/i386/f_atan2f.S: ditto.
18287         * libc/machine/i386/f_exp.c: ditto.
18288         * libc/machine/i386/f_expf.c: ditto.
18289         * libc/machine/i386/f_frexp.S: ditto.
18290         * libc/machine/i386/f_frexpf.S: ditto.
18291         * libc/machine/i386/f_ldexp.S: ditto.
18292         * libc/machine/i386/f_ldexpf.S: ditto.
18293         * libc/machine/i386/f_log.S: ditto.
18294         * libc/machine/i386/f_logf.S: ditto.
18295         * libc/machine/i386/f_log10.S: ditto.
18296         * libc/machine/i386/f_log10f.S: ditto.
18297         * libc/machine/i386/f_math.h: New file.
18298         * libc/machine/i386/f_pow.c: ditto.
18299         * libc/machine/i386/f_powf.S: ditto.
18300         * libc/machine/i386/f_tan.S: ditto.
18301         * libc/machine/i386/f_tan.S: ditto.
18302         * libc/machine/i386/i386mach.h: New file.
18303
18304 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
18305
18306         patch from Mumit Khan <khan@xraylith.wisc.edu>
18307         * libc/include/stdio.h (tempnam): Add prototype.
18308         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
18309         (tempnam): Adhere to prototype.
18310
18311 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
18312
18313         * Makefile.am: Add default for AR_FLAGS.
18314         * Makefile.in: Regenerate.
18315
18316 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
18317
18318         * libc/include/time.h: move __cplusplus wrapper after includes
18319         * libc/include/sys/time.h: ditto.  If Cygwin, include
18320         sys/select.h.
18321         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
18322
18323 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
18324
18325         * libc/time/strftime.c (strftime): Handle %y after year 2000.
18326
18327 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
18328
18329         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
18330         abnormnal end-of-crt0 marker.
18331
18332 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
18333
18334         * libc/sys/fr30/crt0.s: New file/directory.
18335         * libc/include/machine/setjmp.h: Add FR30 target.
18336         * libc/include/machine/ieeefp.h: Add FR30 target.
18337         * configure.host: Add FR30 target.
18338
18339 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
18340
18341         * libm/math: Files that are duplicated in common directory removed.
18342         * libm/math/fdlibm.h: Removed.
18343         * libm/math/s_cbrt.c: Removed.
18344         * libm/math/s_copysign.c: Removed.
18345         * libm/math/s_expm1.c: Removed.
18346         * libm/math/s_finite.c: Removed.
18347         * libm/math/s_ilogb.c: Removed.
18348         * libm/math/s_infinity.c: Removed.
18349         * libm/math/s_lib_ver.c: Removed.
18350         * libm/math/s_log1p.c: Removed.
18351         * libm/math/s_logb.c: Removed.
18352         * libm/math/s_matherr.c: Removed.
18353         * libm/math/s_modf.c: Removed.
18354         * libm/math/s_nan.c: Removed.
18355         * libm/math/s_nextafter.c: Removed.
18356         * libm/math/s_rint.c: Removed.
18357         * libm/math/s_scalbn.c: Removed.
18358         * libm/math/sf_cbrt.c: Removed.
18359         * libm/math/sf_copysign.c: Removed.
18360         * libm/math/sf_expm1.c: Removed.
18361         * libm/math/sf_finite.c: Removed.
18362         * libm/math/sf_ilogb.c: Removed.
18363         * libm/math/sf_infinity.c: Removed.
18364         * libm/math/sf_log1p.c: Removed.
18365         * libm/math/sf_logb.c: Removed.
18366         * libm/math/sf_modf.c: Removed.
18367         * libm/math/sf_nan.c: Removed.
18368         * libm/math/sf_nextafter.c: Removed.
18369         * libm/math/sf_rint.c: Removed.
18370         * libm/math/sf_scalbn.c: Removed.
18371         * libm/math/Makefile.am: Removed references to deleted files (above).
18372         * libm/math/Makefile.in: Regenerated.
18373         * libm/Makefile.am: Added common directory to math.
18374         * libm/Makefile.in: Regenerated.
18375
18376 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
18377
18378         * libm/mathfp: Add non-ANSI functions.
18379         * libm/mathfp/e_acosh.c acosh(): New file.
18380         * libm/mathfp/e_atanh.c atanh(): New file.
18381         * libm/mathfp/e_hypot.c hypot(): New file.
18382         * libm/mathfp/e_j0.c j0(): New file.
18383         * libm/mathfp/e_j1.c j1(): New file.
18384         * libm/mathfp/e_remainder.c remainder(): New file.
18385         * libm/mathfp/e_scalb.c scalb(): New file.
18386         * libm/mathfp/ef_acosh.c acoshf(): New file.
18387         * libm/mathfp/ef_atanh.c atanhf(): New file.
18388         * libm/mathfp/ef_hypot.c hypotf(): New file.
18389         * libm/mathfp/ef_j0.c j0f(): New file.
18390         * libm/mathfp/ef_j1.c j1f(): New file.
18391         * libm/mathfp/ef_remainder.c remainderf(): New file.
18392         * libm/mathfp/ef_scalb.c scalbf(): New file.
18393         * libm/mathfp/er_gamma.c gamma_r: New file.
18394         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
18395         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
18396         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
18397         * libm/mathfp/w_cabs.c cabs(): New file.
18398         * libm/mathfp/w_drem.c drem(): New file.
18399         * libm/mathfp/w_jn.c jn(): New file.
18400         * libm/mathfp/wf_cabs.c cabsf(): New file.
18401         * libm/mathfp/wf_drem.c dremf(): New file.
18402         * libm/mathfp/wf_jn.c jnf(): New file.
18403
18404 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
18405
18406         * libc/sys/cygwin32: remove directory and contents
18407         * libc/sys/cygwin: and add back, losing the "32".
18408         * configure.host: check for cygwin* instead of cygwin32.
18409         * acinclude.m4: ditto.
18410         * aclocal.m4: regenerate with aclocal
18411         * configure: regenerate with autoconf
18412
18413 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
18414
18415         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
18416         for length
18417
18418 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18419
18420         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
18421         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
18422         to make rand/srand, strtok, asctime, localtime, w_gamma,
18423         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
18424         time.h to bring in struct tm definition.
18425         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
18426         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
18427         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
18428         instead of static variable.
18429         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
18430         struct reent instead of static variable.
18431         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
18432         struct reent instead of static variable.
18433         * libm/math/Makefile.am: Removed s_signgam.o.
18434         * libm/math/Makefile.in: Regenerated.
18435         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
18436         struct reent instead of global variable 'signgam'.
18437         * libm/math/w_lgamma.c (lgamma): Likewise.
18438         * libm/math/wf_gamma.c (gammaf): Likewise.
18439         * libm/math/wf_lgamma.c (lgammaf): Likewise.
18440         * libm/math/s_signgam.c: Removed.
18441         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
18442         to be const.
18443         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
18444         to be const.
18445         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
18446         libc/include/reent.h.
18447         * libc/reent/Makefile.in: Regenerated.
18448         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
18449         to be const.
18450         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
18451         'JIS_action_table' to be const.
18452         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
18453
18454 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
18455
18456         * acinclude.m4:  $with_target_subdir should default to '.'
18457         or confusion results when configuring in same directory as sources.
18458         * Regenerate all aclocal.m4 and configure files.
18459
18460 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18461
18462         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
18463         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
18464         for platforms where sizeof(size_t) < sizeof(long) via
18465         SIZE_T_SMALLER_THAN_LONG macro.
18466
18467 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18468
18469         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
18470         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
18471         which sets _CLOCKS_PER_SEC_ for selected machines.
18472         * libc/include/machine/time.h: New file.
18473
18474 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18475
18476         * libc/syscalls/sysexecve.c: New file.
18477         * libc/syscalls/sysgettod.c: New file.
18478         * libc/syscalls/systimes.c: New file.
18479         * libc/syscalls/Makefile.am: Added new objects.
18480         * libc/syscalls/Makefile.in: Regenerated.
18481         * libc/include/_syslist.h (_execve): Moved define in file.
18482         * libc/include/reent.h:  Added _execve_r declaration.
18483         * libc/Makefile.in: Regenerated.
18484         * libc/ctype/Makefile.in: Regenerated.
18485         * libc/errno/Makefile.in: Regenerated.
18486         * libc/locale/Makefile.in: Regenerated.
18487         * libc/machine/Makefile.in: Regenerated.
18488         * libc/misc/Makefile.in: Regenerated.
18489         * libc/posix/Makefile.in: Regenerated.
18490         * libc/reent/Makefile.in: Regenerated.
18491         * libc/reent/execr.c (_execve_r): Added _execve_r function.
18492         * libc/signal/Makefile.in: Regenerated.
18493         * libc/stdio/Makefile.in: Regenerated.
18494         * libc/time/Makefile.in: Regenerated.
18495         * libc/unix/Makefile.in: Regenerated.
18496         * libm/mathfp/Makefile.in: Regenerated.
18497
18498 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18499
18500         * libc/string/Makefile.in: Regenerated.
18501         * libc/string/memchr.c (memchr): Moved code to reduce object size.
18502         * libc/string/memcpy.c (memcpy): Ditto.
18503         * libc/string/memcmp.c (memcmp): Ditto.
18504         * libc/string/memset.c (memset): Ditto.
18505         * libc/string/strchr.c (strchr): Ditto.
18506         * libc/string/strcmp.c (strcmp): Ditto.
18507         * libc/string/strcpy.c (strcpy): Ditto.
18508         * libc/string/strlen.c (strlen): Ditto.
18509
18510 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18511
18512         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
18513         to generate aclocal.m4.
18514         * libm/Makefile.in: Regenerated.
18515         * libm/aclocal.m4: Regenerated.
18516         * libm/configure: Regenerated.
18517         * libm/math/Makefile.in: Regenerated.
18518         * libm/mathfp/Makefile.in: Regenerated.
18519
18520 1998-09-25  Mark Salter  <msalter@cygnus.com>
18521
18522         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
18523         by adding leading and trailing underscores to symbol names.
18524
18525 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
18526
18527         * Makefile.in: Add default for AR_FLAGS.
18528
18529 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
18530
18531         patch from ian@airs.com (Ian Taylor):
18532         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
18533         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
18534         is needed for detecting the build machine.  Required for
18535         cygwin native builds.
18536
18537         * Regenerate all aclocal.m4 and configure files.
18538
18539 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
18540
18541         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
18542         used to start with LC.
18543
18544 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18545
18546         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
18547         (longjmp): Likewise.
18548
18549 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18550
18551         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
18552         the test for small number of bytes.
18553
18554 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
18555
18556         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
18557         math library that uses floating point algorithms instead of the old
18558         libm.
18559         * Makefile.in: Regenerate with automake version 1.3b.
18560         * configure: Rebuild.
18561         * libm/Makefile.in: Regenerate with automake version 1.3b.
18562         * libm/aclocal.m4: Regenerate.
18563         * libm/configure: Rebuild.
18564         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
18565         * libm/acinclude.m4: Define macros for configure.in.
18566         * libm/config.h.in: Generate.
18567         * libm/mathfp/Makefile.am: New file.
18568         * libm/mathfp/Makefile.in: Generate.
18569         * libm/mathfp/s_acos.c (acos): New file.
18570         * libm/mathfp/s_asin.c (asin): New file.
18571         * libm/mathfp/s_asine.c (asine): New file.
18572         * libm/mathfp/s_atan.c (atan): New file.
18573         * libm/mathfp/s_atan2.c (atan2): New file.
18574         * libm/mathfp/s_atangent.c (atangent): New file.
18575         * libm/mathfp/s_ceil.c (ceil): New file.
18576         * libm/mathfp/s_copysign.c (copysign): New file.
18577         * libm/mathfp/s_cos.c (cos): New file.
18578         * libm/mathfp/s_cosh.c (cosh): New file.
18579         * libm/mathfp/s_exp.c (exp): New file.
18580         * libm/mathfp/s_fabs.c (fabs): New file.
18581         * libm/mathfp/s_finite.c (finite): New file.
18582         * libm/mathfp/s_floor.c (floor): New file.
18583         * libm/mathfp/s_fmod.c (fmod): New file.
18584         * libm/mathfp/s_frexp.c (frexp): New file.
18585         * libm/mathfp/s_infconst.c: New file.
18586         * libm/mathfp/s_isinf (isinf).c: New file.
18587         * libm/mathfp/s_isnan.c (isnan): New file.
18588         * libm/mathfp/s_ispos.c (ispos): New file.
18589         * libm/mathfp/s_ldexp.c (ldexp): New file.
18590         * libm/mathfp/s_log.c (log): New file.
18591         * libm/mathfp/s_log10.c (log10): New file.
18592         * libm/mathfp/s_logarithm.c (logarithm): New file.
18593         * libm/mathfp/s_mathcnst.c: New file.
18594         * libm/mathfp/s_modf (modf).c: New file.
18595         * libm/mathfp/s_numtest.c (numtest): New file.
18596         * libm/mathfp/s_pow.c (pow): New file.
18597         * libm/mathfp/s_scalbn.c (scalbn): New file.
18598         * libm/mathfp/s_sin (sin).c: New file.
18599         * libm/mathfp/s_sine.c (sine): New file.
18600         * libm/mathfp/s_sineh.c (sineh): New file.
18601         * libm/mathfp/s_sinf.c (sinf): New file.
18602         * libm/mathfp/s_sinh.c (sinh): New file.
18603         * libm/mathfp/s_sqrt.c (sqrt): New file.
18604         * libm/mathfp/s_tan.c (tan): New file.
18605         * libm/mathfp/s_tanh.c (tanh): New file.
18606         * libm/mathfp/sf_acos.c (acosf): New file.
18607         * libm/mathfp/sf_asin.c (asinf): New file.
18608         * libm/mathfp/sf_asine.c (asinef): New file.
18609         * libm/mathfp/sf_atan.c (atanf): New file.
18610         * libm/mathfp/sf_atan2.c (atan2f): New file.
18611         * libm/mathfp/sf_atangent.c (atangent): New file.
18612         * libm/mathfp/sf_ceil.c (ceilf): New file.
18613         * libm/mathfp/sf_copysign.c (copysignf): New file.
18614         * libm/mathfp/sf_cos.c (cosf): New file.
18615         * libm/mathfp/sf_cosh.c (coshf): New file.
18616         * libm/mathfp/sf_exp.c (expf): New file.
18617         * libm/mathfp/sf_fabs.c (fabsf): New file.
18618         * libm/mathfp/sf_finite.c (finitef): New file.
18619         * libm/mathfp/sf_floor.c (floorf): New file.
18620         * libm/mathfp/sf_fmod.c (fmodf): New file.
18621         * libm/mathfp/sf_frexp.c (frexpf): New file.
18622         * libm/mathfp/sf_isinf.c (isinff): New file.
18623         * libm/mathfp/sf_isnan.c (isnanf): New file.
18624         * libm/mathfp/sf_ispos.c (isposf): New file.
18625         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
18626         * libm/mathfp/sf_log.c (logf): New file.
18627         * libm/mathfp/sf_log10.c (log10f): New file.
18628         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
18629         * libm/mathfp/sf_modf.c (modff): New file.
18630         * libm/mathfp/sf_numtest.c (numtestf): New file.
18631         * libm/mathfp/sf_pow.c (powf): New file.
18632         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
18633         * libm/mathfp/sf_sin.c (sinf): New file.
18634         * libm/mathfp/sf_sine.c (sinef): New file.
18635         * libm/mathfp/sf_sineh.c (sinehf): New file.
18636         * libm/mathfp/sf_sinh.c (sinhf): New file.
18637         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
18638         * libm/mathfp/sf_tan.c (tanf): New file.
18639         * libm/mathfp/sf_tanh.c (tanhf): New file.
18640         * libm/mathfp/zmath.h: New file.
18641
18642 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18643
18644         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
18645         exit if it has been overwritten by pre-fetching in delay slot.
18646
18647 1998-09-01  Michael Meissner  <meissner@cygnus.com>
18648
18649         * Makefile.am (tooldir): Add in host_alias, so that multilib
18650         libraries are installed in the directory the compiler looks in.
18651         * Makefile.in: Regenerate.
18652
18653         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
18654
18655 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18656
18657         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
18658         ahead of test for number of bytes being moved.
18659
18660 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
18661
18662         * libc/include/sys/unistd.h: Nothing special needed for
18663         _exit under cygwin.
18664
18665 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
18666
18667         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
18668         conform to user label naming conventions.
18669
18670 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
18671
18672         * libc/sys/cygwin32/sys/utime.h: variable names in
18673         protos should start with two leading underscores
18674         * libc/include/string.h: ditto
18675         * libc/include/sys/signal.h: ditto
18676         * libc/include/sys/stat.h: ditto
18677         * libc/include/sys/time.h: ditto
18678         * libc/include/sys/unistd.h: ditto
18679         * libc/include/ctype.h: ditto
18680         * libc/include/stdlib.h: ditto
18681         * libc/include/sys/reent.h: struct _atexit function ptr takes a
18682         void, same with _sig_func.
18683
18684 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18685
18686         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
18687         for MB_CAPABLE to reduce code size when newlib is not configured
18688         with --enable-newlib-mb.
18689         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
18690         mbtowc_r.o to minimize size.
18691         * libc/stdlib/Makefile.in: Rebuild.
18692
18693 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
18694
18695         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
18696         to -DREENT.
18697         * libc/sys/sparc64/Makefile.in: Rebuild.
18698
18699 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
18700
18701         * Makefile.am (MAKEOVERRIDES): Define.
18702         * Makefile.in: Rebuild.
18703
18704 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
18705
18706         * libc/sys/sparc64/sys/stat.h (stat): Add const.
18707
18708 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
18709
18710         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
18711         newlib_cflags when looking for targ-include.
18712         * */aclocal.m4, */configure: Rebuild.
18713
18714 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
18715
18716         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
18717         to "_end".
18718
18719 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
18720
18721         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
18722         on SPARCs with little-endian data.
18723         * libc/include/machine/ieeefp.h: Ditto.
18724
18725 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
18726
18727         * acinclude.m4: Handle a relative srcdir correctly when setting
18728         newlib_cflags.
18729         * */aclocal.m4, */configure: Rebuild.
18730
18731 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18732
18733         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
18734         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
18735         * libm/math/wrf_gamma.c (gammaf_r): ditto
18736         * libm/math/wr_lgamma.c (lgamma_r): ditto
18737         * libm/math/wr_gamma.c (gamma_r): ditto
18738         * libm/math/wf_sqrt.c (sqrtf): ditto
18739         * libm/math/wf_sinh.c (sinhf): ditto
18740         * libm/math/wf_scalb.c (scalbf): ditto
18741         * libm/math/wf_remainder.c (remainderf): ditto
18742         * libm/math/wf_pow.c (powf): ditto
18743         * libm/math/wf_log10.c (log10f): ditto
18744         * libm/math/wf_log.c (logf): ditto
18745         * libm/math/wf_lgamma.c (lgammaf): ditto
18746         * libm/math/wf_jn.c (jnf, ynf): ditto
18747         * libm/math/wf_j1.c (j1f, y1f): ditto
18748         * libm/math/wf_j0.c (j0f, y0f): ditto
18749         * libm/math/wf_hypot.c (hypotf): ditto
18750         * libm/math/wf_gamma.c (gammaf): ditto
18751         * libm/math/wf_fmod.c (fmodf): ditto
18752         * libm/math/wf_exp.c (expf): ditto
18753         * libm/math/wf_cosh.c (coshf): ditto
18754         * libm/math/wf_atanh.c (atanhf): ditto
18755         * libm/math/wf_atan2f.c (atan2f): ditto
18756         * libm/math/wf_asin.c (asinf): ditto
18757         * libm/math/wf_acosh.c (acoshf): ditto
18758         * libm/math/wf_acos.c (acosf): ditto
18759         * libm/math/w_sqrt.c (sqrt): ditto
18760         * libm/math/w_sinh.c (sinh): ditto
18761         * libm/math/w_scalb.c (scalb): ditto
18762         * libm/math/w_remainder.c (remainder): ditto
18763         * libm/math/w_pow.c (pow): ditto
18764         * libm/math/w_log10.c (log10): ditto
18765         * libm/math/w_log.c (log): ditto
18766         * libm/math/w_lgamma.c (lgamma): ditto
18767         * libm/math/w_jn.c (jn, yn): ditto
18768         * libm/math/w_j1.c (j1, y1): ditto
18769         * libm/math/w_j0.c (j0, y0): ditto
18770         * libm/math/w_hypot.c (hypot): ditto
18771         * libm/math/w_gamma.c (gamma): ditto
18772         * libm/math/w_fmod.c (fmod): ditto
18773         * libm/math/w_exp.c (exp): ditto
18774         * libm/math/w_cosh.c (cosh): ditto
18775         * libm/math/w_atanh.c (atanh): ditto
18776         * libm/math/w_atan2f.c (atan2): ditto
18777         * libm/math/w_asin.c (asin): ditto
18778         * libm/math/w_acosh.c (acosh): ditto
18779         * libm/math/w_acos.c (acos): ditto
18780
18781 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
18782
18783         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
18784         (fsrc): Add wf_cabs.c and wf_drem.c.
18785         * libm/math/Makefile.in: Rebuild.
18786
18787         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
18788         unused directory variables.  Remove duplicate CFLAGS.
18789         * Makefile.in: Rebuild.
18790
18791         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
18792         with $(CC_FOR_BUILD).
18793         (makedoc.o): Likewise.
18794         * doc/Makefile.in: Rebuild.
18795
18796         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
18797         force a definition of COMPILE.
18798         (libfoo_a_SOURCES): Define.
18799         * libc/sys/cygwin32/Makefile.in: Rebuild.
18800         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
18801         force a definition of COMPILE.
18802         (libfoo_a_SOURCES): Define.
18803         * libc/sys/tic80/Makefile.in: Rebuild.
18804
18805 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
18806
18807         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
18808         flag.
18809
18810 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
18811
18812         * Build using autoconf and automake.  Added many Makefile.am and
18813         configure.in files, plus generated files.  Old configure.in files
18814         and all old Makefile.in files completely replaced.  Removed
18815         host/any.  Added acinclude.m4 and configure.host.
18816
18817 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
18818
18819         * libc/stdio/vfprintf.c: enable long long support, sometimes.
18820         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
18821
18822 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18823
18824         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
18825         * libc/machine/sh/Makefile.in: Add rules for new files.
18826
18827 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18828
18829         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
18830         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
18831         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
18832
18833 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
18834
18835         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
18836         code is ignored.
18837
18838 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18839
18840         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
18841         internal static buffer when s is NULL, as prescribed by ANSI.
18842
18843 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
18844
18845         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
18846         removed.
18847         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
18848         libc/stdlib will be used for h8300hms.
18849
18850 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18851
18852         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
18853         version that can be built either for speed or size.
18854         * libc/machine/mn10300/memset.S (_memset): ditto
18855         * libc/machine/mn10300/memchr.S (_memchr): ditto
18856         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
18857         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
18858         * libc/machine/mn10300/strchr.S (_strchr): ditto
18859         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
18860         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
18861         * libc/machine/mn10300/Makefile.in: Added entries for
18862         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
18863         strcmp.o, strcpy.o, and strlen.o.
18864
18865 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
18866
18867         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
18868         been replaced with libgloss/mn10200.
18869
18870 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
18871
18872         * libc/string/strchr.c (strchr): Make s a constant pointer to
18873         avoid warning.
18874
18875 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
18876
18877         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
18878         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
18879         board SWIs instead of Demon board SWIs).
18880
18881 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
18882
18883         * libc/string/strncat.c (strncat):  Make -Os act the same as
18884         PREFER_SIZE_OVER_SPEED being defined.
18885
18886 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
18887
18888         * libc/string/memchr.c (memchr): Make -Os act the same as
18889         PREFER_SIZE_OVER_SPEED being defined.
18890         * libc/string/memcmp.c (memcmp): Ditto.
18891         * libc/string/memcpy.c (memcpy): Ditto.
18892         * libc/string/memset.c (memset): Ditto.
18893         * libc/string/strcat.c (strcat): Ditto.
18894         * libc/string/strchr.c (strchr): Ditto.
18895         * libc/string/strcmp.c (strcmp): Ditto.
18896         * libc/string/strcpy.c (strcpy): Ditto.
18897         * libc/string/strlen.c (strlen): Ditto.
18898         * libc/string/strncat.c (strncat): Ditto.
18899         * libc/string/strncmp.c (strncmp): Ditto.
18900         * libc/string/strncpy.c (strncpy): Ditto.
18901
18902 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
18903
18904         * libc/include/sys/itimer.h: remove
18905         * libc/include/sys/time.h: itimer stuff should be here
18906
18907 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18908
18909         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
18910         bit instead of comparing to 0 so -0.0 can be printed correctly.
18911
18912 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18913
18914         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
18915
18916 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
18917
18918         * libc/include/sys/unistd.h: fix sync() proto
18919         * libc/include/sys/fcntl.h: remove _close which is already
18920         defined in unistd.h.
18921         * libc/include/sys/time.h: add getitimer proto
18922
18923 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
18924
18925         * libc/string/strchr.c: convert arg to unsigned char
18926         * libc/include/stdlib.h: add protos for random, srandom
18927         * libc/include/sys/stat.h: add lstat proto
18928         * libc/include/sys/time.h: add setitimer proto
18929         * libc/include/sys/unistd.h: add readlink, symlink protos
18930         * libc/include/process.h: instead of including windows.h and using
18931         HANDLEs in sexec protos, just use void *s.  Need to include
18932         sys/types.h.
18933
18934 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
18935
18936         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
18937
18938 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
18939
18940         * libc/include/process.h: add secure exec protos
18941
18942 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
18943
18944         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
18945         which are accessed as both doubles and integers.
18946         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
18947         * libc/stdlib/strtod.c (_strtod_r): Likewise.
18948         * libc/stdlib/mprec.h: Add "union double_union" and change
18949         word0/word1 macros to use it.
18950
18951 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
18952
18953         * libc/include/sys/signal.h: add __cplusplus wrapper
18954
18955 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
18956
18957         * libc/include/sys/utime.h: new generic file that gets replaced by
18958         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
18959         function.
18960         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
18961         * libc/include/time.h: remove duplicate utime proto
18962         * libc/include/utime.h: add comment
18963
18964 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
18965
18966         * libc/include/sys/time.h: Add missing include to
18967         allow use of _EXFUN.  Remove times function that is
18968         already defined in times.h.
18969
18970 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
18971
18972         * libc/include/time.h: Fix typo in tzset.
18973
18974 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
18975
18976         * libc/include/sys/time.h: add missing Cygwin32 function protos
18977         * libc/include/sys/unistd.h: ditto
18978         * libc/include/time.h: ditto
18979
18980 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
18981
18982         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
18983         FIXME.
18984         * libc/include/sys/types.h: add a new __MS_types__ section
18985         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
18986         __BIT_TYPES_DEFINED__.
18987
18988 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
18989
18990         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
18991         since it overrides the one in libc/include/sys.  Also, start
18992         including types.h.
18993
18994 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
18995
18996         * libm/math/Makefile.in: add s_signgam.o to obj list
18997
18998 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18999
19000         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
19001
19002 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
19003
19004         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
19005         so don't use defines.
19006
19007 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
19008
19009         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
19010
19011 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
19012
19013         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
19014         _current_locale as default locale.
19015
19016 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
19017
19018         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
19019         insufficient space in a chunk.
19020
19021 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19022
19023         * configure.in (links): Added check for --enable-newlib-mb configure
19024         option which defines the MB_CAPABLE macro.
19025         * libc/locale/locale.c (_setlocale_r): Added support for setting
19026         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
19027         defined.
19028         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
19029         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
19030         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
19031         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
19032         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
19033         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
19034         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
19035         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
19036         * libc/stdlib/Makefile.in: Added new multibyte
19037         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
19038         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
19039         _mbstowcs_r(), and _wcstombs_r().
19040         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
19041         for JIS, SJIS, and EUC-JP characters.
19042         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
19043         MB_CAPABLE defined.
19044         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
19045         MB_CAPABLE defined.
19046         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
19047         MB_CAPABLE defined.
19048         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
19049         if MB_CAPABLE defined.
19050         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
19051         if MB_CAPABLE defined.
19052         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
19053         to the format string processing when MB_CAPABLE.
19054         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
19055         call _mbtowc_r().
19056
19057 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
19058
19059         The following modifications are courtesy of Anthony Thompson,
19060         athompson@cambridge.arm.com:
19061         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
19062         boith RDI and RDP monitors.
19063         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
19064         RDI and RDP monitors.
19065
19066 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19067
19068         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
19069         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
19070         (_swiopen): Fixed open flags to treat write with append as just append.
19071         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
19072         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
19073
19074 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
19075
19076         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
19077         When needing to transfer an initial 2-byte-word, store as
19078         two single bytes.
19079
19080 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
19081
19082         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
19083         __SH3E__ .
19084         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
19085         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
19086
19087 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
19088
19089         * configure.in (target_cflags): If --enable-target-optspace, use
19090         -Os to compile newlib rather than -O2.  Default to using -Os for
19091         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
19092         used.
19093
19094 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
19095
19096         * libc/include/machine/setjmp.h: change sigsetjmp and
19097         siglongjmp definitions to use an array instead of a struct
19098         for __CYGWIN32__
19099
19100 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
19101
19102         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
19103
19104 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
19105
19106         * libc/string/strxfrm.c: fix to get correct return value
19107
19108 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
19109
19110         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
19111         builds.  Make mode change labels global so that they will be seen
19112         by the debugger.
19113
19114 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
19115
19116         * configure.in (links): Do not use ARM debiugging protocols for PE
19117         builds.
19118
19119         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
19120         message.
19121
19122 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19123
19124         * libc/stdio/findfp.c (__sinit): Made stdout default to
19125         line buffered mode as defined by ANSI.
19126
19127 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
19128
19129         * libc/include/sys/itimer.h: New file.
19130
19131         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
19132
19133 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
19134
19135         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
19136         failure.
19137
19138 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
19139
19140         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
19141         insns.
19142
19143 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
19144
19145         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
19146
19147 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
19148
19149         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
19150         support.
19151
19152         * libc/include/machine/setjmp.h: Add D30V support.
19153
19154         * configure.in (d30v-*): Add d30v machine directory.
19155
19156 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
19157
19158         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
19159         been replaced with libgloss/mn10300.
19160
19161 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
19162
19163         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
19164         it is no longer needed.
19165
19166 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
19167
19168         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
19169
19170 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
19171
19172         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
19173         the file when O_APPEND is set, wherever the EOF happens to be at
19174         that time.
19175
19176 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
19177
19178         patch from cgf@bbc.com (Christopher Faylor):
19179         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
19180         convention of closing fp prior to attempting to open the file
19181         argument.  This allows correct operation when reopening
19182         stdin/stdout/stderr.  Replaces last freopen.c patch.
19183
19184 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
19185
19186         patch from cgf@bbc.com (Christopher Faylor):
19187         * libc/stdio/freopen.c: freopen was not preserving the fd
19188         of the stream being operated on.  This confuses programs that
19189         expect that the handles for stdout and stderr will be 1 and 2.
19190
19191 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
19192
19193         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
19194
19195 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
19196
19197         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
19198
19199 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19200
19201         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
19202         altered to not use a branch.  Also added hint that last
19203         bclr in longjmp will likely result in branch.
19204
19205
19206 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
19207
19208         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
19209
19210 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
19211
19212         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
19213         v850 builds.
19214
19215         * configure.in: Add -msmall-sld to target_cflags for v850 builds.
19216
19217 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19218
19219         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
19220         that loads FR14 to specify offset of 8 rather than 4
19221         so it loads from offset 96 (where setjmp stored it).
19222
19223 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19224
19225         * libc/machine/sh/memcpy.S: (_memcpy): Update to
19226         latest version supplied by customer.
19227         * libc/machine/sh/memset.S (_memset): Ditto.
19228
19229 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
19230
19231         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
19232         PR14730).
19233
19234 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
19235
19236         * libc/include/string.h: remove redefinition of ffs
19237
19238 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
19239
19240         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
19241         defined
19242
19243 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19244
19245         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
19246         TI Libraries to link to libc.a
19247
19248 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
19249
19250         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
19251         * libc/include/sys/stat.h (_{,f}stat): Ditto.
19252         * libc/include/sys/wait.h (_wait): Ditto.
19253         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
19254         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
19255
19256 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
19257
19258         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
19259         minded stabs so function name shows up when running the simulator
19260         with -t.
19261         * libc/sys/d10v/{crt0,trap}.S: Ditto.
19262
19263 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
19264
19265         * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
19266         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
19267         Use R5 where we used to use R3.
19268
19269 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
19270
19271         * libc/stdlib/getopt.c (getopt): replaced __progname
19272         with nargv[0] to improve portability to imbedded systems.
19273
19274 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
19275
19276         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
19277         patch supplied by Tont.Thompson@arm.com to fix the creation of the
19278         stdout file.
19279
19280 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
19281
19282         * libc/stdio/tmpnam.c (worker): Generate a different file name
19283         each time.
19284
19285         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
19286         fails, try an execlp for sh.
19287
19288         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
19289         option for the winsup include directory.
19290
19291 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
19292
19293         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
19294         debugging interface from Tony.Thompson@arm.com.
19295
19296         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
19297         * libc/sys/arm/swi.h: ditto.
19298
19299 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
19300
19301         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
19302         DIR struct used for readdir hashes.
19303
19304 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
19305
19306         * libc/string/strchr.c: Use "unsigned chars" as necessary.
19307
19308 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
19309
19310         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
19311         integer targets.
19312
19313 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
19314
19315         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
19316         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
19317         * libc/include/malloc.h: Add extern "C" if __cplusplus.
19318         (__malloc_copy): Declare.
19319
19320 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
19321
19322         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
19323         <sys/config.h>.
19324         (POINTER_UINT): Define.
19325         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
19326         (MALLOC_ALIGNMENT): Don't define if already defined.
19327         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
19328         long.
19329
19330 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
19331
19332         * libc/string/memset.c (memset): Fiddle with code so that the long
19333         value being stored is not a stack value.  Unroll storing longs 4
19334         times.
19335
19336 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
19337
19338         * Reduce code size for libm modules.
19339         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
19340         and simply move code into sqrt.
19341         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
19342         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
19343         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
19344         * libm/math/wr_gamma.c (gamma_r): Likewise.
19345         * libm/math/wf_sinh.c (sinfh): Likewise.
19346         * libm/math/w_sinh.c (sinh): Likewise.
19347         * libm/math/wf_scalb.c (scalbf): Likewise.
19348         * libm/math/w_scalb.c (scalb): Likewise.
19349         * libm/math/wf_remainder.c (remainderf): Likewise.
19350         * libm/math/w_remainder.c (remainder): Likewise.
19351         * libm/math/wf_pow.c (powf): Likewise.
19352         * libm/math/w_pow.c (pow): Likewise.
19353         * libm/math/wf_log10.c (log10f): Likewise.
19354         * libm/math/w_log10.c (log10): Likewise.
19355         * libm/math/wf_log.c (logf): Likewise.
19356         * libm/math/w_log.c (log): Likewise.
19357         * libm/math/w_lgamma.c (lgamma): Likewise.
19358         * libm/math/wf_lgamma.c (lgammaf): Likewise.
19359         * libm/math/wf_jn.c (jnf): Likewise.
19360         * libm/math/w_jn.c (jn): Likewise.
19361         * libm/math/wf_j1.c (j1f): Likewise.
19362         * libm/math/w_j1.c (j1): Likewise.
19363         * libm/math/wf_j0.c (j0f): Likewise.
19364         * libm/math/w_j0.c (j0): Likewise.
19365         * libm/math/wf_hypot.c (hypotf): Likewise.
19366         * libm/math/w_hypot.c (hypot): Likewise.
19367         * libm/math/wf_gamma.c (gammaf): Likewise.
19368         * libm/math/w_gamma.c (gamma): Likewise.
19369         * libm/math/wf_fmod.c (fmodf): Likewise.
19370         * libm/math/w_fmod.c (fmod): Likewise.
19371         * libm/math/wf_exp.c (expf): Likewise.
19372         * libm/math/w_exp.c (exp): Likewise.
19373         * libm/math/wf_cosh.c (coshf): Likewise.
19374         * libm/math/w_cosh.c (cosh): Likewise.
19375         * libm/math/wf_atanh.c (atanhf): Likewise.
19376         * libm/math/w_atanh.c (atanh): Likewise.
19377         * libm/math/wf_atan2.c (atan2f): Likewise.
19378         * libm/math/w_atan2.c (atan2): Likewise.
19379         * libm/math/wf_asin.c (asinf): Likewise.
19380         * libm/math/w_asin.c (asin): Likewise.
19381         * libm/math/wf_acosh.c (acoshf): Likewise.
19382         * libm/math/w_acosh.c (acosh): Likewise.
19383         * libm/math/wf_acos.c (asocf): Likewise.
19384         * libm/math/w_acos.c (acos): Likewise.
19385         * libm/math/wf_sqrt.c (sqrtf): Likewise.
19386         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
19387         for embedded systems.
19388
19389 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
19390
19391         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
19392         Lea in case of a foreign sbrk.
19393
19394 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
19395
19396         Incorporate Doug Lea's malloc:
19397         * libc/stdlib/mallocr.c: Completely replaced.
19398         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
19399         (realloc): Remove.
19400         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
19401         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
19402         mallopt.
19403         (mallinfo, malloc_stats, mallopt): New functions.
19404         (_mstats_r): Just call _malloc_stats_r.
19405         * libc/stdlib/malign.c: New file.
19406         * libc/stdlib/mlock.c: New file.
19407         * libc/stdlib/msize.c: New file.
19408         * libc/stdlib/mtrim.c: New file.
19409         * libc/stdlib/realloc.c: New file.
19410         * libc/stdlib/valloc.c: New file.
19411         * libc/stdlib/malloc.h: Remove.
19412         * libc/stdlib/callocr.c: Remove.
19413         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
19414         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
19415         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
19416         reallocr.o, valloc.o, vallocr.o.
19417         (CHEWOUT_FILES): Add mlock.def, mstats.def.
19418         (MALLOC_CFLAGS): New variable.
19419         (mallocr.o): New target, build from mallocr.c.
19420         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
19421         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
19422         (msizer.o, malloptr.o): Likewise.
19423         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
19424         (valloc.o): New target.
19425         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
19426         * libc/include/malloc.h: Declare struct mallinfo, and new
19427         routines.
19428         * libc/include/stdlib.h (cfree): Correct declaration.
19429
19430 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
19431
19432         * libc/include/machine/setjmp.h: Add support for Thumb target.
19433
19434         * libc/include/machine/ieeefp.h: Add support for Thumb target.
19435
19436         * configure.in (links): Add support for Thumb target.
19437
19438 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
19439
19440         * libc/sys/arm/setjmp.S: Updated with version from branch.
19441
19442 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
19443
19444         * libc/include/stdio.h: add POSIX-required define L_ctermid
19445         for ctermid
19446
19447 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
19448
19449         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
19450         addition to MISSING_SYSCALL_NAMES.
19451
19452 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
19453
19454         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
19455
19456 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
19457
19458         * libc/include/string.h: change strsignal proto to return
19459         a char *.  This eliminates compile problems in gdb resulting
19460         from gdb's definition of strsignal in defs.h.
19461
19462 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
19463
19464         * libc/sys/cygwin32/sys/utime.h: new (moved here from
19465         winsup/include) so as not to conflict with the one in
19466         libc/include.
19467         * libc/include/string.h: add protos for strsignal, strtosigno
19468
19469 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
19470
19471         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
19472
19473         * configure.in (d30v-*-*): Add configuration.
19474
19475 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
19476
19477         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
19478         to select which kind of debug monitor is in use for an ARM target.
19479
19480         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
19481         Angel and Demon debug monitors.  Part of this code was supplied by
19482         Tony Thompson at ARM: athompso@arm.com.
19483
19484 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
19485
19486         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
19487         semantics when the count is greater than the length of the second
19488         source string.
19489
19490 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
19491
19492         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
19493         * libc/include/sys/unistd.h: add protos for usleep, truncate,
19494         truncate and ftruncate take off_t, not size_t
19495
19496 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
19497
19498         * libc/string/strcat.c (strcat): Add missing comment end.
19499         * libc/string/strncat.c (strncat): Likewise.
19500
19501 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
19502
19503         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
19504         targets.
19505         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
19506         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
19507         defined.
19508         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
19509         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
19510         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
19511
19512 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
19513
19514         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
19515         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
19516
19517 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
19518
19519         * libc/machine/i386/setjmp.S: New file.
19520         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
19521         (OFILES): Add setjmp.o.
19522         (setjmp.o): Add rule for.
19523         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
19524
19525 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
19526                          Jeffrey A Law  (law@cygnus.com)
19527
19528         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
19529         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
19530         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
19531         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
19532
19533 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
19534
19535         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
19536         rules.
19537
19538         * libc/include/sys/config.h: Use __v850 to select v850
19539         endianness.
19540
19541         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
19542         buffer size.
19543
19544         * libc/include/machine/ieeefp.h: Use __v850 to select v850
19545         endianness.
19546
19547 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
19548
19549         * libc/stdlib/setenv.c: change unsetenv definition to match
19550         style of setenv (with _DEFUN).  The string should be a const.
19551         * libc/include/stdlib.h: unsetenv proto should return void.
19552
19553 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
19554
19555         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
19556
19557 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
19558
19559         * libc/stdio/glue.h: remove.
19560         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
19561         * libc/stdio/Makefile.in: remove glue.h dependencies
19562
19563 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
19564
19565         * libc/sys/sysnecv850/crt0.S: Created V850e version.
19566
19567 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
19568
19569         * configure.in (target_cpu): Add `arc'.
19570
19571 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
19572
19573         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
19574           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
19575         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
19576         * newlib/libc/reent/reent.c: Add _wrapup_reent.
19577         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
19578
19579 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
19580
19581         * libc/machine/mips/setjmp.S: Handle mips16 builds.
19582
19583 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
19584
19585         * libc/include/stdio.h (siprintf): Declare.
19586
19587 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
19588
19589         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
19590         TARGET_CFLAGS and NEWLIB_FLAGS.
19591
19592 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
19593
19594         * configure.in (links): Add support for v850ea target.
19595
19596 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
19597
19598         * configure.in (links): Add support for v850e target.
19599
19600 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
19601
19602         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
19603
19604 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
19605
19606         * configure.in (arc-*-*): Add support for.
19607         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
19608
19609 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
19610
19611         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
19612
19613 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
19614
19615         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
19616         comparison which accesses invalid memory when the key is
19617         larger than the last member of the array.
19618         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
19619         for CYGWIN32
19620         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
19621
19622 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
19623
19624         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
19625         not _STRICT_ANSI.
19626
19627 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
19628
19629         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
19630         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
19631
19632 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
19633
19634         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
19635         to load/store memory.
19636
19637 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
19638
19639         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
19640         underscores if _WIN32.
19641
19642 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
19643
19644         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
19645         support ifdef _USE_WRITE missed in last change.
19646         From Anders Blomdell <anders.blomdell@control.lth.se>.
19647
19648 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
19649
19650         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
19651         (_tmpnam_r, _tempnam_r): Update.
19652
19653 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
19654
19655         * libc/machine/sparc/setjmp.S: New file.
19656         * libc/machine/sparc/Makefile.in: Add setjmp.
19657         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
19658
19659 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
19660
19661         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
19662
19663 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
19664
19665         From Joel Sherrill <joel@oarcorp.com>.
19666         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
19667
19668         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
19669         * configure.in: Recognize *-*-rtems*.
19670         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
19671         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
19672         time.h,times.h,types.h}: New files.
19673         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
19674
19675 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
19676
19677         patch from sos@prospect.com.ru (Sergey Okhapkin):
19678         * include/sys/wait.h: correct operator precidence bug
19679         in WIFSIGNALED
19680
19681 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
19682
19683         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
19684         with newlib's unsetenv function
19685         * libc/sys/cygwin32/sys: new directory for includes
19686         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
19687         here from winsup/include/sys
19688
19689 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
19690
19691         * libc/include/sys/unistd.h: _exit should only be
19692         labelled noreturn when not __CYGWIN32__
19693         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
19694         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
19695         increment NSIG
19696
19697 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
19698
19699         * libc/include/sys/time.h: Only define timeval and timezone if
19700         _GNU_H_WINDOWS32_SOCKETS is not defined.
19701         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
19702
19703 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
19704
19705         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
19706         * libc/machine/mn10300/setjmp.S: Likewise.
19707
19708         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
19709         the mn10300 (more relaxing opportunities).
19710
19711 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
19712
19713         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
19714         Build libraries with -mstrict-align.
19715
19716 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
19717
19718         * libc/string/strlwr.c: New file.
19719         * libc/string/strupr.c: New file.
19720         * libc/include/string.h: Declare strlwr and strupr.
19721         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
19722         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
19723         (strlwr.o, strupr.o): New targets.
19724         * libc/string/strings.tex: Include strlwr and strupr docs.
19725
19726         * libc/include/sys/types.h: Don't define u_char, et. al., if
19727         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
19728         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
19729         _types_fd_set rather than fd_set, and define fd_set as a macro.
19730
19731         * libc/include/malloc.h: New file.
19732
19733         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
19734         strnicmp if they are not already defined.
19735
19736         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
19737         _timezone, _daylight, and _tzname.
19738
19739 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
19740
19741         * configure.in: Sort all configuration tables.
19742
19743         From Joel Sherrill <joel@oarcorp.com>
19744         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
19745
19746 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
19747
19748         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
19749         use int when declaring kill.
19750
19751         * libc/include/sys/timeb.h: New file.
19752
19753 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
19754
19755         * libc/include/sys/time.h: add itimer support for Cygwin32
19756
19757 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
19758
19759         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
19760         out a message that abort was called to stderr.
19761
19762 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
19763
19764         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
19765         so that libio doesn't freak.
19766
19767         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
19768         int.
19769
19770         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
19771         memory sizes, not int.
19772
19773 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
19774
19775         * libm/math/ef_hypot.c: Use long constants where
19776         appropriate.
19777         * libm/math/ef_sqrt.c: Ditto.
19778
19779         * libc/sys/sysmec/times.c(_times): Change to times.
19780
19781         * libc/sys/sysmec/read.c(_read): The third argument is
19782         size_t.
19783         * libc/sys/sysmec/write.c (_write): Ditto.
19784
19785         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
19786         (_lseek): It's off_t for the second argument.
19787
19788 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
19789
19790         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
19791         as well as machine/ieeefp.h.
19792
19793 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
19794
19795         * libc/include/sys/signal.h: add signal protos for winsup
19796         functions (when __CYGWIN32__), include types.h
19797         * libc/include/sys/types.h: Change __go32_types__ internal
19798         define to __MS_types__ since it's used for more than just
19799         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
19800         defined.
19801         * libc/include/sys/unistd.h: add ftruncate proto for
19802         winsup functions (when __CYGWIN32__)
19803
19804 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
19805
19806         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
19807
19808 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
19809
19810         * libc/include/machine/setjmp.h: Add tic80 support.
19811         * libc/machine/tic80/setjmp.S: Likewise.
19812
19813 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
19814
19815         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
19816         link programs from libraries only (such as in the X11
19817         distribution)
19818
19819 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
19820
19821         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
19822         supplied elsewhere in newlib.
19823
19824 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
19825
19826         * Makefile.in (INSTALL): Change install.sh to install-sh.
19827
19828 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
19829
19830         * README: update WWW address for on-line documentation.
19831
19832 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
19833
19834         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
19835         increment NSIG
19836
19837 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
19838
19839         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
19840         mn10300.
19841         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
19842
19843 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
19844
19845         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
19846         * libc/sys/d10v/syscalls.c: Likewise.
19847         * libc/sys/h8300hms/sbrk.c: Likewise.
19848         * libc/sys/h8500hms/syscalls.c: Likewise.
19849         * libc/sys/m88kbug/syscalls.c: Likewise.
19850         * libc/sys/sh/syscalls.c: Likewise.
19851         * libc/sys/sysmec/sbrk.c: Likewise.
19852         * libc/sys/sysnecv850/sbrk.c: Likewise.
19853         * libc/sys/w65/syscalls.c: Likewise.
19854         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
19855
19856 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
19857
19858         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
19859         emulated syscall instead of "trap".
19860
19861 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
19862
19863         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
19864         not trap 0.
19865
19866 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
19867
19868         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
19869
19870 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
19871
19872         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
19873         not "sh".
19874         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
19875         not "d10v".
19876         * libc/sys/tic80/crt0.c: New file for TIc80.
19877         * libc/sys/tic80/Makefile.in: New file for TIc80.
19878         * libc/machine/tic80/Makefile.in: New file for TIc80.
19879
19880 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
19881
19882         * libc/machine/sh/memcpy.S: New file.
19883         * libc/machine/sh/memset.S: New file.
19884         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
19885
19886 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
19887
19888         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
19889         for TIc80.
19890
19891 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
19892
19893         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
19894         the mn10200.
19895
19896 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
19897
19898         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
19899         (patch from andrew@pogo.WV.TEK.COM).
19900
19901 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
19902
19903         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
19904         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
19905
19906 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
19907
19908         * configure.in:  Add cases for "tic80" to set machine_dir,
19909         sys_dir, and syscall_dir.
19910
19911 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
19912
19913         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
19914
19915 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
19916
19917         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
19918
19919 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
19920
19921         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
19922         Use proper constant prefix.
19923
19924 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
19925
19926         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
19927         that loses on the mn10200 where ints and pointers are different
19928         sizes.
19929
19930 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
19931
19932         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
19933         target as signal is provided in winsup.
19934
19935 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
19936
19937         * libc/include/sys/process.h: Corrected const definitions
19938         in spawn functions. Added cwait.
19939
19940 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
19941
19942         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
19943         doubles.
19944         * libc/include/sys/config.h: Similarly.
19945
19946 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19947
19948         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
19949         target_cflags.
19950         (i[3456]86-*-sco*): Ditto.
19951
19952         * libc/signal/Makefile.in (OFILES): Add signal.o.
19953         (CFILES): Add signal.c.
19954
19955         * libc/signal/raise.c (_raise_r): Only compile code if
19956         SIGNAL_PROVIDED is defined.
19957
19958         * libc/signal/signal.c: Redo whole file so that it works with
19959         current newlib.  Use _kill_r if no signal handler provided.
19960
19961         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
19962         signal stubs.
19963         * libc/sys/sysvnecv70/Makefile.in: Ditto.
19964         * libc/sys/sysnecv850/Makefile.in: Ditto.
19965
19966         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
19967         * libc/sys/sysmec/{raise,signal}.c: Ditto.
19968         * libc/sys/sysvnecv70/signal.s: Ditto.
19969         * libc/sys/sysnecv850/raise.c: Ditto.
19970
19971         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
19972         simulator and debugger can tell the difference between a signal
19973         being raised and an exit system call.
19974
19975         * NEWS: Document software signals being provided.
19976
19977 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19978
19979         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
19980         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
19981         include/sys/config.h.
19982         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
19983         Change from 'inpure_data'.
19984         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
19985         &impure_data, not &inpure_data.
19986
19987         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
19988         and and System V ABI, define so that _impure_ptr lives in the
19989         .sdata section.
19990
19991 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19992
19993         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
19994         nothing if not defined.
19995         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
19996         its attributes.
19997
19998         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
19999
20000 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
20001
20002         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
20003         * libc/sys/sysmec/trap.s: Handle mn10200 too.
20004         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
20005
20006 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
20007
20008         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
20009
20010 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
20011
20012         * libc/include/sys/errno.h: Added net errno's.
20013
20014 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20015
20016         * libc/misc/ffs.c: New file to support ffs function for GCC test
20017         gcc.c-torture/execute/960909-1.c.
20018
20019         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
20020
20021 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
20022
20023         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
20024         * libc/sys/sysmec/trap.S: Likewise.
20025
20026 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
20027
20028         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
20029         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
20030
20031 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
20032
20033         * libc/sys/sysmec/signal.c: Dummy file.
20034         * libc/sys/sysmec/Makefile.in: Build it.
20035
20036 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
20037
20038         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
20039         mips16.
20040
20041 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
20042
20043         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
20044         c-startup and simulator traps.
20045
20046
20047         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
20048         * libc/sys/sysmec/trap0.S: Likewise.
20049
20050 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20051
20052         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
20053         round to double word alignment.
20054         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
20055         byte alignment.
20056
20057         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
20058
20059         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
20060         out of memory.
20061
20062 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
20063
20064         * configure.in: Handle mn10200 and mn10300.
20065         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
20066         * libc/include/sys/config.h: Likewise.
20067         * libc/sys/sysmec: New directory for mec stuff.
20068         * libc/machine/mn10300: New directory for mn10300 stuff.
20069         * libc/machine/mn10200: Similarly for mn10200 stuff.
20070
20071 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
20072
20073         * libc/sys/arm/crt0.S: Use .text, not .section .text.
20074         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
20075
20076         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
20077         (nlink_t): Change type from unsigned int to unsigned short.
20078         (mode_t): Ensure size is 32 bits even if int is 16.
20079         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
20080         (st_spare[123]): Change type from int to long.
20081
20082 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20083
20084         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
20085         byte boundary.
20086
20087         * configure.in (d10v*): Define SMALL_MEMORY.
20088
20089 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20090
20091         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
20092         -mrelocatable-lib and -mno-eabi flags.
20093
20094 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
20095
20096         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
20097         Fix handling of mis-aligned source operand when both the
20098         destination & length are properly aligned.
20099
20100 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
20101
20102         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
20103         times.o, time.o and gettime.o
20104         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
20105         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
20106         SYS_gettimeofday.
20107
20108 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
20109
20110         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
20111         * libc/sys/sysnecv850/access.c: New file.
20112
20113 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
20114
20115         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
20116
20117         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
20118         long.
20119
20120 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
20121
20122         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
20123
20124 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
20125
20126         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
20127         * libc/include/sys/config.h: Add m32r support.
20128
20129 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
20130
20131         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
20132         here.
20133
20134 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
20135
20136         * libc/include/machine/setjmp.h: Add D10v support.
20137
20138 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
20139
20140         * configure.in: Configure the "libc/syscalls" directory for
20141         the v850.
20142
20143         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
20144         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
20145         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
20146         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
20147         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
20148
20149 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
20150
20151         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
20152         stack for args for main and other routines.  Zero out args for
20153         main.
20154
20155         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
20156         correctly.
20157
20158 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20159
20160         * libc/stdio/findfp.c (std): Remove extraneous ';' after
20161         function.
20162
20163         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
20164
20165         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
20166         real system calls now.
20167
20168         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
20169         before casting them to int.
20170         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
20171
20172         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
20173         aligning pointer.
20174         * libc/string/memset.c (memset): Ditto.
20175
20176         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
20177         first convert ints to _POINTER_INT to eliminate GCC warning.
20178
20179         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
20180         processing %p.
20181
20182         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
20183         from 65000 if ints are only 16 bits.
20184
20185         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
20186         from 50000 if ints are only 16 bits.
20187
20188         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
20189         int type that is the same size as a pointer.
20190
20191         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
20192         processing %p.
20193         (get_number): Explicitly cast number to long before shifting by 16
20194         or 24, in case ints are short.
20195
20196         * libc/include/sys/config.h (_POINTER_INT): Define as short.
20197
20198 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
20199
20200         * libc/string.h: Added ffs, removed swab.
20201         * libc/sys/errno.h: Added EOPNOTSUPP.
20202         * libc/sys/unistd.h: Added swab.
20203
20204 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
20205
20206         * libc/include/sys/stat.h: Added fchmod.
20207         * libc/include/sys/unistd.h: Added fsync.
20208
20209 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
20210
20211         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
20212         and ECONNRESET (104) for cygwin32.
20213
20214 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
20215
20216         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
20217         do the static destructors.
20218
20219 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
20220
20221         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
20222
20223 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
20224
20225         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
20226         * configure.in: Recognize m32r-*-*.
20227
20228 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
20229
20230         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
20231         __rt_stkovf_split_small): Added default software stack overflow
20232         handlers, which just call SWI_Exit.
20233         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
20234         limit initialisation.
20235
20236 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
20237
20238         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
20239
20240 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
20241
20242         * libc/include/sys/types.h: Added ssize_t definition.
20243
20244 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20245
20246         * libc/machine/d10v/setjmp.S: Use ';' for comments.
20247         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
20248
20249         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
20250         branch around a single ldi instruction.
20251
20252         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
20253         Call exit, instead of just issuing a stop instruction.
20254
20255 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20256
20257         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
20258
20259 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20260
20261         * libc/stdlib/mprec.h: Explicitly declare all large constants as
20262         longs, and then cast them to __uint32_t.
20263
20264         * libc/include/sys/config.h: Protect against multiple inclusions.
20265
20266 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
20267
20268         * configure.in (d10v*): Set syscall_dir.
20269
20270 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
20271
20272         * libc/sys/d10v/crt0.S: Set stack pointer.
20273
20274 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
20275
20276         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
20277         in assembly for efficiency.  Change calling convention to allow
20278         long ints to be returned.
20279
20280 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20281
20282         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
20283
20284 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
20285
20286         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
20287         Handle empty entries in $PATH.
20288
20289 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
20290
20291         * libc/machine/d10v/setjmp.S: Make it really work.
20292
20293 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
20294
20295         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
20296         the .stack section.
20297
20298 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
20299
20300         * sys/sysnecv850/sys/file.h: Remove.
20301         * sys/sysnecv850/sys/syscall.h: New file.
20302         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
20303         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
20304         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
20305         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
20306         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
20307         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
20308         * sys/sysnec850/trap.S: New file.
20309         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
20310         syscalls.
20311         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
20312         * sys/sysnec850/sbrk.c: New version.
20313
20314 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
20315
20316         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
20317         as long as r6 is less than r7.
20318
20319 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
20320
20321         * Makefile.in (mostlyclean): Separate from clean target.  Don't
20322         remove *.a or targ-include.
20323         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
20324
20325 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20326
20327         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
20328         d10v.
20329         (__SMALL_BITFIELDS): Ditto.
20330
20331         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
20332
20333 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
20334
20335         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
20336         prefix.
20337
20338         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
20339         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
20340         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
20341         * libc/sys/sysnecv850/write.c (write): Likewise.
20342
20343         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
20344         .bss.
20345
20346 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20347
20348         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
20349         appropriately for D10V, depending on -mint16/-mint32.
20350
20351 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
20352
20353         * configure.in: Add cases for D10V.
20354
20355 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20356
20357         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
20358
20359 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
20360
20361         * libc/include/machine/ieeefp.h: Fix typo.
20362
20363 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
20364
20365         * libc/sys/d10v: New directory for D10V stuff.
20366         * libc/include/machine/ieeefp.h: Add D10V defines.
20367
20368 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
20369
20370         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
20371         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
20372         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
20373         * libc/string/strerror.c (strerror): Add them.
20374
20375 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
20376
20377         * libc/sys/sysnecv850: New directory for v850 stuff.
20378
20379         * libc/machine/v850: New directory for v850 stuff.
20380         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
20381
20382         * configure.in: Add support for the v850.
20383
20384         * libc/include/machine/ieeefp.h: Add v850 defines.
20385         * libc/include/machine/setjmp.h: Likewise.
20386         * libc/include/sys/config.h: Add v850 defines.
20387
20388 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
20389
20390         * libc/include/machine/ieeefp.h
20391         * libc/include/machine/setjmp.h
20392         * libc/include/sys/fcntl.h
20393         * libc/include/sys/signal.h
20394         * libc/include/sys/types.h
20395         * libc/stdlib/system.c:
20396         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
20397         API availability, __CYGWIN32__ for cygwin32 environment specific).
20398
20399 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
20400
20401         * libc/include/stdlib.h: add multibyte character functions.  Add
20402         __eprintf for assert.
20403
20404 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20405
20406         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
20407         arithmetic or __alignof__ to properly get the alignment, instead
20408         of hardwiring it to 4.
20409
20410 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
20411
20412         * libc/stdio/fseek.c: add fflush call to adjust seek offset
20413         on append stream (fix from NetBSD sources), adjust curoff offset
20414         for ungetc's benefit.
20415         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
20416         * libc/stdio/rewind.c: replace code with up to date NetBSD
20417         code to undo hacks made to work around above problem of not
20418         having fflush call mentioned above
20419
20420 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
20421
20422         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
20423         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
20424         Partially revert last changes.  The thread specific errno is set
20425         iff if the underlying syscall fails and the global errno is not
20426         zero.
20427
20428 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
20429
20430         * libc/reent/filer.c: Removed files, all functions have split out
20431         into their own files.
20432         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
20433         New files containing functions formally in filer.c
20434         * libc/reent/Makefile.in: Updated for above change.
20435
20436         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
20437         syscall fails, not if errno is changed.
20438         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
20439         _write_r): Likewise.
20440         * libc/reent/fstatr.c (_fstat_r): Likewise.
20441         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
20442         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
20443         * libc/reent/signalr.c (_kill_r): Likewise.
20444         * libc/reent/statr.c (_stat_r): Likewise.
20445         * libc/reent/timer.c (_gettimeofday_r): Likewise.
20446
20447         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
20448         signalr.c, statr.c, timer.c} (errno): declare extern rather
20449         than as a common.
20450
20451         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
20452         instead of calling vfprintf so that i*printf will not require
20453         floating point support code.
20454
20455 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
20456
20457         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
20458         path delimiter.
20459         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
20460         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
20461
20462 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
20463
20464         * libc/include/signal.h: _sig_func_ptr function takes an int
20465         * libc/include/sys/signal.h: sa_handler function takes an int
20466
20467 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
20468
20469         * libc/include/machine/ieeefp.h: Simplify H8/S support.
20470         * libc/include/sys/config.h: Add missing H8/S conditional.
20471
20472 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
20473
20474         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
20475
20476 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
20477
20478         * libc/include/machine/setjmp.h: Handle H8/S.
20479         * libc/include/machine/ieeefp.h: Likewise.
20480         * libc/include/sys/config.h: Likewise.
20481         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
20482         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
20483         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
20484         * libc/sys/h8300hms/crt0.S: Likewise.
20485
20486 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
20487
20488         * Makefile.in (datadir): Set to $(prefix)/share.
20489         (oldincludedir, docdir): Removed.
20490         * doc/Makefile.in (datadir): Set to $(prefix)/share.
20491         (oldincludedir, docdir): Removed.
20492         * libc/Makefile.in (datadir): Set to $(prefix)/share.
20493         (oldincludedir, docdir): Removed.
20494         * libm/Makefile.in (datadir): Set to $(prefix)/share.
20495         (oldincludedir, docdir): Removed.
20496
20497 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
20498
20499         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
20500         _reent struct.
20501
20502 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
20503
20504         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
20505         fetch current path rules with sysconf and handler posix/win32
20506         appropriately.
20507
20508         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
20509
20510         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
20511         (WAIT_CHILD): Always define.
20512
20513 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
20514
20515         * libc/stdlib/eprintf.c: New file.
20516         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
20517         (eprintf.o): New target.
20518
20519 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
20520
20521         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
20522         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
20523
20524 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
20525
20526         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
20527         NT in PowerPC endianess cases.
20528
20529 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20530
20531         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
20532
20533 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20534
20535         * libc/string/strtok.c: Fix doc typo.
20536
20537 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
20538
20539         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
20540         _next, _scanpoint, _signgam fields.
20541
20542         * libc/include/stdlib.h (rand_r): Added new declaration.
20543         (_rand_r, _srand_r): Removed declarations.
20544         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
20545         have been made obsolete by rand_r.
20546         * libc/stdlib/rand_r.c: New file, rand_r function as specified
20547         by POSIX.1c.
20548
20549         * libc/string/strtok.c: Update documentation to describe
20550         strtok_r().
20551
20552 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
20553
20554         * libc/include/sys/stat.h (stat structure): Use the expanded stat
20555         structure on Solaris, and PowerPC systems even though __svr4__ is
20556         defined.
20557
20558 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
20559
20560         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
20561
20562 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
20563
20564         * host/any: Use ../.. rather than .. to get to the main build
20565         directory.  This matches the current layout of the build
20566         directory.
20567
20568 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
20569
20570         * libc/machine/h8300/__main.S: Delete.  No longer needed.
20571         * libc/machine/h8300/Makefile.in: Corresponding changes.
20572         * libc/sys/h8300hms/crt1.c: New file.
20573         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
20574         * libc/sys/h8300hms/crt0.s: Call __main.
20575
20576         * libc/sys/h8300hms/crt0.S: Use temporary label names
20577         for branch targets.
20578
20579 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
20580
20581         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
20582
20583 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20584
20585         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
20586         .sdata on the PowerPC so that we can link newlib with code
20587         compiled with -msdata.
20588
20589 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
20590
20591         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
20592
20593 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
20594
20595         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
20596         exception handler to __cygwin_exception_handler.
20597
20598 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
20599
20600         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
20601
20602 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
20603
20604         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
20605         SunOS VPATH.
20606         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
20607         wcstombs.o): Likewise.
20608
20609 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
20610
20611         * libc/stdlib/environ.c (initial_env): New static local.
20612         (environ): Point to `initial_env'.
20613
20614         * libc/include/machine/setjmp.h: Clean up.
20615         (__H8300H__,__PPC__): Define _JBTYPE.
20616         (__arm__): Provide entry for.
20617         (sigjmp_buf): Delete.
20618         (jmp_buf): Use _JBTYPE if defined, otherwise int.
20619
20620 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
20621
20622         * libc/machine/h8300/strcmp.S: Sign extend the result to
20623         32bits so we don't lose with -mint32.
20624
20625 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
20626
20627         * libc/sys/go32/sys/errno.h: New file.
20628         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
20629         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
20630         errno's address (make compatible with rest of newlib).
20631         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
20632         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
20633
20634 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
20635
20636         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
20637         * libc/machine/sparc/Makefile.in: Build them.
20638         * libc/machine/sparc/machine/sparclet.h: New file.
20639
20640 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
20641
20642         * libc/machine/sh/asm.h: New file.
20643         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
20644         support for SH3e's FP registers.  Use asm.h.
20645
20646 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
20647
20648         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
20649         as first argument.  Call _dtoa_r and pass the reent structure
20650         instead of calling __dtoa.
20651
20652 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
20653
20654         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
20655         the h8300, h8500, and others.  Add comments for some rather
20656         dubious code.
20657
20658 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
20659
20660         * Makefile.in (check): Check that testsuite exists before cd.
20661
20662 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20663
20664         * libc/include/string.h (strsep): Correct prototype.
20665
20666 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
20667
20668         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
20669         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
20670         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
20671
20672 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
20673
20674         * libc/posix/{creat.c,isatty.c}: New files.
20675         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
20676
20677         * libc/sys/sparc64/crt0.S (environ): Delete.
20678         (.LHaveBias): Renamed from HaveBias.
20679
20680 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
20681
20682         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
20683         (_morecore_r): Delete SBRK_IS_ALLOC support.
20684
20685 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20686
20687         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
20688         module rather than touch, so we don't get warning messages when
20689         all of the libraries are combined into libc.a.
20690
20691 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
20692
20693         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
20694         crt0.s replaced by version in libgloss.
20695
20696 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
20697
20698         * libc/reent/Makefile.in (OFILES): Add impure.o.
20699         * libc/reent/impure.o: New file, define initial reentrancy struct.
20700         * libc/reent/reent.c: Remove above definition.
20701
20702         * libm/math/sf_asinh.c: Fix typo.
20703
20704         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
20705         srf_ldexp.o.
20706
20707         * libm/libm.texinfo: Change documentation to reflect changes
20708         in reentrancy model.
20709         * libm/math/w_gamma.c: Likewise.
20710
20711 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
20712
20713         * configure.in (*-*-cygwin32): New.
20714         (*-*-win32): Deleted.
20715         * libc/sys/win32 renamed libc/sys/cygwin32.
20716
20717 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20718
20719         * libc/include/sys/file.h: New include file.
20720
20721 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
20722
20723         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
20724
20725 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
20726
20727         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
20728
20729 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20730
20731         * doc/makedoc.c (realloc): Declare at file scope.
20732         (catchar): Not here.
20733
20734 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
20735
20736         * Makefile.in (VERSION): Update to 1.7.0.
20737         * {libc,libm}/Makefile.in (VERSION): Likewise.
20738         * configure.in: Minor clean up of multilib stuff.
20739
20740         From David Johnson <davidj@ICSI.Berkeley.EDU>
20741         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
20742
20743         * libc/stdlib/environ.c: New file.
20744         * libc/stdlib/Makefile.in (OFILES): Build it.
20745         * libc/sys/h8500hms/crt0.c (environ): Deleted.
20746         * libc/sys/m88kbug/crt0.c (environ): Deleted.
20747         * libc/sys/z8ksim/crt0.c (environ): Deleted.
20748         * libc/sys/netware/environ.c: Deleted.
20749
20750 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
20751
20752         * configure.in (links): set sys_dir, posix_dir, syscall_dir
20753
20754 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
20755
20756         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
20757         declaration out to external scope and declare it PTR, not char *.
20758
20759 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
20760
20761         * libc/include/sys/unistd.h (getpagesize): New declaration.
20762         (_SC_PAGESIZE): New definition.
20763         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
20764         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
20765
20766 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
20767
20768         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
20769         addressing. System call returns size, not (last address + 1).
20770
20771 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20772
20773         * libm/math/*.c: Removed _foo_r() reentrancy API.
20774         * libc/include/math.h: Removed _foo_r prototypes and macros.
20775
20776         * libm/math/*.c: On systems with IEEE single precision "doubles"
20777         move foo() -> foof() wrapper code from the files that implement
20778         the standard IEEE double precision functions to the files that
20779         implement IEEE single precision functions. (ie. On those systems
20780         sin is moved from s_sin.c to sf_sin.c).  There should eventually
20781         be use of a C extension (like gcc's alias attribute) so that the
20782         wrappers are not needed at all.
20783
20784         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
20785         strict NEC V810 compiler.
20786         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
20787         for same reason.
20788
20789 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20790
20791         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
20792         from NetBSD C library.
20793         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
20794
20795         * libc/stdlib/assert.c (__assert): Renamed from __assertfail
20796         and adapted from implementation I wrote for NetBSD C library.
20797         The difference is __assert doesn't take a format argument,
20798         so that there won't be multiple copies of the same string
20799         constant in the executable if assertions are enabled in
20800         more than one source module.
20801         * libc/include/assert.h (assert): Changed to call __assert.
20802
20803 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20804
20805         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
20806         word1 on systems with 32 bit doubles.
20807         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
20808         so that we can do arithmetic on them.
20809         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
20810         compilers.
20811
20812 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
20813
20814         * libc/sys/arm/crt0.S: Zero bss.
20815
20816 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
20817
20818         * libc/include/unctrl.h: New file.
20819         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
20820         * configure.in (subdirs): Add libc/misc.
20821         * libc/Makefile.in (SUBDIRS): Add misc.
20822         (SUBLIBS): Add misc/lib.a.
20823
20824         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
20825
20826 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
20827
20828         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
20829         (_vfprintf_r): Call CHECK_INIT.
20830
20831 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
20832
20833         * Makefile.in (MULTITOP): Delete.
20834         (MULTISRCTOP, MULTIBUILDTOP): Add.
20835         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
20836         instead of cfg-ml-pos.in.
20837
20838 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
20839
20840         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
20841         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
20842         presence.
20843
20844 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
20845
20846         * libc/string/strtok.c: Include string.h to pick up strtok_r
20847         prototype.
20848
20849 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
20850
20851         * libc/string/strtok.c: include <_ansi.h>.
20852         * libc/time/asctime_r.c: `reresult' -> `result'.
20853
20854 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20855
20856         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
20857         in #ifndef _REENT_ONLY ... #endif conditional.
20858
20859         * libc/include/string.h (_strtok_r): Remove declaration.
20860         * libc/include/time.h (_asctime_r): Remove declaration.
20861         * libc/string/strtok.c (_strtok_r): Removed.
20862         * libc/time/asctime.c (_asctime_r): Removed.
20863
20864         * libc/string/Makefile.in (OFILES): Add new object.
20865         * libc/string/strtok_r.c: New file.  strtok_r function as
20866         specified by POSIX.1c, adapted from strtok implementation
20867         from NetBSD C library.
20868         * libc/string/strtok.c (strtok): Reimplemented in terms of
20869         strtok_r.
20870
20871         * libc/time/Makefile.in (OFILES): Add new objects.
20872         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
20873         New files, reentrant time functions specified by POSIX.1c.
20874         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
20875         reentrant time functions re-written in terms of reentrant
20876         functions.
20877         * libc/time/lcltime.c: Renamed from localtime.c
20878
20879         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
20880         gmtime_r, and localtime_r.
20881
20882 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
20883
20884         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
20885         * libc/include/sys/unistd.h (getlogin): Revert change of
20886         Oct 19.
20887         * libc/include/sys/signal.h (sigprocmask): Change prototype
20888         so it compiles with c++.
20889
20890 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
20891
20892         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
20893         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
20894         to give some room in case we need to align the jmp_buf.
20895
20896         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
20897         the new ppc-asm.h include file the compiler provides to specify
20898         function prologue/epilogue.  Eliminate saves of the xer and ctr
20899         registers, which are volatile.  Before starting to save registers,
20900         align to 8 byte boundary.
20901
20902 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
20903
20904         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
20905         referenced by standard libraries.
20906
20907 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
20908
20909         * libc/unix/Makefile.in, libc/string/Makefile.in,
20910         libc/stdio/Makefile.in, libc/reent/Makefile.in,
20911         libc/posix/Makefile.in:
20912         Remove tabs from otherwise empty line.  Confuses some
20913         older non-GNU versions of "make".
20914
20915 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
20916
20917         * libc/sys/unistd.h (getlogin): Returns const char *.
20918
20919 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
20920
20921         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
20922         * libc/include/errno.h: Moved into and include...
20923         * libc/include/sys/errno.h: New file.
20924         * libc/include/sys/wait.h: New file.
20925         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
20926         * libc/sys/win32/*: Moved out.
20927         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
20928         * configure.in (i[345]86-*-win32): HAVE_RENAME
20929
20930 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
20931
20932         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
20933         avoid macro expansion for these two names.
20934
20935 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
20936
20937         * libc/machine/h8500/psi.S: r6 renamed to fp.
20938
20939 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
20940
20941         * configure.in (powerpc*): No longer need to define
20942         NO_LONGLONG_POINTERS to supress warnings.
20943
20944 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
20945
20946         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
20947         through PTR instead of directly.
20948
20949         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
20950         non-standard constructor support.
20951
20952 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20953
20954         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
20955         address of the Bigint instead of the address of its _x field,
20956         as the size the result buffer was calculated accordingly.
20957         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
20958
20959         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
20960         from NetBSD C library.  No longer special cases division by
20961         zero (which needs to be done by the application anyway), but
20962         it doesn't need to call abs() (or labs()) four times either.
20963
20964         * libc/stdlib/qsort.c: Replaced with implementation from
20965         NetBSD C library.
20966
20967 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20968
20969         * libc/stdio/vfprintf.c: Replaced with implementation from
20970         NetBSD C library (which is derived from the 4.4BSD C library).
20971         * libc/stdio/cvt.c: Removed.
20972         * libc/stdio/Makefile: Updated.
20973
20974 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
20975
20976         * libc/sys/win32/syscalls.c (rename): New.
20977         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
20978
20979 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
20980
20981         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
20982         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
20983
20984         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
20985         (setjmp.o): Delete rule to build setjmp.o.
20986         * libc/sys/sh/setjmp.S: Delete file.
20987
20988 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20989
20990         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
20991         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
20992         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
20993         pow5mult and s2b to identifiers with leading underscores.
20994         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
20995         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
20996
20997 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
20998
20999         * libc/sys/posix/popen.c (sys/types.h): Include.
21000
21001 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
21002
21003         * libc/sys/win32/syscalls.h (fhandler): New struct.
21004         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
21005         (__fhandler_normal): Declare.
21006         (hinfo): New member op_handlers.
21007         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
21008         (__write): Likewise.
21009         (_read, _write, _open, _close, _lseek): Validate fd here.
21010         Move file type specific stuff to foo_normal.
21011         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
21012         New functions.
21013         (__lookup_fhandler): New function.
21014         (__lookup_fhandler_hook, __fhandler_normal): New variables.
21015
21016         From anders.blomdell@control.lth.se (Anders Blomdell)
21017         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
21018         Don't touch standard handles.
21019         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
21020         (_execve): Only create __FD_TABLE__ if necessary.
21021         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
21022
21023 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
21024
21025         * libc/sys/win32/sys/termios.h (FLUSHO): New.
21026         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
21027         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
21028         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
21029         without a handler is received.
21030         * libc/sys/win32/Makefile.in: Remove --nodelete.
21031         * libc/sys/win32/resouce.c (gettimeofday): New.
21032         * libc/sys/win32/syscalls.c (path_to_real_path): New.
21033         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
21034
21035 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
21036
21037         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
21038         Don't append "/*" to search pattern if trailing '/' already there,
21039         append "*".
21040         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
21041         like /'s, convert them to \'s.  Handle //<drive>/ path names.
21042         Add space for quoted \'s in arg string.  Print translated prog name
21043         and original prog name.
21044         (_execve): Handle parent doing exec a teensy bit better.
21045         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
21046         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
21047         path needs conversion, handle both cases.  Delete `const' from result.
21048         (hash_path_name): New function.
21049         (_open): Call it.
21050         (_stat): Likewise.  Fill in more fields for directories.
21051         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
21052         (wait_for_any): Fix trace message.
21053         (waitpid): Explicitly test for intpid == 0.
21054
21055         From anders.blomdell@control.lth.se (Anders Blomdell)
21056         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
21057         so `next' is valid.
21058
21059 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
21060
21061         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
21062         complicated.
21063
21064 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
21065
21066         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
21067         at all, not just == 1.
21068         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
21069
21070 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
21071
21072         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
21073         * libc/sys/win32/include/wintypes.h: include <winnt.h>
21074         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
21075         file.
21076
21077 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
21078
21079         * libc/sys/syscalls.c (getcwd): Fix off by one error.
21080
21081         * libc/sys/signal.c (sleep): Fill it in.
21082         * libc/sys/termios.c (tcflush): Use PurgeComm
21083         (tcsetattr): Set some more of the bits.
21084         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
21085
21086 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
21087
21088         * libc/sys/arm/crt0.S (fp): Initialize to 0.
21089         Conditionally include .idata$3 stuff ifdef __pe__.
21090
21091 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
21092
21093         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
21094         * libc/sys/win32/pipe.c (pipe): Ditto.
21095         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
21096         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
21097         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
21098         (tcgetattr): Contents are new.
21099         * libc/sys/win32/include/winkernel.h (DCB): New.
21100         (GetCommState, SetCommState): New.
21101
21102 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
21103
21104         * libc/sys/arm/crt0.S (_start): Define.
21105
21106 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
21107
21108         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
21109         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
21110
21111         * libc/sys/win32/sysconf.c: New
21112         * libc/sys/win32/sys/winadvapi.h: New
21113         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
21114         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
21115         * libc/sys/win32/pipe.c (pipe): Ditto.
21116         * libc/sys/win32/signal.c (_raise): New.
21117         (_kill): Moved from spawn.c
21118         * libc/sys/win32/spawn.c (kill): Moved to signal.c
21119         * libc/sys/win32/syscalls.c (__read): Use new fields.
21120         (_open): Ditto.
21121         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
21122         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
21123         * libc/include/sys/unistd.h (rmdir): Takes const path.
21124         * libc/include/sys/stat.h (mkdir): Takes const path.
21125         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
21126
21127 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
21128
21129         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
21130
21131         Add support for specifying paths as //<drive>/foo/bar.
21132         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
21133         (__path_to_real_path): Declare.
21134         (PATH_TO_REAL_PATH): New macro.
21135         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
21136         (__path_needs_conversion_p, __path_to_real_path): New functions.
21137         (_open): Fix test for error return from CreateFileA.
21138         Handle new path syntax.
21139         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
21140         * libc/sys/win32/dirsearch.c (opendir): Likewise.
21141
21142 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
21143
21144         * libc/sys/win32/include/*.h: Reorganized
21145         * libc/sys/win32/include/WINREADME: New.
21146         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
21147         * libc/sys/win32/*.c: Fix for new include scheme.
21148         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
21149         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
21150         * libc/sys/win32/passwd.c (*): Fix.
21151         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
21152         (_stat): Get directory owner and permissions right.
21153         * libc/sys/win32/syscalls.h (uinfo): New.
21154         * libc/sys/win32/version.def: Remove leading underscores.
21155
21156 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21157
21158         * libc/sys/win32/key.c: include "include/wincon.h".
21159
21160 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
21161
21162         * libc/sys/win32/{key, stubs}.c: New.
21163         * libc/sys/win32/Makefile: Adjust to cope.
21164         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
21165         (environ_init): Change env names to upper case.
21166         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
21167         * libc/sys/win32/passwd.c (*): Fill in the functions.
21168         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
21169         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
21170         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
21171         (_open): Initialze hmap->execable_p too.
21172         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
21173         (_fstat): Fill in permissions.
21174         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
21175
21176 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
21177
21178         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
21179         if defined.
21180         (cfg-ml-pos.in invocation): Likewise.
21181
21182 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21183
21184         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
21185         s_isnan.o and sf_isnan.o.
21186
21187 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
21188
21189         * All Makefile.in files: added maintainer-clean target as a
21190         synonym for realclean.
21191
21192 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
21193
21194         * libc/include/machine/setjmp.h: Add hppa support.
21195         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
21196         support.
21197         * libc/machine/hppa/Makefile.in: Related changes.
21198
21199 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
21200
21201         * configure.in (machine_dir): Don't set for v810-*-*.
21202
21203 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21204
21205         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
21206         conventions correctly.
21207
21208 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
21209
21210         * libc/stdio/puts.c: Update documentation of return value to match
21211         ANSI standard.
21212
21213 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
21214
21215         Fix file descriptor inheritance.
21216         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
21217         (NOT_OPEN_FD): Fix.
21218         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
21219         close-on-exec flag not set.  Initialize child's entire fd table.
21220         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
21221         CHILD_P.
21222         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
21223         if CHILD_P.  Initialize entire hmap entry.
21224         (dup): Only create new handle as inheritable if CHILD_P.
21225         (dup2): Likewise.  Properly initialize hmap entry.
21226
21227         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
21228         _spawn.
21229         (_exit): Use CHILD_P.
21230         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
21231         (_stat): Likewise.
21232
21233 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21234
21235         * libc/sys/win32/crt0.c (passover): fix up the state table.
21236         * libc/posix/popen.c: Added.
21237         * libc/posix/Makefile.in: compile popen.c.
21238
21239 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
21240
21241         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
21242         h8/500 define _DOUBLE_IS_32BITS.
21243
21244 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
21245
21246         Get vfork/exec/spawn/cwait/wait working again.
21247         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
21248         (procinfo): New member vfork_level.
21249         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
21250         (vfork_init_first): Use GetCurrentProcessId to get pid.
21251         Initialize vfork_level.
21252         (vfork_init): Delete __PID__.
21253         (environ_init): New function.  Undo patch of Aug 19, Posix says
21254         environment variables are case sensitive.
21255         (mainCRTStartup): Call it.
21256         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
21257         (my_longjump: Make static.
21258         (_spawn): New argument `h'.  Delete setting of __PID__.
21259         Delete local `idx'.  Look for chars that need quotes, rather than
21260         ones that don't.  Set handle of created process in `h'.
21261         Result is process id if created task.
21262         (allocate_spawn_entry): New function.
21263         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
21264         (_execve): Set __FD_TABLE__ before spawning child.
21265         Scan our fd table when passing fds, not our parent's.
21266         Store handle and pid in procinfo entry.
21267         (vfork0): Ensure strace message always printed.
21268         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
21269         (vfork): Don't clobber result of vfork0.
21270         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
21271         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
21272
21273         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
21274         and `exit_code'.
21275         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
21276         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
21277         adding vfork level to pseudo-pid.
21278         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
21279         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
21280         (_exit): If child, set exit code.
21281         (__vfork_record_death): Only close process handle if valid.
21282         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
21283         didn't exec.
21284         (wait_for_any): Likewise.  Start scan after root entry.
21285
21286 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
21287
21288         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
21289         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
21290         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
21291         of actual file length.
21292
21293         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
21294         * libc/include/paths.h: _PATH_BSHELL added.
21295         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
21296         and STDERR_FILENO.
21297
21298 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
21299
21300         * libc/include/ar.h: Added.
21301         * libc/include/sys/types.h: ino_t goes back to 32-bits.
21302         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
21303         * libc/sys/win32/syscalls.c (_open): compute .namehash based
21304         on filename.
21305         (_fstat): use .namehash for inode number of the fd.
21306
21307 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
21308
21309         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
21310          Change hinfo to __this_procinfo.
21311         * libc/sys/win32/crt0.c: Remove procinfo_list.
21312
21313 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21314
21315         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
21316         win32 environment.
21317
21318 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
21319
21320         * libc/sys/win32/include/grp.h: Removed.
21321         * libc/sys/include/grp.h: Added.
21322         * libc/sys/win32/grp.c: Include <grp.h>.
21323
21324 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
21325
21326         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
21327         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
21328         Defined for all but strict ANSI.
21329         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
21330         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
21331         * libc/signal/signal.c (_signal_r): Changed from using
21332         _MAX_SIGNALS to NSIG.
21333         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
21334          __hmap): Deleted.
21335         (__strace, __vfork_next_pid): New.
21336         (__exe_suffix): Default to 1.
21337         (passover, table): Understand quoted arguments.
21338         (vfork_init_first): New.
21339         (vfork_init): Initialize new process structure.
21340         (mainCRTStartup): Pass environ to main.
21341         * exceptions.c (__sig_mask): New
21342         (ehandler3): Ignore signals in mask.
21343         (really_exit): Remove CHILD_P test.
21344         * pipe.c (pipe, dup, dup2): Use new process and file structure.
21345         * resource.c (getrusage): Ditto.
21346         * signal.c (sigprocmask): New.
21347         * spawn.c (*): Rewritten.
21348         * syscalls.c (*): Use new process and file structure.
21349         (find_unused_handle): New.
21350         * syscalls.h (MAX_HANDLES): Deleted.
21351         (hinfo): Removed child_created_p.
21352         (MAX_CHILDREN): Deleted.
21353         (vfork_jmp_info, procinfo): New.
21354         * wait.c (*): Mostly new.
21355         * sys/strace.h (_STRACE_PARANOID): New.
21356         * sys/param.h: New file.
21357
21358 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21359
21360         * libc/include/sys/stat.h: add S_BLKSIZE.
21361         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
21362         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
21363         types under win32.
21364         (mode_t): add a #else to avoid multiple definitons.
21365
21366         * libc/sys/win32/Makefile.in: add grp.c.
21367         * libc/sys/win32/grp.c: include grp.h correctly.
21368         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
21369         of the st structure with real information.
21370         * libc/sys/win32 (dirent): d_ino is of type ino_t.
21371
21372 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
21373
21374         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
21375         and (maybe) sparc64.
21376         (nlink_t): Provide typedef.
21377
21378 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
21379
21380         * libc/sys/win32/grp.c: New file.
21381         * libc/sys/win32/include/grp.h: New file.
21382
21383 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21384
21385         * libc/include/machine/ieeefp.h: Added whitespace to make this
21386         file easier to maintain.
21387         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
21388         depending on the value of __LITTLE_ENDIAN__.
21389         On the sh3e, define _DOUBLE_IS_32BITS.
21390
21391 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
21392
21393         * libc/sys/vr4300/syscalls.c: Added missing support
21394         routines. _raise() and getpid().
21395
21396 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
21397
21398         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
21399
21400 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
21401
21402         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
21403         and VR4300 processor.
21404         * libc/sys/vr4300: Add directory.
21405         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
21406         monitor run-time support.
21407
21408 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21409
21410         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
21411         * libc/stdlib/stdlib.tex: Don't include atol.def.
21412
21413 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21414
21415         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
21416
21417 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
21418
21419         * libc/ctype/Makefile.in: Fill in _to* dependencies.
21420
21421 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
21422
21423         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
21424         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
21425         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
21426         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
21427         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
21428
21429 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21430
21431         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
21432
21433 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21434
21435         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
21436         * libc/stdlib/atoff.c: New file.
21437         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
21438         * libc/stdlib/atoi.c (atol): Removed.
21439         * libc/stdlib/atol.c: Removed duplicate documentation.
21440
21441         * libc/include/ctype.h (_tolower, _toupper): Moved inside
21442         #ifndef _STRICT_ANSI conditional.
21443         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
21444         * libc/ctype/_tolower.c: New file.
21445         * libc/ctype/_toupper.c: New file.
21446         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
21447         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
21448         * libc/ctype/toascii.c (_toascii): Removed.
21449
21450 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
21451
21452         * libc/sys/sparc64/sys/types.h: Deleted.
21453
21454 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21455
21456         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
21457         and recognize Windows_95 systems.
21458
21459 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21460
21461         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
21462         and passed fds should be opened in text mode.
21463
21464 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21465
21466         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
21467         in __hmap, set to binary mode by default.
21468
21469 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21470
21471         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
21472         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
21473         vector 34.
21474
21475 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
21476
21477         * Makefile.in (install): Install all libraries found in the
21478         top level.  If there's a sys/<type>/include directory,
21479         install those headers into include.
21480
21481         * libc/sys/win32/kernel.def351: Delete
21482         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
21483         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
21484         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
21485         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
21486         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
21487         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
21488         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
21489         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
21490
21491         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
21492         * libc/sys/win32/crt0.c: Force all env names to upper case.
21493         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
21494         * libc/sys/win32/*.c: Headers have moved.
21495         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
21496         __vfork_child_idx is now __vfork_child_ptr.
21497
21498         * posix/execvp (execvp): Don't crash if no PATH envname.
21499
21500 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21501
21502         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
21503         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
21504         through the _freelist instead of through the _reclaim list.
21505         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
21506         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
21507         sources.
21508
21509 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21510
21511         * libc/machine/h8500/setjmp.S: New file.
21512         * libc/include/machine/setjmp.h: Updated for H8/500.
21513
21514 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
21515
21516         * libc/sys/win32/syscalls.c (_open): More stracing.
21517         (_stat): Open the file in O_BINARY.
21518
21519 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21520
21521         * libc/machine/h8300/setjmp.S: New file.
21522         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
21523
21524 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
21525
21526         * libc/sys/win32/crt0.c (__exe_suffix): New global.
21527         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
21528         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
21529         __exe_suffix.  Free fd_tab after setting env variable.
21530         (spawnv,_execve): Update.
21531         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
21532         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
21533         (__small_vfprintf): New function.
21534         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
21535         * libc/sys/win32/wait.c (cwait): Validate argument.
21536
21537         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
21538         (process_deletion_queue): Likewise.
21539
21540         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
21541
21542 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
21543
21544         * libc/sys/win32: Copyrights and gratuitous indenting.
21545
21546 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
21547
21548         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
21549         (process_deletion_queue): Likewise.
21550         (__close_all_files): New function.
21551         (_close): Only queue file deletion if really a file.
21552         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
21553         _P_APPEND_EXE.
21554         (_exit): Call __close_all_files.
21555
21556         * libc/stdlib/system.c: #include <errno.h>.
21557         (_system_r): Fix results in -DNO_EXEC case.
21558
21559         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
21560         Reorganize structure.
21561         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
21562         if argument is valid.  Save directory name in DIR.  malloc space
21563         for dirent struct separately.
21564         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
21565
21566         * libc/include/errno.h (ENAMETOOLONG): Define.
21567         * libc/string/strerror.c (strerror): Reword ENFILE.
21568         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
21569
21570 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
21571
21572         * libc/sys/win32/crt0.c (__progname): New global.
21573         (mainCRTStartup): Support strace=bitmask,filename.
21574         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
21575         * libc/sys/win32/syscalls.c (_write): Print parent trace message
21576         if error.
21577         (getcwd): Handle len too small.  Convert '\\' to '/'.
21578         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
21579         Add prototypes for open, creat, fcntl.
21580         (O_APPEND): Change value to conform to Microsoft's value.
21581         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
21582
21583         * libc/stdlib/getopt.c: New file.
21584         * libc/stdlib/Makefile.in: Build it.
21585
21586 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
21587
21588         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
21589         Fix scanning of $PATH.
21590         * libc/posix/exec*.c: Call _execve, not execve.
21591         * libc/posix/execve.c: New file.
21592         * libc/posix/Makefile.in (OFILES): Add execve.o.
21593
21594         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
21595         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
21596         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
21597         * libc/sys/win32/crt0.c: Update _STRACE calls.
21598         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
21599
21600         * libc/sys/win32/smallprint.c (rn): Fix digit list.
21601
21602         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
21603         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
21604         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
21605         Print __seterrno trace message first.
21606         (_execve): Renamed from execve.
21607         (vfork): Update __strace usage.
21608         (__vfork_child_pid): Deleted.
21609         (__vfork_children, __vfork_child_idx): New globals.
21610         (_spawnvp): New function.
21611         (spawnvp, spawnv, _execve): Call _spawnvp.
21612         (init_child): Record child in __vfork_children.
21613         (__vfork_get_entry, __vfork_record_death): New functions.
21614         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
21615         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
21616         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
21617         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
21618         (children): New typedef.
21619         (__vfork_children,__vfork_child_idx): Declare.
21620         (__vfork_get_entry,__vfork_record_death): Declare.
21621         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
21622         (waitpid): Handle pid == -1.
21623         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
21624         * configure.in (i386-win32): Add -DNO_FORK.
21625         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
21626         * libc/reent/execr.c (_fork_r): Likewise.
21627         * libc/stdlib/system.c (do_system): New function.
21628         If WIN32, try to get shell path from $SH_PATH, use vfork.
21629         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
21630         otherwise return 0.
21631
21632 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
21633
21634         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
21635         * libc/sys/win32/fcntl.h: Don't include self.
21636         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
21637         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
21638         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
21639         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
21640         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
21641         Correct prototypes.
21642         * libc/sys/win32/strace.c: New file.
21643         * libc/sys/win32/smallprint.c: New file.
21644         * libc/sys/win32/crt0.c (func): Delete.
21645         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
21646         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
21647         * libc/sys/win32/exceptions.c: Lint.
21648         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
21649         Clean up handle usage.
21650         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
21651         (open.c): Default file type is text.
21652         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
21653         * libc/sys/win32/advapi32.def: New
21654
21655 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
21656
21657         * configure.in (posix_dir, libc_posix_lib): New variables.
21658         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
21659         (i[345]86-*-win32): Define posix_dir.
21660         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
21661         (if unix_dir): Fix typo.
21662         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
21663         scandir,seekdir,telldir}: New files.
21664         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
21665         from libc/unix.
21666         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
21667         (SUBDIRS): Add posix.
21668         (SUBLIBS): Add $(LIBC_POSIX_LIB).
21669
21670         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
21671         (NSIG): Increase to 21.
21672         * libc/include/sys/unistd.h (pid_t): Move from here,
21673         * libc/include/sys/types.h (pid_t): to here.
21674
21675         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
21676         (__ptrace): Delete.
21677         (hinfo): New members close_exec_p, child_created_p.
21678         (struct exception_list): Define.
21679         (__hmap): Redefine as pointer to table.
21680         (__parent_hmap, __child_hmap): New globals.
21681         (__set_errno, __really_exit): Declare.
21682         (__vfork_child_pid): Declare.
21683         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
21684         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
21685         (__parent_hmap, __child_hmap): New globals.
21686         (__hmap): Redefine as pointer to active map.
21687         (__get_console): New function.
21688         (mainCRTStartup): Change leading '=' in environ vars to '!'.
21689         (env __FD_TABLE__): Watch for this and initialize our fd/handle
21690         mapping table from it if defined.
21691         (argv, envp): Dump if __strace >= 4.
21692         (main): Call here.
21693         * libc/sys/win32/exceptions.c (myp): Redefine.
21694         (__syscalls_b): Delete.
21695         (__stack_trace): New function.
21696         (ehandler3): Update to use _STRACE.  Print stack trace.
21697         Call __really_exit instead of exit.
21698         (init_exceptions): Delete args argc,argv.  New arg mine.
21699         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
21700         FindFirstFileA, FindNextFileA, GetComputerNameA,
21701         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
21702         * libc/sys/win32/signal.c (signal): Validate arg.
21703         (alarm, sleep): Define as stubs for now.
21704         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
21705         (__syscalls_b, errno): Delete.
21706         (__vfork_child_pid, __vfork_jmp_buf): New globals.
21707         (__seterrno): Handle more errors.
21708         (__sys_printf): Renamed from _ptrace.
21709         (__really_exit): New function.
21710         (queue_file_deletion, process_deletion_queue): New functions.
21711         (__resume_parent): New function.
21712         (_unlink): Handle trying to delete open file.
21713         (__totime_t): Renamed from totime_t.
21714         (setsid, __read, __write): New functions.
21715         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
21716         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
21717         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
21718         * libc/sys/win32/console.c: Update to new definition of __hmap.
21719         * libc/sys/win32/Makefile.in: Build new files.
21720         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
21721         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
21722         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
21723         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
21724
21725 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
21726
21727         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
21728
21729 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21730
21731         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
21732         have been made to the master dtoa.c sources (from netlib.att.com)
21733         since they were integrated into newlib in early 1992.  Fixes
21734         problems with storage leaks and handling of numbers with very
21735         negative exponents.
21736
21737 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21738
21739         * Makefile.in (all): set rootpre and srcrootpre before calling
21740         sub-makes.
21741
21742 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
21743
21744         * libc/sys/win32/crt0.c: Change __hmap usage.
21745         * libc/sys/win32/exceptions.c: Use _ptrace call.
21746         * libc/sys/win32/syscalls.c: Use _ptrace call.
21747         (read, write): Cope with DOS style CRLF when in TEXT mode.
21748         * libc/sys/win32/syscalls.h: Declare hinfo struct.
21749         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
21750         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
21751         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
21752         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
21753
21754 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21755
21756         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
21757
21758         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
21759         wrappers for hypot() and remainder() for BSD libm compatibility.
21760         These are public domain implementations written by me for the
21761         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
21762         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
21763         (fobj): Added wf_cabs.o and wf_drem.o.
21764
21765 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21766
21767         * libc/sys/h8500hms/misc.c: New file.
21768         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
21769
21770 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21771
21772         * libc/time/localtime.c (localtime): Fix problem with leap year
21773         handling.  Stole algorithm from Arthur David Olson's tz code.
21774
21775 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
21776
21777         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
21778
21779         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
21780         (_exit): Use argument.
21781
21782 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
21783
21784         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
21785
21786 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
21787
21788         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
21789
21790 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21791
21792         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
21793         target_cflags.
21794
21795 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
21796
21797         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
21798         ptrace with case insensitivity
21799         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
21800         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
21801         New files.
21802
21803 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
21804
21805         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
21806         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
21807         (all, install, *clean): Use new multilib support.
21808         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
21809
21810 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
21811
21812         * libc/include/sys/signal.h (__WIN32__): New.
21813
21814         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
21815
21816         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
21817         (ulp, b2d): Handle 32 bit doubles.
21818         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
21819         * libc/stdlib/strtod.c (_strtod_r): Ditto.
21820
21821 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
21822
21823         from medp@primag.co.uk:
21824         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
21825         dynamically allocated buffers.
21826
21827 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
21828
21829         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
21830         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
21831
21832 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
21833
21834         * configure.in (powerpc): Fix previous fix.
21835
21836 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
21837
21838         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
21839         directories for this target.
21840
21841 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
21842
21843         * configure.in (hppa): Add machine_dir definition.
21844         * libc/machine/hppa: New directory with PA specific implementations
21845         of the basic memory/string functions.
21846
21847 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
21848
21849         * configure.in: Update current PowerPC multilib directories.
21850         Split big and little endian configurations.
21851
21852 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
21853
21854         * configure.in: Add --enable-single-float option to configure to
21855         control use of MIPS single-float directories.  Default to yes.
21856
21857         * Makefile.in (all): Don't recurse into multilib directory if it
21858         does not exist.
21859
21860 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21861
21862         * libc/sys/sh/syscalls.c: Fix typo.
21863
21864 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
21865
21866         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
21867         Pass down DLLTOOL.
21868         * libc/include/process.h: Define WAIT_CHILD.
21869         * libc/include/types.h: Get sizes right for win32.
21870         * configure.in (i386-*-pe): Becomes i386-win32.
21871         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
21872         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
21873         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
21874         is defined.
21875
21876 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
21877
21878         * configure.in (i[345]86-*-pe):  New target (NT).
21879         * host/any: DLLTOOL new.
21880         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
21881         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
21882         WIN32 (just enough to cross host the comp-tools).
21883
21884 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
21885
21886         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
21887         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
21888
21889 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
21890
21891         * libc/include/machine/ieeefp.h (arm): Change to always be
21892         __IEEE_BIG_ENDIAN (even on little endian ARM's).
21893
21894 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
21895
21896         * libc/sys/crt0.S: Initialze sp, and call exit after main.
21897         * libc/sys/syscalls.c (abort): New.
21898         * configure.in (arm): Define ABORT_PROVIDED.
21899
21900 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21901
21902         * configure.in (powerpc): Define multidirs.
21903
21904 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
21905
21906         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
21907
21908 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
21909
21910         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
21911
21912 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
21913
21914         * configure.in, libc/include/machine/ieeefp.h: Modified
21915         for arm:
21916         libc/machine/arm/*, libc/sys/arm/*: New
21917
21918 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21919
21920         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
21921           __powerpc__ when determining endianness.
21922
21923 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21924
21925         * configure.in (m68*): Add multidir for the m68332.
21926
21927         * host/any (CC): Fix typo in last change.
21928
21929 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
21930
21931         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
21932         when determining endianness.
21933         * libc/include/machine/ieeefp.h: Ditto.
21934         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
21935         operands.
21936
21937 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
21938
21939         * libc/include/errno.h (ENOTEMPTY): Define.
21940
21941 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21942
21943         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
21944           target_cflags.
21945
21946         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
21947           and umultiply.o.
21948
21949         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
21950           instead of only when open succeeds.  ANSI requires that multiple
21951           calls to tmpnam() result in different files.
21952
21953         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
21954           objects pulled in from /lib/libc.a that must be renamed before
21955           being pulled into newlib.  /lib/libc.a's div.o conflicted with
21956           newlib's file with the same name.
21957
21958         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
21959
21960         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
21961           the build tree will only be used if the executables are present
21962           (instead of just the Makefiles).
21963
21964         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
21965           wcstombs): Define.
21966         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
21967           versions of these functions that I orignally wrote for the
21968           NetBSD C library.
21969         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
21970           versions I wrote for NetBSD.
21971
21972 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
21973
21974         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
21975         * libc/sys/sparclite/crt0.s: ditto.
21976
21977 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
21978
21979         * configure.in: Add soft-float for proelf.
21980
21981 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
21982
21983         * libc/stdlib/mprec.h (Bcopy): Copy the right number
21984         of bytes.
21985
21986 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
21987
21988         * Makefile.in (all): Depend on `force'.
21989         * configure.in (syscall_dir): Renamed from fake_sys_dir.
21990         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
21991         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
21992         * libc/Makefile.in: Likewise.
21993         * libc/include/reent.h: Update syscall references.
21994         (_fcntl_r): Add prototype.
21995         * libc/syscalls/*.c #include <reent.h>.
21996         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
21997
21998 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
21999
22000         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
22001         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
22002         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
22003         (time.h, sys/types.h): Always include (even if MSDOS).
22004         (stat): Fix prototype.
22005
22006 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
22007
22008         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
22009
22010 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
22011
22012         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
22013
22014 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
22015
22016         * libc/include/regdef.h: New file.
22017         * libc/machine/mips/machine/regdef.h: New file.
22018
22019 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
22020
22021         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
22022
22023 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
22024
22025         * libc/sys/sh/crt0.S: Pass main's return to exit.
22026         * libc/sys/sh/trap.S: Put errno in the right place.
22027
22028 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
22029
22030         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
22031         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
22032         * libm/math/ef_rem_pio2.c: Likewise.
22033         * libm/math/e_log10.c: Remove unused static one.
22034         * libm/math/ef_log10.c: Likewise.
22035         * libm/math/s_frexp.c: Likewise.
22036         * libm/math/sf_frexp.c: Likewise.
22037
22038 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
22039
22040         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
22041         longjmp.S: Upgraded.
22042         * libc/sys/go32/sys/setjmp.h: Upgraded.
22043         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
22044
22045 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
22046
22047         * configure.in: Add many entries to multidirs for mips targets.
22048
22049 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
22050
22051         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
22052           5.2 which fixes bug where jn(-1,x) is three times larger than
22053           the actual answer.
22054         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
22055
22056 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
22057
22058         * libc/sys/w65/sys/syscalls.h: New file
22059         * libc/include/machine/ieeefp.h: W65 support.
22060         * libc/include/sys/config.h: Ditto.
22061         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
22062         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
22063         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
22064
22065 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
22066
22067         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
22068
22069 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
22070
22071         * Makefile.in, configure.in: Remove any references to the old
22072         "stub" dir.
22073
22074 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
22075
22076         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
22077         uses ... in prototype.
22078
22079
22080 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
22081
22082         * libc/sys/a29khif/sys/libconfig.h: Remove.
22083         * libc/sys/go32/sys/libconfig.h: Remove.
22084         * libc/sys/sun4/sys/libconfig.h: Remove.
22085         * libc/sys/sysvi386/sys/libconfig.h: Remove.
22086         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
22087         * libc/sys/sparc64/sys/libconfig.h: Remove.
22088
22089         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
22090         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
22091         * libc/include/math.h: Change all uses of _FLOAT_RET and
22092         _FLOAT_ARG to float.
22093         * libm/test/math.c: Likewise.
22094         * testsuite/libm.sac/math.c: Likewise.
22095         * testsuite/libm.sac/working/math.c: Likewise.
22096
22097 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
22098
22099         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
22100         gcc calls gas with endian option.
22101         * configure.in (sh): Build little endian version too.
22102
22103 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
22104
22105         * configure.in: Configure big and little endian versions for MIPS
22106         targets.
22107
22108 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
22109
22110         * libc/include/limits.h: Deleted.
22111         * libc/include/machine/limits.h: Deleted.
22112
22113 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
22114
22115         * ChangeLog: Remove stub directory. This has all been rewritten
22116         and moved to devo/libgloss.
22117
22118 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
22119
22120         * Makefile.in (dvi): Add to info target, use $@ in sub make.
22121         (docs): Merge into info target.
22122         * libm/Makefile.in (dvi): Add $(srcdir).
22123         * libm/math/Makefile.in (chobjs): Remove underscores from file
22124         names.  Texinfo doesn't like them.
22125         (wacos.def, ...): Add explicit targets for all .def files.
22126         * libm/math/math.tex: Remove underscores from @include file names.
22127         * doc/Makefile.in (dvi): Add dummy target.
22128         * testsuite/Makefile.in (dvi): Add dummy target.
22129
22130 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
22131
22132         * Makefile.in (VERSION): Define.  For net newlib releases.
22133
22134 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
22135
22136         * README: New file.
22137
22138 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
22139
22140         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
22141
22142 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22143
22144         * libc/stdlib/setenv.c (_findenv): Declare.
22145
22146         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
22147         fcntl to not use _EXFUN, and change string parameters to open and
22148         creat to be ``const char *''.
22149         * libc/sys/sparc64/sys/fcntl.h: Likewise.
22150         * libc/sys/sparc64/creat.c (creat): Make PATH const.
22151         * libc/syscalls/sysopen.c: Include <fcntl.h>.
22152         (open) Make _FILE const.
22153         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
22154         (_creat): Make PATH const.
22155         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
22156         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
22157         * libc/sys/m88kbug/syscalls.c (open): Likewise.
22158         * libc/sys/sh/syscalls.c (_open): Likewise.
22159         * stub/shared/glue.c (open): Make BUF const.
22160         * stub/ex93x/syscalls.c (open): Make FILENAME const.
22161
22162 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
22163
22164         * libc/include/errno.h: Add ENMFILE
22165         * libc/include/sys/config.h: Support Z8000.
22166         * libc/include/sys/signal.h: New signals for go32.
22167         * libc/machine/h8500/psi.S (__addpsir0r0): New function
22168         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
22169         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
22170         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
22171         size is variable, depending upon CHUNK_POWER.
22172         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
22173
22174 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
22175
22176         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
22177
22178 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22179
22180         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
22181
22182 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22183
22184         * configure.in: Change i[34]86 to i[345]86.
22185
22186         * libc/include/math.h: Don't define HUGE_VAL if it is already
22187         defined.
22188
22189 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22190
22191         * testsuite/libm.sac/test_erfc.c: Correct some result values.
22192         * testsuite/libm.sac/test_gammaf.c: Likewise.
22193         * testsuite/libm.sac/test_sin.c: Likewise.
22194         * testsuite/libm.sac/test_tanh.c: Likewise.
22195
22196 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22197
22198         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
22199         already set.  Define typedefs __int32_t and __uint32_t.
22200         * libc/include/math.h: Include <machine/ieeefp.h>.
22201         (union __dmath): Use __uint32_t.
22202         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
22203         instead of int and unsigned int.
22204
22205 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22206
22207         Replace the math library with the SunPRO fdlibm package.
22208         * libm/math: Completely changed all files.
22209         * libm/ieeefp: Remove contents and directory.
22210         * libm/Makefile.in (LIBM_FP_LIB): Remove.
22211         (SUBDIRS): Just set to math/lib.a.
22212         * libm/libm.texinfo: Updated for new library.
22213         * libc/include/math.h: Extensive changes for new math library.
22214         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
22215         from _FLOAT_ARG to float.
22216         (maxpowtwo, maxpowtwof): Don't declare.
22217         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
22218         (libm_fp_lib): Removed.
22219         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
22220         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
22221         argument to ${RUNTEST}.
22222         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
22223         (.c.o): New rule.
22224         (RUNTESTFLAGS): Set CC and CFLAGS.
22225         (TESTS): Remove test_log2 and test_log2f.
22226         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
22227         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
22228         _FLOAT_ARG, for single precision argument type.
22229         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
22230         expected failure.  Close the input pipe.
22231         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
22232         Correct misspelling of inaccurate.
22233         (test_mok): Use ``inaccurate'', not ``wrong''.
22234         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
22235         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
22236         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
22237         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
22238         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
22239         test_yn.c): Correct many result values.  Many are still wrong.
22240
22241         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
22242         just copy the string.
22243         (_gcvt): Always return the buffer.
22244
22245 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
22246
22247         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
22248
22249 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
22250
22251         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
22252         structure.
22253         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
22254         (_reclaim_reent): declare new entry point.
22255         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
22256         functions.
22257
22258         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
22259         ever allocated, so that we can later reclaim them all.
22260         (pow5mult): make reentrant.
22261
22262         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
22263         so that when given NULL as a buffer, return a pointer to static
22264         space in the rent structure.  This is not documented behaviour;
22265         it's only to support ecvt and fcvt, which aren't ANSI anyway.
22266         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
22267         therefore become reentrant).
22268
22269         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
22270
22271 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22272
22273         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
22274
22275 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
22276
22277         * Makefile.in: Make link to libg.a after libc.a; this is needed
22278           for the testsuites to build executables when everything comes
22279           from the tree.
22280
22281 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
22282
22283         * libc/Makefile.in: Add a VERSION variable so we can keep track.
22284         * libm/Makefile.in: Add a VERSION variable so we can keep track.
22285
22286 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22287
22288         * libc/include/stdio.h: Use __VALIST, not va_list.
22289
22290 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
22291
22292         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
22293         testsuite/libm.sac/execute.exp:
22294           Replace error proc calls with perror calls.
22295
22296 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
22297
22298         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
22299         * libc/include/time.h: #define NULL as 0L.
22300
22301 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
22302
22303         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
22304         care of it.
22305
22306 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22307
22308         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
22309         not __unix__.
22310
22311 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
22312
22313         * configure.in (TARGET_CFLAGS): Set -O2 as default.
22314         (z8k-*-*): Use syscalls fake sys dir.
22315         * libc/sys/z8k/glue.c: Rename syscalls.
22316         * libc/sys/go32/Makefile.in: Use new routines.
22317         * libc/machine/Makefile.in: Fix typo in ln stuff.
22318
22319 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22320
22321         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
22322         * libc/Makefile.in (crt0.o): Likewise.
22323         * libc/machine/Makefile.in (lib.a): Likewise.
22324         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
22325
22326         All Makefile.in files: Added mostlyclean, realclean and distclean
22327         targets.
22328
22329         * Makefile.in: Don't bother to unexport XTRAFLAGS or
22330         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
22331         the top level Makefile.
22332
22333 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
22334
22335         * libc/sys/sparc64/sys/stat.h: New file.
22336         * libc/sys/sparc64/sys/time.h: New file.
22337         * libc/sys/sparc64/sys/types.h: New file.
22338
22339 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
22340
22341         * stub/ex93x/crt0.s (start): Add code to clear bss.
22342
22343 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
22344
22345         * libc/include/sys/types.h (time_t): Properly protect inside
22346         #ifndef __time_t_defined.
22347
22348         * libc/stdio/fileno.c: New file.
22349         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
22350         (fileno.o): Add dependency.
22351         * libc/include/stdio.h (__sgetc): Rename never to _never.
22352         (fileno macro): Disable, needs to do CHECK_INIT first.
22353
22354 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
22355
22356         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
22357         goal.
22358
22359         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
22360         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
22361         runtest.
22362         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
22363         runtest.
22364
22365 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
22366
22367         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
22368         of the various constants.
22369
22370 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
22371
22372         * libc/include/math.h: #ifndef __math_68881 around things which
22373         conflict with the (gcc-provided) inline functions in
22374         gcc/ginclude/math-68881.h.
22375
22376 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
22377
22378         * libc/include/_syslist.h (_gettimeofday): Define.
22379         (_times): Ditto.
22380         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
22381         (struct tms, timeval, timezone): Declare.
22382         (_gettimeofday_r, _times_r): Declare.
22383         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
22384         #ifdef _CLOCK_T_ surrounding definition of clock_t.
22385         (time_t): Add multiple definition protection, __time_t_defined.
22386         * libc/include/sys/time.h: Don't #include <time.h>.
22387         Always define struct timezone (remove #ifndef _TIME_H_).
22388         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
22389         #ifdef _CLOCK_T_ surrounding definition of clock_t.
22390         * libc/reent/Makefile.in (OFILES): Add timer.o.
22391         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
22392         * libc/reent/timer.c: New file.
22393         * libc/time/clock.c: #include <reent.h>.
22394         (clock): Call _times_r instead of times.
22395         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
22396         HAVE_GET_TIME_OF_DAY.
22397         Add comment regarding supporting OS routine(s) required (for docs).
22398         #include <reent.h>.
22399         (time): Call _gettimeofday_r instead of gettimeofday.
22400         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
22401         * libc/time/ctime.c: Ditto.
22402         * libc/time/strftime.c: Ditto.
22403         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
22404         (TEMPLATE_SFILES_R): Define here.  Also define times.
22405         Add times_r.o/times.S dependence.
22406         (time2.c, junk.c): Deleted.
22407         * libc/sys/sparc64/time2.c: Deleted.
22408         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
22409
22410         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
22411         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
22412         * libc/sys/sparc64/junk.c: Deleted.
22413
22414 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
22415
22416         * libc/sys/sparc64/Makefile.in: Add times syscall.
22417         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
22418         be used with and without it.  Add comment clarifying Medium/Anywhere
22419         model requirements.
22420         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
22421         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
22422         even if obsolete.
22423
22424 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
22425
22426         * configure.in (target_cflags): Move init.
22427         (sparc64-*-*): Define HAVE_BLKSIZE.
22428
22429 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
22430
22431         * libc/include/sys/_types.h: New file.
22432         * libc/include/reent.h: #include it.
22433         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
22434         MISSING_SYSCALL_NAMES.
22435         Sort syscalls.
22436         * libc/include/_syslist.h: Remove _raise.
22437         * libc/reent/signalr.c: New file.
22438         * libc/reent/Makefile.in: Compile it.
22439         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
22440         Add doc for raise and _raise_r.
22441         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
22442         (raise): Call _raise_r.
22443         (_raise_r): Call _getpid_r and _kill_r.
22444         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
22445         (abort): Loop forever calling raise and _exit.
22446
22447 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22448
22449         * configure.in: Remove extraneous echo.
22450
22451 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
22452
22453         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
22454         collision with unistd.h, and fix for svr4.
22455
22456 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
22457
22458         * libc/stdio/local.h (_llicvt): Declare.
22459         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
22460         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
22461         (_llicvt): Define.
22462         (_sicvt): Fix function header (`value' is short).
22463         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
22464         Add printing of long long's support.
22465         Add printing of 8 byte pointer support.
22466
22467 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
22468
22469         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
22470         stat, chmod): New hooks.
22471         (sbrk): Abort if stack and heap collide.
22472         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
22473         shortcut when given small args.
22474         * libc/machine/sh/setjmp.s: Rewritten.
22475         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
22476         of cmp/str instruction.
22477
22478 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22479
22480         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
22481         and machine_dir powerpc.
22482         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
22483         Add cases for __powerpc__.
22484         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
22485         New files.
22486
22487         * libc/include/stdio.h (_iprintf_r): Declare correctly.
22488
22489 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
22490
22491         * libc/stdlib/callocr.c: New file with _calloc_r in it.
22492         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
22493
22494 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
22495
22496         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
22497         (print_e): More comments to describe args, etc.
22498         "type" arg may now be 'g' or 'G' for %g/G format --> remove
22499         trailing blanks.
22500         (_gcvt): Remove locals decpt, sign, end, p, done.
22501         More comments for print_e invocation.
22502         Pass "type" to print_e as is (g/G).
22503
22504 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
22505
22506         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
22507         stock m68000.
22508
22509 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
22510
22511         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
22512         works with any sized pointer, including ones bigger than ints and
22513         longs.
22514
22515 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
22516
22517         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
22518
22519 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
22520
22521         * libc/include/stdlib.h (_calloc_r): Add prototype.
22522         * libc/machine/h8500/negsi2.c: New file.
22523         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
22524         large unsigned numbers.
22525         * libc/machine/h8500/cmpsi.c: Add cmppsi.
22526         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
22527         works when sizeof(size_t) != sizeof(char *).
22528         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
22529         get play area
22530         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
22531
22532 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
22533
22534         * libc/include/assert.h (assert): Handle -traditional.
22535
22536 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
22537
22538         * Makefile.in: added ; after every "fi" and "done" that wasn't at
22539         the end of a line (ie. anything before a backslash continuation)
22540         so that bash handles them.
22541
22542 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
22543
22544         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
22545         stat to lstat
22546
22547 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
22548
22549         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
22550         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
22551         libc/machine/sh/udivsi3.s: Use new calling convention.
22552
22553 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
22554
22555         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
22556         chmod, access, chdir, chown by making _path const. Also fix _amode
22557         param of access.
22558
22559 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
22560
22561         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
22562         _khif_tmpnam, because it doesn't comply with ANSI but may be
22563         useful anyway. Real tmpnam was already in libc/stdio, and was
22564         colliding with this one (pr 2176.)
22565         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
22566         the wrong idea anyhow.
22567
22568 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
22569
22570         * configure.in: Remove h8300h, we have multilib now.
22571
22572 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
22573
22574         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
22575         functions, to get preference over the ones in libiberty (since we
22576         provide correct declarations in <string.h>.
22577         * libc/string/Makefile.in: add support for strncasecmp,
22578         strcasecmp.
22579
22580 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
22581
22582         * Change netware config not to look for cpu explicitly.
22583
22584 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
22585
22586         * libc/sys/sparc64/{creat.c,junk.c}: New files.
22587         * libc/sys/sparc64/Makefile.in: Add dependencies.
22588
22589 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
22590
22591         * configure.in: Clean up v9 a bit, new "os" aoutv8.
22592
22593 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
22594
22595         * libc/include/sys/reent.h: make structure smaller by allocating
22596         some stuff when needed.
22597         * libc/signal/signal.c: allocate as needed
22598         * libc/stdio/findfp.c,stdio/local.h: ditto
22599         * libc/stdlib/mprec.c: ditto
22600
22601         * libc/time/localtime.c: don't return a dangling stack ptr.
22602
22603 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
22604
22605         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
22606
22607 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22608
22609         * libc/include/stdio.h (__sputc): comment out static inline which
22610           confuses coff toolchains.
22611
22612 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
22613
22614         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
22615         _write.s, getpid.c, kill.c, read.s}:
22616         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
22617         through the syscalls directory.
22618
22619 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
22620
22621         * configure.in: fixed double quote gotcha.
22622
22623 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
22624
22625         * stub/ex931: stub library for sparclite board.
22626         * stub/idp: Renamed from mc68ec. Added contructor table
22627         stuff to linker script.
22628         * stub/mvme135: Renamed from m68kmvme. Added contructor table
22629         stuff to linker script.
22630
22631 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22632
22633         * configure.in: Configure testsuites only if they exist.
22634
22635 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22636
22637         * configure.in: Don't set machine_dir for i386 until there is
22638         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
22639         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
22640         CLOCK_PROVIDED and MALLOC_PROVIDED.
22641
22642         * libc/sys/netware: New directory.  Contains simplistic and
22643         probably incorrect stubs for NetWare.  Should be enough to load
22644         the library.
22645         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
22646         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
22647         stub files.
22648
22649         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
22650         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
22651         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
22652         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
22653
22654 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
22655
22656         * testsuite/Makefile.in: add "docs" dummy target for consistency
22657         with rest of newlib; turn "info" and "install-info" into dummy
22658         targets, since they wouldn't have worked.  (Depended on
22659         nonexistent "doc" subdir.)
22660
22661 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
22662
22663         * configure.in: handle mips* instead of mips
22664
22665 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
22666
22667         * libc/include/sys/dirent.h: New file.  If it is not overridden by
22668         a version of libc/sys/*/sys/dirent.h, it includes the next
22669         <dirent.h> file in case there is one lurking somewhere.
22670
22671 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22672
22673         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
22674         compliance, namely: Accept a minus sign.  Consider a single 0 with
22675         a radix of 0 as being a conversion.  Determine overflow correctly.
22676         If an overflow occurs, set *ptr to the end of the number, not the
22677         middle.
22678         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
22679
22680 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
22681
22682         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
22683
22684 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
22685
22686         * Makefile.in (INSTALL): Use $srcrootpre.
22687         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
22688         can't handle it.
22689         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
22690         it.
22691         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
22692         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
22693         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
22694         * libm/math/Makefile.in (matherr.o): Ditto.
22695
22696 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
22697
22698         * configure.in: Build multidirs for z8k.
22699         * libc/include/stdlib.h (_strtoul_r): add prototype.
22700         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
22701         * libc/include/machine/setjmp.h: Add for z8k.
22702         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
22703         * libc/sys/z8ksim/glue.c: tidy up.
22704
22705 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
22706
22707         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
22708         New files.  Requires execve system call.
22709         * libc/unix/Makefile.in: Use them.
22710         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
22711         Deleted, moved to libc/unix.
22712         * libc/sys/sparc64/Makefile.in: Remove them.
22713
22714 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
22715
22716         * libc/sys/sparc64/{template.S template_r.S}: New files.
22717         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
22718         from templates.
22719         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
22720         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
22721         umask.S unlink.S wait4.S write.S}: Removed, now built from
22722         templates.
22723
22724 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
22725
22726         * libc/time/time.c: #include <_ansi.h>.
22727
22728 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
22729
22730         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
22731
22732 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22733
22734         * configure.in: match m8* rather than m88k so that m88110 is
22735           recognized as well.
22736
22737 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
22738
22739         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
22740         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
22741         misc.c: New file.
22742
22743         * configure.in: Add multilib support to h8300.
22744
22745 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
22746
22747         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
22748         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
22749         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
22750
22751 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22752
22753         * configure.in: Corrected multidirs for sparc target.
22754
22755 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22756
22757         Support for building newlib multiple times with different
22758         compilation flags.
22759         * configure.in: Only configure doc at top level.  Set multidirs
22760         when appropriate for target, unless not at top level.  If
22761         multidirs is set, independently configure each subdirectory.
22762         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
22763         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
22764         automagically set by configure.in.
22765         (all): If MULTIDIRS is set, build multiple copies of libraries.
22766         (install): If MULTIDIRS is set, install multiple copies of
22767         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
22768         MULTISUBDIR is set, don't bother to install header files.
22769         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
22770         ${srcrootpre}.
22771         * stub/configure.in: Set MULTISUBDIR appropriately.
22772         * stub/Makefile.in (install): Install in
22773         $(tooldir)/lib/$(MULTISUBDIR).
22774         * All Makefile.in files: Define SRCTOP as well as TOP.
22775
22776 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
22777
22778         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
22779         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
22780
22781 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
22782
22783         * libc/sys/h8300hms/exit.c (_exit): New function.
22784
22785 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22786
22787         * configure.in: recognize m88110.
22788
22789 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22790
22791         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
22792           prototype main and call with args.
22793
22794 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
22795
22796         First real try at system traps for m88k-bug.
22797         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
22798           to real trap calls.
22799         * libc/sys/m88kbug/sys/systraps.h: new file.
22800
22801 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22802
22803         Patches to fix info building when target does not use sys
22804         directory.
22805         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
22806         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
22807           libc/sys.tex.
22808         * libc/sys/Makefile.in (doc): do nothing.
22809
22810 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22811
22812         * libc/Makefile.in (CRT0): new macro.
22813           (all): depend on $(CRT0) rather than crt0.o.
22814
22815         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
22816           do not default crt0, instead, set crt0 and crt0_dir based on
22817           sys_dir and stub_dir.
22818
22819         * Makefile.in (CRT0_DIR): new macro.
22820           (all): depend on $(CRT0) rather than crt0.o which may not exist.
22821           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
22822           $(CRT0).
22823           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
22824
22825 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
22826
22827         * testsuite/lib/libm.exp:
22828                 added code to support compiling and linking of tests for
22829                 libm.sac (paranoia to be added next) and processing the
22830                 pass or failure of the tests.
22831
22832         * testsuite/config/unix-libm.exp:
22833                 platform specific proc's for dealing with compiler, linker
22834                 and the way we execute and process the test results.
22835
22836         * testsuite/libm.sac/execute.exp:
22837                 generic framework for the sac tests. the config and lib
22838                 expect code for specific platforms tie it all together.
22839
22840         * testsuite/libm.sac/test_is.c:
22841                 changed the output of the test to be consistant with the
22842                 other tests. parsing of pass nad fail messages is now fixed.
22843
22844 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
22845
22846         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
22847         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
22848         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
22849         #ifdef __cplusplus, surround by extern ""C { ... }.
22850         * libc/include/assert.h:  Do *not* protect assert.h against
22851         multiple inclusion!  Also, #undef it before #define, to allow
22852         redefinition.
22853         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
22854         should be only in unistd.h.
22855
22856         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
22857         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
22858         ... }.
22859
22860 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
22861
22862         * libc/machine/sparc/Makefile.in: Must create a library, even
22863         if empty.
22864
22865 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22866
22867         * configure.in: set machine_dir for m88k.  edit crt0 definition
22868           into makefiles.
22869
22870         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
22871
22872         * libc/Makefile.in (all): also build crt0.o.
22873
22874         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
22875           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
22876           to remove CRT0.
22877
22878         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
22879           (all): reworked to build in place.
22880           (clean): remove lib.a
22881           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
22882
22883         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
22884           (_start): key off edata rather than _start_bss.
22885
22886 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
22887
22888         * libc/include/sys/unistd.h, libc/include/reent.h,
22889         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
22890
22891 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22892
22893         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
22894
22895         * Makefile.in (libc.a): break into two rules, one for libc.a and
22896           one for libc/libc.a.  Force subdirs current before rebuilding
22897           library.
22898           (libm.a): break into two rules, one for libm.a and one for
22899           libm/libm.a.  Force subdirs current before rebuilding library.
22900
22901         * libc/Makefile.in (SUBLIBS): fix typo.
22902
22903         * libc/sys/Makefile.in (all): force descent into subdirs, then
22904           rebuild library iff out of of date.
22905
22906 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22907
22908         Rework so that library is built and then finished rather than
22909         being built on each invocation of make.
22910
22911         * host/any (machine_dir, sys_dir, signal_dir): these are not
22912           shared and have been moved to their associated Makefile.in's.
22913           (AR_FLAGS): switch to qc which is faster.
22914         * configure.in: no longer assign machine_dir for m88k.  set
22915           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
22916           stub_dir set, then add to configdirs.  add comment about silly
22917           configuration.
22918           (configdirs): drop stub.  It will be added only
22919           when needed.
22920           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
22921           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
22922           stub_lib, crt0): new variables for tailoring lower level
22923           makefiles.  Assign accordingly and edit into makefiles.
22924         * libm/Makefile.in: updated copyright.
22925           (TARGETLIB): removed.
22926           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
22927           (SUBDIRS): removed TARGETDEP_DIRS.
22928           (LIBM_FP_LIB, SUBLIBS): new macros.
22929           (all): reworked.
22930           (force): new target to force rebuilds.
22931           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
22932         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
22933           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
22934           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
22935           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
22936           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
22937           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
22938           stub/m68kmvme/Makefile.in: updated copyright.
22939           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
22940           (all): reworked.  made this the default rule.
22941           (clean): also remove lib.a.
22942           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
22943         * stub/Makefile.in: updated copyright.
22944           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
22945           (stub_lib): new macro.
22946           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
22947           RANLIB.
22948           (all): reworked.
22949           (clean, install): assume stub_dir exists.
22950           (Makefile): depend on configure.in.  call $(SHELL) rather than
22951           sh.  drop redundant ./
22952         * stub/configure.in (stublib): new macro, assign it, edit it into
22953           makefiles.
22954         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
22955           updated copyright.
22956           (all): reworked.
22957           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
22958         * libc/Makefile.in (TARGETCRT0): removed.
22959           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
22960           TARGETCRT0.
22961           (SUBDIRS): drop TARGETDEP_DIRS.
22962           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
22963           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
22964           (force): new target to force rebuilds.
22965         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
22966           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
22967           removed.
22968           (clean): assume sys_dir always exists.
22969         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
22970           drop redundant ./
22971         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
22972           libc/locale/Makefile.in, libc/machine/Makefile.in,
22973           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
22974           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
22975           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
22976           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
22977           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
22978           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
22979           libc/signal/Makefile.in, libc/stdio/Makefile.in,
22980           libc/stdlib/Makefile.in, libc/string/Makefile.in,
22981           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
22982           libc/time/Makefile.in, libc/unix/Makefile.in,
22983           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
22984           (TARGETLIB): removed.
22985           (all): reworked.
22986           (clean): also remove lib.a.
22987           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
22988         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
22989           new macros.
22990           (SUBDIRS): moved to follow frag inclusion, change stub to
22991           stub_dir.
22992           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
22993           are now set in the libc Makefile.
22994         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
22995           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
22996           TARGETCRT0.
22997           (force): new target to force rebuilds.
22998         * stub/configure.in: determine and set stub_lib for for Makefile.
22999
23000 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
23001
23002         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
23003         crt0.s renamed to crt0.S.
23004         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
23005
23006         * libc/machine/h8300/Makefile.in: Make `all' the default target.
23007         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
23008         h8300h.
23009         * libc/machine/h8300/defines.h: Add macros to handle pointers for
23010         h8300 (16 bits) and h8300h (32 bits).
23011         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
23012         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
23013
23014 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
23015
23016         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
23017         implementation of setjmp and longjmp for the m88k.
23018         * libc/include/machine/setjmp.h: Added __m88000__ case.
23019
23020 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
23021
23022         * configure.in: Recognize h8300h as variant of h8300.
23023
23024 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
23025
23026         * libc/include/sys/unistd.h (read, write): get prototypes right.
23027         (sbrk): New prototype.
23028         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
23029         * libc/stdio/local.h: Include unistd.h.
23030         * libc/machine/h8300/syscalls.c: Names have changed.
23031
23032 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
23033
23034         * configure.in: add sys_dir assignment for m88k-bug.
23035
23036 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
23037
23038         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
23039         a.out or elf.
23040         * libc/sys/sparc64: all *.S files: Use new macros.
23041         * libc/sys/sparc64/isatty.c: New file.
23042         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
23043         functions beyond what newlib provides.
23044
23045 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
23046
23047         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
23048         svr4.
23049
23050 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
23051
23052         * libc/include/machine/ieeefp.h: Add support for h8/300h.
23053
23054 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
23055
23056         * configure.in: add m88k.
23057         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
23058         sanity check so no one else need ever chase what I did to find
23059         this.
23060
23061         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
23062
23063 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
23064
23065         * doc/makedoc.c: Include <ctype.h>.
23066
23067 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
23068
23069         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
23070         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
23071         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
23072
23073         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
23074
23075 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
23076
23077         * libc/include/errno.h (ENOSYS): Added.
23078
23079         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
23080
23081 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
23082
23083         * libc/stdio/fflush.c (fflush): Check for reent struct
23084         initialization.
23085         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
23086
23087 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
23088
23089         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
23090         out of dtoa.c so it doesn't pollute the namespace.
23091         * libc/include/_syslist.h: new file -- mappings from _function to
23092         function, for systems where we can't win (by default, all of them,
23093         until we start updating system calls.)
23094         * libc/syscalls: new directory -- stubs for exporting _function
23095         names as unmodified function names.
23096         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
23097         _syslist.h on all platforms by default, but put hooks in for
23098         fake_sys_dir so we can include it when we've renamed the system
23099         calls.
23100         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
23101         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
23102         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
23103         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
23104         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
23105         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
23106         non ANSI functions to call _function.
23107
23108 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
23109
23110         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
23111         when base 16 is specified.  Don't accept non-digits if radix > 10.
23112
23113 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
23114
23115         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
23116
23117 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
23118
23119         * libc/include/sys/stat.h: Surround text after #endif with
23120         comments.
23121
23122 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
23123
23124         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
23125         _malloc_r, _realloc_r, and free_r call the corresponding
23126         non-reentrant functions.
23127
23128         * libm/math/modf.c (modf): We now take the address of ipart, so
23129         don't make it a register variable.
23130
23131 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
23132
23133         * libm/math/*: Rename all xxx_r fns to _xxx_r.
23134
23135 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
23136
23137         * libc/libc.texinfo and embedded docn throughout: formatting
23138         improvements, minor rephrasing for clarity, and improved
23139         reentrancy docn.
23140
23141 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
23142
23143         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
23144
23145         * libc/stdio/cvt.c (_licvt): Print the right value on machines
23146         where sizeof(int) != sizeof(long).
23147
23148 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
23149
23150         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
23151         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
23152         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
23153         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
23154         libm/math/matherr.c: changes for better docn formatting (info).
23155
23156         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
23157         libc/reent/reent.tex, libc/signal/signal.tex,
23158         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
23159         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
23160         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
23161         makeinfo node defaulting to get better Info file node structure.
23162         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
23163         Also include a few formerly missing sections (subroutines).
23164
23165         * doc/doc.str: delete fossil expansion for "func"
23166
23167         * default.menu, no-signal.menu: delete.
23168
23169         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
23170         method used to adjust doc for missing "signals" chapter when
23171         signal_dir is empty.
23172
23173 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
23174
23175         * configure.in: added testsuite/libm.sac
23176
23177 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
23178
23179         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
23180         code model).
23181
23182 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
23183
23184         * libm/Makefile.in: Use $(MAKE) rather than make, and define
23185         MAKEOVERRIDES to be empty.
23186
23187 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
23188
23189         * configure.in: Don't build mips-*-* with -msoft-float, since that
23190         makes it incompatible with hard floating point.
23191
23192 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
23193
23194         * Makefile.in: added recursive 'make check'
23195
23196 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
23197
23198         * configure.in: added ./testsuite ./testsuite/libm.paranoia
23199         * ./testsuite/Makefile.in: created
23200         * ./testsuite/libm.paranoia: paranoia tests added
23201
23202 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
23203
23204         * configure.in: For mips-*-* set machine_dir to mips.
23205
23206         * libc/machine/mips: New directory.
23207         * libc/machine/mips/Makefile.in: New file.
23208         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
23209         setjmp and longjmp.
23210         * libc/include/machine/setjmp.h: Added __mips__ case.
23211
23212         * libc/machine/lmips: Removed unused and useless directory.
23213
23214 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
23215
23216         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
23217
23218 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
23219
23220         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
23221         start up).
23222
23223 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
23224
23225         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
23226         SETJMP_H.
23227
23228 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
23229
23230         * libm/test/convert.c: structure member errno -> errno_val.
23231         Must include <errno.h> to use errno, it's a macro now.
23232         * libm/test/math.c: Ditto.
23233         * libm/test/math2.c: Include errno.h.
23234         * libm/test/string.c: Ditto.
23235         * libm/test/test.h: structure member errno -> errno_val.
23236         Remove extern int errno decl.
23237
23238 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
23239
23240         * libc/stdio/Makefile.in: Added dependencies on local header
23241         files.
23242         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
23243         files.
23244
23245 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
23246
23247         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
23248
23249 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
23250
23251         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
23252         Initialize _data.
23253
23254         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
23255         * libc/stdio/local.h: Add prototype for _licvt.
23256
23257         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
23258         instead of malloc,reealloc.
23259
23260         * libc/stdlib/local.h: New file.
23261         * libc/stdlib/efgcvt.c: #include local.h.
23262         (gcvt): Fix call to _gcvt.
23263         * libc/stdlib/ecvtbuf.c: #include local.h.
23264
23265         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
23266         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
23267         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
23268
23269         * libc/stdlib/atexit.c: moved global data to struct _reent.
23270         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
23271
23272         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
23273
23274 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
23275
23276         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
23277         here from ../reent.h.
23278
23279 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
23280
23281         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
23282         should be provided in both libc.a and libm.a.
23283         (libc.a): Depend on targ-include and libm.a.  Copy
23284         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
23285         (libm.a): Depend on targ-include.
23286         * configure.in (subdirs): Removed libc/math.
23287
23288 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
23289
23290         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
23291
23292 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
23293
23294         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
23295         sys/reent.h instead of reent.h.
23296         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
23297         headers moved to sys/reent.h.
23298         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
23299         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
23300         __need__MAX_SIGNALS defined.
23301         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
23302         std{in,out,err} refer to new _std{in,out,err} members.
23303
23304 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
23305
23306         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
23307         case.
23308
23309 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
23310
23311         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
23312         rather than whatever macro seterrno() has.
23313
23314 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
23315
23316         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
23317         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
23318
23319         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
23320         __STDC__.
23321
23322         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
23323         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
23324         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
23325
23326         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
23327         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
23328
23329         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
23330         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
23331         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
23332         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
23333         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
23334         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
23335         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
23336         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
23337         for ANSI.  structure members given leading "_" for ANSI.  Use
23338         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
23339
23340         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
23341         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
23342         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
23343         reent_struct renamed to struct _reent for ANSI.
23344         Structure members given leading "_" for ANSI.
23345         _CONST --> const in prototypes.
23346         Use _HAVE_STDC instead of __STDC__.
23347
23348         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
23349         _xxx_r.
23350         struct reent_struct renamed to struct _reent for ANSI.
23351         Structure members given leading "_" for ANSI.
23352
23353         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
23354         _xxx_r.
23355         struct reent_struct renamed to struct _reent for ANSI.
23356
23357         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
23358         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
23359         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
23360         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
23361         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
23362
23363         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
23364         signal.h, stdio.h, stdlib.h, string.h, time.h}:
23365         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
23366         #ifndef _STRICT_ANSI non-ANSI routines.
23367         Reentrant routines renamed from _r_xxx to _xxx_r.
23368         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
23369         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
23370         Clean up namespace (structure members have leading "_").
23371         struct reent_struct renamed to struct _reent for ANSI compliance.
23372         _CONST --> const in function prototypes.
23373
23374         * libc/include/string.h: Add NULL and size_t.
23375
23376         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
23377         unlink, wait, wait4. Reentrant syscall routines close, fork,
23378         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
23379         write.
23380         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
23381         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
23382         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
23383         write.S}: Define reentrant versions.
23384         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
23385         reentrant syscalls.
23386
23387         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
23388
23389         * libc/include/stdlib.h (RAND_MAX): Fix value.
23390
23391 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
23392
23393         * libc/sys/a29khif/_main.c: Removed unnecessary file.
23394         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
23395         VPATH support targets after all: target.
23396
23397         * stub/mvme135/mvme.S: Renamed exceptionhandler to
23398         exceptionHandler, which is what mvme135-stub.c expects.
23399
23400 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
23401
23402         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
23403
23404         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
23405         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
23406         compliant).
23407
23408 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
23409
23410         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
23411         first.
23412         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
23413         _r_write): Ditto.
23414         libc/reent/fstatr.c (_r_fstat): Ditto.
23415         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
23416         libc/reent/sbrkr.c (_r_sbrk): Ditto.
23417         libc/reent/statr.c (_r_stat): Ditto.
23418
23419         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
23420         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
23421         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
23422         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
23423         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
23424         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
23425         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
23426         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
23427         (__swrite): Ditto for _r_lseek, _r_write.
23428         (__sseek): Ditto for _r_lseek.
23429         (__close): Ditto for _r_close.
23430         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
23431
23432         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
23433         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
23434
23435         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
23436         to make reent_struct the first argument (and thus consistent with
23437         the rest of newlib).
23438
23439         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
23440         reference to __STDC__.
23441
23442 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
23443
23444         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
23445         global __cleanup.
23446
23447 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
23448
23449         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
23450         first.
23451         libc/stdio/fclose.c (fclose): Ditto.
23452
23453 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
23454
23455         * Run through indent and rename reentrant routines for ANSI.
23456         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
23457         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
23458         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
23459         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
23460         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
23461         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
23462         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
23463         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
23464         vsprintf.c wbuf.c wsetup.c local.h}
23465
23466         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
23467
23468         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
23469         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
23470         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
23471         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
23472         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
23473         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
23474
23475         * Run through indent.
23476         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
23477         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
23478         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
23479         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
23480         strxfrm.c}
23481
23482         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
23483         localtime.c mktime.c strftime.c time.c}:
23484         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
23485
23486         * Reformatting + renaming (for ANSI, GNU style, consistency).
23487         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
23488         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
23489         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
23490
23491 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
23492
23493         * libc/include/stdio.h (stdin_r): Fix.
23494
23495 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
23496
23497         * Makefile.in: Unexport some variables to keep GNU make from
23498         putting them in the environment and using up needed ARG_MAX space
23499         (a hack is used to let this work with older makes as well).
23500
23501 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
23502
23503         * Makefile.in: Use $(MAKE) rather than make.
23504         (MAKEOVERRIDES): Define to be empty.
23505         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
23506         (libc.a, libm.a): Depend on targ-include.
23507         * host/any (LD): Don't define.
23508         (INCLUDES): Use targ-include.
23509         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
23510         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
23511         * libc/Makefile.in: Use $(MAKE) rather than make.
23512         (MAKEOVERRIDES): Define to be empty.
23513         (FLAGS_TO_PASS): Don't pass LD (it's not used).
23514         (all): Rewrote to be slightly smaller.
23515         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
23516         Define to be empty.
23517         (FLAGS_TO_PASS): Don't pass LD (it's not used).
23518         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
23519
23520 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
23521
23522         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
23523         with errno/errno.c.
23524
23525 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
23526
23527         * Changes for reentrancy.
23528         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
23529         Use ptr->_errno, not errno.
23530         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
23531         libc/stdio/remove.c (remove_r): New function.
23532         libc/stdio/rename.c (rename_r): New function.
23533         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
23534         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
23535         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
23536         reentrant versions of system calls.
23537         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
23538         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
23539         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
23540         libc/stdio/findfp.c: Include <string.h>.
23541         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
23542         "local.h".
23543         libc/stdio/wbuf.c: Include "fvwrite.h"
23544
23545         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
23546         <string.h>.
23547         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
23548         (NULL): Don't define if already defined.
23549         libc/stdlib/system.c: Call reentrant versions of system calls.
23550         (system_r): New function.
23551
23552         * Changes for reentrancy.
23553         libc/include/_ansi.h (_PARAMS): New macro.
23554         libc/include/errno.h: Define errno as a macro that calls __errno.
23555         (__errno_r): New macro for reentrant code.
23556         libc/include/math.h: Include reent.h.  Declare many reentrant
23557         functions.
23558         (signgam): Now a macro, not a variable.
23559         (struct exception): Added err field.
23560         libc/include/reent.h: Don't declare __sglue.  Added function
23561         declarations.
23562         (struct reent_struct): Moved errno to beginning.  Added _signgam.
23563         libc/include/stdio.h, libc/include/stdlib.h: Added function
23564         declarations.
23565
23566         * More reentrancy hacking.
23567         libc/errno/errno.c (__errno): New function.
23568         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
23569         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
23570         files.
23571
23572         * Added many new reentrant functions to libm/math/*.
23573         libm/math/error.c (__matherror): Added reent_struct pointer
23574         argument. Changed all callers.
23575         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
23576         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
23577         libm/math/tan.h: Removed obsolete unused header files.
23578
23579         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
23580
23581         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
23582
23583 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
23584
23585         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
23586         delay slots.
23587
23588 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
23589
23590         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
23591
23592 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
23593
23594         * libc/reent/reent.tex:  New file.  (text from
23595         newlib/libc/libc.texinfo)
23596         * libc/stdio/tmpnam.c:  fixed doc typo
23597         * libc/stdlib/rand.c:   fixed doc typo
23598
23599 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
23600
23601         * libc/reent/reent.tex:  New file.  (text from
23602         newlib/libc/libc.texinfo)
23603
23604 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
23605
23606         support for reentrancy
23607         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
23608         new files
23609         * libc/errno/errno.c, libc/include/ieeefp.h,
23610         libc/include/locale.h, libc/include/reent.h,
23611         libc/include/signal.h, libc/include/stdio.h,
23612         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
23613         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
23614         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
23615         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
23616         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
23617         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
23618         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
23619         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
23620         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
23621         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
23622         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
23623         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
23624         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
23625         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
23626         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
23627         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
23628         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
23629         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
23630         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
23631         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
23632         libc/time/strftime.c: modify to provide reentracy.
23633
23634         new routines:
23635         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
23636         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
23637         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
23638         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
23639         mstats_r, realloc_r, localeconv_r, setlocale_r
23640
23641 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
23642
23643         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
23644         libc/include/sys/config.h, libc/include/sys/signal.h,
23645         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
23646         provided macros (such as m68000), use the ansi version
23647         (__m68000__) so that the library can be used with code compiled
23648         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
23649         and sparc.
23650
23651 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
23652
23653         * configure.in (sparc*): Don't set -fsoft-float for sparc
23654         configurations.  Do set -fsoft-float for sparclite configurations.
23655
23656 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
23657
23658         * default.menu, no-signal.menu: alternate forms of libc main menu
23659           (in newlib rather than newlib/libc due to configuration restrictions)
23660
23661         * configure.in: select one of the two menus above, link to
23662         libc.menu
23663
23664         * libc/libc.texinfo: include menu from separate file
23665
23666 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
23667
23668         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
23669         (info): Split long shell command in half.
23670         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
23671         sub-makes, just CHEW and TARGETDOC.
23672         (targetdep.tex): Removed now special handling of sys and machine
23673         subdirectories, made obsolete some time ago.
23674         * libc/machine/Makefile.in (doc): Don't pass everything to
23675         sub-make, just CHEW and TARGETDOC.
23676         (Makefile): New target.
23677         * libc/sys/Makefile.in (Makefile): New target.
23678
23679 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
23680
23681         * Makefile.in (here and most subdirectories): Only pass down CHEW
23682         and TARGETDOC when making info, not for other targets.
23683
23684         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
23685         $(AR_FLAGS) rather than $(ARUPDATE).
23686
23687 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
23688
23689         * Try to reduce command line length:
23690         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
23691         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
23692         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
23693         (info): Pass CHEW to other subdirs.
23694
23695 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
23696
23697         * configure.in: add signal_dir, like unix_dir, but by default it
23698         is set to "signal" so that a29khif can turn it off (since a29khif
23699         has raise() as part of machine-specific signal.s.)
23700
23701 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
23702
23703         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
23704         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
23705         correctly.
23706         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
23707         libc/stdio/vfprintf: type lint.
23708         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
23709         initialzation code.
23710         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
23711
23712 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
23713
23714         * stub/mvme135/mvme135-asm.S: new file.
23715         stub/mvme135mvme135-stub.c: moved all assembler routines into
23716         mvme135-asm.S.
23717         stub/mvme135/Makefile.in: build mvme135-stub.o.
23718
23719 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
23720
23721         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
23722         sub-Makefiles instead, to try to avoid line length limitations.
23723
23724 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
23725
23726         * libc/include/unistd.h (read, write):  Use void* instead of
23727         char*.
23728
23729 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
23730
23731         * stub/go32/resetpc: sample script to send a reset packet to the
23732         stub
23733
23734         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
23735         DOS environment, which compiles with Turbo C.
23736
23737         * stub/go32/DSER32.LNK: new file, linker commands for serial
23738         remote stub.
23739
23740         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
23741         start up message to identify version; call set_debug_traps.
23742
23743         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
23744         keyboard interaction); call handle_exception() in go_til_stop,
23745         rather than return, so that the remote stub gets control.
23746
23747         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
23748         rename, rather than mv), set flags that work with current Turbo C,
23749         including using the /3 flag; also, add commands to build dser32.
23750
23751         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
23752         default Turbo C installation (\tc rather than \usr)
23753
23754         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
23755         "&..."
23756
23757 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
23758
23759         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
23760
23761 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
23762
23763         * libc/stdio/cvt.c (licvt): new function to convert ints when
23764         sizeof(int) != sizeof(long).
23765
23766         * libc/include/stdio.h: added prototype for iprintf.
23767         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
23768
23769 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
23770
23771         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
23772         __REGISTER_PREFIX__.
23773
23774 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
23775
23776         * libc/sys/m68kbare: moved into stub directory.
23777
23778 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
23779
23780         * configure.in, Makefile.in: created new directory stub, to hold
23781         sample code for specific targets.
23782
23783 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
23784
23785         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
23786         in the unified libc/include/sys/fcntl.h.
23787
23788 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
23789
23790         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
23791         printed .01, not 0.01.
23792
23793 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
23794
23795         * configure.in: compile with -m68000 for m68* targets.
23796
23797 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
23798
23799         * libm/math/remainder.c (remainder): document the svr4 and sunos
23800         references used to construct the function.
23801
23802 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
23803
23804         * libm/math/remainder.c (rint, remainder): fix old typos.
23805         * libm/math/Makefile.in: actually build remainder.c (functions
23806         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
23807         page.)
23808
23809 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
23810
23811         * libc/string/bcopy.c: BSD version works on overlapping strings,
23812         so ours should too.
23813
23814         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
23815         ("SHELL").
23816
23817 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
23818
23819         * Makefile.in (docs): new target.
23820
23821 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
23822
23823         * libc/include/sys/times.h: define clock_t as required by POSIX.
23824         libc/include/time.h: protect clock_t from multiple definitions.
23825
23826 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
23827
23828         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
23829         does not need more than the original three iterations to get
23830         within 1 ulp. (Paranoia tests for rounding to better than that,
23831         but further iterations *don't* help, only more subtle changes
23832         can.)
23833
23834 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
23835
23836         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
23837         were doing nothing useful.
23838
23839 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
23840
23841         * configure.in: define MALLOC_PROVIDED for vxworks targets;
23842         removed sys_dir settings of vxworks68 and vxworks960.
23843         host/any: don't pass -nostdinc to gcc, since newlib no longer
23844         provides all required header files.
23845
23846         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
23847         is not defined; this provides a hook for VxWorks.
23848
23849 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
23850
23851         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
23852         buffer if buf is NULL, don't do it here -- it is already being
23853         done by makebuf elsewhere in stdio.
23854
23855 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
23856
23857         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
23858         that C programs can call functions without using initial
23859         underscores.
23860
23861 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
23862
23863         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
23864
23865 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
23866
23867         * configure.in: set TARGET_CFLAGS for certain CPU types to
23868         -msoft-float.
23869
23870 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
23871
23872         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
23873
23874 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
23875
23876         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
23877         m68k*-unknown-coff.
23878
23879 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
23880
23881         * libc/include/stdio.h: define __need___va_list before including
23882         <stdarg.h>, to avoid defining va_arg, et. al.
23883
23884 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
23885
23886         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
23887         (don't cd to the user's home directory).
23888
23889         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
23890         In general this is the wrong thing to do, but I can't get around
23891         GNU make's insistence on passing command line arguments any other
23892         way.
23893
23894 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
23895
23896         * configure.in: always configure the libc/sys directory, since it
23897         now provides a required documentation file.
23898
23899         * Makefile.in: replaced all instances of $(MAKE) with make.  In
23900         general this is the wrong thing to do, but I can't get around GNU
23901         make's insistence on passing command line arguments any other way.
23902
23903 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
23904
23905         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
23906         terminated.
23907
23908         * libc/stdio/local.h: include <stdarg.h> to define va_list.
23909         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
23910
23911         * libc/include/float.h, libc/include/stdarg.h,
23912         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
23913         versions instead.
23914         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
23915         <stdarg.h>, not from <machine/types.h>.  Protect definition of
23916         NULL.
23917         libc/include/time.h: get size_t from stddef.h.  Protect definition
23918         of NULL.
23919         libc/include/machine/limits.h: override gcc <limits.h> by defining
23920         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
23921         get correct INT_MIN and LONG_LONG values.
23922         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
23923         size_t or va_list at all; they're now gotten from stddef.h
23924         instead.
23925         libc/include/machine/varargs.h: removed; use gcc version instead.
23926         libc/include/sys/types.h: explicitly include <machine/types.h>.
23927
23928         * libm/math/sqrt.h: using the fp-bit routines appears to require
23929         more iterations.
23930
23931         * Makefile.in, host/any: let system include files override machine
23932         include files.
23933
23934 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
23935
23936         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
23937         override _*_T_ definitions defaulted here.
23938
23939 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
23940
23941         * Makefile.in (install): install the include files in
23942         $(tooldir)/include, not $(exec_prefix)/include.
23943
23944 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
23945
23946         * Makefile.in (install): fixed typo, and changed install to not
23947         force rebuild of libc.a and libm.a.
23948
23949 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
23950
23951         * libc/sys/a29khif/*: Changed all .include's to include
23952         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
23953         that they will be installed for the user.
23954
23955         * Makefile.in (all): create targ-include, a directory holding the
23956         machine and system specific header files during the build.
23957         (install): fixed installation of machine and system specific
23958         header files.
23959
23960         * Makefile.in: fixed comment.
23961         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
23962         we can pass $(INCLUDES) to it.
23963
23964 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
23965
23966         * libc/include/sys/param.h: new generic file, which may be
23967         overridden for specific systems.
23968
23969         * libc/include/sys/signal.h: define all ANSI signal names, and
23970         NSIG (which is not ANSI) for a29k.
23971
23972 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
23973
23974         * Makefile.in: don't pass down arguments the lower level makes
23975         will not need.
23976         * libc/Makefile.in: recurse directly, rather than using subdir_do,
23977         in hopes of avoiding argument length limits.
23978         * libm/Makefile.in: recurse directly, rather using subdir_do, in
23979         hopes of avoiding argument length limits.
23980
23981 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
23982
23983         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
23984         mode_t is defined.
23985
23986 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
23987
23988         * Fixed make info and make install-info for newlib, changing most
23989         Makefile.in and several *.tex files.  Moved doc directory from
23990         libc to top level.
23991
23992         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
23993         Should be rewritten.
23994
23995         * libc/string/strings.tex: renamed node index to node index
23996         function, so that it does not conflict with the top level index
23997         node.
23998
23999         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
24000
24001 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
24002
24003         * Overhauled general configuration for newlib.  Eliminated all
24004         target dependent Makefile fragments.  Create libraries in newlib
24005         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
24006         than CROSS_CC, et. al.  Broke make docs; will fix later.
24007
24008         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
24009         Should be rewritten.
24010
24011 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
24012
24013         * libc/configure.in: cleaned up somewhat; switch on ${target}
24014         rather than ${target_alias}.
24015         * libm/configure.in: cleaned up somewhat; switch on ${target}
24016         rather than ${target_alias}.
24017
24018         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
24019         * libc/include/ctype.h: marked _ctype_ as _CONST.
24020
24021         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
24022         _CONST.
24023
24024         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
24025         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
24026         libc/stdio/gets.c (gets): removed non-ANSI warning message.
24027         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
24028
24029         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
24030         bigtens, tinytens): marked arrays _CONST.
24031         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
24032         rather than a static variable.
24033
24034         * libc/time/asctime.c (asctime), libc/time/localtime.c
24035         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
24036         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
24037         mname_len, mname): Marked static arrays _CONST.
24038
24039         * libm/math/gamma.h: made local variables non-static.
24040
24041         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
24042         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
24043         _CONST.
24044
24045         * libm/math/constants.c: removed file, because the constants it
24046         defined were never referenced.
24047         libm/math/Makefile.in: removed references to constants.c.
24048         libm/math/mathimpl.h: removed declarations of constants.
24049
24050 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
24051
24052         * libc/include/machine/varargs.h: only call __builtin_saveregs if
24053         it is sensibly defined in libgcc2.  Checks preprocessor defines,
24054         which is not a good solution.
24055
24056         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
24057
24058         * libm/frexp.c: handle denormalized numbers as arguments.
24059
24060         * libm/math/Makefile.in: added some dependencies for .c files
24061         which include local .h files.
24062
24063 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
24064
24065         * libc/configure.in: set target_alias for OSE*.  Replace
24066         target_makefile_frag if it is blank.
24067
24068         * libc/Makefile.in: make sure everything is passed to subsidiary
24069         makes; create all directories when installing.
24070
24071         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
24072         CROSS_ARUPDATE instead of AR.
24073
24074         * libm/configure.in: set target_alias for OSE*.  Replace
24075         target_makefile_frag if it is blank.
24076
24077         * libm/Makefile.in: make sure everything is passed to subsidiary
24078         makes; create all directories when installing.
24079
24080 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
24081
24082         * add following change from libc copy.
24083
24084 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
24085
24086         * libc/libc.texinfo: make copyright disclaimers appear on back of
24087         title page; make format of same slightly less ugly; avoid using
24088         underbars in section headings (avoids nasty texinfo bug in table
24089         of contents).
24090
24091         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
24092           comments only) avoid using underbars in section headings
24093
24094         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
24095           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
24096           changes in comments only): shorten headings ieeefp/infinity.c,
24097           ieeefp/isnan.c: (doc, comments only) more informative headings
24098
24099         * libc/math/bessel.c: (doc, comments only) shorten heading
24100
24101         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
24102         (doc, comments only) shorten headings
24103
24104         * libc/time/localtime.c (doc, comments only): shorten headings
24105
24106         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
24107           isnan
24108           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
24109           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
24110           headings
24111           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
24112           only) more informative headings
24113         * libm/math/bessel.c: (doc, comments only) shorten heading
24114
24115 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
24116
24117         * .../Makefile.in: use CROSS_ARUPDATE consistently.
24118         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
24119         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
24120         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
24121         defined, the one from the .mt file will be correct.
24122         * libc/include/machine, libc/include/sys: created, and populated
24123         with common files from machine/*/machine. ifdefs were used for
24124         most, typically by handling exceptions first and then filling in
24125         defaults. Files with D.J. Delorie copyright #included rather than
24126         copied. Most files in include/sys really were the same in the
24127         original.
24128         * libc/include/...: cleaned up use of _EXFUN.
24129         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
24130         it with double quotes, not angles.
24131
24132 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
24133
24134         * libc/Makefile.in: always create installation directories.
24135
24136 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
24137
24138         * libc/configure.in: handle host properly (using canonical
24139         triples), better error message for the case of target not found
24140
24141 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
24142
24143         * libc/Makefile.in (insincdir): Ensure this directory exists
24144         before attempting installation.
24145
24146 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
24147
24148         * libc/stdlib/assert.c: now calls abort like it should
24149         * libc/sys/a29khif: many many patches for 29khif work
24150         * libc/machine/i386: gnulib2 expanded there.
24151
24152 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
24153
24154         Added accurate fp conversion routines to stdlib, moved dcvt from
24155         stdio to stdlib and called it ecvtbuf:
24156         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
24157         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
24158         routines
24159         * libc/libc.texinfo: Modifed to include the copyright info from
24160         the mprec files
24161         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
24162         * libc/test/ : many vector which tested for the implementation
24163         defined returns of strange conversion requests have been updated
24164         to relflect the new implementation
24165
24166 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
24167
24168         * libc/libc.texinfo: new chapter on variable arg lists
24169         (stdarg.h/varargs.h)
24170         * libc/libc.texinfo: new title
24171         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
24172         (doc only) shorter headings for better formatting.
24173
24174 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
24175
24176         * libc/libc.texinfo: three more info menu entries
24177         * libc/locale/locale.tex: new chapter
24178         * libc/locale/locale.c: new doc for setlocale, localeconv
24179         * libc/locale/Makefile.in: use new locale doc
24180         * libc/signal/signal.tex: new chapter
24181         * libc/signal/raise.c, libc/signal/signal.c: new doc
24182         * libc/signal/Makefile.in: use new doc
24183         * libc/time/time.tex: new chapter
24184         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
24185         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
24186         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
24187         * libc/time/Makefile.in: use new doc
24188
24189 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
24190
24191         * libm/math/log1p.c: split to use the new function way of float
24192         function definition. math/log1p.h deleted
24193         * libm/math/scalb.c: obsolete and deleted
24194         * libm/math/scalbn.c: created from part log1p.c
24195         * libm/math/Makefile.in: know about log1p and scalbn
24196
24197 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
24198
24199         * libc/ctype/isupper.c: revise doc;
24200           libc/ctype/ctype.tex: use doc from isupper.c
24201
24202         * libc/string/bzero.c: new doc
24203
24204 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
24205
24206         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
24207         new doc
24208         * libc/stdlib/Makefile.in: extract new doc
24209         * libc/stdlib/stdlib.tex: use new doc
24210
24211         * libc/string/strerror.c: expanded doc.
24212
24213         * libc/stdio/Makefile.in: extract doc from more files
24214         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
24215         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
24216         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
24217         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
24218         libc/stdio/vsprintf.c: new doc
24219         * libc/stdio/stdio.tex: use new doc
24220
24221 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
24222
24223         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
24224         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
24225         finitef functions.
24226         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
24227         time ago.
24228
24229         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
24230         * libc/stdio/setbuf.c: added ansi style definition.
24231         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
24232         buffer if none provided.
24233         * libc/stdio/tmpfile.c: lint
24234         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
24235         rather than using static, also make sure file isn't already
24236         present.  Uses P_tmpdir. (tempnam): rewritten to use new
24237         subroutine, and uses P_tmpdir.
24238         * libc/stdio/siprintf.c: created
24239
24240 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
24241
24242         Release 1.03 for NEC, major mods. Main differences from release
24243         1.02::
24244
24245         More tests in test/:
24246         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
24247         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
24248         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
24249         get/set mask, get/set sticky and get/set roundtoi.  Tests
24250         that setting the bits changes the way arithmetic is done.
24251         * string.c: added test to make sure memcmp does it with unsigned
24252         chars.
24253         * test.c: cleaned up and removed lint.
24254         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
24255         dvec.c: tests for string to value conversions,  sprintf, scanf,
24256         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
24257         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
24258         rounding in sprintf too.
24259         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
24260         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
24261         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
24262         and function form.
24263         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
24264         powf
24265
24266         In the library:
24267         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
24268         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
24269         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
24270         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
24271         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
24272         than sprintf.
24273         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
24274         * Method of producting float versions of double functions has
24275         changed, functions will be modified gradually. So far:
24276         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
24277         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
24278         altered
24279         * libc/string/memcmp.c: now uses unsigned chars
24280         * libc/string/bcmp.c, libc/string/strcpy.c,
24281         libc/stsring/strxfrm.c: fixed doc
24282         * libc/sys/sysvnecv70.tex: fix example of sbrk code
24283 \f
24284 Local Variables:
24285 version-control: never
24286 End: