]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/newlib-tumbl.git/blob - newlib/ChangeLog
c6a9758d75a11af8ff25f5a327bdfac2059af9ea
[fpga/lx-cpu1/newlib-tumbl.git] / newlib / ChangeLog
1 2012-11-29  Sebastian Huber <sebastian.huber@embedded-brains.de>
2
3         * libc/include/sys/reent.h (__sFILE): Change type of _offset
4         from int to _off_t.
5         * libc/stdio/ftell.c: Use _ftello_r().
6         * libc/stdio/ftello.c: Copy implementation from previous
7         _ftell_r().
8         * libc/stdio/fseek.c: Use _fseeko_r().
9         * libc/stdio/fseeko.c: Copy implementation from previous
10         _fseek_r().
11
12 2012-11-26  Sebastian Huber <sebastian.huber@embedded-brains.de>
13
14         * libc/include/inttypes.h: Add and use __INTTYPES_EXP().
15
16 2012-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17
18         * libm/machine/aarch64/configure.in: Change comment to say libm
19         instead of libc.
20
21 2012-11-12  Steve Ellcey  <sellcey@mips.com>
22
23         * libc/machine/mips/machine/asm.h: New.
24         * libc/machine/mips/machine/regdef.h: Update register definitions
25         for different ABI's.
26
27 2012-11-11  Christopher Faylor  <me.cygwin2012@cgf.cx>
28
29         * libc/include/sys/time.h: Avoid guarding other than timeval
30         declaration with _TIMEVAL_DEFINED.  Move timeval related macros under
31         _TIMEVAL_DEFINED control.
32
33 2012-11-01  Corinna Vinschen  <vinschen@redhat.com>
34
35         * libc/include/locale.h (NULL): Fetch definition via stddef.h.
36         * libc/include/stdio.h (NULL): Ditto.
37         * libc/include/stdlib.h (NULL): Ditto.
38         * libc/include/string.h (NULL): Ditto.
39         * libc/include/wchar.h (NULL): Ditto.
40         * libc/include/rpc/types.h (NULL): Ditto.
41         * libc/include/time.h (NULL): Ditto.  Include stddef.h earlier.
42
43 2012-10-27  Anthony Green  <green@moxielogic.com>
44
45         * libc/machine/moxie/setjmp.S (setjmp): Minor optimization.
46
47 2012-10-26  Corinna Vinschen  <vinschen@redhat.com>
48
49         * libc/include/sys/signal.h (sigset_t): Don't define when building
50         for Cygwin.
51
52 2012-10-24  Jeff Johnston  <jjohnstn@redhat.com>
53
54         * configure.in: Comment out the --enable-newlib-fp-hw option
55         as the mathfp library is inaccurate and should not be used.
56         * Makefile.am: Add comment regarding the mathfp directory.
57         * configure: Regenerated.
58         * Makefile.in: Ditto.
59         * libm/mathfp/README: New file that details why the mathfp
60         directory is not used.
61
62 2012-10-22  Jon TURNEY  <jon.turney@dronecode.org.uk>
63
64         * libc/include/string.h (strdup, strndup): Declare if not
65         __STRICT_ANSI__ or _XOPEN_SOURCE is defined appropriately.
66
67 2012-10-22  Jon TURNEY  <jon.turney@dronecode.org.uk>
68
69         * libc/include/stdlib.h (strtof, strtoll, strtoull, strtold):Prototype
70         if not __STRICT_ANSI__ or stdc version C99 or greater.
71
72 2012-10-21  Hans-Peter Nilsson  <hp@bitrange.com>
73
74         * libc/sys/mmixware/sbrk.c (_sbrk): Drop unused extern declaration
75         of "end".  Mark allocated memory by applying PRELD.
76
77 2012-10-16  Gregory Pietsch  <gpietsch@comcast.net>
78
79         * libc/stdlib/getopt.c (getopt_internal): Align handling of colon to
80         SUSv4 requirements.
81         (__getopt_long_r): Fix formatting.
82
83 2012-10-16  Corinna Vinschen  <vinschen@redhat.com>
84
85         * libc/stdio/vfprintf.c (__sbprintf): Fix comment.
86
87 2012-10-16  Aurelien Jacobs  <aurel@gnuage.org>
88
89         * libc/include/assert.h (static_assert): Define.
90
91 2012-10-16  Corinna Vinschen  <vinschen@redhat.com>
92
93         * libc/include/sys/features.h (__GNUC_PREREQ): Define.  Use
94         throughout in place of explicit GNUC version checks.
95         * libc/include/_ansi.h (_NOINLINE): Define.
96         (_NOINLINE_STATIC): Define.
97         * libc/stdio/vfprintf.c (__sbprintf): Define _NOINLINE_STATIC.
98
99 2012-10-09  Peter Rosin  <peda@lysator.liu.se>
100
101         * libc/posix/wordfree.c (wordfree): The wrong words are freed
102         when WRDE_DOOFFS is in use. Restructure the code so that the memory
103         needed to be freed is instead kept in an internal linked list...
104         * libc/posix/wordexp2.h: ...as defined here...
105         * libc/posix/wordexp.c (wordexp): ...and build this internal
106         linked list here, avoiding wasteful strdup calls in the process.
107
108 2012-10-09  Peter Rosin  <peda@lysator.liu.se>
109
110         * libc/posix/wordexp.c (wordexp): Return WRDE_NOSPACE on resource
111         allocation failure. Cleanup leftover resources when failing.
112
113 2012-10-09  Peter Rosin  <peda@lysator.liu.se>
114
115         * libc/posix/wordexp.c (wordexp): Handle expanded words longer
116         than 500 bytes.
117
118 2012-10-09  Peter Rosin  <peda@lysator.liu.se>
119
120         * libc/posix/wordexp.c (wordexp): Don't leak file streams.
121
122 2012-10-03  DJ Delorie  <dj@redhat.com>
123
124         * libc/machine/rl78/setjmp.S: Convert from CPP macros to GAS
125         macros, to avoid dependence on the line separation character.
126
127 2012-10-01  DJ Delorie  <dj@redhat.com>
128
129         * libc/sys/sysnecv850/sbrk.c (_sbrk): Change heap_start to be an
130         array of undefined size, to avoid problems when compiled with
131         -msda=4.
132
133 2012-10-01  Jeff Johnston  <jjohnstn@redhat.com>
134
135         * README: replace sources.redhat.com with sourceware.org.
136         * HOWTO: Ditto.
137
138 2012-09-26  Ian Bolton  <ian.bolton@arm.com>
139         Jim MacArthur  <jim.macarthur@arm.com>
140         Marcus Shawcroft  <marcus.shawcroft@arm.com>
141         Nigel Stephens  <nigel.stephens@arm.com>
142         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
143         Richard Earnshaw  <rearnsha@arm.com>
144         Sofiane Naci  <sofiane.naci@arm.com>
145         Tejas Belagod  <tejas.belagod@arm.com>
146         Yufeng Zhang  <yufeng.zhang@arm.com>
147
148         * configure.host: Add AArch64.
149         * libc/include/machine/ieeefp.h: Add AArch64.
150         * libc/include/machine/setjmp.h: Add AArch64.
151         * libc/include/machine/time.h: Add AArch64.
152         * libc/include/sys/config.h: Add AArch64.
153         * libc/machine/aarch64/Makefile.am: New file.
154         * libc/machine/aarch64/Makefile.in: Generated.
155         * libc/machine/aarch64/aclocal.m4: Generated.
156         * libc/machine/aarch64/configure: Generated.
157         * libc/machine/aarch64/configure.in: New file.
158         * libc/machine/aarch64/setjmp.S: New file.
159         * libc/machine/configure.in: Add AArch64.
160         * libc/machine/configure: Re-generated.
161         * libm/machine/aarch64/Makefile.am: New file.
162         * libm/machine/aarch64/Makefile.in: Generated.
163         * libm/machine/aarch64/aclocal.m4: Generated.
164         * libm/machine/aarch64/configure: Generated.
165         * libm/machine/aarch64/configure.in: New file.
166         * libm/machine/aarch64/s_ceil.c: New file.
167         * libm/machine/aarch64/s_floor.c: New file.
168         * libm/machine/aarch64/s_fma.c: New file.
169         * libm/machine/aarch64/s_fmax.c: New file.
170         * libm/machine/aarch64/s_fmin.c: New file.
171         * libm/machine/aarch64/s_llrint.c: New file.
172         * libm/machine/aarch64/s_llround.c: New file.
173         * libm/machine/aarch64/s_lrint.c: New file.
174         * libm/machine/aarch64/s_lround.c: New file.
175         * libm/machine/aarch64/s_nearbyint.c: New file.
176         * libm/machine/aarch64/s_rint.c: New file.
177         * libm/machine/aarch64/s_round.c: New file.
178         * libm/machine/aarch64/s_trunc.c: New file.
179         * libm/machine/aarch64/sf_ceil.c: New file.
180         * libm/machine/aarch64/sf_floor.c: New file.
181         * libm/machine/aarch64/sf_fma.c: New file.
182         * libm/machine/aarch64/sf_fmax.c: New file.
183         * libm/machine/aarch64/sf_fmin.c: New file.
184         * libm/machine/aarch64/sf_llrint.c: New file.
185         * libm/machine/aarch64/sf_llround.c: New file.
186         * libm/machine/aarch64/sf_lrint.c: New file.
187         * libm/machine/aarch64/sf_lround.c: New file.
188         * libm/machine/aarch64/sf_nearbyint.c: New file.
189         * libm/machine/aarch64/sf_rint.c: New file.
190         * libm/machine/aarch64/sf_round.c: New file.
191         * libm/machine/aarch64/sf_trunc.c: New file.
192         * libm/machine/configure.in: Add AArch64.
193         * libm/machine/configure: Re-generated.
194
195 2012-09-26  Michael Hope  <michael.hope@linaro.org>
196
197         * doc/makedoc.c (dup_): Rename to avoid colliding with dup(2). 
198
199 2012-09-13  Anthony Green  <green@moxielogic.com>
200
201         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Add bi-endian
202         support for moxie.
203
204 2012-08-23  Christopher Faylor  <me.cygwin2012@cgf.cx>
205
206         * libc/stdio/flags.c (__sflags): Guard against using O_BINARY on
207         systems which do not provide it.
208
209 2012-08-21  Christopher Faylor  <me.cygwin2012@cgf.cx>
210
211         * libc/stdio/flags.c (__sflags): Rewrite recognition of extended mode
212         flags to just loop over more allowed flags.  Support glibc 'e' flag on
213         systems defining _GLIBC_EXTENSION.  Support C11 'x' flag.
214
215 2012-08-10  Corinna Vinschen  <vinschen@redhat.com>
216
217         * libc/stdlib/btowc.c (btowc): Cast to avoid compiler warning.
218         * libc/search/hash_buf.c (__get_buf): Initialize local vars to avoid
219         compiler warning.
220         * libc/stdio/fgets.c (_fgets_r): Ditto.
221         * libc/time/strftime.c (strftime): Ditto.
222
223 2012-08-10  Corinna Vinschen  <vinschen@redhat.com>
224
225         * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Fix guard around state to
226         allow usage in !FLOATING_POINT && _WANT_IO_C99_FORMATS case.
227
228 2012-08-08  Eric Blake  <eblake@redhat.com>
229
230         * libc/posix/engine.c(dissect): Guard diagnostic pragma for right
231         versions of GCC only.
232         * libc/string/strcasestr.c: Ditto.
233
234 2012-08-08  Corinna Vinschen  <vinschen@redhat.com>
235
236         Throughout, run newlib with -Wall -Werror option and fix bugs and
237         compiler warnings found this way.
238
239         * libc/stdio/freopen.c (_freopen_r): Fix bug setting _flags.
240
241         * libc/include/stdio.h (_rename): Define when building newlib.
242         * libc/include/sys/signal.h (_kill): Ditto.
243         * libc/include/sys/stat.h (_mkdir): Ditto.
244         * libc/include/sys/time.h (_gettimeofday): Ditto.
245         * libc/include/sys/times.h (_times): Ditto.
246         * libc/include/sys/wait.h (_wait): Ditto.
247         * libc/locale/lmessages.c (empty): Don't define for Cygwin.
248         * libc/locale/lmonetary.c (cnv): Ditto.
249         * libc/locale/nl_langinfo.c (nl_langinfo): Ditto for variable s.
250         * libc/posix/collate.c: Throughout cast to avoid compiler warning.
251         * libc/posix/engine.c (matcher): Initialize dp to avoid compiler
252         warning.
253         (dissect): Deliberately silence gcc compiler warning.  Add comment to
254         explain why.
255         * libc/posix/glob.c: Disable on Cygwin.  Explain why.
256         * libc/posix/regcomp.c: Fix "uninitialized" compiler warnings.
257         * libc/posix/wordexp.c (wordexp): Remove num_bytes variable since result
258         is never used.
259         * libc/posix/popen.c (popen): Ditto for variable last.
260         * libc/reent/mkdirr.c: Include sys/stat.h.
261         * libc/reent/renamer.c: Include stdio.h.
262         * libc/search/hash.c:  Throughout use underscored variants of the stat
263         function family.
264         (init_hash): Add missing definition for the __USE_INTERNAL_STAT64 case.
265         * libc/search/hash_bigkey.c (__big_insert): Add parenthesis to avoid
266         compiler warning.
267         * libc/search/hash_page.c (overflow_page): Initalize freep to NULL to
268         avoid compiler warning.
269         * libc/stdio/asiprintf.c (_asiprintf_r): Cast unsigned char * to char *
270         to avoid compiler warning.
271         (asiprintf): Ditto.
272         * libc/stdio/asprintf.c (_asprintf_r): Ditto.
273         (asprintf): Ditto.
274         * libc/stdio/vasiprintf.c (_vasiprintf_r): Ditto.
275         * libc/stdio/vasprintf.c (_vasprintf_r): Ditto.
276         * libc/stdio/mktemp.c (_gettemp): Cast to unsigned char in call to
277         isdigit to avoid compiler warning.
278         * libc/stdio/vfprintf.c (_VFPRINTF_R): Initialize variables used for
279         grouping to avoid compiler warning.  Only define and set nseps and
280         nrepeats if they are really used.
281         * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Ditto.  Only define state if
282         it is really used.
283         * libc/stdio/vfscanf.c (u_char): Revert to be defined as unsigned char.
284         (__SVFSCANF_R): Cast fmt in call to __mbtowc.
285         * libc/stdlib/mbtowc_r.c (JIS_state_table): Disable when building
286         Cygwin.
287         (JIS_action_table): Ditto.
288         * libc/stdlib/wctomb_r.c (__utf8_wctomb): Add parenthesis to avoid
289         compiler warning.
290         * libc/string/strcasestr.c: Deliberately silence gcc compiler warning.
291         Add comment to explain why.
292         * libc/time/strptime.c (strptime): Cast to unsigned char in calls to
293         isspace to avoid compiler warning.
294         * libm/math/e_atan2.c (__ieee754_atan2): Add parenthesis to avoid
295         compiler warning.
296         * libm/math/e_exp.c (__ieee754_exp): Initialize k to 0 to avoid
297         compiler warning.  Drop setting it to 0 later.
298         * libm/math/ef_exp.c (__ieee754_expf): Ditto.
299         * libm/math/e_pow.c (__ieee754_pow): Add braces to avoid compiler
300         warning.
301         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
302         * libm/math/er_lgamma.c (__ieee754_lgamma_r): Initialize nadj to 0 to
303         avoid compiler warning.
304         * libm/math/erf_lgamma.c (__ieee754_lgammaf_r): Ditto.
305         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Ditto for variable z.
306         * libm/common/sf_round.c (roundf): Remove signbit variable since result
307         is never used.
308
309 2012-08-07  Corinna Vinschen  <vinschen@redhat.com>
310
311         * libc/stdlib/mprec.h (Storeinc): Add parenthesis to avoid compiler
312         warning.
313
314 2012-07-30  Kevin Buettner  <kevinb@redhat.com>
315
316         * libc/sys/sysnecv850/crt0.S (_start): Use v850e-specific
317         start up code for v850e2 and v850e2v3 too.
318
319 2012-07-20  Eric Blake  <eblake@redhat.com>
320
321         * libc/posix/readdir.c (readdir): Drop bogus attempt to catch
322         bogus pointers.
323
324 2012-07-18  Ralf Corsépius  <ralf.corsepius@rtems.org>
325
326         * libc/sys/rtems/machine/_types.h (_ssize_t): Use signed int for
327         __v850__, __851__.
328
329 2012-07-17  Ralf Corsépius  <ralf.corsepius@rtems.org>
330
331         * libc/search/hcreate_r.c (hdestroy_r): #ifdef 0 unused vars ie, idx.
332
333 2012-07-16  Ralf Corsépius  <ralf.corsepius@rtems.org>
334
335         * libc/posix/telldir.c: Conditionally build dd_hash_lock.
336
337 2012-07-13  Ralf Corsépius  <ralf.corsepius@rtems.org>
338
339         * libc/sys/rtems/machine/_types.h (_ssize_t): Add __ARM_EABI__,
340         __v850__, __851__.
341
342 2012-07-09  Corinna Vinschen  <vinschen@redhat.com>
343
344         * libc/stdio/fileno.c (fileno): Check if f is a valid stream.  If not,
345         return -1 and set errno to EBADF per POSIX.
346
347 2012-07-06  Corinna Vinschen  <vinschen@redhat.com>
348
349         Allow building of Cygwin using Mingw64 SDK headers:
350         * libc/include/sys/time.h: Drop _WINSOCK_H guard.  Just use
351         _TIMEVAL_DEFINED instead.
352         * libc/include/sys/types.h: Check for _WINSOCKAPI_ along with
353         _WINSOCK_H.
354         * libc/include/sys/unistd.h: Ditto.
355
356 2012-06-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
357
358         * doc/Makefile.am (makedoc): Use LDFLAGS_FOR_BUILD not LDFLAGS.
359         * doc/Makefile.in: Regenerate.
360
361 2012-06-26  Christopher Faylor  <me.newlib2012@cgf.cx>
362
363         * libc/include/sys/types.h: Don't use the same preprocessor guard for
364         time_t, timespec, and itimerspec.  Add a separate guard specifically
365         for timespec and always unconditionally define itimerspec.
366
367 2012-06-05  Corinna Vinschen  <vinschen@redhat.com>
368
369         * libc/stdio/findfp.c (__sinit): Avoid infinite recursion on
370         _REENT_SMALL targets.  Add comment to explain.
371
372 2012-05-31  Corinna Vinschen  <vinschen@redhat.com>
373
374         * libc/stdio/local.h (_newlib_sfp_lock_exit): Fix typo in non-pthread
375         version.
376
377 2012-05-30  Corinna Vinschen  <vinschen@redhat.com>
378
379         * libc/stdio/fgetws.c (_fgetws_r): Call _mbsnrtowcs_r rather than
380         _mbsrtowcs_r and restrict number of wide chars to n - 1.
381
382 2012-05-30  Corinna Vinschen  <vinschen@redhat.com>
383
384         * libc/stdio/local.h (_newlib_flockfile_start): New macro to
385         secure stream related critical section against thread cancellation.
386         (_newlib_flockfile_exit): Ditto.
387         (_newlib_sfp_lock_end): Ditto.
388         (_newlib_sfp_lock_start): Ditto for the list of streams.
389         (_newlib_sfp_lock_exit): Ditto.
390         (_newlib_sfp_lock_end): Ditto.
391         Use aforementioned macros in place of _flockfile/_funlockfile
392         and __sfp_lock_acquire/__sfp_lock_release throughout the code.
393         * libc/stdio/fclose.c: Explicitely disable and re-enable thread
394         cancellation.  Explain why.
395         * libc/stdio/freopen.c: Ditto.
396         * libc/stdio64/freopen64.c: Ditto.
397
398 2012-05-21  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
399
400         * libc/machine/cr16/sys/asm.h: Added some missing instructions
401         and removed few unsupported instructions of cr16 target.
402
403 2012-05-10  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
404
405         * libc/include/string.h (memrchr): Declare.
406         * libc/string/Makefile.am (ELIX_4_SOURCES): Add memrchr.c.
407         (CHEWOUT_FILES): Add memrchr.def.
408         * libc/string/Makefile.in: Regenerate.
409         * libc/string/memrchr.c: New file.
410
411 2012-05-10  Joel Sherrill <joel.sherrill@oarcorp.com>
412
413         * libc/sys/rtems/machine/_types.h: Add Microblaze.
414
415 2012-05-09  Joel Sherrill <joel.sherrill@oarcorp.com>
416
417         * libc/sys/rtems/crt0.c: Add stubs for access(), ftruncate(),
418         _getpid_r(), geteuid(), getgid, _getgid_r, getpid(), getppid(),
419         and _getpid_r().
420
421 2012-05-03  Greta Yorsh  <Greta.Yorsh@arm.com>
422
423         * testsuite/newlib.string/strcmp-1.c (LONG_TEST): New macro.
424         (MAX_BLOCK_SIZE): Use small value when LONG_TEST is not set.
425         (MAX_DIFF, MAX_LEN, MAX_ZEROS) Likewise.
426
427 2012-03-29  Corinna Vinschen  <vinschen@redhat.com>
428
429         * libc/locale/locale.c (__mb_cur_max): On Cygwin, align default value
430         with default UTF-8 charset.
431
432 2012-03-26  Corinna Vinschen  <vinschen@redhat.com>
433
434         * libc/stdio/findfp.c (__sinit): Set __sdidinit last.
435
436 2012-03-09  Jeff Johnston  <jjohnstn@redhat.com>
437
438         * libc/include/machine/setjmp-dj.h: Modify license to include
439         modification in clause as permitted by DJ Delorie.
440         * libc/machine/arm/access.c: Ditto.
441         * libc/machine/i386/setjmp.S: Ditto.
442         * libc/sys/h8300hms/sys/file.h: Ditto.
443         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
444         * libc/sys/sysmec/access.c: Ditto.
445         * libc/sys/sysnecv850/access.c: Ditto.
446
447 2012-03-02  Jeff Johnston  <jjohnstn@redhat.com>
448
449         * libc/posix/readdir_r.c: Fix return code when end of
450         directory is reached.
451
452 2012-02-23  Dan Egnor  <egnor@ofb.net>
453
454         * configure.host: Accept "arm*" host spec instead of just "arm".
455
456 2012-02-21  Jeremy Bennett  <jeremy.bennett@embecosm.com>
457             Alan Lehotsky  <apl@alum.mit.edu>
458             Joern Rennecke  <joern.rennecke@embecosm.com>
459
460         * configure.host: Add Epiphany support.
461         * libc/include/machine/ieeefp.h: Likewise.
462         * libc/include/machine/setjmp.h: Likewise.
463         * libc/machine/configure.in, libc/sys/configure.in: Likewise.
464         * libc/machine/configure, libc/sys/configure: Regenerate.
465         * libc/machine/epiphany, libc/sys/epiphany: New directories.
466         * NEWS: Mention addition of Epiphany.
467
468 2012-02-15  Christopher Faylor  <me.newlib2012@cgf.cx>
469
470         * configure.host: Fix typo: xdir_dir -> xdr_dir.
471
472 2012-02-09  Eric Blake  <eblake@redhat.com>
473
474         * libc/include/_ansi.h (_ELIDABLE_INLINE): Fix C99 mode.
475
476 2012-02-09  Sebastian Huber <sebastian.huber@embedded-brains.de>
477
478         * libc/sys/rtems/sys/utime.h: Include <sys/types.h> to provide a
479         definition of time_t.
480
481 2012-02-08  Greta Yorsh  <Greta.Yorsh@arm.com>
482
483         * libc/machine/arm/strcmp.S: New File.
484         * libc/machine/arm/strcmp.c: Deleted.
485         * libc/machine/arm/Makefile.am: Replaces strcmp.c with strcmp.S
486         * libc/machine/arm/Makefile.in: Regenerated.
487         * testsuite/newlib.string/strcmp-1.c: New file.
488
489 2012-02-07  Corinna Vinschen  <vinschen@redhat.com>
490
491         * libc/include/inttypes.h: Redefine pointer type macros.
492
493 2012-01-13  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
494
495         * libc/stdio/sprintf.c: Document 'm' conversion specifier.
496         * libc/stdio/swprintf.c: Ditto.
497         * libc/stdio/vfprintf.c (_VFPRINTF_R) [_GLIBC_EXTENSION]: Handle 'm'
498         conversion specifier.
499         * libc/stdio/vfwprintf.c (_VFWPRINTF_R) [_GLIBC_EXTENSION]: Ditto.
500
501 2012-01-12  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
502
503         * libc/include/tgmath.h: New header.
504
505 2012-01-09  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
506
507         * libc/include/sys/unistd.h [__CYGWIN__] (get_current_dir_name):
508         Declare.
509
510 2012-01-09  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
511
512         * libc/include/complex.h: Fix "/*" within comment warning.
513
514 2012-01-09  Corinna Vinschen  <vinschen@redhat.com>
515
516         * libc/include/process.h: Remove Cygwin-only header.
517
518 2012-01-03  Viachaslau Kulakouski  <Viachaslau.Kulakouski@oracle.com>
519
520         * libc/stdlib/__atexit.c: Refer to __atexit_lock instead of lock.
521
522 2011-12-20  Aleksandr Platonov  <pam@oktetlabs.ru>
523
524         * libc/stdio/fvwrite.c (__sfvwrite_r): Set __SMBF flag to avoid double 
525         free in fclose.  Enhance comment.
526
527 2011-12-19  Jeff Johnston  <jjohnstn@redhat.com>
528
529         * NEWS: Update with 1.20.0 info.
530         * README: Ditto.
531         * acinclude.m4: Change version number to 1.20.0.
532         * aclocal.m4: Regenerated.
533         * configure: Ditto.
534         * Makefile.in: Regenerated.
535         * doc/aclocal.m4: Ditto.
536         * doc/configure: Ditto.
537         * libc/*/aclocal.m4: Ditto.
538         * libc/*/configure: Ditto.
539         * libc/libc.texinfo: Ditto.
540         * libm/*/aclocal.m4: Ditto.
541         * libm/*/configure: Ditto.
542         * libm/libm.texinfo: Ditto.
543         * libc/sys/linux/shared.ld: Add VERS_1.20
544
545 2011-12-13  Richard Earnshaw  <rearnsha@arm.com>
546             Thomas Klein  <th.r.klein@web.de>
547
548         * libc/sys/arm/crt0.S: Manually set the target architecture
549         when compiling for Thumb1 on EABI targets.
550         Don't use SWI on M-profile cores.
551         Avoid v6-only Thumb-1 MOV instruction.
552
553 2011-12-12  Akio Idehara  <zbe64533@gmail.com>
554
555         * libc/time/strftime.c (get_era_info): Fix off-by-one error in month
556         calculation.
557
558 2011-12-06  Chris Johns  <chrisj@rtems.org>
559
560         * libc/iconv/Makefile.am (stmp-def): Use $(MAKE) rather than make.
561         * libc/iconv/Makefile.in: Regenerate.
562
563 2011-11-28  DJ Delorie  <dj@redhat.com>
564
565         * configure.host: Add rl78.
566         * libc/include/machine/ieeefp.h: Add rl78 support.
567         * libc/include/machine/setjmp.h: Add rl78 support.
568         * libc/machine/configure.in: Add rl78.
569         * libc/machine/rl78: New directory.
570         * MAINTAINERS (rl78): Add myself as RL78 maintainer.
571
572 2011-11-08  Corinna Vinschen  <vinschen@redhat.com>
573
574         * libc/iconv/ccs/Makefile.am: Add missing backslash.
575         * libc/iconv/ccs/Makefile.in: Regenerate.
576
577 2011-10-18  Dr David Alan Gilbert  <david.gilbert@linaro.org>
578
579         * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memchr-stub.c,
580         memchr.S.
581         * libc/machine/arm/arm_asm.h: Add ifdef to allow it to be included
582         in .S files.
583         * libc/machine/arm/memchr-stub.c: New file - just selects what to
584         compile.
585         * libc/machine/arm/memchr.S: New file - ARMv6t2/v7 version.
586
587         * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add strlen-armv7.S.
588         * libc/machine/arm/strlen-armv7.S: New file.
589         * libc/machine/arm/strlen.c: Add ifdef optimised code so it isn't
590         for v7 or 6t2.
591
592         * libc/machine/arm/Makefile.in: Regenerate.
593
594 2011-10-11  Steven Abner <pheonix@zoomtown.com>
595
596         * libc/time/mktm_r.c: (__tzcalc_limits) Fix Julian day calculation.
597         * libc/time/mktime.c: (mktime) Fix tm_yday, tm_mday updating when
598         timezone causes roll over.
599
600 2011-10-10  Nick Clifton  <nickc@redhat.com>
601
602         * libc/sys/arm/crt0.S: Synchronise with libgloss version.
603         * libc/sys/arm/arm.h: Imported from libgloss.
604
605 2011-10-04  Greta Yorsh  <Greta.Yorsh@arm.com>
606
607         * testsuite/newlib.string/memcpy-1.c: New test.
608
609 2011-10-04  Nick Clifton  <nickc@redhat.com>
610
611         * libc/machine/arm/memcpy.S: Fix unaligned access copying.
612
613 2011-09-29  Greta Yorsh  <Greta.Yorsh@arm.com>
614
615         * libc/machine/arm/memcpy.S: New file.  Contains a hand coded
616         memcpy function optimized for the cortex-a15.
617         * libc/machine/arm/memcpy-stub.c: New file.
618         * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memcpy-stub.c,
619         memcpy.S.
620         * libc/machine/arm/Makefile.in: Regenerate.
621
622 2011-09-08  Jeff Johnston  <jjohnstn@redhat.com>
623
624         * testsuite/lib/flags.exp: Add logic to add the
625         srcdir include directory to compile flags.
626
627 2011-08-26  Steven Abner  <pheonix@zoomtown.com>
628
629         * libc/time/mktm_r.c (_mktm_r): Fix previous fix.
630
631 2011-08-24  Corinna Vinschen  <vinschen@redhat.com>
632
633         * libc/time/mktm_r.c (_mktm_r): Fix computing tm_year.
634
635 2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>
636
637         * libc/stdlib/putenv_r.c: Use "strchr" instead of obsolete "index".
638         * libc/stdlib/setenv_r.c: Use "memcpy" instead of obsolete "bcopy".
639
640 2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>
641
642         * libc/misc/ffs.c, libc/string/bcmp.c, libc/string/bcopy.c,
643         libc/string/bzero.c, libc/string/index.c, libc/string/rindex.c,
644         libc/string/strcasecmp.c, libc/string/strncasecmp.c:
645         Let synopsis reference "#include <strings.h>".
646
647 2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>
648
649         * libc/posix/regexec.c: Define "nope" only #ifndef NDEBUG.
650         * libc/stdio/vfscanf.c: Define "state" only #ifdef _MB_CAPABLE.
651         * libc/string/wcwidth.c: Include <wctypes.h> for "iswprint" and
652         "iswcntrl".
653
654 2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>
655
656         * libc/sys/rtems/include/limits.h: Compute SSIZE_MAX based on
657         __SIZE_MAX__, __SIZEOF_SIZE_T__ and __CHAR_BIT__.
658
659 2011-08-22  Ralf Corsépius <ralf.corsepius@rtems.org>
660
661         * libc/string/index.c: Include <strings.h> for "index".
662         * libc/string/rindex.c: Include <strings.h> for "rindex".
663         * libc/string/strcasecmp.c: Include <strings.h> for "strcasecmp".
664         Don't include <string.h>.
665         * libc/string/strncasecmp.c: Include <strings.h> for "strncasecmp".
666         Don't include <string.h>.
667         * libc/string/bzero.c: Include <strings.h> for "bzero".
668         Don't include <string.h>
669         * libc/misc/ffs.c: Include <strings.h> for "ffs".
670         Don't include <_ansi.h>.
671
672 2011-08-19  Ralf Corsépius <ralf.corsepius@rtems.org>
673
674         * libc/sys/rtems/crt0.c: Rework RTEMS_STUB macro.
675         Include <unistd.h>.
676         Remove C++-style comments.
677         Remove hppa, a29k.
678         Add clock_gettime, gettimeofday, sched_yield.
679
680 2011-08-19  Ralf Corsépius <ralf.corsepius@rtems.org>
681
682         * libc/stdio/vasiprintf.c: Include "local.h" for "_svfiprintf_r".
683         * libc/stdio/vasprintf.c Include "local.h" for "_svfprintf_r".
684         * libc/stdio/vsiprintf.c: Include "local.h" for "_svfiprintf_r".
685         * libc/stdio/vsniprintf.c: Include "local.h" for "_svfiprintf_r".
686         * libc/stdio/vsnprintf.c: Include "local.h" for "_svfprintf_r"
687         * libc/stdio/vsprintf.c: Include "local.h" for "_svfprintf_r"
688
689 2011-08-19  Ralf Corsépius <ralf.corsepius@rtems.org>
690
691         * libc/string/bcmp.c: Include <strings.h> for "bcmp".
692         * libc/string/bcopy.c: Include <strings.h> for "bcopy".
693         * libc/string/strcasestr.c: Include <strings.h> for "strncasecmp".
694         * libc/time/strptime.c: Include <strings.h> for "strncasecmp".
695
696 2011-08-19  Corinna Vinschen  <vinschen@redhat.com>
697
698         * libc/include/process.h: Remove exec family function declarations.
699         Add comment.
700         * libc/include/sys/unistd.h (execlpe): Declare for Cygwin.
701
702 2011-08-19  Craig Howland  <howland@LGSInnovations.com>
703
704         * libc/time/mktime.c (validate_structure): Account for tm_mon possibly
705         being given as negative.
706         (mktime): Set tm_isdst=0 when !daylight.
707
708 2011-08-01  Sebastian Huber <sebastian.huber@embedded-brains.de>
709
710         * libc/include/sys/types.h: XML and RTEMS define
711         _UNIX98_THREAD_MUTEX_ATTRIBUTES and can use the standard
712         definitions. This avoids redefinition warnings.
713
714 2011-07-26  Ralf Corsépius <ralf.corsepius@rtems.org>
715
716         * libc/sys/rtems/sys/dirent.h (scandir):
717         Add const to "select" parameter.
718
719 2011-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
720
721         * libc/iconv/iconv.tex: Rename node "Introduction" into
722         "Introduction to iconv".
723
724 2011-07-20  Yaakov Selkowitz  <yselkowitz@...>
725
726         * libc/include/time.h [_POSIX_CLOCK_SELECTION] (clock_nanosleep):
727         Declare.
728         * libc/include/sys/features.h [__CYGWIN__] (_POSIX_CLOCK_SELECTION):
729         Define.
730
731 2011-07-19  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
732
733         * libc/include/sys/unistd.h (_CS_XBS5_WIDTH_RESTRICTED_ENVS): Define.
734         (_CS_V6_ENV): Fix definition.
735
736 2011-07-19  Ralf Corsépius <ralf.corsepius@rtems.org>
737
738         * libc/locale/lmessages.c (_C_messages_locale):
739         Move __HAVE_LOCALE_INFO_EXTENDED__ before codeset.
740
741 2011-07-19  Matt Johnson  <johnso87@crhc.illinois.edu>
742
743         * libc/reent/sbrkr.c: Define _sbrk_r independently of the definition
744         of MALLOC_PROVIDED.
745
746 2011-07-15  Yufeng Zhang  <yufeng.zhang@arm.com>
747
748         * libc/stdio/vfwprintf.c (wcvt): Add a new parameter len of type
749         int.  *length is set to the value of (rev - digits) regardless
750         of whether _MB_CAPABLE is defined or not.  Replace BUF with len
751         in calling _mbsnrtowcs_r and also in the loop where _MB_CAPABLE
752         is not defined.
753         (_VFWPRINTF_R): Call wcvt with an extra argument.  Call wcvt
754         again with allocated new buffer if buf is not large enough for
755         the conversion.
756         * testsuite/newlib.stdio/stdio.exp: New.
757         * testsuite/newlib.stdio/swprintf.c: Likewise.
758
759 2011-07-15  Matt Johnson  <johnso87@crhc.illinois.edu>
760
761         * libc/stdio/fscanf.c (fscanf): Call _vfscanf_r instead of __svfscanf_r
762         to make sure CHECK_INIT is called.
763         (_fscanf_r): Ditto.
764         * /libc/stdio/scanf.c (scanf): Ditto.
765         (_scanf_r): Ditto.
766         * libc/stdio/fwscanf.c (fwscanf): Call _vfwscanf_r instead of
767         __svfwscanf_r to make sure CHECK_INIT is called.
768         (_fwscanf_r): Ditto.
769         * libc/stdio/wscanf.c (wscanf): Ditto.
770         (_wscanf_r): Ditto.
771
772 2011-07-13  Hans-Peter Nilsson <hp@axis.com>
773
774         * libm/complex/cacos.c: Use temporaries and correct sequencing
775         error in previous reordering change.
776
777 2011-06-25  Andreas Becker  <becker@se-elektronic.de>
778
779         * libc/time/mktime.c (mktime): Lock global timezone info while
780         accessing it.
781
782 2011-06-14  Philip Munts  <phil@munts.net>
783
784         * libc/time/asctime_r.c (asctime_r): Replace call to sprintf with call
785         to siprintf.
786         * libc/time/strftime.c: Define snprintf to sniprintf in multibyte case.
787         * libc/time/tzset_r.c: Define sscanf to siscanf.
788
789 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
790
791         * configure.host: Don't handle ep9312, strongarm, xscale and thumb
792         target names.
793         * libc/machine/configure.in: Don't handle xscale target names.
794         * libc/machine/configure: Regenerate.
795
796 2011-06-14  Craig Howland <howland@LGSInnovations.com>
797
798         * libc/time/tzset_r.c (tzset_r):  Correct behavior for changing from
799         non-GMT to GMT, when un-setting TZ.  Set _timezone and _daylight even
800         if no DST is given in TZ.
801
802 2011-06-13  Eric Blake  <eblake@redhat.com>
803
804         * libc/stdio/wsetup.c (__swsetup_r): Set errno on failure.
805         * libc/stdio/fvwrite.c (__sfvwrite_r): Simplify.
806         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
807         * libc/stdio/local.h (cantwrite): Adjust comment.
808
809 2011-06-09  Yaakov Selkowitz  <yselkowitz@...>
810
811         * libc/include/string.h (strdupa): New macro function.
812         (strndupa): New macro function.
813
814 2011-05-27  Nick Clifton  <nickc@redhat.com>
815
816         * libc/sys/sysnecv850/sbrk.c (_sbrk): Tidy code.
817         Base start of heap on the "heap_start" symbol.
818
819 2011-05-25  Eric Blake  <eblake@redhat.com>
820
821         * libc/string/strerror.c (_strerror_r): Report "Success" for 0.
822
823 2011-05-25  Eric Blake  <eblake@redhat.com>
824
825         * libc/string/strerror.c (strerror): Split body into...
826         (_strerror_r): ...new reentrant function.
827         * libc/string/u_strerr.c (_user_strerror): Update signature.
828         * libc/include/string.h (_strerror_r): New prototype.
829         * libc/posix/collate.c (__collate_err): Adjust callers.
830         * libc/stdio/perror.c (_perror_r): Likewise.
831         * libc/string/strerror_r.c (strerror_r): Likewise.
832         * libc/string/xpg_strerror_r.c (__xpg_strerror_r): Likewise.
833
834 2011-05-19  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
835
836         * libc/include/stdio_ext.h: New header.
837         * libc/stdio/fpurge.c [!__rtems__] (__fpurge): New function.
838
839 2011-05-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
840
841         * Makefile.am (install-data-local): Fix condition and rm call.
842         * Makefile.in: Regenerate.
843
844 2011-05-16  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
845
846         * libc/include/time.h (CLOCK_PROCESS_CPUTIME_ID): Rename from
847         CLOCK_PROCESS_CPUTIME.
848         (CLOCK_THREAD_CPUTIME_ID): Rename from CLOCK_THREAD_CPUTIME.
849         * libc/include/sys/features.h [__CYGWIN__] (_POSIX_CPUTIME): Define.
850         (_POSIX_THREAD_CPUTIME): Define.
851
852 2011-05-16  Christian Bruel  <christian.bruel@st.com>
853
854         * libc/stdlib/strtod.c (_strtod_r): Fix nf/nd counts to not exceed
855         DBL_DIG.
856
857 2011-05-15  Corinna Vinschen  <vinschen@redhat.com>
858
859         * libc/include/sys/features.h (_POSIX_THREAD_ATTR_STACKADDR): Define
860         to 200112L for Cygwin.
861
862 2011-05-12  Peter Rosin  <peda@lysator.liu.se>
863
864         * libc/time/strptime.c (strptime): Fill in tm_yday when all of tm_year,
865         tm_mon and tm_mday are updated. Fill in tm_mon, tm_mday and tm_wday
866         when both of tm_year and tm_yday are updated.
867
868 2011-05-12  Peter Rosin  <peda@lysator.liu.se>
869
870         * libc/time/strptime.c (first_day): Actually return the wday
871         of the first day of the year.
872
873 2011-05-10  Corinna Vinschen  <vinschen@redhat.com>
874
875         * libc/locale/lmessages.c (_C_messages_locale): Add missing comma.
876
877 2011-05-04  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
878
879         * libc/include/signal.h (psignal): Declare.
880         * libc/sys/linux/psignal.c: Move from here...
881         * libc/signal/psignal.c: ... to here. Document.
882         * libc/sys/linux/Makefile.am (GENERAL_SOURCES): Move psignal.c from here...
883         * libc/signal/Makefile.am (LIB_SOURCES): ... to here.
884         (CHEWOUT_FILES): Add psignal.def.
885         * libc/sys/linux/Makefile.in: Regenerate.
886         * libc/signal/Makefile.in: Ditto.
887         * libc/signal/signal.tex: Add references to psignal.
888
889 2011-05-04  Corinna Vinschen  <vinschen@redhat.com>
890
891         * libc/locale/lmessages.h (__messages_load_locale): Declare.  Remove
892         accidental declaration of __numeric_load_locale.
893         * libc/locale/locale.c: Include timelocal.h to get declaration of
894         __time_load_locale.
895         (__set_locale_from_locale_alias): Fix return type.
896         (__locale_msgcharset): Avoid compiler warnings.
897         (_localeconv_r): Ditto.
898
899 2011-05-04  Andy Koppe  <andy.koppe@gmail.com>
900
901         * libc/locale/locale.c (current_categories): On Cygwin, set LC_CTYPE 
902         to C.UTF-8 to match initial __wctomb and __mbtowc settings.
903         (lc_ctype_charset): On Cygwin, initialize to "UTF-8".
904         (loadlocale): Remove unused Cygwin-specifc code.
905
906 2011-05-02  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
907
908         * libc/include/sys/features.h [__CYGWIN__] (_POSIX_SPIN_LOCKS): Define.
909         * libc/include/sys/types.h: Cygwin provides its own pthread_spinlock_t
910         typedef.
911
912 2011-04-19  Corinna Vinschen  <vinschen@redhat.com>
913
914         * libc/include/sys/signal.h (_sig_func_ptr): Define with int parameter
915         per POSIX.  Explain in comment.
916
917 2011-04-15  Eric Blake  <eblake@redhat.com>
918
919         * libc/string/strchrnul.c (strchrnul): Fix strchrnul.
920
921 2011-03-27  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
922
923         * libc/include/string.h (strchrnul): Declare.
924         * libc/string/strchrnul.c: New file.
925         * libc/string/Makefile.am (ELIX_2_SOURCES): Add strchrnul.c.
926         * libc/string/Makefile.in: Regenerate.
927
928 2011-03-23  Nick Clifton  <nickc@redhat.com>
929
930         * libc/machine/frv/setjmp.S: Fix typo in .size directive.
931
932 2011-03-21  Kevin Buettner  <kevinb@redhat.com>
933
934         * libc/sys/sysnecv850/trap.S (___trap0): Fix errno handling.
935         * libc/sys/sysnecv850/rename.c: New file.
936         * libc/sys/sysnecv850/Makefile.am (lib_a_SOURCES): Add rename.c
937         * libc/sys/sysnecv850/Makefile.in: Regenerate.
938         * libc/sys/sysnecv850/fstat.c (_fstat): Invoke trap for SYS_fstat.
939         * libc/sys/sysnecv850/unlink.c (_unlink): Invoke trap for SYS_unlink.
940
941 2011-03-03  Corinna Vinschen  <vinschen@redhat.com>
942
943         * libc/include/string.h: Include sys/cdefs.h.
944
945 2011-03-03  Corinna Vinschen  <vinschen@redhat.com>
946
947         * libc/include/sys/cdefs.h (__CONCAT1): Define.
948         (__CONCAT): Define.
949         (__STRING): Define.
950         (__XSTRING): Define.
951         (__ASMNAME): Define.
952         * libc/include/string.h (strerror_r): Use __ASMNAME to take target
953         specific label prefixes into account.
954
955 2011-03-01  Aaron Landwehr <snaphat@gmail.com>
956
957         * libm/complex/cproj.c: Fix typo.
958         * libm/complex/cprojf.c: Ditto.
959
960 2011-02-22  Corinna Vinschen  <vinschen@redhat.com>
961
962         * libc/stdio/fmemopen.c (fmemopen): Fix EINVAL condition.  Avoid SEGV
963         if incoming buffer is NULL.
964
965 2011-02-09  Eric Blake  <eblake@redhat.com>
966
967         * libc/include/string.h (strerror_r): Update declaration.
968         * libc/string/strerror.c (strerror): Update documentation.
969         * libc/string/strerror_r.c (strerror_r): Always return
970         NUL-terminated string; don't overwrite too-short buf.
971         * libc/string/xpg_strerror_r.c (__xpg_strerror_r): Implement POSIX
972         variant.
973         * libc/string/Makefile.am (GENERAL_SOURCES): Build new file.
974         * libc/string/Makefile.in: Regenerate.
975
976 2011-01-28  Corinna Vinschen  <vinschen@redhat.com>
977
978         * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic
979         changes of flags and fp lock.
980         * libc/stdio/freopen.c: Ditto.
981         * libc/stdio64/freopen64.c: Ditto.
982         * libc/stdio/fgetc.c: Revert change from 2009-04-24, remove sfp locks
983         which guard entire function to avoid potential deadlocks when using
984         stdio functions in multiple thraeds.
985         * libc/stdio/fgets.c: Ditto.
986         * libc/stdio/fgetwc.c: Ditto.
987         * libc/stdio/fgetws.c: Ditto.
988         * libc/stdio/fread.c: Ditto.
989         * libc/stdio/fseek.c: Ditto.
990         * libc/stdio/getc.c: Ditto.
991         * libc/stdio/getdelim.c: Ditto.
992         * libc/stdio/gets.c: Ditto.
993         * libc/stdio/vfscanf.c: Ditto.
994         * libc/stdio/vfwscanf.c: Ditto.
995
996         * libc/stdio/fflush.c (_fflush_r): Split out core functionality into
997         new function __sflush_r.  Just lock file and call __sflush_r from here.
998         * libc/stdio/fwalk.c (_fwalk): Remove static helper function and move
999         functionality back into main function. Don't walk a file with flags
1000         value of 1.  Add comment.
1001         (_fwalk_reent): Ditto.
1002         * libc/stdio/local.h (__sflush_r): Declare.
1003         * libc/stdio/refill.c (__srefill): Before calling fwalk, set flags
1004         value to 1 so this file pointer isn't walked.  Revert flags afterwards
1005         and call __sflush_r for this fp if necessary.  Add comments.
1006
1007 2011-01-27  Corinna Vinschen  <vinschen@redhat.com>
1008
1009         * libc/include/sys/features.h: Define __STDC_ISO_10646__ for Cygwin.
1010         * libc/include/wchar.h: Include features.h.
1011
1012 2011-01-15  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1013
1014         * libc/include/sys/types.h (ulong): Add typedef.
1015
1016 2011-01-12  Ralf Corsépius  <ralf.corsepius@rtems.org>
1017
1018         * libm/math/w_tgamma.c: Only build ifndef _DOUBLE_IS_32BITS.
1019         * libm/math/wf_tgamma.c: Map tgamma to tgammaf, ifdef _DOUBLE_IS_32BITS.
1020
1021 2011-01-12  Jeff Johnston  <jjohnstn@redhat.com>
1022
1023         * configure.host: Add noinclude variable to allow specification
1024         of header files to remove from installation.
1025         * acinclude.m4: Provide NO_INCLUDE_LIST variable based on
1026         noinclude variable in configure.host.
1027         * configure: Regenerated.
1028         * Makefile.am: Remove all header files in NO_INCLUDE_LIST.
1029         * Makefile.in: Regenerated.
1030
1031 2011-01-12  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1032
1033         * libc/sys/linux/sys/signal.h (sig_t): Move from here...
1034         * libc/include/signal.h (sig_t): ...to here.
1035
1036 2011-01-10  Corinna Vinschen  <vinschen@redhat.com>
1037
1038         * libc/machine/mips/strlen.c (strlen): Add delay slot for R3000.
1039
1040 2011-01-10  Joel Sherrill <joel.sherrill@oarcorp.com>
1041
1042         * libc/include/string.h: Make strsignal() available unconditionally.
1043
1044 2011-01-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
1045
1046         * libc/sys/rtems/crt0.c: Adjust free() and calloc() to match their
1047         public decls.
1048
1049 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
1050
1051         * Makefile.am: Move cleaning targ-include to clean-local.
1052         * Makefile.in: Regenerate.
1053
1054 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
1055
1056         * libc/stdio/open_memstream.c (internal_open_memstream_r):
1057         Don't limit c->max to 64*1024 on targets with SIZE_MAX < 64*1024.
1058
1059 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
1060
1061         * libc/xdr/xdr.c: Fix typos in #errors.
1062
1063 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
1064
1065         * libc/xdr/xdr_private.h: Include <stdint.h>
1066         * libc/xdr/xdr_rec.c: Include limits.h
1067
1068 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
1069
1070         * libc/Makefile.am (SUBDEFS): Remove redundant posix/stmp-def.
1071         * libc/Makefile.in: Regenerate.
1072
1073 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
1074
1075         * libc/configure.in: Remove redundant posix_dir processing.
1076         * libc/configure: Regenerate.
1077
1078 2010-12-31  Ralf Corsepius  <ralf.corsepius@rtems.org>
1079
1080         * MAINTAINERS: Change corinna@vinchen.de to corinna@vinschen.de.
1081
1082 2010-12-26  Christopher Faylor  <me+cygwin@cgf.cx>
1083
1084         * libc/include/sys/errno.h (program_invocation_name): Declare.
1085         (program_invocation_short_name): Ditto.
1086
1087 2010-12-16  Jeff Johnston  <jjohnstn@redhat.com>
1088
1089         * NEWS: Update with 1.19.0 info.
1090         * README: Ditto.
1091         * MAINTAINERS: Update.
1092         * acinclude.m4: Change version number to 1.19.0.
1093         * aclocal.m4: Regenerated.
1094         * configure: Ditto.
1095         * Makefile.am: Fix stmp-targ-include target.
1096         * Makefile.in: Regenerated.
1097         * doc/aclocal.m4: Ditto.
1098         * doc/configure: Ditto.
1099         * libc/*/aclocal.m4: Ditto.
1100         * libc/*/configure: Ditto.
1101         * libc/libc.texinfo: Ditto.
1102         * libm/*/aclocal.m4: Ditto.
1103         * libm/*/configure: Ditto.
1104         * libm/libm.texinfo: Ditto.
1105         * libc/sys/linux/shared.ld: Add VERS_1.19
1106
1107 2010-12-14  Jeff Johnston  <jjohnstn@redhat.com>
1108
1109         * Makefile.am: Add support to copy all sub-directories of the
1110         sys/SYS_DIR/include directory, if they contain header files.
1111         * Makefile.in: Regenerated.
1112
1113 2010-12-08  Jeff Johnston  <jjohnstn@redhat.com>
1114
1115         * libm/mathfp/sf_logarithm.c: Change isfinitef reference to isfinite.
1116
1117 2010-12-08  Ralf Corsepius <ralf.corsepius@rtems.org>
1118
1119         * include/sys/types.h: Add #if defined(__rtems__) around
1120         pthread_attr_t.guardsize.
1121
1122 2010-12-08  Joel Sherrill <joel@OARcorp.com>
1123
1124         * include/pthread.h: Add pthread_attr_setstack, pthread_attr_getstack,
1125         pthread_attr_getguardsize, pthread_attr_setguardsize.
1126         * include/sys/types.h (pthread_attr_t): Add guardsize.
1127
1128 2010-12-08  Corinna Vinschen  <corinna@vinschen.de>
1129
1130         * libc/include/strings.h: Don't include locale.h.
1131
1132 2010-12-07  Eric Blake  <eblake@redhat.com>
1133
1134         * libc/include/strings.h: Don't declare removed functions when
1135         requesting POSIX 2008 compliance.
1136
1137 2010-12-07  Jeff Johnston  <jjohnstn@redhat.com>
1138
1139         * libc/stdlib/strtod.c (_strtod_r): Fix code to handle case whereby
1140         _DOUBLE_IS_32BITS is set and DBL_DIGS is 6 instead of 15.
1141
1142 2010-12-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
1143
1144         * libc/include/strings.h: New (split-out from string.h).
1145
1146 2010-12-03  Craig Howland <howland@LGSInnovations.com>
1147
1148         * libc/include/math.h: Missing from previous checkin.
1149
1150 2010-12-02  Craig Howland <howland@LGSInnovations.com>
1151
1152         * libm/common/s_log2.c:  Change from using M_LOG2_E to M_LN2 define
1153         (from math.h--the latter is POSIX, the former non-standard).
1154         * libm/common/sf_log2.c:  Ditto.  Change cast for M_LN2 from float to
1155         float_t (in case all math not done in float).
1156         * libc/include/math.h:  Ditto (same 2 things as sf_log2.c).
1157
1158 2010-12-02  Jayant Sonar  jayant.sonar@kpitcummins.com
1159             Kaushik Phatak  kaushik.phatak@kpitcummins.com
1160
1161         * configure.host: Add CR16 support.
1162         * libc/include/machine/ieeefp.h: Ditto.
1163         * libc/include/machine/setjmp.h: Ditto.
1164         * libc/include/sys/config.h: Ditto.
1165         * libc/machine/configure.in: Ditto
1166         * libc/machine/configure: Regenerated
1167         * libc/machine/cr16/aclocal.m4: New.
1168         * libc/machine/cr16/configure.in: New
1169         * libc/machine/cr16/configure: New
1170         * libc/machine/cr16/getenv.c: New
1171         * libc/machine/cr16/Makefile.am: New
1172         * libc/machine/cr16/Makefile.in: New
1173         * libc/machine/cr16/setjmp.S: New
1174         * libc/machine/cr16/sys/asm.h: New
1175         * libc/machine/cr16/sys/libh.h: New
1176         * libc/machine/cr16/sys/syscall.h: New
1177
1178 2010-11-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
1179
1180         * libm/complex/catan.c, libm/complex/catanf.c,
1181         libm/complex/ctan.c, libm/complex/ctanf.c:
1182         Use HUGE_VAL instead of MAXNUM.
1183
1184 2010-11-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
1185
1186         * libm/complex/cargf.c: Use crealf instead of creal.
1187
1188 2010-11-19  Andy Koppe <andy.koppe@gmail.com>
1189
1190         * libc/locale/locale.c (loadlocale): Recognise the "cjknarrow"
1191         modifier on "C.<charset>" locales too.
1192
1193 2010-11-18  Andy Koppe <andy.koppe@gmail.com>
1194
1195         * libc/locale/locale.c (loadlocale): Fix width of CJK ambigous
1196         characters to 1 for singlebyte charsets and 2 for non-Unicode
1197         multibyte charsets. Change documentation accordingly.
1198
1199 2010-11-17  Bernd Schmidt  <bernds@codesourcery.com>
1200
1201         * configure.host (newlib_cflags): For tic6x, add -DCLOCK_PROVIDED.
1202
1203 2010-11-16  Andrew Makhorin <mao@gnu.org>
1204
1205         * libc/machine/i386/setjmp.S (longjmp): Per POSIX, return 1 if second
1206         argument is 0.
1207
1208 2010-11-16  Ralf Corsépius  <ralf.corsepius@rtems.org>
1209
1210         * libc/include/sys/types.h: Add _mode_t for __rtems__.
1211         * libc/sys/rtems/machine/_types.h: Provide _mode_t, _fpos_t, _off_t.
1212         Add _ssize_t for 64bit sparc.
1213         Let arm, i386, m68k, mips, PPC, sparc use 64bit _off_t, _fpos_t.
1214
1215 2010-11-16  Ralf Corsépius  <ralf.corsepius@rtems.org>
1216
1217         * configure.host: Add -D_COMPILING_NEWLIB to newlib_cflags.
1218
1219 2010-11-04  Ralf Corsépius  <ralf.corsepius@rtems.org>
1220
1221         * libm/complex/cacos.c: Reorder function calls to work around ICE
1222         in arm/thumb-gcc.
1223
1224 2010-10-27  Maurice Baijens  <maurice.baijens@ellips.nl>
1225
1226         * libc/stdlib/strtol.c: Make sure signed characters are not
1227         sign-extended when converted to int and passed to ctype macros.
1228         * libc/stdlib/strtoul.c: Ditto.
1229         * libc/stdlib/strtoll_r.c: Ditto.
1230         * libc/stdlib/strtoull_r.c: Ditto.
1231
1232 2010-10-18  Marco Atzeri  <marco_atzeri@yahoo.it>
1233
1234         * libm/Makefile.am: added complex functions documentation
1235         * libm/libm.texinfo: ditto
1236         * libm/complex/Makefile.am: Ditto
1237         * libm/complex/complex.tex: Ditto
1238         * libm/complex/(cabs.c, cacos.c, cacosh.c, carg.c,
1239         casin.c, casinh.c, catan.c, catanh.c, ccos.c, ccosh.c,
1240         cexp.c, cimag.c, clog.c, conj.c, cpow.c, cproj.c, creal.c,
1241         csin.c, csinh.c, csqrt.c, ctan.c, ctanh.c): Ditto
1242         * libm/Makefile.in: Regenerate
1243         * libm/complex/Makefile.in: Ditto 
1244
1245 2010-10-14  Craig Howland <howland@LGSInnovations.com>
1246
1247         * libc/include/math.h:  Delete cabs() and cabs() prototypes
1248         (c.f. 2010-10-08 change by Corinna).
1249
1250 2010-10-08  Bernd Schmidt  <bernds@codesourcery.com>
1251         Joseph Myers  <joseph@codesourcery.com>
1252
1253         * configure.host: Handle tic6x targets.
1254         * libc/include/machine/ieeefp.h: Define endianness for C6X.
1255         * libc/include/machine/setjmp.h: Add __TMS320C6X__ case.
1256         * libc/machine/configure.in: Handle tic6x targets.
1257         * libc/machine/configure: Regenerate.
1258         * libc/machine/tic6x/Makefile.am, libc/machine/tic6x/configure.in,
1259         libc/machine/tic6x/setjmp.S: New.
1260         * libc/machine/tic6x/Makefile.in, libc/machine/tic6x/aclocal.m4,
1261         libc/machine/tic6x/configure: New (generated).
1262
1263 2010-10-08  Ralf Corsépius  <ralf.corsepius@rtems.org>
1264
1265         * libc/include/sys/unistd.h: Declare getsid, setegid, seteuid for RTEMS.
1266
1267 2010-10-08  Ralf Corsépius  <ralf.corsepius@rtems.org>
1268
1269         * libm/common/sf_llrint.c, libm/common/sf_round.c: Add explicit casts
1270         to __uint32_t to avoid overflows on implicit casts.
1271
1272 2010-10-08  Ralf Corsépius  <ralf.corsepius@rtems.org>
1273
1274         * libm/complex/complex.tex: Add empty stub.
1275
1276 2010-10-08  Corinna Vinschen  <corinna@vinschen.de>
1277
1278         * libm/math/w_cabs.c: Delete.
1279         * libm/math/wf_cabs.c: Delete.
1280         * libm/math/Makefile.am (src): Remove w_cabs.c.
1281         (fsrc): Remove wf_cabs.c.
1282         * libm/math/Makefile.in: Regenerate.
1283
1284 2010-10-08  Marco Atzeri  <marco_atzeri@yahoo.it>
1285
1286         * libc/include/complex.h: New complex header.
1287         * libm/common/fdlibm.h: Added ifdef _COMPLEX_H.
1288         * libm/complex/*: New complex functions imported from NetBSD.
1289         * libm/Makefile.am: Added complex subdir.
1290         * libm/Makefile.in: Regenerate.
1291         * libm/configure.in: Added complex subdir.
1292         * libm/configure: Regenerate.
1293
1294 2010-10-06  Eric Blake  <eblake@redhat.com>
1295
1296         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
1297         periodic needle having false positive.  Affects memmem, strstr,
1298         strcasestr.
1299
1300 2010-09-21  Craig Howland <howland@LGSInnovations.com>
1301
1302         * libc/string/memcpy.c: Do not assign size_t parameter to int.
1303         Use parameter directly, instead.
1304         * libc/string/memccpy.c:  Likewise.
1305         * libc/string/mempcpy.c:  Likewise.
1306         * libc/string/memmove.c:  Likewise.
1307
1308 2010-09-09  Kevin Buettner  <kevinb@redhat.com>
1309
1310         * libc/sys/sysnecv850/Makefile.am (lib_a_SOURCES): Provide an
1311         empty definition.
1312         * libc/sys/sysnecv850/Makefile.in: Regenerate.
1313
1314 2010-08-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1315
1316         * libc/posix/opendir.c (opendir): Fix potential memory leak.
1317
1318 2010-08-10  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1319
1320         * libc/include/sys/dir.h: New BSD-compatibility header.
1321
1322 2010-08-02  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1323
1324         * libc/include/sys/features.h: Define _POSIX_MONOTONIC_CLOCK for Cygwin.
1325
1326 2010-08-06  Corinna Vinschen  <corinna@vinschen.de>
1327
1328         * libc/include/sys/stat.h: Move all POSIX-defined symbolic constants
1329         out of `#ifndef _POSIX_SOURCE' guard.
1330
1331 2010-08-03  Craig Howland <howland@LGSInnovations.com>
1332
1333         * libm/common/s_lrint.c (lrint):  Annotate shift operations with
1334         possible shift amount ranges, and use SAFE_RIGHT_SHIFT to avoid
1335         undefined behaviour.
1336         * libm/common/s_llrint.c (llrint):  Likewise.
1337         * libm/common/s_lround.c (lround):  Correct some comments on ranges.
1338         * libm/common/s_llround.c (llround):  Likewise.
1339
1340 2010-07-30  Anthony Green  <green@moxielogic.com>
1341
1342         * libc/sys/rtems/machine/_types.h: Add moxie support.
1343
1344 2010-07-23  Naveen.H.S  <naveenh1@kpitcummins.com>
1345             Gina Verlekar <gina.verlekar@kpitcummins.com>
1346
1347         * configure.host: Compact v850* support and add
1348         check for newlib_may_supply_syscalls.
1349         * libc/sys/sysnecv850/Makefile.am: Add support for
1350         '--disable-newlib-supplied-syscalls' option.
1351         * libc/sys/sysnecv850/Makefile.in: Regenerated.
1352
1353 2010-07-20  Dave Korn  <dave.korn.cygwin@gmail.com>
1354
1355         * libm/common/fdlibm.h (SAFE_LEFT_SHIFT): New macro definition.
1356         (SAFE_RIGHT_SHIFT): Likewise.
1357         * libm/common/s_llround.c (llround): Annotate shift operations with
1358         possible shift amount ranges, and use SAFE_RIGHT_SHIFT to avoid
1359         undefined behaviour.
1360         * libm/common/s_lround.c (lround): Likewise.
1361
1362 2010-07-19  Eric Blake  <eblake@redhat.com>
1363
1364         * libc/stdio/mktemp.c (_gettemp): Add parameter, all callers
1365         changed.
1366         (mkostemp, _mkostemp_r, mkostemps, _mkostemps_r): New interfaces,
1367         for ELIX level 4.
1368         * libc/include/stdlib.h (mktemp): Avoid namespace issues.
1369         (mkostemp, mkostemps): Declare.
1370
1371 2010-07-13  Corinna Vinschen  <corinna@vinschen.de>
1372
1373         * libc/include/signal.h (sighandler_t): Only define if _POSIX_SOURCE
1374         is undefined.
1375
1376 2010-07-06  Corinna Vinschen  <corinna@vinschen.de>
1377
1378         * libc/posix/rewinddir.c (rewinddir): Remove incorrect cast to off_t.
1379         * libc/sys/rtems/sys/dirent.h (_seekdir): Add prototype.
1380         * libc/sys/linux/sys/dirent.h (_seekdir): Fix prototype to use long
1381         rather than off_t.
1382
1383 2010-07-01  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1384
1385         * libc/include/signal.h (sighandler_t): Add typedef.
1386
1387 2010-06-29  Antony King  <antony.king@st.com>
1388
1389         * libc/ctype/ctype_.c (__ctype_ptr): Reinstate definition (guarded by
1390         _NEED_OLD_CTYPE_PTR_DEFINITION) for backwards compatibility with newlib
1391         1.16.0 and earlier.
1392
1393 2010-06-28  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1394
1395         * libc/include/sys/stat.h: Add ACCESSPERMS, ALLPERMS, and DEFFILEMODE.
1396
1397 2010-06-18  Pavel Pisa <ppisa4lists@pikron.com>
1398
1399         * libc/include/machine/ieeefp.h[__arm__][!__VFP_FP__]: Set to
1400         __IEEE_BIG_ENDIAN and set __IEEE_BYTES_LITTLE_ENDIAN appropriately
1401         based on __ARMEL flag.
1402         * libc/include/machine/endian.h: To set byte order to LITTLE_ENDIAN,
1403         check for __IEEE_LITTLE_ENDIAN or __IEEE_BYTES_LITTLE_ENDIAN.
1404
1405 2010-06-09  Paul Brook  <paul@codesourcery.com>
1406
1407         * libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be
1408         binary compatible with normal layout.
1409         (_REENT_INIT): Adjust to match struct layout.
1410
1411 2010-06-08  Jeff Johnston  <jjohnstn@redhat.com>
1412
1413         * libc/include/wordexp.h: Add __cplusplus wrapper.
1414
1415 2010-06-08  Jeff Johnston  <jjohnstn@redhat.com>
1416
1417         * configure.in: Add test for enable-newlib-register-fini
1418         to set the _WANT_REGISTER_FINI flag.
1419         * configure: Regenerated.
1420         * Makefile.in: Ditto.
1421         * newlib.hin: Add _WANT_REGISTER_FINI flag.
1422         * libc/stdlib/__call_atexit.c: Add test for
1423         _WANT_REGISTER_FINI to enable the register_fini function.
1424
1425 2010-06-04  Mark Mitchell  <mark@codesourcery.com>
1426
1427         * libc/stdlib/__call_atexit.c (__libc_fini): Declare.
1428         (register_fini): New function.
1429         * libc/misc/init.c (_fini): Remove.
1430         (__libc_fini_array): Likewise.
1431         * libc/misc/fini.c: New file.
1432         * libc/misc/Makefile.am (LIB_SOURCES): Add fini.c.
1433         * libc/misc/Makefile.in: Regenerate.
1434
1435 2010-05-31  Kazu Hirata  <kazu@codesourcery.com>
1436
1437         * libc/stdlib/mallocr.c (malloc_extend_top): Backport the
1438         difference between versions 2.6.4 and 2.6.5.
1439
1440 2010-05-18  Christopher Faylor  <me+cygwin@cgf.cx>
1441
1442         * libc/string/strsignal.c (strsignal): Avoid duplicate case statement
1443         where SIGPWR == SIGLOST.
1444
1445 2010-05-11  Jeff Johnston  <jjohnstn@redhat.com>
1446
1447         * libc/stdlib/__call_atexit.c: Fix lock to be of type
1448         _LOCK_RECURSIVE_T as recursive usage is needed.
1449
1450 2010-05-11  Jeff Johnston  <jjohnstn@redhat.com>
1451
1452         * libc/locale/locale.c (loadlocale): Fix dangling
1453         switch statement caused by __HAVE_LOCALE_INFO__ not being
1454         defined.
1455
1456 2010-05-11  Joel Sherrill <joel.sherrill@oarcorp.com>
1457
1458         * libc/string/strsignal.c: New file.
1459         * libc/string/Makefile.am: Add support for strsignal.
1460         * libc/string/strings.tex: Ditto.
1461         * libc/string/Makefile.in: Regenerated.
1462
1463 2010-05-05  DJ Delorie  <dj@redhat.com>
1464
1465         * libc/Makefile.am (stmp-sigset, stmp-iconvset, stmp-extra,
1466         stmp-stdio64, stmp-posix,stmp-targetdep): Use unique temporary
1467         file names to allow for parallel installs.
1468         (CLEANFILES): Add new temporary file names.
1469         * libc/Makefile.in: Regenerate.
1470
1471 2010-05-03  Corinna Vinschen  <corinna@vinschen.de>
1472
1473         * libc/locale/lctype.c: Include <string.h> and "setlocale.h".
1474         (_C_ctype_locale): Add braces to initializer.
1475         (__ctype_load_locale): Fix compiler warnings in non-Cygwin case.
1476         * libc/locale/nl_langinfo.c (nl_langinfo): Expose _NL_CTYPE_MB_CUR_MAX
1477         case only if __HAVE_LOCALE_INFO__ is defined.
1478
1479 2010-05-02  Corinna Vinschen  <corinna@vinschen.de>
1480
1481         * libc/stdlib/wctob.c (wctob): Reorganize and fix WEOF check.  Rename
1482         pwc to pmb and convert to array to avoid buffer overflow.  Rename c to
1483         wc.  Check wc for WEOF instead of for EOF.  Return first byte of pmb if
1484         __wctomb conversion returned exactly one byte, EOF otherwise.
1485
1486 2010-04-30  Corinna Vinschen  <corinna@vinschen.de>
1487
1488         * libc/include/langinfo.h: Fix #endif positioning.
1489
1490 2010-04-28  Corinna Vinschen  <corinna@vinschen.de>
1491
1492         Extend locale support to maintain wide char values of native strings
1493         if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
1494         * libc/include/langinfo.h (enum __nl_item): New type.  Define all
1495         native values accessible through nl_langinfo.  Define previously
1496         existing POSIX-compatible values as macros as well.
1497         * libc/include/stdlib.h (__mb_cur_max): Drop declaration.
1498         (__locale_mb_cur_max): Declare.
1499         (MB_CUR_MAX): Re-define calling __locale_mb_cur_max.
1500         * libc/locale/Makefile.am (ELIX_SOURCES): Add lctype.c.
1501         * libc/locale/Makefile.in: Regenerate.
1502         * libc/locale/lctype.c: New file to define and load LC_CTYPE category.
1503         * libc/locale/lctype.h: New file, matching header.
1504         * libc/locale/lmessages.c (_C_messages_locale): Add default values for
1505         wide char members.
1506         (__messages_load_locale): Add _C_messages_locale in call to 
1507         __set_lc_messages_from_win.
1508         * libc/locale/lmessages.h (struct lc_messages_T): Add wide char members.
1509         * libc/locale/lmonetary.c (_C_monetary_locale):  Add default values for
1510         wide char members.
1511         (__monetary_load_locale): Add _C_monetary_locale in call to
1512         __set_lc_monetary_from_win.
1513         * libc/locale/lmonetary.h (struct lc_monetary_T): Add wide char members.
1514         Add numerical values for international currency formatting per
1515         POSIX-1.2008, if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
1516         * libc/locale/lnumeric.c (_C_numeric_locale): Add default values for
1517         wide char members.
1518         (__numeric_load_locale): Add _C_numeric_locale in call to
1519         __set_lc_numeric_from_win.
1520         * libc/locale/lnumeric.h (struct lc_numeric_T): Add wide char members.
1521         * libc/locale/locale.c (loadlocale): Return doing nothing if category
1522         locale didn't change.  Convert category if chain to switch statement.
1523         Call __ctype_load_locale in LC_CTYPE case.
1524         (__locale_charset): Add (but disable for now) returning codeset from
1525         __get_current_ctype_locale.
1526         (__locale_mb_cur_max): Add (but disable for now) returning mb_cur_max
1527         from __get_current_ctype_locale.
1528         (__locale_msgcharset): Add returning codeset from
1529         __get_current_messages_locale.
1530         (_localeconv_r): Accommodate int_XXX values.
1531         * libc/locale/nl_langinfo.c (nl_ext): New array to define what is to
1532         be returned for non-POSIX values.
1533         (nl_Langinfo): Return correct codeset for each locale category.  Return
1534         extended values if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
1535         * libc/locale/timelocal.c (_C_time_locale): Add default values for
1536         wide char members.
1537         (__time_load_locale): Add _C_time_locale in call to
1538         __set_lc_time_from_win.
1539         * libc/locale/timelocal.h (struct lc_time_T): Add wide char members.
1540         * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Use wide char decimal point
1541         and thousands_sep if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
1542         * libc/time/strftime.c: Rework to accommodate availability of wide char
1543         strings in LC_TIME category if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
1544
1545 2010-04-22  DJ Delorie  <dj@redhat.com>
1546
1547         * libc/Makefile.am (SUBDEFS): Add LIBC_POSIX_DEF.
1548         (libc.info): Add posix.texi.
1549         (libc.dvi): Likewise.
1550         (stmp-posix): New.
1551         (posix.texi): New.
1552         (libc_TEXINFOS): Add posix.texi.
1553         * libc/configure.in (LIBC_POSIX_LIB, LIBC_POSIX_DEF): Add
1554         tests.
1555         * libc/libc.texinfo: Include posix.texi
1556         * libc/locale/locale.c: Fix texinfo typo.
1557         * libc/time/strftime.c: Fix texinfo typo.
1558
1559         * libc/configure: Regenerate.
1560         * libc/Makefile.in: Regenerate.
1561         * libc/argz/Makefile.in: Regenerate.
1562         * libc/ctype/Makefile.in: Regenerate.
1563         * libc/errno/Makefile.in: Regenerate.
1564         * libc/iconv/Makefile.in: Regenerate.
1565         * libc/iconv/ccs/Makefile.in: Regenerate.
1566         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
1567         * libc/iconv/ces/Makefile.in: Regenerate.
1568         * libc/iconv/lib/Makefile.in: Regenerate.
1569         * libc/locale/Makefile.in: Regenerate.
1570         * libc/misc/Makefile.in: Regenerate.
1571         * libc/posix/Makefile.in: Regenerate.
1572         * libc/reent/Makefile.in: Regenerate.
1573         * libc/search/Makefile.in: Regenerate.
1574         * libc/signal/Makefile.in: Regenerate.
1575         * libc/stdio/Makefile.in: Regenerate.
1576         * libc/stdio64/Makefile.in: Regenerate.
1577         * libc/stdlib/Makefile.in: Regenerate.
1578         * libc/string/Makefile.in: Regenerate.
1579         * libc/syscalls/Makefile.in: Regenerate.
1580         * libc/time/Makefile.in: Regenerate.
1581         * libc/unix/Makefile.in: Regenerate.
1582         * libc/xdr/Makefile.in: Regenerate.
1583
1584 2010-04-06  Dave Korn  <dave.korn.cygwin@googlemail.com>
1585
1586         * libc/stdlib/__atexit.c (__atexit_lock): Initialise as recursive
1587         rather than non-recursive lock type.
1588         (__register_exitproc): Use recursive locking APIs on it.
1589         * libc/stdlib/__call_atexit.c (__call_exitprocs): Likewise.
1590
1591 2010-04-06  Corinna Vinschen  <corinna@vinschen.de>
1592
1593         * libc/stdlib/btowc.c (btowc): Reorganize EOF check.  Fix incorrect
1594         return value if input byte is ASCII NUL.
1595
1596 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
1597
1598         * libc/include/sched.h: Include prototypes for
1599         sched_* methods.
1600         * libc/include/sys/sched.h: Update to POSIX
1601         1003.1b-2008.  Rework constants to allow sharing
1602         between RTEMS and Cygwin.
1603
1604 2010-03-27  Corinna Vinschen  <corinna@vinschen.de>
1605
1606         * libc/locale/locale.c (loadlocale): Optimize "EUC" charset check.
1607         Cygwin only: Allow GB2312 and EUC-CN as alternative codeset names
1608         for GBK.  Add to documentation.
1609         * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate EUCCN
1610         to GB2312.
1611
1612 2010-03-17  Craig Howland <howland@LGSInnovations.com>
1613
1614         * libc/include/sys/features.h:  Allow for _XOPEN_SOURCE to have an
1615         empty definition.  Also add support for values of 500 or less.
1616
1617 2010-03-09  Jeff Johnston  <jjohnstn@redhat.com>
1618
1619         * libc/posix/telldir.c (dd_loccnt): Change start index to be 1 
1620         instead of 0.
1621         (_seekdir): A loc of 0 now means rewind dir.
1622
1623 2010-03-08  Craig Howland <howland@LGSInnovations.com>
1624
1625         * libm/common/s_rint.c:  Fix error when integral part had 18 bits and
1626         fraction had bits set beyond first radix bit.  Also, make 2-part
1627         adjustment consistent with 1-part adjustment when adjusting fractional
1628         bits.
1629         * libm/common/sf_rint.c:  Make fractional-bit adjustment consistent
1630         with s_rint.c by setting 0b.01 instead of 0b.001.
1631
1632 2010-03-05  Craig Howland <howland@LGSInnovations.com>
1633
1634         * libm/math/ef_sqrt.c: Delete unused variable sign.
1635         * libc/stdlib/getenv.c: Delete "char *_findenv_r ();", as is not a
1636         proper prototype, and is properly prototyped in stdlib.h, anyway.
1637         * libc/stdlib/getenv_r.c: Ditto.
1638         * libc/search/hash.c: Add _DEFUN to __hash_open() declaration; add
1639         #define __DBINTERFACE_PRIVATE to activate prototypes from db_local.h.
1640         * libc/search/db_local.h: Correct __hash_open() prototype.
1641         * libc/sys/linux/cmath/math_private.h:  Eliminate compiler warnings:
1642         Remove #define INFINITY (redefines from math.h); remove #define __isnanf
1643         and #define __isinff isinff.
1644
1645 2010-03-02  Craig Howland <howland@LGSInnovations.com>
1646
1647         * libc/include/sys/features.h:  Add POSIX.1-permitted definition of
1648         _POSIX_C_SOURCE if not already defined and _XOPEN_SOURCE has an
1649         appropriate value.  Specifically, check for POSIX.1-2008 & 2001 values.
1650         * libc/include/sys/config.h:  Add #include <sys/features.h> so that all
1651         includes get the new check added to it.
1652
1653 2010-03-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
1654
1655         * libc/xdr/README: Correct grammatical errors.
1656         * libc/include/rpc/types.h: Add public types used
1657         by RPC implementations.
1658         * libc/include/rpc/xdr.h: Add defines used by RPC
1659         implementations.
1660         * libc/xdr/Makefile.am: Eliminate automake warning.
1661         * libc/xdr/Makefile.in: Regenerate.
1662
1663 2010-03-02  Corinna Vinschen  <corinna@vinschen.de>
1664
1665         * libc/xdr/Makefile.in: Regenerate.
1666
1667 2010-03-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
1668
1669         Add eXtensible Data Record (XDR) support
1670         * configure.host: Build libc/xdr only on cygwin.
1671         * Makefile.am: Install xdr headers.
1672         * libc/configure.in: Support new libc/xdr subdirectory.
1673         * libc/Makefile.am: Support new libc/xdr subdirectory.
1674         * libc/include/rpc/types.h: New.
1675         * libc/include/rpc/xdr.h: New.
1676         * libc/xdr/README: New.
1677         * libc/xdr/Makefile.am: New.
1678         * libc/xdr/dummy.c: New.
1679         * libc/xdr/xdr.c: New.
1680         * libc/xdr/xdr_array.c: New.
1681         * libc/xdr/xdr_float.c: New.
1682         * libc/xdr/xdr_float_vax.c: New.
1683         * libc/xdr/xdr_mem.c: New.
1684         * libc/xdr/xdr_private.c: New.
1685         * libc/xdr/xdr_private.h: New.
1686         * libc/xdr/xdr_rec.c: New.
1687         * libc/xdr/xdr_reference.c: New.
1688         * libc/xdr/xdr_sizeof.c: New.
1689         * libc/xdr/xdr_stdio.c: New.
1690
1691         Regenerate using ac-2.63 and am-1.11.1
1692         * libc/xdr/Makefile.in: New.
1693         * Makefile.in: Regenerate.
1694         * libc/configure: Regenerate.
1695         * libc/Makefile.in: Regenerate.
1696         * libc/argz/Makefile.in: Regenerate.
1697         * libc/ctype/Makefile.in: Regenerate.
1698         * libc/errno/Makefile.in: Regenerate.
1699         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
1700         * libc/iconv/ccs/Makefile.in: Regenerate.
1701         * libc/iconv/ces/Makefile.in: Regenerate.
1702         * libc/iconv/lib/Makefile.in: Regenerate.
1703         * libc/iconv/Makefile.in: Regenerate.
1704         * libc/locale/Makefile.in: Regenerate.
1705         * libc/misc/Makefile.in: Regenerate.
1706         * libc/posix/Makefile.in: Regenerate.
1707         * libc/reent/Makefile.in: Regenerate.
1708         * libc/search/Makefile.in: Regenerate.
1709         * libc/signal/Makefile.in: Regenerate.
1710         * libc/stdio/Makefile.in: Regenerate.
1711         * libc/stdio64/Makefile.in: Regenerate.
1712         * libc/stdlib/Makefile.in: Regenerate.
1713         * libc/string/Makefile.in: Regenerate.
1714         * libc/syscalls/Makefile.in: Regenerate.
1715         * libc/time/Makefile.in: Regenerate.
1716         * libc/unix/Makefile.in: Regenerate.
1717
1718 2010-02-26  Craig Howland <howland@LGSInnovations.com>
1719
1720         * libm/common/s_ilogb.c:  Fix typo in comments that causes doc
1721         generation to fail.
1722
1723 2010-02-26  Corinna Vinschen  <corinna@vinschen.de>
1724
1725         * libc/time/strftime.c: Add support for era and alt_digits data from
1726         LC_TIME locale category.  Conditionalize using _WANT_C99_TIME_FORMATS
1727         flag.
1728         (STRTOUL): Define differently for building strftime or wcsftime.
1729         (STRCPY): Ditto.
1730         (STRCHR): Ditto.
1731         (STRLEN): Ditto.
1732         (CHECK_LENGTH): Define to simplify code.
1733         (era_info_t): New type to store era info.
1734         (get_era_info): New function to fetch era info matching incoming
1735         struct tm.
1736         (free_era_info): New function to free era info.
1737         (alt_digits_t): New type to store alternative digits.
1738         (get_alt_digits): New function to convert alt_digits string into
1739         alt_digits_t structure.
1740         (free_alt_digits): New function to free alt_digits info.
1741         (conv_to_alt_digits): New function to convert unsigned value into
1742         alternative digits.
1743         (strftime): Conditionalize on _WANT_C99_TIME_FORMATS.  If
1744         _WANT_C99_TIME_FORMATS is defined, define as just a wrapper function
1745         providing era_info and alt_digits pointers and call ...
1746         (__strftime): Rename from strftime and make static if
1747         _WANT_C99_TIME_FORMATS is defined.  Add parameters for era_info and
1748         alt_digits pointers.  Handle conversion modifiers according to
1749         POSIX-1.2008.  Redefine %F and %Y according to POSIX.  Add default case
1750         to allow to bail out on invalid conversion specifiers.
1751         * libc/include/sys/config.h: Move Cygwin build flags to Cygwin's
1752         config.h.
1753
1754         * libc/include/stdio.h: Remove __CYGWIN_USE_BIG_TYPES__ condition.
1755
1756 2010-02-25  Corinna Vinschen  <corinna@vinschen.de>
1757
1758         * libc/locale/locale.c (loadlocale): Fix typo in comment.
1759
1760 2010-02-25  Corinna Vinschen  <corinna@vinschen.de>
1761
1762         * libc/locale/locale.c: Throughout, extensively comment on the
1763         reason for using __CYGWIN__.
1764         (lconv): Remove _CONST entirely.
1765         (loadlocale): Guard calls to function loading locale-specific
1766         category data with __HAVE_LOCALE_INFO__ rather than __CYGWIN__.
1767         * libc/sys/config.h (__HAVE_LOCALE_INFO__): Define for Cygwin.
1768
1769 2010-02-24  Charles Wilson  <...>
1770
1771         Work around issues with new libtool files in ..
1772         * configure.in: Unconditionally call _LT_PROG_ECHO_BACKSLASH.
1773         * iconvdata/configure.in: Ditto.
1774         * libc/configure.in: Ditto.
1775         * libc/machine/configure.in: Ditto.
1776         * libc/machine/i386/configure.in: Ditto.
1777         * libc/sys/configure.in: Ditto.
1778         * libc/sys/linux/configure.in: Ditto.
1779         * libc/sys/linux/linuxthreads/configure.in: Ditto.
1780         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
1781         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
1782         * libc/sys/linux/machine/configure.in: Ditto.
1783         * libc/sys/linux/machine/i386/configure.in: Ditto.
1784         * libm/configure.in: Ditto.
1785         * libm/machine/configure.in: Ditto.
1786         * libm/machine/i386/configure.in: Ditto.
1787         * libc/machine/sh/configure.in: Ditto.  Also, call
1788         AC_NO_EXECUTABLES before NEWLIB_CONFIGURE.
1789         * aclocal.m4: Regenerated.
1790         * configure: Ditto.
1791         * Makefile.in: Ditto.
1792         * doc/aclocal.m4: Ditto.
1793         * doc/Makefile.in: Ditto.
1794         * libc/*/aclocal.m4: Ditto.
1795         * libc/*/Makefile.in: Ditto.
1796         * libc/*/configure: Ditto.
1797         * libm/*/aclocal.m4: Ditto.
1798         * libm/*/Makefile.in: Ditto.
1799         * libm/*/configure: Ditto.
1800
1801 2010-02-24  Jeff Johnston  <jjohnstn@redhat.com>
1802
1803         * libc/stdlib/__call_exit.c: Add include of sys/lock.h.
1804
1805 2010-02-23  Jeff Johnston  <jjohnstn@redhat.com>
1806
1807         * libc/include/sys/types.h: Fix __XMK__ sectioning and remove
1808         redundant code section for __XMK__.
1809
1810 2010-02-22  Corinna Vinschen  <corinna@vinschen.de>
1811
1812         * libc/include/langinfo.h (_NL_TIME_DATE_FMT): Define new nl_item
1813         value for LC_TIME entry date_fmt.
1814         (_DATE_FMT): Define "official" GNU name same as _NL_TIME_DATE_FMT.
1815         * libc/locale/nl_langinfo.c (nl_langinfo): Add case for _DATE_FMT.
1816
1817 2010-02-18  Corinna Vinschen  <corinna@vinschen.de>
1818
1819         * libc/ctype/iswalpha.c (iswalpha): Update to Unicode 5.2.
1820         * libc/ctype/iswprint.c (iswprint): Ditto.
1821         * libc/ctype/iswpunct.c (iswpunct): Drop standalone implementation.
1822         Define in terms of other wctype functions instead.
1823         * libc/ctype/towlower.c (towlower): Update to Unicode 5.2.  Add comment
1824         to explain how to fetch the data from the Unicode database.
1825         * libc/ctype/towupper.c (towupper): Ditto.
1826         * libc/ctype/utf8alpha.h: Ditto.
1827         * libc/ctype/utf8print.h: Ditto.
1828         * libc/ctype/utf8punct.h: Remove.
1829         * libc/ctype/iswcntrl.c (iswcntrl): Add comment to explain how to
1830         fetch the data from the Unicode database.
1831
1832 2010-02-18  Corinna Vinschen  <corinna@vinschen.de>
1833
1834         * libc/locale/timelocal.h (struct lc_time_T): Add missing ERA-related
1835         members.
1836         * libc/locale/timelocal.c (_C_time_local): Set new members to empty
1837         strings.
1838         * libc/locale/nl_langinfo.c (nl_langinfo): Return values from
1839         __get_current_time_locale() for ERA related requests.
1840
1841 2010-02-16  Corinna Vinschen  <corinna@vinschen.de>
1842
1843         * libc/ctype/iswblank.c (iswblank): Remove Unicode characters
1844         U+00A0 and U+200B.  Add Unicode character U+180E.  Add comment
1845         to explain how to generate from Unicode data file.
1846         * libc/ctype/iswspace.c (iswspace): Ditto.
1847
1848 2010-02-15  Corinna Vinschen  <corinna@vinschen.de>
1849
1850         * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Apply previous patch here
1851         as well.
1852
1853 2010-02-15  Corinna Vinschen  <corinna@vinschen.de>
1854
1855         * libc/stdio/vfprintf.c (_VFPRINTF_R): Drop printing a redundant
1856         decimal point in case the float argument is an integral value.
1857
1858 2010-02-11  Craig Howland <howland@LGSInnovations.com>
1859        
1860         * libc/include/machine/ieeefp.h:  isfinite macro modified to run faster
1861         by only calling fpclassify once instead of possibly twice.
1862
1863 2010-02-11  Craig Howland <howland@LGSInnovations.com>
1864
1865         * libm/common/s_ilogb.c:  Adjust documentation to reflect new returns
1866         (see next items) and that ilogb() and ilogbf() are C99/POSIX.
1867         * libm/common/s_ilogb.c (ilogb):  Use C99/POSIX FP_ILOGB0 and
1868         FP_ILOGBNAN returns for 0 and NAN arguments, respectively, instead of
1869         the prior -INT_MAX and INT_MAX.  The FP_ILOGBx defines in math.h
1870         presently match the prior hard-codes, so no functional change is
1871         actually introduced.  (Not at this time, nor planned, but the values
1872         are permitted to be different, so subsequent edits of math.h could
1873         possibly cause a functional change.)
1874         * libm/common/sf_ilogb.c (ilogbf):  Ditto.
1875
1876 2010-02-09  Daniel Gutson  <dgutson@codesourcery.com>
1877
1878         * libc/machine/arm/arm_asm.h (_ISA_THUMB_2): __ARM_ARCH_7EM__
1879         added to the preprocessor condition.
1880
1881 2010-02-09  Corinna Vinschen  <corinna@vinschen.de>
1882
1883         * libc/locale/lmessages.c (__messages_load_locale): Take additional
1884         parameters for wide char to multibyte conversion.  Call
1885         __set_lc_messages_from_win on Cygwin.
1886         * libc/locale/lmessages.h: Make C++-safe.
1887         (__messages_load_locale): Change declaration.
1888         * libc/locale/lmonetary.c (__monetary_load_locale): Use
1889         _monetary_locale_buf as buffer pointer.
1890         * libc/locale/lnumeric.c (__numeric_load_locale): Use
1891         _numeric_locale_buf as buffer pointer.
1892         * libc/locale/timelocal.c (__time_load_locale): Use time_locale_buf
1893         as buffer pointer.
1894         * libc/locale/locale.c (loadlocale): Enable loading LC_MESSAGES data
1895         on Cygwin.
1896
1897 2010-02-08  Josef Wolf  <jw@raven.inka.de>
1898
1899         * libc/machine/m68k/memcpy.S: MISALIGEND_OK should not be set for
1900         __mcpu32__.
1901
1902 2010-02-07  Corinna Vinschen  <corinna@vinschen.de>
1903
1904         * libc/locale/locale.c: Add Cygwin's /usr/share/locale/locale.alias
1905         support to documentation.
1906         (__set_locale_from_locale_alias): Declare when build for Cygwin.
1907         (loadlocale): On Cygwin, if locale can't be recognized, call
1908         __set_locale_from_locale_alias to check for locale alias.
1909         Define FAIL macro to replace `return NULL' statements.  Replace
1910         throughout.
1911
1912 2010-02-07  Corinna Vinschen  <corinna@vinschen.de>
1913
1914         * libc/locale/locale.c: Fix typo in documentation.  Remove useless
1915         _MB_CAPABLE guards within other _MB_CAPABLE guards.  Add comment
1916         to remaining #endif's.
1917
1918 2010-02-06  Corinna Vinschen  <corinna@vinschen.de>
1919
1920         * libc/ctype/ctype_cp.h (_CTYPE_GEORGIAN_PS_128_254): Define.
1921         (_CTYPE_GEORGIAN_PS_255): Define.
1922         (_CTYPE_PT154_128_254): Define.
1923         (_CTYPE_PT154_255): Define.
1924         (__ctype_cp): Add array members for above ctype definitions.
1925         * libc/locale/locale.c (loadlocale): Make TIS-620 charset name
1926         available for all targets.  Add guards for setting the conversion
1927         function pointers.  Add support for GEORGIAN-PS and PT154 charsets.
1928         Change documentation to reflect current behaviour more closely.
1929         * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate
1930         "CP101" to "GEORGIAN-PS" and "CP102" to "PT154".
1931         * libc/stdlib/sb_charsets.c (__cp_conv): Add conversion arrays
1932         for GEORGIAN-PS and PT154.
1933         (__cp_index): Map invalid Windows codepage number 101 to
1934         GEORGIAN-PS conversion array, 102 to PT154 conversion array.
1935
1936 2010-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
1937
1938         * libc/posix/telldir.c: Remove bogus nested prototype of lseek().
1939
1940 2010-02-05  Corinna Vinschen  <corinna@vinschen.de>
1941
1942         * libc/locale/locale.c (loadlocale): Handle ISO-8859 and KOI8 charsets
1943         so that the dashes are optional.  Align documentation.
1944
1945 2010-02-05  Corinna Vinschen  <corinna@vinschen.de>
1946
1947         * libc/stdio/vfprintf.c: Include locale.h also if _WANT_IO_C99_FORMATS
1948         is defined.  Raise conversion buffer size to make sure it has enough
1949         room for numbers plus grouping character.  Define GROUPING flag.
1950         (_VFPRINTF_R): Add PRINTANDPAD macro.  Handle grouping flag character.
1951         Handle grouping for decimal integer and float values.
1952         * libc/stdio/vfwprintf.c: Ditto.
1953
1954 2010-02-01  Christopher Faylor  <me+cygwin@cgf.cx>
1955
1956         * libc/stdlib/__atexit.c (__atexit_lock): Define a global lock for
1957         atexit functions.
1958         (__register_exitproc): Use __atexit_lock rather than a local static
1959         lock.
1960         * libc/stdlib/__call_atexit.c: Ditto.
1961
1962 2010-01-29  Jeff Johnston  <jjohnstn@redhat.com>
1963
1964         * libc/search/Makefile.am: Create .def files for bsearch and qsort.
1965         * libc/search/Makefile.in: Regenerated.
1966         * libc/stdlib/stdlib.tex: Add bsearch and qsort.
1967
1968 2010-01-24  Corinna Vinschen  <corinna@vinschen.de>
1969
1970         * libc/locale/nl_langinfo.c (nl_langinfo): Return "CP932" when using
1971         SJIS on Cygwin.  Explain why.
1972
1973 2010-01-23  Corinna Vinschen  <corinna@vinschen.de>
1974
1975         * libc/locale/locale.c (loadlocale): Allow CP932 as alias for SJIS.
1976         Add to documentation.  Add a few comments to #endif's for Cygwin.  
1977
1978 2010-01-23  Corinna Vinschen  <corinna@vinschen.de>
1979
1980         * libc/locale/locale.c (loadlocale): Disable JIS entirely on Cygwin.
1981         Allow TIS620 and TIS-620 as aliases for CP874 on Cygwin.
1982
1983 2010-01-22  Corinna Vinschen  <corinna@vinschen.de>
1984
1985         * libc/locale/lmonetary.c (__monetary_load_locale): Take additional
1986         parameters for wide char to multibyte conversion.  Call
1987         __set_lc_monetary_from_win on Cygwin.
1988         * libc/locale/lmonetary.h: Make C++-safe.
1989         (__monetary_load_locale): Change declaration.
1990         * libc/locale/lnumeric.c (__numeric_load_locale): Take additional
1991         parameters for wide char to multibyte conversion.  Call
1992         __set_lc_numeric_from_win on Cygwin.
1993         * libc/locale/lnumeric.h: Make C++-safe.
1994         (__numeric_load_locale): Change declaration.
1995         * libc/locale/locale.c (lconv): De-constify for Cygwin.
1996         (__set_charset_from_locale): Rename from
1997         __set_charset_from_codepage.  Take locale as parameter instead of
1998         a codepage.
1999         (loadlocale): Allow "EUC-JP" for "EUCJP" and "EUC-KR" for "EUCKR".
2000         Change documnetation accordingly.  Enable LC_COLLATE, LC_MONETARY,
2001         LC_NUMERIC, and LC_TIME handling on Cygwin.
2002         (_localeconv_r): On Cygwin, copy values from monetary and numeric
2003         domain if change has been noted.
2004         * libc/locale/nl_langinfo.c (nl_langinfo): Accommodate change of
2005         am/pm layout in struct lc_time_T.
2006         * libc/locale/timelocal.c (_C_time_locale): Accommodate
2007         redefinition of am/pm members.
2008         (__time_load_locale): Take additional parameters for wide char
2009         to multibyte conversion.  Call __set_lc_time_from_win on Cygwin.
2010         * libc/locale/timelocal.h: Make C++-safe.
2011         (struct lc_time_T): Convert am and pm to a am_pm array for easier
2012         consumption by strftime and strptime.
2013         (__time_load_locale): Change declaration.
2014         * libc/time/strftime.c: Change documentation to reflect changes to
2015         strftime.  Remove locale constant strings in favor of access to
2016         locale-specifc data.
2017         (_ctloc): Define access method for locale-specifc data.
2018         (TOLOWER): Define for tolower conversion.
2019         (strftime): Throughout, convert locale-specific formats to use
2020         locale-specific data.  Add GNU-specific "%P" format.
2021         * libc/time/strptime.c: Remove locale constant strings in favor of
2022         access to locale-specifc data.
2023         (_ctloc): Define access method for locale-specifc data.
2024         (strptime): Throughout, convert locale-specific formats to use
2025         locale-specific data.
2026
2027 2010-01-20  Corinna Vinschen  <corinna@vinschen.de>
2028
2029         * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate
2030         often-used charsets into Linux compatible codesets.
2031
2032 2010-01-19  Andy Koppe  <andy.koppe@gmail.com>
2033
2034         * libc/stdio/vfscanf.c (__SVFSCANF_R): Fix handling of non-ASCII
2035         characters and allow invalid bytes in format string.
2036
2037 2010-01-19  Corinna Vinschen  <corinna@vinschen.de>
2038
2039         * libc/stdlib/wcstombs_r.c (_wcstombs_r): Handle invalid characters
2040         correctly also in the s==NULL case.
2041
2042 2010-01-17  Corinna Vinschen  <corinna@vinschen.de>
2043
2044         * libc/locale/locale.c (loadlocale): Change comments to refer to
2045         ISO 639-3 rather than 639-2.
2046
2047 2010-01-17  Corinna Vinschen  <corinna@vinschen.de>
2048
2049         * libc/locale/locale.c (loadlocale): Allow three character
2050         language codes to accommodate ISO 639-2 codes.
2051
2052 2010-01-17  Corinna Vinschen  <corinna@vinschen.de>
2053
2054         * libc/locale/locale.c (lc_ctype_charset): Disable defaulting to
2055         "UTF-8" on Cygwin.
2056         (lc_message_charset): Ditto.
2057         (loadlocale): Disable setting charset of the "C" locale to "UTF-8" on
2058         Cygwin.
2059         * libc/stdlib/mbtowc_r.c (__mbtowc): Add Cygwin-specific comment.
2060         * libc/stdlib/wctomb_r.c (__wctomb): Ditto.
2061
2062 2010-01-14  Corinna Vinschen  <corinna@vinschen.de>
2063
2064         * libc/include/sys/_default_fcntl.h (O_CLOEXEC): Define as _FNOINHERIT.
2065         (F_DUPFD_CLOEXEC): Define for Cygwin.
2066         * libc/include/sys/unistd.h (dup3): Define for Cygwin.
2067         (pipe2): Ditto.
2068
2069 2010-01-14  Corinna Vinschen  <corinna@vinschen.de>
2070
2071         * libc/stdio/vfprintf.c (_VFPRINTF_R): Just wave bytes invalid in
2072         the current charset through.
2073
2074 2010-01-11  Sebastian Huber <sebastian.huber@embedded-brains.de>
2075
2076         * libc/posix/telldir.c (_cleanupdir): Fixed usage of freed memory.
2077
2078 2010-01-11  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
2079
2080         * libc/include/math.h (log2, log2f): Disable macro versions for C++,
2081         as they are incompatible with OpenMP/C++ headers.
2082
2083 2010-01-10  Corinna Vinschen  <corinna@vinschen.de>
2084
2085         * libc/stdlib/mbtowc_r.c (__ascii_mbtowc): Disallow conversion of
2086         non-ASCII chars on Cygwin.
2087         * libc/stdlib/wctomb_r.c (__ascii_wctomb): Ditto.
2088
2089 2009-12-22  Eric Blake  <ebb9@byu.net>
2090
2091         * libc/include/sys/unistd.h (suboptarg, getsubopt): Move...
2092         * libc/include/stdlib.h: ...here, to match POSIX for getsubopt.
2093
2094 2009-12-17  Jeff Johnston  <jjohnstn@redhat.com>
2095
2096         * NEWS: Update with 1.18.0 info.
2097         * README: Ditto.
2098         * acinclude.m4: Change version number to 1.18.0.
2099         * aclocal.m4: Regenerated.
2100         * configure: Ditto.
2101         * doc/aclocal.m4: Ditto.
2102         * doc/configure: Ditto.
2103         * libc/*/aclocal.m4: Ditto.
2104         * libc/*/configure: Ditto.
2105         * libc/libc.texinfo: Ditto.
2106         * libm/*/aclocal.m4: Ditto.
2107         * libm/*/configure: Ditto.
2108         * libm/libm.texinfo: Ditto.
2109         * libc/sys/linux/shared.ld: Add VERS_1.18
2110
2111 2009-12-17  Jeff Johnston <jjohnstn@redhat.com>
2112
2113         * libc/include/_syslist.h: Add _mkdir transform.
2114
2115 2009-12-17  Jerker Back  <jerker.back@gmail.com>
2116
2117         * libc/iconv/lib/local.h[!__GNUC__]: Add alternative version of
2118         ICONV_ZERO_MB_STATE_T macro.
2119         * libc/iconv/lib/ucsconv.c (ucs_based_conversion_get_state): Use
2120         temporary local variable nullstate to hold empty mbstate_t.
2121
2122 2009-12-17  Jerker Back  <jerker.back@gmail.com>
2123
2124         * libc/include/_ansi.h: Add new _EXFNPTR macro for using with
2125         function pointer arguments.
2126         * libc/iconv/lib/conv.h: Use _EXFNPTR rather than _EXPARM macro.
2127         * libc/iconv/lib/ucsconv.h: Ditto.
2128         * libc/include/stdlib.h: Use new _EXFNPTR macro for function pointers.
2129         * libc/include/sys/reent.h: Ditto.
2130         * libc/include/sys/unistd.h: Ditto.
2131         * libc/search/bsearch.c: Ditto.
2132         * libc/stdio/fseek.c: Ditto.
2133         * libc/stdio64/fseeko64.c: Ditto.
2134         * libc/stdlib/atexit.c: Ditto.
2135         * libc/stdlib/on_exit.c: Ditto.
2136
2137 2009-12-17  Ralf Corsépius <ralf.corsepius@rtems.org>
2138
2139         * libc/include/machine/ieeefp.h: Rework __IEEE_*_ENDIAN handling.
2140         * libc/machine/arm/machine/endian.h: Remove (Conflicts with
2141         libc/include/machine/endian.h)
2142
2143 2009-12-17  Ralf Corsépius <ralf.corsepius@rtems.org>
2144
2145         * libc/include/machine/setjmp.h: Set up _JBLEN #ifdef __m68k__.
2146
2147 2009-12-17  Ralf Corsepius <ralf.corsepius@rtems.org>
2148
2149         * libc/include/pthread.h: Add pthread_atfork, pthread_rwlock_unlock
2150         * libc/include/sys/stat.h: Use struct timespec st_*tim,
2151         blksize_t st_blksize, blkcnt_t st_blocks.
2152         Add st_*time compatibility macros.
2153
2154 2009-12-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2155
2156         * libc/sys/rtems/machine/param.h: Only use sizeof(double) -1
2157         for ALIGNBYTES on SPARC.
2158
2159 2009-12-16  Jeff Johnston  <jjohnstn@redhat.com>
2160
2161         * libc/include/sys/errno.h: Move EHOSTDOWN, EPFNOSUPPORT,
2162         and ETOOMANYREFS into general list as they are referenced
2163         by OpenGroup and needed by RTEMS.
2164
2165 2009-12-16  Ralf Corsépius <ralf.corsepius@rtems.org>
2166
2167         * libc/search/hcreate.c: Don't include <sys/queue.h> (Unused).
2168
2169 2009-12-16  Ralf Corsépius <ralf.corsepius@rtems.org>
2170
2171         * libc/sys/rtems/machine/_types.h: New (Derived from
2172         machine/_default_types.h).
2173         * libc/sys/rtems/crt0.c: Rework. Introduce macro RTEMS_STUB.
2174         * libc/sys/rtems/sys/param.h:
2175         Update copyright notice from FreeBSD.
2176         Remove HZ.
2177         Add #include <sys/priority.h>
2178         Remove priority handling (moved to sys/priority.h).
2179         Remove CLBYTES (Unused, abandoned in BSD).
2180         * libc/sys/rtems/sys/queue.h: Update copyright (from FreeBSD).
2181         Remove CIRCLEQ_*.
2182
2183 2009-12-15  Conny Marco Menebrocker  <c-m-m@gmx.de>
2184
2185         * libc/machine/xc16x/Makefile.am: Fix typo and refer
2186         to puts.c instead of putc.c.
2187         * libc/machine/xc16x/Makefile.in: Regenerated.
2188
2189 2009-12-14  Maxim Kuvyrkov <maxim@codesourcery.com>
2190
2191         * libc/machine/m68k/memcpy.S: Patch to support
2192         boards which do not support unaligned read/write.
2193
2194 2009-12-10  Conny Marco Menebrocker  <c-m-m@gmx.de>
2195
2196         * configure.host: Add xc16x support.
2197         * libc/include/machine/ieeefp.h: Ditto.
2198         * libc/include/sys/config.h: Ditto.
2199         * libc/machine/configure.in: Ditto.
2200         * libc/machine/Makefile.in: Regenerated.
2201         * libc/machine/aclocal.m4: Ditto.
2202         * libc/machine/configure: Ditto.
2203         * libc/machine/xc16x/Makefile.am: New file.
2204         * libc/machine/xc16x/Makefile.in: Ditto.
2205         * libc/machine/xc16x/aclocal.m4: Ditto.
2206         * libc/machine/xc16x/configure: Ditto.
2207         * libc/machine/xc16x/configure.in: Ditto.
2208         * libc/machine/xc16x/putchar.c: Ditto.
2209         * libc/machine/xc16x/puts.c: Ditto.
2210         * libc/machine/xc16x/setjmp.S: Ditto.
2211
2212 2009-12-08  Eric Blake  <ebb9@byu.net>
2213
2214         Fix some *at declarations.
2215         * libc/include/stdio.h (symlinkat): Move this...
2216         * libc/include/sys/_default_fcntl.h (unlinkat): ...and this...
2217         * libc/include/sys/unistd.h (symlinkat, unlinkat): ...here, to
2218         match POSIX.
2219
2220 2009-12-03  Craig Howland <howland@LGSInnovations.com>
2221
2222         * libc/stdlib/strtod.c:  Correct "NO_REENT" to "_REENT_ONLY".
2223         * libc/stdlib/wcstod.c:  Ditto.
2224         * libc/stdlib/dtoastub.c:  Ditto.
2225
2226 2009-11-23  Corinna Vinschen  <corinna@vinschen.de>
2227
2228         Use NetBSD fix for CVE-2009-0689 security vulnerability.
2229         * libc/include/sys/reent.h (_Kmax): Define here based on the sizeof
2230         size_t, as in latest NetBSD.
2231         * libc/reent/reent.c (_reclaim_reent): Use _Kmax rather than constant
2232         value 15.
2233         * libc/stdlib/mprec.c (_Kmax): Don't define here.  Explain why.
2234
2235 2009-11-20  Nick Clifton  <nickc@redhat.com>
2236
2237         * libc/machine/rx/strncat.S (_strncat): Replace use of r6
2238         (call-saved) with r14 (call-used).
2239
2240 2009-11-18  Dave Korn  <dave.korn.cygwin@googlemail.com>
2241
2242         * libm/machine/i386/f_tan.S (_f_tan): Free fp stack register
2243         containing useless constant before advancing fp sp over it.
2244         (_f_tanf): Likewise.
2245
2246 2009-11-18  Corinna Vinschen  <corinna@vinschen.de>
2247
2248         * libc/stdio/vfprintf.c: Include ../stdlib/local.h.  Replace call to
2249         _mbtowc_r with direct call to __mbtowc.
2250         * libc/stdio/vfscanf.c: Ditto.
2251         * libc/stdlib/btowc.c: Include local.h.  Replace call to _mbtowc_r
2252         with direct call to __mbtowc.
2253         * libc/stdlib/mblen.c: Ditto.
2254         * libc/stdlib/mblen_r.c: Ditto.
2255         * libc/stdlib/mbrtowc.c: Ditto.
2256         * libc/stdlib/mbstowcs_r.c: Ditto.
2257         * libc/stdlib/mbtowc.c: Ditto.
2258         * libc/stdlib/wcrtomb.c: Include local.h.  Replace call to _wctomb_r
2259         with direct call to __wctomb.
2260         * libc/stdlib/wcsnrtombs.c: Ditto.
2261         (_wcsnrtombs_r): Ditto.
2262         * libc/stdlib/wcstombs_r.c: Ditto.
2263         * libc/stdlib/wctob.c: Ditto.
2264         * libc/stdlib/wctomb.c: Ditto.
2265
2266         * libc/stdlib/mbrtowc.c (mbrtowc): Implement independently from
2267         _mbrtowc_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are
2268         defined.
2269         * libc/stdlib/wcrtomb.c (wcrtomb): Implement independently from
2270         _wcrtomb_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are
2271         defined.
2272
2273         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Drop unnecessary test for
2274         ch >= 0.
2275
2276 2009-11-17  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
2277
2278         * libm/common/fdlibm.h (logb, logbf): Move decls from here...
2279         * libc/include/math.h (logb, logbf): ...to here.
2280
2281 2009-11-06  Jon Turney  <jon.turney@dronecode.org.uk>
2282
2283         * libc/include/ctype.h (__ctype_lookup): Fix precedence.
2284
2285 2009-10-30  Corinna Vinschen  <corinna@vinschen.de>
2286
2287         * libc/stdio/fflush.c (_fflush_r): Store old errno to check for
2288         low-level seek error condition.  Restore old errno in case of
2289         success.  Don't use new position after seek as error condition,
2290         rather check for return value of -1 and errno.  Handle EINVAL
2291         just like ESPIPE.  Only set fp->_offset if errno is 0.
2292
2293 2009-10-27  Nick Clifton  <nickc@redhat.com>
2294
2295         * MAINTAINERS (ARM): Add myself as an ARM maintainer.
2296
2297 2009-10-26  DJ Delorie  <dj@redhat.com>
2298
2299         * configure.host: Add support for RX architecture.
2300         * libc/include/machine/ieeefp.h: Likewise.
2301         * libc/include/machine/setjmp.h: Likewise.
2302         * libc/include/machine/configure.in: Likewise.
2303         * libc/include/machine/configure: Regenerate.
2304         * libc/machine/rx: New directory.
2305         * libc/machine/rx/*: New files to support RX architecture.
2306
2307 2009-10-24  Eric Blake  <ebb9@byu.net>
2308
2309         * libc/include/ctype.h (__ctype_lookup): New macro.
2310         (isalpha, isupper, islower, isdigit, isxdigit, isspace, ispunct)
2311         (isalnum, isprint, isgraph, iscntrl, isblank): Use it to fix bug
2312         on 64-bit machines.
2313
2314 2009-10-20  Jeff Johnston  <jjohnstn@redhat.com>
2315
2316         * configure.host: Don't set -O2 flag in newlib_cflags.  Leave
2317         that to CFLAGS.
2318         * acinclude.m4: Don't reset CFLAGS before calling _AC_PROG_CC_G
2319         as it sets the same flags as we are using.
2320         * aclocal.m4: Regenerated.
2321         * configure: Ditto.
2322         * Makefile.in: Ditto.
2323         * iconvdata/aclocal.m4: Ditto.
2324         * iconvdata/configure: Ditto.
2325         * iconvdata/Makefile.in: Ditto.
2326         * doc/aclocal.m4: Ditto.
2327         * doc/configure: Ditto.
2328         * doc/Makefile.in: Ditto.
2329         * libc/aclocal.m4: Ditto.
2330         * libc/configure: Ditto.
2331         * libc/Makefile.in: Ditto.
2332         * libc/*Makefile.in: Ditto.
2333         * libc/*aclocal.m4: Ditto.
2334         * libc/*configure: Ditto.
2335         * libm/*Makefile.in: Ditto.
2336         * libm/*aclocal.m4: Ditto.
2337         * libm/*configure: Ditto.
2338
2339 2009-10-16  Jeff Johnston  <jjohnstn@redhat.com>
2340
2341         * libc/include/sys/config.h[__CYGWIN__]: Set __USE_XOPEN2K flag
2342         if not __STRICT_ANSI__ or stdc version C99 or greater.
2343         * libc/include/stdio.h[__STRICT_ANSI__]: Add __USE_XOPEN2K check
2344         for fseeko and ftello prototypes.
2345
2346 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
2347
2348         * libc/include/wchar.h (struct tm0: Declare as incomplete type.
2349
2350 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
2351
2352         * libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
2353         exception for KOI8 charsets.
2354
2355 2009-10-13  Eric Blake  <ebb9@byu.net>
2356
2357         * libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
2358         new to POSIX 2008.
2359
2360 2009-10-13  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
2361
2362         * libc/include/sys/signal.h: Include <sys/types.h> always.
2363         [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
2364         standards.
2365
2366 2009-10-09  Dave Korn  <dave.korn@artimi.com>
2367
2368         * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
2369         defining struct timeval.
2370
2371 2009-10-09  Corinna Vinschen  <corinna@vinschen.de>
2372
2373         * libc/locale/locale.c (DEFAULT_LOCALE): New define.
2374         (__default_locale): New global variable set to the default locale.
2375         (__get_locale_env): Return __default_locale rather than fixed "C".
2376
2377 2009-10-08  Jeff Johnston  <jjohnstn@redhat.com>
2378
2379         * configure.host: For RTEMS, define HAVE_ASSERT_FUNC.
2380         * libc/stdlib/assert.c (_assert_func): Do not specify
2381         __assert_func if HAVE_ASSERT_FUNC flag is set.
2382
2383 2009-10-08  Eric Blake  <ebb9@byu.net>
2384
2385         * libc/include/getopt.h (__getopt_r, __getopt_long_r)
2386         (__getopt_long_only_r): Protect declarations, to avoid compiler
2387         warning.
2388
2389 2009-10-07  Corinna Vinschen  <corinna@vinschen.de>
2390
2391         * libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
2392         charset on Cygwin.
2393
2394 2009-10-03  Corinna Vinschen  <corinna@vinschen.de>
2395
2396         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
2397         value encoding.
2398         * libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
2399         value decoding.
2400
2401 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
2402
2403         * libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as locale
2404         prefix.  Add some words to documentation.
2405
2406 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
2407
2408         * libc/stdlib/sb_charsets.c: Throughout, translate undefined
2409         characters to their corresponding Windows Unicode value.
2410
2411 2009-09-28  Michael Eager <eager@eagercon.com>
2412
2413         * configure.host: Add microblaze.
2414         * libc/include/machine/ieeefp.h [MICROBLAZE]: Define __IEEE_BIG_ENDIAN.
2415         * libc/include/machine/setjmp.h [MICROBLAZE]: Define _JBLEN, _JBTYPE.
2416         * libc/include/sys/config.h [MICROBLAZE]: Define _REENT_SMALL,
2417         _UNIX98_THREAD_MUTEX_ATTRIBUTES.
2418         * libc/include/sys/types.h: Treat XMK like rtems, define
2419         PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE,
2420         PTHREAD_MUTEX_DEFAULT, PTHREAD_STACK_MIN, define stuct pthread_attr_s.
2421         * libc/machine/configure.in: Add microblaze.
2422         * libc/machine/configure: Add microblaze (not regenerated).
2423         * libc/machine/microblaze/configure.in: NEW.
2424         * libc/machine/microblaze/configure: Generate.
2425         * libc/machine/microblaze/Makefile.am: NEW.
2426         * libc/machine/microblaze/Makefile.in: Generate.
2427         * libc/machine/microblaze/{abort.c, strcmp.c, strcpy.c, strlen.c,
2428         mallocr.c, longjmp.S, setjmp.S}: NEW.
2429         * libc/stdlib/mallocr.c [MICROBLAZE]: Don't declare sbrk prototype,
2430         mALLOc(): return malloc value.
2431
2432 2009-09-27  Corinna Vinschen  <corinna@vinschen.de>
2433
2434         * libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin.
2435         (lc_message_charset): Ditto.
2436         (loadlocale): Set charset of the "C" locale to "UTF-8" on Cygwin.
2437         * libc/stdlib/mbtowc_r.c (__mbtowc): Default to __utf8_mbtowc on
2438         Cygwin.
2439         * libc/stdlib/wctomb_r.c (__wctomb): Default to __utf8_wctomb on
2440         Cygwin.
2441
2442 2009-09-26  Eric Blake  <ebb9@byu.net>
2443
2444         * libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:
2445         Add declarations.
2446
2447 2009-09-24  Eric Blake  <ebb9@byu.net>
2448
2449         * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:
2450         Add declarations.
2451
2452 2009-09-23  Corinna Vinschen  <corinna@vinschen.de>
2453
2454         * libc/locale/locale.c: Drop Cygwin-specific windows.h include.
2455         (loadlocale): Call __set_charset_from_codepage with 0 codepage.
2456
2457 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
2458
2459         * libc/include/stdlib.h: Add posix_memalign.
2460
2461 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
2462
2463         * configure.host (*-rtems*): Remove -DMISSING_SYSCALL_NAMES.
2464         Add -DHAVE_BLKSIZE, -D_NO_WORDEXP -D_NO_POPEN.
2465
2466 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
2467
2468         * configure.host (m32c): Move setting -DABORT_PROVIDED to second
2469         "case $host".
2470
2471 2009-09-18  Christopher Faylor  <me+cygwin@cgf.cx>
2472
2473         * libc/include/sys/unistd.h: Declare getpagesize as returning
2474         POSIX-mandated int.
2475         * libc/sys/linux/sys/unistd.h: Ditto.
2476
2477 2009-08-31  Takaki Makino  <t@snowelm.com>
2478
2479         * libm/machine/i386/f_pow.c(_f_pow): Alter ASM so it works with
2480         newer gcc versions.
2481         * libm/maachine/i386/f_powf.c(_f_powf): Ditto.
2482
2483 2009-08-25  Andy Koppe  <andy.koppe@gmail.com>
2484
2485         * libc/stdlib/sb_charsets.c (__micro_atoi): Allow five-digit codepage
2486         numbers.
2487         * libc/locale/locale.c (loadlocale): Set MB_CUR_MAX to 1 for KOI8
2488         charsets.
2489         * libc/stdlib/local.h (__cp_conv): Remove incorrect number of codepages.
2490
2491 2009-08-24  Corinna Vinschen  <corinna@vinschen.de>
2492
2493         * libc/locale/locale.c: Update documentation.
2494         (loadlocale): Map "KOI8-R" and "KOI8-U" to CP20866 and CP21866.
2495
2496 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
2497
2498         * libc/stdlib/sb_charsets.c (__cp_conv): Add KOI8-R (Russian, CP20866)
2499         and KOI8-U (Ukrainian, CP21866) to Windows codepage conversion tables.
2500         * libc/ctype/ctype_cp.h (__ctype_cp): Likewise for ctype tables.
2501
2502 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
2503
2504         * libc/ctype/iswspace.c (iswspace): Include "non-breaking
2505         space" (U+00A0).
2506         * libc/ctype/iswblank.c (iswblank): Likewise.
2507
2508 2009-08-21  Corinna Vinschen  <corinna@vinschen.de>
2509
2510         * libc/locale/locale.c (loadlocale): Throughout check charset string
2511         case insensitive and store internal charset string uppercased.  Allow
2512         "UTF8" additionally to "UTF-8".  Add this change to documentation.
2513
2514 2009-08-21  Eric Blake  <ebb9@byu.net>
2515
2516         * libc/include/iconv.h (iconv): Match POSIX prototype.
2517         * libc/iconv/lib/iconv.c (iconv): Likewise.
2518
2519 2009-08-21  Craig Howland <howland@LGSInnovations.com>
2520
2521         * libm/common/s_remquo.c (remquo):  Fix sign of quotient when |x|==|y|.
2522         * libc/stdio/mktemp.c:  Add #include <stdlib.h> for function prototypes.
2523
2524 2009-08-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2525
2526         * iconvdata/Makefile.am (all): Remove.
2527         * libc/sys/a29khif/Makefile.am (all-am): Rename from ...
2528         (all): ... this.
2529         * libc/sys/arc/Makefile.am: Likewise.
2530         * libc/sys/arm/Makefile.am: Likewise.
2531         * libc/sys/d10v/Makefile.am: Likewise.
2532         * libc/sys/decstation/Makefile.am: Likewise.
2533         * libc/sys/h8300hms/Makefile.am: Likewise.
2534         * libc/sys/h8500hms/Makefile.am: Likewise.
2535         * libc/sys/linux/Makefile.am: Likewise.
2536         * libc/sys/linux/machine/i386/Makefile.am: Likewise.
2537         * libc/sys/m88kbug/Makefile.am: Likewise.
2538         * libc/sys/mmixware/Makefile.am: Likewise.
2539         * libc/sys/netware/Makefile.am: Likewise.
2540         * libc/sys/rdos/Makefile.am: Likewise.
2541         * libc/sys/rtems/Makefile.am: Likewise.
2542         * libc/sys/sh/Makefile.am: Likewise.
2543         * libc/sys/sparc64/Makefile.am: Likewise.
2544         * libc/sys/sun4/Makefile.am: Likewise.
2545         * libc/sys/sysmec/Makefile.am: Likewise.
2546         * libc/sys/sysnec810/Makefile.am: Likewise.
2547         * libc/sys/sysnecv850/Makefile.am: Likewise.
2548         * libc/sys/sysvi386/Makefile.am: Likewise.
2549         * libc/sys/sysvnecv70/Makefile.am: Likewise.
2550         * libc/sys/tic80/Makefile.am: Likewise.
2551         * libc/sys/w65/Makefile.am: Likewise.
2552         * libc/sys/z8ksim/Makefile.am: Likewise.
2553         * iconvdata/Makefile.in: Regenerate.
2554         * libc/sys/a29khif/Makefile.in: Likewise.
2555         * libc/sys/arc/Makefile.in: Likewise.
2556         * libc/sys/arm/Makefile.in: Likewise.
2557         * libc/sys/d10v/Makefile.in: Likewise.
2558         * libc/sys/decstation/Makefile.in: Likewise.
2559         * libc/sys/h8300hms/Makefile.in: Likewise.
2560         * libc/sys/h8500hms/Makefile.in: Likewise.
2561         * libc/sys/linux/Makefile.in: Likewise.
2562         * libc/sys/linux/machine/i386/Makefile.in: Likewise.
2563         * libc/sys/m88kbug/Makefile.in: Likewise.
2564         * libc/sys/mmixware/Makefile.in: Likewise.
2565         * libc/sys/netware/Makefile.in: Likewise.
2566         * libc/sys/rdos/Makefile.in: Likewise.
2567         * libc/sys/rtems/Makefile.in: Likewise.
2568         * libc/sys/sh/Makefile.in: Likewise.
2569         * libc/sys/sparc64/Makefile.in: Likewise.
2570         * libc/sys/sun4/Makefile.in: Likewise.
2571         * libc/sys/sysmec/Makefile.in: Likewise.
2572         * libc/sys/sysnec810/Makefile.in: Likewise.
2573         * libc/sys/sysnecv850/Makefile.in: Likewise.
2574         * libc/sys/sysvi386/Makefile.in: Likewise.
2575         * libc/sys/sysvnecv70/Makefile.in: Likewise.
2576         * libc/sys/tic80/Makefile.in: Likewise.
2577         * libc/sys/w65/Makefile.in: Likewise.
2578         * libc/sys/z8ksim/Makefile.in: Likewise.
2579
2580         * configure.in (newlib_cv_ldbl_eq_dbl): Rename cache variable
2581         from newlib_ldbl_eq_dbl.
2582         * configure: Regenerate.
2583
2584 2009-08-19  Eric Blake  <ebb9@byu.net>
2585
2586         * libc/Makefile.am (SUBDEFS): Correctly build popen docs.
2587         * libc/libc.texinfo (Top): Add posix node to menu.
2588
2589 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
2590
2591         * newlib.hin: Add comment regarding file being manually edited.
2592         * Makefile.am: Add no-op rule for newlib.hin.
2593         * Makefile.in: Regenerated.
2594
2595 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
2596
2597         * acconfig.h: Add templates for _HAVE_LONG_DOUBLE and _LDBL_EQ_DBL.
2598
2599 2009-08-18  Eric Blake  <ebb9@byu.net>
2600
2601         * libc/posix/popen.c (popen): Fix documented prototype.
2602
2603         Improve popen compatibility with glibc.
2604         * libc/posix/popen.c (popen): The 2006-08-22 change to use
2605         FD_CLOEXEC disagrees with other implementations; instead, use
2606         pidlist to work even when fcntl is not available.  Meanwhile,
2607         support the 'e' modifier to set CLOEXEC, as in glibc.  Drop
2608         cygwin-specific code, now that cygwin has its own version.
2609         * libc/posix/Makefile.am (CHEWOUT_FILES): Document popen.
2610         * libc/posix/posix.tex: New file.
2611
2612 2009-08-17  Craig Howland <howland@LGSInnovations.com>
2613
2614         * libc/string/wcsncpy.c (wcsncpy):  Re-write function based on small
2615         version of strncpy() (fixing two bugs).
2616
2617 2009-08-13  Corinna Vinschen  <corinna@vinschen.de>
2618
2619         * libc/stdio/mktemp.c (mkdtemp): Fix typo in function name.
2620
2621 2009-08-12  Jeff Johnston  <jjohnstn@redhat.com>
2622
2623         * libc/stdio/mktemp.c (_gettemp): Do not call _mkdir_r unless
2624         HAVE_MKDIR is defined.
2625
2626 2009-08-12  Hans-Peter Nilsson  <hp@axis.com>
2627
2628         * libc/include/reent.h: Add prototype and definition of _mkdir_r.
2629         * libc/reent/Makefile.am (GENERAL_SOURCES): Add mkdirr.c.
2630         (CHEWOUT_FILES): Add mkdirr.def.
2631         * libc/reent/Makefile.in: Regenerate.
2632         * libc/reent/mkdirr.c: New file.
2633
2634 2009-08-10  Jeff Johnston  <jjohnstn@redhat.com>
2635
2636         * libc/stdlib/wcstombs.c: Change documentation to specify size_t
2637         return type instead of int.
2638
2639 2009-07-29  Jeff Johnston  <jjohnstn@redhat.com>
2640
2641         * libc/stdlib/a64l.c: Fix to use 'a' instead of 'A' in calculation
2642         when a lower-case character is detected.
2643
2644 2009-07-29  Corinna Vinschen  <corinna@vinschen.de>
2645
2646         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Rework UTF-16 surrogate
2647         pair handling to be more bullet-proof even with incomplete UTF-8
2648         sequences.  Add check for 4 byte sequences resulting in values
2649         outside the valid Unicode range.  Add a comment to clarify checking
2650         for invalid CESU-8 sequences.
2651
2652 2009-07-28  Corinna Vinschen  <corinna@vinschen.de>
2653
2654         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Fix incrementing n in case
2655         of handling incomplete sequences.
2656
2657 2009-07-22  Eric Blake  <ebb9@byu.net>
2658
2659         Avoid a fault from locking a closed standard file.
2660         * libc/stdio/fflush.c (_fflush_r): Give up early if stream has
2661         been previously closed.
2662
2663 2009-07-09  Craig Howland <howland@LGSInnovations.com>
2664
2665         * libm/math/ef_scalb.c:  Replace isnanf() (pre-C99 function call) with
2666         isnan() (C99 macro).
2667         * libm/math/wf_log.c:  Ditto.
2668         * libm/math/wf_j0.c:  Ditto.
2669         * libm/math/wf_sqrt.c:  Ditto.
2670         * libm/math/wf_pow.c:  Ditto.
2671         * libm/math/wf_fmod.c:  Ditto.
2672         * libm/math/wf_remainder.c:  Ditto.
2673         * libm/math/wf_scalb.c:  Ditto.
2674         * libm/math/wf_atanh.c:  Ditto.
2675         * libm/math/wf_cosh.c:  Ditto.
2676         * libm/math/wf_acos.c:  Ditto.
2677         * libm/math/wf_acosh.c:  Ditto.
2678         * libm/math/wf_jn.c:  Ditto.
2679         * libm/math/wf_log10.c:  Ditto.
2680         * libm/math/wf_asin.c:  Ditto.
2681         * libm/math/wf_j1.c:  Ditto.
2682         * libm/common/sf_isnan.c:  Add #include <ieeefp.h>, fix comment.
2683         * libm/common/sf_isinf.c:  Add #include <ieeefp.h>, adjust comment to
2684         match that from s_isinf.c.
2685         * libc/include/machine/ieeefp.h:  Simplify isinf and isnan macros to
2686         remove un-necessary extension use (in a similar manner to as was
2687         recently done in math.h).
2688         * libc/include/math.h:  Remove isnanf and isinff prototypes (are in
2689         ieeefp.h).
2690         * libm/machine/spu/sf_isinf.c:  Fix comment (remove <math.h>).
2691
2692 2009-07-06  Joel Sherrill <joel.sherrill@oarcorp.com>
2693
2694         * libc/include/sys/features.h: Enable UNIX98 mutex attributes
2695         for RTEMS.
2696
2697 2009-07-03  Eric Blake  <ebb9@byu.net>
2698
2699         Add mkdtemp, mkstemps.
2700         * libc/stdio/mktemp.c: Fix documentation.
2701         (_gettemp): Add domkdir and length parameters.  Check for
2702         insufficient 'X' suffix.  Drop cygwin-specific code.
2703         (_mkstemp_r, _mktemp_r, mkstemp, mktemp): Adjust clients.
2704         (_mkdtemp_r, _mkstemps_r, mkdtemp, mkstemps): New functions.
2705         * libc/include/stdlib.h (_mkdtemp_r, _mkstemps_r, mkdtemp)
2706         (mkstemps): Declare them.
2707
2708         Add fpurge.
2709         * libc/stdio/fpurge.c (fpurge, _fpurge_r): New file.
2710         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES, fpurge):
2711         Build it.
2712         * libc/stdio/Makefile.in: Regenerated.
2713         * libc/include/stdio.h (fpurge, _fpurge_r): New declarations.
2714         * libc/stdio/stdio.tex: Build documentation.
2715
2716 2009-06-23  Jeff Johnston  <jjohnstn@redhat.com>
2717
2718         * Makefile.am (MATHOBJS_IN_LIBC): Add s_fpclassify and
2719         sf_fpclassify as these are now used for infinity testing.
2720         * Makefile.in: Regenerated.
2721
2722 2009-06-19  Joel Sherrill <joel.sherrill@oarcorp.com>
2723
2724         * libc/sys/rtems/machine/param.h: Change ALIGNBYTES
2725         so it can point to an aligned structure or double.
2726
2727 2009-06-18  Corinna Vinschen  <corinna@vinschen.de>
2728
2729         * libc/locale/locale.c (loadlocale): Add handling of "@cjknarrow"
2730         modifier on _MB_CAPABLE targets.  Add comment to explain.  Improve
2731         documentation.
2732
2733 2009-06-17  Michael Eager <eager@eagercon.com>
2734
2735         * libc/include/pthread.h: Support XMK (Xilinx) BSP, add RTEMS to
2736         PTHREAD_MUTEX_NORMAL.
2737         * libc/include/sys/features.h: Same.
2738         * libc/include/sys/types.h: Same.
2739
2740 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
2741
2742         * libc/include/locale.h (struct lconv): Add missing members required
2743         by POSIX.1-2008.
2744         * libc/locale/locale.c (lconv): Initialize new members to default
2745         values in "C" locale.
2746
2747 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
2748
2749         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length of
2750         radix char instead of assuming length 1.
2751         * libc/stdlib/gdtoa-gethex.c: Remove use of USE_LOCALE.
2752         (gethex): Allow multibyte decimal point.
2753         Fix compiler warnings due to different signedness of pointer types.
2754         * libc/stdlib/strtod.c: Remove use of USE_LOCALE.
2755         (_strtod_r): Allow multibyte decimal point.
2756         * libc/stdlib/wcstod.c (_wcstod_r): Evaluate correct wide char
2757         endptr position if the decimal point is a multibyte char.
2758
2759 2009-06-16  Craig Howland <howland@LGSInnovations.com>
2760
2761         * libc/ctype/local.h (__locale_charset): Add arguments to
2762         prototype
2763         * libc/stdlib/local.h (__locale_charset): Ditto.
2764
2765 2009-06-16  Craig Howland <howland@LGSInnovations.com>
2766
2767         * libc/include/math.h:  Simplify fpclassify, isinf, isnan, and signbit
2768         macros to remove un-necessary extension use.  isinf and isnan also
2769         changed to use fpclassify.  isfinite macro modified to run faster by
2770         only calling fpclassify once instead of possibly twice.
2771
2772 2009-06-09  Corinna Vinschen  <corinna@vinschen.de>
2773
2774         * libc/ctype/tolower.c (tolower): Cast conversion result from
2775         mbtowc/wctomb to unsigned char to avoid negative return values.
2776         * libc/ctype/toupper.c (toupper): Ditto.
2777
2778 2009-06-03  IWAMURO Motonori  <deenheart@gmail.com>
2779
2780         * libc/string/wcwidth.c: Optimize for speed.
2781
2782 2009-06-03  Corinna Vinschen  <corinna@vinschen.de>
2783
2784         * libc/locale/locale.c (lc_ctype_cjk_lang): New static int.
2785         (loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang
2786         to 1 if the language is "jp", "ko", or "zh", to 0 otherwise.
2787         (__locale_cjk_lang): New function.
2788         * libc/string/local.h (__locale_cjk_lang): Declare.
2789         * libc/string/wcwidth.c: Fix comments.
2790         (__wcwidth): Handle CJK Ambiguous Width characters according
2791         to setting returned by __locale_cjk_lang.
2792
2793 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
2794
2795         * libc/include/sys/config.h: Remove specification of _REENT_SMALL for
2796         thumb2.
2797
2798 2009-06-02  IWAMURO Motonori  <deenheart@gmail.com>
2799
2800         * libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.
2801         (__jp2uc): Change the scope to static function.
2802         * libc/ctype/local.h (_jp2uc): Define as macro if defined __CYGWIN__.
2803         * libc/string/local.h (_jp2uc): Include ../ctype/local.h.
2804
2805 2009-05-27  Neal H. Walfield  <neal@gnu.org>
2806
2807         * libc/include/machine/setjmp.h (sigjmp_buf): Size according to
2808         _JBTYPE and the size of sigset_t.
2809
2810 2009-05-15  Craig Howland <howland@LGSInnovations.com>
2811
2812         * configure.in:  Add configuration test for long double type existing
2813         and set flag _HAVE_LONG_DOUBLE if true.  Fix INIT_ARRAY (.init_array)
2814         and _LDBL_EQ_DBL tests to not link so that will work with
2815         cross-compilers.
2816         * configure: Regenerated.
2817         * Makefile.in: Ditto.
2818         * newlib.hin: Add _HAVE_LONG_DOUBLE flag.
2819         * libc/include/math.h:  Change non-builtin defines for HUGE_VAL,
2820         HUGE_VALF, and HUGE_VALL to be constant expressions.  Add definitions
2821         for the non-builtin case for INFINITY and NAN.  Gate HUGE_VALL and
2822         union __ldmath definitions with (new) _HAVE_LONG_DOUBLE.
2823         *libm/common/s_infconst.c:  Change definitions to use values from
2824         float.h instead of non-so-portable integer forms.  Mark as being
2825         deprecated (because now removed from math.h, are not used anywhere
2826         in Newlib, itself).
2827
2828 2009-05-15  Corinna Vinschen  <corinna@vinschen.de>
2829
2830         * libc/string/local.h: New file.
2831         * libc/string/wcswidth.c (wcswidth):  Convert japanese wide
2832         characters to Unicode here.  Handle surrogate pairs for UTF-16
2833         systems.  Call __wcwidth rather than wcwidth.
2834         * libc/string/wcwidth.c: New implementation using Markus Kuhn's
2835         wcwidth implementation for Unicode.
2836         (bisearch): New static function.
2837         (__wcwidth): New function.  Take wint_t rather than wchar_t as
2838         parameter to allow full Unicode handling on UTF-16 systems.
2839         Move old wcwidth implementation here for non-multibyte aware
2840         systems.
2841         (wcwidth): Convert japanese wide characters to Unicode here.
2842         Call __wcwidth rather than using iswprint/iswcntrl.
2843
2844 2009-05-14  Corinna Vinschen  <corinna@vinschen.de>
2845
2846         * libc/ctype/local.h (JP_JIS, JP_SJIS, JP_EUCJP): Move definition
2847         to jp2uc.c.
2848         (__jp2uc): Remove declaration.
2849         (_jp2uc): Declare.
2850         * libc/ctype/jp2uc.c (JP_JIS, JP_SJIS, JP_EUCJP): Define.
2851         (__jp2uc): Remove Cygwin special case.
2852         (_jp2uc): New function.  On Cygwin, just return c.
2853         * libc/ctype/iswalpha.c (iswalpha): Just call _jp2uc.
2854         * libc/ctype/iswblank.c (iswblank): Ditto.
2855         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
2856         * libc/ctype/iswprint.c (iswprint): Ditto.
2857         * libc/ctype/iswpunct.c (iswpunt): Ditto.
2858         * libc/ctype/iswspace.c (iswspace): Ditto.
2859         * libc/ctype/towlower.c (towlower): Ditto.
2860         * libc/ctype/towupper.c (towupper): Ditto.
2861
2862 2009-05-13  Paul Brook  <paul@codesourcery.com>
2863
2864         * libc/machine/arm/setjmp.S: Don't bother saving IP.  Copy SP to
2865         IP before saving.  Likewise when restoring.
2866
2867 2009-05-13  Paul Brook  <paul@codesourcery.com>
2868
2869         * libc/machine/arm/setjmp.S: Add ARMv6-M implementation.
2870
2871 2009-05-13  Corinna Vinschen  <corinna@vinschen.de>
2872
2873         * libc/locale/locale.c (setlocale): Don't build on Cygwin.
2874
2875 2009-05-11  Craig Howland <howland@LGSInnovations.com>
2876
2877         * libm/machine/i386/f_llrint.c: Remove llrint() definition.
2878         * libm/machine/i386/f_llrintf.c: Remove llrintf() definition.
2879
2880 2009-05-08  Nick Clifton  <nickc@redhat.com>
2881
2882         * MAINTAINERS: Add myself as a maintainer for the MN10300 and to
2883         the write-after-approval list.
2884
2885 2009-04-30  Anthony Green  <green@moxielogic.com>
2886
2887         * MAINTAINERS: Add myself as moxie maintainer and to the
2888         write-after-approval list.
2889
2890 2009-04-30  Eric Blake  <ebb9@byu.net>
2891
2892         Allow gcc warning for toupper even with extended charsets.
2893         * libc/include/ctype.h (toupper, tolower)
2894         [_MB_EXTENDED_CHARSETS_ISO]: Allow gcc warning when called with
2895         'char' even when we must call the function for correct behavior.
2896         [!_MB_EXTENDED_CHARSETS_ISO]: Fix regression in result type.
2897
2898 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
2899
2900         * libc/stdio/fgetc.c: Make sure sfp lock is acquired before the
2901         file lock and released before the file lock to avoid a deadlock
2902         scenario.
2903         * libc/stdio/fgets.c: Ditto.
2904         * libc/stdio/fgetwc.c: Ditto.
2905         * libc/stdio/fgetws.c: Ditto.
2906         * libc/stdio/fread.c: Ditto.
2907         * libc/stdio/fseek.c: Ditto.
2908         * libc/stdio/getc.c: Ditto.
2909         * libc/stdio/getdelim.c: Ditto.
2910         * libc/stdio/gets.c: Ditto.
2911
2912 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
2913
2914         * configure.in: Add configuration test for long double equals dbl
2915         and set flag _LDBL_EQ_DBL if true.
2916         * configure: Regenerated.
2917         * newlib.hin: Add _LDBL_EQ_DBL flag.
2918         * libc/include/math.h: Use _LDBL_EQ_DBL flag instead of
2919         _HAVE_LDBL_MATH.
2920         * libc/include/stdlib.h: Use _LDBL_EQ_DBL flag instead of
2921         _HAVE_LDBL_STDLIB.
2922         * libc/common/local.h: Remove _LDBL_EQ_DBL flag setting.
2923         * libc/stdlib/local.h: Ditto.
2924
2925 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
2926
2927         * libc/include/stdint.h (UINTPTR_MAX): Define to __UINTPTR_MAX__
2928         if __UINTPTR_MAX__ defined.
2929
2930 2009-04-24  Eric Blake  <ebb9@byu.net>
2931
2932         Be namespace clean in ctype.h.
2933         * libc/include/ctype.h (_tolower, _toupper, isalpha, isupper)
2934         (islower, isdigit, isxdigit, isspace, ispunct, isalnum)
2935         (isprint, isgraph, iscntrl, isblank, toupper, tolower)
2936         (isascii, toascii): Don't use 'c' as macro parameter name.
2937
2938         Trigger gcc warning if isFoo macros are called with plain char.
2939         * libc/include/ctype.h (isalpha, isupper, islower, isdigit)
2940         (isxdigit, isspace, ispunct, isalnum, isprint, isgraph)
2941         (iscntrl, isblank, toupper, tolower): Rewrite to let 'gcc -Wall'
2942         warn when user calls macro with a char argument.
2943
2944 2009-04-23  Mike Burgess  <wizardsguild@earthlink.net>
2945
2946         * libc/string/strcasecmp.c: Optimized rewrite.
2947         * libc/string/strncasecmp.c: Fix description.
2948         * libc/string/strlwr.c: Avoid passing signed char to tolower.
2949         * libc/string/strupr.c: Avoid passing signed char to tolower.
2950
2951 2009-04-23  Paul Brook  <paul@codesourcery.com>
2952             Kazu Hirata  <kazu@codesourcery.com>
2953
2954         * libc/stdlib/__atexit.c (__register_exitproc): Use weak reference
2955         to malloc.  Allocate dynamically only if it is present.
2956         * libc/stdlib/__call_atexit.c (__call_exitprocs): Use weak
2957         reference to free.  Call free only if it is present.
2958
2959 2009-04-22 Anthony Green <green@moxielogic.com>
2960
2961         * configure.host: Add moxie support.
2962         * libc/machine/configure.in: Add moxie support.
2963         * libc/machine/configure: Rebuilt.
2964         * libc/machine/moxie/aclocal.m4: New file.
2965         * libc/machine/moxie/configure: New file.
2966         * libc/machine/moxie/configure.in: New file.
2967         * libc/machine/moxie/Makefile.am: New file.
2968         * libc/machine/moxie/Makefile.in: New file.
2969         * libc/machine/moxie/setjmp.S: New file.
2970         * libc/include/machine/setjmp.h (_JBLEN): Define for moxie.
2971         * libc/include/machine/ieeefp.h: Add moxie support.
2972
2973 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
2974
2975         * libc/stdio/local.h (__chclass, __state_table, __action_table):
2976         Add extern to the declarations.
2977         * libc/stdlib/local.h (__iso_8859_conv, __cp_conv): Likewise.
2978
2979 2009-04-21  Corinna Vinschen  <corinna@vinschen.de>
2980
2981         * libc/ctype/ctype_.c (_CTYPE_DATA_128_255): Rename from
2982         _CTYPE_DATA_128_256.
2983         * libc/ctype/ctype_cp.h: Split off all character class values for
2984         character 255 from the rest of the definitions.
2985         (__ctype_cp): Use the new definitions.  Make sure that the table
2986         always contains 0 for EOF (-1).
2987         * libc/ctype/ctype_iso.h: Ditto.
2988
2989 2009-04-21  Sandra Loosemore  <sandra@codesourcery.com>
2990
2991         * libc/reent/impure.c (__sf_fake_stdin, __sf_fake_stdout)
2992         (__sf_fake_stderr): Declare locally with weak attribute.
2993
2994 2009-04-21  Mark Mitchell  <mark@codesourcery.com>
2995
2996         * libc/include/_ansi.h: Move C++ defines to top of file.
2997         (_NOTHROW): New macro.
2998         (_EXFUN_NOTHROW): Likewise.
2999         * libc/include/stdlib.h (calloc): Declare with _EXFUN_NOTHROW.
3000         (free): Likewise.
3001         (malloc): Likewise.
3002         (realloc): Likewise.
3003         (_malloc_r): Likewise.
3004         (_callor_r): Likewise.
3005         (_free_r): Likewise.
3006         (_realloc_r): Likewise.
3007
3008 2009-04-20  Jeff johnston  <jjohnstn@redhat.com>
3009
3010         * libc/include/math.h: Change _LDBL_EQ_DBL flag usage to
3011         be _HAVE_LDBL_MATH.
3012         * libc/include/stdlib.h: Change _LDBL_EQ_DBL flag usage to
3013         be _HAVE_LDBL_STDLIB.
3014
3015 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
3016
3017         * libc/include/machine/ieeefp.h (_LDBL_EQ_DBL): Remove.
3018         * libc/stdlib/local.h (_LDBL_EQ_DBL): Add.
3019         * libc/stdlib/strtold.c: Include local.h.
3020         * libc/stdlib/wcstold.c: Likewise.
3021         * libm/common/atanl.c: Likewise.
3022         * libm/common/cosl.c: Likewise.
3023         * libm/common/sinl.c: Likewise.
3024         * libm/common/modfl.c: Likewise.
3025         * libm/common/frexpl.c: Likewise.
3026         * libm/common/tanhl.c: Likewise.
3027         * libm/common/tanl.c: Likewise.
3028         * libm/common/expm1l.c: Likewise.
3029         * libm/common/log1pl.c: Likewise.
3030         * libm/common/ceill.c: Likewise.
3031         * libm/common/fabsl.c: Likewise.
3032         * libm/common/floorl.c: Likewise.
3033         * libm/common/acosl.c: Likewise.
3034         * libm/common/asinl.c: Likewise.
3035         * libm/common/atan2l.c: Likewise.
3036         * libm/common/coshl.c: Likewise.
3037         * libm/common/expl.c: Likewise.
3038         * libm/common/fmodl.c: Likewise.
3039         * libm/common/hypotl.c: Likewise.
3040         * libm/common/ldexpl.c: Likewise.
3041         * libm/common/log10l.c: Likewise.
3042         * libm/common/logl.c: Likewise.
3043         * libm/common/powl.c: Likewise.
3044         * libm/common/sqrtl.c: Likewise.
3045         * libm/common/copysignl.c: Likewise.
3046         * libm/common/ilogbl.c: Likewise.
3047         * libm/common/nanl.c: Likewise.
3048         * libm/common/cbrtl.c: Likewise.
3049         * libm/common/asinhl.c: Likewise.
3050         * libm/common/nextafterl.c: Likewise.
3051         * libm/common/rintl.c: Likewise.
3052         * libm/common/scalbnl.c: Likewise.
3053         * libm/common/exp2l.c: Likewise.
3054         * libm/common/fdiml.c: Likewise.
3055         * libm/common/fmal.c: Likewise.
3056         * libm/common/fmaxl.c: Likewise.
3057         * libm/common/fminl.c: Likewise.
3058         * libm/common/lrintl.c: Likewise.
3059         * libm/common/lroundl.c: Likewise.
3060         * libm/common/nearbyintl.c: Likewise.
3061         * libm/common/remquol.c: Likewise.
3062         * libm/common/roundl.c: Likewise.
3063         * libm/common/scalblnl.c: Likewise.
3064         * libm/common/truncl.c: Likewise.
3065         * libm/common/acoshl.c: Likewise.
3066         * libm/common/atanhl.c: Likewise.
3067         * libm/common/erfcl.c: Likewise.
3068         * libm/common/erfl.c: Likewise.
3069         * libm/common/lgammal.c: Likewise.
3070         * libm/common/remainderl.c: Likewise.
3071         * libm/common/tgammal.c: Likewise.
3072         * libm/common/sinhl.c: Likewise.
3073         * libm/common/llroundl.c: Likewise.
3074         * libm/common/llrintl.c: Likewise.
3075         * libm/common/local.h: New file with _LDBL_EQ_DBL macro.
3076
3077 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
3078
3079         * libc/include/machine/ieeefp.h: _LDBL_EQ_DBL check fixed.
3080         * libc/include/math.h (llrintl): Declare.
3081         * libm/common/llrintl.c: New File.
3082         * libm/common/Makefile.am: New File added.
3083         * libm/common/Makefile.in: Regenerate.
3084
3085 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
3086
3087         * libc/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
3088         avoid executable test.
3089         * libc/configure: Regenerate.
3090
3091 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
3092
3093         * configure.in: Remove _HAVE_ARRAY_ALIASING check.
3094         * configure: Regenerated.
3095         * Makefile.in: Regenerated.
3096         * newlib.hin: Remove _HAVE_ARRAY_ALIASING flag.
3097         * libc/ctype/ctype_.c: Do not check for _HAVE_ARRAY_ALIASING.
3098         * libm/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
3099         avoid executable test.
3100         * libm/configure: Regenerated.
3101
3102 2009-04-16  Jeff johnston  <jjohnstn@redhat.com>
3103
3104         * libc/misc/init.c (__libc_fini_array): Process fini_array in
3105         reverse order as compliant with the ELF specification.
3106
3107 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
3108
3109         * libc/machine/spu/Makefile.am: Add new File.
3110         * libc/machine/spu/Makefile.in: Regenerate.
3111         * libc/machine/spu/fdopen.c: New file.
3112
3113 2009-04-16  Hans-Peter Nilsson  <hp@axis.com>
3114
3115         * libc/include/stdint.h (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Define.
3116
3117 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
3118
3119         * libm/libm.texinfo: Add long double function support chapter.
3120         * libc/include/machine/ieeefp.h: Add _LDBL_EQ_DBL define.
3121         * libc/include/stdlib.h: Include <machine/ieeefp.h>.
3122         (strtold, wcstold): Declare.
3123         * libc/stdlib/strtold.c: New File.
3124         * libc/stdlib/wcstold.c: Likewise.
3125         * libc/configure.in: Add long double check.
3126         * libc/configure: Regenerate.
3127         * libc/stdlib/Makefile.am: Add strtold.c and wcstold.c.
3128         * libc/stdlib/Makefile.in: Regenerate.
3129         * libc/include/math.h (atanl, cosl, sinl, tanl, tanhl): Declare.
3130         (frexpl, modfl, ceill, fabsl, floorl, log1pl, expm1l, acosl): Ditto.
3131         (asinl, atan2l, coshl, sinhl, expl, ldexpl, logl, log10l, powl): Ditto.
3132         (sqrtl, fmodl, hypotl, copysignl, nanl, ilogbl, asinhl, cbrt): Ditto.
3133         (nextafterl, rintl, scalbnl, exp2l, scalblnl, tgammal): Ditto.
3134         (nearbyintl, lrintl, llrintl, roundl, lroundl, llround): Ditto.
3135         (llroundl, truncl, remquol, fdiml, fmaxl, fminl, fmal, acoshl): Ditto.
3136         (atanhl, remainderl, lgammal, erfl, erfcl): Ditto.
3137         * libm/common/atanl.c: New File.
3138         * libm/common/cosl.c: Likewise.
3139         * libm/common/sinl.c: Likewise.
3140         * libm/common/modfl.c: Likewise.
3141         * libm/common/frexpl.c: Likewise.
3142         * libm/common/tanhl.c: Likewise.
3143         * libm/common/tanl.c: Likewise.
3144         * libm/common/expm1l.c: Likewise.
3145         * libm/common/log1pl.c: Likewise.
3146         * libm/common/ceill.c: Likewise.
3147         * libm/common/fabsl.c: Likewise.
3148         * libm/common/floorl.c: Likewise.
3149         * libm/common/acosl.c: Likewise.
3150         * libm/common/asinl.c: Likewise.
3151         * libm/common/atan2l.c: Likewise.
3152         * libm/common/coshl.c: Likewise.
3153         * libm/common/expl.c: Likewise.
3154         * libm/common/fmodl.c: Likewise.
3155         * libm/common/hypotl.c: Likewise.
3156         * libm/common/ldexpl.c: Likewise.
3157         * libm/common/log10l.c: Likewise.
3158         * libm/common/logl.c: Likewise.
3159         * libm/common/powl.c: Likewise.
3160         * libm/common/sqrtl.c: Likewise.
3161         * libm/common/copysignl.c: Likewise.
3162         * libm/common/ilogbl.c: Likewise.
3163         * libm/common/nanl.c: Likewise.
3164         * libm/common/cbrtl.c: Likewise.
3165         * libm/common/asinhl.c: Likewise.
3166         * libm/common/nextafterl.c: Likewise.
3167         * libm/common/rintl.c: Likewise.
3168         * libm/common/scalbnl.c: Likewise.
3169         * libm/common/exp2l.c: Likewise.
3170         * libm/common/fdiml.c: Likewise.
3171         * libm/common/fmal.c: Likewise.
3172         * libm/common/fmaxl.c: Likewise.
3173         * libm/common/fminl.c: Likewise.
3174         * libm/common/lrintl.c: Likewise.
3175         * libm/common/lroundl.c: Likewise.
3176         * libm/common/nearbyintl.c: Likewise.
3177         * libm/common/remquol.c: Likewise.
3178         * libm/common/roundl.c: Likewise.
3179         * libm/common/scalblnl.c: Likewise.
3180         * libm/common/truncl.c: Likewise.
3181         * libm/common/acoshl.c: Likewise.
3182         * libm/common/atanhl.c: Likewise.
3183         * libm/common/erfcl.c: Likewise.
3184         * libm/common/erfl.c: Likewise.
3185         * libm/common/lgammal.c: Likewise.
3186         * libm/common/remainderl.c: Likewise.
3187         * libm/common/tgammal.c: Likewise.
3188         * libm/common/sinhl.c: Likewise.
3189         * libm/common/llroundl.c: Likewise.
3190         * libm/configure.in: Add long double check.
3191         * libm/configure: Regenerate.
3192         * libm/common/Makefile.am: Add new files.
3193         * libm/common/Makefile.in: Regenerate.
3194
3195 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
3196
3197         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Remove _B flag from TAB.
3198         * libc/ctype/ctype_cp.h: Mark non-cased letters in tables for codepages
3199         720, 862, 874, 1255, and 1256 to _U|_L.  Fix a couple of incorrect
3200         class mappings.
3201         * libc/ctype/ctype_iso.h: Mark non-cased letters in ISO-8859 tables
3202         6, 8, and 11 to _U|_L.  Fix a couple of incorrect class mappings.
3203         * libc/ctype/isblank.c (isblank): Special case TAB.
3204         * libc/ctype/islower.c (islower): Check explicitely for _L flag only
3205         in (_U|_L).
3206         * libc/ctype/isupper.c (isupper): Ditto, but check for _U flag.
3207         * libc/include/ctype.h (islower): Same in macro.
3208         (isupper): Ditto.
3209         (isblank): Special case TAB.  Redefine macro for GCC only.
3210
3211 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
3212
3213         * libc/stdlib/local.h (__mbtowc): Declare extern.
3214         (__wctomb): Ditto.
3215
3216 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
3217
3218         * libc/stdlib/mbctype.h (_iseucjp1): Like _iseucjp, but also
3219         recognizes 0x8e and 0x8f lead bytes.
3220         (_iseucjp2): Rename from _iseucjp.
3221         * libc/stdlib/mbtowc_r.c (__eucjp_mbtowc): Convert JIS-X-0212
3222         triplebyte sequences as well.
3223         * libc/stdlib/wctomb_r.c (__eucjp_wctomb): Convert to JIS-X-0212
3224         triplebyte sequences as well.
3225
3226 2009-04-08  Ken Werner  <ken.werner@de.ibm.com>
3227
3228         * configure.in: Add square brackets for the array aliasing conftest.
3229         * configure: Regenerate.
3230
3231 2009-04-06  Mike Burgess  <wizardsguild@earthlink.net>
3232
3233         * libc/string/strncasecmp.c: Optimized rewrite.
3234
3235 2009-04-06  Ken Werner  <ken.werner@de.ibm.com>
3236
3237         * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu.
3238         * libc/include/machine/time.h (nanosleep): Declare.
3239
3240 2009-04-06  Corinna Vinschen  <corinna@vinschen.de>
3241
3242         * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.
3243
3244 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
3245
3246         * libc/stdlib/wcstombs.c: Fix datatypes in documentation.
3247
3248 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
3249
3250         * libc/include/stdio.h (_ELIDABLE_INLINE): Move definition from here...
3251         * libc/include/_ansi.h (_ELIDABLE_INLINE): ..to here.
3252
3253 2009-04-03  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
3254
3255         * libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
3256         to avoid a warning with -Wmissing-prototypes.
3257
3258 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
3259
3260         * libc/machine/spu/mmap_ea.c (mmap_ea): Check length argument.
3261
3262 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
3263
3264         * libc/machine/spu/sys/linux_syscalls.h: include <sys/types.h>
3265         (linux_getpid, linux_gettid): Declare.
3266
3267 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
3268
3269         * libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU
3270         profiling.
3271
3272 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
3273
3274         * libc/include/math.h: Remove duplicate copysign prototype.
3275         Fix __math_68881 define typo.  Guard functions of the rint family.
3276
3277 2009-04-03  Craig Howland <howland@LGSInnovations.com>
3278
3279         * libm/common/s_llrint.c: New file, implementing llrint().
3280         * libm/common/sf_llrint.c: New file, implementing llrintf().
3281         * libm/common/Makefile.am:  Add s_llrint.c (src); sf_llrint.c (fsrc).
3282         * libm/common/Makefile.in:  Regenerate.
3283
3284 2009-04-02  Corinna Vinschen  <corinna@vinschen.de>
3285
3286         * libc/ctype/ctype_c.c: Move inclusion of ctype_iso.h and
3287         ctype_cp.h out of ALLOW_NEGATIVE_CTYPE_INDEX case.
3288         (__ctype_ptr__): Constify in !_MB_CAPABLE case.  Otherwise,
3289         de-constify in !ALLOW_NEGATIVE_CTYPE_INDEX case, too.  Add comment.
3290         (__set_ctype): Set __ctype_ptr__ pointer according to definition
3291         of ALLOW_NEGATIVE_CTYPE_INDEX.
3292         * libc/include/ctype.h (__ctype_ptr__): Constify in !_MB_CAPABLE case.
3293
3294 2009-03-31  Corinna Vinschen  <corinna@vinschen.de>
3295
3296         * libc/ctype/Makefile.am: Remove _tolower.c and _toupper.c
3297         source files.  Add a dependency rule for ctype_o to note
3298         changes in ctype_iso.h and ctype_cp.h.
3299         * libc/ctype/Makefile.in: Regenerate.
3300         * libc/ctype/_tolower.c: Remove file.
3301         * libc/ctype/_toupper.c: Remove file.
3302         * libc/ctype/ctype_.c: Make sure ALLOW_NEGATIVE_CTYPE_INDEX
3303         is always defined on Cygwin.
3304         (_ctype_b): Don't make `static const' on Cygwin.
3305         (ctype_iso.h): Include if _MB_EXTENDED_CHARSETS_ISO is set.
3306         (ctype_cp.h): Include if _MB_EXTENDED_CHARSETS_WINDOWS is set.
3307         (__ctype_ptr): Drop definition.
3308         (__ctype_ptr__): De-constify.  Mark as __EXPORT symbol.
3309         (_ctype_): Add Cygwin-specifc asm define.
3310         (__set_ctype): New function to set __ctype_ptr__ according to
3311         current charset.
3312         * libc/ctype/ctype_cp.h: New file containing Windows codepage
3313         specific character class tables.
3314         * libc/ctype/ctype_iso.h: New file containing ISO-8859-x
3315         specific character class tables.
3316         * libc/ctype/tolower.c (tolower): Reimplement to support any singlebyte
3317         charset if one of the extended charsets is enabled.
3318         * libc/ctype/toupper.c (toupper): Ditto.
3319         * libc/include/ctype.h (_tolower): Define as macro per POSIX.
3320         (_toupper): Ditto.
3321         (__ctype_ptr__): De-constify.
3322         (toupper): Disable macro on systems supporting extended charsets.
3323         (tolower): Ditto.
3324         * libc/include/sys/config.h (__EXPORT): Define empty if not defined.
3325         * libc/locale/locale.c (__mb_cur_max): Mark as __EXPORT symbol.
3326         (__set_ctype): Declare unconditionally.
3327         (loadlocale): Remove __CYGWIN__ guard around __set_ctype call.
3328
3329 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
3330
3331         * libc/locale/locale.c (loadlocale): Revert to charset "GBK" instead
3332         of "GB2312".  Fix documentation accordingly.
3333
3334 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
3335
3336         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Mark TAB as blank character.
3337         * libc/ctype/isblank.c: Replace hardcoded test with test for having _B
3338         marker in ctype array.
3339         * libc/include/ctype.h (isblank): Add macro.
3340
3341 2009-03-25  Craig Howland <howland@LGSInnovations.com>
3342
3343         * libc/include/math.h:  (llround, llroundf): Declare.
3344         * libm/common/s_llround.c: New file, implementing llround().
3345         * libm/common/sf_llround.c: New file, implementing llroundf().
3346         * libm/common/sf_lround.c: Remove spurious cast in _DOUBLE_IS_32BITS
3347         version of function.
3348         * libm/common/sf_lrint.c: Ditto.
3349         * libm/common/sf_logb.c:  Corrected return for subnormal argument
3350         by replacing existing function with a version created from sf_ilogb.c.
3351         * libm/common/s_logb.c: Ditto, except starting point s_ilogb.c.  Also
3352         added documentation for logb() and logbf().
3353         * libm/common/s_signbit.c:  Add signbit() documentation.
3354         * libm/common/s_log2.c: Update return values to match what w_log2.c has,
3355         since log2 uses log(); add note about being derived instead of direct.
3356         * libm/common/sf_fma.c: Add casts to attempt to get correct results,
3357         as well as comments pointing out problems with the implementation.
3358         * libm/common/s_fma.c: Add fma() and fmaf() documentation.
3359         * libm/common/sf_remquo.c: Incorrect quotient returns for large values
3360         corrected by discarding existing function and replacing with Sun
3361         verion, with some enhancements.
3362         * libm/common/s_remquo.c: Ditto.  Add remquo() and remquof()
3363         documentation.
3364         * libm/common/s_fmax.c: Add fmax() and fmaxf() documentation.
3365         * libm/common/s_fmin.c: Add fmin() and fminf() documentation.
3366         * libm/common/s_fdim.c: Return NAN for NAN arg, add fdim() and fdimf()
3367         documentation.
3368         * libm/common/sf_fdim.c: Return NAN for NAN arg, HUGE_VALF for inf arg.
3369         * libm/common/s_trunc.c: Add trunc() and truncf() documentation.
3370         * libm/common/s_rint.c: Add rint() and rintf() documentation.
3371         * libm/common/s_round.c: Add round() and roundf() documentation.
3372         * libm/common/s_scalbn.c: Add scalbln() and scalblnf() documentation.
3373         * libm/common/s_infinity.c: Add infinity() and infinityf()
3374         documentation.
3375         * libm/common/s_lround.c: Add lround(), lroundf(), llround(), and
3376         llroundf() documentation.
3377         * libm/common/s_lrint.c: Add lrint(), lrintf(), llrint(), and llrintf()
3378         documentation.
3379         * libm/common/isgreater.c: New file for documenting math.h function-like
3380         macros isgreater(), isgreaterequal(), isless(), islessequal(),
3381         islessgreater(), and isunordered().
3382         * libm/common/s_isnan.c: Add documentation for function-like macros
3383         fpclassify(), isfinite(), isinf(), isnan(), and isnormal().
3384         * libm/common/s_nearbyint.c: Add nearbyint() and nearbyintf()
3385         documentation.
3386         * libm/common/Makefile.am: Add s_llround.c (src); sf_llround.c (fsrc);
3387         s_fdim.def, s_fma.def, s_fmax.def, s_fmin.def,
3388         s_logb.def, s_lrint.def, s_lround.def, s_nearbyint.def, s_remquo.def,
3389         s_rint.def, s_round.def, s_signbit.def, s_trunc.def, and
3390         isgreater.def (chobj);
3391         re-name all existing chew files (chobj) to match source file base
3392         names (put in underscores), delete all special targets for chew files
3393         (leaving all to be generated by rule).
3394         * libm/common/Makefile.in: regenerate.
3395         * libm/math/w_exp2.c: Add "base 2" to documentation description (and
3396         delete TRAD_SYNOPSIS).
3397         * libm/math/w_gamma.c: Add tgamma() and tgammaf() documentation, along
3398         with some history behind the function names.
3399         * libm/math/math.tex: Add includes for newly-added documentation (see
3400         .def additions to common/Makefile.am and math/Makefile.am in this
3401         ChangeLog list), adjusted existing .def file names to match source file
3402         base names (added underscores); add mention of HUGE_VALF; rename
3403         "Version of library" section to "Error Handling" and add some text
3404         about floating-point exception; added section "Standards Compliance And
3405         Portability".
3406         * libm/math/Makefile.am: Add w_exp2.def (chobj);
3407         re-name all existing chew files (chobj) to match source file base
3408         names, delete all special targets for chew files (leaving all to be
3409         generated by rule).
3410         * libm/math/Makefile.in: regenerated
3411         * doc/makedoc.c: Change silent ignoring of commands < 5 characters
3412         to a failure when reading macro file for commands < 4 characters;
3413         add -v (verbose) option for printing some debugging information;
3414         get rid of spurious translation of "@*" to "*" (no source files used @*,
3415         so no existing doc pages were affected); clean up some compiler
3416         warnings.
3417         * doc/doc.str: add BUGS and SEEALSO sections (to match texi2pod.pl
3418         which has them); Remove ITEM command (redundant with makedoc built-in
3419         "o", not used in any present source file so nothing is lost, anyway).
3420         * HOWTO: New file to hold information for maintainers regarding how
3421         to do things.  Initial sections on documentation and ELIX levels.
3422
3423 2009-03-25  Richard Earnshaw  <rearnsha@arm.com>
3424
3425         * libc/machine/arm/strcmp.c (strcmp_unaligned): Correctly
3426         detect the nul-byte in a big-endian string.
3427
3428 2009-03-25  Jeff Johnston  <jjohnstn@redhat.com>
3429
3430         * libc/string/wcsdup.c: Fix documentation error.
3431         * libc/string/Makefile.am: Fix CHEWOUT files to contain
3432         wcsdup.def rather than wcsdup.
3433         * libc/string/Makefile.in: Regenerated.
3434
3435 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
3436
3437         * libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc
3438         pointers if category is LC_CTYPE.
3439
3440 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
3441
3442         * libc/locale/locale.c (loadlocale): Rename charset "GBK" to
3443         "GB2312".  Fix documentation accordingly.
3444
3445 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
3446
3447         * libc/locale/locale.c (loadlocale): Rename charset "CP949" to
3448         "eucKR".  Fix documentation accordingly.
3449
3450 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
3451
3452         * libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
3453         for "eucJP" charset support.
3454
3455 2009-03-24  Jeff Johnston  <jjohnstn@redhat.com>
3456
3457         * libc/include/sys/errno.h: Move EFTYPE to general usage because
3458         it is used in libc/search.
3459
3460 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
3461
3462         * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
3463         _MB_CAPABLE systems.
3464         * libc/ctype/iswblank.c: Ditto.
3465         * libc/ctype/iswcntrl.c: Ditto.
3466         * libc/ctype/iswprint.c: Ditto.
3467         * libc/ctype/iswpunct.c: Ditto.
3468         * libc/ctype/iswspace.c: Ditto.
3469         * libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
3470         Explain why.
3471         * libc/ctype/towlower.c: Ditto.
3472         * libc/ctype/towupper.c: Ditto.
3473         * libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
3474         and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
3475         defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
3476         * libc/include/sys/reent.h (struct _reent): Mark _current_category
3477         and _current_locale as unused.
3478         * libc/locale/locale.c: Add new charset support to documentation.
3479         Include ../stdio/local.h from here.
3480         (lc_ctype_charset): Set to "ASCII" by default.
3481         (lc_message_charset): Ditto.
3482         (_setlocale_r): Don't set _current_category and _current_locale.
3483         (loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
3484         systems, set __mbtowc and __wctomb function pointers to function
3485         corresponding with current charset.  Don't allow non-existant
3486         ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
3487         On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
3488         call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
3489         _current_category and _current_locale.
3490         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
3491         * libc/stdlib/Makefile.in: Regenerate.
3492         * libc/stdlib/local.h: Add prototype for __locale_charset.
3493         Add prototypes for __mbtowc and __wctomb pointers.
3494         Add prototypes for charset-specific _wctomb_r and _mbtowc_r
3495         functions.
3496         Declare tables and functions from sb_charsets.c.
3497         * libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
3498         by default.
3499         (_mbtowc_r): Just call __mbtowc from here.
3500         (__ascii_mbtowc): New function.
3501         (__iso_mbtowc): New function.
3502         (__cp_mbtowc): New function.
3503         (__utf8_mbtowc): New function.
3504         (__sjis_mbtowc): New function.  Disable on Cygwin.
3505         (__eucjp_mbtowc): New function.  Disable on Cygwin.
3506         (__jis_mbtowc): New function.  Disable on Cygwin.
3507         * libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
3508         conversion tables for all ISO and CP charsets.
3509         (__iso_8859_index): New function.
3510         (__cp_index): New function.
3511         * libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
3512         by default.
3513         (_wctomb_r): Just call __wctomb from here.
3514         (__ascii_wctomb): New function.
3515         (__utf8_wctomb): New function.
3516         (__sjis_wctomb): New function.  Disable on Cygwin.
3517         (__eucjp_wctomb): New function.  Disable on Cygwin.
3518         (__jis_wctomb): New function.  Disable on Cygwin.
3519         (__iso_wctomb): New function.
3520         (__cp_wctomb): New function.
3521
3522 2009-03-23  Richard Earnshaw  <rearnsha@arm.com>
3523
3524         * libc/machine/arm/strcmp.c (strcmp): Treat char as unsigned.
3525
3526 2009-03-23  Corinna Vinschen  <corinna@vinschen.de>
3527
3528         * libc/locale/locale.c (loadlocale): Fix typo in language and
3529         territory evaluation.
3530
3531 2009-03-20  Jeff Johnston  <jjohnstn@redhat.com>
3532
3533         * libc/include/sys/errno.h: Protect various non-standard errnos
3534         with either __LINUX_ERRNO_EXTENSIONS__ or __CYGWIN__.
3535         * libc/include/sys/config.h[__CYGWIN__]: Define
3536         __LINUX_ERRNO_EXTENSIONS__.
3537
3538 2009-03-19  Corinna Vinschen  <corinna@vinschen.de>
3539
3540         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
3541         invalid character sequence.
3542
3543         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to
3544         missing declaration of __locale_charset.
3545         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
3546
3547 2009-03-18  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
3548
3549         * libm/common/s_log2.c: New file.
3550         * libm/common/sf_log2.c: Ditto.
3551         * libm/common/Makefile.am: Add s_log2.c and sf_log2.c.
3552         * libm/common/Makefile.in: Regenerated.
3553         * libc/include/math.h: Add log2 and log2f function prototypes.
3554
3555 2009-03-17  Corinna Vinschen  <corinna@vinschen.de>
3556
3557         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destination
3558         string correctly.
3559
3560 2009-03-16  Mark Mitchell  <mark@codesourcery.com>
3561
3562         * libc/machine/arm/strlen.c (strlen): Fix defect in Thumb-2 mode.
3563
3564 2009-03-16  Richard Earnshaw  <rearnsha@arm.com>
3565
3566         * libc/machine/arm/strlen.c (strlen): Correctly detect
3567         end-of-string.
3568         * libc/machine/arm/strcpy.c (strcpy): Likewise.
3569         * libc/machine/arm/strcmp.c (strcmp, strcmp_unaligned): Likewise.
3570
3571 2009-03-15  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
3572
3573         * libc/include/sys/errno.h (ESTRPIPE): Define.
3574         * libc/string/strerror.c (strerror): Decode it.
3575
3576 2009-03-15  Corinna Vinschen  <corinna@vinschen.de>
3577
3578         * libc/include/wchar.h (wcsdup, _wcsdup_r): Declare.
3579         * libc/string/Makefile.am: Add wcsdup.c.
3580         * libc/string/Makefile.in: Regenerate.
3581         * libc/string/strings.tex: Add wcsdup documentation reference.
3582         * libc/string/wcsdup.c: New file.
3583
3584 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
3585
3586         * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of
3587         !_REENT_ONLY section.
3588
3589 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
3590
3591         * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations
3592         to stdlib.h.
3593         * libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using.
3594         * libc/stdio/mktemp.c: Explain the security risk when using
3595         mktemp.
3596
3597 2009-03-12  Craig Howland <howland@LGSInnovations.com>
3598
3599         * libc/time/time.tex (wcsftime.def):  Include.
3600         * libc/time/wcsftime.c:  Clean up documentation a little.
3601
3602 2009-03-12  Craig Howland <howland@LGSInnovations.com>
3603
3604         * libc/stdio/swscanf.c:  Some documentation corrections.
3605
3606 2009-03-12  Craig Howland <howland@LGSInnovations.com>
3607
3608         * libc/stdio/swprintf.c (_swprintf_r, swprintf):
3609         correct how terminating L'\0' is added;
3610         change return to match standard for when output does not fit;
3611         some corrections and enhancements to the docs.
3612         * libc/stdio/vswprintf.c (_vswprintf_r):  ditto, except for docs.
3613         * libc/stdio/vfwprintf.c:  some corrections to the docs and some
3614         enhancements to comments.  (No code changes.)
3615         * libc/time/strftime.c:  Correct some problems that made wcsftime()
3616         not work correctly:  work properly with swprintf returns that are
3617         different from snprintf returns, correct test vector lengths for
3618         when sizeof(wchar_t) > 1.
3619         * libc/stdio/sprintf.c:  Some documentation and comment corrections and
3620         enhancements to match those done to swprintf.c.
3621
3622 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
3623
3624         * libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare.
3625         * libc/string/Makefile.am: Add wcscasecmp.c, wcsncasecmp.c
3626         * libc/stdio/Makefile.in: Regenerate.
3627         * libc/string/strings.tex: Add new documentation references.
3628         * libc/string/wcscasecmp.c: New file.
3629         * libc/string/wcsncasecmp.c: New file.
3630
3631 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
3632
3633         * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf,
3634         wscanf): Declare.
3635         (_fwscanf_r, _swscanf_r, _vfwscanf_r, _vswscanf_r, _vwscanf_r,
3636         _wscanf_r): Declare.
3637         * libc/stdio/Makefile.am: Add new wscanf files.
3638         * libc/stdio/Makefile.in: Regenerate.
3639         * libc/stdio/fwscanf.c: New file.
3640         * libc/stdio/local.h (__svfwscanf_r, __ssvfwscanf_r, __svfiwscanf_r,
3641         __ssvfiwscanf_r): Declare.
3642         * libc/stdio/stdio.tex: Add new documentation references.
3643         * libc/stdio/swscanf.c: New file.
3644         * libc/stdio/vfwscanf.c: New file.
3645         * libc/stdio/vswscanf.c: New file.
3646         * libc/stdio/vwscanf.c: New file.
3647         * libc/stdio/wscanf.c: New file.
3648
3649         * libc/stdio/vfscanf.c (_sungetc_r): Make externaly available.  Only
3650         define if INTEGER_ONLY is defined.  Declare otherwise.
3651         (__ssrefill_r): Ditto.
3652         (_sfread_r): Ditto.
3653
3654         Remove static eofread/eofread1 functions and use __seofread
3655         function instead, throughout.
3656         * libc/stdio/local.h (__seofread): Declare.
3657         * libc/stdio/stdio.c (__seofread): Define.
3658
3659         * libc/stdio/fgetwc.c (__fgetwc): Fix compiler warning.
3660         * libc/stdio/fgetws.c (_fgetws_r): Ditto.
3661         * libc/stdio/fread.c (_fread_r): Ditto.
3662         * libc/stdio/vfprintf.c: Ditto.
3663         * libc/stdio/vswprintf.c: Ditto.
3664
3665 2009-03-09  Brooks Moses  <brooks@codesourcery.com>
3666
3667         * libc/machine/arm/arm_asm.h: Fix typo.
3668
3669 2009-03-09  Craig Howland <howland@LGSInnovations.com>
3670
3671         * libc/time/strftime.c:  Adapt for dual-purpose use so not only
3672         defines strftime(), but can also define wcsftime(); add optional
3673         test package; speed up %Y handling.
3674         * libc/time/wcsftime.c:  New file, defining wcsftime() (albeit
3675         indirectly by including strftime.c) and its documentation.
3676         * libc/time/time.tex:  Enhance tm_isdst explanation, change strftime
3677         description to match modified description in strftime.c
3678         * libc/time/Makefile.am:  Add wcsftime.c and wcsftime.def.  Add a rule
3679         so that wcsftime.o gets rebuilt when strftime changes.
3680         * libc/time/Makefile.in:  Regenerate.
3681         * libc/include/wchar.h (wcsftime): Declare.
3682
3683 2009-03-06  Hans-Erik Floryd <hans-erik.floryd@rt-labs.com>,
3684             Corinna Vinschen  <corinna@vinschen.de>
3685
3686         * libc/reent/reent.c (_reclaim_reent): Make a block from MP-related
3687         statements in _REENT_SMALL case.  Check if _atexit is not NULL before
3688         dereferencing it.
3689         (_wrapup_reent): Check if _atexit is not NULL before dereferencing it.
3690
3691 2009-03-06  Corinna Vinschen  <corinna@vinschen.de>
3692
3693         * libc/include/stdio.h (__VALIST): Guard against multiple definition.
3694         * libc/include/wchar.h: Include stdarg.h.
3695         (__VALIST): Define conditionally.
3696         (fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, wprintf): Declare.
3697         (_fwprintf_r, _swprintf_r, _vfwprintf_r, _vswprintf_r, _vwprintf_r,
3698          _wprintf_r): Declare.
3699         * libc/stdio/Makefile.am: Add new files.
3700         * libc/stdio/Makefile.in: Regenerate.
3701         * libc/stdio/fwprintf.c: New file.
3702         * libc/stdio/local.h (_svfwprintf_r, _svfiwprintf_r): Declare.
3703         (__CH_CLASS, __STATE, __ACTION): Move definition from vfprintf.c here
3704         and move to the __ namespace.
3705         (__chclass, __state_table, __action_table): Declare.
3706         * libc/stdio/stdio.tex: Add new documentation references.
3707         * libc/stdio/swprintf.c: New file.
3708         * libc/stdio/vfprintf.c (__SPRINT): New macro to call the right
3709         __sprint_r function according to compilation unit.  Use throughout.
3710         (__ssprint_r): Rename STRING_ONLY variant from __sprint_r.
3711         Make externaly available.  Only define if INTEGER_ONLY is defined.
3712         (__sprint_r): Make externaly available.  Only define if INTEGER_ONLY
3713         is defined.  Handle stream orientation.
3714         (__sbprintf): Copy FILE's _flags2 member as well.
3715         (__chclass, __state_table, __action_table): Prepend __ to name and
3716         make externally available.
3717         * libc/stdio/vfwprintf.c: New file.
3718         * libc/stdio/vswprintf.c: New file.
3719         * libc/stdio/vwprintf.c: New file.
3720         * libc/stdio/wprintf.c: New file.
3721
3722 2009-03-03  Corinna Vinschen  <corinna@vinschen.de>
3723
3724         * libc/locale/locale.c (_setlocale_r): New implementation based on
3725         FreeBSD's setlocale.
3726         (currentlocale): New helper function.
3727         (loadlocale): Ditto.
3728         (__locale_charset): New function.
3729         (__locale_msgcharset): Rename from __locale_charset.
3730         * libc/ctype/local.h (__lc_ctype): Remove declaration.
3731         (__locale_charset): Declare.
3732         * libc/ctype/iswalpha.c (iswalpha): Call __locale_charset instead of
3733         using __lc_ctype directly.  Only compare against the charset alone.
3734         * libc/ctype/iswblank.c (iswblank): Ditto.
3735         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
3736         * libc/ctype/iswprint.c (iswprint): Ditto.
3737         * libc/ctype/iswpunct.c (iswpunct): Ditto.
3738         * libc/ctype/iswspace.c (iswspace): Ditto.
3739         * libc/ctype/towlower.c (towlower): Ditto.
3740         * libc/ctype/towupper.c (towupper): Ditto.
3741         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Ditto.
3742         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
3743         * libc/sys/linux/intl/loadmsgcat.c (_nl_init_domain_conv): Call
3744         __locale_msgcharset instead of __locale_charset.
3745
3746 2009-03-02  Jeff Johnston  <jjohnstn@redhat.com>
3747
3748         * libc/stdlib/wctomb_r.c (_wctomb_r): When checking single-byte
3749         charset, cast wchar to size_t in case wchar_t is signed.
3750         * libc/stdlib/wctomb.c (wctomb): Add similar single-byte check.
3751
3752 2009-03-02  Corinna Vinschen  <corinna@vinschen.de>
3753
3754         * libc/stdlib/wctomb_r.c (_wctomb_r): Return EILSEQ in case of an
3755         invalid wchar.  Return -1 if wchar doesn't fit into singlebyte
3756         value in case of using a singlebyte charset.
3757
3758 2009-02-26  Brooks Moses  <brooks@codesourcery.com>
3759
3760         * libc/machine/arm/strcpy.c: Add missing comma.
3761
3762 2009-02-26  Ralf Corsepius  <ralf.corsepius@rtems.org>
3763
3764         * libc/machine/lm32/configure.in: Let
3765         AC_CONFIG_SRCDIR point to setjmp.S instead of setjmp.s
3766         * libs/machine/lm32/configure: Regenerate.
3767
3768 2009-02-25  Brooks Moses  <brooks@codesourcery.com>
3769
3770         * libc/stdlib/Makefile.am (CHEWOUT_FILES): Add
3771           mbsnrtowcs.def, wcsnrtombs.def.
3772         * libc/stdlib/Makefile.in: Regenerate.
3773         * libc/stdlib/stdlib.tex (@menu): Use correct section
3774           names for mbsrtowcs, wcsrtombs.
3775         * libc/stdlib/wcstod.c: Remove stray character in
3776           documentation.
3777
3778 2009-02-25  Corinna Vinschen  <corinna@vinschen.de>
3779
3780         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Remove conversion of 5 and 6
3781         byte UTF-8 sequences since they are invalid in the Unicode standard.
3782         Handle surrogate pairs in case of wchar_t == UTF-16.
3783         * libc/stdlib/wctomb_r.c (_wctomb_r): Don't convert invalid Unicode
3784         wchar_t values beyond 0x10ffff into UTF-8 chars.  Handle surrogate
3785         pairs in case of wchar_t == UTF-16.
3786
3787 2009-02-24  Kevin Buettner  <kevinb@redhat.com>
3788
3789         * libc/stdio/open_memstream.c (stdint.h): Include.
3790
3791 2009-02-23  Craig Howland  <howland@LGSInnovations.com>
3792
3793         * libc/unix/ttyname.c:  Remove ttyname_r() (to a new file to avoid
3794         coupling ttyname_r() and ttyname() due to the latter's large buffer).
3795         * libc/unix/ttyname_r.c:  New file to hold ttyname_r(), previously in
3796         ttyname.c.
3797         * libc/unix/ttyname.h:  New file (common size definition for the 2
3798         ttyname*c files that are now split).
3799         * libc/unix/Makefile.am (ELIX_2_SOURCES):  Add ttyname_r.c.
3800         * libc/unix/Makefile.in:  Regenerate.
3801
3802 2009-02-19  Corinna Vinschen  <corinna@vinschen.de>
3803
3804         * libc/include/wchar.h (mbsnrtowcs): Declare.
3805         (_mbsnrtowcs_r): Declare.
3806         (wcsnrtombs): Declare.
3807         (_wcsnrtombs_r): Declare.
3808         * libc/stdlib/Makefile.am (ELIX_2_SOURCES): Add mbsnrtowcs.c
3809         and wcsnrtombs.c.
3810         * libc/stdlib/Makefile.in: Regenerate.
3811         * libc/stdlib/mbsnrtowcs.c: New file, implementing _mbsnrtowcs_r
3812         and mbsnrtowcs.  Document mbsnrtowcs and mbsrtowcs.
3813         * libc/stdlib/mbsrtowcs.c (_mbsrtowcs_r): Just call _mbsnrtowcs_r.
3814         (mbsrtowcs): Ditto.
3815         * libc/stdlib/wcsnrtombs.c: New file, implementing _wcsnrtombs_r
3816         and wcsnrtombs.  Document wcsrtombs and wcsnrtombs.
3817         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Just call _wcsnrtombs_r.
3818         (wcsrtombs): Ditto.
3819         * libc/stdlib/stdlib.tex: Accommodate new documentation.
3820
3821 2009-02-18  Jeff Johnston  <jjohnstn@redhat.com>
3822
3823         * libc/stdio/open_memstream.c (internal_open_memstream_r): Fix max
3824         buffer size to be in wchar_t units if wide == 1 is passed in.  In
3825         this case, also initialize the first character of the buffer to be
3826         wide char null.
3827         (_open_wmemstream_r): Cast buf to be (char **) to avoid warning.
3828         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Change all occurences of
3829         incrementing the size_t value n to first check that n is not already
3830         size_t -1.  Fix some compiler warnings.
3831         * libc/stdlib/wcstod.c: Add includes for <wctype.h> and <math.h>.
3832
3833 2009-02-18  Corinna Vinschen  <corinna@vinschen.de>
3834
3835         * libc/stdio/open_memstream.c: Add open_wmemstream to doumentation.
3836         (struct memstream): Add wide element.
3837         Change saved to a union to take char and wchar_t values.
3838         (memwriter): Accommodate wide-oriented oeprations.
3839         (memseeker): Ditto.
3840         (memseeker64): Ditto.
3841         (memcloser): Ditto.
3842         (internal_open_memstream_r): New static function.  Take functionality
3843         from former _open_memstream_r and handle additional "wide" parameter.
3844         (_open_memstream_r): Just call internal_open_memstream_r with wide==-1
3845         from here.
3846         (_open_wmemstream_r): New function.
3847         (open_wmemstream): Ditto.
3848         * libc/include/wchar.h (open_wmemstream): Declare.
3849         (_open_wmemstream_r): Declare.
3850
3851 2009-02-16  Corinna Vinschen  <corinna@vinschen.de>
3852
3853         * libc/stdio/fputwc.c: Fix typo in man page info.
3854
3855 2009-02-12  Corinna Vinschen  <corinna@vinschen.de>
3856
3857         * libc/include/wchar.h (_wcstod_r): Declare.
3858         (_wcstof_r): Declare.
3859         (wcstod): Declare.
3860         (wcstof): Declare.
3861         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstod.c.
3862         (CHEWOUT_FILES): Add wcstod.def.
3863         * libc/stdlib/Makefile.in: Regenerate.
3864         * libc/stdlib/stdlib.tex: Add wcstod.
3865         * libc/stdlib/wcstod.c: New file.
3866
3867 2009-02-05  Neal H. Walfield  <neal@gnu.org>
3868
3869         * libc/machine/x86_64/memcpy.S (memcpy): Don't use the red zone.
3870
3871 2009-01-28  Jeff Johnston  <jjohnstn@redhat.com>
3872
3873         * libc/stdio/vfscanf.c (__SVFSCANF_R): Add additional check for
3874         inf and nan processing to not proceed if we have already collected
3875         zeroes.
3876
3877 2009-01-26  DJ Delorie  <dj@redhat.com>
3878
3879         * configure.host (m32c-*-*): Add long long I/O support by default.
3880
3881 2009-01-21  Richard Earnshaw  <rearnsha@arm.com>
3882
3883         * libc/machine/arm/arm_asm.h: New file.
3884         * libc/machine/arm/strlen.c: New file.
3885         * libc/machine/arm/strcpy.c: New file.
3886         * libc/machine/arm/strcmp.c: New file.
3887         * libc/machine/arm/Makefile.am: Add new string routines.
3888
3889 2009-01-19  Neal H. Walfield  <neal@gnu.org>
3890
3891         * libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C)
3892         [__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL.
3893         * libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX,
3894         __PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l,
3895         not ll.
3896
3897 2009-01-12  Nathan Froyd  <froydnj@codesourcery.com>
3898
3899         * libc/machine/powerpc/vfscanf.c (__sccl): Remove declaration.
3900
3901 2009-01-12  Jeff Johnston  <jjohnstn@redhat.com>
3902
3903         * libc/stdio/fwalk.c (__fwalk, __fwalk_reent): Remove locking of
3904         each fp.  Let the function being called lock the fp, if necessary.
3905
3906 2009-01-07  Kazu Hirata  <kazu@codesourcery.com>
3907
3908         * libc/include/sys/stdio.h (_flockfile, _funlockfile): Fix typos.
3909
3910 2009-01-05  Craig Howland <howland@LGSInnovations.com>
3911
3912         * libc/stdio/fwide.c:  Correct typo in TRAD_SYNOPSIS for _fwide_r.
3913
3914 2008-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3915
3916         * NEWS: Update with 1.17.0 info.
3917         * README: Ditto.
3918         * acinclude.m4: Change version number to 1.17.0.
3919         * aclocal.m4: Regenerated.
3920         * configure: Ditto.
3921         * doc/aclocal.m4: Ditto.
3922         * doc/configure: Ditto.
3923         * libc/*/aclocal.m4: Ditto.
3924         * libc/*/configure: Ditto.
3925         * libc/libc.texinfo: Ditto.
3926         * libm/*/aclocal.m4: Ditto.
3927         * libm/*/configure: Ditto.
3928         * libm/libm.texinfo: Ditto.
3929         * libc/sys/linux/shared.ld: Add VERS_1.17
3930
3931 2008-12-17  Jon Beniston <jon@beniston.com>
3932
3933         * configure.host: Set syscall_dir for lm32 target.
3934
3935 2008-12-15  Jeff Johnston  <jjohnstn@redhat.com>
3936
3937         * libc/stdio/stdio.tex: Remove putwc and getwc references as they
3938         are included as part of fputwc and fgetwc, respectively.
3939
3940 2008-12-12  Craig Howland <howland@LGSInnovations.com>
3941
3942         * libc/include/wchar.h:  Added wcstok() declaration.
3943         * libc/string/wcstok.c: New file, implementing wcstok.
3944         * libc/string/Makefile.am: Add wcstok support.
3945         * libc/string/wcstrings.tex: Ditto.
3946         * libc/string/Makefile.in: Regenerated.
3947
3948 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
3949
3950         * libc/stdio/fputws.c: Fix documentation.
3951         * libc/stdio/getwchar.c: Ditto.
3952         * libc/stdio/putwchar.c: Ditto.
3953
3954 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
3955
3956         * libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to
3957         200112L (SUSv3 compliance).
3958         Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).
3959
3960 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
3961
3962         * libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(),
3963         _execve(), _exit().
3964
3965 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
3966
3967         * configure.host: Let *rtems* default to c99-formats.
3968
3969 2008-12-12  Craig Howland  <howland@LGSInnovations.com>
3970
3971         * libc/stdio/freopen.c:  Add <string.h> for memset prototype.
3972         * libc/stdio/fseek.c:  Ditto.
3973         * libc/stdio/fwide.c:  Add <wchar.h> for fwide prototype.
3974
3975 2008-12-11 Jeff Johnston  <jjohnstn@redhat.com>
3976
3977         * libc/include/sys/time.h (gettimeofday): Change prototype so
3978         2nd parameter is void *, matching SUSV2.
3979         * libc/syscalls/sysgettod.c (gettimeofday): Ditto.
3980
3981 2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
3982
3983         * configure.host: Add lm32
3984         * libc/include/machine/ieeefp.h: Add __lm32__
3985         * libc/include/machine/setjmp.h: Add __lm32__
3986         * libc/machine/configure.in: Add lm32
3987         * libc/machine/configure: Regenerated.
3988         * libc/machine/lm32/aclocal.m4: New file.
3989         * libc/machine/lm32/configure.in: Ditto.
3990         * libc/machine/lm32/configure: Ditto.
3991         * libc/machine/lm32/Makefile.am: Ditto.
3992         * libc/machine/lm32/Makefile.in: Ditto.
3993         * libc/machine/lm32/setjmp.s: Ditto.
3994
3995 2008-12-11  Craig Howland  <howland@LGSInnovations.com>
3996
3997         * libc/include/sys/lock.h:  Add void cast to avoid "statement has no
3998         effect" warnings from gcc.
3999         * libc/include/sys/stdio.h:  Ditto.
4000         * libc/include/sys/time.h:  Correct gettimeofday() prototype.
4001         * libc/stdlib/__exp10.c:  Add #include "std.h" for function prototype.
4002         * libc/stdlib/__ten_mu.c:  Ditto.
4003         * libc/stdlib/std.h:  Correct __exp10's ANSI prototype.
4004         * libc/stdlib/ldtoa.c:  Change eiisinf definition to ANSI form.  (Are
4005         already others in file without _ansi method, so did not bother.)
4006         * libc/stdlib/system.c:  Use _ansi forms for function prototypes and
4007         definitions.
4008         * libc/time/mktime.c:  Ditto.
4009         * libc/misc/__dprintf.c:  Ditto.
4010         * libc/include/stdio.h:  Add function prototypes for _fgetc_r,
4011         _fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r,
4012         _funopen_r, and _fopencookie_r.
4013         * libc/include/reent.h:  Add function prototype for _stat64_r, align
4014         _execve_r prototype with POSIX definition for execve.
4015         * libc/reent/execr.c:  Align function prototype with POSIX definition.
4016         * libc/stdio/asniprintf.c:  Add #include "local.h".
4017         * libc/stdio/vasniprintf.c:  Ditto.
4018         * libc/stdio/fread.c:  Remove unused variable newcount.
4019         * libc/stdio/local.h:  Add function prototype for __sccl.
4020         * libc/stdio/open_memstream.c:  Remove unused variable flags.
4021         * libc/stdio/vfscanf.c:  Proper prototyping for ccfn, remove prototype
4022         for __sccl since now in local.h.
4023         * libc/string/memcpy.c:  Add #include <string.h> (for real and for
4024         traditional synopsis), remove extraneous stddef.h and limits.h.
4025         * libc/syscalls/sysclose.c:  Add #include <unistd.h>.
4026         * libc/syscalls/sysfork.c:  Ditto.
4027         * libc/syscalls/sysgetpid.c:  Ditto.
4028         * libc/syscalls/sysexecve.c:  Add #include <unistd.h>, align function
4029         prototype with POSIX definition.
4030         * libc/syscalls/sysfstat.c:  Add #include <sys/stat.h>.
4031         * libc/syscalls/sysgettod.c:  Correct sys/times.h to sys/time.h.
4032         * libc/syscalls/syskill.c:  Add #include <signal.h>.
4033         * libc/syscalls/syslink.c:  Add #include <unistd.h>, fix prototype.
4034         * libc/syscalls/sysunlink.c:  Ditto.
4035         * libc/syscalls/sysstat.c:  Add #include <sys/stat.h>, fix prototype.
4036         * libc/syscalls/syswait.c:  Add #include <sys/wait.h>, fix prototype.
4037
4038 2008-12-10  Corinna Vinschen  <corinna@vinschen.de>
4039
4040         Implement basic wide char stdio functionality, based on FreeBSD.
4041         * libc/include/stdio.h (__SORD): Define.
4042         (__SWID): Define.
4043         * libc/include/wchar.h: Add declarations for new wide char functions.
4044         (getwc): Define as macro.
4045         (getwchar): Ditto.
4046         (putwc): Ditto.
4047         (putwchar): Ditto.
4048         * libc/include/sys/reent.h (struct __sFILE): Add _mbstate member.
4049         (struct __sFILE64): Ditto.
4050         * libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c,
4051         fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c
4052         and ungetwc.c.
4053         (CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def,
4054         fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and
4055         ungetwc.def.
4056         Add header dependency rules for the new files.
4057         * libc/stdio/Makefile.in: Regenerate.
4058         * libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r.
4059         * libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r.
4060         * libc/stdio/findfp.c (std): Initialize FILE's _mbstate member.
4061         (__sfmoreglue): Ditto.
4062         * libc/stdio/fputs.c (_fputs_r): Set stream orientation.
4063         * libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r.
4064         * libc/stdio/fputws.c: New file, implementing fputws and _fputws_r.
4065         * libc/stdio/fread.c (_fread_r): Set stream orientation.
4066         * libc/stdio/freopen.c (_freopen_r): Reset stream orientation.  Reset
4067         _mbstate.
4068         * libc/stdio/fseek.c (_fseek_r): Reset _mbstate.
4069         * libc/stdio/fwide.c: New file, implementing fwide and _fwide_r.
4070         * libc/stdio/fwrite.c (_fwrite_r): Set stream orientation.
4071         * libc/stdio/getwc.c: New file, implementing getwc and _getwc_r.
4072         * libc/stdio/getwchar.c: New file, implementing getwchar and
4073         _getwchar_r.
4074         * libc/stdio/local.h (ORIENT): New macro.
4075         * libc/stdio/puts.c (_puts_r): Set stream orientation.
4076         * libc/stdio/putwc.c: New file, implementing putwc and _putwc_r.
4077         * libc/stdio/putwchar.c: New file, implementing putwchar and
4078         _putwchar_r.
4079         * libc/stdio/refill.c (__srefill_r): Set stream orientation.
4080         * libc/stdio/stdio.tex: Add documentation for new functions.
4081         * libc/stdio/ungetc.c (_ungetc_r): Set stream orientation.
4082         * libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r.
4083         * libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation.
4084         * libc/stdio/wbuf.c (__swbuf_r): Ditto.
4085
4086 2008-12-10  Joseph Myers  <joseph@codesourcery.com>
4087
4088         * libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
4089         INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
4090         constants with "long" types where appropriate.
4091         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
4092         INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
4093         UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
4094         Correct to match logic for defining corresponding types.
4095         (INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
4096         (SIZE_MAX): Define using __SIZE_MAX__ if available.
4097         (PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
4098         (PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
4099         (WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
4100         (UINT8_C, UINT16_C): Define to give signed values if corresponding
4101         types would promote to int.
4102
4103 2008-12-04  Corinna Vinschen  <corinna@vinschen.de>
4104
4105         * libc/include/sys/features.h (_POSIX_V6_ILP32_OFF32): Always define.
4106         (_POSIX_V6_LP64_OFF64): Ditto.
4107         (_POSIX_V6_LPBIG_OFFBIG): Ditto.
4108
4109 2008-11-28  Jeff Johnston  <jjohnstn@redhat.com>
4110
4111         * libc/sys/linux/inode.c: Include <dirent.h> instead of
4112         <linux/dirent.h>.
4113         * libc/sys/linux/io64.c: Add weak alias for _stat64.
4114
4115 2008-11-27  Ralf Corsepius <ralf.corsepius@rtems.org>
4116
4117         * libc/posix/telldir.c: Use #if !defined() instead of #ifndef
4118         to fix GCC warning.
4119
4120 2008-11-27  Ken Werner  <ken.werner@de.ibm.com>
4121
4122         * libc/machine/spu/Makefile.am: Add spu-mcount.S spu-gmon.c.
4123         * libc/machine/spu/Makefile.in: Regenerated.
4124         * libc/machine/spu/spu-gmon.c: New file.
4125         * libc/machine/spu/spu-mcount.S: New file.
4126
4127 2008-11-27  Joel Sherrill <joel.sherrill@oarcorp.com>
4128
4129         * configure.host (*-rtems*): Turn on using portion of unix subdirectory.
4130
4131 2008-11-27  Craig Howland <howland@LGSInnovations.com>
4132
4133         * libc/argz/argz_add.c:  Added #include <argz.h> to get function
4134         prototypes.
4135         * libc/argz/argz_append.c: Ditto.
4136         * libc/argz/argz_count.c: Ditto.
4137         * libc/argz/argz_create.c: Ditto.
4138         * libc/argz/argz_create_sep.c: Ditto.
4139         * libc/argz/argz_delete.c: Ditto.
4140         * libc/argz/argz_next.c: Ditto.
4141         * libc/argz/argz_stringify.c: Ditto
4142         * libc/stdlib/strtod.c: Added #include <stdlib.h> to get function
4143         prototypes.
4144         * libc/stdlib/wcstoul.c: Added #include <wchar.h> to get function
4145         prototypes, corrected traditional usage comment.
4146         * libc/include/wchar.h: Added _mbsrtowcs_r() prototype.
4147
4148 2008-11-26 Ken Werner <ken.werner@de.ibm.com>
4149
4150         * libm/machine/spu/headers/acosd2.h: Rebase against current simdmath.
4151         * libm/machine/spu/headers/asind2.h: Likewise.
4152         * libm/machine/spu/headers/asinhf4.h: Likewise.
4153         * libm/machine/spu/headers/divd2.h: Likewise.
4154         * libm/machine/spu/headers/erf_utils.h: Likewise.
4155         * libm/machine/spu/headers/erfcd2.h: Likewise.
4156         * libm/machine/spu/headers/erfcf4.h: Likewise.
4157         * libm/machine/spu/headers/erfd2.h: Likewise.
4158         * libm/machine/spu/headers/recipd2.h: Likewise.
4159
4160 2008-11-25  Corinna Vinschen  <corinna@vinschen.de>
4161
4162         * libc/stdio/gets.c (_gets_r): Lock stdin here and call
4163         __sgetc_r instead of _getchar_r.
4164
4165 2008-11-24  Craig Howland  <howland@LGSInnovations.com>
4166
4167         * libc/stdlib/wcstoull_r.c:  Add EINVAL return for bad base value,
4168         include wchar.h for prototype, remove extraneous includes, use
4169         C99/POSIX ULLONG_MAX (but allow for poor limits.h).
4170         * libc/stdlib/wcstoull.c:  Fix usage comments (mistakes and to add
4171         base value check noted above), remove extraneous includes.
4172         * libc/stdio/asnprintf.c:  Add #include "local.h" to get function
4173         prototype for _svfprintf_r().
4174         * libc/stdio/vasnprintf.c:  Ditto.
4175         * libc/stdio/local.h:  Add function prototype for __submore().
4176         * libc/include/stdio.h:  Add function prototypes for _fseeko_r and
4177         _ftello_r.
4178         * libc/posix/namespace.h:  Commented out define for write to
4179         eliminate write() prototype being missing for collate.c (which is
4180         the only file that presently includes namespace.h).
4181         * libc/include/reent.h:  Added _rename_r.
4182         * libc/reent/renamer.c:  Corrected function prototypes in synopses.
4183         * libc/locale/ldpart.c:  Use struct stat64 when calling fstat64.
4184
4185 2008-11-24  Jeff Johnston  <jjohnstn@redhat.com>
4186
4187         * libc/search/hash_func.c: Comment out unused static hash functions.
4188         * libc/reent/stat64r.c: New file.
4189         * libc/reent/Makefile.am: Add stat64r.c support.
4190         * libc/reent/Makefile.in: Regenerated.
4191
4192 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
4193
4194         * libc/posix/scandir.c: Fix memory leaks.
4195
4196 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
4197
4198         * libc/posix/Makefile.am: Compile readdir_r.c not readdir.c twice.
4199         * libc/posix/Makefile.in: Regenerated.
4200
4201 2008-11-24  Corinna Vinschen  <corinna@vinschen.de>
4202
4203         * libc/include/stdio.h (__SMOD): Remove definition of unused flag.
4204         * libc/include/sys/reent.h (struct __sFILE): Add _flags2 member.
4205         * libc/stdio/findfp.c (std): Initialize _flags2.
4206         (__sfp): Ditto.
4207         * libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag.
4208         * libc/stdio/vfscanf.c (__ssrefill_r): Ditto.
4209         * libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag.
4210         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
4211
4212 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
4213
4214         * libc/machine/spu/sys/linux_syscalls.h: Additional syscall defines to
4215         be in sync with current kernels.
4216
4217 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
4218             Patrick Mansfield  <patmans@us.ibm.com>
4219             Joel Schopp   <jschopp@austin.ibm.com>
4220
4221         * libc/machine/spu/configure.in: Add __ea detection.
4222         * libc/machine/spu/Makefile.am: Add new files.
4223         * libc/machine/spu/include/ea.h: New file.
4224         * libc/machine/spu/ea_internal.h: Likewise.
4225         * libc/machine/spu/sys/mman.h: Likewise.
4226         * libc/machine/spu/mmap_ea.c: Likewise.
4227         * libc/machine/spu/munmap_ea.c: Likewise.
4228         * libc/machine/spu/mremap_ea.c: Likewise.
4229         * libc/machine/spu/msync_ea.c: Likewise.
4230         * libc/machine/spu/memchr_ea.c: Likewise.
4231         * libc/machine/spu/memcmp_ea.c: Likewise.
4232         * libc/machine/spu/memcpy_ea.c: Likewise.
4233         * libc/machine/spu/memmove_ea.c: Likewise.
4234         * libc/machine/spu/memset_ea.c: Likewise.
4235         * libc/machine/spu/malloc_ea.c: Likewise.
4236         * libc/machine/spu/realloc_ea.c: Likewise.
4237         * libc/machine/spu/calloc_ea.c: Likewise.
4238         * libc/machine/spu/free_ea.c: Likewise.
4239         * libc/machine/spu/posix_memalign_ea.c: Likewise.
4240         * libc/machine/spu/strcat_ea.c: Likewise.
4241         * libc/machine/spu/strchr_ea.c: Likewise.
4242         * libc/machine/spu/strcmp_ea.c: Likewise.
4243         * libc/machine/spu/strcpy_ea.c: Likewise.
4244         * libc/machine/spu/strcspn_ea.c: Likewise.
4245         * libc/machine/spu/strlen_ea.c: Likewise.
4246         * libc/machine/spu/strncat_ea.c: Likewise.
4247         * libc/machine/spu/strncmp_ea.c: Likewise.
4248         * libc/machine/spu/strncpy_ea.c: Likewise.
4249         * libc/machine/spu/strpbrk_ea.c: Likewise.
4250         * libc/machine/spu/strrchr_ea.c: Likewise.
4251         * libc/machine/spu/strspn_ea.c: Likewise.
4252         * libc/machine/spu/strstr_ea.c: Likewise.
4253         * libc/machine/spu/read_ea.c: Likewise.
4254         * libc/machine/spu/pread_ea.c: Likewise.
4255         * libc/machine/spu/readv_ea.c: Likewise.
4256         * libc/machine/spu/write_ea.c: Likewise.
4257         * libc/machine/spu/pwrite_ea.c: Likewise.
4258         * libc/machine/spu/writev_ea.c: Likewise.
4259
4260 2008-11-19  Joel Sherrill <joel.sherrill@oarcorp.com>
4261
4262         * libc/include/sys/config.h[__mips__]: Don't bother
4263         setting __ATTRIBUTE_IMPURE_PTR__ here.
4264         [__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__
4265         macro anymore.
4266
4267 2008-11-19  Jeff Johnston  <jjohnstn@redhat.com>
4268
4269         * libc/sys/linux/bits/dirent.h: New header file.
4270         * libc/sys/linux/sys/dirent.h: Include <bits/dirent.h> instead of
4271         <linux/dirent.h>.
4272         * libc/posix/Makefile.am: Remove reallocf.
4273         * libc/posix/Makefile.in: Regenerated.
4274         * libc/posix/reallocf.c: Moved to...
4275         * libc/stdlib/reallocf.c: Here
4276         * libc/stdlib/malloc.c: Add reallocf documentation.
4277         * libc/include/stdlib.h: Add reallocf and _reallocf_r prototypes.
4278         * libc/stdlib/Makefile.am: Add reallocf.
4279         * libc/stdlib/Makefile.in: Regenerated.
4280         * libc/posix/_isatty.c: Set errno.
4281
4282 2008-11-19  Craig Howland  <howland@LGSInnovations.com>
4283
4284         * libc/unix/collate.c (__collate_err): simplify to remove unnecessary
4285         strdup() and strlen() calls, also getting rid of a compiler warning.
4286
4287 2008-11-19  Ralf Corsepius <ralf.corsepius@rtems.org>
4288
4289         * libc/include/sys/config.h: Don't put
4290         __ATTRIBUTE_IMPURE_PTR__ into .sdata section for mips-rtems.
4291
4292 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
4293
4294         * libc/posix/runetype.h: Add include of stddef.h and remove
4295         defining standard types: size_t and wchar_t.
4296
4297 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
4298
4299         * libc/include/pthread.h: Remove prototypes for
4300         pthread_attr_getcputime and pthread_attr_setcputime which
4301         were proposed but never approved by the POSIX standard.
4302
4303 2008-11-18  Joel Sherrill <joel.sherrill@oarcorp.com>
4304
4305         * libc/unix/ttyname.c: Use isatty() instead of tcgetattr().
4306
4307 2008-11-18  Jeff Johnston  <jjohnstn@redhat.com>
4308
4309         * libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be
4310         ignored if desired by a platform.
4311         * libc/unix/dirname.c: Ditto except replace BASENAME with file name.
4312         * libc/unix/getcwd.c: Ditto.
4313         * libc/unix/getlogin.c: Ditto.
4314         * libc/unix/getpass.c: Ditto.
4315         * libc/unix/getpwent.c: Ditto.
4316         * libc/unix/getut.c: Ditto.
4317         * libc/unix/pread.c: Ditto.
4318         * libc/unix/pwrite.c: Ditto.
4319         * libc/unix/sigset.c: Ditto.
4320
4321 2008-11-18  Craig Howland  <howland@LGSInnovations.com>
4322
4323         * libc/unix/ttyname.c: Add ttyname_r and change ttyname to use
4324         ttyname_r.
4325
4326 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
4327
4328         * configure.host: RTEMS now uses posix subdirectory.
4329
4330 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
4331
4332         * sys/rtems/include/limits.h: Add _POSIX2_RE_DUP_MAX.
4333         * sys/rtems/sys/param.h: sys/rtprio.h not needed.
4334
4335 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
4336
4337         * libc/stdio/diprintf.c: Modify documentation so eclipse newlib
4338         libhover docs generate properly.
4339         * libc/stdio/dprintf.c: Ditto.
4340         * libc/stdio/fflush.c: Ditto.
4341         * libc/stdio/fopencookie.c: Ditto.
4342         * libc/stdio/fread.c: Ditto.
4343         * libc/stdio/fsetpos.c: Ditto.
4344         * libc/stdio/getc_u.c: Ditto.
4345         * libc/stdio/getchar_u.c: Ditto.
4346         * libc/stdio/putc_u.c: Ditto.
4347         * libc/stdio/putchar_u.c: Ditto.
4348         * libc/stdio/remove.c: Ditto.
4349         * libc/stdio/siprintf.c: Ditto.
4350         * libc/stdio/siscanf.c: Ditto.
4351         * libc/stdio/sprintf.c: Ditto.
4352         * libc/stdio/sscanf.c: Ditto.
4353         * libc/stdio/vfprintf.c: Ditto.
4354         * libc/stdio/vfscanf.c: Ditto.
4355         * libc/stdio/viprintf.c: Ditto.
4356         * libc/stdio/viscanf.c: Ditto.
4357         * libc/stdlib/calloc.c: Ditto.
4358         * libc/stdlib/efgcvt.c: Ditto.
4359         * libc/stdlib/envlock.c: Ditto.
4360         * libc/time/asctime.c: Ditto.
4361         * libc/time/ctime.c: Ditto.
4362         * libc/time/gmtime.c: Ditto.
4363         * libc/time/lcltime.c: Ditto.
4364         * libc/time/tzset.c: Ditto.
4365         * libc/stdlib/envlock.h: Moved to libc/include.
4366
4367 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
4368
4369         * libc/include/limits.h: Add ARG_MAX, PATH_MAX, and _POSIX2_RE_DUP_MAX.
4370         * libc/include/envlock.h: New file.
4371         * libc/include/fnmatch.h: Ditto.
4372         * libc/include/glob.h: Ditto.
4373         * libc/include/regex.h: Ditto.
4374         * libc/include/wordexp.h: Ditto.
4375         * libc/posix/Makefile.am: Add new files moved from
4376         libc/sys/linux/stdlib.
4377         * libc/posix/Makefile.in: Regenerated.
4378         * libc/posix/COPYRIGHT: New file moved from libc/sys/linux/stdlib.
4379         * libc/posix/cclass.h: Ditto.
4380         * libc/posix/cname.h: Ditto.
4381         * libc/posix/collate.c: Ditto.
4382         * libc/posix/collate.h: Ditto.
4383         * libc/posix/collcmp.c: Ditto.
4384         * libc/posix/engine.c: Ditto.
4385         * libc/posix/fnmatch.3: Ditto.
4386         * libc/posix/glob.3: Ditto.
4387         * libc/posix/fnmatch.c: Ditto.
4388         * libc/posix/glob.c: Ditto.
4389         * libc/posix/namespace.h: Ditto.
4390         * libc/posix/reallocf.c: Ditto.
4391         * libc/posix/regcomp.c: Ditto.
4392         * libc/posix/regerror.c: Ditto.
4393         * libc/posix/regex.3: Ditto.
4394         * libc/posix/regex2.h: Ditto.
4395         * libc/posix/regexec.c: Ditto.
4396         * libc/posix/regfree.c: Ditto.
4397         * libc/posix/rune.h: Ditto.
4398         * libc/posix/runetype.h: Ditto.
4399         * libc/posix/scandir.c: Remove advertising clause which is not in
4400         effect.
4401         * libc/posix/sysexits.h: Ditto.
4402         * libc/posix/un-namespace.h: Ditto.
4403         * libc/posix/utils.h: Ditto.
4404         * libc/posix/wordexp.c: Ditto.
4405         * libc/posix/wordfree.c: Ditto.
4406         * libc/posix/execl.c: Add !_NO_EXECVE flag check.
4407         * libc/posix/execle.c: Ditto.
4408         * libc/posix/execlp.c: Ditto.
4409         * libc/posix/execv.c: Ditto.
4410         * libc/posix/execve.c: Ditto.
4411         * libc/posix/execvp.c: Ditto.
4412         * libc/posix/popen.c: Add !_NO_POPEN flag check.
4413         * libc/sys/linux/configure: Regenerated.
4414         * libc/sys/linux/configure.in: Remove stdlib.
4415         * libc/sys/linux/include/limits.h: Add include of linux/limits.h.
4416         * libc/sys/linux/stdlib/Makefile.am: Removed.
4417         * libc/sys/linux/stdlib/Makefile.in: Ditto.
4418         * libc/sys/linux/stdlib/COPYRIGHT: Moved to libc/posix.
4419         * libc/sys/linux/stdlib/cclass.h: Ditto.
4420         * libc/sys/linux/stdlib/cname.h: Ditto.
4421         * libc/sys/linux/stdlib/collate.c: Ditto.
4422         * libc/sys/linux/stdlib/collate.h: Ditto.
4423         * libc/sys/linux/stdlib/collcmp.c: Ditto.
4424         * libc/sys/linux/stdlib/engine.c: Ditto.
4425         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
4426         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
4427         * libc/sys/linux/stdlib/glob.3: Ditto.
4428         * libc/sys/linux/stdlib/glob.c: Ditto.
4429         * libc/sys/linux/stdlib/reallocf.c: Ditto.
4430         * libc/sys/linux/stdlib/regcomp.c: Ditto.
4431         * libc/sys/linux/stdlib/regerror.c: Ditto.
4432         * libc/sys/linux/stdlib/regex.3: Ditto.
4433         * libc/sys/linux/stdlib/regex2.h: Ditto.
4434         * libc/sys/linux/stdlib/regexec.c: Ditto.
4435         * libc/sys/linux/stdlib/regfree.c: Ditto.
4436         * libc/sys/linux/stdlib/utils.h: Ditto.
4437         * libc/sys/linux/stdlib/wordexp.c: Ditto.
4438         * libc/sys/linux/stdlib/wordfree.c: Ditto.
4439
4440 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
4441
4442         * libc/include/sys/unistd.h: RTEMS follows standard for sync().
4443
4444 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
4445
4446         * libc/include/time.h: Add CLOCK_MONOTONIC.
4447         * libc/include/sys/features.h: Define
4448         _POSIX_MONOTONIC_CLOCK for RTEMS.
4449
4450 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
4451
4452         * newlib.hin: Restore to previous 1.14 version which has no
4453         PACKAGE_ macros.
4454
4455 2008-10-15  Joel Sherrill <joel.sherrill@oarcorp.com>
4456
4457         * libc/include/sys/unistd.h: Enable ttyname_r() for RTEMS.
4458
4459 2008-10-15  Craig Howland  <howland@LGSInnovations.com>
4460
4461         * libc/include/ctype.h (isblank):  isblank is C99.
4462         * libc/ctype/isblank.c (isblank comments):  ditto.  isblank does not
4463         have a macro version (as was claimed in the description).
4464
4465 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
4466
4467         * libc/stdio/vfscanf.c (__ssvfiscanf_r): Do not support %lc, %C, %ls or
4468         %S conversions when the EL/IX level is 1.
4469
4470 2008-10-06  Eric Blake  <ebb9@byu.net>
4471
4472         * libc/stdlib/ldtoa.c (etoasc): Fix rounding to even when fraction
4473         is 0.5 or 0.75.
4474
4475 2008-10-06  Craig Howland  <howland@LGSInnovations.com>
4476
4477         * libc/time/tzset_r.c (_tzset_r):  Change US default start/end dates to
4478         2007 law revision of start in 2nd Sunday in March, end 1st Sun in Nov.
4479
4480 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
4481
4482         * libc/string/str-two-way.h (critical_factorization): Cast the index
4483         operation to ensure unsigned rollover occurs when adding to SIZE_MAX.
4484
4485 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
4486
4487         * libc/sys/linux/include/stdint.h (SIZE_MAX): Fix value which should
4488         be size of size_t, not int.
4489         (SIZE_MIN): Remove.
4490         * libc/sys/linux/sys/stdint.h: Ditto.
4491
4492 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
4493
4494         * libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add
4495         initialization of _rand_next to 1.
4496
4497 2008-09-29  Peter O'Gorman  <pogma@thewrittenword.com>
4498             Steve Ellcey  <sje@cup.hp.com>
4499
4500         * configure: Regenerate for new libtool.
4501         * aclocal.m4: Ditto.
4502         * Makefile.in: Ditto.
4503         * newlib.hin: Ditto.
4504         * doc/Makefile.in: Ditto.
4505         * doc/configure: Ditto.
4506         * iconvdata/Makefile.in: Ditto.
4507         * iconvdata/aclocal.m4: Ditto.
4508         * iconvdata/configure: Ditto.
4509         * libc/Makefile.in: Ditto.
4510         * libc/aclocal.m4: Ditto.
4511         * libc/configure: Ditto.
4512         * libc/argz/Makefile.in: Ditto.
4513         * libc/ctype/Makefile.in: Ditto.
4514         * libc/errno/Makefile.in: Ditto.
4515         * libc/iconv/Makefile.in: Ditto.
4516         * libc/iconv/ccs/Makefile.in: Ditto.
4517         * libc/iconv/ccs/binary/Makefile.in: Ditto.
4518         * libc/iconv/ces/Makefile.in: Ditto.
4519         * libc/iconv/lib/Makefile.in: Ditto.
4520         * libc/locale/Makefile.in: Ditto.
4521         * libc/machine/Makefile.in: Ditto.
4522         * libc/machine/aclocal.m4: Ditto.
4523         * libc/machine/configure: Ditto.
4524         * libc/machine/a29k/Makefile.in: Ditto.
4525         * libc/machine/a29k/configure: Ditto.
4526         * libc/machine/arm/Makefile.in: Ditto.
4527         * libc/machine/arm/configure: Ditto.
4528         * libc/machine/bfin/Makefile.in: Ditto.
4529         * libc/machine/bfin/configure: Ditto.
4530         * libc/machine/cris/Makefile.in: Ditto.
4531         * libc/machine/cris/configure: Ditto.
4532         * libc/machine/crx/Makefile.in: Ditto.
4533         * libc/machine/crx/configure: Ditto.
4534         * libc/machine/d10v/Makefile.in: Ditto.
4535         * libc/machine/d10v/configure: Ditto.
4536         * libc/machine/d30v/Makefile.in: Ditto.
4537         * libc/machine/d30v/configure: Ditto.
4538         * libc/machine/fr30/Makefile.in: Ditto.
4539         * libc/machine/fr30/configure: Ditto.
4540         * libc/machine/frv/Makefile.in: Ditto.
4541         * libc/machine/frv/configure: Ditto.
4542         * libc/machine/h8300/Makefile.in: Ditto.
4543         * libc/machine/h8300/configure: Ditto.
4544         * libc/machine/h8500/Makefile.in: Ditto.
4545         * libc/machine/h8500/configure: Ditto.
4546         * libc/machine/hppa/Makefile.in: Ditto.
4547         * libc/machine/hppa/configure: Ditto.
4548         * libc/machine/i386/Makefile.in: Ditto.
4549         * libc/machine/i386/aclocal.m4: Ditto.
4550         * libc/machine/i386/configure: Ditto.
4551         * libc/machine/i960/Makefile.in: Ditto.
4552         * libc/machine/i960/configure: Ditto.
4553         * libc/machine/iq2000/Makefile.in: Ditto.
4554         * libc/machine/iq2000/configure: Ditto.
4555         * libc/machine/m32c/Makefile.in: Ditto.
4556         * libc/machine/m32c/configure: Ditto.
4557         * libc/machine/m32r/Makefile.in: Ditto.
4558         * libc/machine/m32r/configure: Ditto.
4559         * libc/machine/m68hc11/Makefile.in: Ditto.
4560         * libc/machine/m68hc11/configure: Ditto.
4561         * libc/machine/m68k/Makefile.in: Ditto.
4562         * libc/machine/m68k/configure: Ditto.
4563         * libc/machine/m88k/Makefile.in: Ditto.
4564         * libc/machine/m88k/configure: Ditto.
4565         * libc/machine/mep/Makefile.in: Ditto.
4566         * libc/machine/mep/configure: Ditto.
4567         * libc/machine/mips/Makefile.in: Ditto.
4568         * libc/machine/mips/configure: Ditto.
4569         * libc/machine/mn10200/Makefile.in: Ditto.
4570         * libc/machine/mn10200/configure: Ditto.
4571         * libc/machine/mn10300/Makefile.in: Ditto.
4572         * libc/machine/mn10300/configure: Ditto.
4573         * libc/machine/mt/Makefile.in: Ditto.
4574         * libc/machine/mt/configure: Ditto.
4575         * libc/machine/necv70/Makefile.in: Ditto.
4576         * libc/machine/necv70/configure: Ditto.
4577         * libc/machine/powerpc/Makefile.in: Ditto.
4578         * libc/machine/powerpc/configure: Ditto.
4579         * libc/machine/sh/Makefile.in: Ditto.
4580         * libc/machine/sh/configure: Ditto.
4581         * libc/machine/sparc/Makefile.in: Ditto.
4582         * libc/machine/sparc/configure: Ditto.
4583         * libc/machine/spu/Makefile.in: Ditto.
4584         * libc/machine/spu/configure: Ditto.
4585         * libc/machine/tic4x/Makefile.in: Ditto.
4586         * libc/machine/tic4x/configure: Ditto.
4587         * libc/machine/tic80/Makefile.in: Ditto.
4588         * libc/machine/tic80/configure: Ditto.
4589         * libc/machine/v850/Makefile.in: Ditto.
4590         * libc/machine/v850/configure: Ditto.
4591         * libc/machine/w65/Makefile.in: Ditto.
4592         * libc/machine/w65/configure: Ditto.
4593         * libc/machine/x86_64/Makefile.in: Ditto.
4594         * libc/machine/x86_64/configure: Ditto.
4595         * libc/machine/xscale/Makefile.in: Ditto.
4596         * libc/machine/xscale/configure: Ditto.
4597         * libc/machine/xstormy16/Makefile.in: Ditto.
4598         * libc/machine/xstormy16/configure: Ditto.
4599         * libc/machine/z8k/Makefile.in: Ditto.
4600         * libc/machine/z8k/configure: Ditto.
4601         * libc/misc/Makefile.in: Ditto.
4602         * libc/posix/Makefile.in: Ditto.
4603         * libc/reent/Makefile.in: Ditto.
4604         * libc/search/Makefile.in: Ditto.
4605         * libc/signal/Makefile.in: Ditto.
4606         * libc/stdio/Makefile.in: Ditto.
4607         * libc/stdio64/Makefile.in: Ditto.
4608         * libc/stdlib/Makefile.in: Ditto.
4609         * libc/string/Makefile.in: Ditto.
4610         * libc/sys/Makefile.in: Ditto.
4611         * libc/sys/aclocal.m4: Ditto.
4612         * libc/sys/configure: Ditto.
4613         * libc/sys/a29khif/Makefile.in: Ditto.
4614         * libc/sys/a29khif/configure: Ditto.
4615         * libc/sys/arc/Makefile.in: Ditto.
4616         * libc/sys/arc/configure: Ditto.
4617         * libc/sys/arm/Makefile.in: Ditto.
4618         * libc/sys/arm/configure: Ditto.
4619         * libc/sys/d10v/Makefile.in: Ditto.
4620         * libc/sys/d10v/configure: Ditto.
4621         * libc/sys/decstation/Makefile.in: Ditto.
4622         * libc/sys/decstation/configure: Ditto.
4623         * libc/sys/h8300hms/Makefile.in: Ditto.
4624         * libc/sys/h8300hms/configure: Ditto.
4625         * libc/sys/h8500hms/Makefile.in: Ditto.
4626         * libc/sys/h8500hms/configure: Ditto.
4627         * libc/sys/linux/Makefile.in: Ditto.
4628         * libc/sys/linux/aclocal.m4: Ditto.
4629         * libc/sys/linux/configure: Ditto.
4630         * libc/sys/linux/argp/Makefile.in: Ditto.
4631         * libc/sys/linux/cmath/Makefile.in: Ditto.
4632         * libc/sys/linux/dl/Makefile.in: Ditto.
4633         * libc/sys/linux/iconv/Makefile.in: Ditto.
4634         * libc/sys/linux/intl/Makefile.in: Ditto.
4635         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
4636         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
4637         * libc/sys/linux/linuxthreads/configure: Ditto.
4638         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
4639         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
4640         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
4641         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
4642         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
4643         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
4644         * libc/sys/linux/machine/Makefile.in: Ditto.
4645         * libc/sys/linux/machine/aclocal.m4: Ditto.
4646         * libc/sys/linux/machine/configure: Ditto.
4647         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
4648         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
4649         * libc/sys/linux/machine/i386/configure: Ditto.
4650         * libc/sys/linux/net/Makefile.in: Ditto.
4651         * libc/sys/linux/stdlib/Makefile.in: Ditto.
4652         * libc/sys/m88kbug/Makefile.in: Ditto.
4653         * libc/sys/m88kbug/configure: Ditto.
4654         * libc/sys/mmixware/Makefile.in: Ditto.
4655         * libc/sys/mmixware/configure: Ditto.
4656         * libc/sys/netware/Makefile.in: Ditto.
4657         * libc/sys/netware/configure: Ditto.
4658         * libc/sys/rdos/Makefile.in: Ditto.
4659         * libc/sys/rdos/configure: Ditto.
4660         * libc/sys/rtems/Makefile.in: Ditto.
4661         * libc/sys/rtems/configure: Ditto.
4662         * libc/sys/sh/Makefile.in: Ditto.
4663         * libc/sys/sh/configure: Ditto.
4664         * libc/sys/sparc64/Makefile.in: Ditto.
4665         * libc/sys/sparc64/configure: Ditto.
4666         * libc/sys/sun4/Makefile.in: Ditto.
4667         * libc/sys/sun4/configure: Ditto.
4668         * libc/sys/sysmec/Makefile.in: Ditto.
4669         * libc/sys/sysmec/configure: Ditto.
4670         * libc/sys/sysnec810/Makefile.in: Ditto.
4671         * libc/sys/sysnec810/configure: Ditto.
4672         * libc/sys/sysnecv850/Makefile.in: Ditto.
4673         * libc/sys/sysnecv850/configure: Ditto.
4674         * libc/sys/sysvi386/Makefile.in: Ditto.
4675         * libc/sys/sysvi386/configure: Ditto.
4676         * libc/sys/sysvnecv70/Makefile.in: Ditto.
4677         * libc/sys/sysvnecv70/configure: Ditto.
4678         * libc/sys/tic80/Makefile.in: Ditto.
4679         * libc/sys/tic80/configure: Ditto.
4680         * libc/sys/w65/Makefile.in: Ditto.
4681         * libc/sys/w65/configure: Ditto.
4682         * libc/sys/z8ksim/Makefile.in: Ditto.
4683         * libc/sys/z8ksim/configure: Ditto.
4684         * libc/syscalls/Makefile.in: Ditto.
4685         * libc/time/Makefile.in: Ditto.
4686         * libc/unix/Makefile.in: Ditto.
4687         * libm/Makefile.in: Ditto.
4688         * libm/aclocal.m4: Ditto.
4689         * libm/configure: Ditto.
4690         * libm/common/Makefile.in: Ditto.
4691         * libm/machine/Makefile.in: Ditto.
4692         * libm/machine/aclocal.m4: Ditto.
4693         * libm/machine/configure: Ditto.
4694         * libm/machine/i386/Makefile.in: Ditto.
4695         * libm/machine/i386/aclocal.m4: Ditto.
4696         * libm/machine/i386/configure: Ditto.
4697         * libm/machine/spu/Makefile.in: Ditto.
4698         * libm/machine/spu/configure: Ditto.
4699         * libm/math/Makefile.in: Ditto.
4700         * libm/mathfp/Makefile.in: Ditto.
4701
4702 2008-09-26  Craig Howland  <howland@LGSInnovations.com>
4703
4704         * libc/stdlib/getenv_r.c (_getenv_r): Modify to not match if name
4705         contains an equal sign.
4706
4707 2008-09-25  Raphael Derossa Pereira  <raphaelpereira@gmail.com>
4708
4709         * libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
4710         new pthread_mutexattr_gettype and pthread_mutexattr_settype
4711         prototypes.
4712         * libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
4713         new mutex type values.
4714         (pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type
4715         field.
4716
4717 2008-09-24  Jeff Johnston  <jjohnstn@redhat.com>
4718
4719         * libc/stdlib/setenv_r.c (_unsetenv_r): Modify to return -1 only if
4720         name is NULL, empty, or contains equal sign.
4721
4722 2008-09-24  Pawel Veselov  <pawel.veselov@gmail.com>
4723
4724         Fix setenv/getenv/unsetenv to be OpenGroup compliant:
4725         * libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer
4726         return types.
4727         * libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with
4728         names that contain equal chars.
4729         * libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int.
4730         * libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to
4731         EINVAL if name contains an equal sign.  Do not remove any equal signs
4732         from the value.
4733         (_unsetenv_r): Modified to return int.  Return -1 and set EINVAL
4734         if name contains equal sign.  Return -1 if no variable(s) were found
4735         and return 0 otherwise.
4736
4737 2008-09-19  Eric Blake  <ebb9@byu.net>
4738
4739         Supply missing POSIX errno values.
4740         * libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
4741         * libc/string/strerror.c (strerror): Decode them, and ECANCELED.
4742
4743 2008-09-10  Ken Werner  <ken.werner@de.ibm.com>
4744
4745         * libc/machine/spu/strcpy.h: Add missing header.
4746         * libc/machine/spu/spu_timer_slih.c: Remove unused Variable.
4747         * libm/machine/spu/headers/lgammaf4.h: Add type cast.
4748
4749 2008-09-08  Jeff Johnston  <jjohnstn@redhat.com>
4750
4751         * libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm
4752         statement to use "m" instead of "0".
4753         (atomic_add): Ditto.
4754         * libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto.
4755         * libc/sys/linux/net/getaddrinfo.c: Add limit.h include.
4756         * libc/sys/linux/stdlib/glob.c: Ditto.
4757
4758 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
4759
4760         * libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
4761         * libm/machine/spu/headers/acosf4.h: Likewise.
4762         * libm/machine/spu/headers/acoshd2.h: Likewise.
4763         * libm/machine/spu/headers/acoshf4.h: Likewise.
4764         * libm/machine/spu/headers/asind2.h: Likewise.
4765         * libm/machine/spu/headers/asinf4.h: Likewise.
4766         * libm/machine/spu/headers/asinhd2.h: Likewise.
4767         * libm/machine/spu/headers/asinhf4.h: Likewise.
4768         * libm/machine/spu/headers/atan2d2.h: Likewise.
4769         * libm/machine/spu/headers/atan2f4.h: Likewise.
4770         * libm/machine/spu/headers/atand2.h: Likewise.
4771         * libm/machine/spu/headers/atanf4.h: Likewise.
4772         * libm/machine/spu/headers/atanhd2.h: Likewise.
4773         * libm/machine/spu/headers/atanhf4.h: Likewise.
4774         * libm/machine/spu/headers/cos_sin.h: Likewise.
4775         * libm/machine/spu/headers/cosd2.h: Likewise.
4776         * libm/machine/spu/headers/cosf4.h: Likewise.
4777         * libm/machine/spu/headers/coshd2.h: Likewise.
4778         * libm/machine/spu/headers/coshf4.h: Likewise.
4779         * libm/machine/spu/headers/divd2.h: Likewise.
4780         * libm/machine/spu/headers/divf4.h: Likewise.
4781         * libm/machine/spu/headers/erf_utils.h: Likewise.
4782         * libm/machine/spu/headers/erfcd2.h: Likewise.
4783         * libm/machine/spu/headers/erfcf4.h: Likewise.
4784         * libm/machine/spu/headers/erfd2.h: Likewise.
4785         * libm/machine/spu/headers/erff4.h: Likewise.
4786         * libm/machine/spu/headers/exp2d2.h: Likewise.
4787         * libm/machine/spu/headers/exp2f4.h: Likewise.
4788         * libm/machine/spu/headers/expd2.h: Likewise.
4789         * libm/machine/spu/headers/expf4.h: Likewise.
4790         * libm/machine/spu/headers/expm1d2.h: Likewise.
4791         * libm/machine/spu/headers/expm1f4.h: Likewise.
4792         * libm/machine/spu/headers/floord2.h: Likewise.
4793         * libm/machine/spu/headers/floorf4.h: Likewise.
4794         * libm/machine/spu/headers/hypotd2.h: Likewise.
4795         * libm/machine/spu/headers/hypotf4.h: Likewise.
4796         * libm/machine/spu/headers/isnand2.h: Likewise.
4797         * libm/machine/spu/headers/isnanf4.h: Likewise.
4798         * libm/machine/spu/headers/ldexpd2.h: Likewise.
4799         * libm/machine/spu/headers/ldexpf4.h: Likewise.
4800         * libm/machine/spu/headers/lgammad2.h: Likewise.
4801         * libm/machine/spu/headers/lgammaf4.h: Likewise.
4802         * libm/machine/spu/headers/log10d2.h: Likewise.
4803         * libm/machine/spu/headers/log1pd2.h: Likewise.
4804         * libm/machine/spu/headers/log1pf4.h: Likewise.
4805         * libm/machine/spu/headers/log2d2.h: Likewise.
4806         * libm/machine/spu/headers/log2f4.h: Likewise.
4807         * libm/machine/spu/headers/logbf4.h: Likewise.
4808         * libm/machine/spu/headers/logd2.h: Likewise.
4809         * libm/machine/spu/headers/logf4.h: Likewise.
4810         * libm/machine/spu/headers/nearbyintf4.h: Likewise.
4811         * libm/machine/spu/headers/nextafterd2.h: Likewise.
4812         * libm/machine/spu/headers/nextafterf4.h: Likewise.
4813         * libm/machine/spu/headers/powd2.h: Likewise.
4814         * libm/machine/spu/headers/powf4.h: Likewise.
4815         * libm/machine/spu/headers/recipd2.h: Likewise.
4816         * libm/machine/spu/headers/recipf4.h: Likewise.
4817         * libm/machine/spu/headers/rintf4.h: Likewise.
4818         * libm/machine/spu/headers/scalbnf4.h: Likewise.
4819         * libm/machine/spu/headers/signbitd2.h: Likewise.
4820         * libm/machine/spu/headers/sincosd2.h: Likewise.
4821         * libm/machine/spu/headers/sincosf4.h: Likewise.
4822         * libm/machine/spu/headers/sind2.h: Likewise.
4823         * libm/machine/spu/headers/sinf4.h: Likewise.
4824         * libm/machine/spu/headers/sinhd2.h: Likewise.
4825         * libm/machine/spu/headers/sinhf4.h: Likewise.
4826         * libm/machine/spu/headers/sqrtd2.h: Likewise.
4827         * libm/machine/spu/headers/sqrtf4.h: Likewise.
4828         * libm/machine/spu/headers/tand2.h: Likewise.
4829         * libm/machine/spu/headers/tanf4.h: Likewise.
4830         * libm/machine/spu/headers/tanhd2.h: Likewise.
4831         * libm/machine/spu/headers/tanhf4.h: Likewise.
4832         * libm/machine/spu/headers/tgammad2.h: Likewise.
4833         * libm/machine/spu/headers/tgammaf4.h: Likewise.
4834         * libm/machine/spu/headers/truncd2.h: Likewise.
4835         * libm/machine/spu/headers/truncf4.h: Likewise.
4836         * libm/machine/spu/headers/simdmath.h: Likewise.
4837
4838 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
4839
4840         * libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
4841         * libm/machine/spu/headers/asinhd2.h: Likewise.
4842         * libm/machine/spu/headers/atanhd2.h: Likewise.
4843         * libm/machine/spu/headers/atanhf4.h: Likewise.
4844         * libm/machine/spu/headers/erff4.h: Likewise.
4845         * libm/machine/spu/headers/expd2.h: Likewise.
4846         * libm/machine/spu/headers/ldexpd2.h: Likewise.
4847         * libm/machine/spu/headers/lgammaf4.h: Likewise.
4848         * libm/machine/spu/headers/logbf4.h: Likewise.
4849         * libm/machine/spu/headers/nextafterd2.h: Likewise.
4850         * libm/machine/spu/headers/nextafterf4.h: Likewise.
4851         * libm/machine/spu/headers/recipd2.h: Likewise.
4852         * libm/machine/spu/headers/simdmath.h: Likewise.
4853         * libm/machine/spu/headers/acoshd2.: Likewise.
4854
4855 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
4856
4857         * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
4858         * libm/machine/spu/headers/cbrtf.h: Likewise.
4859
4860 2008-09-01  Ken Werner  <ken.werner@de.ibm.com>
4861
4862         * libc/machine/spu/include/spu_timer.h: spu_timebase function added.
4863         * libc/machine/spu/spu_timebase.c: New file.
4864         * libc/machine/spu/Makefile.am: Add new file.
4865         * libc/machine/spu/Makefile.in: Regenerated.
4866
4867 2008-08-28  Craig Howland  <howland@LGSInnovations.com>
4868
4869         * libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
4870         any positive value from user (per std) rather than depending
4871         upon 1).
4872
4873 2008-08-28  Corinna Vinschen  <corinna@vinschen.de>
4874
4875         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
4876         for accepting a converted character.
4877
4878 2008-08-27  Sandra Loosemore  <sandra@codesourcery.com>
4879
4880         * libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
4881         from building pdfs.
4882         * libm/libm.texinfo: Likewise.
4883
4884 2008-08-27  Corinna Vinschen  <corinna@vinschen.de>
4885
4886         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
4887         accepting a converted character and continuing the loop.
4888
4889 2008-07-24  Jeff Johnston  <jjohnstn@redhat.com>
4890
4891         * libc/include/ctype.h (_ctype_): Restore for C++ backward
4892         compatability only.
4893
4894 2008-07-21  Jeff Johnston  <jjohnstn@redhat.com>
4895
4896         * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
4897         less than the old __ctype_ptr.
4898         * libc/ctype/isalnum.c: Use __ctype_ptr__.
4899         * libc/ctype/isalpha.c: Ditto.
4900         * libc/ctype/iscntrl.c: Ditto.
4901         * libc/ctype/isdigit.c: Ditto.
4902         * libc/ctype/islower.c: Ditto.
4903         * libc/ctype/isprint.c: Ditto.
4904         * libc/ctype/ispunct.c: Ditto.
4905         * libc/ctype/isspace.c: Ditto.
4906         * libc/ctype/isupper.c: Ditto.
4907         * libc/ctype/isxdigit.c: Ditto.
4908         * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
4909         and add declaration of __ctype_ptr__.  Remove older ctype table pointers
4910         from here even though they can still work.
4911
4912 2008-07-18  Ken Werner  <ken.werner@de.ibm.com>
4913
4914         * libc/machine/spu/strcpy.h: Fix error in previous patch.
4915
4916 2008-07-17  Jeff Johnston  <jjohnstn@redhat.com>
4917
4918         * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when
4919         __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
4920
4921 2008-07-17  Ken Werner  <ken.werner@de.ibm.com>
4922
4923         * libc/machine/spu/strcpy.h: Pad null bytes if necessary.
4924
4925 2008-07-08  Kenji Tanaka  <tanaka.ken2@jp.panasonic.com>
4926
4927         * libc/machine/mn10300/memset.S: Fix bug where return value is
4928         incorrectly set if number of bytes set is a multiple of 4.
4929
4930 2008-07-07  Hans-Peter Nilsson  <hp@axis.com>
4931
4932         * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
4933         (strncpy): Cast src to uintptr_t before checking alignment with "&".
4934
4935 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
4936
4937         * libc/argz/argz_count.c: Include stddef.h to get size_t.
4938         * libc/argz/argz_extract.c: Ditto.
4939         * libc/argz/argz_stringify.c: Ditto.
4940         * libc/search/hash.h: Ditto.
4941         * libc/sys/linux/include/sched.h: Ditto.
4942         * libc/sys/linux/sys/types.h: Ditto.
4943
4944 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
4945
4946         * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
4947         source data is taken care of before loop unrolling.
4948
4949 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
4950
4951         Fix strict-aliasing issues with _strtod_r and Storeinc.
4952         * libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
4953         rv, rv0 from double to type U.  Use accessor macros dval, dword0
4954         and dword1 for all accesses except for the ULtod call, where rv.i
4955         replaces the pointer cast.
4956         * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
4957         of access macros.  Tweak comment.
4958         Remove #ifdef'd YES_ALIAS code.
4959         (dword0, dword1, dval): Define in terms of uncast union member
4960         access.  Ditto for _DOUBLE_IS_32BITS variants.
4961         (Storeinc): Replace aliasing-flawed microoptimized definition with
4962         alternative suggested in comment.  Remove now stale comment.
4963
4964 2008-06-21  Corinna Vinschen  <corinna@vinschen.de>
4965
4966         * libc/include/machine/setjmp.h (_longjmp): Define as function on
4967         Cygwin.
4968         (_setjmp): Ditto.
4969
4970 2008-06-18  Eric Blake  <ebb9@byu.net>
4971
4972         Per Posix, strsignal returns non-const char*.
4973         * libc/include/string.h (strsignal): Fix return type.
4974
4975 2008-06-17  Ken Werner  <ken.werner@de.ibm.com>
4976
4977         * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
4978         support.
4979
4980 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
4981
4982         * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
4983         * libc/machine/spu/sys/sched.h: Likewise.
4984         * libc/machine/spu/sys/syscall.h: Likewise.
4985
4986 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
4987
4988         * libc/machine/spu/mk_syscalls: Provide .type and .size directives
4989         in generated assembler files.
4990         * libc/machine/spu/fprintf.S: Regenerate.
4991         * libc/machine/spu/fscanf.S: Regenerate.
4992         * libc/machine/spu/printf.S: Regenerate.
4993         * libc/machine/spu/scanf.S: Regenerate.
4994         * libc/machine/spu/snprintf.S: Regenerate.
4995         * libc/machine/spu/sprintf.S: Regenerate.
4996         * libc/machine/spu/sscanf.S: Regenerate.
4997         * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
4998         and .size directives.
4999         * libc/machine/spu/setjmp.S (setjmp): Likewise.
5000         (longjmp): Likewise.
5001
5002 2008-06-11  Jeff Johnston  <jjohnstn@redhat.com>
5003
5004         * libc/include/machine/_default_types.h: Fix GNUC check to
5005         handle 4.0 and greater.
5006
5007 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
5008
5009         * libc/machine/spu/Makefile.am: Add new files.
5010         * libc/machine/spu/Makefile.in: Likewise.
5011         * libc/machine/spu/include/spu_timer.h: New file to add timer support
5012         using interrupts.
5013         * libc/machine/spu/spu_clock_stop.c: Likewise.
5014         * libc/machine/spu/spu_clock_svcs.c: Likewise.
5015         * libc/machine/spu/spu_timer_flih.S: Likewise.
5016         * libc/machine/spu/spu_timer_free.c: Likewise.
5017         * libc/machine/spu/spu_timer_internal.h: Likewise.
5018         * libc/machine/spu/spu_timer_slih.c: Likewise.
5019         * libc/machine/spu/spu_timer_slih_reg.c: Likewise.
5020         * libc/machine/spu/spu_timer_stop.c: Likewise.
5021         * libc/machine/spu/spu_timer_svcs.c: Likewise.
5022
5023 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
5024
5025         * libc/machine/spu/strcat.c: Return value fixed.
5026         * libc/machine/spu/strncat.c: Likewise.
5027
5028 2008-05-28  Eric Blake  <ebb9@byu.net>
5029
5030         Fix bug in previous patch.
5031         * libc/machine/i386/memset.S (memset): Mask second arg correctly.
5032
5033 2008-05-27  Jeff Johnston  <jjohnstn@redhat.com>
5034
5035         * libc/string/memset.c: Fix documented prototype to remove
5036         erroneous const attribute on first parameter.
5037
5038 2008-05-26  Eric Blake  <ebb9@byu.net>
5039
5040         Optimize the generic and x86 memchr.
5041         * libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
5042         Pre-align pointer so unaligned searches aren't penalized.
5043         * libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
5044         operations are faster than repnz byte searches.
5045
5046 2008-05-26  Eric Blake  <ebb9@byu.net>
5047
5048         Optimize the generic and x86 memset.
5049         * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
5050         Pre-align pointer so unaligned stores aren't penalized.
5051         * libc/machine/i386/memset.S (memset) [!__OPTIMIZE_SIZE__]:
5052         Pre-align pointer so unaligned stores aren't penalized.  Prefer
5053         8-byte over 4-byte alignment.  Reduce register pressure.
5054
5055 2008-05-26  Eric Blake  <ebb9@byu.net>
5056
5057         Optimize the generic and x86 strlen.
5058         * libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
5059         data so unaligned searches aren't penalized.
5060         * libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
5061         Word operations are faster than repnz byte searches.
5062
5063 2008-05-23  Corinna Vinschen  <corinna@vinschen.de>
5064
5065         * libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.
5066
5067 2008-05-22  Jeff Johnston  <jjohnstn@redhat.com>
5068
5069         * libc/include/sys/reent.h: Add _h_errno field.
5070         * libc/sys/linux/libc-symbols.h: Add default stubs for new libc macros
5071         now used in net directory.
5072         * libc/sys/linux/bits/libc-lock.h: Always define _IO_MTSAFE_IO.
5073         * libc/sys/linux/include/hesiod.h: Add needed macros for new code
5074         in net directory.
5075         * libc/sys/linux/include/netdb.h: Ditto.
5076         * libc/sys/linux/include/resolv.h: Ditto.
5077         * libc/sys/linux/include/stdint.h: Ditto.
5078         * libc/sys/linux/include/arpa/nameser.h: Ditto.
5079         * libc/sys/linux/include/net/ethernet.h: Ditto.
5080         * libc/sys/linux/include/net/if_ppp.h: Ditto.
5081         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
5082         * libc/sys/linux/machine/i386/get_clockfreq.c: Remove static memmem.
5083         * libc/sys/linux/machine/i386/include/endian.h: Protect macros with
5084         flags to avoid duplicate definition.
5085         * libc/sys/linux/machine/i386/include/param.h: Ditto.
5086         * libc/sys/linux/net/Makefile.am: Modified to account for removed and
5087         added files.
5088         * libc/sys/linux/net/Makefile.in: Regenerated.
5089         * libc/sys/linux/net/base64.c: Replaced with glibc version of code.
5090         * libc/sys/linux/net/getaddrinfo.c: Ditto.
5091         * libc/sys/linux/net/getnameinfo.c: Ditto.
5092         * libc/sys/linux/net/getproto.c: Ditto.
5093         * libc/sys/linux/net/getservent.c: Ditto.
5094         * libc/sys/linux/net/inet_netof.c: Ditto.
5095         * libc/sys/linux/net/inet_lnaof.c: Ditto.
5096         * libc/sys/linux/net/ns_name.c: Ditto.
5097         * libc/sys/linux/net/ns_netint.c: Ditto.
5098         * libc/sys/linux/net/inet_ntoa.c: Ditto.
5099         * libc/sys/linux/net/ns_parse.c: Ditto.
5100         * libc/sys/linux/net/ns_print.c: Ditto.
5101         * libc/sys/linux/net/ns_ttl.c: Ditto.
5102         * libc/sys/linux/net/nsap_addr.c: Ditto.
5103         * libc/sys/linux/net/rcmd.c: Ditto.
5104         * libc/sys/linux/net/res_comp.c: Ditto.
5105         * libc/sys/linux/net/res_data.c: Ditto.
5106         * libc/sys/linux/net/res_debug.c: Ditto.
5107         * libc/sys/linux/net/res_init.c: Ditto.
5108         * libc/sys/linux/net/res_mkquery.c: Ditto.
5109         * libc/sys/linux/net/res_query.c: Ditto.
5110         * libc/sys/linux/net/res_send.c: Ditto.
5111         * libc/sys/linux/net/send.c: Ditto.
5112         * libc/sys/linux/stdlib/collate.c: Ditto.
5113         * libc/sys/linux/sys/ioctl.h: Ditto.
5114         * libc/sys/linux/sys/socket.h: Ditto.
5115         * libc/sys/linux/sys/unistd.h: Ditto.
5116         * libc/sys/linux/iconv/iconvconfig.c: Removed either because no longer
5117         used or because licensing includes advertising clause that cannot be
5118         ignored.
5119         * libc/sys/linux/iconv/strtab.c: Ditto.
5120         * libc/sys/linux/include/libc_private.h: Ditto.
5121         * libc/sys/linux/include/nsswitch.h: Ditto.
5122         * libc/sys/linux/include/net/if_atm.h: Ditto.
5123         * libc/sys/linux/include/net/if_media.h: Ditto.
5124         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
5125         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
5126         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
5127         * libc/sys/linux/intl/locale.alias: Ditto.
5128         * libc/sys/linux/net/addr2ascii.3: Ditto.
5129         * libc/sys/linux/net/bindresvport.c: Ditto.
5130         * libc/sys/linux/net/byteorder.3: Ditto.
5131         * libc/sys/linux/net/res_config.h: Ditto.
5132         * libc/sys/linux/net/ether_addr.c: Ditto.
5133         * libc/sys/linux/net/ethers.3: Ditto.
5134         * libc/sys/linux/net/getaddrinfo.3: Ditto.
5135         * libc/sys/linux/net/gethostbydns.c: Ditto.
5136         * libc/sys/linux/net/gethostbyht.c: Ditto.
5137         * libc/sys/linux/net/gethostbyname.3: Ditto.
5138         * libc/sys/linux/net/gethostbynis.c: Ditto.
5139         * libc/sys/linux/net/gethostnamadr.c: Ditto.
5140         * libc/sys/linux/net/getifaddrs.3: Ditto.
5141         * libc/sys/linux/net/getifaddrs.c: Ditto.
5142         * libc/sys/linux/net/getipnodebyname.3: Ditto.
5143         * libc/sys/linux/net/getnameinfo.3: Ditto.
5144         * libc/sys/linux/net/getnetbydns.c: Ditto.
5145         * libc/sys/linux/net/getnetbyht.c: Ditto.
5146         * libc/sys/linux/net/getnetbynis.c: Ditto.
5147         * libc/sys/linux/net/getnetent.3: Ditto.
5148         * libc/sys/linux/net/getnetnamadr.c: Ditto.
5149         * libc/sys/linux/net/getprotoent.3: Ditto.
5150         * libc/sys/linux/net/getprotoent.c: Ditto.
5151         * libc/sys/linux/net/getprotoname.c: Ditto.
5152         * libc/sys/linux/net/getservbyname.c: Ditto.
5153         * libc/sys/linux/net/getservbyport.c: Ditto.
5154         * libc/sys/linux/net/getservent.3: Ditto.
5155         * libc/sys/linux/net/herror.c: Ditto.
5156         * libc/sys/linux/net/hesiod.3: Ditto.
5157         * libc/sys/linux/net/hesiod.c: Ditto.
5158         * libc/sys/linux/net/if_indextoname.3: Ditto.
5159         * libc/sys/linux/net/inet.3: Ditto.
5160         * libc/sys/linux/net/inet6_option_space.3: Ditto.
5161         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
5162         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
5163         * libc/sys/linux/net/inet_net.3: Ditto.
5164         * libc/sys/linux/net/inet_network.c: Ditto.
5165         * libc/sys/linux/net/innetgr-stub.c: Ditto.
5166         * libc/sys/linux/net/ip6opt.c: Ditto.
5167         * libc/sys/linux/net/iso_addr.3: Ditto.
5168         * libc/sys/linux/net/iso_addr.c: Ditto.
5169         * libc/sys/linux/net/linkaddr.3: Ditto.
5170         * libc/sys/linux/net/linkaddr.c: Ditto.
5171         * libc/sys/linux/net/map_v4v6.c: Ditto.
5172         * libc/sys/linux/net/name6.c: Ditto.
5173         * libc/sys/linux/net/namespace.h: Ditto.
5174         * libc/sys/linux/net/ns.3: Ditto.
5175         * libc/sys/linux/net/ns_addr.c: Ditto.
5176         * libc/sys/linux/net/ns_ntoa.c: Ditto.
5177         * libc/sys/linux/net/nsdispatch.3: Ditto.
5178         * libc/sys/linux/net/nsdispatch.c: Ditto.
5179         * libc/sys/linux/net/nslexer.c: Ditto.
5180         * libc/sys/linux/net/nslexer.l: Ditto.
5181         * libc/sys/linux/net/nsparser.c: Ditto.
5182         * libc/sys/linux/net/nsparser.h: Ditto.
5183         * libc/sys/linux/net/nsparser.y: Ditto.
5184         * libc/sys/linux/net/rcmd.3: Ditto.
5185         * libc/sys/linux/net/rcmdsh.3: Ditto.
5186         * libc/sys/linux/net/res_mkupdate.c: Ditto.
5187         * libc/sys/linux/net/res_update.c: Ditto.
5188         * libc/sys/linux/net/resolver.3: Ditto.
5189         * libc/sys/linux/net/rthdr.c: Ditto.
5190         * libc/sys/linux/net/vars.c: Ditto.
5191         * libc/sys/linux/shlib-compat.h: New file.
5192         * libc/sys/linux/machine/i386/atomic.h: Ditto.
5193         * libc/sys/linux/net/XXX-lookup.c: Ditto.
5194         * libc/sys/linux/net/alias-lookup.c: Ditto.
5195         * libc/sys/linux/net/res_libc.c: Ditto.
5196         * libc/sys/linux/net/aliases.h: Ditto.
5197         * libc/sys/linux/net/check_pf.c: Ditto.
5198         * libc/sys/linux/net/databases.def: Ditto.
5199         * libc/sys/linux/net/digits_dots.c: Ditto.
5200         * libc/sys/linux/net/ether_aton.c: Ditto.
5201         * libc/sys/linux/net/ether_aton_r.c: Ditto.
5202         * libc/sys/linux/net/ether_hton.c: Ditto.
5203         * libc/sys/linux/net/ether_line.c: Ditto.
5204         * libc/sys/linux/net/ether_ntoa.c: Ditto.
5205         * libc/sys/linux/net/ether_ntoa_r.c: Ditto.
5206         * libc/sys/linux/net/ether_ntoh.c: Ditto.
5207         * libc/sys/linux/net/etherent.h: Ditto.
5208         * libc/sys/linux/net/ethers-lookup.c: Ditto.
5209         * libc/sys/linux/net/function.def: Ditto.
5210         * libc/sys/linux/net/getXXbyYY.c: Ditto.
5211         * libc/sys/linux/net/getXXbyYY_r.c: Ditto.
5212         * libc/sys/linux/net/getXXent.c: Ditto.
5213         * libc/sys/linux/net/getXXent_r.c: Ditto.
5214         * libc/sys/linux/net/getaliasent.c: Ditto.
5215         * libc/sys/linux/net/getaliasent_r.c: Ditto.
5216         * libc/sys/linux/net/getaliasname.c: Ditto.
5217         * libc/sys/linux/net/getaliasname_r.c: Ditto.
5218         * libc/sys/linux/net/gethstbyad.c: Ditto.
5219         * libc/sys/linux/net/gethstbyad_r.c: Ditto.
5220         * libc/sys/linux/net/gethstbynm.c: Ditto.
5221         * libc/sys/linux/net/gethstbynm2.c: Ditto.
5222         * libc/sys/linux/net/gethstbynm2_r.c: Ditto.
5223         * libc/sys/linux/net/gethstbynm_r.c: Ditto.
5224         * libc/sys/linux/net/gethstent.c: Ditto.
5225         * libc/sys/linux/net/gethstent_r.c: Ditto.
5226         * libc/sys/linux/net/getnetbyad.c: Ditto.
5227         * libc/sys/linux/net/getnetbyad_r.c: Ditto.
5228         * libc/sys/linux/net/getnetbynm.c: Ditto.
5229         * libc/sys/linux/net/getnetbynm_r.c: Ditto.
5230         * libc/sys/linux/net/getnetent.c: Ditto.
5231         * libc/sys/linux/net/getnetent_r.c: Ditto.
5232         * libc/sys/linux/net/getnetgrent.c: Ditto.
5233         * libc/sys/linux/net/getnetgrent_r.c: Ditto.
5234         * libc/sys/linux/net/getnssent.c: Ditto.
5235         * libc/sys/linux/net/getnssent_r.c: Ditto.
5236         * libc/sys/linux/net/getproto_r.c: Ditto.
5237         * libc/sys/linux/net/getprtent.c: Ditto.
5238         * libc/sys/linux/net/getprtent_r.c: Ditto.
5239         * libc/sys/linux/net/getprtname.c: Ditto.
5240         * libc/sys/linux/net/getprtname_r.c: Ditto.
5241         * libc/sys/linux/net/getrpcbyname.c: Ditto.
5242         * libc/sys/linux/net/getrpcbyname_r.c: Ditto.
5243         * libc/sys/linux/net/getrpcbynumber.c: Ditto.
5244         * libc/sys/linux/net/getrpcbynumber_r.c: Ditto.
5245         * libc/sys/linux/net/getrpcent.c: Ditto.
5246         * libc/sys/linux/net/getrpcent_r.c: Ditto.
5247         * libc/sys/linux/net/getservent_r.c: Ditto.
5248         * libc/sys/linux/net/getsrvbynm.c: Ditto.
5249         * libc/sys/linux/net/getsrvbynm_r.c: Ditto.
5250         * libc/sys/linux/net/getsrvbypt.c: Ditto.
5251         * libc/sys/linux/net/getsrvbypt_r.c: Ditto.
5252         * libc/sys/linux/net/grp-lookup.c: Ditto.
5253         * libc/sys/linux/net/herrno.c: Ditto.
5254         * libc/sys/linux/net/hosts-lookup.c: Ditto.
5255         * libc/sys/linux/net/ifaddrs.h: Ditto.
5256         * libc/sys/linux/net/ifreq.c: Ditto.
5257         * libc/sys/linux/net/ifreq.h: Ditto.
5258         * libc/sys/linux/net/in6_addr.c: Ditto.
5259         * libc/sys/linux/net/inet6_option.c: Ditto.
5260         * libc/sys/linux/net/inet_mkadr.c: Ditto.
5261         * libc/sys/linux/net/inet_net.c: Ditto.
5262         * libc/sys/linux/net/key-lookup.c: Ditto.
5263         * libc/sys/linux/net/local.h: Ditto.
5264         * libc/sys/linux/net/netgroup.h: Ditto.
5265         * libc/sys/linux/net/netgrp-lookup.c: Ditto.
5266         * libc/sys/linux/net/network-lookup.c: Ditto.
5267         * libc/sys/linux/net/not-cancel.h: Ditto.
5268         * libc/sys/linux/net/ns_samedomain.c: Ditto.
5269         * libc/sys/linux/net/nscd-types.h: Ditto.
5270         * libc/sys/linux/net/nss.h: Ditto.
5271         * libc/sys/linux/net/nsswitch.c: Ditto.
5272         * libc/sys/linux/net/nsswitch.h: Ditto.
5273         * libc/sys/linux/net/opensock.c: Ditto.
5274         * libc/sys/linux/net/proto-lookup.c: Ditto.
5275         * libc/sys/linux/net/pwd-lookup.c: Ditto.
5276         * libc/sys/linux/net/res_debug.h: Ditto.
5277         * libc/sys/linux/net/res_hconf.c: Ditto.
5278         * libc/sys/linux/net/res_hconf.h: Ditto.
5279         * libc/sys/linux/net/rexec.c: Ditto.
5280         * libc/sys/linux/net/rpc-lookup.c: Ditto.
5281         * libc/sys/linux/net/ruserpass.c: Ditto.
5282         * libc/sys/linux/net/service-lookup.c: Ditto.
5283         * libc/sys/linux/net/spwd-lookup.c: Ditto.
5284         * libc/sys/linux/net/nscd/nscd-client.h: Ditto.
5285         * libc/sys/linux/net/nscd/nscd_proto.h: Ditto.
5286
5287 2008-05-21  Eric Blake  <ebb9@byu.net>
5288
5289         Optimize the generic strchr.
5290         * libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align
5291         data so unaligned searches aren't penalized.  Special-case
5292         searching for 0.
5293
5294         Optimize strchr for x86.
5295         * libc/machine/i386/strchr.S (strchr) [!__OPTIMIZE_SIZE__]:
5296         Pre-align data so unaligned searches aren't penalized.
5297         Special-case searching for 0.
5298
5299 2008-05-20  Nick Clifton  <nickc@redhat.com>
5300
5301         * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak).
5302
5303 2008-05-20  DJ Delorie  <dj@redhat.com>
5304
5305         * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty.
5306
5307 2008-05-14  Jeff Johnston  <jjohnstn@redhat.com>
5308
5309         * libc/include/sys/reent.h: Change _REENT_INIT... macros to
5310         access macro parameter with parentheses around it.
5311
5312 2008-04-26  Mark Mitchell  <mark@codesourcery.com>
5313
5314         * libc/include/stdint.h (SIZE_MIN): Remove.
5315         (SIZE_MAX): Define.
5316         * testsuite/newlib.stdlib/stdlib.exp: New.
5317         * testsuite/newlib.stdlib/size_max.c: Likewise.
5318
5319 2008-04-29  Eric Blake  <ebb9@byu.net>
5320
5321         Fix 2008-04-14 regression in asprintf(ptr,"").
5322         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio
5323         baggage.
5324         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise.
5325         * libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise.
5326         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
5327         * libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise.
5328         * libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc
5329         an initial buffer for asprintf.
5330
5331 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
5332
5333         * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
5334         (fstatat): Fix type of third parameter.
5335
5336 2008-04-25  Nick Clifton  <nickc@redhat.com>
5337
5338         * libc/machine/arm/setjmp.S: Fix thumb2 support.
5339
5340 2008-04-24  Nick Clifton  <nickc@redhat.com>
5341
5342         * libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
5343         should be _DOUBLE_IS_32BITS.
5344
5345 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
5346
5347         * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
5348         (UTIME_OMIT): Ditto.
5349         (utimensat): Declare for Cygwin.
5350         (futimens): Ditto.
5351
5352 2008-04-23  Ken Werner  <ken.werner@de.ibm.com>
5353
5354         * libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE.
5355         * libc/include/math.h: Likewise.
5356
5357 2008-04-23  Corinna Vinschen  <corinna@vinschen.de>
5358
5359         * libc/include/stdio.h (renameat): Declare for Cygwin.
5360         (symlinkat): Ditto.
5361         * libc/include/sys/unistd.h (readlink): Align declaration to POSIX.
5362         (faccessat): Declare for Cygwin.
5363         (fchownat): Ditto.
5364         (linkat): Ditto.
5365         (readlinkat): Ditto.
5366         * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin.
5367         (AT_EACCESS): Ditto.
5368         (AT_SYMLINK_NOFOLLOW): Ditto.
5369         (AT_SYMLINK_FOLLOW): Ditto.
5370         (AT_REMOVEDIR): Ditto.
5371         (futimesat): Declare for Cygwin.
5372         (openat): Ditto.
5373         (unlinkat): Ditto.
5374         * libc/include/sys/stat.h (fchmodat): Ditto.
5375         (fstatat): Ditto.
5376         (mkdirat): Ditto.
5377         (mkfifoat): Ditto.
5378         (mknodat): Ditto.
5379
5380 2008-04-22  Nick Clifton  <nickc@redhat.com>
5381
5382         * libc/machine/arm/setjmp.S: Add support for thumb2 multiple
5383         register load/store instructions.
5384
5385 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
5386
5387         * libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
5388
5389 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
5390
5391         * libc/machine/spu/impure.c: Add missing underscore to impure_data.
5392
5393 2008-04-14  Patrick Mansfield  <patmans@us.ibm.com>
5394
5395         * libc/machine/spu/impure.c: New file, supply a non-static _impure_data.
5396         * libc/machine/spu/Makefile.am: Add new file impure.c.
5397         * libc/machine/spu/Makefile.in: Regenerate.
5398         * libc/machine/spu/sys/errno.h: Define errno to be _reent_data._errno.
5399
5400 2008-04-14  Jeff Johnston  <jjohnstn@redhat.com>
5401
5402         * libc/stdio/Makefile.am: Build vfprintf.c and vfscanf.c with
5403         -DSTRING_ONLY defined with and without -DINTEGER_ONLY defined
5404         to build special versions for sprintf/sscanf family functions.
5405         * libc/stdio/Makefile.in: Regenerated.
5406         * libc/stdio/vfprintf.c[STRING_ONLY][INTEGER_ONLY](_VFPRINTF_R):
5407         Redefine to be _svfiprintf_r which is optimized to work with siprintf
5408         family of functions (i.e. no I/O) and does not support floating-point.
5409         [STRING_ONLY][!INTEGER_ONLY](_VFPRINTF_R): Redefine to be
5410         _svfprintf_r which is optimized to work with sprintf family of
5411         functions and not use I/O.
5412         [STRING_ONLY](__sprint_r): New string only version of static function.
5413         designed to work with sprintf family of functions.
5414         * libc/stdio/vfscanf.c[STRING_ONLY][INTEGER_ONLY](_SVFSCANF_R):
5415         Redefine to be _ssvfiscanf_r which is optimized to work with siscanf
5416         family of functions (i.e. no I/O) and no float-point support.
5417         [STRING_ONLY][!INTEGER_ONLY](_SVFSCANF_R): Redefine to be
5418         __ssvfscanf_r which is optimized to work with sscanf family of
5419         functions and does not require I/O functions.
5420         * libc/stdio/asprintf.c: Call _svfprintf_r instead of _vfprintf_r.
5421         * libc/stdio/snprintf.c: Ditto.
5422         * libc/stdio/sprintf.c: Ditto.
5423         * libc/stdio/vasnprintf.c: Ditto.
5424         * libc/stdio/vasprintf.c: Ditto.
5425         * libc/stdio/siprintf.c: Call _svfiprintf_r instead of _vfiprintf_r.
5426         * libc/stdio/sniprintf.c: Ditto.
5427         * libc/stdio/vasiprintf.c: Ditto.
5428         * libc/stdio/vsiprintf.c: Ditto.
5429         * libc/stdio/vsniprintf.c: Ditto.
5430         * libc/stdio/vsprintf.c: Ditto.
5431         * libc/stdio/local.h: Add prototypes for _svfprintf_r, _svfiprintf_r,
5432         _ssvfscanf_r, and _ssvfiscanf_r.
5433         * libc/stdio/sscanf.c: Call _ssvfscanf_r instead of _svfscanf_r.
5434         * libc/stdio/vsscanf.c: Ditto.
5435         * libc/stdio/siscanf.c: Call _ssvfiscanf_r instead of _svfiscanf_r.
5436         * libc/stdio/vsiscanf.c: Ditto.
5437
5438 2008-04-04  DJ Delorie  <dj@redhat.com>
5439
5440         * libm/machine/spu/configure: Regenerate with autoconf 2.61.
5441         * libc/sys/configure: Regenerate with autoconf 2.61.
5442         * libc/machine/configure: Regenerate with autoconf 2.61.
5443
5444 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
5445
5446         * libc/machine/spu/memcmp.c: New file for SPU optimized memcmp.
5447         * libc/machine/spu/strncmp.h: New file supply _strncmp_internal.
5448         * libc/machine/spu/Makefile.am: Add memcmp.c.
5449         * libc/machine/spu/Makefile.in: Rebuild.
5450         * libc/machine/spu/strncmp.c: Use _strncmp_internal.
5451
5452 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
5453
5454         * configure.host: Build SPU with -DREENTRANT_SYSCALLS_PROVIDED and
5455           -DMISSING_SYSCALL_NAMES.
5456
5457 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
5458
5459         * libc/machine/spu/Makefile.am: Add assert.c.
5460         * libc/machine/spu/Makefile.in: Regenerate.
5461         * libc/machine/spu/assert.c: New file.
5462
5463 2008-03-27 Patrick Mansfield <patmans@us.ibm.com>
5464
5465         * libc/include/reent.h: Define _func_r functions in this file to
5466         func if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES are
5467         defined.
5468
5469 2008-03-27  Corinna Vinschen  <corinna@vinschen.de>
5470
5471         * libc/include/sys/unistd.h: Declare lockf(2) and define lockf
5472         constants when building for Cygwin.
5473
5474 2008-03-11  Jeff Johnston  <jjohnstn@redhat.com>
5475
5476         * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
5477         stdin gets resolved properly before refilling.
5478
5479 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
5480
5481         * libc/include/getopt.h: Hide newlib extensions under
5482         the __need_getopt_newlib flag.
5483         * libc/stdlib/getopt.c: #define __need_getopt_newlib before including
5484         getopt.h.  Put entire code under !HAVE_GETOPT to support platforms
5485         with their own getopt implementation.
5486         * configure.host: Specify HAVE_GETOPT for x86-linux.
5487
5488 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
5489
5490         * libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify
5491         this macro completely instead of referring to CHECK_STD_INIT which
5492         is only found in libc/stdio/local.h.
5493         * libc/stdio/dprintf.c: Add include of local.h.
5494         * libc/stdio/vdprintf.c: Ditto.
5495         * libc/stdio/vdiprintf.c: Ditto.
5496
5497 2008-03-04  Eric Blake  <ebb9@byu.net>
5498
5499         Fix strtod("nan()", ptr).
5500         * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
5501         n-char-sequence is omitted, still parse the ().
5502
5503 2008-03-03  Eric Blake  <ebb9@byu.net>
5504
5505         Fix ftell bug after ungetc.
5506         * libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on
5507         ftell.
5508         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
5509         * libc/stdio/fflush.c (_fflush_r): Clear unget buffer when
5510         repositioning underlying fd offset.
5511
5512 2008-03-02  Jeff Johnston  <jjohnstn@redhat.com>
5513
5514         * libc/include/getopt.h (no_argument): Added for glibc compatibility.
5515         (required_argument, optional_argument): Ditto.
5516
5517 2008-02-29  Gregory Pietsch  <gpietsch@comcast.net>
5518
5519         * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept
5520         data area so as to support reentrant calls.  Change all callers
5521         to fill in data area with global values and restore any changes
5522         to the global values after call.
5523         (__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines
5524         to support reentrancy that add a data area argument.
5525         * libc/include/getopt.h: Add new _r routines and provide macros
5526         so they can be called with using double-underscores.
5527
5528 2008-02-21  Eric Blake  <ebb9@byu.net>
5529
5530         Fix strtod("-0x", NULL).
5531         * libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse
5532         fails.
5533
5534 2008-02-12  Jeff Johnston  <jjohnstn@redhat.com>
5535
5536         * libc/machine/powerpc/vfprintf.c (_VFPRINTF_R): Prepare
5537         for user specifying --disable-newlib-io-long-long on configure.
5538         Call _fflush_r instead of fflush.  For _mbtowc_r, pass the
5539         reentrant pointer passed in rather than _REENT.
5540
5541 2008-02-12  Peter Rosin  <peda@lysator.liu.se>
5542
5543         * libc/stdlib/getopt.c (getopt_internal): Handle optional
5544         arguments better for long options and short options not
5545         appearing as the first option in a sequence.
5546
5547 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
5548
5549         * libc/machine/spu/straddr.h: New file, supplies _straddr.
5550         * libc/machine/spu/strcat.c: Use _straddr and _strcpy.
5551         * libc/machine/spu/strcpy.c: Use _strcpy.
5552         * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU
5553         str[n]cpy and str[n]cat.
5554         * libc/machine/spu/strncat.c: Use _straddr and _strcpy.
5555         * libc/machine/spu/strncpy.c: Use _strcpy.
5556
5557 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
5558
5559         * libc/machine/spu/strlen.c: Remove the len variable and unneeded
5560         calculation of its value.
5561
5562 2008-01-25  Hans-Peter Nilsson  <hp@bitrange.com>
5563
5564         * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
5565         Make ISO C.
5566
5567 2008-01-21  DJ Delorie  <dj@redhat.com>
5568
5569         * libc/sys/sh/syscalls.c (_isatty): New.
5570
5571 2008-01-21  Neal H. Walfield  <neal@gnu.org>
5572
5573         * Makefile.am (crt1.o): Use correct source.
5574         * Makefile.in: Regenerated.
5575
5576 2008-01-15  Eric Blake  <ebb9@byu.net>
5577
5578         * libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
5579         * libc/string/Makefile: Regenerate.
5580
5581 2008-01-15  Corinna Vinschen  <corinna@vinschen.de>
5582
5583         * libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
5584         pthread_sigmask or sigprocmask depending on _POSIX_THREADS.
5585         (sigsetjmp): Use __SIGMASK_FUNC.
5586         (siglongjmp): Ditto.
5587         (_setjmp): Define as macro.
5588         (_longjmp): Ditto.
5589
5590 2008-01-11  Eric Blake  <ebb9@byu.net>
5591
5592         Make strstr and strcasestr O(n), not O(n^2); add memmem.
5593         * libc/string/str-two-way.h: New file.
5594         * libc/string/memmem.c (memmem): New file.
5595         * libc/include/string.h (memmem): Declare for all platforms.
5596         * libc/string/strstr.c (strstr): Provide O(n) implementation when
5597         not optimizing for space.
5598         * libc/string/strcasestr.c (strcasestr): Likewise.
5599         * libc/string/Makefile.am (ELIX_SOURCES): Rename to...
5600         (ELIX_2_SOURCES): ...this.
5601         (ELIX_4_SOURCES): New category, for memmem.
5602         (lib_a_SOURCES, libstring_la_SOURCES): Build new file.
5603         (CHEWOUT_FILES): Build documentation for memmem.
5604         * libc/string/strings.tex: Include new docs.
5605
5606 2008-01-08  Jeff Johnston  <jjohnstn@redhat.com>
5607
5608         * libc/machine/m68k/memcpy.S: Remove % from register references
5609         as this is already handled by m68kasm.h.
5610         * libc/machine/m68k/memset.S: Ditto.
5611
5612 2008-01-07  Jeff Johnston  <jjohnstn@redhat.com>
5613
5614         * libc/machine/m68k/m68kasm.h: New file.
5615         * libc/machine/m68k/setjmp.S: Remove common definitions and
5616         place in m68kasm.h.  Include "m68kasm.h".
5617         * libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use
5618         SYM() macro when referencing function name.
5619         * libc/machine/m68k/memset.S: Ditto.
5620
5621 2008-01-03  Jeff Johnston  <jjohnstn@redhat.com>
5622
5623         Make isatty syscall handling consistent with other newlib syscalls.
5624
5625         * libc/include/_syslist.h: Add _isatty.
5626         * libc/include/reent.h: Add _isatty_r.
5627         * libc/include/sys/unistd.h: Add _isatty.
5628         * libc/posix/Makefile.am: Add new _isatty.c file.
5629         * libc/posix/Makefile.in: Regenerated.
5630         * libc/posix/_isatty.c: New file.
5631         * libc/posix/isatty.c: Changed to call _isatty().
5632         * libc/reent/Makefile.am: Add new isattyr.c file.
5633         * libc/reent/Makefile.in: Regenerated.
5634         * libc/reent/isattyr.c: New file.
5635         * libc/stdio/freopen.c: Changed to call _isatty_r().
5636         * libc/stdio/makebuf.c: Ditto.
5637         * libc/sys/a29khif/_isatty.S: Change isatty to _isatty.
5638         * libc/sys/arc/isatty.c: Ditto.
5639         * libc/sys/arm/syscalls.c: Ditto.
5640         * libc/sys/d10v/syscalls.c: Ditto.
5641         * libc/sys/h8300hms/syscalls.c: Ditto.
5642         * libc/sys/h8500hms/syscalls.c: Ditto.
5643         * libc/sys/linux/Makefile.am: Add new isatty.c file.
5644         * libc/sys/linux/Makefile.in: Regenerated.
5645         * libc/sys/linux/isatty.c: New file.
5646         * libc/syscalls/Makefile.am: Add new sysisatty.c file.
5647         * libc/syscalls/Makefile.in: Regenerated.
5648         * libc/syscalls/sysisatty.c: New file.
5649
5650 2008-01-02  Jeff Johnston  <jjohnstn@redhat.com>
5651
5652         * libc/syscalls/sysclose.c: Always call reentrant version of the
5653         underlying syscall since one is guaranteed to exist in libc/reent.
5654         * libc/syscalls/sysexecve.c: Ditto.
5655         * libc/syscalls/sysfcntl.c: Ditto.
5656         * libc/syscalls/sysfork.c: Ditto.
5657         * libc/syscalls/sysfstat.c: Ditto.
5658         * libc/syscalls/sysgetpid.c: Ditto.
5659         * libc/syscalls/sysgettod.c: Ditto.
5660         * libc/syscalls/syskill.c: Ditto.
5661         * libc/syscalls/syslink.c: Ditto.
5662         * libc/syscalls/syslseek.c: Ditto.
5663         * libc/syscalls/sysopen.c: Ditto.
5664         * libc/syscalls/sysread.c: Ditto.
5665         * libc/syscalls/syssbrk.c: Ditto.
5666         * libc/syscalls/sysstat.c: Ditto.
5667         * libc/syscalls/systimes.c: Ditto.
5668         * libc/syscalls/sysunlink.c: Ditto.
5669         * libc/syscalls/syswait.c: Ditto.
5670         * libc/syscalls/syswrite.c: Ditto.
5671
5672 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
5673
5674         * NEWS: Update with 1.16.0 info.
5675         * README: Ditto.
5676         * acinclude.m4: Change version number to 1.16.0.
5677         * aclocal.m4: Regenerated.
5678         * configure: Ditto.
5679         * doc/aclocal.m4: Ditto.
5680         * doc/configure: Ditto.
5681         * libc/*/aclocal.m4: Ditto.
5682         * libc/*/configure: Ditto.
5683         * libc/libc.texinfo: Ditto.
5684         * libm/*/aclocal.m4: Ditto.
5685         * libm/*/configure: Ditto.
5686         * libm/libm.texinfo: Ditto.
5687         * libc/sys/linux/shared.ld: Add VERS_1.16.
5688
5689 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
5690
5691         * libc/string/strcasestr.c: Remove id macro.
5692         * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority
5693         field reference to be __sched_priority.
5694         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
5695         * libc/sys/linux/linuxthreads/manager.c: Ditto.
5696         * libc/sys/linux/stdlib/collate.c: Remove id macro.
5697         * libc/sys/linux/stdlib/collcmp.c: Ditto.
5698         * libc/sys/linux/stdlib/engine.c: Ditto.
5699         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
5700         * libc/sys/linux/stdlib/glob.c: Ditto.
5701         * libc/sys/linux/stdlib/reallocf.c: Ditto.
5702         * libc/sys/linux/stdlib/regcomp.c: Ditto.
5703         * libc/sys/linux/stdlib/regerror.c: Ditto.
5704         * libc/sys/linux/stdlib/regexec.c: Ditto.
5705         * libc/sys/linux/stdlib/regfree.c: Ditto.
5706         * libc/sys/linux/sys/cdefs.h: Replace with latest version.
5707         * libc/sys/linux/include/argp.h: Ditto.
5708         * libc/sys/linux/sys/libc-lock.h: New file.
5709         * libc/sys/linux/sys/stdint.h: Ditto.
5710         * libc/sys/linux/include/sched.h: New file.
5711
5712 2007-12-19  Dave Korn  <dave.korn@artimi.com>
5713             Jeff Johnston  <jjohnstn@redhhat.com>
5714
5715         * libc/include/_ansi.h: Add _LONG_LONG definition.
5716         * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add
5717         prototypes.
5718         * libc/machine/i386/machine/fastmath.h: Add support for new i386
5719         fast math versions of rint, lrint, and llrint family functions.
5720         * libm/machine/i386/Makefile.am: Add new files.
5721         * libm/machine/i386/Makefile.in: Regenerated.
5722         * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c,
5723         libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c,
5724         libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c,
5725         libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c,
5726         libm/machine/i386/f_rintl.c:  New files with fast math implementations.
5727
5728 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
5729
5730         * libc/include/sys/features.h: Add checks for C90 compilers using
5731         -ansi.
5732
5733 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
5734
5735         * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.
5736         * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and
5737         wcpncpy.c.
5738         (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def.
5739         * libc/string/Makefile.in: Regenerate.
5740         * libc/string/wcpcpy.c: New file.
5741         * libc/string/wcpncpy.c: New file.
5742         * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
5743
5744 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
5745
5746         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call to
5747         _wcsrtombs_r.
5748
5749 2007-11-19  Nick Clifton  <nickc@redhat.com>
5750
5751         * libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2.
5752         * libc/machine/mn10300/Makefile.in: Regenerate.
5753         * libc/machine/mn10300/memchar.S: Remove redundant labels.  Add
5754         .debug_frame section.
5755         * libc/machine/mn10300/memcmp.S: Likewise.
5756         * libc/machine/mn10300/memcpy.S: Likewise.
5757         * libc/machine/mn10300/memset.S: Likewise.
5758         * libc/machine/mn10300/strchr.S: Likewise.
5759         * libc/machine/mn10300/strcmp.S: Likewise.
5760         * libc/machine/mn10300/strcpy.S: Likewise.
5761         * libc/machine/mn10300/strlen.S: Likewise.
5762
5763 2007-11-15  Jeff Johnston  <jjohnstn@redhat.com>
5764
5765         * libc/include/sys/_default_fcntl.h: New header file that
5766         is the default version of sys/fcntl.h.
5767         * libc/include/sys/fcntl.h: Changed to simply include
5768         sys/_default_fcntl.h.
5769         * libc/sys/arm/sys/fcntl.h: New file that includes
5770         sys/_default_fcntl.h and defines O_BINARY.
5771
5772 2007-11-08  Corinna Vinschen  <corinna@vinschen.de>
5773
5774         * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.
5775
5776 2007-11-07  Dave Brolley  <brolley@redhat.com>
5777
5778         * libc/machine/configure: Regenerated to pick up mep-elf changes.
5779
5780         * Contribute mep-elf from Red Hat
5781         2006-10-27  DJ Delorie  <dj@redhat.com>
5782
5783         * libc/include/machine/setjmp.h: Add MeP support.
5784
5785         2003-04-17  DJ Delorie  <dj@redhat.com>
5786
5787         * configure.host (mep-*-*): Support "long long" type.
5788
5789         2001-06-06  DJ Delorie  <dj@redhat.com>
5790
5791         * libc/include/machine/ieeefp.h (mep): Support little endian too.
5792
5793         2001-05-14  DJ Delorie  <dj@redhat.com>
5794
5795         * configure.host: Add mep's machine_dir.
5796         * libc/include/setjmp.h: Add mep support.
5797         * libc/machine/mep: New.
5798         * libc/machine/mep/setjmp.S: New, support mep's setjmp/longjmp.
5799
5800         2001-05-04  DJ Delorie  <dj@redhat.com>
5801
5802         * configure.host: Add mep.
5803         * libc/include/machine/ieeefp.h: Ditto.
5804
5805 2007-10-31  DJ Delorie  <dj@redhat.com>
5806
5807         * libc/signal/signal.c (_raise_r): Don't attempt to initialize the
5808         signal table, just use a default, in case initialization cause
5809         recursion.
5810
5811 2007-10-23  Jeff Johnston  <jjohnstn@redhat.com>
5812
5813         * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating
5814         size if output buffer is NULL.
5815
5816 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
5817
5818         * libm/mathfp/s_logarithm.c: Fix error introduced by previous
5819         fix when handling negative input values.  Make function
5820         consistent with math directory and glibc version such that
5821         inf and nan values return inf and nan respectively with no
5822         errno setting.
5823         * libm/mathfp/sf_logarithm.c: Ditto.
5824         * libm/math/w_log.c: Set errno to ERANGE when input is 0.0.
5825         * libm/math/wf_log.c: Ditto.
5826         * libm/math/w_log10.c: Ditto.
5827         * libm/math/wf_log10.c: Ditto.
5828
5829 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
5830
5831         * libm/mathfp/s_logarithm.c: Fix case where input is 0 to
5832         return -inf.
5833         * libm/mathfp/sf_logarithm.c: Ditto.
5834
5835 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
5836
5837         * libc/machine/i386/machine/fastmath.h: New file.
5838
5839 2007-10-13  Eric Blake  <ebb9@byu.net>
5840
5841         * libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:
5842         Correctly nest else within conditionals.
5843         Reported by Artur Lipowski.
5844
5845 2007-10-09  Nick Clifton  <nickc@redhat.com>
5846
5847         * libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with
5848         the STT_COMMON type.
5849
5850 2007-10-09  Ben Elliston  <bje@au.ibm.com>
5851
5852         * libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h
5853         before simdmath.h to get a definition for `vector'.
5854         * libm/machine/spu/headers/asind2.h: Likewise.
5855
5856 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
5857
5858         * libm/machine/spu/headers/dom_chkd_less_than.h: New file.
5859         * libm/machine/spu/headers/dom_chkd_negone_one.h: Ditto.
5860         * libm/machine/spu/headers/dom_chkf_less_than.h: Ditto.
5861         * libm/machine/spu/headers/dom_chkf_negone_one.h: Ditto.
5862         * libm/machine/spu/headers/acos.h: Add domain check.
5863         * libm/machine/spu/headers/acosf.h: Ditto.
5864         * libm/machine/spu/headers/acosh.h: Ditto.
5865         * libm/machine/spu/headers/acoshf.h: Ditto.
5866         * libm/machine/spu/headers/asin.h: Ditto.
5867         * libm/machine/spu/headers/asinf.h: Ditto.
5868         * libm/machine/spu/headers/atanh.h: Ditto.
5869         * libm/machine/spu/headers/atanhf.h: Ditto.
5870         * libm/machine/spu/headers/fmod.h: Ditto.
5871         * libm/machine/spu/headers/fmodf.h: Ditto.
5872         * libm/machine/spu/headers/log.h: Ditto.
5873         * libm/machine/spu/headers/log10.h: Ditto.
5874         * libm/machine/spu/headers/log1p.h: Ditto.
5875         * libm/machine/spu/headers/log1pf.h: Ditto.
5876         * libm/machine/spu/headers/log2.h: Ditto.
5877         * libm/machine/spu/headers/log2f.h: Ditto.
5878         * libm/machine/spu/headers/sqrt.h: Ditto.
5879         * libm/machine/spu/headers/sqrtf.h: Ditto.
5880         * libm/machine/spu/headers/tgamma.h: Ditto.
5881         * libm/machine/spu/headers/tgammaf.h: Ditto.
5882
5883 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
5884
5885         * libm/machine/spu/Makefile.am: Add new C files.
5886         * libm/machine/spu/Makefile.in: Regenerate.
5887         * libm/machine/spu/headers/acos.h: New file.
5888         * libm/machine/spu/headers/acosd2.h: Ditto.
5889         * libm/machine/spu/headers/acosf.h: Ditto.
5890         * libm/machine/spu/headers/acosf4.h: Ditto.
5891         * libm/machine/spu/headers/acosh.h: Ditto.
5892         * libm/machine/spu/headers/acoshd2.h: Ditto.
5893         * libm/machine/spu/headers/acoshf.h: Ditto.
5894         * libm/machine/spu/headers/acoshf4.h: Ditto.
5895         * libm/machine/spu/headers/asin.h: Ditto.
5896         * libm/machine/spu/headers/asind2.h: Ditto.
5897         * libm/machine/spu/headers/asinf.h: Ditto.
5898         * libm/machine/spu/headers/asinf4.h: Ditto.
5899         * libm/machine/spu/headers/asinh.h: Ditto.
5900         * libm/machine/spu/headers/asinhd2.h: Ditto.
5901         * libm/machine/spu/headers/asinhf.h: Ditto.
5902         * libm/machine/spu/headers/asinhf4.h: Ditto.
5903         * libm/machine/spu/headers/atan.h: Ditto.
5904         * libm/machine/spu/headers/atan2.h: Ditto.
5905         * libm/machine/spu/headers/atan2d2.h: Ditto.
5906         * libm/machine/spu/headers/atan2f.h: Ditto.
5907         * libm/machine/spu/headers/atan2f4.h: Ditto.
5908         * libm/machine/spu/headers/atand2.h: Ditto.
5909         * libm/machine/spu/headers/atanf4.h: Ditto.
5910         * libm/machine/spu/headers/atanh.h: Ditto.
5911         * libm/machine/spu/headers/atanhd2.h: Ditto.
5912         * libm/machine/spu/headers/atanhf.h: Ditto.
5913         * libm/machine/spu/headers/atanhf4.h: Ditto.
5914         * libm/machine/spu/headers/cos.h: Ditto.
5915         * libm/machine/spu/headers/cos_sin.h: Ditto.
5916         * libm/machine/spu/headers/cosd2.h: Ditto.
5917         * libm/machine/spu/headers/cosf.h: Ditto.
5918         * libm/machine/spu/headers/cosf4.h: Ditto.
5919         * libm/machine/spu/headers/cosh.h: Ditto.
5920         * libm/machine/spu/headers/coshd2.h: Ditto.
5921         * libm/machine/spu/headers/coshf.h: Ditto.
5922         * libm/machine/spu/headers/coshf4.h: Ditto.
5923         * libm/machine/spu/headers/divd2.h: Ditto.
5924         * libm/machine/spu/headers/divf4.h: Ditto.
5925         * libm/machine/spu/headers/erf.h: Ditto.
5926         * libm/machine/spu/headers/erf_utils.h: Ditto.
5927         * libm/machine/spu/headers/erfc.h: Ditto.
5928         * libm/machine/spu/headers/erfcd2.h: Ditto.
5929         * libm/machine/spu/headers/erfcf.h: Ditto.
5930         * libm/machine/spu/headers/erfcf4.h: Ditto.
5931         * libm/machine/spu/headers/erfd2.h: Ditto.
5932         * libm/machine/spu/headers/erff.h: Ditto.
5933         * libm/machine/spu/headers/erff4.h: Ditto.
5934         * libm/machine/spu/headers/exp.h: Ditto.
5935         * libm/machine/spu/headers/exp2.h: Ditto.
5936         * libm/machine/spu/headers/exp2d2.h: Ditto.
5937         * libm/machine/spu/headers/exp2f4.h: Ditto.
5938         * libm/machine/spu/headers/expd2.h: Ditto.
5939         * libm/machine/spu/headers/expf4.h: Ditto.
5940         * libm/machine/spu/headers/expm1.h: Ditto.
5941         * libm/machine/spu/headers/expm1d2.h: Ditto.
5942         * libm/machine/spu/headers/expm1f.h: Ditto.
5943         * libm/machine/spu/headers/expm1f4.h: Ditto.
5944         * libm/machine/spu/headers/floord2.h: Ditto.
5945         * libm/machine/spu/headers/floorf4.h: Ditto.
5946         * libm/machine/spu/headers/hypot.h: Ditto.
5947         * libm/machine/spu/headers/hypotd2.h: Ditto.
5948         * libm/machine/spu/headers/hypotf.h: Ditto.
5949         * libm/machine/spu/headers/hypotf4.h: Ditto.
5950         * libm/machine/spu/headers/isnan.h: Ditto.
5951         * libm/machine/spu/headers/isnand2.h: Ditto.
5952         * libm/machine/spu/headers/isnanf.h: Ditto.
5953         * libm/machine/spu/headers/isnanf4.h: Ditto.
5954         * libm/machine/spu/headers/ldexpd2.h: Ditto.
5955         * libm/machine/spu/headers/ldexpf4.h: Ditto.
5956         * libm/machine/spu/headers/lgamma.h: Ditto.
5957         * libm/machine/spu/headers/lgammad2.h: Ditto.
5958         * libm/machine/spu/headers/lgammaf.h: Ditto.
5959         * libm/machine/spu/headers/lgammaf4.h: Ditto.
5960         * libm/machine/spu/headers/log.h: Ditto.
5961         * libm/machine/spu/headers/log10.h: Ditto.
5962         * libm/machine/spu/headers/log10d2.h: Ditto.
5963         * libm/machine/spu/headers/log1p.h: Ditto.
5964         * libm/machine/spu/headers/log1pd2.h: Ditto.
5965         * libm/machine/spu/headers/log1pf.h: Ditto.
5966         * libm/machine/spu/headers/log1pf4.h: Ditto.
5967         * libm/machine/spu/headers/log2.h: Ditto.
5968         * libm/machine/spu/headers/log2d2.h: Ditto.
5969         * libm/machine/spu/headers/log2f4.h: Ditto.
5970         * libm/machine/spu/headers/logbf.h: Ditto.
5971         * libm/machine/spu/headers/logbf4.h: Ditto.
5972         * libm/machine/spu/headers/logd2.h: Ditto.
5973         * libm/machine/spu/headers/logf4.h: Ditto.
5974         * libm/machine/spu/headers/nearbyintf.h: Ditto.
5975         * libm/machine/spu/headers/nearbyintf4.h: Ditto.
5976         * libm/machine/spu/headers/nextafter.h: Ditto.
5977         * libm/machine/spu/headers/nextafterd2.h: Ditto.
5978         * libm/machine/spu/headers/nextafterf.h: Ditto.
5979         * libm/machine/spu/headers/nextafterf4.h: Ditto.
5980         * libm/machine/spu/headers/pow.h: Ditto.
5981         * libm/machine/spu/headers/powd2.h: Ditto.
5982         * libm/machine/spu/headers/powf.h: Ditto.
5983         * libm/machine/spu/headers/powf4.h: Ditto.
5984         * libm/machine/spu/headers/recipd2.h: Ditto.
5985         * libm/machine/spu/headers/recipf4.h: Ditto.
5986         * libm/machine/spu/headers/rintf.h: Ditto.
5987         * libm/machine/spu/headers/rintf4.h: Ditto.
5988         * libm/machine/spu/headers/scalbnf4.h: Ditto.
5989         * libm/machine/spu/headers/signbit.h: Ditto.
5990         * libm/machine/spu/headers/signbitd2.h: Ditto.
5991         * libm/machine/spu/headers/simdmath.h: Ditto.
5992         * libm/machine/spu/headers/sin.h: Ditto.
5993         * libm/machine/spu/headers/sincos.h: Ditto.
5994         * libm/machine/spu/headers/sincosd2.h: Ditto.
5995         * libm/machine/spu/headers/sincosf.h: Ditto.
5996         * libm/machine/spu/headers/sincosf4.h: Ditto.
5997         * libm/machine/spu/headers/sind2.h: Ditto.
5998         * libm/machine/spu/headers/sinf.h: Ditto.
5999         * libm/machine/spu/headers/sinf4.h: Ditto.
6000         * libm/machine/spu/headers/sinh.h: Ditto.
6001         * libm/machine/spu/headers/sinhd2.h: Ditto.
6002         * libm/machine/spu/headers/sinhf.h: Ditto.
6003         * libm/machine/spu/headers/sinhf4.h: Ditto.
6004         * libm/machine/spu/headers/sqrtd2.h: Ditto.
6005         * libm/machine/spu/headers/sqrtf.h: Ditto.
6006         * libm/machine/spu/headers/sqrtf4.h: Ditto.
6007         * libm/machine/spu/headers/tan.h: Ditto.
6008         * libm/machine/spu/headers/tand2.h: Ditto.
6009         * libm/machine/spu/headers/tanf.h: Ditto.
6010         * libm/machine/spu/headers/tanf4.h: Ditto.
6011         * libm/machine/spu/headers/tanh.h: Ditto.
6012         * libm/machine/spu/headers/tanhd2.h: Ditto.
6013         * libm/machine/spu/headers/tanhf.h: Ditto.
6014         * libm/machine/spu/headers/tanhf4.h: Ditto.
6015         * libm/machine/spu/headers/tgamma.h: Ditto.
6016         * libm/machine/spu/headers/tgammad2.h: Ditto.
6017         * libm/machine/spu/headers/tgammaf.h: Ditto.
6018         * libm/machine/spu/headers/tgammaf4.h: Ditto.
6019         * libm/machine/spu/headers/truncd2.h: Ditto.
6020         * libm/machine/spu/headers/truncf4.h: Ditto.
6021         * libm/machine/spu/log2.c: Ditto.
6022         * libm/machine/spu/s_asinh.c: Ditto.
6023         * libm/machine/spu/s_atan.c: Ditto.
6024         * libm/machine/spu/s_cos.c: Ditto.
6025         * libm/machine/spu/s_erf.c: Ditto.
6026         * libm/machine/spu/s_expm1.c: Ditto.
6027         * libm/machine/spu/s_isnan.c: Ditto.
6028         * libm/machine/spu/s_log1p.c: Ditto.
6029         * libm/machine/spu/s_nextafter.c: Ditto.
6030         * libm/machine/spu/s_sin.c: Ditto.
6031         * libm/machine/spu/s_tan.c: Ditto.
6032         * libm/machine/spu/s_tanh.c: Ditto.
6033         * libm/machine/spu/sf_asinh.c: Ditto.
6034         * libm/machine/spu/sf_cos.c: Ditto.
6035         * libm/machine/spu/sf_erf.c: Ditto.
6036         * libm/machine/spu/sf_expm1.c: Ditto.
6037         * libm/machine/spu/sf_log1p.c: Ditto.
6038         * libm/machine/spu/sf_logb.c: Ditto.
6039         * libm/machine/spu/sf_nearbyint.c: Ditto.
6040         * libm/machine/spu/sf_nextafter.c: Ditto.
6041         * libm/machine/spu/sf_rint.c: Ditto.
6042         * libm/machine/spu/sf_sin.c: Ditto.
6043         * libm/machine/spu/sf_tan.c: Ditto.
6044         * libm/machine/spu/sf_tanh.c: Ditto.
6045         * libm/machine/spu/w_acos.c: Ditto.
6046         * libm/machine/spu/w_acosh.c: Ditto.
6047         * libm/machine/spu/w_asin.c: Ditto.
6048         * libm/machine/spu/w_atan2.c: Ditto.
6049         * libm/machine/spu/w_atanh.c: Ditto.
6050         * libm/machine/spu/w_cosh.c: Ditto.
6051         * libm/machine/spu/w_exp.c: Ditto.
6052         * libm/machine/spu/w_exp2.c: Ditto.
6053         * libm/machine/spu/w_hypot.c: Ditto.
6054         * libm/machine/spu/w_lgamma.c: Ditto.
6055         * libm/machine/spu/w_log.c: Ditto.
6056         * libm/machine/spu/w_log10.c: Ditto.
6057         * libm/machine/spu/w_pow.c: Ditto.
6058         * libm/machine/spu/w_sincos.c: Ditto.
6059         * libm/machine/spu/w_sinh.c: Ditto.
6060         * libm/machine/spu/w_tgamma.c: Ditto.
6061         * libm/machine/spu/wf_acos.c: Ditto.
6062         * libm/machine/spu/wf_acosh.c: Ditto.
6063         * libm/machine/spu/wf_asin.c: Ditto.
6064         * libm/machine/spu/wf_atan2.c: Ditto.
6065         * libm/machine/spu/wf_atanh.c: Ditto.
6066         * libm/machine/spu/wf_cosh.c: Ditto.
6067         * libm/machine/spu/wf_hypot.c: Ditto.
6068         * libm/machine/spu/wf_lgamma.c: Ditto.
6069         * libm/machine/spu/wf_pow.c: Ditto.
6070         * libm/machine/spu/wf_sincos.c: Ditto.
6071         * libm/machine/spu/wf_sinh.c: Ditto.
6072         * libm/machine/spu/wf_sqrt.c: Ditto.
6073         * libm/machine/spu/wf_tgamma.c: Ditto.
6074
6075 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
6076
6077         * configure.host: Define _POSIX_MODE to match the existing vector
6078         math code, as we don't support the matherr callout.
6079         * libm/machine/spu/Makefile.am: New file.
6080         * libm/machine/spu/Makefile.in: Auto-generated.
6081         * libm/machine/spu/headers/atanf.h: New file.
6082         * libm/machine/spu/headers/cbrt.h: Ditto.
6083         * libm/machine/spu/headers/cbrtf.h: Ditto.
6084         * libm/machine/spu/headers/ceil.h: Ditto.
6085         * libm/machine/spu/headers/ceilf.h: Ditto.
6086         * libm/machine/spu/headers/copysign.h: Ditto.
6087         * libm/machine/spu/headers/copysignf.h: Ditto.
6088         * libm/machine/spu/headers/exp2f.h: Ditto.
6089         * libm/machine/spu/headers/expf.h: Ditto.
6090         * libm/machine/spu/headers/fabs.h: Ditto.
6091         * libm/machine/spu/headers/fabsf.h: Ditto.
6092         * libm/machine/spu/headers/fdim.h: Ditto.
6093         * libm/machine/spu/headers/fdimf.h: Ditto.
6094         * libm/machine/spu/headers/floor.h: Ditto.
6095         * libm/machine/spu/headers/floorf.h: Ditto.
6096         * libm/machine/spu/headers/fma.h: Ditto.
6097         * libm/machine/spu/headers/fmaf.h: Ditto.
6098         * libm/machine/spu/headers/fmax.h: Ditto.
6099         * libm/machine/spu/headers/fmaxf.h: Ditto.
6100         * libm/machine/spu/headers/fmin.h: Ditto.
6101         * libm/machine/spu/headers/fminf.h: Ditto.
6102         * libm/machine/spu/headers/fmod.h: Ditto.
6103         * libm/machine/spu/headers/fmodf.h: Ditto.
6104         * libm/machine/spu/headers/frexp.h: Ditto.
6105         * libm/machine/spu/headers/frexpf.h: Ditto.
6106         * libm/machine/spu/headers/ilogb.h: Ditto.
6107         * libm/machine/spu/headers/ilogbf.h: Ditto.
6108         * libm/machine/spu/headers/ldexp.h: Ditto.
6109         * libm/machine/spu/headers/ldexpf.h: Ditto.
6110         * libm/machine/spu/headers/llrint.h: Ditto.
6111         * libm/machine/spu/headers/llrintf.h: Ditto.
6112         * libm/machine/spu/headers/llround.h: Ditto.
6113         * libm/machine/spu/headers/llroundf.h: Ditto.
6114         * libm/machine/spu/headers/log10f.h: Ditto.
6115         * libm/machine/spu/headers/log2f.h: Ditto.
6116         * libm/machine/spu/headers/logf.h: Ditto.
6117         * libm/machine/spu/headers/lrint.h: Ditto.
6118         * libm/machine/spu/headers/lrintf.h: Ditto.
6119         * libm/machine/spu/headers/lround.h: Ditto.
6120         * libm/machine/spu/headers/lroundf.h: Ditto.
6121         * libm/machine/spu/headers/nearbyint.h: Ditto.
6122         * libm/machine/spu/headers/remainder.h: Ditto.
6123         * libm/machine/spu/headers/remainderf.h: Ditto.
6124         * libm/machine/spu/headers/remquo.h: Ditto.
6125         * libm/machine/spu/headers/remquof.h: Ditto.
6126         * libm/machine/spu/headers/rint.h: Ditto.
6127         * libm/machine/spu/headers/round.h: Ditto.
6128         * libm/machine/spu/headers/roundf.h: Ditto.
6129         * libm/machine/spu/headers/scalbn.h: Ditto.
6130         * libm/machine/spu/headers/scalbnf.h: Ditto.
6131         * libm/machine/spu/headers/sqrt.h: Ditto.
6132         * libm/machine/spu/headers/trunc.h: Ditto.
6133         * libm/machine/spu/headers/truncf.h: Ditto.
6134         * libm/machine/spu/headers/vec_literal.h: Ditto.
6135         * libm/machine/spu/llrint.c: Ditto.
6136         * libm/machine/spu/llrintf.c: Ditto.
6137         * libm/machine/spu/llround.c: Ditto.
6138         * libm/machine/spu/llroundf.c: Ditto.
6139         * libm/machine/spu/log2f.c: Ditto.
6140         * libm/machine/spu/s_cbrt.c: Ditto.
6141         * libm/machine/spu/s_ceil.c: Ditto.
6142         * libm/machine/spu/s_copysign.c: Ditto.
6143         * libm/machine/spu/s_fabs.c: Ditto.
6144         * libm/machine/spu/s_fdim.c: Ditto.
6145         * libm/machine/spu/s_floor.c: Ditto.
6146         * libm/machine/spu/s_fma.c: Ditto.
6147         * libm/machine/spu/s_fmax.c: Ditto.
6148         * libm/machine/spu/s_fmin.c: Ditto.
6149         * libm/machine/spu/s_frexp.c: Ditto.
6150         * libm/machine/spu/s_ilogb.c: Ditto.
6151         * libm/machine/spu/s_ldexp.c: Ditto.
6152         * libm/machine/spu/s_lrint.c: Ditto.
6153         * libm/machine/spu/s_lround.c: Ditto.
6154         * libm/machine/spu/s_nearbyint.c: Ditto.
6155         * libm/machine/spu/s_remquo.c: Ditto.
6156         * libm/machine/spu/s_rint.c: Ditto.
6157         * libm/machine/spu/s_round.c: Ditto.
6158         * libm/machine/spu/s_scalbn.c: Ditto.
6159         * libm/machine/spu/s_trunc.c: Ditto.
6160         * libm/machine/spu/sf_atan.c: Ditto.
6161         * libm/machine/spu/sf_cbrt.c: Ditto.
6162         * libm/machine/spu/sf_ceil.c: Ditto.
6163         * libm/machine/spu/sf_copysign.c: Ditto.
6164         * libm/machine/spu/sf_fabs.c: Ditto.
6165         * libm/machine/spu/sf_fdim.c: Ditto.
6166         * libm/machine/spu/sf_floor.c: Ditto.
6167         * libm/machine/spu/sf_fma.c: Ditto.
6168         * libm/machine/spu/sf_fmax.c: Ditto.
6169         * libm/machine/spu/sf_fmin.c: Ditto.
6170         * libm/machine/spu/sf_frexp.c: Ditto.
6171         * libm/machine/spu/sf_ilogb.c: Ditto.
6172         * libm/machine/spu/sf_ldexp.c: Ditto.
6173         * libm/machine/spu/sf_lrint.c: Ditto.
6174         * libm/machine/spu/sf_lround.c: Ditto.
6175         * libm/machine/spu/sf_remquo.c: Ditto.
6176         * libm/machine/spu/sf_round.c: Ditto.
6177         * libm/machine/spu/sf_scalbn.c: Ditto.
6178         * libm/machine/spu/sf_trunc.c: Ditto.
6179         * libm/machine/spu/w_fmod.c: Ditto.
6180         * libm/machine/spu/w_remainder.c: Ditto.
6181         * libm/machine/spu/w_sqrt.c: Ditto.
6182         * libm/machine/spu/wf_exp.c: Ditto.
6183         * libm/machine/spu/wf_exp2.c: Ditto.
6184         * libm/machine/spu/wf_fmod.c: Ditto.
6185         * libm/machine/spu/wf_log.c: Ditto.
6186         * libm/machine/spu/wf_log10.c: Ditto.
6187         * libm/machine/spu/wf_remainder.c: Ditto.
6188
6189 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
6190
6191         * libc/machine/spu/sys/uio.h: New file for readv and writev use.
6192
6193 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
6194
6195         * libc/include/sched.h: New file, just include sys/sched.h.
6196         * libc/machine/spu/sys/sched.h: New file, has just sched_yield
6197         prototype.
6198         * libc/machine/spu/sys/utime.h: New file, has utime prototype and
6199         struct utimbuf definition.
6200
6201 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
6202
6203         * libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
6204         specific struct and typedef.
6205
6206 2007-09-18  Patrick Mansfield  <patmans@us.ibm.com>
6207
6208         * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to
6209         typedef dev_t, gid_t, and uid_t.
6210         * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t
6211         types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead.
6212         Change to lower case for all __foo_t_defined names.
6213         * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t,
6214         __uid_t, and __gid_t making them all four bytes. Change to lower case
6215         for all __foo_t_defined names.
6216
6217 2007-09-18  Jeff Johnston  <jjohnstn@redhat.com>
6218
6219         * libc/reent/renamer.c: New file.
6220         * libc/reent/Makefile.am: Add new file.
6221         * libc/reent/Makefile.in: Regenerated.
6222         * libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c
6223         and add check for rename syscall.
6224
6225 2007-09-17  Eric Blake  <ebb9@byu.net>
6226
6227         Obey POSIX on printf("%.s", (char*)NULL).
6228         * libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account
6229         for %s on NULL.  Skip NULL check when optimizing for size.
6230
6231 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
6232
6233         * libc/include/sys/_types.h: Protect all types with flag
6234         checks to allow definition in machine/_types.h.
6235
6236 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
6237
6238         * libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t
6239         definitions in light of the previous change.
6240
6241 2007-09-07  Patrick Mansfield  <patmans@us.ibm.com>
6242
6243         * libc/include/machine/_default_types.h: New file, contains what
6244         was previously in libc/include/machine/_types.h.
6245         * libc/include/machine/_types.h: Now only includes
6246         machine/_default_types.h.
6247         * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t.
6248         * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here,
6249         with conditional declarations.
6250         * libc/machine/spu/machine/_types.h: New file, add SPU specific
6251         typedefs for _fpos_t and _fpos64_t.
6252
6253 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
6254
6255         * libc/include/math.h (_M_LOG2E): Replace with..
6256         (_M_LOG2_E): New macro.
6257         (log2, log2f, M_LOG2_E): Use _M_LOG2_E.
6258
6259 2007-09-06  Brian Dessent  <brian@dessent.net>
6260
6261         * libc/reent/getreent.c: Allow for case where __getreent is
6262         defined as a macro.
6263
6264 2007-09-06  Jeff Johnston  <jjohnstn@redhat.com>
6265
6266         * libc/include/math.h (_M_LOG2E): New log2 of e macro.
6267         (log2): Use _M_LOG2E instead of M_LOG2E.
6268         (log2f): Ditto.
6269         (M_LOG2E): Define to be _M_LOG2E.
6270
6271 2007-09-04  Kazunori Asayama <asayama@sm.sony.co.jp>
6272
6273         * libm/math/wf_tgamma.c: Add missing include.
6274
6275 2007-08-31  Antony King  <antony.king@st.com>
6276
6277         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith
6278         bits and redefine associated dword0 macro (rvalue issue).
6279         * libc/stdio/vfieeefp.h: Ditto.
6280         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
6281         to prevent setting dword1 which is an rvalue only.
6282
6283 2007-08-28  Hans Kester  <hans.kester@ellips.nl>
6284
6285         * configure.host: Added support for x86_64.
6286         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64.
6287         * libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64.
6288         * libc/machine/x86_64/aclocal.m4: Generated.
6289         * libc/machine/x86_64/configure.in: New.
6290         * libc/machine/x86_64/configure: Generated.
6291         * libc/machine/x86_64/Makefile.am: New.
6292         * libc/machine/x86_64/Makefile.in: Generated.
6293         * libc/machine/x86_64/setjmp.S: New.
6294         * libc/machine/x86_64/memcpy.S: New.
6295         * libc/machine/x86_64/memset.S: New.
6296         * libc/machine/configure.in: Added support for x86_64.
6297         * libc/machine/configure: Regenerated.
6298
6299 2007-08-24  Jeff Johnston  <jjohnstn@redhat.com>
6300
6301         * libm/common/sf_lround.c (lroundf): Cast sizeof calculation
6302         to int before comparing it to a signed int value.
6303
6304 2007-08-24  Hans-Peter Nilsson  <hp@axis.com>
6305
6306         * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
6307         (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
6308         Define.
6309
6310 2007-08-23  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
6311
6312         Reduce the memory consumption of variable argument functions
6313         for SPU (cell):
6314         * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources
6315           to assembler sources.
6316         * libc/machine/spu/Makefile.in: Regenerated.
6317         * libc/machine/spu/stdio.c: Add __check_init function wrapping
6318           CHECK_INIT macro to use from assembler routines.
6319         * libc/machine/spu/c99ppe.h: Add definitions for assembler code.
6320         * libc/machine/spu/fiprintf.S: New file.
6321         * libc/machine/spu/fiscanf.S: Ditto.
6322         * libc/machine/spu/fprintf.S: Ditto.
6323         * libc/machine/spu/fscanf.S: Ditto.
6324         * libc/machine/spu/iprintf.S: Ditto.
6325         * libc/machine/spu/iscanf.S: Ditto.
6326         * libc/machine/spu/printf.S: Ditto.
6327         * libc/machine/spu/scanf.S: Ditto.
6328         * libc/machine/spu/siprintf.S: Ditto.
6329         * libc/machine/spu/siscanf.S: Ditto.
6330         * libc/machine/spu/sniprintf.S: Ditto.
6331         * libc/machine/spu/snprintf.S: Ditto.
6332         * libc/machine/spu/sprintf.S: Ditto.
6333         * libc/machine/spu/sscanf.S: Ditto.
6334         * libc/machine/spu/stack_reg_va.S: Ditto.
6335         * libc/machine/spu/syscall.def: Ditto. (for maintenance)
6336         * libc/machine/spu/mk_syscalls: Ditto. (for maintenance)
6337         * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S)
6338         * libc/machine/spu/fiscanf.c: Ditto.
6339         * libc/machine/spu/fprintf.c: Ditto.
6340         * libc/machine/spu/fscanf.c: Ditto.
6341         * libc/machine/spu/iprintf.c: Ditto.
6342         * libc/machine/spu/iscanf.c: Ditto.
6343         * libc/machine/spu/printf.c: Ditto.
6344         * libc/machine/spu/scanf.c: Ditto.
6345         * libc/machine/spu/siprintf.c: Ditto.
6346         * libc/machine/spu/siscanf.c: Ditto.
6347         * libc/machine/spu/sniprintf.c: Ditto.
6348         * libc/machine/spu/snprintf.c: Ditto.
6349         * libc/machine/spu/sprintf.c: Ditto.
6350         * libc/machine/spu/sscanf.c: Ditto.
6351
6352 2007-08-03  Ralf Corsepius  <ralf.corsepius@rtems.org>
6353
6354         * libc/include/tar.h: New.
6355
6356 2007-08-03  Jeff Johnston  <jjohnstn@redhat.com>
6357
6358         * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to
6359         lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string.
6360         * libc/sys/linux/intl/Makefile.in: Regenerated.
6361         * libc/sys/linux/intl/stpcpy.c: Renamed to...
6362         * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
6363
6364 2007-08-02  Eric Blake  <ebb9@byu.net>
6365
6366         Implement fmemopen and open_memstream.
6367         * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file.
6368         * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream):
6369         New file.
6370         * libc/stdio/fopencookie.c (fcwriter): Minor optimization.
6371         * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x
6372         functions together.
6373         (fmemopen, open_memstream): Declare new functions.
6374         * libc/stdio/stdio.tex: Document them.
6375         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add
6376         fmemopen and open_memstream.
6377         * libc/stdio/Makefile.in: Regenerate.
6378
6379 2007-07-31  Eric Blake  <ebb9@byu.net>
6380
6381         More POSIX stream corner cases.
6382         * libc/stdio/findfp.c (__sinit): Open stderr read/write.
6383         * libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
6384         requested.
6385         * libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
6386
6387 2007-07-18  Eric Blake  <ebb9@byu.net>
6388
6389         Fix 'make info'.
6390         * libc/stdio/stdio.tex: Add missing include.
6391         * libc/stdio/vfprintf.c: Use expected node name.
6392         * libc/stdio/vfscanf.c: Likewise.
6393         * libc/stdio/sscanf.c: Likewise.
6394         * libc/stdio/sprintf.c: Likewise.
6395         * libc/stdio/siscanf.c: Likewise.
6396         * libc/stdio/siprintf.c: Likewise.
6397         * libc/stdio/fopencookie.c: Quote raw {}.
6398         Reported by DJ Delorie.
6399
6400 2007-07-13  Eric Blake  <ebb9@byu.net>
6401
6402         Fix fflush issues.
6403         * libc/stdio/fflush.c (_fflush_r): New function.
6404         (fflush): Fix reentrancy and large offset behavior.
6405         * libc/include/stdio.h (_fflush_r): Add prototype.
6406         * libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
6407         * libc/stdio/freopen.c (_freopen_r): Likewise.
6408         * libc/stdio/fseek.c (_fseek_r): Likewise.
6409         * libc/stdio/ftell.c (_ftell_r): Likewise.
6410         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
6411         * libc/stdio/refill.c (__srefill_r): Likewise.
6412         * libc/stdio/setvbuf.c (setvbuf): Likewise.
6413         * libc/stdio/ungetc.c (_ungetc_r): Likewise.
6414         * libc/stdio/vfprintf.c (__sbprintf): Likewise.
6415         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
6416         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
6417         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.  Defer to
6418         32-bit version if not large file.
6419         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
6420         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
6421
6422         Documentation updates.
6423         * libc/stdio/ungetc.c: Document ungetc.
6424         * libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
6425         of files with documentation.
6426         * libc/stdio/Makefile.in: Regenerate.
6427         * libc/stdio/stdio.tex: Sort and update stdio documentation index.
6428
6429 2007-07-11  Jeff Johnston  <jjohnstn@redhat.com>
6430
6431         * libc/include/math.h: Fix so C99 functions/macros are accessible
6432         when -std=c99 is used when compiling and not when using C89.
6433
6434 2007-07-06  Corinna Vinschen  <corinna@vinschen.de>
6435
6436         * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
6437         wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
6438         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
6439         (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
6440         wcstoull_r.c.
6441         (CHEWOUT_FILES): Add .def files accordingly.
6442         * libc/stdlib/Makefile.in: Regenerate.
6443         * libc/stdlib/stdlib.tex: Add documentation links for above functions.
6444         * libc/stdlib/strtoll.c: Fix portability note.
6445         * libc/stdlib/strtoull.c: Ditto.
6446         * libc/stdlib/wcstol.c: New file.
6447         * libc/stdlib/wcstoll.c: New file.
6448         * libc/stdlib/wcstoll_r.c: New file.
6449         * libc/stdlib/wcstoul.c: New file.
6450         * libc/stdlib/wcstoull.c: New file.
6451         * libc/stdlib/wcstoull_r.c: New file.
6452
6453 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
6454
6455         * libc/include/sys/time.h (gettimeofday): Change to proper
6456         prototype where second parameter is void *.
6457         * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
6458         accordingly.
6459         * libc/include/reent.h: Fix prototype for _gettimeofday_r.
6460         * libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
6461         * libc/sys/rdos/gettod.c: Ditto.
6462         * libc/sys/sh/syscalls.c: Ditto.
6463         * libc/time/time.c (time): Change call to _gettimeofday_r
6464         to pass NULL as 2nd argument.
6465
6466 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
6467
6468         * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
6469         * libc/sys/linux/intl/l10nflist.c: Ditto.
6470
6471 2007-07-04  Corinna Vinschen  <corinna@vinschen.de>
6472
6473         * libc/include/wchar.h: Add prototype for wcsxfrm.
6474         * libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
6475         (CHEWOUT_FILES): Add wcsxfrm.def.
6476         * libc/string/Makefile.in: Regenerate.
6477         * libc/string/wcsxfrm.c: New file.
6478         * libc/string/wcstrings.tex: Add wcsxfrm.
6479
6480 2007-06-28  Corinna Vinschen  <corinna@vinschen.de>
6481
6482         * libc/include/string.h: Add prototypes for stpcpy and stpncpy.
6483         * libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
6484         stpncpy.c.
6485         (CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
6486         * libc/string/Makefile.in: Regenerate.
6487         * libc/string/stpcpy.c: New file.
6488         * libc/string/stpncpy.c: New file.
6489         * libc/string/strings.tex: Add stpcpy and stpncpy.
6490
6491 2007-06-27  Eric Blake  <ebb9@byu.net>
6492
6493         Support __func__ in assert, as required by C99.
6494         * libc/stdlib/assert.c (__assert_func): New function.
6495         (__assert): Use __assert_func.
6496         * libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
6497         possible.
6498
6499 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
6500
6501         * libc/machine/spu/perror.c: Pass errno as the second argument to
6502         the assist call.
6503
6504 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
6505
6506         * libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related
6507         defines; expose ftruncate, truncate and sync prototypes.
6508
6509 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
6510
6511         * libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
6512         * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
6513         visible.
6514
6515 2007-06-15  Patrick Mansfield  <patmans@us.ibm.com>
6516
6517         * libc/machine/spu/Makefile.am: Remove mktemp.c, it was left in
6518         from a dropped patch.
6519         * libc/machine/spu/Makefile.in: Regenerate.
6520
6521 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
6522
6523         * libc/machine/spu/creat.c: New file copied from libc/posix/creat.c,
6524         it just calls open with appropriate arguments.
6525         * libc/machine/spu/Makefile.am: Add creat.c.
6526         * libc/machine/spu/Makefile.in: Regenerate.
6527
6528 2007-06-13  Jeff Johnston  <jjohnstn@redhat.com>
6529
6530         * libc/machine/spu/Makefile.am: Re-add back setjmp.S which
6531         I accidentally dropped.
6532         * libc/machine/spu/Makefile.in: Regenerated.
6533
6534 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
6535
6536         * libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
6537         * libc/include/sys/unistd.h: Change usleep prototype to Posix
6538         form and move outside of OS flag checks.
6539         * libc/machine/spu/Makefile.am: Add sleep and usleep.
6540         * libc/machine/spu/Makefile.in: Regenerate.
6541         * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
6542         * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
6543
6544 2007-06-11  Corinna Vinschen  <corinna@vinschen.de>
6545
6546         * libc/include/sys/unistd.h: Declare confstr for Cygwin.
6547         Define confstr constants for Cygwin.  Add comment.
6548
6549 2007-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
6550
6551         * libc/sys/mmixware/access.c (access): Do not try to use a magic
6552         file-handle and a direct syscall, just use _open.
6553         * libc/sys/mmixware/sys/syscall.h (TMPFNO): Remove this magic
6554         file-handle.
6555
6556         * libc/sys/mmixware/_exit.c (_exit): Update comment about
6557         passing on the exit value.
6558
6559 2007-06-08  Jeff Johnston  <jjohnstn@redhat.com>
6560
6561         * libc/string/strcasestr.c: New file.
6562         * libc/include/string.h: Add strcasestr.
6563         * libc/string/strings.tex: Add strcasestr.
6564         * libc/string/Makefile.am: Ditto.
6565         * libc/string/Makefile.in: Regenerated.
6566
6567 2007-06-06  Christian Groessler  <chris@groessler.org>
6568
6569         * libc/stdlib/ldtoa (_ldcheck): Make sure the setting of
6570         rnd is done after the last local variable declaration.
6571
6572 2007-06-06  Jeff Johnston  <jjohnstn@redhat.com>
6573
6574         * libc/stdlib/mprec.h[Just_16]: Make sure that Pack_16 is defined.
6575
6576 2007-06-05  Christian Groessler  <chris@groessler.org>
6577
6578         * libc/argz/argz_insert.c (argz_insert): Move delta variable
6579         declaration to top of function in keeping with C89 standard.
6580
6581 2007-06-04  Eric Blake  <ebb9@byu.net>
6582
6583         Implement funopen, fopencookie.
6584         * libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
6585         Switch to reentrant callbacks.
6586         * libc/include/stdio.h (funopen): Fix declaration.
6587         (fopencookie): Declare.
6588         * libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
6589         (__sseek64, __swrite64): Fix prototypes.
6590         [__SCLE]: Pull in setmode declaration.
6591         * libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
6592         reentrancy.
6593         * libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
6594         (__sseek64, __swrite64): Fix reentrancy.
6595         * libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
6596         reentrancy.
6597         * libc/stdio/ftell.c (_ftell_r): Likewise.
6598         * libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
6599         * libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
6600         * libc/stdio/freopen.c (_freopen_r): Likewise.
6601         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
6602         * libc/stdio/refill.c (__srefill_r): Likewise.
6603         * libc/stdio/siscanf.c (eofread): Likewise.
6604         * libc/stdio/sscanf.c (eofread): Likewise.
6605         * libc/stdio/vsiscanf.c (eofread1): Likewise.
6606         * libc/stdio/vsscanf.c (eofread1): Likewise.
6607         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
6608         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
6609         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
6610         * libc/stdio/fflush.c (fflush): Improve reentrancy, although more
6611         could be fixed.
6612         * libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
6613         * libc/stdio/funopen.c (_funopen_r, funopen): New file.
6614         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
6615         new files.
6616         * libc/stdio/Makefile.in: Regenerate.
6617
6618 2007-05-29  Eric Blake  <ebb9@byu.net>
6619
6620         Avoid more compiler warnings.
6621         * libc/stdlib/btowc.c: Add missing header.
6622         * libc/stdlib/getopt.c (getopt_internal): Initialize variable.
6623         * libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration.
6624         * libc/stdlib/wctob.c: Add missing header.
6625         * libc/string/strcpy.c (strcpy): Avoid warnings.
6626         * libc/string/strrchr.c (strrchr): Likewise.
6627
6628 2007-05-29  Corinna Vinschen  <corinna@vinschen.de>
6629
6630         * libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string
6631         argument.
6632         * libc/argz/argz_append.c (argz_append): Handle empty buf argument.
6633         * libc/argz/argz_create_sep.c (argz_create_sep): Return (NULL, 0)
6634         on empty input strings.
6635         * libc/argz/argz_extract.c (argz_extract): Check argz_len before
6636         looping through argz.
6637         * libc/argz/argz_stringify.c (argz_stringify): Ditto.
6638
6639 2007-05-27  Brian Dessent  <brian@dessent.net>
6640
6641         * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
6642         handling %p.
6643
6644 2007-05-25  Eric Blake  <ebb9@byu.net>
6645
6646         * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
6647
6648 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
6649             Charles Wilson  <libtool@cwilson.fastmail.fm>
6650
6651         * libtool.m4: removed
6652         * configure.in: invoke _LD_DECL_SED before conditionally initializing
6653         libtool.  Move AC_PROG_AWK outside conditional.
6654         * libc/sys/linux/configure.in: Ditto.
6655         * libc/sys/linux/linuxthreads/configure.in: Ditto.
6656         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
6657         * libc/sys/linux/machine/i386/configure.in: Ditto.
6658
6659         * iconvdata/configure.in: invoke _LD_DECL_SED before conditionally
6660         initializing libtool.
6661         * libc/configure.in: Ditto.
6662         * libc/machine/configure.in: Ditto.
6663         * libc/machine/i386/configure.in: Ditto.
6664         * libc/sys/configure.in: Ditto.
6665         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
6666         * libc/sys/linux/machine/configure.in: Ditto.
6667         * libm/configure.in: Ditto.
6668         * libm/machine/configure.in: Ditto.
6669
6670         * Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
6671         * doc/Makefile.am: Ditto.
6672         * iconvdata/Makefile.am: Ditto.
6673         * libc/Makefile.am: Ditto.
6674         * libc/machine/Makefile.am: Ditto.
6675         * libc/machine/a29k/Makefile.am: Ditto.
6676         * libc/machine/arm/Makefile.am: Ditto.
6677         * libc/machine/bfin/Makefile.am: Ditto.
6678         * libc/machine/cris/Makefile.am: Ditto.
6679         * libc/machine/crx/Makefile.am: Ditto.
6680         * libc/machine/d10v/Makefile.am: Ditto.
6681         * libc/machine/d30v/Makefile.am: Ditto.
6682         * libc/machine/fr30/Makefile.am: Ditto.
6683         * libc/machine/frv/Makefile.am: Ditto.
6684         * libc/machine/h8300/Makefile.am: Ditto.
6685         * libc/machine/h8500/Makefile.am: Ditto.
6686         * libc/machine/hppa/Makefile.am: Ditto.
6687         * libc/machine/i386/Makefile.am: Ditto.
6688         * libc/machine/i960/Makefile.am: Ditto.
6689         * libc/machine/iq2000/Makefile.am: Ditto.
6690         * libc/machine/m32c/Makefile.am: Ditto.
6691         * libc/machine/m32r/Makefile.am: Ditto.
6692         * libc/machine/m68hc11/Makefile.am: Ditto.
6693         * libc/machine/m68k/Makefile.am: Ditto.
6694         * libc/machine/m88k/Makefile.am: Ditto.
6695         * libc/machine/mips/Makefile.am: Ditto.
6696         * libc/machine/mn10200/Makefile.am: Ditto.
6697         * libc/machine/mn10300/Makefile.am: Ditto.
6698         * libc/machine/mt/Makefile.am: Ditto.
6699         * libc/machine/necv70/Makefile.am: Ditto.
6700         * libc/machine/powerpc/Makefile.am: Ditto.
6701         * libc/machine/sh/Makefile.am: Ditto.
6702         * libc/machine/sparc/Makefile.am: Ditto.
6703         * libc/machine/spu/Makefile.am: Ditto.
6704         * libc/machine/tic4x/Makefile.am: Ditto.
6705         * libc/machine/tic80/Makefile.am: Ditto.
6706         * libc/machine/v850/Makefile.am: Ditto.
6707         * libc/machine/w65/Makefile.am: Ditto.
6708         * libc/machine/xscale/Makefile.am: Ditto.
6709         * libc/machine/xstormy16/Makefile.am: Ditto.
6710         * libc/machine/z8k/Makefile.am: Ditto.
6711         * libc/sys/Makefile.am: Ditto.
6712         * libc/sys/a29khif/Makefile.am: Ditto.
6713         * libc/sys/arc/Makefile.am: Ditto.
6714         * libc/sys/arm/Makefile.am: Ditto.
6715         * libc/sys/d10v/Makefile.am: Ditto.
6716         * libc/sys/decstation/Makefile.am: Ditto.
6717         * libc/sys/h8300hms/Makefile.am: Ditto.
6718         * libc/sys/h8500hms/Makefile.am: Ditto.
6719         * libc/sys/linux/Makefile.am: Ditto.
6720         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
6721         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
6722         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
6723         * libc/sys/linux/machine/Makefile.am: Ditto.
6724         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
6725         * libc/sys/m88kbug/Makefile.am: Ditto.
6726         * libc/sys/mmixware/Makefile.am: Ditto.
6727         * libc/sys/netware/Makefile.am: Ditto.
6728         * libc/sys/rdos/Makefile.am: Ditto.
6729         * libc/sys/rtems/Makefile.am: Ditto.
6730         * libc/sys/sh/Makefile.am: Ditto.
6731         * libc/sys/sparc64/Makefile.am: Ditto.
6732         * libc/sys/sun4/Makefile.am: Ditto.
6733         * libc/sys/sysmec/Makefile.am: Ditto.
6734         * libc/sys/sysnec810/Makefile.am: Ditto.
6735         * libc/sys/sysnecv850/Makefile.am: Ditto.
6736         * libc/sys/sysvi386/Makefile.am: Ditto.
6737         * libc/sys/sysvnecv70/Makefile.am: Ditto.
6738         * libc/sys/tic80/Makefile.am: Ditto.
6739         * libc/sys/w65/Makefile.am: Ditto.
6740         * libc/sys/z8ksim/Makefile.am: Ditto.
6741         * libm/Makefile.am: Ditto.
6742         * libm/machine/Makefile.am: Ditto.
6743         * libm/machine/i386/Makefile.am: Ditto.
6744         * libm/machine/spu/Makefile.am: Ditto.
6745
6746         * aclocal.m4: Regenerate.
6747         * iconvdata/aclocal.m4: Regenerate.
6748         * libc/aclocal.m4: Regenerate.
6749         * libc/machine/aclocal.m4: Regenerate.
6750         * libc/machine/i386/aclocal.m4: Regenerate.
6751         * libc/sys/aclocal.m4: Regenerate.
6752         * libc/sys/linux/aclocal.m4: Regenerate.
6753         * libc/sys/linux/linuxthreads/aclocal.m4: Regenerate.
6754         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Regenerate.
6755         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Regenerate.
6756         * libc/sys/linux/machine/aclocal.m4: Regenerate.
6757         * libc/sys/linux/machine/i386/aclocal.m4: Regenerate.
6758         * libm/aclocal.m4: Regenerate.
6759         * libm/machine/aclocal.m4: Regenerate.
6760         * libm/machine/i386/aclocal.m4: Regenerate.
6761
6762         * Makefile.in: Regenerate.
6763         * doc/Makefile.in: Regenerate.
6764         * iconvdata/Makefile.in: Regenerate.
6765         * libc/Makefile.in: Regenerate.
6766         * libc/argz/Makefile.in: Regenerate.
6767         * libc/ctype/Makefile.in: Regenerate.
6768         * libc/errno/Makefile.in: Regenerate.
6769         * libc/iconv/Makefile.in: Regenerate.
6770         * libc/iconv/ccs/Makefile.in: Regenerate.
6771         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
6772         * libc/iconv/ces/Makefile.in: Regenerate.
6773         * libc/iconv/lib/Makefile.in: Regenerate.
6774         * libc/locale/Makefile.in: Regenerate.
6775         * libc/machine/Makefile.in: Regenerate.
6776         * libc/machine/a29k/Makefile.in: Regenerate.
6777         * libc/machine/arm/Makefile.in: Regenerate.
6778         * libc/machine/bfin/Makefile.in: Regenerate.
6779         * libc/machine/cris/Makefile.in: Regenerate.
6780         * libc/machine/crx/Makefile.in: Regenerate.
6781         * libc/machine/d10v/Makefile.in: Regenerate.
6782         * libc/machine/d30v/Makefile.in: Regenerate.
6783         * libc/machine/fr30/Makefile.in: Regenerate.
6784         * libc/machine/frv/Makefile.in: Regenerate.
6785         * libc/machine/h8300/Makefile.in: Regenerate.
6786         * libc/machine/h8500/Makefile.in: Regenerate.
6787         * libc/machine/hppa/Makefile.in: Regenerate.
6788         * libc/machine/i386/Makefile.in: Regenerate.
6789         * libc/machine/i960/Makefile.in: Regenerate.
6790         * libc/machine/iq2000/Makefile.in: Regenerate.
6791         * libc/machine/m32c/Makefile.in: Regenerate.
6792         * libc/machine/m32r/Makefile.in: Regenerate.
6793         * libc/machine/m68hc11/Makefile.in: Regenerate.
6794         * libc/machine/m68k/Makefile.in: Regenerate.
6795         * libc/machine/m88k/Makefile.in: Regenerate.
6796         * libc/machine/mips/Makefile.in: Regenerate.
6797         * libc/machine/mn10200/Makefile.in: Regenerate.
6798         * libc/machine/mn10300/Makefile.in: Regenerate.
6799         * libc/machine/mt/Makefile.in: Regenerate.
6800         * libc/machine/necv70/Makefile.in: Regenerate.
6801         * libc/machine/powerpc/Makefile.in: Regenerate.
6802         * libc/machine/sh/Makefile.in: Regenerate.
6803         * libc/machine/sparc/Makefile.in: Regenerate.
6804         * libc/machine/spu/Makefile.in: Regenerate.
6805         * libc/machine/tic4x/Makefile.in: Regenerate.
6806         * libc/machine/tic80/Makefile.in: Regenerate.
6807         * libc/machine/v850/Makefile.in: Regenerate.
6808         * libc/machine/w65/Makefile.in: Regenerate.
6809         * libc/machine/xscale/Makefile.in: Regenerate.
6810         * libc/machine/xstormy16/Makefile.in: Regenerate.
6811         * libc/machine/z8k/Makefile.in: Regenerate.
6812         * libc/misc/Makefile.in: Regenerate.
6813         * libc/posix/Makefile.in: Regenerate.
6814         * libc/reent/Makefile.in: Regenerate.
6815         * libc/search/Makefile.in: Regenerate.
6816         * libc/signal/Makefile.in: Regenerate.
6817         * libc/stdio/Makefile.in: Regenerate.
6818         * libc/stdio64/Makefile.in: Regenerate.
6819         * libc/stdlib/Makefile.in: Regenerate.
6820         * libc/string/Makefile.in: Regenerate.
6821         * libc/sys/Makefile.in: Regenerate.
6822         * libc/sys/a29khif/Makefile.in: Regenerate.
6823         * libc/sys/arc/Makefile.in: Regenerate.
6824         * libc/sys/arm/Makefile.in: Regenerate.
6825         * libc/sys/d10v/Makefile.in: Regenerate.
6826         * libc/sys/decstation/Makefile.in: Regenerate.
6827         * libc/sys/h8300hms/Makefile.in: Regenerate.
6828         * libc/sys/h8500hms/Makefile.in: Regenerate.
6829         * libc/sys/linux/Makefile.in: Regenerate.
6830         * libc/sys/linux/argp/Makefile.in: Regenerate.
6831         * libc/sys/linux/cmath/Makefile.in: Regenerate.
6832         * libc/sys/linux/dl/Makefile.in: Regenerate.
6833         * libc/sys/linux/iconv/Makefile.in: Regenerate.
6834         * libc/sys/linux/intl/Makefile.in: Regenerate.
6835         * libc/sys/linux/linuxthreads/Makefile.in: Regenerate.
6836         * libc/sys/linux/linuxthreads/machine/Makefile.in: Regenerate.
6837         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerate.
6838         * libc/sys/linux/machine/Makefile.in: Regenerate.
6839         * libc/sys/linux/machine/i386/Makefile.in: Regenerate.
6840         * libc/sys/linux/net/Makefile.in: Regenerate.
6841         * libc/sys/linux/stdlib/Makefile.in: Regenerate.
6842         * libc/sys/m88kbug/Makefile.in: Regenerate.
6843         * libc/sys/mmixware/Makefile.in: Regenerate.
6844         * libc/sys/netware/Makefile.in: Regenerate.
6845         * libc/sys/rdos/Makefile.in: Regenerate.
6846         * libc/sys/rtems/Makefile.in: Regenerate.
6847         * libc/sys/sh/Makefile.in: Regenerate.
6848         * libc/sys/sparc64/Makefile.in: Regenerate.
6849         * libc/sys/sun4/Makefile.in: Regenerate.
6850         * libc/sys/sysmec/Makefile.in: Regenerate.
6851         * libc/sys/sysnec810/Makefile.in: Regenerate.
6852         * libc/sys/sysnecv850/Makefile.in: Regenerate.
6853         * libc/sys/sysvi386/Makefile.in: Regenerate.
6854         * libc/sys/sysvnecv70/Makefile.in: Regenerate.
6855         * libc/sys/tic80/Makefile.in: Regenerate.
6856         * libc/sys/w65/Makefile.in: Regenerate.
6857         * libc/sys/z8ksim/Makefile.in: Regenerate.
6858         * libc/syscalls/Makefile.in: Regenerate.
6859         * libc/time/Makefile.in: Regenerate.
6860         * libc/unix/Makefile.in: Regenerate.
6861         * libm/Makefile.in: Regenerate.
6862         * libm/common/Makefile.in: Regenerate.
6863         * libm/machine/Makefile.in: Regenerate.
6864         * libm/machine/i386/Makefile.in: Regenerate.
6865         * libm/machine/spu/Makefile.in: Regenerate.
6866         * libm/math/Makefile.in: Regenerate.
6867         * libm/mathfp/Makefile.in: Regenerate.
6868
6869         * configure: Regenerate.
6870         * iconvdata/configure: Regenerate.
6871         * libc/configure: Regenerate.
6872         * libc/machine/configure: Regenerate.
6873         * libc/machine/i386/configure: Regenerate.
6874         * libc/sys/configure: Regenerate.
6875         * libc/sys/linux/configure: Regenerate.
6876         * libc/sys/linux/linuxthreads/configure: Regenerate.
6877         * libc/sys/linux/linuxthreads/machine/configure: Regenerate.
6878         * libc/sys/linux/linuxthreads/machine/i386/configure: Regenerate.
6879         * libc/sys/linux/machine/configure: Regenerate.
6880         * libc/sys/linux/machine/i386/configure: Regenerate.
6881         * libm/configure: Regenerate.
6882         * libm/machine/configure: Regenerate.
6883         * libm/machine/i386/configure: Regenerate.
6884
6885 2007-05-23  Eric Blake  <ebb9@byu.net>
6886
6887         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
6888         sizeof(void*) is 8 but sizeof(long) is 4.
6889         * libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise.  Fix %i scanning
6890         of "-0x".  Support "-nan" and "inf" for %e.  Audit usage of ungetc
6891         to fix reentrancy and bug on encoding error in multibyte locales.
6892         Always return EOF on read error.
6893
6894 2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
6895
6896         * libc/machine/spu/sys/syscall.h: Update the __send_to_ppe
6897         prototype.
6898         * libc/machine/spu/fclose.c: Use the __send_to_ppe return value
6899         instead of the slot 0 value, remove any now unused variables, and
6900         for some cases, now store the result in an int vs int*.
6901         * libc/machine/spu/feof.c: Ditto.
6902         * libc/machine/spu/ferror.c: Ditto.
6903         * libc/machine/spu/fflush.c: Ditto.
6904         * libc/machine/spu/fgetc.c: Ditto.
6905         * libc/machine/spu/fgetpos.c: Ditto.
6906         * libc/machine/spu/fgets.c: Ditto.
6907         * libc/machine/spu/fileno.c: Ditto.
6908         * libc/machine/spu/fopen.c: Ditto.
6909         * libc/machine/spu/fprintf.c: Ditto.
6910         * libc/machine/spu/fputc.c: Ditto.
6911         * libc/machine/spu/fputs.c: Ditto.
6912         * libc/machine/spu/fread.c: Ditto.
6913         * libc/machine/spu/freopen.c: Ditto.
6914         * libc/machine/spu/fscanf.c: Ditto.
6915         * libc/machine/spu/fseek.c: Ditto.
6916         * libc/machine/spu/fsetpos.c: Ditto.
6917         * libc/machine/spu/ftell.c: Ditto.
6918         * libc/machine/spu/fwrite.c: Ditto.
6919         * libc/machine/spu/getc.c: Ditto.
6920         * libc/machine/spu/getchar.c: Ditto.
6921         * libc/machine/spu/gets.c: Ditto.
6922         * libc/machine/spu/printf.c: Ditto.
6923         * libc/machine/spu/putc.c: Ditto.
6924         * libc/machine/spu/putchar.c: Ditto.
6925         * libc/machine/spu/puts.c: Ditto.
6926         * libc/machine/spu/remove.c: Ditto.
6927         * libc/machine/spu/rename.c: Ditto.
6928         * libc/machine/spu/scanf.c: Ditto.
6929         * libc/machine/spu/setvbuf.c: Ditto.
6930         * libc/machine/spu/snprintf.c: Ditto.
6931         * libc/machine/spu/sprintf.c: Ditto.
6932         * libc/machine/spu/sscanf.c: Ditto.
6933         * libc/machine/spu/tmpfile.c: Ditto.
6934         * libc/machine/spu/tmpnam.c: Ditto.
6935         * libc/machine/spu/ungetc.c: Ditto.
6936         * libc/machine/spu/vfprintf.c: Ditto.
6937         * libc/machine/spu/vfscanf.c: Ditto.
6938         * libc/machine/spu/vprintf.c: Ditto.
6939         * libc/machine/spu/vscanf.c: Ditto.
6940         * libc/machine/spu/vsnprintf.c: Ditto.
6941         * libc/machine/spu/vsprintf.c: Ditto.
6942         * libc/machine/spu/vsscanf.c: Ditto.
6943
6944 2007-05-23  Eric Blake  <ebb9@byu.net>
6945
6946         * libc/stdio/vfscanf.c (__SVFSCANF_R): Support scanf(%1$s).
6947         Avoid warning when !FLOATING_POINT.
6948         * libc/stdio/vfprintf.c (_VFPRINTF_R): Simplify _NO_POS_ARGS
6949         slightly.
6950
6951 2007-05-23  Corinna Vinschen  <vinschen@redhat.com>
6952
6953         * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len
6954         to zero.
6955         * libc/include/argz.h: Guard against multiple inclusion.  Guard for
6956         use with C++.
6957
6958 2007-05-18  Eric Blake  <ebb9@byu.net>
6959
6960         * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
6961         compilers.
6962         * libc/stdio/vfscanf.c: Likewise.
6963
6964 2007-05-17  Cary R.  <cygcary <at> yahoo.com>
6965
6966         * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc
6967         (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0))
6968         * libm/math/wf_atan2.c: Ditto.
6969
6970 2007-05-17  Yaakov Selkowitz  <yselkowitz <at> users.sourceforge.net>
6971
6972         * libm/common/Makefile.am: Add support for exp10, exp10f,
6973         pow10, and pow10f functions.
6974         * libm/common/Makefile.in: Regenerated.
6975         * libm/common/s_pow10.c: New file.
6976         * libm/common/sf_pow10.c: Ditto.
6977         * libm/common/s_exp10.c: Ditto.
6978         * libm/common/sf_exp10.c: Ditto.
6979         * libc/include/math.h [!pow10]: New pow10 prototype.
6980         [!pow10f]: New pow10f prototype.
6981         [!exp10]: New exp10 prototype.
6982         [!exp10f]: New exp10f prototype.
6983
6984 2007-05-17  Charles Wilson  <cygwin@...>
6985
6986         * stdio/tmpfile.c: Include <sys/stat.h>.
6987         * stdio64/tmpfile64.c: Ditto.
6988
6989 2007-05-16  Eric Blake  <ebb9@byu.net>
6990
6991         Close security hole in tmpfile.
6992         * libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
6993         generation and opening the fd.
6994         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
6995
6996         * libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)
6997         (MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros
6998         required by POSIX.
6999         * libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to
7000         avoid clash with <math.h>.
7001
7002         * libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.
7003         * libc/search/hash.c (__hash_open): Likewise.
7004
7005 2007-05-14 Eric Blake <ebb9@byu.net>
7006
7007         Reduce stack size of *printf.
7008         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point
7009         in %f.  Avoid malloc when possible for %S.
7010         (BUF): Improve stack locality by using smaller size.
7011         (MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define.
7012         (exponent): Use smaller stack size.
7013
7014 2007-05-11  Eric Blake  <ebb9@byu.net>
7015
7016         Minimize printf/scanf size on platforms that don't need C99.
7017         * acconfig.h (_WANT_IO_C99_FORMATS): New macro.
7018         * newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
7019         * configure.in (newlib-io-c99-formats): New configure option.
7020         (_WANT_IO_C99_FORMATS): Define appropriately.
7021         * configure.host (*-linux*, cygwin): Default c99-formats to yes.
7022         * libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
7023         Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
7024         * libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
7025         Likewise.
7026         * configure: Regenerate.
7027
7028         * libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)
7029         (get_arg): Support '%a' and '%A'.
7030
7031 2007-05-09  Eric Blake  <ebb9@byu.net>
7032
7033         Allow zero size with non-null buf in *asnprintf.
7034         * libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing
7035         user's buf.
7036         * libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise.
7037         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
7038         * libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
7039
7040 2007-05-07  Charles Wilson  <cygwin@...>
7041
7042         * libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.
7043
7044 2007-05-03  Eric Blake  <ebb9@byu.net>
7045
7046         Add support for asnprintf, and improve *printf documentation.
7047         * libc/stdio/Makefile.am (ELIX_SOURCES): Rename...
7048         (ELIX_2_SOURCES): ...to this.
7049         (ELIX_4_SOURCES): Add new variable.  Build asnprintf.
7050         (GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES.
7051         (CHEWOUT_FILES): Include diprintf in documentation.
7052         * libc/stdio/Makefile.in: Regenerate.
7053         * libc/stdio/diprintf.c: Improve documentation.
7054         * libc/stdio/dprintf.c: Likewise.
7055         * libc/stdio/siprintf.c: Likewise.
7056         * libc/stdio/sprintf.c: Likewise.
7057         * libc/stdio/vfprintf.c: Likewise.
7058         * libc/stdio/viprintf.c: Likewise.
7059         * libc/stdio/vsniprintf.c: Consolidate documentation.
7060         * libc/stdio/asiprintf.c: Refer to documentation.
7061         * libc/stdio/asprintf.c: Likewise.
7062         * libc/stdio/fiprintf.c: Likewise.
7063         * libc/stdio/fprintf.c: Likewise.
7064         * libc/stdio/iprintf.c: Likewise.
7065         * libc/stdio/printf.c: Likewise.
7066         * libc/stdio/sniprintf.c: Likewise.
7067         * libc/stdio/vdiprintf.c: Likewise.
7068         * libc/stdio/vdprintf.c: Likewise.
7069         * libc/stdio/vsiprintf.c: Likewise.
7070         * libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf.
7071         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file.
7072         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file.
7073         * libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New
7074         file.
7075         * libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file.
7076         * libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in
7077         typical case.
7078         * libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise.
7079         * libc/include/stdio.h: Add prototypes for new functions; sort
7080         existing functions.
7081
7082 2007-05-03  Kazu Hirata  <kazu@codesourcery.com>
7083
7084         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
7085         and memset.S.
7086         * libc/machine/m68k/Makefile.in: Regenerate.
7087         * libc/machine/m68k/memcpy.S: Use sub.l followed by dbra.
7088         * libc/machine/m68k/memset.S: Likewise.
7089
7090 2007-05-01  Eric Blake  <ebb9@byu.net>
7091
7092         * libc/stdio64/local64.h: Delete, move contents to...
7093         * libc/stdio/local.h: ...here.
7094         * libc/stdio64/fdopen64.c: Update includes.
7095         * libc/stdio64/fopen64.c: Likewise.
7096         * libc/stdio64/freopen64.c: Likewise.
7097         * libc/stdio64/fseeko64.c: Likewise.
7098         * libc/stdio64/ftello64.c: Likewise.
7099         * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
7100         and stderr with 64-bit offset.
7101         * libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
7102         * libc/stdio/makebuf.c (__smakebuf_r): Likewise.
7103         * libc/stdio/mktemp.c (_gettemp): Likewise.
7104
7105 2007-05-01  Cary R.  <cygcary <at> yahoo.com>
7106
7107         * libm/math/e_pow.c: Fix to be consistent with glibc with regards
7108         to treatment of NaN and +-inf arguments.
7109         * libm/math/ef_pow.c: Ditto.
7110         * libm/math/w_pow.c: Ditto.
7111         * libm/math/wf_pow.c: Ditto.
7112         * libm/math/w_acos.c: Fix domain errors to return NaN.
7113         * libm/math/w_asin.c: Ditto.
7114         * libm/math/wf_acos.c: Ditto.
7115         * libm/math/wf_asin.c: Ditto.
7116         * libm/math/w_log.c: Fix to return NaN for negative number inputs.
7117         * libm/math/wf_log.c: Ditto.
7118         * libm/math/wf_log10.c: Ditto.
7119         * libm/math/w_log10.c: Ditto.
7120
7121 2007-04-27  Jeff Johnston  <jjohnstn@redhat.com>
7122
7123         * libc/machine/m68k/Makefile.am: Temporarily remove
7124         memcpy.S and memset.S until logic can be confirmed for
7125         !(__mcoldfile__) case.
7126         * libc/machine/m68k/Makefile.in: Regenerated.
7127
7128 2007-04-27  Kazu Hirata  <kazu@codesourcery.com>
7129
7130         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
7131         and memset.S.
7132         * libc/machine/m68k/Makefile.in: Regenerate.
7133         * libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
7134
7135 2007-04-26  Patrick Mansfield <patmans@us.ibm.com>
7136
7137         * libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be
7138         overridden via machine/ieeefp.h.
7139         * libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp
7140         macros for isnan and related macros.
7141         * libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be
7142         overridden via machine/ieeefp.h.
7143         * libm/machine/spu/Makefile.am: Add new files.
7144         * libm/machine/spu/Makefile.in: Autogenerate with new files.
7145         * libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf.
7146         * libm/machine/spu/sf_finite.c: Add SPU specific finitef.
7147         * libm/machine/spu/sf_isinf.c: Add SPU specific isinff.
7148         * libm/machine/spu/sf_isinff.c: Add SPU specific __isinff.
7149         * libm/machine/spu/sf_isnan.c: Add SPU specific isnanf.
7150         * libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf.
7151         * libm/machine/spu/sf_nan.c: Add SPU specific nanf.
7152
7153 2007-04-25  Jeff Johnston  <jjohnstn@redhat.com>
7154
7155         * libm/common/s_fpclassify.c (__fpclassifyf): Move this to...
7156         * libm/common/sf_fpclassify.c: ...here.  New file.
7157         * libm/common/Makefile.am: Add sf_fpclassify.c.
7158         * libm/common/Makefile.in: Regenerated.
7159
7160 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
7161
7162         * libc/machine/spu/sys/errno.h: New file, so spu errno values match
7163         ppu linux values. This file is a copy of the cris/sys/errno.h plus
7164         a few changes (see spu errno.h comments).
7165
7166 2007-04-25  Eric Blake  <ebb9@byu.net>
7167
7168         * libc/stdio/vfprintf.c (get_arg): Support %1$lc.  Simplify types
7169         that promote to int.
7170
7171 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
7172
7173         * libm/machine/spu/headers/feholdexcept.h: Use *envp not env so
7174         we clear the proper bits in the fpscr, and don't set some random ones.
7175
7176 2007-04-24  Eric Blake  <ebb9@byu.net>
7177
7178         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
7179         or NaN with %05f.
7180
7181         * libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
7182         _MB_CAPABLE.
7183
7184         * libc/include/limits.h (NL_ARGMAX): Define a default value.
7185         * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
7186         NL_ARGMAX, if present.
7187
7188 2007-04-23  Brian Dessent  <brian@dessent.net>
7189
7190         * libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag
7191         has been specified with types 'f', 'F', 'g', or 'G', ensure the
7192         trailing decimal is printed.
7193
7194 2007-04-23  Ralf Wildenhues  <Ralf.Wildenhues <at> gmx.de>
7195
7196         * confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New
7197         file.  Override Autoconf-2.59's version of these macros with
7198         fixed handling of multiple adjacent whitespace in arguments.
7199         * aclocal.m4: Regenerated forcefully.
7200         * configure: Ditto.
7201         * Makefile.in: Ditto.
7202         * libc/*Makefile.in: Ditto.
7203         * libc/*aclocal.m4: Ditto.
7204         * libc/*configure: Ditto.
7205         * libm/*Makefile.in: Ditto.
7206         * libm/*aclocal.m4: Ditto.
7207         * libm/*configure: Ditto.
7208
7209 2007-04-23  Jeff Johnston  <jjohnstn@redhat.com>
7210
7211         * libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule.
7212         * libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES
7213         and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule.
7214         * libc/sys/arc/Makefile.in: Regenerated.
7215
7216 2007-04-17  Brian Dessent  <brian@dessent.net>
7217
7218         * libc/stdio/sscanf.c: Update documentation comments.
7219         * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
7220
7221 2007-04-12  Eric Blake  <ebb9@byu.net>
7222
7223         * libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
7224         (chclass): Recognize 'F', 'X', 'n', and not 'W'.
7225         (get_arg): Handle %1$F, %1$n.
7226
7227 2007-04-10  Eric Blake  <ebb9@byu.net>
7228
7229         * libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
7230         CFLAGS=-O0.
7231
7232 2007-04-09  Eric Blake  <ebb9@byu.net>
7233
7234         * libc/include/stdio.h: Add gcc format attributes to printf and
7235         scanf families.
7236
7237 2007-04-09  Joel Schopp <jschopp@austin.ibm.com>
7238
7239         * libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data
7240         even if the passed in length n is shorter than the source string.
7241         This matches both the non-spu specific and the glibc strxfrm
7242         behaviour.
7243
7244 2007-04-04  Mark Mitchell  <mark@codesourcery.com>
7245
7246         * libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit
7247         functions registering additional atexit functions.
7248
7249         * testsuite/lib/flags.exp (newlib_include_flags): Drop
7250         -I${newlib_dir}.
7251
7252 2007-04-04  Patrick Mansfield <patmans@us.ibm.com>
7253
7254         * libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
7255         prototype.
7256         * libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
7257         * libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
7258         * libc/machine/spu/fclose.c: Ditto.
7259         * libc/machine/spu/feof.c: Ditto.
7260         * libc/machine/spu/ferror.c: Ditto.
7261         * libc/machine/spu/fflush.c: Ditto.
7262         * libc/machine/spu/fgetc.c: Ditto.
7263         * libc/machine/spu/fgetpos.c: Ditto.
7264         * libc/machine/spu/fgets.c: Ditto.
7265         * libc/machine/spu/fileno.c: Ditto.
7266         * libc/machine/spu/fopen.c: Ditto.
7267         * libc/machine/spu/fprintf.c: Ditto.
7268         * libc/machine/spu/fputc.c: Ditto.
7269         * libc/machine/spu/fputs.c: Ditto.
7270         * libc/machine/spu/fread.c: Ditto.
7271         * libc/machine/spu/freopen.c: Ditto.
7272         * libc/machine/spu/fscanf.c: Ditto.
7273         * libc/machine/spu/fseek.c: Ditto.
7274         * libc/machine/spu/fsetpos.c: Ditto.
7275         * libc/machine/spu/ftell.c: Ditto.
7276         * libc/machine/spu/fwrite.c: Ditto.
7277         * libc/machine/spu/getc.c: Ditto.
7278         * libc/machine/spu/getchar.c: Ditto.
7279         * libc/machine/spu/gets.c: Ditto.
7280         * libc/machine/spu/perror.c: Ditto.
7281         * libc/machine/spu/printf.c: Ditto.
7282         * libc/machine/spu/putc.c: Ditto.
7283         * libc/machine/spu/putchar.c: Ditto.
7284         * libc/machine/spu/puts.c: Ditto.
7285         * libc/machine/spu/remove.c: Ditto.
7286         * libc/machine/spu/rename.c: Ditto.
7287         * libc/machine/spu/rewind.c: Ditto.
7288         * libc/machine/spu/scanf.c: Ditto.
7289         * libc/machine/spu/setbuf.c: Ditto.
7290         * libc/machine/spu/setvbuf.c: Ditto.
7291         * libc/machine/spu/snprintf.c: Ditto.
7292         * libc/machine/spu/sprintf.c: Ditto.
7293         * libc/machine/spu/sscanf.c: Ditto.
7294         * libc/machine/spu/tmpfile.c: Ditto.
7295         * libc/machine/spu/tmpnam.c: Ditto.
7296         * libc/machine/spu/ungetc.c: Ditto.
7297         * libc/machine/spu/vfprintf.c: Ditto.
7298         * libc/machine/spu/vfscanf.c: Ditto.
7299         * libc/machine/spu/vprintf.c: Ditto.
7300         * libc/machine/spu/vscanf.c: Ditto.
7301         * libc/machine/spu/vsnprintf.c: Ditto.
7302         * libc/machine/spu/vsprintf.c: Ditto.
7303         * libc/machine/spu/vsscanf.c: Ditto.
7304
7305 2007-04-04  Jeff Johnston  <jjohnstn@redhat.com>
7306
7307         * libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
7308
7309 2007-04-04  Eric Blake  <ebb9@byu.net>
7310
7311         * libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
7312         (asiprintf): Avoid overhead.
7313         * libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
7314         (asprintf): Avoid overhead.
7315         * libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
7316         * libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
7317         * libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
7318         (fiprintf): Avoid overhead.
7319         * libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
7320         (fprintf): Avoid overhead.
7321         * libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
7322         (iprintf): Avoid overhead.
7323         * libc/stdio/printf.c (_printf_r): Use _DEFUN.
7324         (printf): Avoid overhead.
7325         * libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
7326         * libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
7327         * libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
7328         * libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
7329         * libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
7330         * libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
7331         * libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
7332         * libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
7333         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
7334         vdiprintf.c.
7335         * libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
7336         (_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
7337
7338 2007-03-30  Dave Korn  <dave.korn@artimi.com>
7339
7340         * libc/include/stdio.h (_ELIDABLE_INLINE):  New macro to conceal
7341         conflicting inline semantics between C99 and GNU89.
7342         (__sgetc_r):  Replace static inline with _ELIDABLE_INLINE to be
7343         compatible with -fkeep-inline-functions usage.
7344         (__sputc_r):  Likewise for consistency even though disabled.
7345
7346 2007-03-29  Nick Clifton  <nickc@redhat.com>
7347
7348         Reflect changes made to generic vfprintf.c:
7349         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
7350         and add a "struct reent *" argument.
7351         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
7352         argument and call _VFPRINTF_R instead of VFPRINTF.
7353         (_VFPRINTF_R): Add data pointer to call to cantwrite().
7354         Fix uses of __sprint() and __sbprintf.
7355
7356 2007-03-20  Nick Clifton  <nickc@redhat.com>
7357
7358         Reflect changes made to generic vfprintf.c:
7359         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
7360         and add a "struct reent *" argument.
7361         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
7362         argument and call _VFPRINTF_R instead of VFPRINTF.
7363         (_VFPRINTF_R): Add data pointer to call to cantwrite().
7364         Fix uses of __sprint() and __sbprintf.
7365
7366 2007-03-16  Charles Wilson  <cygwin@...>
7367
7368         * libc/argz/argz_insert.c: "before" pointer is
7369         invalid after *argz realloc.  Compute offset
7370         between "before" and *argz, and use it after
7371         reallocation instead.
7372
7373 2007-03-16  Eric Blake  <ebb9@byu.net>
7374
7375         * libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
7376         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
7377
7378 2007-03-15  Jeff Johnston  <jjohnstn@redhat.com>
7379
7380         * configure.in: Add new --enable-newlib-reent-small option.
7381         * configure: Regenerated.
7382         * acconfig.h: Add _WANT_REENT_SMALL.
7383         * newlib.hin: Regenerated minus PACKAGE macros to add
7384         _WANT_REENT_SMALL macro.
7385         * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
7386         if not already set.
7387         * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
7388         there is no buffer.
7389         * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
7390         use reentrant pointer passed in when resetting the file
7391         pointer to one of the std streams.
7392
7393 2007-03-15  Eric Blake  <ebb9@byu.net>
7394
7395         * libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
7396         (__smakebuf): Rename...
7397         (__smakebuf_r): to this.
7398         * libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
7399         * libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
7400         allocation, then rename...
7401         (__smakebuf_r): ...to this and fix reentrancy.
7402         * libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
7403         allocation, then rename...
7404         (__swsetup_r): ...to this and fix reentrancy.
7405         * libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
7406         * libc/stdio/refill.c (__srefill_r): Likewise.
7407         * libc/stdio/fclose.c (_fclose_r): Likewise.
7408         * libc/stdio/fread.c (_fread_r): Likewise.
7409         * libc/stdio/freopen.c (_freopen_r): Likewise.
7410         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
7411         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
7412         * libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
7413         failed asprintf allocation, and fix reentrancy.
7414         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
7415         as required by POSIX.
7416         * libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
7417         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
7418         * libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
7419
7420 2007-03-12  Eric Blake  <ebb9@byu.net>
7421
7422         * libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
7423         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
7424         allocation to caller.
7425         * libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
7426         * libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
7427         * libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
7428
7429 2007-02-23  Jeff Johnston  <jjohnstn@redhat.com>
7430
7431         * libm/math/w_pow.c: Fix typo in documentation comment.
7432
7433 2007-02-21  Patrick Mansfield <patmans@us.ibm.com>
7434
7435         * libc/reent/timer.c: Removed (split into two new files).
7436         * libc/reent/timesr.c: New file for _times_r.
7437         * libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
7438         * reent/Makefile.in: Remove timer.c, add timesr.c and
7439         gettimeofdayr.c.
7440         * libc/reent/Makefile.am: Regenerate.
7441
7442 2007-02-20  Patrick Mansfield <patmans@us.ibm.com>
7443
7444         * configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
7445
7446 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
7447
7448         * libc/machine/spu/Makefile.am: Add new objects.
7449         * libc/machine/spu/Makefile.in: Regenerated.
7450         * libc/machine/spu/fiprintf.c: New file. Add implementation of
7451         integer-only version.
7452         * libc/machine/spu/fiscanf.c: Ditto.
7453         * libc/machine/spu/iprintf.c: Ditto.
7454         * libc/machine/spu/iscanf.c: Ditto.
7455         * libc/machine/spu/siprintf.c: Ditto.
7456         * libc/machine/spu/siscanf.c: Ditto.
7457         * libc/machine/spu/sniprintf.c: Ditto.
7458         * libc/machine/spu/vfiprintf.c: Ditto.
7459         * libc/machine/spu/vfiscanf.c: Ditto.
7460         * libc/machine/spu/viprintf.c: Ditto.
7461         * libc/machine/spu/viscanf.c: Ditto.
7462         * libc/machine/spu/vsiprintf.c: Ditto.
7463         * libc/machine/spu/vsiscanf.c: Ditto.
7464         * libc/machine/spu/vsniprintf.c: Ditto.
7465         * libc/machine/spu/fprintf.c: Add support for integer-only
7466         version.
7467         * libc/machine/spu/fscanf.c: Ditto.
7468         * libc/machine/spu/printf.c: Ditto.
7469         * libc/machine/spu/scanf.c: Ditto.
7470         * libc/machine/spu/snprintf.c: Ditto.
7471         * libc/machine/spu/sprintf.c: Ditto.
7472         * libc/machine/spu/sscanf.c: Ditto.
7473         * libc/machine/spu/vfprintf.c: Ditto.
7474         * libc/machine/spu/vfscanf.c: Ditto.
7475         * libc/machine/spu/vprintf.c: Ditto.
7476         * libc/machine/spu/vscanf.c: Ditto.
7477         * libc/machine/spu/vsnprintf.c: Ditto.
7478         * libc/machine/spu/vsprintf.c: Ditto.
7479         * libc/machine/spu/vsscanf.c: Ditto.
7480
7481 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
7482
7483         * libc/include/stdio.h: Add declaration for vsiprintf.
7484
7485 2007-02-14  Patrick Mansfield <patmans@us.ibm.com>
7486
7487         Add a floating point environment for SPU (cell):
7488
7489         * configure.host: add libm_machine_dir=spu.
7490         * libm/machine/configure: Add spu.
7491         * libm/machine/configure.in: regenerated with spu added.
7492         * libc/machine/spu/include/fenv.h: New file.
7493         * libc/machine/spu/sys/fenv.h: Ditto.
7494         * libm/machine/spu/Makefile.am: Ditto.
7495         * libm/machine/spu/Makefile.in: Ditto.
7496         * libm/machine/spu/aclocal.m4: Ditto.
7497         * libm/machine/spu/configure: Ditto.
7498         * libm/machine/spu/configure.in: Ditto.
7499         * libm/machine/spu/fe_dfl_env.c: Ditto.
7500         * libm/machine/spu/feclearexcept.c: Ditto.
7501         * libm/machine/spu/fegetenv.c: Ditto.
7502         * libm/machine/spu/fegetexceptflag.c: Ditto.
7503         * libm/machine/spu/fegetround.c: Ditto.
7504         * libm/machine/spu/feholdexcept.c: Ditto.
7505         * libm/machine/spu/feraiseexcept.c: Ditto.
7506         * libm/machine/spu/fesetenv.c: Ditto.
7507         * libm/machine/spu/fesetexceptflag.c: Ditto.
7508         * libm/machine/spu/fesetround.c: Ditto.
7509         * libm/machine/spu/fetestexcept.c: Ditto.
7510         * libm/machine/spu/feupdateenv.c: Ditto.
7511         * libm/machine/spu/headers/feclearexcept.h: Ditto.
7512         * libm/machine/spu/headers/fefpscr.h: Ditto.
7513         * libm/machine/spu/headers/fegetenv.h: Ditto.
7514         * libm/machine/spu/headers/fegetexceptflag.h: Ditto.
7515         * libm/machine/spu/headers/fegetround.h: Ditto.
7516         * libm/machine/spu/headers/feholdexcept.h: Ditto.
7517         * libm/machine/spu/headers/feraiseexcept.h: Ditto.
7518         * libm/machine/spu/headers/fesetenv.h: Ditto.
7519         * libm/machine/spu/headers/fesetexceptflag.h: Ditto.
7520         * libm/machine/spu/headers/fesetround.h: Ditto.
7521         * libm/machine/spu/headers/fetestexcept.h: Ditto.
7522         * libm/machine/spu/headers/feupdateenv.h: Ditto.
7523
7524 2007-02-14  Corinna Vinschen  <corinna@vinschen.de>
7525
7526         * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
7527         Cygwin.
7528
7529 2007-02-08  Corinna Vinschen  <corinna@vinschen.de>
7530
7531         * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
7532         Cygwin.  Fix value of _POSIX_SEMAPHORES.  Fix formatting.
7533
7534 2007-02-07  Corinna Vinschen  <corinna@vinschen.de>
7535
7536         * libc/include/sys/features.h: Add definition of all supported
7537         _POSIX_xxx values for Cygwin.
7538         * libc/include/sys/types.h (pthread_rwlock_t): Omit definition
7539         on Cygwin.
7540         (pthread_rwlockattr_t): Ditto.
7541         * libc/include/sys/unistd.h: Define all _SC_xxx values as
7542         required by SUSv3.  Unify formatting.
7543
7544 2007-02-02  Ralf Corsépius <ralf.corsepius@rtems.org>
7545
7546         * libc/include/sys/errno.h: Add ECANCELED.
7547
7548 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
7549             Kazunori Asayama <asayama@sm.sony.co.jp>
7550
7551         * libc/machine/spu/Makefile.am: Add objects.
7552         * libc/machine/spu/Makefile.in: Regenerated.
7553         * libc/machine/spu/vsscanf.c: New file. Add a stdio function
7554         implementation.
7555         * libc/machine/spu/snprintf.c: Ditto.
7556         * libc/machine/spu/sprintf.c: Ditto.
7557         * libc/machine/spu/sscanf.c: Ditto.
7558         * libc/machine/spu/remove.c: Ditto.
7559         * libc/machine/spu/rename.c: Ditto.
7560         * libc/machine/spu/tmpnam.c: Ditto.
7561         * libc/machine/spu/vsnprintf.c: Add initialization routine of
7562         stdio stuffs.
7563         * libc/machine/spu/vsprintf.c: Ditto.
7564
7565 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
7566             Kazunori Asayama <asayama@sm.sony.co.jp>
7567
7568         * configure.host: Enable SPU specific stdio directory.
7569         * libc/machine/spu/Makefile.am: Add objects.
7570         * libc/machine/spu/Makefile.in: Regenerated.
7571         * libc/machine/spu/c99ppe.h: Add macros and function
7572         declarations to initialize SPU specific stdio stuffs.
7573         * libc/machine/spu/stdio.c: Add functions to manage Cell SPU
7574         specific FILE structures.
7575         * libc/machine/spu/perror.c: Add initialization routine of
7576         stdio stuffs.
7577         * libc/machine/spu/printf.c: Ditto.
7578         * libc/machine/spu/putchar.c: Ditto.
7579         * libc/machine/spu/puts.c: Ditto.
7580         * libc/machine/spu/vprintf.c: Ditto.
7581         * libc/machine/spu/clearerr.c: New file. Add a stdio function
7582         implementation.
7583         * libc/machine/spu/feof.c: Ditto.
7584         * libc/machine/spu/ferror.c: Ditto.
7585         * libc/machine/spu/fileno.c: Ditto.
7586         * libc/machine/spu/fopen.c: Ditto.
7587         * libc/machine/spu/fclose.c: Ditto.
7588         * libc/machine/spu/freopen.c: Ditto.
7589         * libc/machine/spu/fflush.c: Ditto.
7590         * libc/machine/spu/fseek.c: Ditto.
7591         * libc/machine/spu/ftell.c: Ditto.
7592         * libc/machine/spu/rewind.c: Ditto.
7593         * libc/machine/spu/fgetpos.c: Ditto.
7594         * libc/machine/spu/fsetpos.c: Ditto.
7595         * libc/machine/spu/fread.c: Ditto.
7596         * libc/machine/spu/fwrite.c: Ditto.
7597         * libc/machine/spu/getc.c: Ditto.
7598         * libc/machine/spu/getchar.c: Ditto.
7599         * libc/machine/spu/gets.c: Ditto.
7600         * libc/machine/spu/fgetc.c: Ditto.
7601         * libc/machine/spu/fgets.c: Ditto.
7602         * libc/machine/spu/ungetc.c: Ditto.
7603         * libc/machine/spu/putc.c: Ditto.
7604         * libc/machine/spu/fputc.c: Ditto.
7605         * libc/machine/spu/fputs.c: Ditto.
7606         * libc/machine/spu/vfprintf.c: Ditto.
7607         * libc/machine/spu/vfscanf.c: Ditto.
7608         * libc/machine/spu/fprintf.c: Ditto.
7609         * libc/machine/spu/fscanf.c: Ditto.
7610         * libc/machine/spu/scanf.c: Ditto.
7611         * libc/machine/spu/vscanf.c: Ditto.
7612         * libc/machine/spu/setbuf.c: Ditto.
7613         * libc/machine/spu/setvbuf.c: Ditto.
7614         * libc/machine/spu/tmpfile.c: Ditto.
7615
7616 2007-02-01  Jeff Johnston  <jjohnstn@redhat.com>
7617
7618         * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
7619         * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
7620         around stdio macros that manipulate fields in the normal file
7621         structure.
7622         * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
7623         <sys/custom_file.h> to define custom FILE structure.
7624         * libc/include/sys/custom_file.h: New default header file
7625         that generates error if not overridden when __CUSTOM_FILE_IO__ set.
7626         * libc/machine/spu/sys/custom_file.h: New file.
7627
7628 2007-01-31  Kazunori Asayama <asayama@sm.sony.co.jp>
7629
7630         * configure.host: Define stdio directory as a variable.
7631         * libc/Makefile.am: Define stdio related names
7632         as macros.
7633         * libc/configure.in: Add detection routine of stdio directory.
7634         * libc/Makefile.in: Regenerated.
7635         * libc/configure: Ditto.
7636         * libc/argz/Makefile.in: Ditto.
7637         * libc/ctype/Makefile.in: Ditto.
7638         * libc/errno/Makefile.in: Ditto.
7639         * libc/iconv/Makefile.in: Ditto.
7640         * libc/iconv/ccs/Makefile.in: Ditto.
7641         * libc/iconv/ccs/binary/Makefile.in: Ditto.
7642         * libc/iconv/ces/Makefile.in: Ditto.
7643         * libc/iconv/lib/Makefile.in: Ditto.
7644         * libc/locale/Makefile.in: Ditto.
7645         * libc/misc/Makefile.in: Ditto.
7646         * libc/posix/Makefile.in: Ditto.
7647         * libc/reent/Makefile.in: Ditto.
7648         * libc/search/Makefile.in: Ditto.
7649         * libc/signal/Makefile.in: Ditto.
7650         * libc/stdio/Makefile.in: Ditto.
7651         * libc/stdio64/Makefile.in: Ditto.
7652         * libc/stdlib/Makefile.in: Ditto.
7653         * libc/string/Makefile.in: Ditto.
7654         * libc/syscalls/Makefile.in: Ditto.
7655         * libc/time/Makefile.in: Ditto.
7656         * libc/unix/Makefile.in: Ditto.
7657
7658 2007-01-30  Ben Elliston  <bje@au.ibm.com>
7659
7660         * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
7661         fmt member.
7662         * libc/machine/spu/printf.c (c99_printf_t): Likewise.
7663         (printf): Pass fmt to va_start to suppress a warning.
7664
7665         * libc/search/hash.c (init_hash): Make `info' parameter const.
7666
7667 2007-01-19  Kazunori Asayama <asayama@sm.sony.co.jp>
7668
7669         * libc/machine/spu/c99ppe.h: Replace vector with __vector.
7670         * libc/machine/spu/vec_literal.h: Ditto.
7671         * libc/machine/spu/strncmp.c: Ditto.
7672
7673 2007-01-15  Joseph Myers  <joseph@codesourcery.com>
7674             Kazu Hirata  <kazu@codesourcery.com>
7675
7676         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
7677         for E500V1 and E500V2.
7678
7679 2007-01-11  Jeff Johnston  <jjohnstn@redhat.com>
7680
7681         * libm/configure.in: Always configure machine directory.
7682         * libm/Makefile.am: Make machine subdirectory part of SUBDIRS
7683         unconditionally.
7684         * libm/configure: Regenerated.
7685         * libm/Makefile.in: Ditto.
7686         * libm/*/Makefile.in: Ditto.
7687
7688 2007-01-05  Brian Ford  <Brian.Ford@FlightSafety.com>
7689
7690         * configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
7691
7692 2007-01-02  Ben Elliston  <bje@au.ibm.com>
7693
7694         * doc/makedoc.c: Include <stdlib.h>.
7695         (malloc, realloc): Remove extern declarations.
7696
7697 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
7698
7699         * NEWS: Update with 1.15.0 info.
7700         * README: Ditto.
7701         * acinclude.m4: Change version number to 1.15.0.
7702         * aclocal.m4: Regenerated.
7703         * configure: Ditto.
7704         * doc/aclocal.m4: Ditto.
7705         * doc/configure: Ditto.
7706         * libc/*/aclocal.m4: Ditto.
7707         * libc/*/configure: Ditto.
7708         * libc/libc.texinfo: Ditto.
7709         * libm/*/aclocal.m4: Ditto.
7710         * libm/*/configure: Ditto.
7711         * libm/libm.texinfo: Ditto.
7712         * libc/sys/linux/shared.ld: Add VERS_1.15.
7713
7714 2006-12-18  Kazu Hirata  <kazu@codesourcery.com>
7715
7716         Merge from newlib-csl-20060320-branch:
7717         2006-12-01  Nathan Sidwell  <nathan@codesourcery.com>
7718                     Kazu Hirata  <kazu@codesourcery.com>
7719
7720         * configure.host: Recognize fido.
7721
7722 2006-12-18  Joel Schopp <jschopp@austin.ibm.com>
7723
7724         * libc/machine/spu/c99ppe.h: New file
7725         * libc/machine/spu/perror.c: New file to override libc/stdio version.
7726         * libc/machine/spu/printf.c: New file
7727         * libc/machine/spu/putchar.c: New file
7728         * libc/machine/spu/puts.c: New file
7729         * libc/machine/spu/vprintf.c: New file
7730         * libc/machine/spu/vsnprintf.c: New file
7731         * libc/machine/spu/vsprintf.c: New file
7732         * libc/machine/spu/Makefile.am: Add new targets.
7733         * libc/machine/spu/Makefile.in: Regenerated.
7734
7735 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
7736
7737         * aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
7738         * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
7739
7740 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
7741
7742         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
7743         2.6.5 version of Doug Lea's malloc which is the basis of
7744         this code.
7745
7746 2006-12-18  Kazunori Asayama <asayama@sm.sony.co.jp>
7747
7748         * libc/include/machine/setjmp.h[__SPU__]: Replace vector with __vector.
7749
7750 2006-12-14  Jeff Johnston  <jjohnstn@redhat.com>
7751             Eric Blake  <ebb9@byu.net>
7752
7753         * libc/stdio/fflush.c (fflush): On seekable streams, always flush
7754         read but unused data.
7755         * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
7756         even read streams may have side effects that must happen.
7757
7758 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
7759
7760         * libc/machine/spu/setjmp.S: Fix to handle registers past 115
7761         correctly.
7762
7763 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
7764
7765         * libc/include/alloca.h: Add undef alloca to work with xlc.
7766
7767 2006-12-12  Joel Schopp <jschopp@austin.ibm.com>
7768
7769         * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
7770         cell spu.
7771
7772 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
7773
7774         * libc/machine/spu/strncpy.c: Add padding.
7775
7776 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
7777
7778         * testsuite/newlib.string/tstring.c:
7779
7780 2006-12-01  Kazunori Asayama  <asayama@sm.sony.co.jp>
7781
7782         * libc/machine/spu/strchr.c: Fix mask for misaligned string.
7783         * libc/machine/spu/strrchr.c: Ditto.
7784
7785 2006-11-30  Lev Bishop  <lev.bishop@gmail.com>
7786
7787         * libc/include/math.h: Allow C99 functions/macros to be
7788         defined for C++ even when __STRICT_ANSI__.
7789
7790 2006-11-29  Jeff Johnston  <jjohnstn@redhat.com>
7791
7792         * libc/stdio/makebuf.c (__smakebuf): If dealing with
7793         an asprintf-family buffer, make the default initial size 64.
7794
7795 2006-11-29  Eric Blake  <ebb9@byu.net>
7796
7797         * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
7798         asprintf, as well as quadratic realloc behavior.
7799
7800 2006-11-29  Kazunori Asayama  <asayama@sm.sony.co.jpi
7801
7802         * libc/machine/spu/memset.c: Fix type of explicit cast.
7803         * libc/machine/spu/strncmp.c: Add explicit cast.
7804         * libc/machine/spu/strrchr.c: Ditto.
7805         * libc/machine/spu/strspn.c: Ditto.
7806
7807 2006-11-22  Luca Barbato  <lu_zero@gentoo.org>
7808
7809         * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
7810         * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
7811         * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
7812         * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
7813         * libc/machine/spu/strncat.c: Explicit cast.
7814         * libc/machine/spu/strncmp.c: Use spu_splats.
7815         * libc/machine/spu/strncpy.c: Explicit cast.
7816         * libc/machine/spu/strrchr.c: Use spu_splats.
7817         * libc/machine/spu/strspn.c: Use spu_splats.
7818
7819 2006-11-15  Till Straumann  <strauman@slac.stanford.edu>
7820
7821         * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
7822
7823 2006-11-14  Eric Blake  <ebb9@byu.net>
7824
7825         * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
7826         (chclass): ' is a flag.  j, t, and z are modifiers.
7827
7828 2006-11-08  Jie Zhang  <jie.zhang@analog.com>
7829
7830         * configure.host: Add support for bfin.
7831         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
7832         * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
7833         * libc/machine/bfin/aclocal.m4: Generate.
7834         * libc/machine/bfin/configure.in: New.
7835         * libc/machine/bfin/configure: Generate.
7836         * libc/machine/bfin/Makefile.am: New.
7837         * libc/machine/bfin/Makefile.in: Generate.
7838         * libc/machine/bfin/setjmp.S: New.
7839         * libc/machine/bfin/longjmp.S: New.
7840         * libc/machine/configure.in: Add bfin support.
7841         * libc/machine/configure: Generate.
7842
7843 2006-11-07  Corinna Vinschen  <corinna@vinschen.de>
7844
7845         * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
7846         (_PC_FILESIZEBITS): Add definition.
7847         (_PC_2_SYMLINKS): Ditto.
7848         (_PC_SYMLINK_MAX): Ditto.
7849
7850 2006-10-27  Joel Schopp  <jschopp@austin.ibm.com>
7851
7852         * libc/machine/spu/memcpy.c: Override generic function with vectorized
7853         version optimized for the cell spu.
7854         * libc/machine/spu/memmove.c: Ditto.
7855         * libc/machine/spu/memset.c: Ditto.
7856         * libc/machine/spu/strcat.c: Ditto.
7857         * libc/machine/spu/strchr.c: Ditto.
7858         * libc/machine/spu/strcmp.c: Ditto.
7859         * libc/machine/spu/strcpy.c: Ditto.
7860         * libc/machine/spu/strcspn.c: Ditto.
7861         * libc/machine/spu/strlen.c: Ditto.
7862         * libc/machine/spu/strncat.c: Ditto.
7863         * libc/machine/spu/strncmp.c: Ditto.
7864         * libc/machine/spu/strncpy.c: Ditto.
7865         * libc/machine/spu/strpbrk.c: Ditto.
7866         * libc/machine/spu/strrchr.c: Ditto.
7867         * libc/machine/spu/strspn.c: Ditto.
7868         * libc/machine/spu/strxfrm.c: Ditto.
7869         * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
7870         removing altivec style initializers.
7871         * libc/machine/spu/Makefile.am: Add new files to list so they build
7872         * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
7873
7874 2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>
7875
7876         * README: Add a brief section on how to regenerate
7877         configuration files in newlib.
7878
7879 2006-10-25  Vladimir Prus  <vladimir@codesourcery.com>
7880
7881         * libc/include/math.h: (exception): Add a comment
7882         telling fixincludes that we handle C vs. C++ issue.
7883
7884 2006-10-11  Yang Tse  <yangsita@gmail.com>
7885
7886         * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
7887         braced-groups.
7888
7889 2006-10-11  Corinna Vinschen  <corinna@vinschen.de>
7890
7891         * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
7892
7893 2006-09-26  Jeff Johnston  <jjohnstn@redhat.com>
7894
7895         * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
7896         for clearerr, feof, or fileno.
7897         * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
7898         the dummy std stream scheme to use pointers to const external
7899         fake files, one for each standard stream.
7900         * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
7901         argument.  For _REENT_SMALL, reset the file pointer if it
7902         matches one of the fake std stream pointers.
7903         * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
7904         argument.
7905         * libc/stdio/fclose.c: Ditto.
7906         * libc/stdio/feof.c: Ditto.
7907         * libc/stdio/ferror.c: Ditto.
7908         * libc/stdio/fflush.c: Ditto.
7909         * libc/stdio/fgetc.c: Ditto.
7910         * libc/stdio/fgets.c: Ditto.
7911         * libc/stdio/fileno.c: Ditto.
7912         * libc/stdio/findfp.c: Ditto.
7913         * libc/stdio/fputc.c: Ditto.
7914         * libc/stdio/fputs.c: Ditto.
7915         * libc/stdio/fread.c: Ditto.
7916         * libc/stdio/freopen.c: Ditto.
7917         * libc/stdio/fseek.c: Ditto.
7918         * libc/stdio/ftell.c: Ditto.
7919         * libc/stdio/fwrite.c: Ditto.
7920         * libc/stdio/getc.c: Ditto.
7921         * libc/stdio/getdelim.c: Ditto.
7922         * libc/stdio/putc.c: Ditto.
7923         * libc/stdio/refill.c: Ditto.
7924         * libc/stdio/setvbuf.c: Ditto.
7925         * libc/stdio/ungetc.c: Ditto.
7926         * libc/stdio/vfprintf.c: Ditto.
7927         * libc/stdio/vfscanf.c: Ditto.
7928         * libc/stdio/wbuf.c: Ditto.: Ditto.
7929         * libc/stdio/wsetup.c: Ditto.
7930         * libc/stdio64/freopen64.c: Ditto.
7931         * libc/stdio64/fseeko64.c: Ditto.
7932         * libc/stdio64/ftello64.c: Ditto.
7933         * libc/machine/powerpc/vfprintf.c: Ditto.
7934         * libc/machine/powerpc/vfscanf.c: Ditto.
7935
7936 2006-09-22  Paul Brook  <paul@codesourcery.com>
7937
7938         * libc/include/sys/reent.h: Define and use __reent_assert.
7939
7940 2006-09-13  Joel Sherrill <joel@oarcorp.com>
7941
7942         * libc/include/pthread.h: Add pthread barriers,
7943         rwlocks, and spinlocks.  Change const to
7944         _CONST and prefix parameter names with
7945         an underscore.
7946         * libc/include/sys/types.h: Add id and attribute
7947         types for barriers, wrlocks, and spinlocks.
7948         * libc/include/sys/features.h: Enable barriers,
7949         wrlocks, and spinlocks for RTEMS.
7950
7951 2006-09-13  Patrick Mansfield <patmans@us.ibm.com>
7952
7953         * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
7954         supposed to be writable.
7955         * libm/common/s_lib_ver.c: Ditto.
7956
7957 2006-09-12  Paul Brook  <paul@codesourcery.com>
7958
7959         * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
7960
7961 2006-09-07  Masaki Muranaka  <monaka@monami-software.com>
7962
7963
7964         * libc/machine/xstormy16/Makefile.am:
7965         Add $(lpfx) prefix to LIBADD objects.
7966         lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
7967         * libc/machine/xstormy16/Makefile.in: Regenerated.
7968
7969 2006-09-06  Eric Blake  <ebb9@byu.net>
7970
7971         * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
7972         't', and 'z' modifiers.
7973
7974 2006-09-01  Kazu Hirata  <kazu@codesourcery.com>
7975
7976         Merge from newlib-csl-20060320-branch:
7977         2006-05-22  Sandra Loosemore <sandra@codesourcery.com>
7978
7979         * configure.host: Tell it we have _rename and _system when
7980         building m68k-unknown-elf.
7981
7982 2006-08-29  Paul Brook  <paul@codesourcery.com>
7983
7984         * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
7985
7986 2006-08-27  Joel Sherrill <joel.sherrill@OARcorp.com>
7987
7988         * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
7989         BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
7990         This is needed to build all AVR and H8300 RTEMS multilib variants.
7991
7992 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
7993
7994         * libc/machine/configure.in: Add configuration for SPU.
7995         * libc/machine/configure: Regenerated.
7996         * libc/machine/spu/memcpy.c: Include string.h.
7997
7998 2006-08-22  Eric Blake  <ebb9@byu.net>
7999
8000         * libc/posix/popen.c (popen): Don't close output end of pipe in
8001         child if stdout was closed on entry.
8002         [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
8003
8004 2006-08-19  Ramana Radhakrishnan  <ramana.r@gmail.com>
8005
8006         * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
8007         line.
8008
8009 2006-08-17  Brian Ford  <Brian.Ford@FlightSafety.com>
8010
8011         * libc/time/gmtime.c: Correct man page; clock is not a
8012         local time and no conversion occurs.
8013
8014 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
8015
8016         * configure.host (newlib_cflags) [spu]: Add special compiler
8017         options to reduce size.
8018
8019 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
8020
8021         * configure.host: Add spu support.
8022         * libc/include/stdint.h: Ditto.
8023         * libc/include/machine/ieeefp.h: Ditto.
8024         * libc/include/machine/setjmp.h: Ditto.
8025         * libc/include/sys/config.h: Ditto.
8026         * libc/include/sys/types.h: Ditto.
8027         * libc/machine/spu/Makefile.am: New file.
8028         * libc/machine/spu/Makefile.in: Ditto.
8029         * libc/machine/spu/aclocal.m4: Ditto.
8030         * libc/machine/spu/configure: Ditto.
8031         * libc/machine/spu/configure.in: Ditto.
8032         * libc/machine/spu/memcpy.c: Ditto.
8033         * libc/machine/spu/setjmp.S: Ditto.
8034
8035 2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
8036
8037         * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
8038         properly.
8039
8040 2006-08-01  Jeff Johnston  <jjohnstn@redhat.com>
8041
8042         * libc/Makefile.am: Add libc_TEXINFOS dependency on
8043         generated .texi files.
8044         * libm/Makefile.am: Add libm_TEXINFOS dependency on
8045         generated .texi files.
8046         * libc/Makefile.in: Regenerated.
8047         * libm/Makefile.in: Ditto.
8048
8049 2006-08-01  Thiemo Seufer  <ths@mips.com>
8050             Nigel Stephens  <nigel@mips.com>
8051
8052         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
8053         define this to force _impure_ptr to live in the .sdata section.
8054
8055 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
8056
8057         * acinclude.m4: Check for readelf tool.
8058         * configure.in: Use ${READELF} instead of hard-coding.
8059         * Regenerate all aclocal.m4, Makefile.in, and configure files.
8060
8061 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
8062
8063         * libc/sys/linux/mmap.c: Remove include of sys/mman.h
8064         to avoid conflict with newer glibc's revision of mremap.
8065
8066 2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>
8067
8068         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
8069         floating-point format support.  Also redefine
8070         dword0 and dword1 macros.
8071         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
8072         to prevent setting dword1 which is an rvalue only.
8073
8074 2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>
8075
8076         * libc/stdlib/Makefile.am: Add new gdtoa routines.
8077         * libc/stdlib/Makefile.in: Regenerated.
8078         * libc/stdlib/gd_qnan.h: New file.
8079         * libc/stdlib/gdtoa-gethex.c: Ditto.
8080         * libc/stdlib/gdtoa-hexnan.c: Ditto.
8081         * libc/stdlib/gdtoa.h: Ditto.
8082         * libc/stdlib/mprec.c: Add new helper routines needed by
8083         the new gdtoa code.
8084         * libc/stdlib/mprec.h: Integrate some defines and prototypes
8085         used by gdtoa routines here.
8086         * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
8087         which adds C99 support such as nan, inf, and hexadecimal input
8088         format.
8089
8090 2006-06-15  Corinna Vinschen  <corinna@vinschen.de>
8091
8092         * libc/include/stdio.h (__sgetc_r): Fix typo.
8093         * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
8094         * libc/stdio/rget.c (__srbuf): Reinstantiate.
8095         * libc/stdio/wbuf.c (__swbuf): Ditto.
8096
8097 2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>
8098
8099         * libc/include/stdio.h: Add new reentrant I/O prototypes for
8100         read/write functions.  Change getc/putc macros to have reentrant underlying
8101         macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
8102         * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
8103         new reentrant I/O functions/macros for reading/writing.
8104         * libc/stdio/fgets.c: Ditto.
8105         * libc/stdio/fputc.c: Ditto.
8106         * libc/stdio/fputs.c: Ditto.
8107         * libc/stdio/fread.c: Ditto.
8108         * libc/stdio/fseek.c: Ditto.
8109         * libc/stdio64/fseeko64.c: Ditto.
8110         * libc/stdio/fwrite.c: Ditto.
8111         * libc/stdio/getc.c: Ditto.
8112         * libc/stdio/getc_u.c: Ditto.
8113         * libc/stdio/getchar.c: Ditto.
8114         * libc/stdio/getchar_u.c: Ditto.
8115         * libc/stdio/putc.c: Ditto.
8116         * libc/stdio/putc_u.c: Ditto.
8117         * libc/stdio/putchar.c: Ditto.
8118         * libc/stdio/puts.c: Ditto.
8119         * libc/stdio/vfprintf.c: Ditto.
8120         * libc/stdio/vfscanf.c: Ditto.
8121         * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
8122         Change all previous callers of __sfvwrite.  Set errno to EBADF and
8123         set error flag on if attempt is made to write to file that does not
8124         allow writing.
8125         * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
8126         * libc/stdio/local.h: Ditto.
8127         * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
8128         Set errno to EBADF and the error flag on if attempt is made to
8129         read unreadable file.  Change all previous callers of __srefill.
8130         * libc/stdio/rget.c
8131         * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
8132         all previous callers of __swbuf.
8133         * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
8134         huge value macros are already defined correctly for i386 by <math.h>.
8135
8136 2006-06-13  Sandra Loosemore <sandra@codesourcery.com>
8137
8138         * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
8139         Make them do something useful in the ARM_RDI_MONITOR case.
8140
8141 2006-06-07  Fred Fish  <fnf@specifix.com>
8142
8143         * libc/search/hash_bigkey.c (MIN,MAX): Remove
8144         defines that are already supplied by <sys/param.h>.
8145
8146 2006-06-07  Fred Fish  <fnf@specifix.com>
8147
8148         * configure.host: Remove references to HAVE_GETTIMEOFDAY.
8149
8150 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
8151
8152         * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
8153         usleep.c.
8154         * libc/posix/Makefile.in: Regenerate.
8155         * libc/posix/sleep.c: New file.
8156         * libc/posix/usleep.c: Ditto.
8157
8158 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
8159
8160         * configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
8161         -DABORT_PROVIDED flag.
8162         * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
8163         * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
8164
8165 2006-06-05  Jeff Johnston  <jjohnstn@redhat.com>
8166
8167         * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
8168         * Makefile.in: Regenerated.
8169         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
8170         extraneous CFLAGS reference now that CCASFLAGS are being extended
8171         properly via multilib.
8172         * libc/machine/sh/Makefile.in: Regenerated.
8173
8174 2006-06-02  Shaun Jackman  <sjackman@gmail.com>
8175
8176         * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
8177         sigismember.
8178
8179 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
8180
8181         * libc/misc/dprintf.c: Removed.
8182         * libc/misc/__dprintf.c: Renamed from dprintf.c.
8183         * libc/misc/Makefile.am: Changed appropriately for rename.
8184         * libc/misc/Makefile.in: Regenerated.
8185
8186 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
8187
8188         * libc/include/stdio.h: Protect dprintf prototype
8189         with #ifndef dprintf so as to not interfere with
8190         historical code defining their own dprintf macro.
8191
8192 2006-05-18  Jeff Johnston  <jjohnstn@redhat.com>
8193
8194         * libc/include/stdio.h: Add prototypes for fiscanf,
8195         iscanf, and siscanf.
8196
8197 2006-05-11  J"orn Rennecke <joern.rennecke@st.com>
8198
8199         * acinclude.m4 (_NEWLIB_VERSION): Rename to:
8200         (DEF_NEWLIB_VERSION).
8201         * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
8202         * configure: Regenerate.
8203
8204 2006-05-09  Jeff Johnston  <jjohnstn@redhat.com>
8205
8206         * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
8207         lib_a_SOURCES.
8208         * libc/ctype/Makefile.in: Regenerated.
8209
8210 2006-05-09  Kazu Hirata  <kazu@codesourcery.com>
8211
8212         * libc/machine/arm/Makefile.am: Fix a typo.
8213         * libc/machine/arm/Makefile.in: Regenerated.
8214
8215 2006-05-08  J"orn Rennecke <joern.rennecke@st.com>
8216
8217         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
8218         * libc/machine/sh/Makefile.in: Regenerate.
8219
8220 2006-05-03  J"orn Rennecke <joern.rennecke@st.com>
8221
8222         * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
8223         * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
8224
8225 2006-05-02  Jeff Johnston  <jjohnstn@redhat.com>
8226
8227         * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
8228         .s.
8229         * libc/sys/sysnec810/Makefile.in: Regenerated.
8230         * libc/sys/sysnec810/crt0.S: Renamed from .s file.
8231         * libc/sys/sysnec810/io.S: Ditto.
8232         * libc/sys/sysnec810/crt0.s: Renamed to .S file.
8233         * libc/sys/sysnec810/io.s: Ditto.
8234
8235 2006-05-01  Jeff Johnston  <jjohnstn@redhat.com>
8236
8237         * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
8238         be specified instead of object, do so.
8239         * libc/ctype/Makefile.am: Ditto.
8240         * libc/iconv/ccs/Makefile.am: Ditto.
8241         * libc/iconv/ces/Makefile.am: Ditto.
8242         * libc/iconv/lib/Makefile.am: Ditto.
8243         * libc/locale/Makefile.am: Ditto.
8244         * libc/posix/Makefile.am: Ditto.
8245         * libc/reent/Makefile.am: Ditto.
8246         * libc/search/Makefile.am: Ditto.
8247         * libc/stdio/Makefile.am: Ditto.
8248         * libc/stdio64/Makefile.am: Ditto.
8249         * libc/stdlib/Makefile.am: Ditto.
8250         * libc/string/Makefile.am: Ditto.
8251         * libc/syscalls/Makefile.am: Ditto.
8252         * libc/unix/Makefile.am: Ditto.
8253         * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
8254         prefix added automatically.  Any specified rules must use $(lpfx) for
8255         object file names.
8256         * libc/machine/arm/Makefile.am: Ditto.
8257         * libc/machine/cris/Makefile.am: Ditto.
8258         * libc/machine/crx/Makefile.am: Ditto.
8259         * libc/machine/d10v/Makefile.am: Ditto.
8260         * libc/machine/d30v/Makefile.am: Ditto.
8261         * libc/machine/fr30/Makefile.am: Ditto.
8262         * libc/machine/frv/Makefile.am: Ditto.
8263         * libc/machine/h8300/Makefile.am: Ditto.
8264         * libc/machine/h8500/Makefile.am: Ditto.
8265         * libc/machine/hppa/Makefile.am: Ditto.
8266         * libc/machine/i386/Makefile.am: Ditto.
8267         * libc/machine/i960/Makefile.am: Ditto.
8268         * libc/machine/iq2000/Makefile.am: Ditto.
8269         * libc/machine/m32c/Makefile.am: Ditto.
8270         * libc/machine/m32r/Makefile.am: Ditto.
8271         * libc/machine/m68hc11/Makefile.am: Ditto.
8272         * libc/machine/m68k/Makefile.am: Ditto.
8273         * libc/machine/m88k/Makefile.am: Ditto.
8274         * libc/machine/mips/Makefile.am: Ditto.
8275         * libc/machine/mn10200/Makefile.am: Ditto.
8276         * libc/machine/mn10300/Makefile.am: Ditto.
8277         * libc/machine/mt/Makefile.am: Ditto.
8278         * libc/machine/necv70/Makefile.am: Ditto.
8279         * libc/machine/powerpc/Makefile.am: Ditto.
8280         * libc/machine/sh/Makefile.am: Ditto.
8281         * libc/machine/sh/Makefile.in: Ditto.
8282         * libc/machine/sparc/Makefile.am: Ditto.
8283         * libc/machine/tic4x/Makefile.am: Ditto.
8284         * libc/machine/tic80/Makefile.am: Ditto.
8285         * libc/machine/v850/Makefile.am: Ditto.
8286         * libc/machine/w65/Makefile.am: Ditto.
8287         * libc/machine/xscale/Makefile.am: Ditto.
8288         * libc/machine/xstormy16/Makefile.am: Ditto.
8289         * libc/machine/z8k/Makefile.am: Ditto.
8290         * libc/sys/a29khif/Makefile.am: Ditto.
8291         * libc/sys/arm/Makefile.am: Ditto.
8292         * libc/sys/d10v/Makefile.am: Ditto.
8293         * libc/sys/h8300hms/Makefile.am: Ditto.
8294         * libc/sys/h8500hms/Makefile.am: Ditto.
8295         * libc/sys/linux/Makefile.am: Ditto.
8296         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
8297         * libc/sys/linux/net/Makefile.am: Ditto.
8298         * libc/sys/linux/stdlib/Makefile.am: Ditto.
8299         * libc/sys/m88kbug/Makefile.am: Ditto.
8300         * libc/sys/mmixware/Makefile.am: Ditto.
8301         * libc/sys/rdos/Makefile.am: Ditto.
8302         * libc/sys/rtems/Makefile.am: Ditto.
8303         * libc/sys/sh/Makefile.am: Ditto.
8304         * libc/sys/sun4/Makefile.am: Ditto.
8305         * libc/sys/sysmec/Makefile.am: Ditto.
8306         * libc/sys/sysnec810/Makefile.am: Ditto.
8307         * libc/sys/sysnecv850/Makefile.am: Ditto.
8308         * libc/sys/sysvi386/Makefile.am: Ditto.
8309         * libc/sys/sysvnecv70/Makefile.am: Ditto.
8310         * libc/sys/tic80/Makefile.am: Ditto.
8311         * libc/sys/w65/Makefile.am: Ditto.
8312         * libc/sys/z8ksim/Makefile.am: Ditto.
8313         * libc/machine/necv70/fastmath.S: Renamed from .s file.
8314         * libc/machine/necv70/setjmp.S: Ditto.
8315         * libc/machine/necv70/fastmath.s: Removed.
8316         * libc/machine/necv70/setjmp.s: Ditto.
8317         * libc/machine/w65/*.S: New files renamed from .s files.
8318         * libc/machine/w65/*.s: Renamed and removed.
8319         * libc/sys/a29khif/*.S: New files renamed from .s files.
8320         * libc/sys/a29khif/*.s: Renamed and removed.
8321         * libc/sys/sysvi386/*.S: New files renamed from .s files.
8322         * libc/sys/sysvi386/*.s: Renamed and removed.
8323         * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
8324         * libc/sys/sysvnecv70/*.s: Renamed and removed.
8325         * libc/*Makefile.in: Regenerated as appropriate.
8326
8327 2006-04-24  DJ Delorie  <dj@redhat.com>
8328
8329         * libc/machine/sh/configure.in: Avoid link tests.
8330         * libc/machine/sh/configure: Regenerate.
8331
8332 2006-04-18  Jeff Johnston  <jjohnstn@redhat.com>
8333
8334         * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
8335         (sigaddset, sigemptyset): Add return code.
8336
8337 2006-04-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
8338
8339         * acinclude.m4: New _NEWLIB_VERSION.
8340         * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
8341         Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
8342         Use new form of AC_INIT_AUTOMAKE.
8343         * configure.in: AC_PREREQ(2.59).
8344         Use autoconf-2.5.x version of AC_INIT.
8345         Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
8346         autoconf-2.13's AC_OUTPUT.
8347         * libm/configure.in: Ditto.
8348         * libm/machine/configure.in: Ditto.
8349         * libm/machine/i386/configure.in: Ditto.
8350         * libc/configure.in: Ditto.
8351         * libc/machine/a29k/configure.in: Ditto.
8352         * libc/machine/arm/configure.in: Ditto.
8353         * libc/machine/configure.in: Ditto.
8354         * libc/machine/mn10300/configure.in: Ditto.
8355         * libc/machine/powerpc/configure.in: Ditto.
8356         * libc/machine/z8k/configure.in: Ditto.
8357         * libc/machine/h8300/configure.in: Ditto.
8358         * libc/machine/mips/configure.in: Ditto.
8359         * libc/machine/crx/configure.in: Ditto.
8360         * libc/machine/m68hc11/configure.in: Ditto.
8361         * libc/machine/h8500/configure.in: Ditto.
8362         * libc/machine/xscale/configure.in: Ditto.
8363         * libc/machine/d10v/configure.in: Ditto.
8364         * libc/machine/fr30/configure.in: Ditto.
8365         * libc/machine/sh/configure.in: Ditto.
8366         * libc/machine/tic80/configure.in: Ditto.
8367         * libc/machine/m32r/configure.in: Ditto.
8368         * libc/machine/xstormy16/configure.in: Ditto.
8369         * libc/machine/i386/configure.in: Ditto.
8370         * libc/machine/d30v/configure.in: Ditto.
8371         * libc/machine/mn10200/configure.in: Ditto.
8372         * libc/machine/frv/configure.in: Ditto.
8373         * libc/machine/mt/configure.in: Ditto.
8374         * libc/machine/i960/configure.in: Ditto.
8375         * libc/machine/v850/configure.in: Ditto.
8376         * libc/machine/necv70/configure.in: Ditto.
8377         * libc/machine/tic4x/configure.in: Ditto.
8378         * libc/machine/cris/configure.in: Ditto.
8379         * libc/machine/m68k/configure.in: Ditto.
8380         * libc/machine/m32c/configure.in: Ditto.
8381         * libc/machine/hppa/configure.in: Ditto.
8382         * libc/machine/w65/configure.in: Ditto.
8383         * libc/machine/iq2000/configure.in: Ditto.
8384         * libc/machine/sparc/configure.in: Ditto.
8385         * libc/machine/m88k/configure.in: Ditto.
8386         * libc/sys/linux/configure.in: Ditto.
8387         * libc/sys/linux/machine/configure.in: Ditto.
8388         * libc/sys/linux/machine/i386/configure.in: Ditto.
8389         * libc/sys/linux/linuxthreads/configure.in: Ditto.
8390         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
8391         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
8392         * libc/sys/arm/configure.in: Ditto.
8393         * libc/sys/configure.in: Ditto.
8394         * libc/sys/decstation/configure.in: Ditto.
8395         * libc/sys/a29khif/configure.in: Ditto.
8396         * libc/sys/sysnecv850/configure.in: Ditto.
8397         * libc/sys/d10v/configure.in: Ditto.
8398         * libc/sys/netware/configure.in: Ditto.
8399         * libc/sys/mmixware/configure.in: Ditto.
8400         * libc/sys/h8500hms/configure.in: Ditto.
8401         * libc/sys/sh/configure.in: Ditto.
8402         * libc/sys/tic80/configure.in: Ditto.
8403         * libc/sys/rdos/configure.in: Ditto.
8404         * libc/sys/sysmec/configure.in: Ditto.
8405         * libc/sys/sysvi386/configure.in: Ditto.
8406         * libc/sys/h8300hms/configure.in: Ditto.
8407         * libc/sys/sparc64/configure.in: Ditto.
8408         * libc/sys/arc/configure.in: Ditto.
8409         * libc/sys/sysnec810/configure.in: Ditto.
8410         * libc/sys/m88kbug/configure.in: Ditto.
8411         * libc/sys/sysvnecv70/configure.in: Ditto.
8412         * libc/sys/z8ksim/configure.in: Ditto.
8413         * libc/sys/rtems/configure.in: Ditto.
8414         * libc/sys/w65/configure.in: Ditto.
8415         * libc/sys/sun4/configure.in: Ditto.
8416         * doc/configure.in: Ditto.
8417         * iconvdata/configure.in: Ditto.
8418         * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
8419
8420 2006-04-11  Jeff Johnston  <jjohnstn@redhat.com>
8421
8422         * acinclude.m4: Properly add square brackets for
8423         AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
8424         macros no longer available.  Add LIB_AM_PROG_AS to
8425         remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
8426         macro.  Substitute lpfx (library object prefix).
8427         * configure.host: Set lpfx depending on whether
8428         libtool is used or not.
8429         * configure.in: Individually specify libc and libm
8430         to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
8431         necessary.
8432         * Makefile.am: Use $(lpfx) to get object names for
8433         math-library functions that should also be in libc.
8434         * libc/machine/configure.in: Use case statement to determine
8435         AC_CONFIG_SUBDIRS statement.
8436         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
8437         * libc/sys/linux/machine/configure.in: Ditto.
8438         * libc/sys/configure.in: Ditto.
8439         * libm/machine/configure.in: Ditto.
8440         * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
8441         * libm/configure.in: Add AM_CONDITIONAL statement
8442         for HAVE_LIBM_MACHINE_DIR.
8443         * libc/machine/a29k/Makefile.am: Modified to work with
8444         latest automake.  Change includes setting AM_CCASFLAGS
8445         so building .S files will properly pick up flags used
8446         to build C files.
8447         * libc/machine/arm/Makefile.am: Ditto.
8448         * libc/machine/crx/Makefile.am: Ditto.
8449         * libc/machine/d10v/Makefile.am: Ditto.
8450         * libc/machine/d30v/Makefile.am: Ditto.
8451         * libc/machine/fr30/Makefile.am: Ditto.
8452         * libc/machine/frv/Makefile.am: Ditto.
8453         * libc/machine/h8300/Makefile.am: Ditto.
8454         * libc/machine/h8500/Makefile.am: Ditto.
8455         * libc/machine/hppa/Makefile.am: Ditto.
8456         * libc/machine/i386/Makefile.am: Ditto.
8457         * libc/machine/iq2000/Makefile.am: Ditto.
8458         * libc/machine/m32c/Makefile.am: Ditto.
8459         * libc/machine/m32r/Makefile.am: Ditto.
8460         * libc/machine/m68hc11/Makefile.am: Ditto.
8461         * libc/machine/m68k/Makefile.am: Ditto.
8462         * libc/machine/m88k/Makefile.am: Ditto.
8463         * libc/machine/mips/Makefile.am: Ditto.
8464         * libc/machine/mn10200/Makefile.am: Ditto.
8465         * libc/machine/mn10300/Makefile.am: Ditto.
8466         * libc/machine/mt/Makefile.am: Ditto.
8467         * libc/machine/necv70/Makefile.am: Ditto.
8468         * libc/machine/powerpc/Makefile.am: Ditto.
8469         * libc/machine/sh/Makefile.am: Ditto.
8470         * libc/machine/sparc/Makefile.am: Ditto.
8471         * libc/machine/tic4x/Makefile.am: Ditto.
8472         * libc/machine/tic80/Makefile.am: Ditto.
8473         * libc/machine/v850/Makefile.am: Ditto.
8474         * libc/machine/w65/Makefile.am: Ditto.
8475         * libc/machine/xscale/Makefile.am: Ditto.
8476         * libc/machine/xstormy16/Makefile.am: Ditto.
8477         * libc/machine/z8k/Makefile.am: Ditto.
8478         * libc/sys/a29khif/Makefile.am: Ditto.
8479         * libc/sys/arc/Makefile.am: Ditto.
8480         * libc/sys/arm/Makefile.am: Ditto.
8481         * libc/sys/d10v/Makefile.am: Ditto.
8482         * libc/sys/decstation/Makefile.am: Ditto.
8483         * libc/sys/h8300hms/Makefile.am: Ditto.
8484         * libc/sys/h8500hms/Makefile.am: Ditto.
8485         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
8486         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
8487         * libc/sys/m88kbug/Makefile.am: Ditto.
8488         * libc/sys/mmixware/Makefile.am: Ditto.
8489         * libc/sys/netware/Makefile.am: Ditto.
8490         * libc/sys/rdos/Makefile.am: Ditto.
8491         * libc/sys/rtems/Makefile.am: Ditto.
8492         * libc/sys/sh/Makefile.am: Ditto.
8493         * libc/sys/sparc64/Makefile.am: Ditto.
8494         * libc/sys/sysmec/Makefile.am: Ditto.
8495         * libc/sys/sysnec810/Makefile.am: Ditto.
8496         * libc/sys/sysnecv850/Makefile.am: Ditto.
8497         * libc/sys/sysvi386/Makefile.am: Ditto.
8498         * libc/sys/sysvnecv70/Makefile.am: Ditto.
8499         * libc/sys/tic80/Makefile.am: Ditto.
8500         * libc/sys/w65/Makefile.am: Ditto.
8501         * libc/sys/z8ksim/Makefile.am: Ditto.
8502         * libm/machine/i386/Makefile.am: Ditto.
8503         * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
8504         trap.S so that automake will generate a .S.o suffix rule.
8505         * libc/argz/Makefile.am: Modified to work with
8506         latest automake.  Change includes adding lib_a_CFLAGS
8507         so automake doesn't complain about libtool and non-libtool
8508         libraries sharing objects.
8509         * libc/ctype/Makefile.am: Ditto.
8510         * libc/errno/Makefile.am: Ditto.
8511         * libc/iconv/ccs/Makefile.am: Ditto.
8512         * libc/iconv/ces/Makefile.am: Ditto.
8513         * libc/iconv/lib/Makefile.am: Ditto.
8514         * libc/locale/Makefile.am: Ditto.
8515         * libc/misc/Makefile.am: Ditto.
8516         * libc/posix/Makefile.am: Ditto.
8517         * libc/reent/Makefile.am: Ditto.
8518         * libc/search/Makefile.am: Ditto.
8519         * libc/signal/Makefile.am: Ditto.
8520         * libc/stdio/Makefile.am: Ditto.
8521         * libc/stdio64/Makefile.am: Ditto.
8522         * libc/stdlib/Makefile.am: Ditto.
8523         * libc/string/Makefile.am: Ditto.
8524         * libc/sys/linux/Makefile.am: Ditto.
8525         * libc/sys/linux/argp/Makefile.am: Ditto.
8526         * libc/sys/linux/cmath/Makefile.am: Ditto.
8527         * libc/sys/linux/dl/Makefile.am: Ditto.
8528         * libc/sys/linux/iconv/Makefile.am: Ditto.
8529         * libc/sys/linux/intl/Makefile.am: Ditto.
8530         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
8531         * libc/sys/linux/net/Makefile.am: Ditto.
8532         * libc/sys/linux/stdlib/Makefile.am: Ditto.
8533         * libc/syscalls/Makefile.am: Ditto.
8534         * libc/time/Makefile.am: Ditto.
8535         * libc/unix/Makefile.am: Ditto.
8536         * libm/Makefile.am: Ditto.
8537         * libm/common/Makefile.am: Ditto.
8538         * libm/math/Makefile.am: Ditto.
8539         * libm/mathfp/Makefile.am: Ditto.
8540         * Regenerate all aclocal.m4, Makefile.in, and configure files.
8541
8542 2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
8543
8544         * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
8545         anymore.  Assume there is a gettimeofday syscall.
8546
8547 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
8548
8549         * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
8550         for the declaration of n_long.
8551
8552 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
8553
8554         * libc/sys/linux/include/net/if.h: Include sys/socket.h for
8555         struct sockaddr.
8556         (IFF_SMART): Replace this define with IFF_NOTRAILERS.
8557         (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
8558         (IFF_NOTRAILERS): New define.
8559         (struct ifreq): Add ifru_netmask.
8560         (ifr_netmask): New define.
8561
8562 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
8563
8564         * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
8565         match sys/ioctl.h.
8566
8567 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
8568
8569         * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
8570         linux-newlib libc implementations.
8571
8572 2006-03-29  Eric Blake  <ebb9@byu.net>
8573
8574         * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
8575         * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
8576
8577 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
8578
8579         * libc/sys/linux/io.c (__mknod): Fix declaration of
8580         syscall to pass a dev_t as third argument rather than
8581         a pointer to dev_t.
8582
8583 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
8584
8585         * libc/sys/linux/net/name6.c: Fix struct references.
8586
8587 2006-03-22  Mark Mitchell  <mark@codesourcery.com>
8588
8589         * configure.host: Allow hosts to set the default
8590         newlib_atexit_dynamic_alloc value.
8591         * configure.in: Likewise.
8592         * configure: Regenerated.
8593
8594 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
8595
8596         * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
8597         * configure.in (--disable-newlib-atexit-dynamic-alloc): New
8598         option.
8599         * configure: Regenerated.
8600         * newlib.hin: Regenerated.
8601         * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
8602         if _ATEXIT_DYNAMIC_ALLOC is undefined.
8603         * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
8604         if _ATEXIT_DYNAMIC_ALLOC is undefined.
8605
8606 2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>
8607
8608         * libc/sys/linux/linuxthreads/config.h: Remove definition
8609         of UINT32_C.
8610
8611 2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>
8612
8613         * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
8614         for a string I/O file that isn't using the asprintf family.
8615
8616 2006-03-07  Eric Blake  <ebb9@byu.net>
8617
8618         * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
8619         filename, allow read-only or write-only FILE atop O_RDWR file
8620         descriptor.
8621         * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
8622
8623 2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>
8624
8625         * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
8626         * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
8627
8628 2006-03-02  Jeff Johnston  <jjohnstn@redhat.com>
8629
8630         * libm/math/math.tex: Fix reference to sisnan.def which
8631         is now in common subdirectory.
8632         * libm/mathfp/mathfp.tex: Ditto.
8633
8634 2006-02-27  Jeff Johnston  <jjohnstn@redhat.com>
8635
8636         * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
8637         s_isnand, and sf_isnanf object files.
8638         * Makefile.in: Regenerated.
8639         * libc/include/ieeefp.h: Undef isnan and isinf to avoid
8640         conflict if <math.h> has previously been included.
8641         * libc/include/math.h
8642         * libc/include/math.h: Make isnan and isinf macros to
8643         conform to C99.
8644         (__isinfd, __isinff, __isnand, __isnanf): New functions.
8645         * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
8646         and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
8647         sf_isinf files which have been moved from math/mathfp directories.
8648         * libm/common/Makefile.in: Regenerated.
8649         * libm/common/s_isinfd.c: New file.
8650         * libm/common/s_isnand.c: Ditto.
8651         * libm/common/sf_isinff.c: Ditto.
8652         * libm/common/sf_isnanf.c: Ditto.
8653         * libm/common/s_isinf.c: Moved from libm/math directory.
8654         * libm/common/s_isnan.c: Ditto.
8655         * libm/common/sf_isinf.c: Ditto.
8656         * libm/common/sf_isnan.c: Ditto.
8657         * libm/math/Makefile.am: Remove isinf and isnan family functions
8658         which have been moved into common directory.
8659         * libm/mathfp/Makefile.am: Ditto.
8660         * libm/math/Makefile.in: Regenerated.
8661         * libm/mathfp/Makefile.in: Ditto.
8662         * libm/math/s_isinf.c: Removed.
8663         * libm/math/s_isnan.c: Ditto.
8664         * libm/math/sf_isinf.c: Ditto.
8665         * libm/math/sf_isnan.c: Ditto.
8666         * libm/mathfp/s_isinf.c: Ditto.
8667         * libm/mathfp/s_isnan.c: Ditto.
8668         * libm/mathfp/sf_isinf.c: Ditto.
8669         * libm/mathfp/sf_isnan.c: Ditto.
8670
8671 2006-02-20  Jeff Johnston  <jjohnstn@redhat.com>
8672
8673         * libc/stdio/fflush.c (fflush): For an fflush on a read-only
8674         stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
8675         * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
8676         seek, turn off the __SNPT no-optimization flag.
8677
8678 2006-02-16  Jeff Johnston  <jjohnstn@redhat.com>
8679
8680         * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
8681         will be defined.
8682         * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
8683         <features.h> to preset special flags.
8684
8685 2006-02-15  Corinna Vinschen  <corinna@vinschen.de>
8686
8687         * libc/include/sys/time.h (struct timeval): Change member types
8688         according to SUSv3.
8689         * libc/include/sys/types.h (useconds_t): Change to unsigned
8690         according to SUSv3.
8691         (suseconds_t): Define type.
8692
8693 2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
8694             David Carne  <davidcarne@gmail.com>
8695
8696         * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
8697         instead of strlen to determine number of bytes to copy.
8698         * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
8699         before looking at storage location.
8700
8701 2006-02-07  Paul Brook  <paul@codesourcery.com>
8702
8703         * libc/machine/arm/setjmp.S: Add Thumb-2 support.
8704         * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
8705         * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
8706         * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
8707         * libc/sys/arm/trap.S: Disable for Thumb-2.
8708
8709 2006-01-31  Leif Ekblad  <leif@rdos.net>
8710
8711         * configure.host: RDOS support added
8712         * libc/include/sys/config.h: Ditto.
8713         * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
8714         * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
8715         * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
8716         * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
8717         * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
8718         * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
8719         * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
8720         * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
8721         * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
8722         * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
8723         * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
8724         * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
8725         * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
8726         * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
8727         * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
8728         * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
8729         * libc/sys/rdos/write.c: Ditto.
8730
8731 2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>
8732
8733         * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
8734         so as not to define PACKAGE and VERSION in newlib.h.
8735         * aclocal.m4: Regenerated.
8736         * configure: Ditto.
8737         * newlib.hin: Ditto.
8738
8739 2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>
8740
8741         * acconfig.h: New file to generate newlib.hin from.
8742         * newlib.hin: Regenerated.
8743         * stamp-h.in: Regenerated.
8744         * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
8745         called automatically.
8746         * Makefile.in: Regenerated.
8747         * acinclude.m4: Add proper comment for hack in previous change.
8748         * aclocal.m4 */aclocal.m4: Regenerated.
8749         * configure */configure: Regenerated.
8750
8751 2006-01-11  Jeff Johnston  <jjohnstn@redhat.com>
8752
8753         * acinclude.m4: Add hack to prevent INSTALL in subdirs
8754         from being set to "../".
8755         * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
8756         * aclocal.m4: Regenerated.
8757         * configure: Ditto.
8758         * Makefile.in: Ditto.
8759         * doc/aclocal.m4: Ditto.
8760         * doc/configure: Ditto.
8761         * iconvdata/aclocal.m4: Ditto.
8762         * iconvdata/configure: Ditto.
8763         * libc/*/aclocal.m4: Ditto.
8764         * libc/*/configure: Ditto.
8765         * libc/libc.texinfo: Ditto.
8766         * libm/*/aclocal.m4: Ditto.
8767         * libm/*/configure: Ditto.
8768
8769 2006-01-10  Eric Blake  <ebb9@byu.net>
8770
8771         * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
8772         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
8773
8774 2006-01-10  Jeff Johnston  <jjohnstn@redhat.com>
8775
8776         * libm/mathfp/s_frexp.c: Check for special values on
8777         the original input, not the manipulated output value.
8778         * libm/mathfp/sf_frexp.c: Ditto.
8779         * libm/mathfp/s_atangent.c: Don't use local value branch
8780         when checking for quadrant.
8781         * libm/mathfp/sf_atangent.c: Ditto.
8782
8783 2006-01-09  Jeff Johnston  <jjohnstn@redhat.com>
8784
8785         * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
8786         * libc/stdio64/freopen64.c: Ditto.
8787
8788 2006-01-09  Eric Blake  <ebb9@byu.net>
8789
8790         * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
8791         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
8792
8793 2006-01-06  Jeff Johnston  <jjohnstn@redhat.com>
8794
8795         * libc/sys/linux/include/getopt.h: Add macros needed by
8796         new version of getopt.c in libc/stdlib.
8797
8798 2006-01-04  Gregory Pietsch  <gpietsch@comcast.net>
8799
8800         * libc/stdlib/getopt.c: Replaced with version
8801         that adds getopt_long and getopt_long_only support.
8802         * libc/include/getopt.h: New file.
8803
8804 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
8805
8806         * NEWS: Update with 1.14.0 info.
8807         * README: Ditto.
8808         * acinclude.m4: Change version number to 1.14.0.
8809         * aclocal.m4: Regenerated.
8810         * configure: Ditto.
8811         * doc/aclocal.m4: Ditto.
8812         * doc/configure: Ditto.
8813         * libc/*/aclocal.m4: Ditto.
8814         * libc/*/configure: Ditto.
8815         * libc/libc.texinfo: Ditto.
8816         * libm/*/aclocal.m4: Ditto.
8817         * libm/*/configure: Ditto.
8818         * libm/libm.texinfo: Ditto.
8819         * libc/sys/linux/shared.ld: Add VERS_1.14.
8820
8821 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
8822
8823         * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
8824         take a pointer to struct stat64 rather than struct stat.
8825
8826 2005-12-16  Ralf Corsepius <ralf.corsepius@rtems.org>
8827
8828         * libc/include/stdint.h: Prefer long over int for int32_t.
8829         Use __have_long32 to set up int32_t.
8830         * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
8831         (Sync with stdint.h).
8832
8833 2005-12-14  Corinna Vinschen  <corinna@vinschen.de>
8834
8835         * libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
8836         typo in O_NDELAY comment.
8837
8838 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
8839
8840         * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
8841         * libc/include/machine/setjmp.h (__mt__): Likewise.
8842         * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
8843         * libc/machine/configure.in: Ditto.
8844
8845 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
8846
8847         * configure.host: Replace ms1 arch with mt arch.
8848         * libc/machine/mt: Renamed from ms1 dir.
8849
8850 2005-12-08  Shaun Jackman  <sjackman@gmail.com>
8851
8852         * libc/include/sys/types.h: Remove the ifdef armour around
8853         standard POSIX types.
8854
8855 2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>
8856
8857         * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
8858         rtems_gxx_key_delete, rtems_gxx_getspecific,
8859         rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
8860         rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
8861         rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
8862
8863 2005-12-05  Christopher Faylor  <cgf@timesys.com>
8864
8865         * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
8866         file.  Declare unsetenv and _unsetenv_r when not cygwin.
8867
8868 2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>
8869
8870         * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
8871         Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
8872
8873 2005-11-18  Christopher Faylor  <cgf@timesys.com>
8874
8875         * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
8876
8877 2005-11-18  Christopher Faylor  <cgf@timesys.com>
8878
8879         * include/time.h: Remove more cygwin-specific stuff.
8880
8881 2005-11-18  Christopher Faylor  <cgf@timesys.com>
8882
8883         * include/time.h: Move cygwin declarations to cygwin-specific header.
8884         * include/sys/time.h: Rename cygwin include to "sys_time.h".
8885
8886 2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>
8887
8888         * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
8889         in libc/sys/linux/include.
8890         * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
8891         * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
8892         * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
8893         in libc/sys/linux/dl.
8894
8895 2005-11-11  Christopher Faylor  <cgf@timesys.com>
8896
8897         * libc/include/sys/time.h: For cygwin, use general header rather than
8898         specific "sys/select.h".
8899
8900 2005-11-08  Tom Walsh  <tom@openhardware.net>
8901
8902         * libc/time/tzvars.c: New file.
8903         * libc/time/tzset_r.c: Moved globals into tzvars.c
8904         so other time functions needn't link in __tzset_r and its
8905         dependencies.
8906         * libc/time/Makefile.am: Add the new file.
8907         * libc/time/Makefile.in: Regenerated.
8908
8909 2005-11-08  Christopher Faylor  <cgf@timesys.com>
8910
8911         * libc/include/string.h: Add cygwin-specific function declaration.
8912
8913 2005-11-07  Corinna Vinschen  <corinna@vinschen.de>
8914
8915         * libc/include/ieeefp.h: Add C++ guards.
8916
8917 2005-11-03  Jeff Johnston  <jjohnstn@redhat.com>
8918
8919         * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
8920         * libc/unix/getlogin.c: Ditto.
8921         * libc/unix/getpass.c: Ditto.
8922         * libc/unix/getut.c: Ditto.
8923         * libc/unix/ttyname.c: Ditto.
8924
8925 2005-11-03  Shaun Jackman  <sjackman@gmail.com>
8926
8927         * libc/include/sys/unistd.h (readlink, symlink): Provide these
8928         prototypes by default.
8929         * libc/sys/linux/include/unistd.h (readlink): Remove this
8930         prototype.
8931         * libc/sys/linux/sys/unistd.h (readlink, symlink): New
8932         prototypes.
8933
8934 2005-11-01  Ralf Corsepius <ralf.corsepius@rtems.org>
8935
8936         * libc/include/stdint.h: Cleanup #if vs. #ifdef.
8937
8938 2005-10-31  Darin Johnson  <darin@usa.net>
8939
8940         * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
8941         correct for constants.
8942
8943 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
8944
8945         * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
8946         * libc/stdio/siscanf.c: Likewise.
8947         * libc/stdio/sprintf.c: Likewise.
8948         * libc/stdio/sscanf.c: Likewise.
8949         * libc/stdio/vfprintf.c: Likewise.
8950         * libc/stdio/vfscanf.c: Likewise.
8951         * libc/stdio/viprintf.c: Likewise.
8952         * libc/stdio/viscanf.c: Likewise.
8953
8954 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
8955
8956         * libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
8957         example to use "_end" symbol instead of "end".  Change write  example
8958         to use "outbyte" instead of "writechar".
8959
8960 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
8961
8962         * libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
8963         * libc/ctype/islower.c: Likewise.
8964         * libc/ctype/isupper.c: Likewise.
8965         * libc/ctype/iswalnum.c: Likewise.
8966         * libc/ctype/iswalpha.c: Likewise.
8967         * libc/ctype/iswblank.c: Likewise.
8968         * libc/ctype/iswcntrl.c: Likewise.
8969         * libc/ctype/iswdigit.c: Likewise.
8970         * libc/ctype/iswgraph.c: Likewise.
8971         * libc/ctype/iswlower.c: Likewise.
8972         * libc/ctype/iswprint.c: Likewise.
8973         * libc/ctype/iswpunct.c: Likewise.
8974         * libc/ctype/iswspace.c: Likewise.
8975         * libc/ctype/iswupper.c: Likewise.
8976         * libc/ctype/iswxdigit.c: Likewise.
8977         * libc/ctype/tolower.c: Likewise.
8978         * libc/ctype/toupper.c: Likewise.
8979         * libc/ctype/towctrans.c: Likewise.
8980         * libc/ctype/towlower.c: Likewise.
8981         * libc/ctype/towupper.c: Likewise.
8982         * libc/string/strcasecmp.c: Likewise.
8983         * libc/string/strcoll.c: Likewise.
8984         * libc/string/strings.tex: Likewise.
8985         * libc/string/strlwr.c: Likewise.
8986         * libc/string/strncasecmp.c: Likewise.
8987         * libc/string/strupr.c: Likewise.
8988         * libc/string/wcscoll.c: Likewise.
8989         * libc/string/wcslcat.c: Likewise.
8990         * libc/string/wcslcpy.c: Likewise.
8991         * libc/string/wcsnlen.c: Likewise.
8992         * libc/string/wcsstr.c: Likewise.
8993         * libc/string/wcstrings.tex: Likewise.
8994         * libc/string/wmemchr.c: Likewise.
8995         * libc/string/wmemcmp.c: Likewise.
8996         * libc/string/wmemcpy.c: Likewise.
8997         * libc/string/wmemmove.c: Likewise.
8998         * libc/string/wmemset.c: Likewise.
8999
9000 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
9001
9002         * libc/misc/unctrl.c: Replace FUNCTION description.
9003         * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
9004         * libc/stdio/getdelim.c: Fix spelling errors.
9005         * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
9006         * libc/stdio/putw.c: Likewise.
9007         * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
9008         documentation.
9009         * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
9010         * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
9011         * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
9012         * libc/stdlib/mlock.c: Likewise.
9013         * libc/stdlib/mstats.c: Likewise.
9014         * libc/time/tzlock.c: Likewise.
9015         * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
9016         * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
9017         and hyphenate "pseudo-random".
9018         * libc/string/bcmp.c: Remove extra blank lines in  documentation.
9019         * libc/string/strncat.c: Likewise.
9020         * libc/string/memchr.c: Remove extra ">" character in  documentation.
9021         * libc/string/strcspn.c: Use "characters" instead of "chars".
9022         * libc/string/strpbrk.c: Likewise.
9023         * libc/string/strerror_r.c: Capitalize "GNU".
9024         * libc/string/strnlen.c: Likewise.
9025         * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
9026         documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
9027         * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
9028         * libc/string/wcschr.c: Likewise.
9029         * libc/string/wcscmp.c: Likewise.
9030         * libc/string/wcscpy.c: Likewise.
9031         * libc/string/wcscspn.c: Likewise.
9032         * libc/string/wcslen.c: Likewise.
9033         * libc/string/wcsncat.c: Likewise.
9034         * libc/string/wcsncmp.c: Likewise.
9035         * libc/string/wcsncpy.c: Likewise.
9036         * libc/string/wcsnlen.c: Likewise.
9037         * libc/string/wcspbrk.c: Likewise.
9038         * libc/string/wcsrchr.c: Likewise.
9039         * libc/string/wcsspn.c: Likewise.
9040         * libc/string/wmemchr.c: Likewise.
9041         * libc/string/wmemcmp.c: Likewise.
9042         * libc/string/wmemcpy.c: Likewise.
9043         * libc/string/wmemset.c: Likewise.
9044         * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
9045         * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
9046         * libc/string/wcwidth.c: Likewise.
9047         * libm/common/s_modf.c: Remove extra period from documentation.
9048         * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
9049         documentation.
9050         * libm/mathfp/s_isnan.c: Likewise.
9051         * libm/math/s_ldexp.c: Fix punctuation.
9052         * libm/mathfp/s_ldexp.c: Likewise.
9053         * libm/math/w_log.c: Likewise.
9054         * libm/mathfp/s_logarithm.c: Likewise.
9055         * libm/math/w_j0.c: Add spaces to FUNCTION description.
9056         * libm/mathfp/w_jn.c: Likewise.
9057
9058 2005-10-26  Shaun Jackman  <sjackman@gmail.com>
9059
9060         * libc/posix/scandir.c (scandir): Update the function
9061         prototype to match the header.
9062         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
9063         extraneous #endif.
9064         * libc/sys/linux/sys/lock.h: Do not include
9065         machine/weakalias.h, since it's not used by this file.
9066
9067 2005-10-26  Jeff Johnston  <jjohnstn@redhat.com>
9068
9069         * libc/Makefile.am: Reorder SUBLIBS so machine and sys
9070         directories can override properly.
9071
9072 2005-10-20  Jeff Johnston  <jjohnstn@redhat.com>
9073
9074         * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
9075         gcc is 3.3 or greater, use special gcc builtins.
9076
9077 2005-10-20  Corinna Vinschen <corinna@vinschen.de>
9078
9079         * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
9080
9081 2005-10-18  Corinna Vinschen <corinna@vinschen.de>
9082
9083         * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
9084
9085 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
9086
9087         * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
9088         * libm/common/Makefile.am: Add s_infconst.c support.
9089         * libm/common/Makefile.in: Regenerated.
9090         * libm/common/s_infconst.c: New file with float and
9091         long double infinity support added.
9092         * libm/math/Makefile.am: Remove s_infconst.c support.
9093         * libm/math/Makefile.in: Regenerated.
9094         * libm/math/s_infconst.c: Moved to common directory.
9095         * libm/mathfp/Makefile.am: Remove s_infconst.c support.
9096         * libm/mathfp/Makefile.in: Regenerated.
9097         * libm/mathfp/s_infconst.c: Moved to common directory.
9098
9099 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
9100
9101         * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
9102         dbgprintf to prevent conflict with new dprintf function.
9103
9104 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
9105
9106         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
9107         "nan" processing for systems that have long double support.
9108
9109 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
9110
9111         * libc/sys/linux/sys/types.h (int8_t): Add type.
9112
9113 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
9114
9115         * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
9116         * libm/common/Makefile.in: Regenerate.
9117         * libm/common/common.tex: Delete file.
9118         * libm/math/math.tex: Include .def files from common/.
9119         * libm/mathfp/mathfp.tex: Likewise.
9120
9121 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
9122
9123         * libc/libc.texinfo (Top): Surround this node with @ifnottex
9124         instead of @ifinfo.  Update menu to add Introduction and match
9125         SUBDIRS order.
9126         (Introduction): New section.
9127
9128 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
9129
9130         * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
9131         with "Red Hat newlib C Library".
9132         * libc/sys.tex (Stubs): Likewise.
9133         * libm/math/math.tex (Math): Likewise.
9134         * libm/mathfp/mathfp.tex (Math): Likewise.
9135
9136 2005-10-11  Shaun Jackman  <sjackman@gmail.com>
9137
9138         * libc/include/stdio.h (dprintf): New declaration.
9139         (vdprintf): Ditto.
9140         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
9141         and vdprintf.c.
9142         * libc/stdio/Makefile.in: Regenerate.
9143         * libc/stdio/dprintf.c: New file.
9144         * libc/stdio/vdprintf.c: New file.
9145         * libc/stdio/stdio.tex (dprintf): New entry.
9146
9147 2005-10-11  David Weatherford  <weath@tensilica.com>
9148
9149         * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
9150         Print "inf" and "nan" in lowercase for e/f/g formats and in
9151         uppercase for E/F/G formats.
9152
9153 2005-10-07  Bob Wilson  <bob.wilson@acm.org>
9154
9155         * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
9156         to ENOMEM on failure.
9157
9158 2005-10-06  Ralf Corsepius <ralf.corsepius@rtems.org>
9159
9160         * libc/include/stdint.h: Add [u]int_fast<N>_t types.
9161
9162 2005-10-04  Ralf Corsepius <ralf.corsepius@rtems.org>
9163
9164         * libc/include/stdint.h: Move magic to set __have_long* to the
9165         beginning.  Use #if __have* instead of #if defined(__have*).
9166         Minor typo fixes.
9167
9168 2005-10-04  James E Wilson  <wilson@specifix.com>
9169
9170         * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
9171         #error.
9172
9173 2005-10-03  Jeff Johnston  <jjohnstn@redhat.com>
9174
9175         * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
9176         incorporate Ralf's change below.
9177
9178 2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
9179
9180         * libc/include/stdint.h:
9181         Use __INTMAX_TYPE__ to derive intmax_t.
9182         Use __UINTMAX_TYPE__ to derive uintmax_t.
9183         Fix minor typo.
9184
9185 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
9186
9187         * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
9188         handling GCC >= 4.
9189
9190 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
9191
9192         * libc/sys/linux/include/stdint.h: Update to match functionality
9193         of generic newlib stdint.h.
9194
9195 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
9196
9197         * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
9198         and do not #undef the macro after it is used.  Fix typos.
9199         Also change 64-bit constants to use the __have_long64 and
9200         __have_longlong64 flags to determine if long or long long
9201         constants should be used.
9202         * libc/include/inttypes.h: Include stddef.h to get wchar_t
9203         type defined.
9204
9205 2005-09-20  Shaun Jackman  <sjackman@gmail.com>
9206
9207         * libc/include/stdint.h: Fix typo in names of
9208         LEAST macros.
9209
9210 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
9211
9212         * libc/sys/rtems/include/inttypes.h: Moved to...
9213         * libc/include/inttypes.h: ...here.
9214
9215 2005-09-19  Jeff Johnston  <jjohnstn@redhat.com>
9216
9217         * libc/sys/rtems/include/stdint.h: Moved to...
9218         * libc/include/stdint.h: ...here.
9219
9220 2005-09-08  Jeff Johnston  <jjohnstn@redhat.com>
9221
9222         * Makefile.am: Add include files under bits sub-directory.
9223         * Makefile.in: Regenerated.
9224         * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
9225         actual value of 1 to be compatible with newer glibc headers.
9226         * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
9227         glibc headers.
9228         * libc/sys/linux/sys/dirent.h: Ditto.
9229         * libc/sys/linux/argp/argp-xinl.c: Ditto.
9230         * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
9231         profile_fixup routines are marked used so they won't be
9232         optimized away.
9233         * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
9234         to mark functions as weak.
9235         * libc/sys/linux/dl/dl-open.c: Ditto.
9236         * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
9237         rules about lvalues.
9238         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
9239         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
9240         weak_extern macro to mark functions as weak.  Instead always
9241         use #pragma weak.
9242         * iconvdata/jis0208.h: Fix to work with gcc4.
9243         * libc/sys/linux/dl/dl-load.c: Ditto.
9244         * libc/sys/linux/dl/dl-reloc.c: Ditto.
9245         * libc/sys/linux/dl/do-rel.h: Ditto.
9246         * libc/sys/linux/dl/dynamic-link.h: Ditto.
9247         * libc/sys/linux/include/ltdl.h: Ditto.
9248         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
9249         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
9250         * libc/sys/linux/net/ns_ntoa.c: Ditto.
9251         * libc/sys/linux/bits/initspin.h: New file.
9252         * libc/sys/linux/bits/libc-lock.h: Ditto.
9253         * libc/sys/linux/bits/pthreadtypes.h: Ditto.
9254         * libc/sys/linux/bits/typesizes.h: Ditto.
9255
9256 2005-09-08  Eric Blake  <ebb9@byu.net>
9257
9258         * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
9259         before is NULL.
9260
9261 2005-09-08  Brian Dessent  <brian@dessent.net>
9262
9263         * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
9264         mantissa.
9265         * s_lrint.c: Ditto.
9266
9267 2005-09-02  Jeff Johnston  <jjohnstn@redhat.com>
9268
9269         * libc/include/stdio.h: Add prototype for viprintf.
9270
9271 2005-09-01  Jeff Johnston  <jjohnstn@redhat.com>
9272
9273         * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
9274         any positive power results in 0.
9275         * libm/mathfp/sf_pow.c (powf): Ditto.
9276
9277 2005-08-31  Paul Brook  <paul@codesourcery.com>
9278
9279         * configure.host: Set have_crt0 to no for Arm targts when not
9280         providing syscalls.  Set sys_dir=arm unconditionally.
9281         Default have_crt0 based on sys_dir.
9282         * configure.in: Use have_crt0.
9283         * libc/configure.in: Ditto.
9284         * libc/sys/configure.in: Ditto.
9285         * configure: Regenerate.
9286         * libc/configure: Regenerate.
9287         * libc/sys/configure: Regenerate.
9288         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
9289         Only build other files when providing syscalls.
9290         * libc/sys/arm/Makefile.in: Regenerate.
9291         * libc/sys/arm/aeabi_atexit.c: New file.
9292
9293 2005-08-26  Christopher Faylor  <cgf@timesys.com>
9294
9295         * libc/include/string.h: Revert previous change.
9296
9297 2005-08-25  Christopher Faylor  <cgf@timesys.com>
9298
9299         * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
9300
9301 2005-08-22  Shaun Jackman  <sjackman@gmail.com>
9302
9303         * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
9304         define _opendir as opendir, _readdir as readdir, and
9305         _closedir as closedir so that the implementations in
9306         libc/posix will be used.
9307
9308 2005-08-10  DJ Delorie  <dj@redhat.com>
9309
9310         * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
9311
9312 2005-08-10  Stephen Huw Clarke  <stephen.clarke@st.com>
9313
9314         * libm/common/sf_fmax.c: Fix to properly handle NaNs.
9315         * libm/common/s_max.c: Ditto.
9316         * libm/common/sf_fmin.c: Ditto.
9317         * libm/common/s_min.c: Ditto.
9318
9319 2005-08-10  DJ Delorie  <dj@redhat.com>
9320
9321         * configure.host: Add m32c support.
9322         * libc/include/machine/ieeefp.h: Likewise.
9323         * libc/include/machine/setjmp.h: Likewise.
9324         * libc/include/sys/config.h: Likewise.
9325         * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
9326         * libc/machine/m32c/aclocal.m4: New file.
9327         * libc/machine/m32c/configure: Ditto.
9328         * libc/machine/m32c/configure.in: Ditto.
9329         * libc/machine/m32c/Makefile.am: Ditto.
9330         * libc/machine/m32c/Makefile.in: Ditto.
9331         * libc/machine/m32c/setjmp.S: Ditto.
9332
9333 2005-08-02  Bob Wilson  <bob.wilson@acm.org>
9334
9335         * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
9336         to the value for 2^126.
9337
9338 2005-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
9339
9340         * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
9341         used.
9342
9343 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
9344            Darin Petkov <darin@tensilica.com>
9345
9346        * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
9347
9348 2005-07-19  Paul Brook  <paul@codesourcery.com>
9349
9350         * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
9351
9352 2005-07-18  Joseph S. Myers  <joseph@codesourcery.com>
9353
9354         * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
9355         names after PASS and FAIL which do not depend on source directory
9356         name or on whether test passed or failed.
9357         * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
9358
9359 2005-07-08  Ola Hugosson   <Ola.Hugosson@anoto.com>
9360
9361         * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
9362
9363 2005-07-07  Shaun Jackman  <sjackman@gmail.com>
9364
9365         * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
9366         twice for the same directory. _closedir calls free, and freeing
9367         the same pointer twice may cause a crash.
9368
9369 2005-07-06  Aldy Hernandez  <aldyh@redhat.com>
9370
9371         * configure.host: Added entry for ms1*.
9372         * libc/include/machine/ieeefp.h: Handle ms1.
9373         * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
9374         * libc/machine/ms1/aclocal.m4: New.
9375         * libc/machine/ms1/configure: New.
9376         * libc/machine/ms1/configure.in: New.
9377         * libc/machine/ms1/Makefile.am: New.
9378         * libc/machine/ms1/Makefile.in: New.
9379         * libc/machine/ms1/setjmp.S: New.
9380
9381 2005-07-04  Mark Mitchell  <mark@codesourcery.com>
9382
9383         * Makefile.am (site.exp): Set tmpdir.
9384         * Makefile.in: Regenerated.
9385         * testsuite/lib/checkoutput.exp (newlib_check_output): Put
9386         executables in $tmpdir.
9387         * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
9388         libgloss version if not running in the build directory.
9389         * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
9390         $tmpdir.
9391         * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
9392         in $tmpdir.
9393
9394 2005-06-28  Dave Korn  <dave.korn@artimi.com>
9395
9396         * libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
9397         and miscalculation caused by fp representation of zero.
9398         * libm/common/sf_lrint.c (lrintf):  Likewise.
9399
9400 2005-06-16  Christopher Faylor  <cgf@timesys.com>
9401
9402         * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
9403         determine characteristics of long double.  Use a union instead.
9404         * ldtoa.c (_ldtoa_r): Ditto.
9405         (_ldcheck): Ditto.
9406         (_strtold): Ditto.
9407         (union uconv): New union.
9408
9409 2005-06-03  Jeff Johnston  <jjohnstn@redhat.com>
9410
9411         * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
9412         instead of memcpy.
9413
9414 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
9415
9416         * configure.host (mn10300-*): Add long long I/O support by default.
9417
9418 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
9419
9420         * libc/sys/linux/getpwuid.c: Removed.
9421         * libc/sys/linux/getpwnam.c: Removed.
9422         * libc/sys/linux/getpwent.c: New file containing logic
9423         from files removed above.  This allows overriding of file
9424         in libc/unix.
9425         * libc/sys/linux/Makefile.am: Support changes above.
9426         * libc/sys/linux/Makefile.in: Regenerated.
9427
9428 2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>
9429
9430         * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
9431         when checking for multiple flags.
9432
9433 2005-04-18  Hans-Peter Nilsson  <hp@axis.com>
9434
9435         * configure.host <cris-*-* | crisv32-*-*>: Set
9436         default_newlib_io_long_long="yes".
9437
9438 2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>
9439
9440         * libc/include/libgen.h: New file.
9441
9442 2005-04-08  Shaun Jackman  <sjackman@gmail.com>
9443
9444         * libc/unix/Makefile.am: Add support for basename and dirname.
9445         * libc/unix/Makefile.in: Regenerated.
9446         * libc/unix/basename.c: New file.
9447         * libc/unix/dirname.c: New file.
9448
9449 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
9450
9451         * libc/sys/linux/inode.c (lchown): New function.
9452
9453 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
9454
9455         * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
9456         ELIX level is defined.
9457         * libc/unix/Makefile.in: Regenerated.
9458
9459 2005-04-05  Dave Korn  <dave.korn@artimi.com>
9460
9461         * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
9462         something that looks like a "NaN", put back the characters processed.
9463
9464 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
9465
9466         * libc/stdlib/strtod.c (_strtod_r): Never change s00.
9467
9468 2005-03-23  Christopher Faylor  <cgf@timesys.com>
9469
9470         * configure.host: For cygwin, redefine CC with cygwin include directory
9471         first to mimic the behavior of the top-level configury.  Move include
9472         directory out of newlib_cflags.
9473
9474 2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>
9475
9476         * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
9477         * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
9478         than errno.
9479
9480 2005-03-22  Christopher Faylor  <cgf@timesys.com>
9481
9482         * libc/include/machine/_types.h: Make trivial change to comment to
9483         avoid a spurious warning from gcc.
9484
9485 2005-03-21  Nicholas Wourms  <nwourms@netscape.net>
9486
9487         * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
9488         since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
9489         reent.h include.
9490
9491 2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
9492             Corinna Vinschen  <corinna@vinschen.de>
9493
9494         * libc/include/ctype.h: Remove invalid +1 offset from
9495         ctype macro references to __ctype_ptr.
9496         (_ctype_): Move declaration outside #ifndef __cplusplus.
9497
9498 2005-03-18  Corinna Vinschen  <corinna@vinschen.de>
9499
9500         * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
9501         evaluate first parameter only once.
9502         (siglongjmp): Ditto.
9503
9504 2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>
9505
9506         * configure.in: Add new check to see if compiler supports
9507         aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
9508         * configure: Regenerated.
9509         * Makefile.in: Ditto.
9510         * newlib.hin: Add _HAVE_ARRAY_ALIASING.
9511         * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
9512         aliasing the _ctype_ array to _ctype_b.
9513         * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
9514         _ctype_ as deprecated.
9515
9516 2005-03-17  Hans-Peter Nilsson  <hp@axis.com>
9517
9518         * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
9519         -DCOMPACT_CTYPE.
9520
9521 2005-03-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
9522
9523         * libc/sys/rtems/include/inttypes.h: New file.
9524         * libc/sys/rtems/include/stdint.h: Ditto.
9525
9526 2005-03-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
9527
9528         * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
9529
9530 2005-03-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
9531
9532         * libc/include/machine/_types.h: New file.
9533         * libc/include/sys/types.h: Do not check for __rtems__
9534         when including <machine/_types.h>.  Remove some redundant
9535         declarations now that <machine/_types.h> is included.
9536         * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
9537         shared header file.
9538
9539 2005-02-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
9540
9541         * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
9542         L qualifier for these long constants.
9543
9544 2005-02-25  Eric Blake  <ebb9@byu.net>
9545
9546         * libc/include/time.h (__tzrule_struct): Make offset long, since
9547         a 16-bit int overflows on a 12-hour offset.
9548         * libc/sys/linux/include/time.h: Ditto.
9549         * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
9550         * libc/time/mktm_r.c: Ditto.
9551         * libc/time/gettzinfo.c: Ditto.
9552         * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
9553         years.  Fix '%z' to use long, not int.
9554
9555 2005-02-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
9556
9557         * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
9558         manipulate float values in integer form.
9559         * libm/common/sf_round.c: Ditto.
9560
9561 2005-02-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
9562
9563         * libc/include/sys/types.h [__rtems__]: Include new
9564         header file machine/_types.h.
9565         * libc/include/machine/types.h: Ditto.
9566         * libc/sys/rtems/machine/_types.h: New file.
9567
9568 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
9569
9570         * libc/include/time.h (_timezone): Change to long also for Cygwin.
9571         (timezone): Drop cast from definition.
9572
9573 2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>
9574
9575         * libc/include/time.h [!CYGWIN](_timezone): Change to long.
9576         (__tzrule_type, __tzinfo_type): New types.
9577         (__gettzinfo): New function.
9578         * libc/sys/linux/include/time.h: Ditto.
9579         * libc/time/Makefile.am: Add gettzinfo.c.
9580         * libc/time/Makefile.in: Regenerated.
9581         * libc/time/local.h: Moved __tzrule_type to time.h.
9582         * libc/time/mktime.c: Call __gettzinfo to reference
9583         __tznorth, __tzyear, and __tzrule array.
9584         * libc/time/mktm_r.c: Ditto.
9585         * libc/time/strftime.c: Ditto.
9586         * libc/time/tzset_r.c: Ditto.  Also remove definition
9587         of __tzrule which is now in gettzinfo.c.  Change _timezone
9588         references to not cast to time_t.
9589         * libc/time/gettzinfo.c: New file.
9590
9591 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
9592
9593         * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
9594
9595 2005-02-22  Corinna Vinschen  <corinna@vinschen.de>
9596
9597         * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
9598
9599 2005-02-16  Eric Blake  <ebb9@byu.net>
9600
9601         * libc/time/time.tex: Improve the documentation.
9602         * libc/time/strftime.c: Improve the documentation.
9603         (iso_year_adjust): New helper function.
9604         (strftime): Simplify '%E' and '%O'. Change '%c' to use
9605         recursion. Fix '%C', '%y', and '%Y' to deal with years with more
9606         than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
9607         '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
9608         Avoid core dumps on valid inputs (maxsize == 0, or
9609         tim_p->tm_isdst > 1).
9610
9611 2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
9612
9613         * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
9614         members to uid_t and gid_t according to SUSv3.
9615         * libc/include/sys/time.h (utimes):  Change second parameter
9616         to const according to SUSv3.
9617
9618 2005-02-07  Antony King  <antony.king@st.com>
9619
9620         * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
9621         called before _flockfile to prevent lock object use before
9622         initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
9623         take a struct _reent * instead of a FILE *.
9624         * libc/stdio/fclose.c (_fclose_r): Ditto.
9625         * libc/stdio/feof.c (feof): Ditto.
9626         * libc/stdio/ferror.c (ferror): Ditto.
9627         * libc/stdio/fflush.c (fflush): Ditto.
9628         * libc/stdio/fgetc.c (fgetc): Ditto.
9629         * libc/stdio/fgets.c (fgets): Ditto.
9630         * libc/stdio/fileno.c (fileno): Ditto.
9631         * libc/stdio/fputc.c (fputc): Ditto.
9632         * libc/stdio/fputs.c (fputs): Ditto.
9633         * libc/stdio/fread.c (fread): Ditto.
9634         * libc/stdio/freopen.c (_freopen_r): Ditto.
9635         * libc/stdio/fseek.c (_fseek_r): Ditto.
9636         * libc/stdio/ftell.c (_ftell_r): Ditto.
9637         * libc/stdio/fwrite.c (fwrite): Ditto.
9638         * libc/stdio/getc.c (getc): Ditto.
9639         * libc/stdio/getdelim.c (__getdelim): Ditto.
9640         * libc/stdio/putc.c (putc): Ditto.
9641         * libc/stdio/setvbuf.c (setvbuf): Ditto.
9642         * libc/stdio/ungetc.c (_ungetc_r): Ditto.
9643         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
9644         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
9645         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
9646         * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
9647         * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
9648         _reent * instead of a FILE * and so replace incorrect use of
9649         _REENT with argument.
9650         * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
9651         * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
9652         CHECK_INIT() take a struct _reent * instead of a FILE *.
9653         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
9654         * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
9655         * libc/stdio/perror.c (perror): Ditto.
9656         * libc/stdio/printf.c (printf, _printf_r): Ditto.
9657         * libc/stdio/putchar.c (putchar): Ditto.
9658         * libc/stdio/puts.c (puts): Ditto.
9659         * libc/stdio/refill.c (__srefill): Ditto.
9660         * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
9661         * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
9662         * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
9663         * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
9664         * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
9665         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
9666         * libc/stdio/wbuf.c (__swbuf): Ditto.
9667         * libc/stdio/wsetup.c (__swsetup): Ditto.
9668         * libc/stdlib/mallocr.c (malloc_stats): Ditto.
9669         * libc/stdlib/mstats.c (_mstats_r): Ditto.
9670         * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
9671         * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
9672         * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
9673         to _flockfile and _funlockfile; rely on locking in _ftell_r.
9674         * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
9675         * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
9676         initialision of _data field in FILE structure.
9677         * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
9678
9679 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
9680
9681         * libc/stdio/findfp.c (__sinit): Protect with new lock.
9682         (__sinit_lock): New lock.
9683         (__sinit_lock_acquire, __sinit_lock_release): New functions.
9684         * libc/stdio/local.h: Add reference to new __sinit locking
9685         functions.
9686
9687 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
9688
9689         * libc/include/math.h (isfinite, isnormal, isunordered): Change
9690         input variable names to avoid mixups with nesting macros.
9691
9692 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
9693
9694         * configure.host: Add support for cris-*-* and crisv32-*-*.
9695         * libc/include/machine/ieeefp.h: Ditto.
9696         * libc/include/machine/setjmp.h: Ditto.
9697         * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
9698         libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
9699         libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
9700         libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
9701         libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
9702         libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
9703         libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
9704         files.
9705
9706 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
9707
9708         * testsuite/newlib.string/memmove1.c: New test.
9709
9710 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
9711
9712         * testsuite/include/check.h: Include stdlib.h.
9713
9714 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
9715
9716         * Makefile.am (stmp-targ-include): Support include header files
9717         from machine directories.
9718         (install-data-local): Ditto.
9719         * Makefile.in: Regenerate.
9720
9721 2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>
9722
9723         * libc/include/string.h: Remove Linux-specific declaration of
9724         strsignal and add #include <sys/string.h>.
9725         * libc/include/sys/string.h: New file.
9726         * libc/include/sys/linux/sys/string.h: New file with strsignal
9727         declaration deleted above.
9728
9729 2005-01-20  Jeff Johnston  <jjohnstn@redhat.com>
9730
9731         * libc/time/strftime.c (strftime): Change %r and %x to be compliant
9732         to POSIX standard for "C" locale.  Allow %E and %O modifiers
9733         to be ignored as long as they precede valid specifiers according
9734         to POSIX.
9735
9736 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
9737
9738         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
9739         environment variable is set.
9740
9741 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
9742
9743         * tzset_r.c (_tzname): Add a comma.
9744
9745 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
9746
9747         * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
9748         _VFPRINTF_R.
9749
9750 2005-01-07  Paul Brook  <paul@codesourcery.com>
9751
9752         * configure.in: Add test for .init_array.
9753         * configure: Regenerate.
9754         * newlib.hin: Add HAVE_INITFINI_ARRAY.
9755         * libc/misc/Makefile.am: Add init.c
9756         * libc/misc/Makefile.in: Regenerate.
9757         * libc/misc/init.c: New file.
9758         * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
9759         _init/_fini if they exist.
9760
9761 2005-01-06  Jeff Johnston  <jjohnstn@redhat.com>
9762
9763         * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
9764         * (strtof): Ditto.
9765         * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
9766         * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
9767         functions for use by strtod and strtof.
9768         * Makefile.in: Regenerated.
9769
9770 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
9771
9772         * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
9773         bit-test in combination with NULL test.
9774
9775 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
9776
9777         * README: Fix typo of LGPL.  Change "license" to "copyright".
9778
9779 2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>
9780
9781         * NEWS: Update with 1.13.0 info.
9782         * README: Ditto.
9783         * acinclude.m4: Change version number to 1.13.0.
9784         * aclocal.m4: Regenerated.
9785         * configure: Ditto.
9786         * doc/aclocal.m4: Ditto.
9787         * doc/configure: Ditto.
9788         * libc/*/aclocal.m4: Ditto.
9789         * libc/*/configure: Ditto.
9790         * libc/libc.texinfo: Ditto.
9791         * libm/*/aclocal.m4: Ditto.
9792         * libm/*/configure: Ditto.
9793         * libm/libm.texinfo: Ditto.
9794         * libc/sys/linux/shared.ld: Add VERS_1.13.
9795
9796 2004-12-17  Christian Groessler  <chris@groessler.org>
9797
9798         * libc/machine/z8k/memcmp.S: New file.
9799         * libc/machine/z8k/memcpy.S: Ditto.
9800         * libc/machine/z8k/memmove.S: Ditto.
9801         * libc/machine/z8k/memset.S: Ditto.
9802         * libc/machine/z8k/Makefile.am: Add new files.
9803         * libc/machine/z8k/Makefile.in: Regenerated.
9804         * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
9805         part.  Implement Z8002 stdcall version.
9806
9807 2004-12-13  Jeff Johnston  <jjohnstn@redhat.com>
9808
9809         * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
9810         a low-level read if we don't get the full amount of bytes so
9811         EOF or error flags will be set.
9812
9813 2004-12-09  Alex Mogilnikov  <alx@intellectronika.ru>
9814
9815         * libc/time/tzset_r (_tzset_r): Properly skip over
9816         '/' when it is detected.
9817
9818 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
9819
9820         * libc/time/tzset_r (_tzset_r): Fix loop.
9821
9822 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
9823
9824         * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
9825         m_day.
9826         (__tzcalc_limits): Fix reference to month array to be zero-based.
9827
9828 2004-12-07  Jeff Johnston  <jjohnstn@redhat.com>
9829
9830         * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
9831         and usleep.
9832
9833 2004-12-03  Jeff Johnston  <jjohnstn@redhat.com>
9834
9835         * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
9836         libgcc dependencies.
9837         (libm_la_LDFLAGS): Ditto.
9838         * Makefile.in: Regenerated.
9839
9840 2004-12-03  Shaun Jackman  <sjackman@gmail.com>
9841
9842         * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
9843         our link to use readlink so as to preserve any relative link created
9844         by install-toollibLIBRARIES.
9845         * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
9846
9847 2004-12-02  Shaun Jackman  <sjackman@gmail.com>
9848
9849         * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
9850         time_t before including sys/stat.h, which uses it.
9851         * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
9852         <linux/time.h> just prior to definition of __KERNEL__ so as to
9853         allow building on Debian Linux where otherwise, mktime would
9854         be redefined.
9855
9856 2004-11-26  Paul Brook  <paul@codesourcery.com>
9857
9858         * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
9859
9860 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
9861
9862         * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
9863         const for value string parameter to match Single Unix and glibc.
9864         * libc/stdlib/putenv.c: Ditto.
9865         * libc/stdlib/putenv_r.c: Ditto.
9866
9867 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
9868
9869         * libc/stdio/Makefile.am: Fix missing vfscanf.
9870         * libc/stdio/Makefile.in: Regenerated.
9871
9872 2004-11-23  Jeff Johnston  <jjohnstn@redhat.com>
9873
9874         * libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
9875         do some reordering.
9876         * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
9877         * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
9878         family functions.
9879         * libc/stdio/Makefile.in: Regenerated.
9880         * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
9881         * libc/stdio/iprintf.c: Ditto.
9882         * libc/stdio/local.h (__svfiscanf_r): New prototype.
9883         * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
9884         * libc/stdio/sniprintf.c: Move docs to siprintf.c.
9885         * libc/stdio/stdio.tex: Add new functions.
9886         * libc/stdio/vfscanf.c: Split out __sccl function to separate
9887         file and add special name defines so this file can be used
9888         to build vfiscanf.o.
9889         * libc/stdio/asiprintf.c: New file.
9890         * libc/stdio/fiscanf.c: Ditto.
9891         * libc/stdio/iscanf.c: Ditto.
9892         * libc/stdio/sccl.c: Ditto.
9893         * libc/stdio/siscanf.c: Ditto.
9894         * libc/stdio/vasiprintf.c: Ditto.
9895         * libc/stdio/viprintf.c: Ditto.
9896         * libc/stdio/viscanf.c: Ditto.
9897         * libc/stdio/vsiprintf.c: Ditto.
9898         * libc/stdio/vsiscanf.c: Ditto.
9899         * libc/stdio/vsniprintf.c: Ditto.
9900
9901 2004-11-19  Shaun Jackman  <sjackman@gmail.com>
9902
9903         * libc/include/stdio.h: Add sniprintf.
9904         * libc/stdio/Makefile.am: Add sniprintf.c.
9905         * libc/stdio/Makefile.in: Regenerated.
9906         * libc/stdio/sniprintf.c: New file.
9907         * libc/stdio/stdio.tex: Add sniprintf.
9908
9909 2004-11-17  Christopher Faylor  <cgf@timesys.com>
9910
9911         * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin.  Clear
9912         EOF flag if successful.
9913
9914 2004-10-28  Christopher Faylor  <cgf@timesys.com>
9915
9916         * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
9917         so that all relevant definitions have been performed for use in the
9918         include.
9919
9920 2004-10-26  Jason Tishler  <jason@tishler.net>
9921
9922         * libc/stdio/fread.c (fread): Fix return value for unbuffered
9923         fread.
9924
9925 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9926
9927         * libc/include/machine/setjmp.h: Add AVR support.
9928         * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
9929
9930 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
9931
9932         * libc/include/sys/signal.h: If <signal.h> didn't include
9933         this header file, include <signal.h> to account for
9934         applications that take advantage that the two header
9935         files are the same in glibc.
9936
9937 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
9938
9939         * configure.host: Add support for crx.
9940         * libc/include/machine/ieeefp.h: Ditto.
9941         * libc/include/machine/setjmp.h: Ditto.
9942         * libc/machine/crx/Makefile.am: New file.
9943         * libc/machine/crx/configure.in: Ditto.
9944         * libc/machine/crx/setjmp.S: Ditto.
9945         * libc/machine/crx/getenv.c: Ditto.
9946         * libc/machine/crx/aclocal.m4: Generate.
9947         * libc/machine/crx/configure: Ditto.
9948         * libc/machine/crx/Makefile.in: Ditto.
9949         * libc/machine/crx/sys/asm.h: New file.
9950         * libc/machine/crx/sys/libh.h: Ditto.
9951         * libc/machine/crx/sys/syscall.h: Ditto.
9952
9953 2004-10-05  Jeff Johnston  <jjohnstn@redhat.com>
9954
9955         * Makefile.am (stmp-targ-include): Support sys header files
9956         from machine directories.
9957         * Makefile.in: Regenerated.
9958
9959 2004-10-04  Jeff Johnston  <jjohnstn@redhat.com>
9960
9961         * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
9962         count skipped zero characters as part of the nread count for %n.
9963         * libc/machine/powerpc/vfscanf.c: Ditto.
9964
9965 2004-09-24  Jeff Johnston  <jjohnstn@redhat.com>
9966
9967         * libc/stdio/local.h: Include <stdlib.h>.
9968
9969 2004-09-24  Corinna Vinschen  <corinna@vinschen.de>
9970
9971         * libc/stdio/fread.c (fread): Include <malloc.h>.
9972
9973 2004-09-22  Jeff Johnston  <jjohnstn@redhat.com>
9974
9975         * libc/stdio/fread.c (fread):  For non-space-optimized case,
9976         add special code for unbuffered files to use user buffer and
9977         only require one low-level system read.
9978
9979 2004-09-21  Ian Lance Taylor  <ian@wasabisystems.com>
9980
9981         * libc/machine/xscale/setjmp.S: New file, copied from
9982         libc/machine/arm/setjmp.S.
9983         * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
9984         * libc/machine/xscale/Makefile.in: Regenerate.
9985
9986 2004-09-16  Antony King  <antony.king@st.com>
9987
9988         * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
9989         with locking API.
9990         * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add
9991         check for__SSTR in _flags and if set, skip lock request.
9992         (_funlockfile)[!SINGLE_THREAD]: Ditto.
9993         * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
9994         not NULL.
9995         * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
9996         initialisation of _file to -1 in local FILE.
9997         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
9998         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
9999         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
10000         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
10001         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
10002         _flags in local FILE to prevent locking.
10003         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
10004
10005 2004-09-16  Antony King  <antony.king@st.com>
10006
10007         * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
10008         and only walk the reentrancy parameter.
10009         (_fwalk_reent): Ditto.
10010         * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
10011
10012 2004-09-16  Antony King  <antony.king@st.com>
10013
10014         * libc/stdio64/freopen64.c: Remove casting of fp lock to
10015         _LOCK_RECURSIVE_T.
10016
10017 2004-09-16  Antony King  <antony.king@st.com>
10018
10019         * libc/time/tzlock.c: Add default stubs that use generic
10020         locking code.
10021
10022 2004-09-16  Antony King  <antony.king@st.com>
10023
10024         * libc/ctype/ctype.tex: Added missing documentation.
10025         * libc/stdio/stdio.tex Ditto.
10026         * libc/stdlib/stdlib.tex Ditto.
10027         * libc/string/strings.tex Ditto.
10028         * libc/time/time.tex: Ditto.
10029         * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
10030
10031 2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
10032
10033         * libc/reent/impure.c (reent_data): Define as alias to impure_data
10034         when building for Cygwin.
10035         * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
10036         _global_impure_ptr.
10037
10038 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
10039
10040         * configure.host: Reverting 2004-09-14 change as fix has occurred on
10041         Cygwin side.
10042         * configure.in: Ditto.
10043         * libc/configure.in: Ditto.
10044         * libc/sys/configure.in: Ditto.
10045         * configure: Ditto.
10046         * libc/configure: Ditto.
10047         * libc/sys/configure: Ditto.
10048         * libc/include/sys/reent.h: Ditto.
10049         * libc/stdlib/__atexit.c: Ditto.
10050         * libc/stdlib/__call_atexit.c: Ditto.
10051         * libc/stdlib/cxa_atexit.c: Ditto.
10052         * libc/stdlib/cxa_finalize.c: Ditto.
10053         * libc/sys/cygwin/Makefile.am: Removed again.
10054         * libc/sys/cygwin/Makefile.in: Ditto.
10055         * libc/sys/cygwin/aclocal.m4: Ditto.
10056         * libc/sys/cygwin/configure: Ditto.
10057         * libc/sys/cygwin/configure.in: Ditto.
10058         * libc/sys/cygwin/dummy.c: Ditto.
10059         * libc/sys/cygwin/sys/reent.h: Ditto.
10060
10061 2004-09-14  Jeff Johnston  <jjohnstn@redhat.com>
10062
10063         * configure.host: Add Cygwin sys directory.
10064         * configure.in: Do not set CRT0 for cygwin.
10065         * libc/configure.in: Ditto.
10066         * libc/sys/configure.in: Ditto.
10067         * configure: Regenerated.
10068         * libc/configure: Ditto.
10069         * libc/sys/configure: Ditto.
10070         * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
10071         * libc/stdlib/__atexit.c: Keep cxa support protected by new
10072         __REENT_HAS_CXA_SUPPORT flag.
10073         * libc/stdlib/__call_atexit.c: Ditto.
10074         * libc/stdlib/cxa_atexit.c: Ditto.
10075         * libc/stdlib/cxa_finalize.c: Ditto.
10076         * libc/sys/cygwin/Makefile.am: New file.
10077         * libc/sys/cygwin/Makefile.in: Ditto.
10078         * libc/sys/cygwin/aclocal.m4: Ditto.
10079         * libc/sys/cygwin/configure: Ditto.
10080         * libc/sys/cygwin/configure.in: Ditto.
10081         * libc/sys/cygwin/dummy.c: Ditto.
10082         * libc/sys/cygwin/sys/reent.h: Ditto.  This file is stabilized
10083         version of reent.h.
10084
10085 2004-09-13 Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
10086
10087         * libc/iconv/iconv.tex: Updated with new content.
10088         * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
10089         instead of NLS_DEFAULT_NLSPATH.
10090         * libc/iconv/lib/iconvnls.h: Fix typo.
10091         * libc/include/sys/iconvnls.h: New file.
10092
10093 2004-09-09  Paul Brook  <paul@codesourcery.com>
10094
10095         * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
10096         and _is_cxa.
10097         (struct _atexit): Add _next when _REENT_SMALL.
10098         (struct _reent): Add _atexit0 when _REENT_SMALL.
10099         (_REENT_INIT_PTR): Adjust.
10100         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
10101         __call_exit.c.
10102         (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
10103         * libc/stdlib/Makefile.in: Regenerate.
10104         * libc/stdlib/__atexit.c: New file.
10105         * libc/stdlib/__call_atexit.c: New file.
10106         * libc/stdlib/atexit.h: Remove old definitions.  Add new.
10107         * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
10108         * libc/stdlib/cxa_atexit.c: New file.
10109         * libc/stdlib/cxa_finalize.c: New file.
10110         * libc/stdlib/exit.c (exit): Use __call_exitprocs.
10111         * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
10112         2004-09-09  Jeff Johnston  <jjohnstn@redhat.com>
10113         * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
10114         _on_exit_args_ptr.
10115
10116 2004-08-23  Jeff Johnston  <jjohnstn@redhat.com>
10117
10118         * libc/include/sys/unistd.h (getpass): Change prototype to use
10119         const instead of __const.
10120
10121 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
10122
10123         * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
10124         #if.
10125
10126 2004-08-12  Jeff Johnston  <jjohnstn@redhat.com>
10127
10128         * libc/sys/linux/sys/types.h (u64): New typedef to allow building
10129         on linux systems with glibc 2.3.3 installed.
10130         * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
10131         profile_fixup so newlib can build on fc3 system.
10132
10133 2004-07-30  Alexandre Oliva  <aoliva@redhat.com>
10134
10135         Introduce SH2a support.
10136         2004-03-16  Corinna Vinschen  <vinschen@redhat.com>
10137         * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
10138         __SH2A_SINGLE_ONLY__, too.
10139         * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
10140         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
10141         * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu.  Fix comments.
10142         2004-02-10  DJ Delorie  <dj@redhat.com>
10143         * libc/sys/sh/crt0.S (start_l): Support sh2a.
10144
10145 2004-07-29  Jeff Johnston  <jjohnstn@redhat.com>
10146
10147         * libc/time/strptime.c: Correct full-name of "March" typo.
10148
10149 2004-07-16  Anil Paranjpe  <anilp1@kpitcummins.com>
10150
10151         * configure.host (h8300*-*-*): Default long long printing support.
10152
10153 2004-07-16  Jeff Johnston  <jjohnstn@redhat.com>
10154
10155         * libc/stdio/fvwrite.c (_sfvwrite):  For asprintf family
10156         calls, if realloc fails, free up buffer as it is no longer
10157         used.
10158
10159 2004-07-07  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
10160
10161         * libc/iconv/iconv.tex: Updated to represent recent changes.
10162         * libc/iconv/lib/iconv.c: Documentation updated.
10163
10164 2004-07-07  Nick Clifton  <nickc@redhat.com>
10165
10166         * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
10167         for xStormy16.
10168
10169 2004-07-06  Chris Demetriou  <cgd@broadcom.com>
10170
10171         * configure.host (mips*-*-elf*): Default long long printing
10172         support.
10173
10174 2004-07-05  Jeff Johnston  <jjohnstn@redhat.com>
10175
10176         * libc/Makefile.am (libc.dvi): Add target and specify
10177         same dependencies as libc.info.
10178         * libc/Makefile.in: Regenerated.
10179         * libm/Makefile.am (libm.dvi): Add target and specify
10180         same dependencies as libm.info.
10181         * libm/Makefile.in: Regenerated.
10182
10183 2004-06-29  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
10184
10185         * acinclude.m4: Move --enable-newlib-iconv option back here.
10186         * configure.in: Remove --enable-newlib-iconv option.  Don't
10187         tie iconv support to --enable-newlib-mb.
10188         * aclocal.m4: Regenerated.
10189         * configure: Ditto.
10190         * doc/aclocal.m4, doc/configure: Ditto.
10191         * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
10192         * libm/*/aclocal.m4: Ditto.
10193         * libm/*/configure: Ditto.
10194         * libc/*/aclocal.m4: Ditto.
10195         * libc/*/configure: Ditto.
10196
10197 2004-06-25  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
10198
10199         * acinclude.m4: Move iconv options into configure.in.
10200         * aclocal.m4: Regenerated.
10201         * configure: Ditto.
10202         * configure.in: Add iconv options.
10203         * newlib.hin: Add new iconv encodings and remove deleted ones.
10204         * doc/aclocal.m4: Regenerated.
10205         * doc/configure: Ditto.
10206         * iconvdata/aclocal.m4: Ditto.
10207         * iconvdata/configure: Ditto.
10208         * libc/iconv: Design change.  New size-optimized ccs format.
10209         * libc/iconv/AUTHORS: Removed.
10210         * libc/iconv/COPYING: Ditto.
10211         * libc/iconv/README.ORIGINAL: Ditto.
10212         * libc/iconv/README.TODO: Ditto.
10213         * libc/iconv/charset.aliases: Ditto.
10214         * libc/iconv/encoding.aliases: New file.
10215         * libc/iconv/Makefile.am: Updated.
10216         * libc/iconv/Makefile.in: Regenerated.
10217         * libc/iconv/iconv.tex: Updated.
10218         * libc/iconv/ccs/Makefile.am: Ditto.
10219         * libc/iconv/ccs/Makefile.in: Regenerated.
10220         * libc/iconv/ccs/big5.c: Updated.
10221         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
10222         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
10223         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
10224         * libc/iconv/ccs/cp775.c: Ditto.
10225         * libc/iconv/ccs/cp850.c: Ditto.
10226         * libc/iconv/ccs/cp852.c: Ditto.
10227         * libc/iconv/ccs/cp855.c: Ditto.
10228         * libc/iconv/ccs/cp866.c: Ditto.
10229         * libc/iconv/ccs/iso_8859_1.c: Ditto.
10230         * libc/iconv/ccs/README.CCS.SOURCES: Removed.
10231         * libc/iconv/ccs/gb_2312_80.c: Ditto.
10232         * libc/iconv/ccs/iconv_mktbl: Ditto.
10233         * libc/iconv/ccs/jis_x0201.c: Ditto.
10234         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
10235         * libc/iconv/ccs/shift_jis.c: Ditto.
10236         * libc/iconv/ccs/us_ascii.c: Ditto.
10237         * libc/iconv/ccs/ccs.h: New file.
10238         * libc/iconv/ccs/ccsbi.c: Ditto.
10239         * libc/iconv/ccs/ccsbi.h: Ditto.
10240         * libc/iconv/ccs/ccsnames.h: Ditto.
10241         * libc/iconv/ccs/iso_8859_10.c: Ditto.
10242         * libc/iconv/ccs/iso_8859_11.c: Ditto.
10243         * libc/iconv/ccs/iso_8859_13.c: Ditto.
10244         * libc/iconv/ccs/iso_8859_14.c: Ditto.
10245         * libc/iconv/ccs/iso_8859_3.c: Ditto.
10246         * libc/iconv/ccs/iso_8859_6.c: Ditto.
10247         * libc/iconv/ccs/iso_8859_7.c: Ditto.
10248         * libc/iconv/ccs/iso_8859_8.c: Ditto.
10249         * libc/iconv/ccs/iso_8859_9.c: Ditto.
10250         * libc/iconv/ccs/iso_ir_111.c: Ditto.
10251         * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
10252         * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
10253         * libc/iconv/ccs/koi8_ru.c: Ditto.
10254         * libc/iconv/ccs/koi8_uni.c: Ditto.
10255         * libc/iconv/ccs/mktbl.pl: Ditto.
10256         * libc/iconv/ccs/win_1250.c: Ditto.
10257         * libc/iconv/ccs/win_1251.c: Ditto.
10258         * libc/iconv/ccs/win_1252.c: Ditto.
10259         * libc/iconv/ccs/win_1253.c: Ditto.
10260         * libc/iconv/ccs/win_1254.c: Ditto.
10261         * libc/iconv/ccs/win_1255.c: Ditto.
10262         * libc/iconv/ccs/win_1256.c: Ditto.
10263         * libc/iconv/ccs/win_1257.c: Ditto.
10264         * libc/iconv/ccs/win_1258.c: Ditto.
10265         * libc/iconv/ccs/iso_8859_15.c: Updated.
10266         * libc/iconv/ccs/iso_8859_2.c: Ditto.
10267         * libc/iconv/ccs/iso_8859_4.c: Ditto.
10268         * libc/iconv/ccs/iso_8859_5.c: Ditto.
10269         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
10270         * libc/iconv/ccs/koi8_r.c: Ditto.
10271         * libc/iconv/ccs/koi8_u.c: Ditto.
10272         * libc/iconv/ccs/ksx1001.c: Ditto.
10273         * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
10274         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
10275         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
10276         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
10277         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
10278         * libc/iconv/ccs/binary/Makefile.am: Updated.
10279         * libc/iconv/ccs/binary/Makefile.in: Regenerated.
10280         * libc/iconv/ccs/binary/big5.cct: Updated.
10281         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
10282         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
10283         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
10284         * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
10285         * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
10286         * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
10287         * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
10288         * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
10289         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
10290         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
10291         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
10292         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
10293         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
10294         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
10295         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
10296         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
10297         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
10298         * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
10299         * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
10300         * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
10301         * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
10302         * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
10303         * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
10304         * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
10305         * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
10306         * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
10307         * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
10308         * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
10309         * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
10310         * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
10311         * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
10312         * libc/iconv/ccs/binary/win_1250.cct: Ditto.
10313         * libc/iconv/ccs/binary/win_1251.cct: Ditto.
10314         * libc/iconv/ccs/binary/win_1252.cct: Ditto.
10315         * libc/iconv/ccs/binary/win_1253.cct: Ditto.
10316         * libc/iconv/ccs/binary/win_1254.cct: Ditto.
10317         * libc/iconv/ccs/binary/win_1255.cct: Ditto.
10318         * libc/iconv/ccs/binary/win_1256.cct: Ditto.
10319         * libc/iconv/ccs/binary/win_1257.cct: Ditto.
10320         * libc/iconv/ccs/binary/win_1258.cct: Ditto.
10321         * libc/iconv/ces/Makefile.am: Updated.
10322         * libc/iconv/ces/Makefile.in: Regenerated.
10323         * libc/iconv/ces/ucs-2-internal.c: Updated.
10324         * libc/iconv/ces/ucs-4-internal.c: Ditto.
10325         * libc/iconv/ces/utf-16.c: Ditto.
10326         * libc/iconv/ces/utf-8.c: Ditto.
10327         * libc/iconv/ces/cesbi.c: New file.
10328         * libc/iconv/ces/cesbi.h: Ditto.
10329         * libc/iconv/ces/cesdeps.h: Ditto.
10330         * libc/iconv/ces/euc.c: Ditto.
10331         * libc/iconv/ces/mkdeps.pl: Ditto.
10332         * libc/iconv/ces/table-pcs.c: Ditto.
10333         * libc/iconv/ces/table.c: Ditto.
10334         * libc/iconv/ces/ucs-2.c: Ditto.
10335         * libc/iconv/ces/ucs-4.c: Ditto.
10336         * libc/iconv/ces/us-ascii.c: Ditto.
10337         * libc/iconv/ces/euc-jp.c: Removed.
10338         * libc/iconv/ces/euc-kr.c: Ditto.
10339         * libc/iconv/ces/euc-tw.c: Ditto.
10340         * libc/iconv/ces/gb2312.c: Ditto.
10341         * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
10342         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
10343         * libc/iconv/lib/Makefile.am: Updated.
10344         * libc/iconv/lib/Makefile.in: Regenerated.
10345         * libc/iconv/lib/endian.h: Updated.
10346         * libc/iconv/lib/iconv.c: Ditto.
10347         * libc/iconv/lib/local.h: Ditto.
10348         * libc/iconv/lib/aliases.c: Removed.
10349         * libc/iconv/lib/bialiasesi.c: Ditto.
10350         * libc/iconv/lib/biccs.c: Ditto.
10351         * libc/iconv/lib/bices.c: Ditto.
10352         * libc/iconv/lib/ccs.c: Ditto.
10353         * libc/iconv/lib/ces.c: Ditto.
10354         * libc/iconv/lib/ces_euc.c: Ditto.
10355         * libc/iconv/lib/ces_iso2022.c: Ditto.
10356         * libc/iconv/lib/ces_table.c: Ditto.
10357         * libc/iconv/lib/converter.c: Ditto.
10358         * libc/iconv/lib/deps.h: Ditto.
10359         * libc/iconv/lib/loaddata.c: Ditto.
10360         * libc/iconv/lib/aliasesbi.c: New file.
10361         * libc/iconv/lib/aliasesi.c: Ditto.
10362         * libc/iconv/lib/conv.h: Ditto.
10363         * libc/iconv/lib/encnames.h: Ditto.
10364         * libc/iconv/lib/encoding.deps: Ditto.
10365         * libc/iconv/lib/iconvnls.c: Ditto.
10366         * libc/iconv/lib/iconvnls.h: Ditto.
10367         * libc/iconv/lib/nullconv.c: Ditto.
10368         * libc/iconv/lib/ucsconv.c: Ditto.
10369         * libc/iconv/lib/ucsconv.h: Ditto.
10370         * libc/include/iconv.h: Update copyright.
10371         * libc/*/aclocal.m4: Regenerated.
10372         * libc/*/configure: Ditto.
10373         * libm/*/aclocal.m4: Ditto.
10374         * libm/*/configure: Ditto.
10375
10376 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
10377
10378         * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
10379         instead of typedefing jmp_buf.
10380
10381         2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
10382         * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
10383         * libc/machine/h8300/defines.h (LEN): New macro.
10384         * libc/machine/h8300/memcpy.S: Add h8sx version.
10385         * libc/machine/h8300/memset.S: Likewise.
10386         * libc/machine/h8300/strcmp.S: Likewise.
10387         * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
10388         * libc/machine/h8300/h8sx_strcpy.S: New file.
10389         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
10390         * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
10391         __H8300SX__.
10392         * libc/include/machine/setjmp.h: Likewise.
10393         * libc/include/sys/config.h: Likewise.
10394         * libc/machine/h8300/defines.h: Likewise.
10395         * libc/machine/h8300/setjmp.S: Likewise.
10396         * libc/machine/h8300/strcmp.S: Likewise.
10397         * libc/sys/h8300hms/close.S: Likewise.
10398         * libc/sys/h8300hms/fstat.S: Likewise.
10399         * libc/sys/h8300hms/lseek.S: Likewise.
10400         * libc/sys/h8300hms/read.S: Likewise.
10401         * libc/sys/h8300hms/write.S: Likewise.
10402         * libc/sys/h8300hms/crt0.S: Likewise.
10403         * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
10404         __H8300SX__ is defined.
10405         * libc/sys/h8300hms/setarch.h: Likewise.
10406
10407 2004-06-17  Jeff Johnston  <jjohnstn@redhat.com>
10408
10409         * libc/include/sys/reent.h (_GLOBAL_REENT): Back
10410         out change which set _GLOBAL_REENT to _global_impure_ptr until
10411         we understand why Cygwin breaks because of it.
10412
10413 2004-06-14  Jeff Johnston  <jjohnstn@redhat.com>
10414
10415         * libc/sys/linux/machine/i386/syscall.h: For now, set up
10416         __syscall_return macro for systems with vsyscall.
10417
10418 2004-06-11  Antony King  <antony.king@st.com>
10419
10420         * libc/include/sys/_types.h: Include <sys/lock.h> and change
10421         _flock_t to be of type _LOCK_RECURSIVE_T.
10422         * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
10423         (_REENT_INIT_PTR): Ditto.  Use memset where appropriate.
10424         (_global_impure_ptr): New declaration.
10425         (_GLOBAL_REENT): Change to be _global_impure_ptr.
10426         * libc/include/sys/stdio.h: Include <sys/lock.h> and
10427         <sys/reent.h>.
10428         (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
10429         (_funlockfile)[!SINGLE_THREAD]: Ditto.
10430         * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
10431         * libc/stdio/fclose.c: Remove casting of fp lock to
10432         _LOCK_RECURSIVE_T.
10433         * libc/stdio/findfp.c: Ditto.
10434         * libc/stdio/fopen.c: Ditto.
10435         * libc/stdio/freopen.c: Ditto.
10436         * libc/stdio/vfprintf.c: Ditto.
10437         * libc/stdio64/fopen64.c: Ditto.
10438         * libc/stdlib/envlock.c: Add default stubs that use generic
10439         locking code.
10440         * libc/stdlib/mlock.c: Ditto.
10441
10442         Jeff Johnston  <jjohnstn@redhat.com>
10443         * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
10444         (_flock_t): Change to be a struct containing a single member
10445         named mutex which is of type __flock_mutex_t.
10446
10447 2004-06-09  Jeff Johnston  <jjohnstn@redhat.com>
10448
10449         * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
10450         from /usr/include/asm/signal.h instead of kernel sources.  Also
10451         default max to 32 if not found in header file.
10452         * libc/sys/linux/Makefile.in: Regenerated.
10453         * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
10454         systems where __syscall_return is not defined.
10455         * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
10456         systems to use syscall() function instead of assembler interrupt.
10457
10458 2004-06-09  Toralf Lund  <toralf@procaptura.com>
10459
10460         * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
10461         files from libc/sys/arm to libc/machine/arm.
10462         * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
10463         library build support for files moved from libc/sys/arm.
10464         * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in:  Remove
10465         references to access and setjmp.
10466         * configure.host: Add checks for newlib_may_supply_syscalls to
10467         determine whether or not to use sys/arm directory and use
10468         special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
10469
10470 2004-06-02  Jeff Johnston  <jjohnstn@redhat.com>
10471
10472         * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
10473         reset digit flags appropriately after we have discovered "0x".
10474         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
10475
10476 2004-05-27  Jeff Johnston  <jjohnstn@redhat.com>
10477
10478         * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
10479         from here ...
10480         (_VFPRINTF_R): ... to here so all I/O printf routines
10481         are covered.
10482
10483 2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>
10484
10485         * libc/search/hash_buf.c: Protect MAX and MIN macros from
10486         redefinition.
10487         * libc/search/hash.c: Ditto.
10488
10489 2004-05-25  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10490
10491         * newlib.hin: (_WANT_IO_POS_ARGS): New define.
10492         (_WANT_IO_LONG_LONG): Ditto.
10493         (_WANT_IO_LONG_DOUBLE): Ditto.
10494         * configure.in: Add new configuration options
10495         --enable-newlib-io-long-long and --enable-newlib-io-long-double
10496         which tie to new defines in newlib.hin.
10497         * configure: Regenerated.
10498         * configure.host: Add checks for new configuration options.  Also
10499         fix up check for --enable-newlib-io-pos-args so configuration
10500         option will override any default for a given platform.
10501         Remove defining compiler flags for the _WANT_IO* options.
10502         * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
10503         instead of looking for old compiler flags.
10504         * libc/stdio/vfscanf.c: Ditto.
10505         * libc/stdio/vfieeefp.h: Ditto.
10506         * libc/machine/powerpc/vfprintf.c: Ditto.
10507         * libc/machine/powerpc/vfscanf.c: Ditto.
10508
10509 2004-05-25  Jeff Johnston  <jjohnstn@redhat.com>
10510
10511         * testsuite/include/check.h: Add include of <stdio.h>.
10512
10513 2004-05-17  Corinna Vinschen  <corinna@vinschen.de>
10514
10515         * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
10516
10517 2004-05-11  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10518
10519         * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
10520         of free.
10521
10522 2004-05-07  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10523
10524         * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
10525         list for reentrant pointer.  Call _vfiprintf_r.
10526         * libc/stdio/siprintf.c (_siprintf_r): New function.
10527         * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
10528         pointer argument.  Change all callers.  Call _VFPRINTF_R.
10529         * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
10530         prototypes.
10531
10532 2004-05-07  Jeff Johnston  <jjohnstn@redhat.com>
10533
10534         * libc/include/sys/param.h: Remove endian info and include
10535         <machine/endian.h> instead.
10536         * libc/include/machine/endian.h: New file.
10537         * libc/include/machine/param.h: Ditto.
10538         * libc/machine/arm/machine/endian.h: Ditto.
10539         * libc/machine/arm/machine/param.h: Ditto.
10540         * libc/sys/arm/sys/param.h: Removed.
10541         * libc/sys/sysvi386/sys/param.h: Ditto.
10542         * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
10543
10544 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10545
10546         * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
10547         multibyte functions return failure for %C, %S, %lc, and %ls
10548         format specifiers.
10549
10550 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10551
10552         * testsuite/include/check.h (CHECK): Add flush of stdout.
10553
10554 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10555
10556         * libc/include/stdio.h (_ungetc_r): New prototype.
10557         * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
10558         (__submore): Add reentrant struct pointer argument.
10559         (ungetc): Change to call _ungetc_r.
10560
10561 2004-04-28  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10562
10563         * libc/stdio/local.h (_fwalk_reent): Specify prototype of
10564         function pointer argument.
10565         * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
10566         to specify function pointer arguments.
10567         (__fwalk, __fwalk_reent): Ditto.
10568
10569 2004-04-26  Aldy Hernandez  <aldyh@redhat.com>
10570
10571         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
10572         CT_INT case.
10573
10574 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10575
10576         * configure.in: Define _MB_CAPABLE if mb supported.
10577         * configure: Regenerated.
10578         * configure.host: Remove manual setting of MB_CAPABLE compiler
10579         flag.
10580         * newlib.hin: Add _MB_CAPABLE flag.
10581         * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
10582         and check for _MB_CAPABLE flag instead of MB_CAPABLE.
10583         * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
10584         * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
10585         * libc/ctype/jp2uc.c: Ditto.
10586         * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
10587         * libc/locale/locale.c: Ditto
10588         * libc/machine/powerpc/vfscanf.c: Ditto
10589         * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
10590         * libc/stdlib/mblen.c: Ditto
10591         * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
10592         * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
10593         * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
10594         * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
10595         * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
10596         * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
10597         * libc/sys/linux/intl/explodename.c: Ditto
10598         * libc/sys/linux/intl/finddomain.c: Ditto
10599         * libc/sys/linux/intl/l10nflist.c: Ditto
10600         * libc/sys/linux/intl/loadmsgcat.c: Ditto
10601         * libc/sys/linux/intl/localealias.c: Ditto
10602
10603 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
10604
10605         * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
10606         (__svfscanf_r): In integer conversions, leave out leading zeroes
10607         which are not part of a base prefix.
10608         Keep track of width truncation to fit into buf, not counting left-out
10609         zeroes against width till the truncation has been compensated for.
10610         This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
10611
10612 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
10613
10614         * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
10615
10616 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10617
10618         * libc/stdio/asprintf.c libc/stdio/clearerr.c,
10619         libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
10620         libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
10621         libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
10622         libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
10623         libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
10624         libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
10625         libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
10626         libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
10627         libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
10628         libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
10629         libc/stdio/getchar.c libc/stdio/getchar_u.c,
10630         libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
10631         libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
10632         libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
10633         libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
10634         libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
10635         libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
10636         libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
10637         libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
10638         libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
10639         libc/stdio/siprintf.c libc/stdio/snprintf.c,
10640         libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
10641         libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
10642         libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
10643         libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
10644         libc/stdio/vprintf.c libc/stdio/vscanf.c,
10645         libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
10646         libc/stdio/vsscanf.c libc/stdio/wbuf.c,
10647         libc/stdio/wsetup.c: Perform minor formatting changes.  Move
10648         copyright notices to top of file, ensure that <_ansi.h> is
10649         included, be consistent with open parentheses, use _DEFUN macro,
10650         include "local.h" where needed, and remove various compiler
10651         warnings.
10652
10653 2004-04-21  J"orn Rennecke <joern.rennecke@superh.com>
10654
10655         * libc/stdio/vfscanf.c (NNZDIGITS): New define.
10656         (__svfscanf_r): In integer conversions, leave out leading zeroes
10657         which are not part of a base prefix.
10658         Keep track of width truncation to fit into buf, not counting left-out
10659         zeroes against width till the truncation has been compensated for.
10660
10661 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
10662
10663         * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
10664
10665 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
10666
10667         * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
10668
10669 2004-04-10  Corinna Vinschen  <corinna@vinschen.de>
10670
10671         * libc/include/sys/unistd.h (sync): Define void on Cygwin according
10672         to SUSv3.
10673
10674 2004-04-08  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10675
10676         * libc/stdio/fclose.c (_fclose_r): New function.
10677         * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
10678         * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
10679         * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
10680         * libc/include/stdio.h (_fclose_r): New prototype.
10681         * libc/stdio/fopen.c: Fix typo in comment.
10682
10683 2004-04-08  Jeff Johnston  <jjohnstn@redhat.com>
10684
10685         * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
10686         to handle _r reentrant functions.
10687
10688 2004-04-08  Eric Christopher  <echristo@redhat.com>
10689
10690         * libc/include/machine/setjmp.h: Fix endif locations.
10691
10692 2004-04-01  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10693
10694         * libc/time/strptime.c: Add standard includes to avoid
10695         warning messages at compilation time.
10696
10697 2004-04-01  Jeff Johnston  <jjohnstn@redhat.com>
10698
10699         * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
10700         of file.
10701
10702 2004-03-30  Jeff Johnston  <jjohnstn@redhat.com>
10703
10704         * libc/machine/h8300/Makefile.am: Reformat slightly.
10705         * libc/machine/h8300/Makefile.in: Regenerate.
10706
10707 2004-03-30  Thomas Pfaff  <tpfaff@gmx.net>
10708
10709         * libc/stdio/findfp.c (__fp_lock_all): Add call to
10710         __sfp_lock_acquire.
10711         (__fp_unlock_all): Add call to __sfp_lock_release.
10712
10713 2004-03-25  Thomas Pfaff  <tpfaff@gmx.net>
10714
10715         * libc/stdio/fclose.c (fclose): Protect file pointer list when
10716         releasing a file.
10717          * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
10718         fwalk.
10719         * libc/stdio/fdopen.c (_fdopen_r): Add calls to
10720         _flockfile/_funlockfile.
10721         * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
10722         to recursive.
10723         Change __lock_acquire/__lock_release calls for __sfp_lock to
10724         __sfp_lock_acquire/__sfp_lock_release throughout.
10725         (std): Make sure that file lock is only initialized once.
10726         (__sfp): Move _file initialization. Initialize file lock.
10727         (__sfp_lock_acquire): New function.
10728         (__sfp_lock_release): Ditto.
10729         (__fp_lock_all): Remove __sfp_lock_acquire call.
10730         (__fp_unlock_all): Remove __sfp_lock_release call.
10731         * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
10732         Add calls to _flockfile/_funlockfile. Remove
10733         __lock_init_recursive call.
10734         * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
10735         * libc/stdio/fwalk.c (__fwalk): New static function.
10736         (_fwalk): Protect file pointer list. Use __fwalk to walk through
10737         file pointers.
10738         * libc/stdio/local.h: Add defines for
10739         __sfp_lock_acquire/__sfp_lock_release when
10740         single threaded. Add function prototypes otherwise.
10741         * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
10742         _flockfile/_funlockfile.
10743         * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
10744         Add calls to _flockfile/_funlockfile. Remove
10745          __lock_init_recursive call.
10746         * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
10747         list.
10748
10749 2004-03-25  Jeff Johnston  <jjohnstn@redhat.com>
10750
10751         * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
10752         defined.  Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
10753         * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
10754         to be __LOCK_INIT_RECURSIVE.
10755
10756 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
10757
10758         * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
10759         _exit.c with _exit.S.
10760         * libc/sys/h8300hms/Makefile.in: Regenerate.
10761         * libc/sys/h8300hms/_exit.c: Remove.
10762         * libc/sys/h8300hms/_exit.S: New.
10763
10764 2004-03-09  Thomas Pfaff  <tpfaff@gmx.net>
10765
10766         * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
10767         Change __sfp_lock to static global.
10768         (__fp_lock): New static function.
10769         (__fp_unlock): Ditto.
10770         (__fp_lock_all): New function.
10771         (__fp_unlock_all): Ditto.
10772
10773 2004-02-10  Christopher Faylor  <cgf@redhat.com>
10774
10775         * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
10776         * libm/mathfp/er_lgamma.c (lgamma): Ditto.
10777         * libm/mathfp/erf_gamma.c (gammaf): Ditto.
10778         * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
10779
10780 2004-02-09  Christopher Faylor  <cgf@redhat.com>
10781
10782         * libc/include/time.h (TIMER_RELTIME): New define.
10783
10784 2004-02-09  Jeff Johnston  <jjohnstn@redhat.com>
10785
10786         * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
10787         * libc/stdlib/Makefile.in: Regenerated.
10788
10789 2004-02-08  Christopher Faylor  <cgf@redhat.com>
10790
10791         * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
10792         * libc/include/sys/reent.h (__getreent): Protect against possibly being
10793         defined.
10794         * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
10795
10796 2004-02-05  Paul Brook  <paul@codesourcery.com>
10797
10798         * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set
10799         IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
10800
10801 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
10802
10803         * NEWS: Update with 1.12.0 info.
10804         * README: Ditto.
10805         * acinclude.m4: Change version number to 1.12.0.
10806         * aclocal.m4: Regenerated.
10807         * configure: Ditto.
10808         * doc/aclocal.m4: Ditto.
10809         * doc/configure: Ditto.
10810         * libc/*/aclocal.m4: Ditto.
10811         * libc/*/configure: Ditto.
10812         * libc/libc.texinfo: Ditto.
10813         * libm/*/aclocal.m4: Ditto.
10814         * libm/*/configure: Ditto.
10815         * libm/libm.texinfo: Ditto.
10816         * libc/sys/linux/shared.ld: Add VERS_1.12.
10817
10818 2004-02-02  Joel Sherrill  <joel@oarcorp.com>
10819
10820         * configure.host: Add support for tic4x.
10821         * libc/include/machine/ieeefp.h: Ditto.
10822         * libc/include/machine/setjmp.h: Ditto.
10823         * libc/machine/tic4x/Makefile.am: New file.
10824         * libc/machine/tic4x/configure.in: Ditto.
10825         * libc/machine/tic4x/setjmp.S: Ditto.
10826         * libc/machine/tic4x/aclocal.m4: Generated.
10827         * libc/machine/tic4x/configure: Ditto.
10828         * libc/machine/tic4x/Makefile.in: Ditto.
10829
10830 2004-01-30  Jeff Johnston  <jjohnstn@redhat.com>
10831
10832         * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
10833         file chain on the passed in reentrancy struct if it
10834         is _GLOBAL_REENT.
10835
10836 2004-01-30  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10837             Jeff Johnston  <jjohnstn@redhat.com>
10838
10839         * libc/iconv/iconv.tex: Updated with more information.
10840
10841 2004-01-30  Thomas Pfaff  <tpfaff@gmx.net>
10842             Jeff Johnston  <jjohnstn@redhat.com>
10843
10844         * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
10845         struct for std streams and traverse the global reeentrancy
10846         struct for all other streams.
10847
10848 2004-01-27  Jeff Johnston  <jjohnstn@redhat.com>
10849
10850         * libc/stdlib/atexit.c: Protect global atexit list with a
10851         lock when newlib is multithreaded.
10852
10853 2004-01-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10854
10855         * configure.in: Add support to generate iconv converter flags
10856         for newlib.h
10857         * newlib.hin: Add iconv converter flags.
10858         * configure: Regenerated.
10859         * libc/Makefile.in: Ditto.
10860         * libc/configure.in: Moved iconv converter parsing logic to
10861         top level newlib configure.in.
10862         * libc/configure: Regenerated.
10863         * libc/iconv/Makefile.in: Ditto.
10864         * libc/iconv/README.TODO
10865         * libc/iconv/charset.aliases: Remove wrong BE aliases for
10866         UCS2/UCS4/UTF8.
10867         * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
10868         newlib.h can be used.
10869         * libc/iconv/ces/Makefile.am: Ditto.
10870         * libc/iconv/lib/Makefile.am: Ditto.
10871         * libc/iconv/ccs/Makefile.in: Regenerated.
10872         * libc/iconv/ces/Makefile.in: Ditto.
10873         * libc/iconv/lib/Makefile.in: Ditto.
10874         * libc/iconv/ccs/README.CCS.SOURCES: Updated.
10875         * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
10876         * libc/iconv/ccs/big5.c: Switch to use new underscored flags
10877         defined in newlib.h.
10878         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
10879         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
10880         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
10881         * libc/iconv/ccs/cp775.c: Ditto.
10882         * libc/iconv/ccs/cp850.c: Ditto.
10883         * libc/iconv/ccs/cp852.c: Ditto.
10884         * libc/iconv/ccs/cp855.c: Ditto.
10885         * libc/iconv/ccs/cp866.c: Ditto.
10886         * libc/iconv/ccs/gb_2312_80.c: Ditto.
10887         * libc/iconv/ccs/iso_8859_1.c: Ditto.
10888         * libc/iconv/ccs/iso_8859_15.c: Ditto.
10889         * libc/iconv/ccs/iso_8859_2.c: Ditto.
10890         * libc/iconv/ccs/iso_8859_4.c: Ditto.
10891         * libc/iconv/ccs/iso_8859_5.c: Ditto.
10892         * libc/iconv/ccs/jis_x0201.c: Ditto.
10893         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
10894         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
10895         * libc/iconv/ccs/koi8_r.c: Ditto.
10896         * libc/iconv/ccs/koi8_u.c: Ditto.
10897         * libc/iconv/ccs/ksx1001.c: Ditto.
10898         * libc/iconv/ccs/shift_jis.c: Ditto.
10899         * libc/iconv/ccs/us_ascii.c: Ditto.
10900         * libc/iconv/ccs/binary/big5.cct: Newly generated.
10901         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
10902         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
10903         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
10904         * libc/iconv/ccs/binary/cp775.cct: Ditto.
10905         * libc/iconv/ccs/binary/cp850.cct: Ditto.
10906         * libc/iconv/ccs/binary/cp852.cct: Ditto.
10907         * libc/iconv/ccs/binary/cp855.cct: Ditto.
10908         * libc/iconv/ccs/binary/cp866.cct: Ditto.
10909         * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
10910         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
10911         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
10912         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
10913         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
10914         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
10915         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
10916         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
10917         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
10918         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
10919         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
10920         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
10921         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
10922         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
10923         * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
10924         * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
10925         * libc/iconv/ces/euc-kr.c: Ditto.
10926         * libc/iconv/ces/euc-tw.c: Ditto.
10927         * libc/iconv/ces/gb2312.c: Ditto.
10928         * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
10929         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
10930         * libc/iconv/ces/ucs-2-internal.c: Ditto.
10931         * libc/iconv/ces/ucs-4-internal.c: Ditto.
10932         * libc/iconv/ces/utf-16.c: Ditto.
10933         * libc/iconv/ces/utf-8.c: Ditto.
10934         * libc/iconv/lib/aliases.c: Ditto.
10935         * libc/iconv/lib/biccs.c: Ditto.
10936         * libc/iconv/lib/bices.c: Ditto.
10937         * libc/iconv/lib/ccs.c: Ditto.
10938         * libc/iconv/lib/ces.c: Ditto.
10939         * libc/iconv/lib/ces_euc.c: Ditto.
10940         * libc/iconv/lib/ces_iso2022.c: Ditto.
10941         * libc/iconv/lib/ces_table.c: Ditto.
10942         * libc/iconv/lib/converter.c: Ditto.
10943         * libc/iconv/lib/deps.h: Ditto.
10944         * libc/iconv/lib/endian.h: Ditto.
10945         * libc/iconv/lib/iconv.c: Ditto.
10946         * libc/iconv/lib/loaddata.c: Ditto.
10947         * libc/iconv/lib/local.h: Include newlib.h.
10948         * libc/argz/Makefile.in: Regenerated.
10949         * libc/ctype/Makefile.in: Ditto.
10950         * libc/errno/Makefile.in: Ditto.
10951         * libc/iconv/ccs/binary/Makefile.in: Ditto.
10952         * libc/locale/Makefile.in: Ditto.
10953         * libc/misc/Makefile.in: Ditto.
10954         * libc/posix/Makefile.in: Ditto.
10955         * libc/reent/Makefile.in: Ditto.
10956         * libc/search/Makefile.in: Ditto.
10957         * libc/signal/Makefile.in: Ditto.
10958         * libc/stdio/Makefile.in: Ditto.
10959         * libc/stdio64/Makefile.in: Ditto.
10960         * libc/stdlib/Makefile.in: Ditto.
10961         * libc/string/Makefile.in: Ditto.
10962         * libc/syscalls/Makefile.in: Ditto.
10963         * libc/time/Makefile.in: Ditto.
10964         * libc/unix/Makefile.in: Ditto.
10965         * testsuite/newlib.iconv/iconv.exp: New file.
10966         * testsuite/newlib.iconv/iconvjp.c: Ditto.
10967         * testsuite/newlib.iconv/iconvnm.c: Ditto.
10968         * testsuite/newlib.iconv/iconvru.c: Ditto.
10969
10970 2004-01-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
10971
10972         * acinclude.m4 (--enable-newlib-iconv): New configuration option.
10973         (--enable-newlib-builtin-converters): Ditto.
10974         * configure.in: Add code to set _ICONV_ENABLED flag.
10975         Set _MB_LEN_MAX to 1 if not mb enabled.
10976         * configure: Regenerated.
10977         * aclocal.m4: Ditto.
10978         * Makefile.in: Ditto.
10979         * newlib.hin: Add _ICONV_ENABLED flag.
10980         * libc/Makefile.am: Add support for iconv.
10981         * libc/configure.in: Ditto.
10982         * libc/Makefile.in: Regenerated.
10983         * libc/aclocal.m4: Ditto.
10984         * libc/configure: Ditto.
10985         * libc/libc.texinfo: Add iconv documentation.
10986         * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
10987         libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
10988         libc/iconv/README.TODO, libc/iconv/charset.aliases,
10989         libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
10990         libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
10991         libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
10992         libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
10993         libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
10994         libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
10995         libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
10996         libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
10997         libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
10998         libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
10999         libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
11000         libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
11001         libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
11002         libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
11003         libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
11004         libc/iconv/ccs/binary/big5.cct,
11005         libc/iconv/ccs/binary/cns11643_plane1.cct,
11006         libc/iconv/ccs/binary/cns11643_plane14.cct,
11007         libc/iconv/ccs/binary/cns11643_plane2.cct,
11008         libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
11009         libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
11010         libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
11011         libc/iconv/ccs/binary/iso_8859_1.cct,
11012         libc/iconv/ccs/binary/iso_8859_15.cct,
11013         libc/iconv/ccs/binary/iso_8859_2.cct,
11014         libc/iconv/ccs/binary/iso_8859_4.cct,
11015         libc/iconv/ccs/binary/iso_8859_5.cct,
11016         libc/iconv/ccs/binary/jis_x0201.cct,
11017         libc/iconv/ccs/binary/jis_x0208_1983.cct,
11018         libc/iconv/ccs/binary/jis_x0212_1990.cct,
11019         libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
11020         libc/iconv/ccs/binary/ksx1001.cct,
11021         libc/iconv/ccs/binary/shift_jis.cct,
11022         libc/iconv/ccs/binary/us_ascii.cct,
11023         libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
11024         libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
11025         libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
11026         libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
11027         libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
11028         libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
11029         libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
11030         libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
11031         libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
11032         libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
11033         libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
11034         libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
11035         libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
11036         libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
11037         libc/iconv/lib/local.h, libc/include/iconv.h: New files.
11038         * libc/sys/linux/include/iconv.h: Ditto.
11039         * libc/include/sys/_types.h (_iconv_t): Added.
11040         * doc/aclocal.m4: Regenerated.
11041         * doc/configure: Ditto.
11042         * doc/Makefile.in: Ditto.
11043         * iconvdata/Makefile.in: Ditto.
11044         * iconvdata/aclocal.m4: Ditto.
11045         * iconvdata/configure: Ditto.
11046         * libc/*aclocal.m4: Ditto.
11047         * libc/*Makefile.in: Ditto.
11048         * libc/*configure: Ditto.
11049         * libm/*aclocal.m4: Ditto.
11050         * libm/*Makefile.in: Ditto.
11051         * libm/*configure: Ditto.
11052
11053 2004-01-22  Thomas Pfaff  <tpfaff@gmx.net>
11054
11055         * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
11056         by a lock when newlib is multithreaded.
11057
11058 2004-01-21  Jeff Johnston  <jjohnstn@redhat.com>
11059
11060         * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
11061         pointer to match C99 spec.
11062         * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
11063         dst is NULL.  Also fix to not alter src pointer when dst is NULL
11064         and call _mbrtowc_r instead of _mbtowc_r.
11065         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
11066         of _wctomb_r.
11067
11068 2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>
11069
11070         * libc/stdio/fclose.c (fclose): Release FILE as the last step.
11071         * libc/stdio/freopen.c (freopen): Ditto.
11072
11073 2004-01-16  Christopher Faylor  <cgf@redhat.com>
11074
11075         * libc/stdio/vfprintf.c: Add sys/lock.h include.
11076
11077 2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>
11078
11079         * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
11080         * libc/stdio/vfprintf.c (__sbprintf): Ditto.
11081         Add calls to __lock_init_recursive and __lock_close_recursive
11082         instead.
11083
11084 2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>
11085
11086         * libc/stdio/fclose.c: Include sys/lock.h.
11087         (fclose): Destroy lock when file is closed.
11088         * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
11089         member.
11090         * libc/stdio/freopen.c: Include sys/lock.h.
11091         (_freopen_r): Destroy lock when file is closed.
11092         * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
11093         _lock member.
11094
11095 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
11096
11097         * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
11098         Remove warnings.
11099
11100 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
11101
11102         * libc/sys/rtems/sys/queue.h: New file.
11103         * libc/include/sys/signal.h: Reflect renumbering of signals to
11104         fit into 32-bit mask.
11105         * libc/include/sys/unistd.h: Add fdatasync() prototype.
11106         * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
11107         required.  In particular, add the reentrant variants of libc calls.
11108         * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
11109
11110 2004-01-06  Mark Mitchell  <mark@codesourcery.com>
11111
11112         * libc/sys/arm/syscalls.c (unistd.h): Include it.
11113         (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
11114         Similarly for stdout and stderr.
11115
11116 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
11117
11118         * libc/libc.texinfo: Correct escape character for @ sign
11119         so file will be processed by make info.  Update copyright years.
11120         * libm/libm.texinfo: Ditto.
11121
11122 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
11123
11124         * libc/include/sys/stat.h: No longer include stat-dj.h.
11125         * libc/include/sys/stat-dj.h: Removed.
11126
11127 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
11128
11129         * libc/include/wchar.h: Include <sys/reent.h>.
11130
11131 2003-12-05  Christopher Faylor  <cgf@redhat.com>
11132
11133         * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
11134         when defining _mbrtowc.
11135         * libc/stdlib/mbsinit.c: Ditto.
11136         * libc/stdlib/mbsrtowcs.c: Ditto.
11137         * libc/stdlib/wcrtomb.c: Ditto.
11138         * libc/stdlib/wcsrtombs.c: Ditto.
11139         * libc/stdlib/wctob.c: Ditto.
11140
11141 2003-12-05  Christopher Faylor  <cgf@redhat.com>
11142
11143         * libc/stdlib/mbrlen.c: Change include order to prevent compiler
11144         errors when defining _mbrtowc.
11145         * libc/stdlib/mbsinit.c: Ditto.
11146         * libc/stdlib/mbsrtowcs.c: Ditto.
11147
11148 2003-12-05  Christopher Faylor  <cgf@redhat.com>
11149
11150         * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
11151         errors when defining _mbrtowc.
11152
11153 2003-12-04  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
11154
11155         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
11156         of mb routines for %lc and %ls support.
11157         * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
11158         %ls, and %S support.  Remove CYGNUS_NEC markers and
11159         code within.
11160
11161 2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>
11162
11163         * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
11164         _wcrtomb_r, and _wcsrtombs_r.
11165
11166 2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
11167
11168         * libc/include/sys/fcntl.h: Don't define struct flock when on
11169         Cygwin.  This is done in winsup/cygwin/include/cygwin/types.h now.
11170
11171 2003-11-28  Christopher Faylor  <cgf@redhat.com>
11172
11173         * libc/include/sys/signal.h: Use system specific signal file when
11174         building on cygwin.
11175
11176 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
11177
11178         * libc/include/stdlib.h (_atoi_r): New prototype.
11179         * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
11180
11181 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
11182
11183         * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
11184         * libc/stdlib/atol.c (_atol_r): New reentrant function.
11185         * libc/stdlib/atoll.c (_atoll_r): Ditto.
11186
11187 2003-11-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
11188             Jeff Johnston  <jjohnstn@redhat.com>
11189
11190         * libc/include/stdlib.h (lldiv_t): New type.
11191         (atoll, llabs, lldiv): New prototypes.
11192         * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
11193         * libc/stdlib/stdlib.tex: Ditto.
11194         * libc/stdlib/Makefile.in: Regenerated.
11195         * libc/stdlib/atoll.c: New file.
11196         * libc/stdlib/llabs.c: Ditto.
11197         * libc/stdlib/lldiv.c: Ditto.
11198
11199 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
11200
11201         * libc/include/fcntl.h: Declare syscalls only when building newlib.
11202         * libc/include/unistd.h: Ditto.
11203         * libc/include/stat.h: Ditto.  Also declare struct stat64.
11204
11205 2003-11-24  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
11206
11207         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
11208         specifier to use ch instead of *fmt.
11209
11210 2003-11-21  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
11211
11212         * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
11213         code within checks for MB_CAPABLE.  For non-mb-capable platforms,
11214         use simple byte logic.
11215
11216 2003-11-21  Jeff Johnston  <jjohnstn@redhat.com>
11217
11218         * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
11219         _strtold routine for processing floats and doubles since it
11220         is not as fast as _strtod_r.
11221
11222 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
11223
11224         * libc/machine/h8300/defines.h : Correct pointer register defines
11225         for normal mode.
11226         * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
11227         for normal mode.
11228         * libc/machine/h8300/reg_memcpy.S : Likewise.
11229         * libc/machine/h8300/reg_memset.S : Likewise.
11230         * libc/machine/h8300/strcmp.S : Likewise.
11231
11232 2003-11-19  Nicholas Wourms  <nwourms@netscape.net>
11233
11234         * configure.host: Enable positional arguments for printf
11235         family for Cygwin.
11236         * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
11237         pointer reference for quad_ptr_t.
11238
11239 2003-11-19  Jeff Johnston  <jjohnstn@redhat.com>
11240
11241         * libc/stdio/scanf.c: Don't include local.h more than once.
11242
11243 2003-11-18  Corinna Vinschen  <corinna@vinschen.de>
11244
11245         * libc/include/sys/fcntl.h: Declare _open64.
11246         * libc/include/sys/stat.h: Declare _fstat64.
11247         * libc/include/sys/unistd.h: Declare _lseek64.
11248
11249 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
11250
11251         * libc/include/stdlib.h (getprogname): Declare for Cygwin.
11252         (setprogname): Ditto.
11253
11254 2003-11-10  Jeff Johnston  <jjohnstn@redhat.com>
11255
11256         * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
11257         to use (Ebits + 1) which accounts for the sign-bit.
11258
11259 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
11260
11261         * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux
11262         x86 build.
11263         * iconvdata/Makefile.am: Make dependent on newlib's configure.host
11264         and set up default flags to pass to aclocal.
11265         * iconvdata/Makefile.in: Regenerated.
11266         * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
11267         and getpwuid routines.
11268         * libc/sys/linux/Makefile.in: Regenerated.
11269         * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
11270         applications to link with newlib's shared libc library.
11271         * libc/sys/linux/getpwnam.c: Ditto.
11272         * libc/sys/linux/getpwuid.c: Ditto.
11273         * libc/sys/linux/sys/types.h: Include <features.h> and supply types
11274         that were formerly supplied by /usr/include/linux/types.h with
11275         kernel types.
11276         * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
11277         test _ELIX_LEVEL macro.
11278
11279 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
11280
11281         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
11282         referring to _NO_LONGLONG macro.
11283
11284 2003-11-06  Jeff Johnston  <jjohnstn@redhat.com>
11285
11286         * libc/sys/linux/linuxthreads/td_init.c: Replace function name
11287         in LOG() macro so this will compile on gcc 3.4 and up.
11288         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
11289         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
11290         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
11291         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
11292         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
11293         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
11294         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
11295         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
11296         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
11297         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
11298         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
11299         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
11300         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
11301         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
11302         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
11303         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
11304         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
11305         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
11306         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
11307         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
11308         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
11309         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
11310         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
11311         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
11312         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
11313         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
11314         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
11315         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
11316         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
11317         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
11318         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
11319         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
11320         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
11321         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
11322         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
11323         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
11324
11325 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
11326             Artem B. Bityuckiy  <abitytsky@softminecorp.com>
11327
11328         * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
11329         %ls, %S, %lc, and %C format specifiers.
11330         (get_arg): Ditto.
11331         * libc/stdio/sprintf.c: Add documentation regarding new
11332         format specifiers added in vfprintf.c.
11333
11334 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
11335
11336         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
11337         to make code work as specified in standard.
11338
11339 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
11340
11341         * configure.in: Use absolute newlib basedir when forming
11342         CC_FOR_NEWLIB include options.
11343         * configure: Regenerated.
11344
11345 2003-10-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
11346
11347         * libc/string/wcsnlen.c: New file.
11348         * libc/include/wchar.h: Add wcsnlen prototype.
11349         * libc/string/Makefile.am: Add wcsnlen support.
11350         * libc/string/Makefile.in: Regenerated.
11351         * libc/string/wcstrings.tex: Add wcsnlen documentation.
11352
11353 2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
11354
11355         * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
11356
11357 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
11358
11359         * libc/locale/locale.c: Use double quotes in code.
11360         * libc/locale/locale.tex: Likewise.
11361         * libc/libc.texinfo: Hyphenate "floating-point".
11362         * libc/machine/necv70/necv70.tex: Likewise.
11363         * libc/stdio/sprintf.c: Likewise.
11364         * libc/stdio/sscanf.c: Likewise.
11365         * libc/stdlib/atof.c: Likewise.
11366         * libc/stdlib/ldtoa.c: Fix comment typo.
11367         * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
11368         * libc/stdlib/ldiv.c: Likewise.
11369         * libm/common/s_expm1.c: Likewise.
11370         * libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
11371         * libm/common/s_infinity: Hyphenate "double- and single-precision".
11372         * libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
11373         * libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
11374         and "floating-point".
11375         * libm/common/s_scalbn.c: Correct the FUNCTION summary.
11376         * libm/math/e_pow.c: Fix comment typo.
11377         * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
11378         * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
11379         * libm/math/s_atan.c: Likewise.
11380         * libm/math/s_frexp.c: Likewise.  Also use "nonzero".
11381         * libm/math/s_isnan.c: Hyphenate "single-precision" and
11382         "floating-point".  Use "nonzero".
11383         * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
11384         * libm/math/w_acos.c: Likewise.
11385         * libm/math/w_acosh.c: Likewise.
11386         * libm/math/w_asin.c: Likewise.
11387         * libm/math/w_atan2.c: Likewise.
11388         * libm/math/w_atanh.c: Likewise.
11389         * libm/math/w_cosh.c: Likewise.
11390         * libm/math/w_exp.c: Likewise.
11391         * libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
11392         version of 2^x in the description.
11393         * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
11394         * libm/math/w_gamma.c: Likewise.
11395         * libm/math/w_hypot.c: Likewise.
11396         * libm/math/w_j0.c: Likewise.
11397         * libm/math/w_sinh.c: Likewise.
11398         * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
11399         * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
11400         "floating-point".
11401         * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
11402         * libm/mathfp/e_atanh.c: Likewise.
11403         * libm/mathfp/e_hypot.c: Likewise.
11404         * libm/mathfp/er_lgamma.c: Likewise.
11405         * libm/mathfp/s_acos.c: Likewise.
11406         * libm/mathfp/s_asine.c: Likewise.
11407         * libm/mathfp/s_asinh.c: Likewise.
11408         * libm/mathfp/s_atan.c: Likewise.
11409         * libm/mathfp/s_atan2.c: Likewise.
11410         * libm/mathfp/s_atangent.c: Likewise.
11411         * libm/mathfp/s_cosh.c: Likewise.
11412         * libm/mathfp/s_exp.c: Likewise.
11413         * libm/mathfp/s_fmod.c: Likewise.
11414         * libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
11415         * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
11416         "floating-point".  Use "nonzero".
11417         * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
11418         * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
11419         * libm/mathfp/s_sineh.c: Likewise.
11420         * libm/mathfp/w_jn.c: Likewise.
11421
11422 2003-10-15  Alexandre Oliva  <aoliva@redhat.com>
11423
11424         * Makefile.am: Add $(MAKE) comments to multido and multiclean
11425         lines, to enable parallel make.
11426         * Makefile.in: Rebuilt.
11427
11428 2003-10-14  Christopher Faylor  <cgf@redhat.com>
11429
11430         * libc/time/clock.c: Clarify documentation of return value when no
11431         measurement is available.
11432
11433 2003-09-29  Ian Lance Taylor  <ian@wasabisystems.com>
11434
11435         * libm/configure.in: Check libm_machine_dir, not machine_dir.
11436         * libm/configure: Regenerate.
11437         * libm/Makefile.in: Ditto.
11438
11439 2003-09-29  J"orn Rennecke <joern.rennecke@superh.com>
11440
11441         * libc/machine/sh/strncpy.S: New file.
11442         * libc/machine/sh/Makefile.am: Add entry & rule for new file.
11443         * libc/machine/sh/Makefile.in: Regenerate.
11444
11445 2003-09-11  James E Wilson  <wilson@specifixinc.com>
11446
11447         * MAINTAINERS: Update my e-mail address.
11448
11449 2003-09-10  Corinna Vinschen  <corinna@vinschen.de>
11450
11451         * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
11452
11453 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
11454
11455         * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
11456         prototype.
11457         * libc/machine/powerpc/simdldtoa.c: Remove prototype for
11458         _simdldcheck().  Also add unsigned cast for index variable in
11459         for loop using sizeof operators.
11460         * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
11461         * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
11462         * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
11463         plus fix shift calculation for determining if there is a
11464         carry from word2.
11465
11466 2003-09-09  Corinna Vinschen  <corinna@vinschen.de>
11467
11468         * libc/include/grp.h: Don't define setgrfile, group_from_gid and
11469         setgroupent for Cygwin.
11470
11471 2003-09-05  Jeff Johnston  <jjohnstn@redhat.com>
11472
11473         * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
11474         is different for _REENT_SMALL than when using regular reent
11475         struct.
11476
11477 2003-09-05  Ben Elliston  <bje@wasabisystems.com>
11478
11479         * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
11480         modern versions of GCC issue a warning.
11481
11482         * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
11483         after continuation characters that induces a warning from modern
11484         versions of GCC.
11485
11486 2003-09-04  Ben Elliston  <bje@wasabisystems.com>
11487
11488         * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards.  #ifndef FOO ||
11489         FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
11490
11491 2003-09-02  Thomas Pfaff  <tpfaff@gmx.net>
11492
11493         * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
11494         * libc/stdlib/exit.c : Ditto.
11495         * libc/stdlib/on_exit.c: Ditto.
11496
11497 2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
11498
11499         * libc/include/reent.h: Define stat64 as __stat64 when
11500         compiling newlib for Cygwin.
11501
11502 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
11503
11504         * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
11505         __stat64 when compiling newlib.
11506
11507 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
11508
11509         * libc/include/stdio.h: Allow the io64 function prototypes for
11510         Cygwin when compiling newlib.
11511         * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
11512         to expose the Cygwin struct __stat64 type.
11513         * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
11514         pointer.
11515         * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
11516
11517 2003-08-23  Christopher Faylor  <cgf@redhat.com>
11518
11519         * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
11520         definition to fseeko64.
11521
11522 2003-08-22  Jeff Johnston  <jjohnstn@redhat.com>
11523
11524         * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
11525         * libc/stdio: Globally remove/replace all references to fp->_data.
11526         Replace with _REENT or _GLOBAL_REENT where appropriate.
11527         * libc/stdio/asprintf.c: Ditto.
11528         * libc/stdio/fclose.c: Ditto.
11529         * libc/stdio/fvwrite.c: Ditto.
11530         * libc/stdio/makebuf.c: Ditto.
11531         * libc/stdio/refill.c: Ditto.
11532         * libc/stdio/local.h: Ditto.
11533         * libc/stdio/setvbuf.c: Ditto.
11534         * libc/stdio/sscanf.c: Ditto.
11535         * libc/stdio/stdio.c: Ditto.
11536         * libc/stdio/ungetc.c: Ditto.
11537         * libc/stdio/vfscanf.c: Ditto.
11538         * libc/stdio/vsscanf.c: Ditto.
11539         * libc/stdio/fopen.c: Ditto.  Also use _fseek_r in _fopen_r.
11540         * libc/stdio/vasprintf.c: Ditto.  Also call _vfprintf_r directly.
11541         * libc/stdio/vsnprintf.c: Ditto.
11542         * libc/stdio/vsprintf.c: Ditto.
11543         * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
11544         instead of _REENT to walk file list.
11545         * libc/stdio/fflush.c: Ditto.
11546         * libc/stdio/fgetpos.c: Add reentrant version and have regular
11547         version call reentrant version with _REENT argument.
11548         * libc/stdio/fsetpos.c: Ditto.
11549         * libc/stdio/fseek.c: Ditto.
11550         * libc/stdio/fseeko.c: Ditto.
11551         * libc/stdio/ftell.c: Ditto.
11552         * libc/stdio/ftello.c: Ditto.
11553         * libc/stdio/freopen.c: Ditto.
11554         * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
11555         new files to chain.  Also use _GLOBAL_REENT pointer for
11556         cleaning up.
11557         * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
11558         * libc/stdio/siprintf.c: Ditto.
11559         * libc/stdio/iprintf.c: Ditto.
11560         * libc/stdio/fprintf.c: Ditto.
11561         * libc/stdio/printf.c: Ditto.
11562         * libc/stdio/snprintf.c: Call _vfprintf_r directly.
11563         * libc/stdio/sprintf.c: Ditto.
11564         * libc/stdio/vprintf.c: Ditto.  Also add _REENT_ONLY check.
11565         * libc/stdio/rewind.c: Call _fseek_r directly.
11566         * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
11567         * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
11568         data pointer.
11569         (get_arg): Add extra struct _reent pointer argument.
11570         * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
11571         to fp->_data.
11572         * libc/stdio64/fopen64.c: Ditto.
11573         * libc/stdio64/freopen64.c: Ditto.
11574         * libc/stdio64/fsetpos64.c: Ditto.
11575         * libc/stdio64/ftello64.c: Ditto.
11576         * libc/stdio64/local64.h: Ditto.
11577         * libc/stdio64/stdio64.c: Ditto.
11578         * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
11579         _fstat64_r for the meantime.
11580
11581 2003-08-19  Jeff Johnston  <jjohnstn@redhat.com>
11582
11583         * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
11584         overflow detection.
11585
11586 2003-08-13  Aldy Hernandez  <aldyh@redhat.com>
11587
11588         * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
11589         extern "C".
11590
11591 2003-08-13  Jeff Johnston  <jjohnstn@redhat.com>
11592
11593         * libc/include/math.h: Add prototypes for __signbitf and
11594         __signbitd.
11595
11596 2003-07-31  Jeff Johnston  <jjohnstn@redhat.com>
11597
11598         * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
11599         correct type of conversion when dealing with EUCJP or SJIS.
11600         * libc/ctype/iswblank.c: Ditto.
11601         * libc/ctype/iswcntrl.c: Ditto.
11602         * libc/ctype/iswprint.c: Ditto.
11603         * libc/ctype/iswpunct.c: Ditto.
11604         * libc/ctype/iswspace.c: Ditto.
11605         * libc/ctype/towlower.c: Ditto.
11606         * libc/ctype/towupper.c: Ditto.
11607
11608 2003-07-31  Nick Clifton  <nickc@redhat.com>
11609
11610         * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
11611         before calling main, in case it saves its argument registers.
11612         Remove reference to deleted v850ea port.
11613         * configure.host: Remove reference to deleted v850ea port.
11614         Do not use -mv850 when building for v850e target.  This
11615         prevents the ctbp system register from being initialised.
11616
11617 2003-07-29  Honda Hiroki  <hhonda@ipflex.com>
11618
11619         * libc/stdio/vfprintf.c: Set output size to 1 when
11620         we have %f format with precision 0 and # flag not specified.
11621
11622 2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
11623
11624         * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
11625         .am33_2.
11626
11627 2003-07-25  Christopher Faylor  <cgf@redhat.com>
11628
11629         * libc/stdio64/fdopen64.c: Include sys/lock.h.
11630
11631 2003-07-25  Christopher Faylor  <cgf@redhat.com>
11632
11633         * configure.host: Find cygwin include directory, when appropriate.
11634
11635 2003-07-24  Christopher Faylor  <cgf@redhat.com>
11636
11637         * libc/stdio64/fdopen64.c: New file.
11638         * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
11639         * libc/stdio64/Makefile.in: Regenerate.
11640         * libc/include/stdio.h (fdopen64): Define.
11641         * libc/include/stdio.h (_fdopen64_r): Ditto.
11642
11643 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
11644
11645         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
11646         * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
11647         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
11648         restore callee-saved FP registers.
11649
11650 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
11651
11652         * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
11653         for __sh__.
11654         * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
11655         truncate.c.
11656         * libc/sys/sh/Makefile.in: Regenerate.
11657         * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
11658         * libc/sys/sh/ftruncate.c: New file.
11659         * libc/sys/sh/truncate.c: Likewise.
11660
11661 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
11662
11663         * libc/include/math.h (nan, nanf): Update prototype to C99.
11664         * libm/common/s_nan.c (nan): Likewise.
11665         * libm/common/s_nanf.c (nanf, nan): Likewise.
11666         * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
11667
11668 2003-07-07  Jeff Johnston  <jjohnstn@redhat.com>
11669
11670         * libc/include/stdbool.h: Removed as this is defined by gcc.
11671
11672 2003-07-03  Shaun Jackman  <sjackman@pathwayconnect.com>
11673
11674         * libc/include/stdbool.h: New header file defined by C99.
11675
11676 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
11677
11678         * libc/include/sys/types.h (int8_t): Make signed.
11679
11680 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
11681
11682         * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
11683
11684 2003-06-27  Jose Goncalves  <jose.goncalves@inov.pt>
11685
11686         * libc/sys/linux/mq_open.c (mq_open): Only set created flag
11687         on if we actually created the shared memory file exclusively.
11688
11689 2003-06-27  Joe Vornehm  <joev@mitre.org>
11690
11691         * libm/common/s_fpclassify.c (__fpclassifyf): Fix
11692         comparisons to account for unsigned internal value w.
11693
11694 2003-06-26  Jeff Johnston  <jjohnstn@redhat.com>
11695
11696         * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
11697         wrbuf for a non-creating open.
11698
11699 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
11700
11701         * libc/machine/h8300/setarch.h: New.
11702         * libc/machine/h8300/memcpy.S: Use it.
11703         * libc/machine/h8300/memset.S: Likewise.
11704         * libc/machine/h8300/reg_memcpy.S: Likewise.
11705         * libc/machine/h8300/reg_memset.S: Likewise.
11706         * libc/machine/h8300/setjmp.S: Likewise.
11707         * libc/machine/h8300/strcmp.S: Likewise.
11708
11709 2003-06-24  Richard Sandiford  <rsandifo@redhat.com>
11710
11711         * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
11712         to atexit().
11713
11714 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
11715
11716         * configure.host (iq2000): Add tabs.
11717
11718 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
11719
11720         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
11721         to handle latest on_exit change.
11722         * libc/sys/linux/Makefile.am: Remove special compilation
11723         for malloc.c and mcheck.c.
11724         * libc/sys/linux/Makefile.in: Regenerated.
11725         * libc/sys/linux/mntent.c: Add definition of _LIBC flag
11726         after including <features.h>.
11727         * libc/sys/linux/mcheck.c: Ditto.
11728         * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
11729         for <features.h>.
11730         * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
11731         add -DNOT_IN_libc to C flags.
11732         * libc/sys/linux/intl/Makefile.in: Regenerated.
11733         * libc/sys/linux/intl/config.h: Add definition of _LIBC.
11734         * libc/sys/linux/linuxthreads/semaphore.h: Include
11735         <bits/pthreadtypes.h>.
11736         * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
11737         including <features.h>.
11738         * libc/sys/linux/sys/lock.h: Ditto.
11739
11740 2003-06-11  Nick Clifton  <nickc@redhat.com>
11741
11742         * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
11743         _on_exit_args_ptr.
11744
11745 2003-06-10  Stan Cox  <scox@redhat.com>
11746             Anthony Green  <green@redhat.com>
11747
11748         * configure.host: Add iq2000 support.
11749         * newlib/libc/include/machine/ieeefp.h: Ditto.
11750         * newlib/libc/include/machine/setjmp.h: Ditto.
11751         * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
11752         libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
11753         libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
11754         libc/machine/iq2000/Makefile.in: New files.
11755
11756 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
11757
11758         * libc/sys/h8300hms/setarch.h: New file.
11759         * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
11760         libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
11761         libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
11762         libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
11763
11764 2003-06-06  Jeff Johnston  <jjohnstn@redhat.com>
11765
11766         * libc/argz/argz_add.c: Change to use _DEFUN macro for function
11767         definition.
11768         * libc/argz/argz_add_sep.c: Ditto.
11769         * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
11770         * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
11771         * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
11772         * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
11773         * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
11774         * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
11775         * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
11776         * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
11777         * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
11778         * libc/posix/closedir.c libc/posix/creat.c: Ditto.
11779         * libc/posix/execl.c libc/posix/execle.c: Ditto.
11780         * libc/posix/execlp.c libc/posix/execve.c: Ditto.
11781         * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
11782         * libc/posix/popen.c libc/posix/readdir.c: Ditto.
11783         * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
11784         * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
11785         * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
11786         * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
11787         * libc/search/tfind.c libc/search/tsearch.c: Ditto.
11788         * libc/search/twalk.c libc/signal/signal.c: Ditto.
11789
11790 2003-06-05  Nick Clifton  <nickc@redhat.com>
11791
11792         * libc/include/sys/reent.h (struct _on_exit_args): New
11793         structure containing fields used by the on_exit() function.
11794         (struct _atexit): Include struct _on_exit_args.  For
11795         _REENT_SMALL do his via a pointer that is initialised when
11796         needed.
11797         * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
11798         structure, if one has been allocated.
11799         * libc/stdlib/atexit.c (atexit): Update indirection to
11800         _fntypes field.
11801         * libc/stdlib/on_exit.c (on_exit): Indirect via the
11802         _on_exit_args structure.  For _REENT_SMALL, allocate a
11803         structure if one does not exist.
11804         * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
11805         structure.
11806
11807 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
11808
11809         * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
11810         * libc/sys/linux/net/Makefile.in: Regenerated.
11811
11812 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
11813
11814         * libc/reent/execr.c: Use _DEFUN macro for function declaration.
11815         * libc/reent/fcntlr.c: Ditto.
11816         * libc/reent/fstat64r.c: Ditto.
11817         * libc/reent/linkr.c: Ditto.
11818         * libc/reent/lseek64r.c: Ditto.
11819         * libc/reent/lseekr.c: Ditto.
11820         * libc/reent/openr.c: Ditto.
11821         * libc/reent/readr.c: Ditto.
11822         * libc/reent/reent.c: Ditto.
11823         * libc/reent/sbrkr.c: Ditto.
11824         * libc/reent/signalr.c: Ditto.
11825         * libc/reent/signgam.c: Ditto.
11826         * libc/reent/statr.c: Ditto.
11827         * libc/reent/timer.c: Ditto.
11828         * libc/reent/unlinkr.c: Ditto.
11829         * libc/reent/writer.c: Ditto.
11830         * libc/syscalls/sysclose.c: Ditto.
11831         * libc/syscalls/sysexecve.c: Ditto.
11832         * libc/syscalls/sysfcntl.c: Ditto.
11833         * libc/syscalls/sysfork.c: Ditto.
11834         * libc/syscalls/sysfstat.c: Ditto.
11835         * libc/syscalls/sysgetpid.c: Ditto.
11836         * libc/syscalls/sysgettod.c: Ditto.
11837         * libc/syscalls/syskill.c: Ditto.
11838         * libc/syscalls/syslink.c: Ditto.
11839         * libc/syscalls/syslseek.c: Ditto.
11840         * libc/syscalls/sysopen.c: Ditto.
11841         * libc/syscalls/sysread.c: Ditto.
11842         * libc/syscalls/syssbrk.c: Ditto.
11843         * libc/syscalls/sysstat.c: Ditto.
11844         * libc/syscalls/systimes.c: Ditto.
11845         * libc/syscalls/sysunlink.c: Ditto.
11846         * libc/syscalls/syswait.c: Ditto.
11847         * libc/syscalls/syswrite.c: Ditto.
11848
11849 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
11850
11851         * libc/time/tzset_r.c: Change local variables that are
11852         set via sscanf using the %h format specifier to be unsigned short
11853         instead of int.
11854
11855 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
11856
11857         * configure.host:  Allow i[34567]86 variant.
11858         * configure.in: Likewise.
11859         * README: Likewise to the docs.
11860         * configure: Regenerated.
11861         * Makefile.in: Ditto.
11862
11863 2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>
11864             Tom Fitzsimmons  <fitzsim@redhat.com>
11865
11866         * configure.in: Add iconvdata support for x86 linux.
11867         * configure: Regenerated.
11868         * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic
11869         library, iconv, and linuxthreads support.
11870         * libc/sys/linux/configure.in: Ditto.
11871         * libc/sys/linux/Makefile.in: Regenerated.
11872         * libc/sys/linux/configure: Ditto.
11873         * iconvdata/EUC-JP.irreversible: New file.
11874         * iconvdata/Makefile.am: Ditto.
11875         * iconvdata/Makefile.in: Ditto.
11876         * iconvdata/SJIS.irreversible: Ditto.
11877         * iconvdata/aclocal.m4: Ditto.
11878         * iconvdata/configure: Ditto.
11879         * iconvdata/configure.in: Ditto.
11880         * iconvdata/dummy.c: Ditto.
11881         * iconvdata/euc-jp.c: Ditto.
11882         * iconvdata/gconv-modules: Ditto.
11883         * iconvdata/jis0201.c: Ditto.
11884         * iconvdata/jis0201.h: Ditto.
11885         * iconvdata/jis0208.c: Ditto.
11886         * iconvdata/jis0208.h: Ditto.
11887         * iconvdata/jis0212.c: Ditto.
11888         * iconvdata/jis0212.h: Ditto.
11889         * iconvdata/sjis.c: Ditto.
11890         * libc/include/errno.h: Protect definition of error_t.
11891         * libc/sys/linux/gethostid.c: New file.
11892         * libc/sys/linux/sethostid.c: Ditto.
11893         * libc/sys/linux/dl/Makefile.am: Ditto.
11894         * libc/sys/linux/dl/Makefile.in: Ditto.
11895         * libc/sys/linux/dl/abi-tag.h: Ditto.
11896         * libc/sys/linux/dl/atomicity.h: Ditto.
11897         * libc/sys/linux/dl/dl-addr.c: Ditto.
11898         * libc/sys/linux/dl/dl-cache.c: Ditto.
11899         * libc/sys/linux/dl/dl-cache.h: Ditto.
11900         * libc/sys/linux/dl/dl-close.c: Ditto.
11901         * libc/sys/linux/dl/dl-debug.c: Ditto.
11902         * libc/sys/linux/dl/dl-deps.c: Ditto.
11903         * libc/sys/linux/dl/dl-dst.h: Ditto.
11904         * libc/sys/linux/dl/dl-error.c: Ditto.
11905         * libc/sys/linux/dl/dl-fini.c: Ditto.
11906         * libc/sys/linux/dl/dl-init.c: Ditto.
11907         * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
11908         * libc/sys/linux/dl/dl-libc.c: Ditto.
11909         * libc/sys/linux/dl/dl-librecon.h: Ditto.
11910         * libc/sys/linux/dl/dl-load.c: Ditto.
11911         * libc/sys/linux/dl/dl-lookup.c: Ditto.
11912         * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
11913         * libc/sys/linux/dl/dl-minimal.c: Ditto.
11914         * libc/sys/linux/dl/dl-misc.c: Ditto.
11915         * libc/sys/linux/dl/dl-object.c: Ditto.
11916         * libc/sys/linux/dl/dl-open.c: Ditto.
11917         * libc/sys/linux/dl/dl-osinfo.h: Ditto.
11918         * libc/sys/linux/dl/dl-profile.c: Ditto.
11919         * libc/sys/linux/dl/dl-profstub.c: Ditto.
11920         * libc/sys/linux/dl/dl-reloc.c: Ditto.
11921         * libc/sys/linux/dl/dl-runtime.c: Ditto.
11922         * libc/sys/linux/dl/dl-support.c: Ditto.
11923         * libc/sys/linux/dl/dl-sym.c: Ditto.
11924         * libc/sys/linux/dl/dl-version.c: Ditto.
11925         * libc/sys/linux/dl/dlfcn.h: Ditto.
11926         * libc/sys/linux/dl/do-lookup.h: Ditto.
11927         * libc/sys/linux/dl/do-rel.h: Ditto.
11928         * libc/sys/linux/dl/dynamic-link.h: Ditto.
11929         * libc/sys/linux/dl/kernel-features.h: Ditto.
11930         * libc/sys/linux/dl/ldsodefs.h: Ditto.
11931         * libc/sys/linux/dl/libintl.h: Ditto.
11932         * libc/sys/linux/dl/trusted-dirs.h: Ditto.
11933         * libc/sys/linux/dl/unsecvars.h: Ditto.
11934         * libc/sys/linux/iconv/Makefile.am: Ditto.
11935         * libc/sys/linux/iconv/Makefile.in: Ditto.
11936         * libc/sys/linux/iconv/categories.def: Ditto.
11937         * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
11938         * libc/sys/linux/iconv/gconv.c: Ditto.
11939         * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
11940         * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
11941         * libc/sys/linux/iconv/gconv_cache.c: Ditto.
11942         * libc/sys/linux/iconv/gconv_charset.h: Ditto.
11943         * libc/sys/linux/iconv/gconv_close.c: Ditto.
11944         * libc/sys/linux/iconv/gconv_conf.c: Ditto.
11945         * libc/sys/linux/iconv/gconv_db.c: Ditto.
11946         * libc/sys/linux/iconv/gconv_dl.c: Ditto.
11947         * libc/sys/linux/iconv/gconv_int.h: Ditto.
11948         * libc/sys/linux/iconv/gconv_open.c: Ditto.
11949         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
11950         * libc/sys/linux/iconv/gconv_trans.c: Ditto.
11951         * libc/sys/linux/iconv/hash-string.h: Ditto.
11952         * libc/sys/linux/iconv/iconv.c: Ditto.
11953         * libc/sys/linux/iconv/iconv.h: Ditto.
11954         * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
11955         * libc/sys/linux/iconv/iconv_close.c: Ditto.
11956         * libc/sys/linux/iconv/iconv_open.c: Ditto.
11957         * libc/sys/linux/iconv/iconvconfig.c: Ditto.
11958         * libc/sys/linux/iconv/iconvconfig.h: Ditto.
11959         * libc/sys/linux/iconv/loadinfo.h: Ditto.
11960         * libc/sys/linux/iconv/localeinfo.h: Ditto.
11961         * libc/sys/linux/iconv/loop.c: Ditto.
11962         * libc/sys/linux/iconv/skeleton.c: Ditto.
11963         * libc/sys/linux/iconv/strtab.c: Ditto.
11964         * libc/sys/linux/include/dl-hash.h: Ditto.
11965         * libc/sys/linux/include/dlfcn.h: Ditto.
11966         * libc/sys/linux/include/fnmatch.h: Ditto.
11967         * libc/sys/linux/include/gconv.h: Ditto.
11968         * libc/sys/linux/include/glob.h: Ditto.
11969         * libc/sys/linux/include/hesiod.h: Ditto.
11970         * libc/sys/linux/include/ifaddrs.h: Ditto.
11971         * libc/sys/linux/include/libc_private.h: Ditto.
11972         * libc/sys/linux/include/link.h: Ditto.
11973         * libc/sys/linux/include/namespace.h: Ditto.
11974         * libc/sys/linux/include/netconfig.h: Ditto.
11975         * libc/sys/linux/include/netdb.h: Ditto.
11976         * libc/sys/linux/include/nsswitch.h: Ditto.
11977         * libc/sys/linux/include/regex.h: Ditto.
11978         * libc/sys/linux/include/resolv.h: Ditto.
11979         * libc/sys/linux/include/rune.h: Ditto.
11980         * libc/sys/linux/include/runetype.h: Ditto.
11981         * libc/sys/linux/include/semaphore.h: Ditto.
11982         * libc/sys/linux/include/setlocale.h: Ditto.
11983         * libc/sys/linux/include/un-namespace.h: Ditto.
11984         * libc/sys/linux/include/wordexp.h: Ditto.
11985         * libc/sys/linux/include/arpa/ftp.h: Ditto.
11986         * libc/sys/linux/include/arpa/inet.h: Ditto.
11987         * libc/sys/linux/include/arpa/nameser.h: Ditto.
11988         * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
11989         * libc/sys/linux/include/arpa/telnet.h: Ditto.
11990         * libc/sys/linux/include/arpa/tftp.h: Ditto.
11991         * libc/sys/linux/include/net/bpf.h: Ditto.
11992         * libc/sys/linux/include/net/bpf_compat.h: Ditto.
11993         * libc/sys/linux/include/net/bpfdesc.h: Ditto.
11994         * libc/sys/linux/include/net/bridge.h: Ditto.
11995         * libc/sys/linux/include/net/ethernet.h: Ditto.
11996         * libc/sys/linux/include/net/fddi.h: Ditto.
11997         * libc/sys/linux/include/net/if.h: Ditto.
11998         * libc/sys/linux/include/net/if_arc.h: Ditto.
11999         * libc/sys/linux/include/net/if_arp.h: Ditto.
12000         * libc/sys/linux/include/net/if_atm.h: Ditto.
12001         * libc/sys/linux/include/net/if_dl.h: Ditto.
12002         * libc/sys/linux/include/net/if_gif.h: Ditto.
12003         * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
12004         * libc/sys/linux/include/net/if_llc.h: Ditto.
12005         * libc/sys/linux/include/net/if_media.h: Ditto.
12006         * libc/sys/linux/include/net/if_mib.h: Ditto.
12007         * libc/sys/linux/include/net/if_ppp.h: Ditto.
12008         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
12009         * libc/sys/linux/include/net/if_slvar.h: Ditto.
12010         * libc/sys/linux/include/net/if_sppp.h: Ditto.
12011         * libc/sys/linux/include/net/if_stf.h: Ditto.
12012         * libc/sys/linux/include/net/if_tap.h: Ditto.
12013         * libc/sys/linux/include/net/if_tapvar.h: Ditto.
12014         * libc/sys/linux/include/net/if_tun.h: Ditto.
12015         * libc/sys/linux/include/net/if_tunvar.h: Ditto.
12016         * libc/sys/linux/include/net/if_types.h: Ditto.
12017         * libc/sys/linux/include/net/if_var.h: Ditto.
12018         * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
12019         * libc/sys/linux/include/net/intrq.h: Ditto.
12020         * libc/sys/linux/include/net/iso88025.h: Ditto.
12021         * libc/sys/linux/include/net/net_osdep.h: Ditto.
12022         * libc/sys/linux/include/net/netisr.h: Ditto.
12023         * libc/sys/linux/include/net/pfil.h: Ditto.
12024         * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
12025         * libc/sys/linux/include/net/ppp_comp.h: Ditto.
12026         * libc/sys/linux/include/net/ppp_defs.h: Ditto.
12027         * libc/sys/linux/include/net/radix.h: Ditto.
12028         * libc/sys/linux/include/net/raw_cb.h: Ditto.
12029         * libc/sys/linux/include/net/route.h: Ditto.
12030         * libc/sys/linux/include/net/slcompress.h: Ditto.
12031         * libc/sys/linux/include/net/slip.h: Ditto.
12032         * libc/sys/linux/include/net/zlib.h: Ditto.
12033         * libc/sys/linux/include/netinet/icmp6.h: Ditto.
12034         * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
12035         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
12036         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
12037         * libc/sys/linux/include/netinet/igmp.h: Ditto.
12038         * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
12039         * libc/sys/linux/include/netinet/in.h: Ditto.
12040         * libc/sys/linux/include/netinet/in_gif.h: Ditto.
12041         * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
12042         * libc/sys/linux/include/netinet/in_systm.h: Ditto.
12043         * libc/sys/linux/include/netinet/in_var.h: Ditto.
12044         * libc/sys/linux/include/netinet/ip.h: Ditto.
12045         * libc/sys/linux/include/netinet/ip6.h: Ditto.
12046         * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
12047         * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
12048         * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
12049         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
12050         * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
12051         * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
12052         * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
12053         * libc/sys/linux/include/netinet/ip_var.h: Ditto.
12054         * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
12055         * libc/sys/linux/include/netinet/tcp.h: Ditto.
12056         * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
12057         * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
12058         * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
12059         * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
12060         * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
12061         * libc/sys/linux/include/netinet/tcpip.h: Ditto.
12062         * libc/sys/linux/include/netinet/udp.h: Ditto.
12063         * libc/sys/linux/include/netinet/udp_var.h: Ditto.
12064         * libc/sys/linux/include/netinet6/ah.h: Ditto.
12065         * libc/sys/linux/include/netinet6/ah6.h: Ditto.
12066         * libc/sys/linux/include/netinet6/esp.h: Ditto.
12067         * libc/sys/linux/include/netinet6/esp6.h: Ditto.
12068         * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
12069         * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
12070         * libc/sys/linux/include/netinet6/in6.h: Ditto.
12071         * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
12072         * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
12073         * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
12074         * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
12075         * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
12076         * libc/sys/linux/include/netinet6/ip6.h: Ditto.
12077         * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
12078         * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
12079         * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
12080         * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
12081         * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
12082         * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
12083         * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
12084         * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
12085         * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
12086         * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
12087         * libc/sys/linux/include/netinet6/nd6.h: Ditto.
12088         * libc/sys/linux/include/netinet6/pim6.h: Ditto.
12089         * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
12090         * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
12091         * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
12092         * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
12093         * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
12094         * libc/sys/linux/include/netns/idp.h: Ditto.
12095         * libc/sys/linux/include/netns/idp_var.h: Ditto.
12096         * libc/sys/linux/include/netns/ns.h: Ditto.
12097         * libc/sys/linux/include/netns/ns_error.h: Ditto.
12098         * libc/sys/linux/include/netns/ns_if.h: Ditto.
12099         * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
12100         * libc/sys/linux/include/netns/sp.h: Ditto.
12101         * libc/sys/linux/include/netns/spidp.h: Ditto.
12102         * libc/sys/linux/include/netns/spp_debug.h: Ditto.
12103         * libc/sys/linux/include/netns/spp_timer.h: Ditto.
12104         * libc/sys/linux/include/netns/spp_var.h: Ditto.
12105         * libc/sys/linux/include/rpc/Makefile: Ditto.
12106         * libc/sys/linux/include/rpc/auth.h: Ditto.
12107         * libc/sys/linux/include/rpc/auth_des.h: Ditto.
12108         * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
12109         * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
12110         * libc/sys/linux/include/rpc/clnt.h: Ditto.
12111         * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
12112         * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
12113         * libc/sys/linux/include/rpc/des.h: Ditto.
12114         * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
12115         * libc/sys/linux/include/rpc/nettype.h: Ditto.
12116         * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
12117         * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
12118         * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
12119         * libc/sys/linux/include/rpc/raw.h: Ditto.
12120         * libc/sys/linux/include/rpc/rpc.h: Ditto.
12121         * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
12122         * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
12123         * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
12124         * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
12125         * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
12126         * libc/sys/linux/include/rpc/rpcent.h: Ditto.
12127         * libc/sys/linux/include/rpc/svc.h: Ditto.
12128         * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
12129         * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
12130         * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
12131         * libc/sys/linux/include/rpc/types.h: Ditto.
12132         * libc/sys/linux/include/rpc/xdr.h: Ditto.
12133         * libc/sys/linux/intl/Makefile.am: Ditto.
12134         * libc/sys/linux/intl/Makefile.in: Ditto.
12135         * libc/sys/linux/intl/bindtextdom.c: Ditto.
12136         * libc/sys/linux/intl/catgets.c: Ditto.
12137         * libc/sys/linux/intl/catgetsinfo.h: Ditto.
12138         * libc/sys/linux/intl/config.h: Ditto.
12139         * libc/sys/linux/intl/dcgettext.c: Ditto.
12140         * libc/sys/linux/intl/dcigettext.c: Ditto.
12141         * libc/sys/linux/intl/dcngettext.c: Ditto.
12142         * libc/sys/linux/intl/dgettext.c: Ditto.
12143         * libc/sys/linux/intl/dngettext.c: Ditto.
12144         * libc/sys/linux/intl/explodename.c: Ditto.
12145         * libc/sys/linux/intl/finddomain.c: Ditto.
12146         * libc/sys/linux/intl/gettext.c: Ditto.
12147         * libc/sys/linux/intl/gettext.h: Ditto.
12148         * libc/sys/linux/intl/gettextP.h: Ditto.
12149         * libc/sys/linux/intl/hash-string.h: Ditto.
12150         * libc/sys/linux/intl/l10nflist.c: Ditto.
12151         * libc/sys/linux/intl/loadinfo.h: Ditto.
12152         * libc/sys/linux/intl/loadmsgcat.c: Ditto.
12153         * libc/sys/linux/intl/locale.alias: Ditto.
12154         * libc/sys/linux/intl/localealias.c: Ditto.
12155         * libc/sys/linux/intl/ngettext.c: Ditto.
12156         * libc/sys/linux/intl/open_catalog.c: Ditto.
12157         * libc/sys/linux/intl/plural.c: Ditto.
12158         * libc/sys/linux/intl/plural.y: Ditto.
12159         * libc/sys/linux/intl/stpcpy.c: Ditto.
12160         * libc/sys/linux/intl/textdomain.c: Ditto.
12161         * libc/sys/linux/linuxthreads/LICENSE: Ditto.
12162         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
12163         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
12164         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
12165         * libc/sys/linux/linuxthreads/attr.c: Ditto.
12166         * libc/sys/linux/linuxthreads/barrier.c: Ditto.
12167         * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
12168         * libc/sys/linux/linuxthreads/cancel.c: Ditto.
12169         * libc/sys/linux/linuxthreads/condvar.c: Ditto.
12170         * libc/sys/linux/linuxthreads/config.h: Ditto.
12171         * libc/sys/linux/linuxthreads/configure: Ditto.
12172         * libc/sys/linux/linuxthreads/configure.in: Ditto.
12173         * libc/sys/linux/linuxthreads/defs.awk: Ditto.
12174         * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
12175         * libc/sys/linux/linuxthreads/events.c: Ditto.
12176         * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
12177         * libc/sys/linux/linuxthreads/getreent.c: Ditto.
12178         * libc/sys/linux/linuxthreads/internals.h: Ditto.
12179         * libc/sys/linux/linuxthreads/join.c: Ditto.
12180         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
12181         * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
12182         * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
12183         * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
12184         * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
12185         * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
12186         * libc/sys/linux/linuxthreads/manager.c: Ditto.
12187         * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
12188         * libc/sys/linux/linuxthreads/mutex.c: Ditto.
12189         * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
12190         * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
12191         * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
12192         * libc/sys/linux/linuxthreads/prio.c: Ditto.
12193         * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
12194         * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
12195         * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
12196         * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
12197         * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
12198         * libc/sys/linux/linuxthreads/pthread.c: Ditto.
12199         * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
12200         * libc/sys/linux/linuxthreads/queue.h: Ditto.
12201         * libc/sys/linux/linuxthreads/reent.c: Ditto.
12202         * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
12203         * libc/sys/linux/linuxthreads/restart.h: Ditto.
12204         * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
12205         * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
12206         * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
12207         * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
12208         * libc/sys/linux/linuxthreads/signals.c: Ditto.
12209         * libc/sys/linux/linuxthreads/specific.c: Ditto.
12210         * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
12211         * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
12212         * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
12213         * libc/sys/linux/linuxthreads/td_init.c: Ditto.
12214         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
12215         * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
12216         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
12217         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
12218         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
12219         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
12220         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
12221         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
12222         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
12223         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
12224         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
12225         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
12226         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
12227         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
12228         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
12229         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
12230         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
12231         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
12232         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
12233         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
12234         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
12235         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
12236         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
12237         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
12238         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
12239         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
12240         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
12241         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
12242         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
12243         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
12244         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
12245         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
12246         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
12247         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
12248         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
12249         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
12250         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
12251         * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
12252         * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
12253         * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
12254         * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
12255         * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
12256         * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
12257         * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
12258         * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
12259         * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
12260         * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
12261         * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
12262         * libc/sys/linux/linuxthreads/tststack.c: Ditto.
12263         * libc/sys/linux/linuxthreads/unload.c: Ditto.
12264         * libc/sys/linux/linuxthreads/weaks.c: Ditto.
12265         * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
12266         * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
12267         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
12268         * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
12269         * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
12270         * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
12271         * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
12272         * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
12273         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
12274         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
12275         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
12276         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
12277         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
12278         * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
12279         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
12280         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
12281         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
12282         * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
12283         * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
12284         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
12285         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
12286         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
12287         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
12288         * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
12289         * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
12290         * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
12291         * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
12292         * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
12293         * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
12294         * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
12295         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
12296         * libc/sys/linux/net/Makefile.am: Ditto.
12297         * libc/sys/linux/net/Makefile.in: Ditto.
12298         * libc/sys/linux/net/addr2ascii.3: Ditto.
12299         * libc/sys/linux/net/addr2ascii.c: Ditto.
12300         * libc/sys/linux/net/ascii2addr.c: Ditto.
12301         * libc/sys/linux/net/base64.c: Ditto.
12302         * libc/sys/linux/net/bindresvport.c: Ditto.
12303         * libc/sys/linux/net/byteorder.3: Ditto.
12304         * libc/sys/linux/net/ether_addr.c: Ditto.
12305         * libc/sys/linux/net/ethers.3: Ditto.
12306         * libc/sys/linux/net/getaddrinfo.3: Ditto.
12307         * libc/sys/linux/net/getaddrinfo.c: Ditto.
12308         * libc/sys/linux/net/gethostbydns.c: Ditto.
12309         * libc/sys/linux/net/gethostbyht.c: Ditto.
12310         * libc/sys/linux/net/gethostbyname.3: Ditto.
12311         * libc/sys/linux/net/gethostbynis.c: Ditto.
12312         * libc/sys/linux/net/gethostnamadr.c: Ditto.
12313         * libc/sys/linux/net/getifaddrs.3: Ditto.
12314         * libc/sys/linux/net/getifaddrs.c: Ditto.
12315         * libc/sys/linux/net/getipnodebyname.3: Ditto.
12316         * libc/sys/linux/net/getnameinfo.3: Ditto.
12317         * libc/sys/linux/net/getnameinfo.c: Ditto.
12318         * libc/sys/linux/net/getnetbydns.c: Ditto.
12319         * libc/sys/linux/net/getnetbyht.c: Ditto.
12320         * libc/sys/linux/net/getnetbynis.c: Ditto.
12321         * libc/sys/linux/net/getnetent.3: Ditto.
12322         * libc/sys/linux/net/getnetnamadr.c: Ditto.
12323         * libc/sys/linux/net/getproto.c: Ditto.
12324         * libc/sys/linux/net/getprotoent.3: Ditto.
12325         * libc/sys/linux/net/getprotoent.c: Ditto.
12326         * libc/sys/linux/net/getprotoname.c: Ditto.
12327         * libc/sys/linux/net/getservbyname.c: Ditto.
12328         * libc/sys/linux/net/getservbyport.c: Ditto.
12329         * libc/sys/linux/net/getservent.3: Ditto.
12330         * libc/sys/linux/net/getservent.c: Ditto.
12331         * libc/sys/linux/net/herror.c: Ditto.
12332         * libc/sys/linux/net/hesiod.3: Ditto.
12333         * libc/sys/linux/net/hesiod.c: Ditto.
12334         * libc/sys/linux/net/if_indextoname.3: Ditto.
12335         * libc/sys/linux/net/ifname.c: Ditto.
12336         * libc/sys/linux/net/inet.3: Ditto.
12337         * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
12338         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
12339         * libc/sys/linux/net/inet_addr.c: Ditto.
12340         * libc/sys/linux/net/inet_lnaof.c: Ditto.
12341         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
12342         * libc/sys/linux/net/inet_net.3: Ditto.
12343         * libc/sys/linux/net/inet_net_ntop.c: Ditto.
12344         * libc/sys/linux/net/inet_net_pton.c: Ditto.
12345         * libc/sys/linux/net/inet_neta.c: Ditto.
12346         * libc/sys/linux/net/inet_netof.c: Ditto.
12347         * libc/sys/linux/net/inet_network.c: Ditto.
12348         * libc/sys/linux/net/inet_ntoa.c: Ditto.
12349         * libc/sys/linux/net/inet_ntop.c: Ditto.
12350         * libc/sys/linux/net/inet_pton.c: Ditto.
12351         * libc/sys/linux/net/innetgr-stub.c: Ditto.
12352         * libc/sys/linux/net/ip6opt.c: Ditto.
12353         * libc/sys/linux/net/iso_addr.3: Ditto.
12354         * libc/sys/linux/net/iso_addr.c: Ditto.
12355         * libc/sys/linux/net/issetugid-stub.c: Ditto.
12356         * libc/sys/linux/net/linkaddr.3: Ditto.
12357         * libc/sys/linux/net/linkaddr.c: Ditto.
12358         * libc/sys/linux/net/map_v4v6.c: Ditto.
12359         * libc/sys/linux/net/name6.c: Ditto.
12360         * libc/sys/linux/net/namespace.h: Ditto.
12361         * libc/sys/linux/net/ns.3: Ditto.
12362         * libc/sys/linux/net/ns_addr.c: Ditto.
12363         * libc/sys/linux/net/ns_name.c: Ditto.
12364         * libc/sys/linux/net/ns_netint.c: Ditto.
12365         * libc/sys/linux/net/ns_ntoa.c: Ditto.
12366         * libc/sys/linux/net/ns_parse.c: Ditto.
12367         * libc/sys/linux/net/ns_print.c: Ditto.
12368         * libc/sys/linux/net/ns_ttl.c: Ditto.
12369         * libc/sys/linux/net/nsap_addr.c: Ditto.
12370         * libc/sys/linux/net/nsdispatch.3: Ditto.
12371         * libc/sys/linux/net/nsdispatch.c: Ditto.
12372         * libc/sys/linux/net/nslexer.c: Ditto.
12373         * libc/sys/linux/net/nslexer.l: Ditto.
12374         * libc/sys/linux/net/nsparser.c: Ditto.
12375         * libc/sys/linux/net/nsparser.h: Ditto.
12376         * libc/sys/linux/net/nsparser.y: Ditto.
12377         * libc/sys/linux/net/rcmd.3: Ditto.
12378         * libc/sys/linux/net/rcmd.c: Ditto.
12379         * libc/sys/linux/net/rcmdsh.3: Ditto.
12380         * libc/sys/linux/net/rcmdsh.c: Ditto.
12381         * libc/sys/linux/net/recv.c: Ditto.
12382         * libc/sys/linux/net/res_comp.c: Ditto.
12383         * libc/sys/linux/net/res_config.h: Ditto.
12384         * libc/sys/linux/net/res_data.c: Ditto.
12385         * libc/sys/linux/net/res_debug.c: Ditto.
12386         * libc/sys/linux/net/res_init.c: Ditto.
12387         * libc/sys/linux/net/res_mkquery.c: Ditto.
12388         * libc/sys/linux/net/res_mkupdate.c: Ditto.
12389         * libc/sys/linux/net/res_query.c: Ditto.
12390         * libc/sys/linux/net/res_send.c: Ditto.
12391         * libc/sys/linux/net/res_update.c: Ditto.
12392         * libc/sys/linux/net/resolver.3: Ditto.
12393         * libc/sys/linux/net/rthdr.c: Ditto.
12394         * libc/sys/linux/net/send.c: Ditto.
12395         * libc/sys/linux/net/un-namespace.h: Ditto.
12396         * libc/sys/linux/net/vars.c: Ditto.
12397         * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
12398         * libc/sys/linux/stdlib/Makefile.am: Ditto.
12399         * libc/sys/linux/stdlib/Makefile.in: Ditto.
12400         * libc/sys/linux/stdlib/cclass.h: Ditto.
12401         * libc/sys/linux/stdlib/cname.h: Ditto.
12402         * libc/sys/linux/stdlib/collate.c: Ditto.
12403         * libc/sys/linux/stdlib/collate.h: Ditto.
12404         * libc/sys/linux/stdlib/collcmp.c: Ditto.
12405         * libc/sys/linux/stdlib/engine.c: Ditto.
12406         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
12407         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
12408         * libc/sys/linux/stdlib/glob.3: Ditto.
12409         * libc/sys/linux/stdlib/glob.c: Ditto.
12410         * libc/sys/linux/stdlib/reallocf.c: Ditto.
12411         * libc/sys/linux/stdlib/regcomp.c: Ditto.
12412         * libc/sys/linux/stdlib/regerror.c: Ditto.
12413         * libc/sys/linux/stdlib/regex.3: Ditto.
12414         * libc/sys/linux/stdlib/regex2.h: Ditto.
12415         * libc/sys/linux/stdlib/regexec.c: Ditto.
12416         * libc/sys/linux/stdlib/regfree.c: Ditto.
12417         * libc/sys/linux/stdlib/utils.h: Ditto.
12418         * libc/sys/linux/stdlib/wordexp.c: Ditto.
12419         * libc/sys/linux/stdlib/wordfree.c: Ditto.
12420         * libc/sys/linux/sys/dlfcn.h: Ditto.
12421         * libc/sys/linux/sys/elfclass.h: Ditto.
12422         * libc/sys/linux/sys/event.h: Ditto.
12423         * libc/sys/linux/sys/ioccom.h: Ditto.
12424         * libc/sys/linux/sys/libc-tsd.h: Ditto.
12425         * libc/sys/linux/sys/link.h: Ditto.
12426         * libc/sys/linux/sys/lock.h: Ditto.
12427         * libc/sys/linux/sys/param.h: Ditto.
12428         * libc/sys/linux/sys/socket.h: Ditto.
12429         * libc/sys/linux/sys/sockio.h: Ditto.
12430
12431 2003-05-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
12432
12433         * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for
12434         normal mode
12435         * newlib/libc/machine/h8300/memset.S: Likewise
12436         * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
12437         * newlib/lib/machine/h8300/reg_memset.S: Likewise
12438         * newlib/lib/machine/h8300/setjmp.S: Likewise
12439         * newlib/lib/machine/h8300/strcmp.S: Likewise
12440         * newlib/lib/sys/h8300hms/crt0.S: Likewise
12441
12442 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
12443
12444         * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
12445         * libc/include/stdio.h: Ditto.
12446         * libc/include/sys/config.h: Ditto.
12447         * libc/stdio/mktemp.c: Ditto.
12448
12449 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
12450
12451         * libc/locale/ldpart.c (__part_load_locale): Substitute
12452         __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
12453         * libc/search/hash.c (__hash_open): Ditto.
12454         (init_hash): Ditto.
12455         * libc/stdio/fseek.c (fseek): Ditto.
12456         * libc/stdio/makebuf.c (__smakebuf): Ditto.
12457         * libc/stdio/mktemp.c (_gettemp): Ditto.
12458
12459 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
12460
12461         * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
12462
12463 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
12464
12465         * configure.host: Accomodate removing the libc/sys/cygwin dir.
12466         * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
12467         if __CYGWIN_USE_BIG_TYPES__ is set.
12468         * libc/search/hash.c (__hash_open): Ditto.
12469         (init_hash): Ditto.
12470         * libc/stdio/fseek.c (fseek): Ditto.
12471         * libc/stdio/makebuf.c (__smakebuf): Ditto.
12472         * libc/stdio/mktemp.c (_gettemp): Ditto.
12473         * libc/sys/cygwin/Makefile.am: Remove.
12474         * libc/sys/cygwin/Makefile.in: Remove.
12475         * libc/sys/cygwin/aclocal.m4: Remove.
12476         * libc/sys/cygwin/configure: Remove.
12477         * libc/sys/cygwin/configure.in: Remove.
12478         * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
12479         * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
12480         directory.
12481         * libc/sys/cygwin/sys/param.h: Ditto.
12482         * libc/sys/cygwin/sys/utime.h: Ditto.
12483         * libc/sys/cygwin/sys/utmp.h: Ditto.
12484
12485 2003-05-11  Corinna Vinschen  <corinna@vinschen.de>
12486
12487         * libc/include/sys/types.h: Don't define key_t for Cygwin.
12488
12489 2003-05-10  Christopher Faylor  <cgf@redhat.com>
12490
12491         * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
12492         64 bit inodes.
12493
12494 2003-05-09  Corinna Vinschen  <corinna@vinschen.de>
12495
12496         * libc/include/sys/config.h: Remove all Cygwin specific configuration.
12497         Include cygwin/config.h instead.
12498
12499 2003-04-16  Jeff Johnston  <jjohnstn@redhat.com>
12500
12501         * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
12502         all code with #ifdef __SPE__ test.
12503         * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
12504
12505 2003-04-15  Chris January <chris@atomice.net>
12506
12507         * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
12508         Cygwin.
12509
12510 2003-04-09  J"orn Rennecke <joern.rennecke@superh.com>
12511
12512         * libc/machine/sh/memset.S: Avoid clobbering volatile
12513         objects following a tiny to-be-set array in the same quadword.
12514
12515 2001-04-09  Corinna Vinschen  <corinna@vinschen.de>
12516
12517         * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.
12518         * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
12519         * libc/string/Makefile.in: Regenerated.
12520         * libc/string/wcswidth.c: New file.
12521         * libc/string/wcwidth.c: New file.
12522         * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
12523
12524 Thu Apr  3 14:01:16 2003  J"orn Rennecke <joern.rennecke@superh.com>
12525
12526         * libc/machine/sh/memset.S: Fix problem with alloco region
12527         exceeding destination region for length >= 88 bytes, start
12528         & 0x16 == 0, end & 0x1f == 18.
12529
12530 2001-04-03  Corinna Vinschen  <corinna@vinschen.de>
12531
12532         * libc/string/wcscoll.c: Fix comment.
12533
12534 2001-04-02  Corinna Vinschen  <corinna@vinschen.de>
12535
12536         * libc/include/wchar.h: Add definition for wcscoll.
12537         * libc/string/Makefile.am: Add wcscoll.c.
12538         * libc/string/Makefile.in: Regenerated.
12539         * libc/string/wcscoll.c: New file.
12540         * libc/string/wcstrings.tex: Add wcscoll.
12541
12542 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
12543
12544         * libc/stdio/sscanf.c: Update flags description.
12545         * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
12546         type.
12547         (__svfscanf_r): Add 'hh' and 'll' handling.
12548
12549 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
12550
12551         * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
12552         __d_position member to _off_t.
12553
12554 2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>
12555
12556         * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
12557         count all characters used to create number against maximum width.
12558         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
12559
12560 2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>
12561
12562         * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
12563         support.
12564         * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
12565         flag to support simulator only extensions.
12566
12567 2003-03-17  Bob Cassels  <bcassels@abinitio.com>
12568
12569         * libc/string/wcschr.c: (wcschr): Look for character first,
12570         then for end of string, so you can do wcschr(x, '\0').
12571
12572 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>
12573
12574         * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
12575         with internal (_fpos_t and _off_t) datatypes when compiling newlib.
12576         * libc/include/sys/unistd.h: Declare _lseek using _off_t.
12577         * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
12578         * libc/stdio/fseeko.c (fseeko): Ditto.
12579         * libc/stdio/ftello.c (ftello): Ditto.
12580         * libc/stdio/stdio.c (__swrite): Ditto.
12581         (__sseek): Ditto.
12582         * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
12583         * libc/stdio/fseek.c (fseek): Ditto.
12584         * libc/stdio/fsetpos.c (fsetpos): Ditto.
12585         * libc/stdio/ftell.c (ftell): Ditto.
12586         * libc/stdio/local.h: Declare __sseek using _off_t.
12587
12588 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
12589
12590         * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
12591
12592 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
12593
12594         * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
12595         Cygwin.
12596
12597 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
12598
12599         * libc/include/pwd.h: Add guards to avoid type clashes when compiling
12600         Cygwin.
12601         * libc/include/sys/stat.h: Ditto.
12602         * libc/include/sys/unistd.h: Ditto.
12603         * libc/sys/cygwin/sys/dirent.h: Ditto.
12604
12605 2003-03-07  Christopher Faylor  <cgf@redhat.com>
12606
12607         * libc/include/sys/unistd.h: Guard getopt.h call to force only
12608         declaration of getopt and avoid getopt_long declaration.
12609         * libc/sys/cygwin/include/unistd.h: Remove.
12610
12611 2003-03-07  Corinna Vinschen  <corinna@vinschen.de>
12612
12613         * configure.host: Define stdio64_dir for Cygwin.
12614         * libc/include/stdio.h: Change definition of fpos_t to fulfill
12615         Cygwin 64bit file access requirements.
12616         Drop definition of f*64() functions when compiled for Cygwin.
12617         * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
12618         * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
12619         * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
12620
12621 2003-03-07   Jeff Johnston  <jjohnstn@redhat.com>
12622
12623         * libc/include/sys/reent.h: Remove extraneous _sig_func
12624         declaration.
12625
12626 2003-02-25   D.Venkatasubramanian <dvenkat@noida.hcltech.com>
12627
12628         * libc/sys/h8300hms/Makefile.am: Add support for new files.
12629         * libc/sys/h8300hms/Makefile.in: Regenerated.
12630         * libc/sys/h8300hms/close.S: New file.
12631         * libc/sys/h8300hms/fstat.S: Ditto.
12632         * libc/sys/h8300hms/lseek.S: Ditto.
12633         * libc/sys/h8300hms/open.S: Ditto.
12634         * libc/sys/h8300hms/stat.S: Ditto.
12635         * libc/sys/h8300hms/read.S: New file to replace read.c.
12636         * libc/sys/h8300hms/read.c: Removed.
12637         * libc/sys/h8300hms/syscalls.c: Removed functions _open,
12638         _lseek, _close, _stat, _fstat.
12639         * libc/sys/h8300hms/write.S: New file to replace write.c.
12640         * libc/sys/h8300hms/write.c: Removed.
12641
12642 2003-02-20  Nick Clifton  <nickc@redhat.com>
12643
12644         * Add support for Cirrus Maverick ARM co-processor:
12645
12646         2000-09-13  Aldy Hernandez  <aldyh@redhat.com>
12647
12648                 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
12649                 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
12650
12651         2000-08-11  Aldy Hernandez  <aldyh@redhat.com>
12652
12653                 * configure.host: set sys_dir, syscall_dir, and
12654                 newlib_cflags for ep9312 host.
12655
12656         * configure.host: Restore alpha sorting of entries in case
12657         statements.
12658
12659 2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
12660
12661         * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
12662
12663 2003-02-18  Christian Groessler  <chris@groessler.org>
12664
12665         * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
12666         support z8001 segmented mode.
12667
12668 2003-02-18  Earnie Boyd  <earnie@users.sf.net>
12669
12670         * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
12671         with a NULL value.
12672
12673 2003-02-10  Christopher Faylor  <cgf@redhat.com>
12674
12675         * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
12676         Don't define some types under cygwin.
12677
12678 2003-02-07  Jeff Johnston  <jjohnstn@redhat.com>
12679
12680         * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
12681         option to allow disabling of syscalls being supplied in newlib.
12682         * aclocal.m4: Regenerated.
12683         * configure: Ditto.
12684         * configure.host: Add support of new configuration option and add
12685         -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
12686         * doc/aclocal.m4: Regenerated.
12687         * doc/configure: Ditto.
12688         * libc/*aclocal.m4: Ditto.
12689         * libc/*configure: Ditto.
12690         * libm/*aclocal.m4: Ditto.
12691         * libm/*configure: Ditto.
12692         * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
12693         is disabled.
12694         * libc/sys/arm/Makefile.in: Regenerated.
12695
12696 2003-02-05  Jonathan Larmour  <jifl@eCosCentric.com>
12697
12698         * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
12699         -1 to be sure it cannot later match a valid file fd causing
12700         isatty() to return 1.
12701         * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
12702         * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
12703         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
12704
12705 2003-02-03  Jeff Johnston  <jjohnstn@redhat.com>
12706
12707         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
12708         buffer based on the precision, after we have processed the input value
12709         in a local buffer and know its relative magnitude.
12710
12711 2003-01-31  Michael Snyder  <msnyder@redhat.com>
12712
12713         * libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
12714         into registers r1 and r2, so that the simulator can distinguish
12715         this trap from a breakpoint trap.  Copied from libgloss.
12716
12717 2003-01-31  Michael Snyder  <msnyder@redhat.com>
12718
12719         * libc/sys/h8300hms/crt0.S (_start): Change local label
12720         from .loop to .Loop, so that ld and gdb will ignore it.
12721
12722 2003-01-29  Jason Tishler  <jason@tishler.net>
12723
12724         * libc/include/time.h: Declare nanosleep() under Cygwin.
12725
12726 2003-01-24  Nick Clifton  <nickc@redhat.com>
12727
12728         * Add sh2e support:
12729
12730         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
12731
12732                 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
12733                 * libc/machine/sh/setjmp.S: Likewise.
12734                 * libc/include/machine/ieeefp.h: Likewise.
12735
12736 2003-01-24  Corinna Vinschen  <corinna@vinschen.de>
12737
12738         * libc/include/sys/unistd.h: Add setregid and setreuid declarations
12739         for Cygwin.
12740
12741 2003-01-21 Anita Kulkarni  <anitak@kpit.com>
12742
12743         * libc/time/difftime.c : Typecast the result to double.
12744
12745 2003-01-20  Christopher Faylor  <cgf@redhat.com>
12746
12747         * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
12748
12749 2003-01-18  Nick Clifton  <nickc@redhat.com>
12750
12751         * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
12752         __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
12753
12754 2003-01-16  Joel Sherrill <joel@OARcorp.com>
12755
12756         * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
12757         libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
12758         constants are defined in each file in the shared versions in
12759         libc/include.
12760         * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
12761         autoconf can link programs.
12762         * libc/include/machine/types.h: Explicitly specify signed on
12763         intXX_t types to ensure they are signed.
12764
12765 2003-01-14  Christopher Faylor  <cgf@redhat.com>
12766
12767         * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
12768         extensions.
12769
12770 2003-01-08  Richard Sandiford  <rsandifo@redhat.com>
12771
12772         * configure.host (mips64vr-elf, mips64vrel-elf): New config.
12773
12774 2003-01-07  Charles Wilson  <cwilson@ece.gatech.edu>
12775
12776         * libc/stdio/sprintf.c: fix typo
12777         * libc/stdio/vfprintf.c: fix typo
12778
12779 2003-01-07  Jeff Johnston  <jjohnstn@redhat.com>
12780
12781         * configure.host: Support long double I/O for x86-linux.
12782         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
12783         large enough to hold formatted result.
12784         * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
12785
12786 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
12787
12788         * Makefile.am: Add vasprintf.
12789         * Makefile.in: Regenerated.
12790
12791 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
12792
12793         * asprintf.c (_asprintf_r): insure both declarations
12794         are the same.
12795
12796 2002-12-28  Christopher Faylor  <cgf@redhat.com>
12797
12798         * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
12799         than defining getopt directly.
12800
12801 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
12802
12803         * NEWS: Update with 1.11.0 info.
12804         * README: Ditto.
12805         * acinclude.m4: Change version number to 1.11.0.
12806         * aclocal.m4: Regenerated.
12807         * configure: Ditto.
12808         * doc/aclocal.m4: Ditto.
12809         * doc/configure: Ditto.
12810         * libc/*/aclocal.m4: Ditto.
12811         * libc/*/configure: Ditto.
12812         * libc/libc.texinfo: Ditto.
12813         * libm/*/aclocal.m4: Ditto.
12814         * libm/*/configure: Ditto.
12815         * libm/libm.texinfo: Ditto.
12816         * libc/sys/linux/shared.ld: Add VERS_1.11.
12817
12818 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
12819
12820         * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
12821         Solutions to Red Hat Inc.
12822         * libc/machine/i386/f_atan2f.S: Ditto.
12823         * libc/machine/i386/f_exp.c: Ditto.
12824         * libc/machine/i386/f_expf.c: Ditto.
12825         * libc/machine/i386/f_frexp.S: Ditto.
12826         * libc/machine/i386/f_frexpf.S: Ditto.
12827         * libc/machine/i386/f_ldexp.S: Ditto.
12828         * libc/machine/i386/f_ldexpf.S: Ditto.
12829         * libc/machine/i386/f_log.S: Ditto.
12830         * libc/machine/i386/f_log10.S: Ditto.
12831         * libc/machine/i386/f_log10f.S: Ditto.
12832         * libc/machine/i386/f_logf.S: Ditto.
12833         * libc/machine/i386/f_pow.c: Ditto.
12834         * libc/machine/i386/f_powf.c: Ditto.
12835         * libc/machine/i386/f_tan.S: Ditto.
12836         * libc/machine/i386/f_tanf.S: Ditto.
12837         * libc/machine/i386/memchr.S: Ditto.
12838         * libc/machine/i386/memcmp.S: Ditto.
12839         * libc/machine/i386/memcpy.S: Ditto.
12840         * libc/machine/i386/memmove.S: Ditto.
12841         * libc/machine/i386/memset.S: Ditto.
12842         * libc/machine/i386/strchr.S: Ditto.
12843         * libc/machine/i386/strlen.S: Ditto.
12844         * libm/machine/i386/f_atan2.S: Ditto.
12845         * libm/machine/i386/f_atan2f.S: Ditto.
12846         * libm/machine/i386/f_exp.c: Ditto.
12847         * libm/machine/i386/f_expf.c: Ditto.
12848         * libm/machine/i386/f_frexp.S: Ditto.
12849         * libm/machine/i386/f_frexpf.S: Ditto.
12850         * libm/machine/i386/f_ldexp.S: Ditto.
12851         * libm/machine/i386/f_ldexpf.S: Ditto.
12852         * libm/machine/i386/f_log.S: Ditto.
12853         * libm/machine/i386/f_log10.S: Ditto.
12854         * libm/machine/i386/f_log10f.S: Ditto.
12855         * libm/machine/i386/f_logf.S: Ditto.
12856         * libm/machine/i386/f_pow.c: Ditto.
12857         * libm/machine/i386/f_powf.c: Ditto.
12858         * libm/machine/i386/f_tan.S: Ditto.
12859         * libm/machine/i386/f_tanf.S: Ditto.
12860
12861 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
12862
12863         * libc/stdlib/environ.c: Update license to Red Hat.
12864         * libc/machine/hppa/setjmp.S: Ditto.
12865         * libm/test/Makefile.in: Ditto.
12866
12867 2002-12-19  Jeff Johnston  <jjohnstn@redhat.com>
12868
12869         * configure.host: Remove references to go32.
12870         * libc/sys/go32/*: Removed.
12871
12872 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
12873
12874         * libc/include/sys/config.h: Change setting of INT_MAX
12875         and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
12876         __H8300S__.  Also consolidate flag settings for these
12877         platforms.
12878
12879 2002-12-10  Joel Sherrill  <joel@OARcorp.com>
12880
12881         * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
12882         for i386-rtems targets.
12883
12884 2002-12-06  Jeff Johnston  <jjohnstn@redhat.com>
12885
12886         * libc/include/stdlib.h (strtof): New prototype (from C99).
12887         (strtodf): Changed from prototype to macro which redefines
12888         to strtof.
12889         * libc/stdlib/atof.c: Change documentation to refer to strtof
12890         instead of strtodf.
12891         * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
12892         strtodf.
12893         * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
12894         (strtof): New function.
12895         * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
12896         calls strtof.
12897
12898 2002-11-27  Christopher Faylor  <cgf@redhat.com>
12899
12900         * libc/string/memset.c (memset): Fix comment.
12901
12902 2002-11-26  Christopher Faylor  <cgf@redhat.com>
12903
12904         * libc/string/memset.c (memset): Move initialization of 'd' earlier in
12905         function.
12906
12907 2002-11-25  Christopher Faylor  <cgf@redhat.com>
12908
12909         * libc/string/memset.c (memset): Minor optimization: Use new 'd'
12910         variable, introduced below, everywhere.
12911
12912 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
12913
12914         * libc/string/memset.c (memset): Make it safe even if
12915         sizeof (int) = 2.
12916
12917 2002-11-22  Joe Buehler  <jbuehler@hekimian.com>
12918
12919         * configure.in: Change check for libc/include in ${CC} to
12920         use an intermediate value so as to work with different shells.
12921         * configure: Regenerated.
12922         * Makefile.in: Ditto.
12923
12924 2002-11-22  Vijay L. Khuspe  <vijayk1@kpit.com>
12925
12926         * libc/sys/h8300hms/read.c: Add support for normal mode
12927         architecture.
12928
12929 2002-11-20  Ryo Tsuruta  <ryo@kitanet.ne.jp>
12930
12931         * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
12932         code for __H8300H__ and __H8300S__.  Also return 32-bit return code
12933         when -mint32 is used.
12934
12935 2002-11-18  Nick Clifton  <nickc@redhat.com>
12936
12937         * libc/sys/arm/crt0.S: Add NULL to end of argv array.
12938
12939 2002-11-14  Jeff Johnston  <jjohnstn@redhat.com>
12940
12941         * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
12942         only issue one pass/fail message for a compile/link/execute.
12943         * testsuite/newlib.elix/elix.exp: New file.
12944         * testsuite/newlib.elix/tmmap.c: Ditto.
12945
12946 2002-11-06  Christopher Faylor  <cgf@redhat.com>
12947
12948         * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
12949         * libc/stdlib/mlock.c: Ditto.
12950         * libc/stdlib/msize.c: Ditto.
12951         * libc/stdlib/msize.c: Ditto.
12952         * libc/stdlib/mtrim.c: Ditto.
12953         * libc/stdlib/valloc.c: Ditto.
12954
12955 2002-11-12  Jeff Johnston  <jjohnstn@redhat.com>
12956
12957         * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
12958         for inf/nan, make sure that the check ignores the sign bit.
12959
12960 2002-11-07  Joel Sherrill <joel@OARcorp.com>
12961
12962         * libc/sys/rtems/machine: New directory.
12963         * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
12964         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
12965         libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
12966         targets more BSD like when installed without requiring files to
12967         be overwritten at install point when RTEMS itself is installed.
12968         * Makefile.am: Pick up system dependent machine .h files such as
12969         might be found on a BSD-ish system.
12970         * Makefile.in: Regenerate.
12971         * libc/include/machine/types.h: When on an RTEMS target, define a
12972         few BSD flavor types.
12973
12974 2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
12975
12976         * include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.
12977
12978 2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
12979
12980         * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
12981         * libc/include/wctype.h: Ditto.
12982
12983 2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
12984
12985         * libc/include/wchar.h: Add extern "C" specifier if C++.
12986         * libc/include/wctype.h: Ditto.
12987
12988 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
12989
12990         * testsuite/newlib.wctype/tiswctype.c: New test case.
12991         * testsuite/newlib.wctype/twctrans.c: Ditto.
12992
12993 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
12994
12995         * libc/sys/linux/machine/i386/include/endian.h: New file.
12996         * libc/sys/linux/machine/i386/include/param.h: Ditto.
12997
12998 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
12999
13000         * libm/machine/i386/aclocal.m4: Regenerated.
13001         * libm/machine/i386/configure: Ditto.
13002
13003 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
13004
13005         * testsuite/include/check.h: New header file to use with
13006         test cases.
13007         * testsuite/lib/newlib.exp: Add testsuite/include directory
13008         to list of header files to use.
13009         * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
13010         * testsuite/newlib.wctype/wctype.exp: New file.
13011
13012 2002-10-11  Graham Stott  <graham.stott@btinternet.com>
13013             Richard Sandiford  <rsandifo@redhat.com>
13014
13015         * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
13016         * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
13017         doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
13018
13019 2002-10-07      Joel Sherrill <joel@OARcorp.com>
13020
13021         * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
13022         dummy programs.
13023
13024 2002-10-07      Joel Sherrill <joel@OARcorp.com>
13025
13026         * libc/include/pthread.h: Define PTHREAD_CANCELED.
13027
13028 2002-10-07      Joel Sherrill <joel@OARcorp.com>
13029
13030         * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
13031         libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
13032         compile with current GNU tools.
13033
13034 2002-10-07  Jeff Johnston  <jjohnstn@redhat.com>
13035
13036         * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
13037         the build library.
13038         * configure.in: Ditto.
13039         * Makefile.in: Regenerated.
13040         * configure: Ditto.
13041         * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
13042         for specifying configured libraries/directories.
13043         * libc/sys/linux/configure.in: Ditto.
13044         * libc/sys/linux/Makefile.in: Regenerated.
13045         * libc/sys/linux/configure: Ditto.
13046
13047 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
13048
13049         * libc/include/reent.h: Update documentation at start of file.
13050
13051 2002-09-27  Jim Wilson  <wilson@redhat.com>
13052
13053         * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
13054         the ctbp register.
13055
13056 2002-09-27  Jeff Johnston  <jjohnstn@redhat.com>
13057
13058         * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
13059         Also convert to EUCJP before using arrays.  For values not in
13060         the conversion arrays, return WEOF.
13061         * libc/ctype/jp2uc.h: Change from one array to a number of
13062         arrays to account for the fact that the originating table
13063         is not contiguous for the input values since some are invalid.
13064
13065 2002-09-24  Jeff Johnston  <jjohnstn@redhat.com>
13066
13067         * libc/time/ctime.c: Fix prototype documentation.
13068
13069 2002-09-24  Corinna Vinschen  <corinna@vinschen.de>
13070
13071         * libc/include/sys/errno.h: Add EOVERFLOW.
13072
13073 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
13074
13075         * libc/include/wctype.h: New file.
13076
13077 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
13078
13079         * libc/ctype/Makefile.am: Add new files.
13080         * libc/ctype/Makefile.in: Regenerated.
13081         * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
13082         and wctrans functions to documentation index.
13083         * libc/ctype/iswalnum.c: New file.
13084         * libc/ctype/iswalpha.c: Ditto.
13085         * libc/ctype/iswblank.c: Ditto.
13086         * libc/ctype/iswcntrl.c: Ditto.
13087         * libc/ctype/iswctype.c: Ditto.
13088         * libc/ctype/iswdigit.c: Ditto.
13089         * libc/ctype/iswgraph.c: Ditto.
13090         * libc/ctype/iswlower.c: Ditto.
13091         * libc/ctype/iswprint.c: Ditto.
13092         * libc/ctype/iswpunct.c: Ditto.
13093         * libc/ctype/iswspace.c: Ditto.
13094         * libc/ctype/iswupper.c: Ditto.
13095         * libc/ctype/iswxdigit.c: Ditto.
13096         * libc/ctype/jp2uc.c: Ditto.
13097         * libc/ctype/jp2uc.h: Ditto.
13098         * libc/ctype/local.h: Ditto.
13099         * libc/ctype/towctrans.c: Ditto.
13100         * libc/ctype/towlower.c: Ditto.
13101         * libc/ctype/towupper.c: Ditto.
13102         * libc/ctype/utf8alpha.h: Ditto.
13103         * libc/ctype/utf8print.h: Ditto.
13104         * libc/ctype/utf8punct.h: Ditto.
13105         * libc/ctype/wctrans.c: Ditto.
13106         * libc/ctype/wctype.c: Ditto.
13107         * libc/locale/locale.c (__lc_ctype): New external array to
13108         replace static lc_ctype array.
13109         * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
13110         rather than reentrancy structure's _current_locale field.
13111         * libc/stdlib/wctomb_r.c: Ditto.
13112
13113 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
13114
13115         * configure.host: Minor comment and formatting changes.
13116         * libc/Makefile.am: Add libc_la_DEPENDENCIES.
13117         * libc/Makefile.in: Regenerated.
13118         * libc/include/sys/config.h: Minor format change.
13119
13120 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
13121
13122         * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
13123         statement comment.
13124
13125 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
13126
13127         * libc/posix/opendir.c (opendir): Change code to check
13128         for HAVE_FCNTL before calling fcntl.
13129         * libc/search/hash.c (hash_open): Ditto.
13130         * libc/search/hash_page.c (open_tmp): Ditto.
13131         * libc/reent/Makefile.am: Add fcntlr.c.
13132         * libc/reent/Makefile.in: Regenerated.
13133         * libc/reent/fcntlr.c: New file.
13134         * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
13135         instead of _fcntl when HAVE_FCNTL flag is set.
13136         * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
13137         to see if _fcntl or _fcntl_r should be called.  If flag is not
13138         set, default to ENOSYS stub.
13139
13140 2002-09-16  Jeff Johnston  <jjohnstn@redhat.com>
13141
13142         * libc/include/wchar.h (mbstate_t): Change protective flag to
13143         be _MBSTATE_T.
13144         * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
13145         [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
13146         for Cygwin.
13147         * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
13148
13149 2002-09-11  Jeff Johnston  <jjohnstn@redhat.com>
13150
13151         * acinclude.m4 (enable-newlib-mb): Change check to
13152         default newlib_mb variable to empty string rather than "no".
13153         * configure.host: Remove hard-coding of -DMB_CAPABLE for
13154         x86-linux and Cygwin.  Add code to check for newlib_mb
13155         being unset in which case set to "yes" for x86-linux and
13156         Cygwin.  Change check for newlib_mb being "yes" to allow
13157         for an empty string.
13158         * configure.in (_MB_LEN_MAX): New AC_DEFINE.
13159         * newlib.hin (_MB_LEN_MAX): New define to configure.
13160         * aclocal.m4: Regenerated.
13161         * configure: Ditto.
13162         * libc/include/limits.h: New file.
13163         * libc/sys/linux/include/limits.h: Ditto.
13164         * doc/aclocal.m4 doc/configure libc/aclocal.m4
13165           libc/configure libc/machine/aclocal.m4
13166           libc/machine/configure libc/machine/a29k/aclocal.m4
13167           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
13168           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
13169           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
13170           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
13171           libc/machine/fr30/configure libc/machine/frv/aclocal.m4
13172           libc/machine/frv/configure libc/machine/h8300/aclocal.m4
13173           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
13174           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
13175           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
13176           libc/machine/i386/configure libc/machine/i960/aclocal.m4
13177           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
13178           libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
13179           libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
13180           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
13181           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
13182           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
13183           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
13184           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
13185           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
13186           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
13187           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
13188           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
13189           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
13190           libc/machine/v850/configure libc/machine/w65/aclocal.m4
13191           libc/machine/w65/configure libc/machine/xscale/aclocal.m4
13192           libc/machine/xscale/configure
13193           libc/machine/xstormy16/aclocal.m4
13194           libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
13195           libc/machine/z8k/configure libc/sys/aclocal.m4
13196           libc/sys/configure libc/sys/a29khif/aclocal.m4
13197           libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
13198           libc/sys/arc/configure libc/sys/arm/aclocal.m4
13199           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
13200           libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
13201           libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
13202           libc/sys/decstation/configure libc/sys/go32/aclocal.m4
13203           libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
13204           libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
13205           libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
13206           libc/sys/idt/configure libc/sys/linux/aclocal.m4
13207           libc/sys/linux/configure
13208           libc/sys/linux/machine/aclocal.m4
13209           libc/sys/linux/machine/configure
13210           libc/sys/linux/machine/i386/aclocal.m4
13211           libc/sys/linux/machine/i386/configure
13212           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
13213           libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
13214           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
13215           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
13216           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
13217           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
13218           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
13219           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
13220           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
13221           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
13222           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
13223           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
13224           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
13225           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
13226           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
13227           libm/aclocal.m4 libm/configure: Regenerated.
13228
13229 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
13230
13231         * libc/sys/linux/machine/i386/crt0.c (_start): Remove
13232         code that clears the .bss section.
13233
13234 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
13235
13236         * libc/include/sys/_types.h (_mbstate_t): Changed to use
13237         unsigned char internally.
13238         * libc/sys/linux/sys/_types.h: Ditto.
13239         * libc/include/sys/reent.h
13240         * libc/stdlib/mblen.c (mblen): Use function-specific state
13241         value from default reentrancy structure.
13242         * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
13243         _mbtowc_r is less than 0, reset state __count value and
13244         return -1.
13245         * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
13246         is NULL, use the function-specific pointer provided in the
13247         default reentrancy structure.
13248         * libc/stdlib/mbrtowc.c: Add reentrant form of function.
13249         If input state pointer is NULL, use function-specific area
13250         provided in reentrancy structure.
13251         * libc/stdlib/mbsrtowcs.c: Ditto.
13252         * libc/stdlib/wcrtomb.c: Ditto.
13253         * libc/stdlib/wcsrtombs.c: Ditto.
13254         * libc/stdlib/mbstowcs.c: Reformat.
13255         * libc/stdlib/wcstombs.c: Ditto.
13256         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
13257         reset the state's __count value and return -1.
13258         * libc/stdlib/mbtowc.c: Ditto.
13259         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
13260         If number of bytes is used up before completing a valid multibyte
13261         character, return -2 and save the state.
13262         * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
13263         and change some __count references to __state for clarity.
13264
13265 2002-09-06  Jeff Johnston  <jjohnstn@redhat.com>
13266
13267         * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
13268         is defined by <limits.h>.
13269
13270 2002-09-05  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
13271
13272         * libc/include/wchar.h (WCHAR_MAX): Only define if not already
13273         defined.
13274
13275 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
13276
13277         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
13278         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
13279         __WCHAR_MAX__ or 0x7fffffffu.
13280         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
13281         * libc/string/wcsncmp.c: Ditto.
13282
13283 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
13284
13285         * libc/string/wcschr.c: Add include of <stddef.h>.
13286         * libc/string/wcspbrk.c: Ditto.
13287         * libc/string/wcsrchr.c: Ditto.
13288         * libc/string/wcsstr.c: Ditto.
13289
13290 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
13291
13292         * libc/include/sys/_types.h (_flock_t): Added.
13293         * libc/include/sys/lock.h (__lock_try_acquire): New interface.
13294         (__lock_try_acquire_recursive): Ditto.
13295         * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
13296         _lock field.
13297         * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
13298         field.
13299         * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
13300         * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
13301         * libc/sys/linux/include/time.h (struct timespec): Moved from
13302         <sys/types.h> and added check for __need_timespec flag so type
13303         can be defined by itself.
13304         * libc/sys/linux/sys/_types.h (_flock_t): New type.
13305         * libc/sys/linux/sys/types.h (struct timespec): Moved to
13306         <time.h>.
13307
13308 2002-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
13309
13310         * libc/sys/linux/argp: New directory.
13311         * libc/sys/linux/getopt.c: New file.
13312         * libc/sys/linux/getopt1.c: New file.
13313         * libc/sys/linux/getoptlong.c: Remove file.
13314         * libc/sys/linux/include/argp.h: New file.
13315         * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
13316         based on ELIX level.
13317         (SUBDIRS): Add argp_dir.
13318         (SUBLIBS): Add ARGP_LIB.
13319         (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
13320         getopt_long.$(oext).
13321         * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
13322
13323 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
13324
13325         * libc/libc.texinfo: Add node reference to wide-character strings.
13326         * libc/string/wcstrings.tex: New file.
13327         * libc/string/strtok_r.c: Remove outdated advertising clause.
13328         * libc/string/Makefile.am (doc): Add wide-character string
13329         chapter to documentation.
13330         * libc/string/Makefile.in: Regenerated.
13331
13332 2002-08-29  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
13333
13334         * libc/include/wchar.h: Define NULL. Define WEOF more general
13335         way. Declare functions in newlib manner.
13336         * libc/stdlib/Makefile.am: Delete wmem*.c
13337         * libc/stdlib/Makefile.in: Regenerated.
13338         * libc/stdlib/wmemchr.c: Delete.
13339         * libc/stdlib/wmemcmp.c: Ditto.
13340         * libc/stdlib/wmemcpy.c: Ditto.
13341         * libc/stdlib/wmemmove.c: Ditto.
13342         * libc/stdlib/wmemset.c: Ditto.
13343         * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
13344         * libc/string/Makefile.in: Regenerated.
13345         * libc/string/wcscat.c: New file derived from the NetBSD C Library.
13346         * libc/string/wcschr.c: Ditto.
13347         * libc/string/wcscmp.c: Ditto.
13348         * libc/string/wcscpy.c: Ditto.
13349         * libc/string/wcscspn.c: Ditto.
13350         * libc/string/wcslcat.c: Ditto.
13351         * libc/string/wcslcpy.c: Ditto.
13352         * libc/string/wcslen.c: Ditto.
13353         * libc/string/wcsncat.c: Ditto.
13354         * libc/string/wcsncmp.c: Ditto.
13355         * libc/string/wcsncpy.c: Ditto.
13356         * libc/string/wcspbrk.c: Ditto.
13357         * libc/string/wcsrchr.c: Ditto.
13358         * libc/string/wcsspn.c: Ditto.
13359         * libc/string/wcsstr.c: Ditto.
13360         * libc/string/wmemchr.c: Ditto.
13361         * libc/string/wmemcmp.c: Ditto.
13362         * libc/string/wmemcpy.c: Ditto.
13363         * libc/string/wmemmove.c: Ditto.
13364         * libc/string/wmemset.c: Ditto.
13365
13366 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
13367
13368         * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
13369         default locale "" is accepted for LC_CTYPE or LC_MESSAGES
13370         and is treated as if "C" was specified.
13371
13372 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
13373
13374         * Makefile.am (install-data-local): Move install of build
13375         newlib.h after installing headers in libc/include so as to
13376         overwrite default newlib.h.
13377         * Makefile.in: Regenerated.
13378
13379 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
13380
13381         * libc/include/newlib.h: New file for tools that use newlib
13382         headers but don't build newlib first (e.g. gcc).
13383
13384 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
13385
13386         * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
13387         * libc/stdlib/wmemcmp.c: Ditto.
13388         * libc/stdlib/wmemcpy.c: Ditto.
13389         * libc/stdlib/wmemmove.c: Ditto.
13390         * libc/stdlib/wmemset.c: Ditto.
13391
13392 2002-08-27  Egor Duda  <deo@logos-m.ru>
13393
13394         * libc/stdlib/wmemchr.c: New file.
13395         * libc/stdlib/wmemcmp.c: Ditto.
13396         * libc/stdlib/wmemcpy.c: Ditto.
13397         * libc/stdlib/wmemmove.c: Ditto.
13398         * libc/stdlib/wmemset.c: Ditto.
13399         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
13400         * configure.host: Default -DMB_CAPABLE for cygwin.
13401         * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
13402         wmemmove() and wmemset().  Add include of <_ansi.h>.
13403         * libc/stdlib/Makefile.in: Regenerate.
13404
13405 2002-08-27  Jeff Johnston  <jjohnstn@redhat.com>
13406
13407         * configure.host: Remove _ELIX_LEVEL flag setting.
13408         * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
13409         (install-data-local): Install newlib.h.
13410         * Makefile.in: Regenerated.
13411         * aclocal.m4: Ditto.
13412         * configure: Ditto.
13413         * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
13414         newlib.hin.  Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
13415         and _NEWLIB_VERSION to fill in newlib.h header file entries.
13416         In AC_OUTPUT statement, unset ac_file so multilib support does
13417         not use last ac_file temporary used in newlib.h configuration.
13418         * libc/include/_ansi.h: Include <newlib.h>.
13419         * newlib.hin: New template file for newlib.h.
13420         * stamp-h.in: New file.
13421
13422 2002-08-26  Wu Yongwei <adah@netstd.com>
13423
13424         * time.h (timezonevar): Change "#if" to "#ifdef".
13425
13426 2002-08-26  Jeff Johnston  <jjohnstn@redhat.com>
13427
13428         * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
13429         * Makefile.in: Regenerated.
13430         * acinclude.m4: Add support for --enable-newlib-elix-level option.
13431         * aclocal.m4: Regenerated.
13432         * configure: Ditto.
13433         * configure.host: Add code to define _ELIX_LEVEL if
13434         --enable-newlib-elix-level option is used.
13435         * configure.in:
13436         * libc/aclocal.m4: Regenerated.
13437         * libc/configure: Ditto.
13438         * libc/argz/Makefile.am: Add EL/IX level checking.
13439         * libc/argz/Makefile.in: Regenerated.
13440         * libc/argz/dummy.c: New file.
13441         * libc/ctype/Makefile.am: Add EL/IX level checking.
13442         * libc/ctype/Makefile.in: Regenerated.
13443         * libc/locale/Makefile.am: Add EL/IX level checking.
13444         * libc/locale/Makefile.in: Regenerated.
13445         * libc/posix/Makefile.am: Add EL/IX level checking.
13446         * libc/posix/Makefile.in: Regenerated.
13447         * libc/posix/telldir.c: Add EL/IX level checking.
13448         * libc/reent/Makefile.am: Ditto.
13449         * libc/reent/fstat64r.c: Ditto.
13450         * libc/reent/lseek64r.c: Ditto.
13451         * libc/reent/open64r.c: Ditto.
13452         * libc/reent/Makefile.in: Regenerated.
13453         * libc/search/Makefile.am: Add EL/IX level checking.
13454         * libc/search/Makefile.in: Regenerated.
13455         * libc/stdio/Makefile.am: Add EL/IX level checking.
13456         * libc/stdio/Makefile.in: Regenerated.
13457         * libc/stdio64/Makefile.am: Add EL/IX level checking.
13458         * libc/stdio64/Makefile.in: Regenerated.
13459         * libc/stdio64/dummy.c: New file.
13460         * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
13461         after first include.
13462         * libc/stdio64/fopen64.c: Ditto.
13463         * libc/stdio64/freopen64.c: Ditto.
13464         * libc/stdio64/fseeko64.c: Ditto.
13465         * libc/stdio64/fsetpos64.c: Ditto.
13466         * libc/stdio64/ftello64.c: Ditto.
13467         * libc/stdio64/tmpfile64.c: Ditto.
13468         * libc/stdlib/Makefile.am: Add EL/IX level checking.
13469         * libc/stdlib/Makefile.in: Regenerated.
13470         * libc/stdlib/mstats.c: Add EL/IX level checking.
13471         * libc/string/Makefile.am: Ditto.
13472         * libc/string/Makefile.in: Regenerated.
13473         * libc/sys/linux/Makefile.am: Add EL/IX level checking.
13474         * libc/sys/linux/Makefile.in: Regenerated.
13475         * libc/sys/linux/aclocal.m4: Ditto.
13476         * libc/sys/linux/configure: Ditto.
13477         * libc/sys/linux/aio.c: Add EL/IX level checking.
13478         * libc/sys/linux/ftok.c: Ditto.
13479         * libc/sys/linux/getdate.c: Ditto.
13480         * libc/sys/linux/ids.c: Ditto.
13481         * libc/sys/linux/inode.c: Ditto.
13482         * libc/sys/linux/io.c: Ditto.
13483         * libc/sys/linux/process.c: Ditto.
13484         * libc/sys/linux/resource.c: Ditto.
13485         * libc/sys/linux/sched.c: Ditto.
13486         * libc/sys/linux/sig.c: Ditto.
13487         * libc/sys/linux/termios.c: Ditto.
13488         * libc/sys/linux/wait.c: Ditto plus add __waitpid and
13489         __libc___waitpid weak aliases.
13490         * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
13491         that generate the code for a syscall, but do not create a
13492         weak alias.
13493         * libc/syscalls/Makefile.am: Add EL/IX level checking.
13494         * libc/syscalls/Makefile.in: Regenerated.
13495         * libc/time/tzset_r.c: Change to replace strdup with equivalent
13496         functionality.
13497         * libc/unix/Makefile.am: Add EL/IX level checking.
13498         * libc/unix/Makefile.in: Regenerated.
13499
13500 2002-08-26  Christopher Faylor  <cgf@redhat.com>
13501
13502         * libc/include/malloc.h: On cygwin, define malloc _r functions as
13503         wrapper macros to standard malloc functions.
13504         * libc/include/stdlib.h: Ditto.
13505         * configure.host: Always define MALLOC_PROVIDED on cygwin.
13506
13507 2002-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
13508
13509         * libc/include/langinfo.h: New file.
13510         * libc/include/wchar.h: Likewise.
13511         * libc/include/sys/syslimits.h: Likewise.
13512         * libc/locale/fix_grouping.c: Likewise.
13513         * libc/locale/ldpart.c: Likewise.
13514         * libc/locale/ldpart.h: Likewise.
13515         * libc/locale/lmessages.c: Likewise.
13516         * libc/locale/lmessages.h: Likewise.
13517         * libc/locale/lmonetary.c: Likewise.
13518         * libc/locale/lmonetary.h: Likewise.
13519         * libc/locale/lnumeric.c: Likewise.
13520         * libc/locale/lnumeric.h: Likewise.
13521         * libc/locale/nl_langinfo.3: Likewise.
13522         * libc/locale/nl_langinfo.c: Likewise.
13523         * libc/locale/timelocal.c: Likewise.
13524         * libc/locale/timelocal.h: Likewise.
13525         * libc/stdlib/btowc.c: Likewise.
13526         * libc/stdlib/mbrlen.c: Likewise.
13527         * libc/stdlib/mbrtowc.c: Likewise.
13528         * libc/stdlib/mbsinit.c: Likewise.
13529         * libc/stdlib/mbsrtowcs.c: Likewise.
13530         * libc/stdlib/wcrtomb.c: Likewise.
13531         * libc/stdlib/wcsrtombs.c: Likewise.
13532         * libc/stdlib/wctob.c: Likewise.
13533         * libc/sys/linux/prof-freq.c: Likewise.
13534         * libc/sys/linux/profile.c: Likewise.
13535         * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
13536         * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
13537         * libc/include/stdlib.h: Change re-entrant functions to take
13538         mbstate_t pointers.
13539         * libc/include/sys/_types.h: Define _mbstate_t.
13540         * libc/include/sys/config.h (MB_LEN_MAX): New macro.
13541         * libc/include/sys/errno.h (EILSEQ): New error code.
13542         * libc/include/sys/reent.h: Include wchar.h.  Change reentrant
13543         structure to use mbstate_t.
13544         * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
13545         * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
13546         * libc/machine/powerpc/vfscanf.c: Likewise.
13547         * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
13548         * libc/stdio/vfprintf.c: Likewise.
13549         * libc/stdio/vfscanf.c: Likewise.
13550         * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
13551         * libc/stdlib/mblen.c: Use mbstate_t.
13552         * libc/stdlib/mblen_r.c: Likewise.
13553         * libc/stdlib/mbstowcs.c: Likewise.
13554         * libc/stdlib/mbstowcs_r.c: Likewise.
13555         * libc/stdlib/mbtowc.c: Likewise.
13556         * libc/stdlib/mbtowc_r.c: Likewise.
13557         * libc/stdlib/wcstombs.c: Likewise.
13558         * libc/stdlib/wcstombs_r.c: Likewise.
13559         * libc/stdlib/wctomb_r.c: Likewise.
13560         * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
13561         profile.c.
13562         * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
13563         dl-procinfo.c.
13564         * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
13565         * libc/sys/linux/sys/types.h (off_t): Define type.
13566         * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
13567         to C-UTF-8.
13568         * testsuite/newlib.locale/UTF-8.exp: Likewise.
13569
13570 2002-08-20  Casper S. Hornstrup  <chorns@users.sourceforge.net>
13571
13572         * libc/stdlib/mallocr.c: #include windows.h on Win32.
13573           (AlignPage): Continue macro on next line.
13574
13575 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
13576
13577         * libc/sys/linux/include/pthread.h: New file.
13578
13579 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
13580
13581         * libc/include/sys/types.h: Support __need_inttypes macro
13582         that only sets the __intxx and __uintxx types.
13583         * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
13584         to get mprec.h.
13585         * libc/machine/powerpc/Makefile.in: Regenerated.
13586         * libc/machine/powerpc/vfprintf.c: Fix state variable type.
13587         * libc/machine/powerpc/vfscanf.c: Fix state variable type.  Remove
13588         redundant fixed-point conversion prototypes.
13589         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
13590         after setting __need_inttypes.
13591
13592 2002-08-18  Christopher Faylor  <cgf@redhat.com>
13593
13594         * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
13595
13596 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
13597
13598         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
13599         _LONG_DOUBLE to double.
13600
13601 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
13602
13603         * configure.host: Add powerpc*-*-eabispe* configuration.
13604         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
13605         * libc/machine/powerpc/atosfix32.c: Ditto.
13606         * libc/machine/powerpc/atosfix64.c: Ditto.
13607         * libc/machine/powerpc/atoufix16.c: Ditto.
13608         * libc/machine/powerpc/atoufix32.c: Ditto.
13609         * libc/machine/powerpc/atoufix64.c: Ditto.
13610         * libc/machine/powerpc/fix64.h: Ditto.
13611         * libc/machine/powerpc/simdldtoa.c: Ditto.
13612         * libc/machine/powerpc/strtosfix16.c: Ditto.
13613         * libc/machine/powerpc/strtosfix32.c: Ditto.
13614         * libc/machine/powerpc/strtosfix64.c: Ditto.
13615         * libc/machine/powerpc/strtoufix16.c: Ditto.
13616         * libc/machine/powerpc/strtoufix32.c: Ditto.
13617         * libc/machine/powerpc/strtoufix64.c: Ditto.
13618         * libc/machine/powerpc/ufix64toa.c: Ditto.
13619         * libc/machine/powerpc/configure.in: Add check for
13620         powerpc*-eabispe and add fixed-point conversion functions.
13621         * libc/machine/powerpc/configure: Regenerated.
13622         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
13623         %r and %R format specifiers which handle fixed-point data.
13624         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
13625         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
13626         function prototypes.
13627
13628 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
13629
13630         *  Makefile.am: Move cmath stuff into libc/sys/linux.
13631         *  Makefile.in: Regenerated.
13632         *  configure.host: Default -DMB_CAPABLE for x86-linux.
13633         *  libc/include/reent.h: Define _sbrk to take signed int argument.
13634         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
13635         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
13636         make locale name checking more efficient.  Also allow "C-ISO-8859-1"
13637         locale for LC_CTYPE and LC_MESSAGES.
13638         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
13639         *  libc/sys/linux/brk.c: Change sbrk prototype.
13640         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
13641         include <sys/features.h>.
13642         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
13643         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
13644         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
13645         with a few local additions.
13646         *  libc/sys/linux/sys/features.h: New file.
13647         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
13648         to take signed argument.
13649         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
13650         prototypes to take signed size argument.
13651
13652 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
13653
13654         * libc/sys/linux/cmath: New directory.
13655         * libc/sys/linux/include/cmathcalls.h: New file.
13656         * libc/sys/linux/include/complex.h: New file.
13657         * libc/sys/linux/machine/i386/huge_val.h: New file
13658         * libm/math/w_sincos.c: New file
13659         * libm/math/wf_sincos.c: New file
13660         * libm/mathfp/s_sincos.c: New file
13661         * libm/mathfp/sf_sincos.c: New file
13662         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
13663         * libc/include/math.h: Add sincos and sincosf declarations.
13664         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
13665         (SUBLIBS): Likewise.
13666         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
13667         * libm/math/Makefile.am (src): Add w_sincos.c.
13668         (fsrc): Add wf_sincos.c.
13669         * libm/mathfp/Makefile.am (src): Add s_sincos.c
13670         (fsrc): Add sf_sincos.c.
13671
13672 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
13673
13674         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
13675         Declare as extern chars and use the address operator to
13676         properly use values set in linker script.
13677
13678 2002-08-09  Jason Tishler  <jason@tishler.net>
13679
13680         * libc/stdlib/mallocr.c: Include <limits.h>.
13681         (request2size): Change macro to do
13682         unsigned long comparisons and avoid signed overflow.
13683         (mALLOc): Add overflow check for the number of bytes to allocate.
13684         (rEALLOc): Ditto.
13685
13686 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
13687
13688         * configure.host: Add check for --enable-newlib-io-pos-args
13689         and define WANT_IO_POS_ARGS flag if enabled.  Define
13690         the flag by default for x86-linux configurations.
13691         * configure.in: Add support for --enable-newlib-io-pos-args.
13692         * libc/configure.in: Ditto.
13693         * configure: Regenerated.
13694         * libc/configure: Ditto.
13695         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
13696         vfprintf.c and vfiprintf.c.
13697         * libc/stdio/Makefile.in: Regenerated.
13698         * libc/stdio/vfprintf.c: Add positional argument support that
13699         is enabled by compiling with -DWANT_IO_POS_ARGS.
13700
13701 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
13702
13703         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
13704         based on __mips_soft_float rather than __mips64.
13705         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
13706         of both 32-bit and 64-bit code.
13707
13708 2002-08-04  Christopher Faylor  <cgf@redhat.com>
13709
13710         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
13711         arguments for popen to match similar functionality in fopen.
13712
13713 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
13714
13715         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
13716
13717 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
13718
13719         * libc/sys/linux/Makefile.am: Add aio64.c.
13720         * libc/sys/linux/Makefile.in: Regenerated.
13721         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
13722         * libc/sys/linux/aio64.c: New file.
13723
13724 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
13725
13726         *  libc/include/sys/param.h (MAX, MIN): Added macros.
13727         *  libc/sys/linux/Makefile.am: Add new files.
13728         *  libc/sys/linux/Makefile.in: Regenerated.
13729         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
13730         *  libc/sys/linux/inode.c (fchdir): Added syscall.
13731         *  libc/sys/linux/ftw.c: New file.
13732         *  libc/sys/linux/ftw64.c: Ditto.
13733         *  libc/sys/linux/getwd.c: Ditto.
13734         *  libc/sys/linux/scandir64.c: Ditto.
13735         *  libc/sys/linux/strverscmp.c: Ditto.
13736         *  libc/sys/linux/versionsort.c: Ditto.
13737         *  libc/sys/linux/versionsort64.c: Ditto.
13738
13739 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
13740
13741         * libc/string/strings.tex: Fix typo for memccpy.
13742
13743 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
13744
13745         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
13746         * libc/sys/linux/sys/types.h (off64_t): Definition added.
13747
13748 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
13749
13750         * libc/sys/linux/Makefile.am: Add fclean.c.
13751         * libc/sys/linux/Makefile.in: Regenerated.
13752         * libc/sys/linux/fclean.c: New file.
13753
13754 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
13755
13756         * libc/sys/linux/Makefile.am: Add confstr.c.
13757         * libc/sys/linux/Makefile.in: Regenerated.
13758         * libc/sys/linux/confstr.c: New file.
13759         * libc/sys/linux/confstr.h: Ditto.
13760         * libc/sys/linux/sys/unistd.h: Include <features.h> and
13761         <bits/environments.h>.
13762
13763 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
13764
13765         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
13766         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
13767         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
13768         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
13769         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
13770         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
13771
13772 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
13773
13774         * libc/sys/linux/Makefile.am: Add new files.
13775         * libc/sys/linux/Makefile.in: Regenerated.
13776         * libc/sys/linux/fstab.c: New file.
13777         * libc/sys/linux/fstatvfs.c: Ditto.
13778         * libc/sys/linux/fstatvfs64.c: Ditto.
13779         * libc/sys/linux/internal_statvfs.c: Ditto.
13780         * libc/sys/linux/mntent.c: Ditto.
13781         * libc/sys/linux/mntent_r.c: Ditto.
13782         * libc/sys/linux/statvfs.c: Ditto.
13783         * libc/sys/linux/statvfs64.c: Ditto.
13784         * libc/sys/linux/include/paths.h: Ditto.
13785         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
13786         with double-underscore weak-aliases.
13787         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
13788
13789 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
13790
13791         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
13792         to use _sig_func_ptr type casted constants.
13793         (_sig_func_ptr): Typedef moved to sys/signal.h.
13794         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
13795         For __rtems, use POSIX definition, otherwise default to ANSI.
13796         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
13797
13798 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
13799
13800         * configure.host: Recognize m6811-elf and m6812-elf targets.
13801         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
13802         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
13803         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
13804         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
13805         according to __INT_MAX__.
13806         (_POINTER_INT): Define to short.
13807         * libc/machine/m68hc11/Makefile.am: New file.
13808         * libc/machine/m68hc11/Makefile.in: New file.
13809         * libc/machine/m68hc11/configure.in: New file.
13810         * libc/machine/m68hc11/configure: New file.
13811         * libc/machine/m68hc11/aclocal.m4: New file.
13812         * libc/machine/m68hc11/setjmp.S: New file.
13813
13814 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
13815
13816         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
13817         prototypes.
13818         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
13819         * libc/stdlib/Makefile.in: Regenerated.
13820         * libc/stdlib/strdup.c: Removed.
13821         * libc/stdlib/strdup_r.c: Removed.
13822         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
13823         mempcpy.c, strndup.c, and strndup_r.c.
13824         * libc/string/Makefile.in: Regenerated.
13825         * libc/string/memccpy.c: New file.
13826         * libc/string/mempcpy.c: Ditto.
13827         * libc/string/strndup.c: Ditto.
13828         * libc/string/strndup_r.c: Ditto.
13829         * libc/string/strdup.c: New file moved from stdlib.
13830         * libc/string/strdup_r.c: Ditto.
13831         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
13832
13833 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
13834
13835         * libc/include/stdio.h: Move fcloseall prototype within
13836         #ifndef _REENT_ONLY section.
13837         * libc/sys/linux/Makefile.am: Add new files.
13838         * libc/sys/linux/Makefile.in: Regenerated.
13839         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
13840         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
13841         * libc/sys/linux/sys/types.h: Add ino64_t type.
13842         * libc/sys/linux/ctermid.c: New file.
13843         * libc/sys/linux/ttyname_r.c: Ditto.
13844         * libc/sys/linux/readdir64.c: Ditto.
13845
13846 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
13847
13848         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
13849         * libc/stdio/Makefile.am: Added fcloseall.c support.
13850         * libc/stdio/Makefile.in: Regenerated.
13851         * libc/stdio/fcloseall.c: New file.
13852         * libc/stdio64/Makefile.am: Remove missing .def references.
13853         * libc/stdio64/Makefile.in: Regenerated.
13854
13855 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
13856
13857         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
13858         * libc/machine/powerpc/times.c: New file.
13859         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
13860         * libc/machine/powerpc/Makefile.in: Regenerated.
13861
13862 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
13863
13864         * libc/machine/powerpc/time.c: New file.
13865         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
13866         time.c.
13867         * libc/machine/powerpc/Makefile.in: Regenerated.
13868
13869 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
13870
13871         * libc/libc.texinfo: Change copyright notices to Red Hat from
13872         Cygnus.
13873         * libm/libm.texinfo: Likewise.
13874         * README: Change docs URL to
13875         http://sources.redhat.com/newlib/docs.html.
13876
13877 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
13878
13879         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
13880         * libc/sys/linux/Makefile.in: Regenerated.
13881         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
13882         * libc/sys/linux/io.c: Add ftruncate syscall.
13883         * libc/sys/linux/fpathconf.c: New file.
13884         * libc/sys/linux/pathconf.c: Ditto.
13885         * libc/sys/linux/linux_fsinfo.h: Ditto.
13886         * libc/sys/linux/sys/unistd.h: Ditto.
13887
13888 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
13889
13890         * libc/stdio64/Makefile.am: Remove missing files.
13891         * libc/stdio64/Makefile.in: Regenerated.
13892
13893 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
13894
13895         * libc/include/sys/config.h[__i386__][__linux__]: Define
13896         _LARGE64FILE_SOURCE to 1.
13897         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
13898         * libc/sys/linux/Makefile.in: Regenerated.
13899         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
13900         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
13901         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
13902         of <linux/resource.h>.
13903         * libc/sys/linux/getrlimit64.c: New file.
13904         * libc/sys/linux/setrlimit64.c: Ditto.
13905
13906 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
13907
13908         * libc/argz/argz_replace.c: Include buf_findstr.h.
13909         * libc/argz/buf_findstr.c: Likewise.
13910         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
13911         value to (char *).
13912         * libc/argz/envz_get.c: Likewise.
13913         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
13914         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
13915         * libc/stdlib/getsubopt.3: New file.
13916         * libc/stdlib/getsubopt.c: New file.
13917         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
13918         Change esp to ebp.
13919
13920 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
13921
13922         * configure.host(stdio64_dir): New setting that is used to
13923         enable building of new stdio64 directory.
13924         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
13925         large files.
13926         (stmp-stdio64,stdio64.texi): New targets to optionally add in
13927         stdio64 info to info files.
13928         * libc/Makefile.in: Regenerated.
13929         * libc/configure: Ditto.
13930         * libc/configure.in: Add configuration variables that are set
13931         when stdio64 is selected as subdir in configure.host.
13932         * libc/libc.texinfo: Add optional menu item for Stdio64, based
13933         on whether STDIO64 flag is set or not.
13934         * libc/sys.tex: Add optional stdio64 syscalls based on whether
13935         STDIO64 flag is set or not.
13936         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
13937         _r sycall routines.
13938         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
13939         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
13940         (__SL64): New file flag indicating file is opened via fopen64.
13941         * libc/include/sys/_types.h(_off64_t): Added.
13942         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
13943         * libc/include/sys/reent.h(struct __sFILE64): New file structure
13944         for 64-bit offset large file support.
13945         (__FILE): New intermediate type either set to struct __sFILE64 or
13946         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
13947         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
13948         * libc/reent/Makefile.in: Regenerated.
13949         * libc/reent/fstat64r.c: New file.
13950         * libc/reent/lseek64r.c: Ditto.
13951         * libc/reent/open64r.c: Ditto.
13952         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
13953         based on whether STDIO64 flag is set.
13954         * libc/stdio/stdio.tex: Add blank line.
13955         * libc/stdio64/Makefile.am: New file.
13956         * libc/stdio64/Makefile.in: Ditto.
13957         * libc/stdio64/fgetpos64.c: Ditto.
13958         * libc/stdio64/fopen64.: Ditto.
13959         * libc/stdio64/freopen64.c: Ditto.
13960         * libc/stdio64/fseeko64.c: Ditto.
13961         * libc/stdio64/fsetpos64.c: Ditto.
13962         * libc/stdio64/ftello64.c: Ditto.
13963         * libc/stdio64/local64.h: Ditto.
13964         * libc/stdio64/stdio64.c: Ditto.
13965         * libc/stdio64/stdio64.tex: Ditto.
13966         * libc/stdio64/tmpfile64.c: Ditto.
13967         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
13968         open64.
13969
13970 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
13971
13972         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
13973         if LIBC_EXTRA_LIB is present.
13974         * libc/Makefile.in: Regenerated.
13975         * libc/libc.texinfo: Add blank line.
13976         * libc/argz/Makefile.am: Add doc support.
13977         * libc/search/Makefile.am: Ditto.
13978         * libc/argz/Makefile.in: Regenerated.
13979         * libc/search/Makefile.in: Ditto.
13980         * libc/misc/misc.tex: Add ffs function.
13981         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
13982
13983 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
13984
13985         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
13986         definition that was removed in error.
13987
13988 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
13989
13990         * libc/include/machine/ieeefp.h: Change to only define
13991         floating point defines (e.g one of __IEEE_BIG_ENDIAN or
13992         __IEEE_LITTLE_ENDIAN must be defined for each platform).
13993         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
13994         remove redundant floating point definitions.
13995
13996 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
13997
13998         * libc/sys/linux/callocr.c: Fix so code references
13999         calloc.
14000
14001 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
14002
14003         * libc/sys/linux/Makefile.am: Add new files.
14004         * libc/sys/linux/Makefile.in: Regenerated.
14005         * libc/sys/linux/bp-sym.h: Moved to include directory.
14006         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
14007         * libc/sys/linux/inode.c: Set _LIBC to 1.
14008         * libc/sys/linux/mq_close.c: Ditto.
14009         * libc/sys/linux/mq_getattr.c: Ditto.
14010         * libc/sys/linux/mq_open.c: Ditto.
14011         * libc/sys/linux/mq_receive.c: Ditto.
14012         * libc/sys/linux/mq_send.c: Ditto.
14013         * libc/sys/linux/mq_setattr.c: Ditto.
14014         * libc/sys/linux/mq_unlink.c: Ditto.
14015         * libc/sys/linux/calloc.c: New file.
14016         * libc/sys/linux/callocr.c: Ditto.
14017         * libc/sys/linux/cfreer.c: Ditto.
14018         * libc/sys/linux/config.h: Ditto.
14019         * libc/sys/linux/free.c: Ditto.
14020         * libc/sys/linux/freer.c: Ditto.
14021         * libc/sys/linux/msize.c: Ditto.
14022         * libc/sys/linux/msizer.c: Ditto.
14023         * libc/sys/linux/mstats.c: Ditto.
14024         * libc/sys/linux/mtrim.c: Ditto.
14025         * libc/sys/linux/mtrimr.c: Ditto.
14026         * libc/sys/linux/pvallocr.c: Ditto.
14027         * libc/sys/linux/realloc.c: Ditto.
14028         * libc/sys/linux/reallocr.c: Ditto.
14029         * libc/sys/linux/thread-m.h: Ditto.
14030         * libc/sys/linux/vallocr.c: Ditto.
14031         * libc/sys/linux/bp-checks.h: Ditto.
14032         * libc/sys/linux/libc-symbols.h: Ditto.
14033         * libc/sys/linux/libc-tsd.h: Ditto.
14034         * libc/sys/linux/libintl.h: Ditto.
14035         * libc/sys/linux/malign.c: Ditto.
14036         * libc/sys/linux/malignr.c: Ditto.
14037         * libc/sys/linux/mallinfor.c: Ditto.
14038         * libc/sys/linux/malloc.c: Ditto.
14039         * libc/sys/linux/mallocr.c: Ditto.
14040         * libc/sys/linux/malloptr.c: Ditto.
14041         * libc/sys/linux/mallstatsr.c: Ditto.
14042         * libc/sys/linux/mcheck.c: Ditto.
14043         * libc/sys/linux/mhooks.h: Ditto.
14044         * libc/sys/linux/include/bp-sym.h: Ditto.
14045         * libc/sys/linux/include/malloc.h: Ditto.
14046         * libc/sys/linux/include/mcheck.h: Ditto.
14047         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
14048         getpagesize.c.
14049         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
14050         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
14051         * libc/sys/linux/machine/i386/getpagesize.c: New file.
14052         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
14053         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
14054         * libc/sys/linux/machine/i386/sysdep.h: New file.
14055         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
14056         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
14057         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
14058
14059 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
14060
14061         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
14062         instead of <asm/siginfo.h>.
14063         * libc/sys/linux/sys/signal.h: Change to include various linux
14064         <bits/xxx.h> header files, rather than <linux/signal.h> so as
14065         to work with multiple releases of glibc header files.
14066
14067 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
14068
14069         * testsuite/newlib.search/hsearchtest.c: New file to test
14070         newlib/libc/search.
14071         * testsuite/newlib.search/hsearchtest.exp: Likewise.
14072
14073 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
14074
14075         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
14076         a terminal.
14077         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
14078
14079 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
14080
14081         * libc/include/math.h (MAXFLOAT): Added.
14082
14083 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
14084
14085         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
14086         Make strcmp.S unconditional.
14087         * libc/machine/sh/Makefile.in: Regenerate.
14088         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
14089         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
14090         for SHcompact.
14091
14092 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
14093
14094         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
14095         define before including <sys/lock.h>.
14096
14097 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
14098
14099         * libc/include/utime.h: Add include of <_ansi.h>.
14100         * libc/sys/linux/Makefile.am: Add utimes.c.
14101         * libc/sys/linux/Makefile.in: Regenerated.
14102         * libc/sys/linux/inode.c(__umask): New static routine.
14103         (umask): Written to use __umask and attempt to thread lock.
14104         (getumask): New function written to use __umask and thread lock.
14105         * libc/sys/linux/utimes.c: New file.
14106         * libc/sys/linux/sys/time.h: Fix utimes prototype.
14107         * libc/sys/linux/sys/utime.h: New file.
14108
14109 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
14110
14111         * libtool.m4: New file.
14112         * libc/sys/linux/process.c: Implement vfork in terms of fork,
14113         rather than as a syscall.
14114
14115 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
14116
14117         * libc/include/stdio.h: Add new prototypes.
14118         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
14119         * libc/stdio/Makefile.in: Regenerated.
14120         * libc/stdio/fseek.c: Add fseeko documentation.
14121         * libc/stdio/ftell.c: Add ftello documentation.
14122         * libc/stdio/fseeko.c: New file.
14123         * libc/stdio/ftello.c: New file.
14124
14125 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
14126
14127         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
14128         * libc/stdio/Makefile.in: Regenerated.
14129         * libc/stdio/asprintf.c: New file.
14130         * libc/stdio/vasprintf.c: Ditto.
14131         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
14132         the buffer for asprintf support.
14133         * libc/stdio/sprintf.c: Add asprintf documentation.
14134         * libc/stdio/vfprintf.c: Add vasprintf documentation.
14135         * libc/include/stdio.h: Add new prototypes.
14136
14137 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
14138
14139         * libc/search/hcreate.c: Remove advertising clause from license.
14140         * libc/search/hcreate_r.c: Likewise.
14141
14142 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
14143
14144         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
14145         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
14146         Check that one of them is defined and error out if not.
14147         Add any platforms defined in <machine/ieeefp.h> that are missing.
14148         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
14149         (DB_LITTLE_ENDIAN): New defines.
14150         * libc/search/hash.c: Replace all incorrect checks for
14151         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
14152         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
14153         * libc/search/hash_page.c: Likewise.
14154
14155 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
14156
14157         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
14158
14159 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
14160
14161         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
14162         * libc/include/time.h: Same.
14163         * libc/include/string.h: Same.
14164         * libc/include/stdlib.h: Same.
14165         * libc/include/signal.h: Same.
14166         * libc/include/setjmp.h: Same.
14167         * libc/include/math.h: Same.
14168         * libc/include/locale.h: Same.
14169         * libc/include/ctype.h: Same.
14170         * libc/include/machine/setjmp.h: Same.
14171         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
14172         (_END_STD_C): Add.
14173
14174 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
14175
14176         * libc/include/sys/_types.h: Define _ssize_t as int if int is
14177         32-bits, otherwise define it as long.
14178         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
14179         and define ssize_t as _ssize_t.
14180         * libc/reent/readr.c: Change return type to _ssize_t.
14181         * libc/reent/writer.c: Ditto.
14182         * libc/sys/linux/Makefile.am: Add aio.c.
14183         * libc/sys/linux/Makefile.in: Regenerated.
14184         * libc/sys/linux/aio.c: New file.
14185         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
14186         * libm/common/fdlibm.h: Undef __P before defining it.
14187
14188 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
14189
14190         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
14191         exponent_is_even_int variable.  Handle case where x is
14192         negative, and y is an odd integer.
14193         * libm/mathfp/sf_pow.c (powf): Likewise.
14194
14195         * libm/mathfp/er_lgamma.c: Remove __kernel references.
14196         * libm/mathfp/erf_lgamma.c: Likewise.
14197         * libm/mathfp/s_tgamma.c: Likewise.
14198         * libm/mathfp/sf_tgamma.c: Likewise.
14199
14200 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
14201
14202         * libc/sys/linux/Makefile.am: Add new clock routines.
14203         * libc/sys/linux/Makefile.in: Regenerated.
14204         * libc/sys/linux/clock_getres.c: New file.
14205         * libc/sys/linux/clock_gettime.c: Ditto.
14206         * libc/sys/linux/clock_settime.c: Ditto.
14207         * libc/sys/linux/hp-timing.h: Ditto.
14208         * libc/sys/linux/libc-internal.h: Ditto.
14209         * libc/sys/linux/sysconf.c: Fix typo.
14210         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
14211         * libc/sys/linux/machine/hp-timing.h: New file.
14212         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
14213         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
14214         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
14215         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
14216         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
14217         * libc/sys/linux/sys/linux_time.h: New file.
14218         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
14219         replace with <sys/linux_time.h>.
14220
14221 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
14222
14223         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
14224
14225 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
14226
14227         * libc/sys/linux/Makefile.am: Consolidate additional items under
14228         ADD_OBJS.
14229         * libc/sys/linux/Makefile.in: Regenerated.
14230
14231 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
14232
14233         * libc/sys/linux/sethostname.c: New file.
14234         * libc/sys/linux/Makefile.am: Add sethostname.c support.
14235         * libc/sys/linux/Makefile.in: Regenerated.
14236
14237 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
14238
14239         * libc/search/db_local.h: New file.
14240         * libc/include/db.h: Remove.
14241         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
14242         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
14243         "db_local.h".
14244         * libc/search/hash_bigkey.c: Likewise.
14245         * libc/search/hash_buf.c: Likewise.
14246         * libc/search/hash_func.c: Likewise.
14247         * libc/search/hash_log2.c: Likewise.
14248         * libc/search/hash_page.c: Likewise.
14249
14250 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
14251
14252         * libc/machine/sh/strlen.S: New file.
14253         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
14254         * libc/machine/sh/Makefile.am: Regenerate.
14255
14256 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
14257
14258         * libc/sys/linux/gethostname.c: Change name to __gethostname and
14259         add gethostname alias.
14260
14261 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
14262
14263         * libc/include/math.h: Remove <sys/types.h>.
14264         (__dmath): Use __ULong instead of __uint32_t.
14265         * libc/include/sys/reent.h: If long or int is not 32-bits,
14266         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
14267         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
14268         * libm/common/fdlibm.h: Ditto.
14269
14270 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
14271
14272         * libc/include/ndbm.h: Remove.
14273         * libc/search/ndbm.c: Remove.
14274
14275 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
14276
14277         * libc/stdio/fseek.c (fseek): Fix braces.
14278
14279 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
14280
14281         * libc/time/strftime.c (strftime): Add %e format specifier.
14282
14283 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
14284
14285         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
14286         previously defined.
14287
14288 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
14289
14290         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
14291         (BYTE_ORDER): Define as appropriate for the target.
14292
14293 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
14294
14295         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
14296         to _ssize_t.
14297         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
14298
14299 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
14300
14301         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
14302         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
14303         [HAVE_GETDATE](getdate_err): New error code.
14304         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
14305         * libc/stdio/Makefile.in: Regenerated.
14306         * libc/stdio/getdelim.c: New file.
14307         * libc/stdio/getline.c: Ditto.
14308         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
14309         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
14310         * libc/sys/linux/Makefile.in: Regenerated.
14311         * libc/sys/linux/getdate.c: New file.
14312         * libc/sys/linux/getdate_err.c: Ditto.
14313         * libc/sys/linux/ntp_gettime.c: Ditto.
14314         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
14315         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
14316
14317 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
14318
14319         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
14320         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
14321         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
14322         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
14323         * libc/include/sys/param.h: Remove i386 case which is handled
14324         by default case.
14325         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
14326         definitions in case they are already defined.
14327         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
14328         _IEEE_LITTLE_ENDIAN flags.
14329         * libc/include/sys/reent.h: Change __uint32_t references to
14330         use _ULong instead.
14331         (_REENT_GETDATE_REENT_P): New macro.
14332         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
14333         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
14334         * libc/search/hash.h: Add default setting of BYTE_ORDER,
14335         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
14336         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
14337         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
14338         pid_t, off_t, loff_t, caddr_t, and daddr_t type
14339         definitions which are done by subsequent glibc headers.
14340         Add macro definitions to prevent subsequent header files from
14341         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
14342         intptr_t to after glibc definitions of types they are based on.
14343
14344 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
14345
14346         * libc/include/errno.h: Protect from multiple inclusion.
14347
14348 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
14349
14350         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
14351
14352 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
14353
14354         * Makefile.am (LIB_OBJECTLISTS): Add
14355         libc/search/objectlist.awk.in.
14356         * libc/Makefile.am (SUBDIRS): Add search.
14357         (SUBLIBS): Add search/libsearch.la.
14358         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
14359         * libc/search: New directory.
14360         * libc/search/Makefile.am: New file.
14361         * libc/search/extern.h: New file.
14362         * libc/search/hash.c: New file.
14363         * libc/search/hash.h: New file.
14364         * libc/search/hash_bigkey.c: New file.
14365         * libc/search/hash_buf.c: New file.
14366         * libc/search/hash_func.c: New file.
14367         * libc/search/hash_log2.c: New file.
14368         * libc/search/hash_page.c: New file.
14369         * libc/search/hcreate.3: New file.
14370         * libc/search/hcreate.c: New file.
14371         * libc/search/hcreate_r.c: New file.
14372         * libc/search/ndbm.c: New file.
14373         * libc/search/page.h: New file.
14374         * libc/search/tdelete.c: New file.
14375         * libc/search/tdestroy.c: New file.
14376         * libc/search/tfind.c: New file.
14377         * libc/search/tsearch.3: New file.
14378         * libc/search/tsearch.c: New file.
14379         * libc/search/twalk.c: New file.
14380         * libc/include/db.h: New file.
14381         * libc/include/ndbm.h: New file.
14382         * libc/include/search.h: New file.
14383         * libc/include/sys/queue.h: New file.
14384         * libc/include/sys/cdefs.h: New file.
14385         * libc/include/sys/param.h
14386         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
14387         LITTLE_ENDIAN or BIG_ENDIAN.
14388         * libc/include/sys/errno.h (EFTYPE): New macro.
14389         * libc/search/bsearch.c: Move from libc/stdlib.
14390         * libc/search/qsort.c: Likewise.
14391         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
14392         qsort.c.
14393         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
14394         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
14395
14396 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
14397
14398         * libc/sys/linux/Makefile.am: Add support for message queue routines,
14399         ipc routines, and ftok.
14400         * libc/sys/linux/Makefile.in: Regenerated.
14401         * libc/sys/linux/ftok.c: New file.
14402         * libc/sys/linux/ipc.c: Ditto.
14403         * libc/sys/linux/mq_close.c: Ditto.
14404         * libc/sys/linux/mq_getattr.c: Ditto.
14405         * libc/sys/linux/mq_notify.c: Ditto.
14406         * libc/sys/linux/mq_open.c: Ditto.
14407         * libc/sys/linux/mq_receive.c: Ditto.
14408         * libc/sys/linux/mq_send.c: Ditto.
14409         * libc/sys/linux/mq_setattr.c: Ditto.
14410         * libc/sys/linux/mq_unlink.c: Ditto.
14411         * libc/sys/linux/mqlocal.h: Ditto.
14412         * libc/sys/linux/include/mqueue.h: Ditto.
14413         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
14414         __uid_t_defined.
14415
14416 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
14417
14418         * libm/common/sf_lround.c (round): Change name to: (lround).
14419         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
14420         remquof.
14421
14422 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
14423
14424         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
14425         procedure.
14426         (newlib_pass_fail): Change to compile and run only one file.
14427         * testsuite/newlib.locale/locale.exp: Use new
14428         newlib_pass_fail_all procedure.
14429         * testsuite/newlib.string/string.exp: Likewise.
14430
14431 2002-06-18  Dave Brolley  <brolley@redhat.com>
14432
14433         From Catherine Moore, Michael Meissner, Richard Sandiford:
14434         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
14435         (_JBTYPE): Ditto.
14436         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
14437         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
14438         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
14439         * configure.host: Support frv-*-*.
14440         * libc/machine/frv/Makefile.am: New file.
14441         * libc/machine/frv/configure.in: New file.
14442         * libc/machine/frv/setjmp.S: New file.
14443
14444 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
14445
14446         * libc/include/ctype.h: Remove isblank macro.
14447
14448         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
14449         * libc/ctype/isblank.c: New file.
14450         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
14451         declaration.  Add isblank macro.
14452
14453 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
14454
14455         * testsuite/newlib.stdlib/atexit.c: New file.
14456         * testsuite/newlib.stdlib/atexit.exp: Ditto.
14457         * testsuite/newlib.string/tstring.c: Change default start size
14458         to something more reasonable for embedded platforms.
14459
14460 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
14461
14462         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
14463
14464         * libc/argz: New directory.
14465         * libc/argz/*: New files.
14466         * libc/argz/argz_add.c: New file.
14467         * libc/argz/argz_add_sep.c: New file.
14468         * libc/argz/argz_append.c: New file.
14469         * libc/argz/argz_count.c: New file.
14470         * libc/argz/argz_create.c: New file.
14471         * libc/argz/argz_create_sep.c: New file.
14472         * libc/argz/argz_delete.c: New file.
14473         * libc/argz/argz_extract.c: New file.
14474         * libc/argz/argz_insert.c: New file.
14475         * libc/argz/argz_next.c: New file.
14476         * libc/argz/argz_replace.c: New file.
14477         * libc/argz/argz_stringify.c: New file.
14478         * libc/argz/buf_findstr.c: New file.
14479         * libc/argz/envz_add.c: New file.
14480         * libc/argz/envz_entry.c: New file.
14481         * libc/argz/envz_get.c: New file.
14482         * libc/argz/envz_merge.c: New file.
14483         * libc/argz/envz_remove.c: New file.
14484         * libc/argz/envz_strip.c: New file.
14485         * libc/include/argz.h: New file.
14486         * libc/include/envz.h: New file.
14487         * Makefile.am (LIBC_OBJECTLISTS): Add
14488         libc/argz/objectlist.awk.in.
14489         * libc/Makefile.am (SUBDIRS): Add argz.
14490         (SUBLIBS): Add argz/libargz.la.
14491         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
14492         * libc/include/errno.h: Add error_t typedef.
14493
14494 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
14495
14496         * libc/include/stdlib.h: Add _Exit prototype.
14497         * libc/stdlib/Makefile.am: Add _Exit.c support.
14498         * libc/stdlib/Makefile.in: Ditto.
14499         * libc/stdlib/_Exit.c: New file.
14500
14501 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
14502
14503         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
14504         x is close to -1.0 and y is very large to use ax (absolute value)
14505         instead of x.
14506         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
14507
14508 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
14509
14510         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
14511         Fix clobbering bytes before destination if src and dst have same
14512         non-zero misalignment.
14513
14514         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
14515         Fixed bug in writing end of set region.
14516
14517 2002-06-10  Christopher Faylor  <cgf@redhat.com>
14518
14519         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
14520         spawnve declaration.
14521
14522 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
14523
14524         * libm/common/s_fdim.c: New file.
14525         * libm/common/s_fma.c: Likewise.
14526         * libm/common/s_fmax.c: Likewise.
14527         * libm/common/s_fmin.c: Likewise.
14528         * libm/common/s_fpclassify.c: Likewise.
14529         * libm/common/s_lrint.c: Likewise.
14530         * libm/common/s_lround.c: Likewise.
14531         * libm/common/s_nearbyint.c: Likewise.
14532         * libm/common/s_remquo.c: Likewise.
14533         * libm/common/s_round.c: Likewise.
14534         * libm/common/s_scalbln.c: Likewise.
14535         * libm/common/s_signbit.c: Likewise.
14536         * libm/common/s_trunc.c: Likewise.
14537         * libm/common/sf_fdim.c: Likewise.
14538         * libm/common/sf_fma.c: Likewise.
14539         * libm/common/sf_fmax.c: Likewise.
14540         * libm/common/sf_fmin.c: Likewise.
14541         * libm/common/sf_lrint.c: Likewise.
14542         * libm/common/sf_lround.c: Likewise.
14543         * libm/common/sf_nearbyint.c: Likewise.
14544         * libm/common/sf_remquo.c: Likewise.
14545         * libm/common/sf_round.c: Likewise.
14546         * libm/common/sf_scalbln.c: Likewise.
14547         * libm/common/sf_trunc.c: Likewise.
14548         * libm/math/w_exp2.c: Likewise.
14549         * libm/math/w_tgamma.c: Likewise.
14550         * libm/math/wf_exp2.c: Likewise.
14551         * libm/math/wf_tgamma.c: Likewise.
14552         * libm/mathfp/s_exp2.c: Likewise.
14553         * libm/mathfp/s_tgamma.c: Likewise.
14554         * libm/mathfp/sf_exp2.c: Likewise.
14555         * libm/mathfp/sf_tgamma.c: Likewise.
14556         * libm/math/er_gamma.c: Fix return value.
14557         * libm/math/erf_gamma.c: Likewise.
14558         * libm/mathfp/er_gamma.c: Likewise.
14559         * libm/mathfp/erf_gamma.c: Likewise.
14560         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
14561         declarations and macros.
14562         Regenerated all Makefile.in, aclocal.m4 and configure files to
14563         use new libtool macros in top-level libtool.m4
14564
14565 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
14566
14567         * libc/include/string.h[__linux__]: Add strsignal prototype.
14568         * libc/include/sys/lock.h: New file with default locking support.
14569         * libc/include/sys/reent.h: Add signal buffer support for strsignal
14570         and psignal.
14571         * libc/posix/Makefile.am: Add support for readdir_r.c.
14572         * libc/posix/Makefile.in: Regenerated.
14573         * libc/posix/closedir.c: Add locking support and hash table cleanup.
14574         * libc/posix/opendir.c: Add lock support.
14575         * libc/posix/readdir.c: Ditto.
14576         * libc/posix/rewinddir.c: Ditto.
14577         * libc/posix/scandir.c: Ditto.
14578         * libc/posix/seekdir.c: Ditto.
14579         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
14580         clean up leftover hash table entries.
14581         * libc/posix/readdir_r.c: New file.
14582         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
14583         * libc/sys/linux/Makefile.in: Regenerated.
14584         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
14585         * libc/sys/linux/sys/signal.h: Add psignal prototype.
14586         * libc/sys/linux/psignal.c: New file.
14587         * libc/sys/linux/strsignal.c: Ditto.
14588
14589 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
14590
14591         * libc/include/sys/types.h: Don't define dev_t when compiling for
14592         Cygwin.
14593
14594 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
14595
14596         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
14597         make siglist.inc dependent on sig.c instead of signal.c.
14598         * libc/sys/linux/Makefile.in: Regenerated.
14599         * libc/sys/linux/sig.c: Rename from signal.c and change code to
14600         use NSIG instead of _NSIG.
14601         * libc/sys/linux/sigaction.c: New file.
14602         * libc/sys/linux/signal.c: Changed to be linux signal() function
14603         so as to override regular newlib default signal.c.
14604         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
14605         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
14606         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
14607         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
14608         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
14609         default linux sigset_t typedef by defining it equal to __sigset_t.
14610         * libc/unix/sigset.c: Add check so code isn't compiled on systems
14611         with a sigset_t that isn't implemented with a single int.
14612
14613 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
14614
14615         * libc/sys/linux/Makefile.am: Add support for new files.
14616         * libc/sys/linux/Makefile.in: Regenerated.
14617         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
14618         * libc/sys/linux/signal.c: Change to use real-time syscalls for
14619         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
14620         it is in a separate file now.
14621         * libc/sys/linux/machine/i386/Makefile.am
14622         * libc/sys/linux/machine/i386/Makefile.in
14623         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
14624         * libc/sys/linux/sigaction.c: New file.
14625         * libc/sys/linux/sigqueue.c: Ditto.
14626         * libc/sys/linux/sigwait.c: Ditto.
14627         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
14628         * libc/sys/linux/kernel_sigaction.h: Ditto.
14629
14630 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
14631
14632         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
14633         tcsendbrk.c.
14634         * libc/sys/linux/Makefile.in: Regenerated.
14635         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
14636         tcgetpgrp(), and tcsetpgrp() functions.
14637         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
14638         to get __MAX_BAUD rate.
14639         * libc/sys/linux/machine/i386/include/termios.h: New file.
14640         * libc/include/machine/termios.h: Ditto.
14641         * libc/sys/linux/cfspeed.c: Ditto.
14642         * libc/sys/linux/tcsendbrk.c: Ditto.
14643
14644 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
14645
14646         * libc/include/string.h: Add strnlen and strerror_r prototypes.
14647         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
14648         * libc/string/Makefile.in: Regenerated.
14649         * libc/string/strerror_r.c: New file.
14650         * libc/string/strnlen.c: New file.
14651         * libc/sys/linux/Makefile.am: Add rename.c.
14652         * libc/sys/linux/Makefile.in: Regenerated.
14653         * libc/sys/linux/rename.c: New file to override default rename.
14654
14655 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
14656
14657         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
14658         * libc/sys/linux/sys/time.h: Add conversion macros.
14659         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
14660         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
14661         * libc/sys/linux/gethostname.c: New file.
14662         * libc/sys/linux/seteuid.c: New file.
14663         * libc/sys/linux/sysctl.c: New file.
14664
14665 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
14666
14667         * libc/string/Makefile.am: Add support for strsep.c.
14668         * libc/string/Makefile.in: Regenerated.
14669         * libc/string/strsep.c: New file.
14670         * libc/string/strtok.c: Change to call __strtok_r service routine.
14671         * libc/string/strtok_r.c: Add __strtok_r routine which takes
14672         additional flag parameter regarding whether to skip leading delimeters.
14673         Change strtok_r to call __strtok_r.
14674
14675 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
14676
14677         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
14678         * libc/stdio/Makefile.in: Regenerated.
14679         * libc/stdio/setbuffer.c: New file.
14680         * libc/stdio/setlinebuf.c: New file.
14681
14682 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
14683
14684         * libc/sys/linux/Makefile.am: Add resource.c.
14685         * libc/sys/linux/Makefile.in: Regenerated.
14686         * libc/sys/linux/resource.c: New file.
14687         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
14688         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
14689         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
14690         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
14691         are now found in libc/sys/linux/resource.c.
14692
14693 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
14694
14695         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
14696         to use void * pointers and comply with Single Unix spec.
14697         * libc/string/bcmp.c: Change to use void * instead of char *.
14698         * libc/string/bcopy.c: Ditto.
14699         * libc/string/bzero.c: Ditto.
14700
14701 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
14702
14703         * libc/sys/linux/shm_open.c: New file.
14704         * libc/sys/linux/shm_unlink.c: Ditto.
14705         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
14706         shm_unlink.c.
14707         * libc/sys/linux/Makefile.in: Regenerated.
14708         * libc/sys/linux/sys/types.h: Add some additional checks to see
14709         if clock_t or time_t is already defined.
14710
14711 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
14712
14713         * Makefile.am: Don't pass $toollibdir down directly in
14714         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
14715         Pass it under the name: top_toollibdir.
14716         * Makefile.in: Regenerated.
14717
14718 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
14719
14720         * libc/include/sys/types.h: Revert previous patch.
14721
14722 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
14723
14724         * libc/include/sys/types.h: Include cygwin/types.h always under
14725         Cygwin, not only if _POSIX_THREADS is defined.
14726
14727 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
14728
14729         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
14730
14731 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
14732
14733         * Makefile.am: Copy and install headers from sys/machine/include
14734         directory.  Also pass $toollibdir to lower-level directories.
14735         * Makefile.in: Regenerated.
14736         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
14737         stderr to use _REENT macro instead of _impure_ptr directly.
14738         * libc/include/sys/config.h[__i386__][__linux__]: Define
14739         __DYNAMIC_REENT__.
14740         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
14741         call to __getreent() function if !__SINGLE_THREAD__ and
14742         __DYNAMIC_REENT__ is set.
14743         * libc/reent/Makefile.am: Add support for getreent.c.
14744         * libc/reent/Makefile.in: Regenerated.
14745         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
14746         * libc/sys/linux/Makefile.am: Add support for new files.
14747         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
14748         * libc/sys/linux/Makefile.in: Regenerated.
14749         * libc/sys/linux/configure: Ditto.
14750         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
14751         __close, __read, __write, __poll, __open, __lseek, __fcntl from
14752         their __libc_ counterparts.
14753         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
14754         and weak-alias to regular names.
14755         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
14756         to pread64 and __pread64.
14757         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
14758         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
14759         weak-alias to pwrite64.
14760         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
14761         __libc_sched_getscheduler, __libc_sched_get_priority_max,
14762         __libc_sched_get_priority_min, and __libc_sched_setschedule to
14763         name with __ instead of __libc_.
14764         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
14765         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
14766         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
14767         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
14768         to raise.
14769         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
14770         __libc_send to __send.
14771         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
14772         __gettimeofday.
14773         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
14774         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
14775         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
14776         type and typedef __jmp_buf to jmp_buf.
14777         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
14778         setjmp.S.
14779         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
14780         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
14781         section.
14782         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
14783         prefix for function macros and then use weak_alias() to regular names.
14784         * libc/sys/linux/machine/i386/syscall.h: Ditto.
14785         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
14786         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
14787         to be flockfile() and funlockfile() respectively.
14788         * libc/sys/linux/sys/types.h
14789         * libc/reent/getreent.c: New file.
14790         * libc/sys/linux/flockfile.c: Ditto.
14791         * libc/sys/linux/funlockfile.c: Ditto.
14792         * libc/sys/linux/getreent.c: Ditto.
14793         * libc/sys/linux/pread.c: Ditto.
14794         * libc/sys/linux/pwrite.c: Ditto.
14795         * libc/sys/linux/raise.c: Ditto.
14796         * libc/sys/linux/system.c: Ditto.
14797         * libc/sys/linux/tcdrain.c: Ditto.
14798         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
14799         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
14800         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
14801         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
14802         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
14803
14804 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
14805
14806         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
14807         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
14808         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
14809         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
14810
14811 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
14812
14813         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
14814         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
14815         exit point.
14816
14817 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
14818
14819         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
14820         options when testing natively on i[3456]86-*-linux.
14821
14822         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
14823         only one pass or fail per test file.  Trim \r's from output
14824         values received from test programs.  Remove support for named
14825         tests.
14826         * testsuite/newlib.locale/UTF-8.exp: Update to support new
14827         newlib_check_output behaviour.
14828         * testsuite/newlib.locale/UTF-8.c: Likewise.
14829
14830 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
14831
14832         * libc/include/stdlib.h: Add on_exit prototype.
14833         * libc/include/sys/reent.h (struct _atexit): Add argument array
14834         and bits to track type of exit routine to support both on_exit
14835         and atexit.
14836         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
14837         by default and change the setting of the atexit structure.
14838         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
14839         * libc/stdlib/on_exit.c: New file.
14840         * libc/stdlib/Makefile.am: Add support for on_exit.
14841         * libc/stdlib/Makefile.in: Regenerated.
14842         * libc/stdlib/atexit.c: Change to initialize types field.
14843         * libc/stdlib/exit.c: Change to look at types field for each
14844         exit routine and either call an atexit-style or an on_exit-style
14845         routine accordingly.
14846
14847 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
14848
14849         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
14850         allow v specifier with n or L specifiers.  For vector c format,
14851         move tmp declaration to the top.
14852
14853 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
14854
14855         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
14856         the original format specifier when looping for vectors to compensate
14857         for any changes made in vector %g format processing.
14858         Also add syntax checking for various invalid scenarios
14859         involving vector format extensions.
14860         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
14861         return code setting for vector formats.  Also treat vector
14862         separator mismatch as a match error instead of an input error.
14863         Perform some syntax checking for vector formats.
14864
14865 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
14866
14867         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
14868         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
14869         * libc/string/strlcat.c: New file.
14870         * libc/string/strlcpy.c: New file.
14871
14872 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
14873
14874         * libc/string/strchr.c: Fix comment typo.
14875
14876 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
14877
14878         * acinclude.m4: Add support for --enable-newlib-multithread.
14879         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
14880         --enable-newlib-multithread=no.
14881
14882         * libc/stdio/getc_u.c: New file.
14883         * libc/stdio/getchar_u.c: New file.
14884         * libc/stdio/putc_u.c: New file.
14885         * libc/stdio/putchar_u.c: New file.
14886         * libc/include/stdio.h: Add declarations for getc_unlocked,
14887         getchar_unlocked, putc_unlocked and putchar_unlocked.
14888         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
14889         (CHEWOUT_FILES): Add new files' .def's.
14890         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
14891
14892 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
14893
14894         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
14895         Also handle as single quad word when destination ends at last
14896         byte of first quad word.  Fix byte selection in single quad code.
14897
14898 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
14899
14900         * libc/include/sys/stdio.h: New file.
14901         * libc/sys/linux/sys/stdio.h: New file.
14902         * libc/include/stdio.h: Add declarations for flockfile,
14903         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
14904         * libc/stdio/clearerr.c: Add file locking.
14905         * libc/stdio/fclose.c: Likewise.
14906         * libc/stdio/feof.c: Likewise.
14907         * libc/stdio/ferror.c: Likewise.
14908         * libc/stdio/fflush.c: Likewise.
14909         * libc/stdio/fgetc.c: Likewise.
14910         * libc/stdio/fgetpos.c: Likewise.
14911         * libc/stdio/fgets.c: Likewise.
14912         * libc/stdio/fileno.c: Likewise.
14913         * libc/stdio/fputc.c: Likewise.
14914         * libc/stdio/fputs.c: Likewise.
14915         * libc/stdio/fread.c: Likewise.
14916         * libc/stdio/freopen.c: Likewise.
14917         * libc/stdio/fseek.c: Likewise.
14918         * libc/stdio/ftell.c: Likewise.
14919         * libc/stdio/fwrite.c: Likewise.
14920         * libc/stdio/getc.c: Likewise.
14921         * libc/stdio/putc.c: Likewise.
14922         * libc/stdio/setvbuf.c: Likewise.
14923         * libc/stdio/ungetc.c: Likewise.
14924         * libc/stdio/vfprintf.c: Likewise.
14925
14926 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
14927
14928         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
14929         support for 'p' format.  Fix code to print bytes for vector
14930         integer formats that do not specify 'h' or 'l'.
14931         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
14932         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
14933         formats that do not specify 'h' or 'l'.
14934
14935         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
14936
14937 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
14938
14939         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
14940         (_sbrk): Add cast of return value.
14941
14942 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
14943
14944         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
14945         (_REENT_L64A_BUF): New macro for accessing area.
14946         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
14947         *  libc/stdlib/Makefile.in: Regenerated.
14948         *  libc/stdlib/a64l.c: New file.
14949         *  libc/stdlib/l64a.c: New file.
14950
14951 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
14952
14953         * libc/unix/pread.c: Fix typo for _pread_r.
14954         * libc/unix/pwrite.c: Fix type for _pwrite_r.
14955         * libc/sys/linux/pread64.c: Fix typo for read syscall.
14956         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
14957
14958 2002-05-03  Christopher Faylor  <cgf@redhat.com>
14959
14960         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
14961
14962 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
14963
14964         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
14965
14966 2002-05-01  Christopher Faylor  <cgf@redhat.com>
14967
14968         * utmp.h: Define more UNIX constants.
14969
14970 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
14971
14972         * Makefile.am: Add support for checking multilibs.
14973
14974         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
14975         (SUBDEFS): Add LIBC_EXTRA_DEF.
14976         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
14977         (LIBC_EXTRA_DEF): Likewise.
14978         (extra_dir): Likewise.
14979         * libc/machine/xscale/machine: New directory.
14980         * libc/machine/xscale/machine/profile.h: New file.
14981
14982         * Makefile.am (site.exp): Remove newlib_cflags.  Add
14983         multibuildtop.
14984         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
14985         * testsuite/lib/flags.exp: New file.
14986         * testsuite/lib/newlib.exp: Load flags.exp.
14987         (newlib_target_compile): Remove libgloss directory references.
14988         (newlib_init): Remove newlib_cflags references.
14989
14990 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
14991
14992         * testsuite/lib/newlib.exp (newlib_target_compile): Change
14993         method of finding libgloss_target_dir.
14994
14995         * Makefile.am (site.exp): Change host_alias, host_triplet,
14996         target_alias, target_triplet to refer to gcc's host and target
14997         variables (newlib's build and host variables).
14998         * testsuite/lib/newlib.exp (newlib_init): Change build
14999         references to host references, host references to target
15000         references to reflect Makefile.am changes.
15001         (newlib_target_compile): Likewise.
15002         (newlib_finish): Likewise.
15003
15004 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
15005
15006         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
15007
15008 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
15009
15010         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
15011         (_system): New function. Ditto.
15012         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
15013         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
15014         targets.
15015
15016 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
15017
15018         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
15019         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
15020         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
15021         *  libc/sys/linux/Makefile.in: Regenerated.
15022         *  libc/unix/Makefile.in: Ditto.
15023         *  libc/sys/linux/pread64.c: New file.
15024         *  libc/sys/linux/pwrite64.c: Ditto.
15025         *  libc/unix/pread.c: Ditto.
15026         *  libc/unix/pwrite.c: Ditto.
15027
15028 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
15029
15030         *  libc/sys/linux/Makefile.am: Add io64.c.
15031         *  libc/sys/linux/Makefile.in: Regenerated.
15032         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
15033         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
15034         *  libc/sys/linux/io64.c: New file.
15035
15036 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
15037
15038         * configure.in (CC_FOR_NEWLIB): New variable that
15039         bases on $(CC) and adds targ-include and libc/include as
15040         -isystem directives if they are not already part of $(CC).
15041         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
15042         $(CC_FOR_NEWLIB).
15043         * configure: Regenerated.
15044         * Makefile.in: Ditto.
15045
15046 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
15047
15048         *  libc/sys/linux/Makefile.am: Add support for sched.c.
15049         *  libc/sys/linux/Makefile.in: Regenerated.
15050         *  libc/sys/linux/sched.c: New file.
15051         *  libc/sys/linux/sys/types.h: Add struct timespec.
15052
15053 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
15054
15055         * configure.in (CC_FOR_BUILD): Set to gcc whether
15056         cross-compiling or not.
15057         (CC): Add -isystem's for targ-include and libc/include when they
15058         do not already appear in CC.
15059
15060 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
15061
15062         * Makefile.am (check-DEJAGNU): New target.
15063         (site.exp): Likewise.
15064         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
15065         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
15066         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
15067         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
15068         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
15069         * testsuite: New directory.
15070         * testsuite/config: Likewise.
15071         * testsuite/lib: Likewise.
15072         * testsuite/newlib.locale: Likewise.
15073         * testsuite/newlib.string: Likewise.
15074         * testsuite/config/default.exp: New file.
15075         * testsuite/lib/checkoutput.exp: New file.
15076         * testsuite/lib/newlib.exp: New file.
15077         * testsuite/lib/passfail.exp: New file.
15078         * testsuite/newlib.locale/UTF-8.c: New file.
15079         * testsuite/newlib.locale/UTF-8.exp: New file.
15080         * testsuite/newlib.locale/locale.exp: New file.
15081         * testsuite/newlib.string/string.exp: New file.
15082         * testsuite/newlib.string/tstring.c: New file.
15083
15084 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
15085
15086         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
15087         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
15088         *  libc/sys/linux/Makefile.in: Regenerated.
15089         *  libc/sys/linux/mmap.c: New file.
15090         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
15091         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
15092
15093 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
15094
15095         * acinclude.m4 (newlib_cflags): Remove include directories that
15096         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
15097
15098 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
15099
15100         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
15101         * libc/machine/xscale/memcmp.c: Ditto.
15102         * libc/machine/xscale/memcpy.c: Ditto.
15103         * libc/machine/xscale/memmove.c: Ditto.
15104         * libc/machine/xscale/memset.c: Ditto.
15105         * libc/machine/xscale/strchr.c: Ditto.
15106         * libc/machine/xscale/strcmp.c: Ditto.
15107         * libc/machine/xscale/strcpy.c: Ditto.
15108         * libc/machine/xscale/strlen.c: Ditto.
15109
15110 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
15111
15112         * libc/include/sys/config.h: Remove include of <limits.h>.
15113         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
15114         define INT_MAX and LONG_MAX.  Use them in tests.
15115
15116 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
15117
15118         *  configure.host: Add support for powerpc-eabialtivec*.
15119         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
15120         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
15121         *  libc/include/machine/malloc.h: New file.
15122         *  libc/include/machine/stdlib.h: Ditto.
15123         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
15124         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
15125         sources based on configuration.
15126         *  libc/machine/powerpc/Makefile.in: Regenerated.
15127         *  libc/machine/powerpc/configure: Ditto.
15128         *  libc/machine/powerpc/configure.in: Add check for
15129         powerpc-eabialtivec* in which case add in additional source files.
15130         *  libc/machine/powerpc/setjmp.S: Add altivec support.
15131         *  libc/machine/powerpc/vec_calloc.c: New file.
15132         *  libc/machine/powerpc/vec_free.c: Ditto.
15133         *  libc/machine/powerpc/vec_malloc.c: Ditto.
15134         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
15135         *  libc/machine/powerpc/vec_realloc.c: Ditto.
15136         *  libc/machine/powerpc/machine/malloc.h: Ditto.
15137         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
15138         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
15139         with added altivec format specifiers.
15140         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
15141         added altivec format specifiers.
15142
15143 2002-04-19      Joel Sherrill <joel@OARcorp.com>
15144
15145         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
15146         while autoconf is trying to link main(){}.
15147
15148 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
15149
15150         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
15151         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
15152
15153 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
15154
15155         * libc/time/time.tex: Add tzset info.
15156
15157 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
15158
15159         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
15160         (strptime): Moved prototype to be within !__STRICT_ANSI__.
15161         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
15162         (tzname): Defined for all platforms.
15163         (daylight, timezone): Defined only for CYGWIN.
15164         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
15165         environment set up.
15166         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
15167         environment variable is set.
15168         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
15169         tzset_r.c.
15170         * libc/time/Makefile.in: Regenerated.
15171         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
15172         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
15173         * libc/time/lcltime_r.c (lcltime_r): Ditto.
15174         * libc/time/local.h: New local header file.
15175         * libc/time/mktime.c (mktime): Add timezone support.
15176         * libc/time/mktm_r.c: New file which is the common engine
15177         for gmtime_r and lcltime_r.  This code has timezone support.
15178         * libc/time/strftime.c (strftime): Add %Z timezone support.
15179         * libc/time/tzlock.c: New file containing timezone lock stubs.
15180         * libc/time/tzset.c: New file containing tzset() routine.
15181         * libc/time/tzset_r.c: New file containing _tzset_r and
15182         internal routine for calculating timezone changes for specified year.
15183
15184 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
15185
15186         * configure.in (CRT0_DIR): Set to libc/.
15187         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
15188         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
15189         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
15190         $(CRT1_DIR)/$(CRT1).
15191         * libc/machine/xstormy16/Makefile.in: Regenerated.
15192         * libc/machine/xstormy16/aclocal.m4: Regenerated.
15193         * libc/machine/xstormy16/configure: Regenerated.
15194
15195 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
15196
15197         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
15198         fails, don't bail out, and try to correct next time.
15199
15200         * libc/include/sys/config.h: Include limits.h.
15201
15202 2002-04-12  Eric Norum  <eric.norum@usask.com>
15203
15204         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
15205         routine to allow autoconf to determine that building executables
15206         for rtems works.
15207         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
15208         (rtems_gxx_mutex_once): Ditto.
15209
15210 2002-04-09  Tom Rix  <trix@redhat.com>
15211
15212         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
15213
15214 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
15215
15216         * libc/include/time.h: Fix strptime declaration.
15217         * libc/time/Makefile.am: Add strptime.c.
15218         * libc/time/Makefile.in: Regenerated.
15219         * libc/time/strptime.c: New file.
15220
15221 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
15222
15223         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
15224         siglongjmp prototype, and sigsetjmp macro definition.
15225         * libc/sys/linux/siglongjmp.c: New file.
15226         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
15227         * libc/sys/linux/Makefile.in: Regenerated.
15228
15229 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
15230
15231         * Makefile.am: Add support for installing crt1.o if one exists.
15232         * configure.host: Specify crt1.o for linux.
15233         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
15234         * Makefile.in: Regenerated.
15235         * configure: Ditto.
15236         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
15237         Added for non-Cygwin, non-RTEMS configurations.
15238         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
15239         * libc/sys/linux/Makefile.in: Regenerated.
15240         * libc/sys/linux/crt1.c: New empty file to override one defaulted
15241         by gcc.  This fixes problem with reconfiguring linux newlib build.
15242         * libc/sys/linux/sysconf.c: New file.
15243
15244 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
15245
15246         * configure.host: Add support for machine subdirectory of
15247         sys subdirectory.
15248         * configure.in: Add check for sys machine subdirectory.
15249         * Makefile.am: Ditto.
15250         * configure: Regenerated.
15251         * Makefile.in: Ditto.
15252         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
15253         * libc/sys/linux/sys/syscall.h: Ditto.
15254         * libc/sys/linux/sleep.c: New file.
15255         * libc/sys/linux/socket.c: Ditto.
15256         * libc/sys/linux/sockops.h: Ditto.
15257         * libc/sys/linux/stack.c: Ditto.
15258         * libc/sys/linux/usleep.c: Ditto.
15259         * libc/sys/linux/machine/Makefile.am: Ditto.
15260         * libc/sys/linux/machine/Makefile.in: Ditto.
15261         * libc/sys/linux/machine/aclocal.m4: Ditto.
15262         * libc/sys/linux/machine/configure: Ditto.
15263         * libc/sys/linux/machine/configure.in: Ditto.
15264         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
15265         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
15266         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
15267         * libc/sys/linux/machine/i386/configure: Ditto.
15268         * libc/sys/linux/machine/i386/configure.in: Ditto.
15269         * libc/sys/linux/machine/i386/crt0.c: Ditto.
15270         * libc/sys/linux/machine/i386/sigset.c: Ditto.
15271         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
15272         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
15273         * libc/sys/linux/machine/i386/syscall.h: Ditto.
15274         * libc/sys/linux/sys/select.h: Ditto.
15275         * libc/sys/linux/configure.in: Add support for machine directory.
15276         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
15277         * libc/sys/linux/Makefile.in: Regenerated.
15278         * libc/sys/linux/configure: Ditto.
15279         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
15280         * libc/sys/linux/inode.c: Ditto.
15281         * libc/sys/linux/linux.c: Ditto.
15282         * libc/sys/linux/process.c: Ditto.
15283         * libc/sys/linux/systat.c: Ditto.
15284         * libc/sys/linux/time.c: Ditto.
15285         * libc/sys/linux/wait.c: Ditto.
15286         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
15287         * libc/sys/linux/io.c: Change header plus add readv/writev.
15288         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
15289         use __sigsuspend syscall.
15290         * libc/sys/linux/select.c: Change header plus change select to
15291         use _newselect syscall.
15292         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
15293         used by glibc header files.
15294         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
15295         types.
15296
15297 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
15298
15299         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
15300         initializing a struct _reent that has been dynamically allocated.
15301         (_REENT_CHECK_MISC): New macro that checks _misc struct for
15302         _REENT_SMALL and does nothing otherwise.
15303         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
15304         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
15305         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
15306         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
15307         [_REENT_SMALL](struct _misc_reent): New structure containing
15308         miscellaneous reentrant areas needed by newlib.
15309         [_REENT_SMALL](struct _reent): Add _misc pointer.
15310         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
15311         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
15312         and _REENT_STRTOK_LAST macros.
15313         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
15314         and _REENT_MBLEN_STATE macros.
15315         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
15316         and _REENT_MBTOWC_STATE macros.
15317         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
15318         and _REENT_WCTOMB_STATE macros.
15319
15320 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
15321
15322         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
15323
15324 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
15325
15326         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
15327
15328 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
15329
15330         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
15331         Store high part of leading bytes too.
15332
15333 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
15334
15335         * libm/math/ef_hypot.c: Increase scale factor to 68.
15336
15337 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
15338
15339         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
15340         error.
15341
15342 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
15343
15344         * libc/sys/go32/access.c: Change license to relaxed license
15345         used in identical file throughout newlib/libgloss.
15346
15347 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
15348
15349         * libc/sys/arm/access.c: New file.
15350         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
15351         * libc/sys/arm/Makefile.in: Regenerate.
15352         * libc/sys/arm/syscalls.c (_stat): New function.
15353
15354 2002-03-11  Michael Meissner  <meissner@redhat.com>
15355
15356         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
15357         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
15358         * libc/machine/mips/Makefile.in: Regenerate.
15359         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
15360         * libc/machine/mips/memset.c: Dito.
15361         * libc/machine/mips/strcmp.c: Dito.
15362         * libc/machine/mips/strlen.c: Dito.
15363         * libc/machine/mips/strncmp.c: Dito.
15364
15365 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
15366
15367         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
15368         object so it works for shared library or statici library.
15369 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
15370
15371         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
15372         (strptime): Moved prototype to be within !__STRICT_ANSI__.
15373         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
15374         (tzname): Defined for all platforms.
15375         (daylight, timezone): Defined only for CYGWIN.
15376         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
15377         environment set up.
15378         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
15379         environment variable is set.
15380         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
15381         tzset_r.c.
15382         *  libc/time/Makefile.in: Regenerated.
15383         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
15384         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
15385         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
15386         *  libc/time/local.h: New local header file.
15387         *  libc/time/mktime.c (mktime): Add timezone support.
15388         *  libc/time/mktm_r.c: New file which is the common engine
15389         for gmtime_r and lcltime_r.  This code has timezone support.
15390         *  libc/time/strftime.c (strftime): Add %Z timezone support.
15391         *  libc/time/tzlock.c: New file containing timezone lock stubs.
15392         *  libc/time/tzset.c: New file containing tzset() routine.
15393         *  libc/time/tzset_r.c: New file containing _tzset_r and
15394         internal routine for calculating timezone changes for specified year.
15395
15396 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
15397
15398         * configure.in (CRT0_DIR): Set to libc/.
15399         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
15400         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
15401         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
15402         $(CRT1_DIR)/$(CRT1).
15403         * libc/machine/xstormy16/Makefile.in: Regenerated.
15404         * libc/machine/xstormy16/aclocal.m4: Regenerated.
15405         * libc/machine/xstormy16/configure: Regenerated.
15406
15407 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
15408
15409         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
15410         fails, don't bail out, and try to correct next time.
15411
15412         * libc/include/sys/config.h: Include limits.h.
15413
15414 2002-04-12  Eric Norum  <eric.norum@usask.com>
15415
15416         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
15417         routine to allow autoconf to determine that building executables
15418         for rtems works.
15419         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
15420         (rtems_gxx_mutex_once): Ditto.
15421
15422 2002-04-09  Tom Rix  <trix@redhat.com>
15423
15424         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
15425
15426 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
15427
15428         * libc/include/time.h: Fix strptime declaration.
15429         * libc/time/Makefile.am: Add strptime.c.
15430         * libc/time/Makefile.in: Regenerated.
15431         * libc/time/strptime.c: New file.
15432
15433 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
15434
15435         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
15436         siglongjmp prototype, and sigsetjmp macro definition.
15437         * libc/sys/linux/siglongjmp.c: New file.
15438         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
15439         * libc/sys/linux/Makefile.in: Regenerated.
15440
15441 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
15442
15443         * Makefile.am: Add support for installing crt1.o if one exists.
15444         * configure.host: Specify crt1.o for linux.
15445         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
15446         * Makefile.in: Regenerated.
15447         * configure: Ditto.
15448         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
15449         Added for non-Cygwin, non-RTEMS configurations.
15450         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
15451         * libc/sys/linux/Makefile.in: Regenerated.
15452         * libc/sys/linux/crt1.c: New empty file to override one defaulted
15453         by gcc.  This fixes problem with reconfiguring linux newlib build.
15454         * libc/sys/linux/sysconf.c: New file.
15455
15456 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
15457
15458         * configure.host: Add support for machine subdirectory of
15459         sys subdirectory.
15460         * configure.in: Add check for sys machine subdirectory.
15461         * Makefile.am: Ditto.
15462         * configure: Regenerated.
15463         * Makefile.in: Ditto.
15464         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
15465         * libc/sys/linux/sys/syscall.h: Ditto.
15466         * libc/sys/linux/sleep.c: New file.
15467         * libc/sys/linux/socket.c: Ditto.
15468         * libc/sys/linux/sockops.h: Ditto.
15469         * libc/sys/linux/stack.c: Ditto.
15470         * libc/sys/linux/usleep.c: Ditto.
15471         * libc/sys/linux/machine/Makefile.am: Ditto.
15472         * libc/sys/linux/machine/Makefile.in: Ditto.
15473         * libc/sys/linux/machine/aclocal.m4: Ditto.
15474         * libc/sys/linux/machine/configure: Ditto.
15475         * libc/sys/linux/machine/configure.in: Ditto.
15476         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
15477         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
15478         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
15479         * libc/sys/linux/machine/i386/configure: Ditto.
15480         * libc/sys/linux/machine/i386/configure.in: Ditto.
15481         * libc/sys/linux/machine/i386/crt0.c: Ditto.
15482         * libc/sys/linux/machine/i386/sigset.c: Ditto.
15483         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
15484         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
15485         * libc/sys/linux/machine/i386/syscall.h: Ditto.
15486         * libc/sys/linux/sys/select.h: Ditto.
15487         * libc/sys/linux/configure.in: Add support for machine directory.
15488         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
15489         * libc/sys/linux/Makefile.in: Regenerated.
15490         * libc/sys/linux/configure: Ditto.
15491         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
15492         * libc/sys/linux/inode.c: Ditto.
15493         * libc/sys/linux/linux.c: Ditto.
15494         * libc/sys/linux/process.c: Ditto.
15495         * libc/sys/linux/systat.c: Ditto.
15496         * libc/sys/linux/time.c: Ditto.
15497         * libc/sys/linux/wait.c: Ditto.
15498         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
15499         * libc/sys/linux/io.c: Change header plus add readv/writev.
15500         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
15501         use __sigsuspend syscall.
15502         * libc/sys/linux/select.c: Change header plus change select to
15503         use _newselect syscall.
15504         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
15505         used by glibc header files.
15506         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
15507         types.
15508
15509 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
15510
15511         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
15512         initializing a struct _reent that has been dynamically allocated.
15513         (_REENT_CHECK_MISC): New macro that checks _misc struct for
15514         _REENT_SMALL and does nothing otherwise.
15515         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
15516         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
15517         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
15518         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
15519         [_REENT_SMALL](struct _misc_reent): New structure containing
15520         miscellaneous reentrant areas needed by newlib.
15521         [_REENT_SMALL](struct _reent): Add _misc pointer.
15522         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
15523         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
15524         and _REENT_STRTOK_LAST macros.
15525         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
15526         and _REENT_MBLEN_STATE macros.
15527         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
15528         and _REENT_MBTOWC_STATE macros.
15529         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
15530         and _REENT_WCTOMB_STATE macros.
15531
15532 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
15533
15534         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
15535
15536 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
15537
15538         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
15539
15540 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
15541
15542         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
15543         Store high part of leading bytes too.
15544
15545 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
15546
15547         * libm/math/ef_hypot.c: Increase scale factor to 68.
15548
15549 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
15550
15551         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
15552         error.
15553
15554 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
15555
15556         * libc/sys/go32/access.c: Change license to relaxed license
15557         used in identical file throughout newlib/libgloss.
15558
15559 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
15560
15561         * libc/sys/arm/access.c: New file.
15562         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
15563         * libc/sys/arm/Makefile.in: Regenerate.
15564         * libc/sys/arm/syscalls.c (_stat): New function.
15565
15566 2002-03-11  Michael Meissner  <meissner@redhat.com>
15567
15568         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
15569         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
15570         * libc/machine/mips/Makefile.in: Regenerate.
15571         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
15572         * libc/machine/mips/memset.c: Dito.
15573         * libc/machine/mips/strcmp.c: Dito.
15574         * libc/machine/mips/strlen.c: Dito.
15575         * libc/machine/mips/strncmp.c: Dito.
15576
15577 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
15578
15579         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
15580         object so it works for shared library or statici library.
15581         * libc/machine/i386/Makefile.in: Regenerated.
15582
15583 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
15584
15585         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
15586         Add memcpy.S, memset.S and strcpy.S.
15587         * libc/machine/sh/Makefile.in: Regenerate.
15588         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
15589         (SHHI, SHLO): Define.
15590         * libc/machine/sh/memset.S: Add code for SH5.
15591         * libc/machine/sh/memset.S: Likewise.
15592         * libc/machine/sh/strcpy.S: Likewise.
15593
15594 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
15595
15596         * configure.host: Add check for --disable-newlib-io-float
15597         configuration option and add -DNO_FLOATING_POINT to newlib cflags
15598         if appropriate.
15599         * acinclude.m4: Added --disable-newlib-io-float option.
15600         * aclocal.m4: Regenerated.
15601         * configure: Ditto.
15602         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
15603         * libc/*/aclocal.m4 libc/*/configure
15604         * libm/*/aclocal.m4 libm/*/configure: Ditto.
15605         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
15606         if NO_FLOATING_POINT flag is not defined.
15607
15608 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
15609
15610         * libc/include/sys/config.h: Add __extension__ in front of
15611         long long references.
15612
15613 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
15614
15615         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
15616         (_stat): Ditto.
15617
15618 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
15619
15620         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
15621         of off_t.
15622
15623 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
15624
15625         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
15626         clobbered registers.
15627
15628 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
15629
15630         * configure.host (newlib_cflags): When host is in m68* add
15631         -DCOMPACT_CTYPE.
15632
15633 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
15634
15635         * libc/include/sys/config.h: Add definitions for
15636         __int16_t, __uint16_t, __int64_t, and __uint64_t.
15637
15638 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
15639
15640         * libc/sys/mmixware/link.c: New.
15641         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
15642         volatile.
15643         * libc/sys/mmixware/times.c (_times): Renamed from times.
15644         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
15645         properly by reading previous contents, not through BinaryReadWrite.
15646         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
15647         * libc/sys/mmixware/Makefile.in: Regenerate.
15648
15649 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
15650
15651         * libc/include/grp.h: Don't declare group functions when compiling
15652         Cygwin.
15653
15654 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
15655
15656         * libc/include/grp.h: Include Cygwin specific header.
15657         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
15658         when compiling for Cygwin.
15659         * libc/include/sys/types.h: Don't define off_t, uid_t
15660         and gid_t when compiling for Cygwin.
15661
15662 2002-02-08  matthew green  <mrg@redhat.com>
15663
15664         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
15665         _REENT_EMERGENCY_SIZE, not sizeof(char *).
15666
15667 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
15668
15669         Contribute sh64-elf.
15670         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
15671         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
15672         support in printf.
15673         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
15674         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
15675         any labels.
15676         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
15677         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
15678         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
15679         * libc/machine/sh/configure.in: Rework conditionals.
15680         * libc/machine/sh/Makefile.am: Likewise.
15681         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
15682         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
15683         * configure.host: Match `sh*'.
15684         * libc/include/machine/setjmp.h: Define for SH5.
15685         * libc/machine/sh/configure.in: Detect SH5.
15686         * libc/machine/sh/configure: Rebuilt.
15687         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
15688         * libc/machine/sh/Makefile.in: Rebuilt.
15689         * libc/machine/sh/asm.h: Adjust for SH5.
15690         * libc/machine/sh/setjmp.S: Implement in SHmedia.
15691         * libc/sys/sh/crt0.S: Likewise.
15692         * libc/sys/sh/trap.S: Likewise.
15693
15694 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
15695
15696         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
15697         (mach_add_obj): Conditionally set to setjmp.o or nothing.
15698         (LIB_SOURCES): Remove $(mach_add_src).
15699         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
15700         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
15701         * libc/machine/i386/Makefile.in: Regenerate.
15702
15703 2002-02-05  Manik Raina <manik@cisco.com>
15704
15705         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
15706         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
15707         s, p, k, and outstr.
15708         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
15709
15710 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
15711
15712         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
15713         _REENT_CHECK_EMERGENCY macro.
15714
15715 2002-02-03  matthew green  <mrg@redhat.com>
15716
15717         * libc/reent/signgam.c (__signgam): Fix error in previous.
15718
15719 2002-02-02  matthew green  <mrg@redhat.com>
15720
15721         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
15722
15723         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
15724         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
15725         * libc/include/sys/reent.h (struct _reent): Completely new version
15726         for _REENT_SMALL.
15727         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
15728         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
15729         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
15730         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
15731         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
15732         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
15733         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
15734         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
15735         (_REENT_EMERGENCY): Likewise.
15736
15737         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
15738         the start of the real __sFILE, used for stdin, stdout and stderr until
15739         they are setup properly.
15740         (struct __sFILE): Move location of _data in _REENT_SMALL case.
15741         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
15742         allocated stdin, stdout and stderr.
15743         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
15744         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
15745         * libc/stdio/perror.c (_perror_r): Likewise.
15746         * libc/stdio/printf.c (printf, _printf_r): Likewise.
15747         * libc/stdio/putchar.c (_putchar_r): Likewise.
15748         * libc/stdio/puts.c (_puts_r): Likewise.
15749         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
15750         * libc/stdio/vprintf.c (vprintf): Likewise.
15751         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
15752
15753         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
15754
15755         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
15756         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
15757         for _REENT_SMALL.
15758         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
15759         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
15760
15761         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
15762         _REENT_SMALL.
15763         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
15764         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
15765         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
15766         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
15767         * libc/stdlib/rand48.c (__dorand48): Likewise.
15768         * libc/stdlib/seed48.c (_seed48_r): Likewise.
15769         * libc/stdlib/srand48.c (_srand48_r): Likewise.
15770         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
15771         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
15772         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
15773         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
15774         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
15775         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
15776         * libc/stdlib/rand.c (rand): Likewise.
15777
15778         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
15779         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
15780
15781         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
15782         _REENT_MP_FREELIST() and _REENT_MP_P5S.
15783         * libc/include/sys/reent.h (struct _mprec): New structure.
15784
15785         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
15786         _unused_strtok_last.
15787         * libc/string/strtok.c (strtok): Use a local static variable.
15788
15789         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
15790         (_REENT_EMERGENCY_SIZE): Likewise.
15791         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
15792         _REENT_ASCTIME_BUF().
15793         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
15794         _REENT_TM().
15795
15796         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
15797         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
15798         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
15799         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
15800         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
15801         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
15802
15803 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
15804
15805         * configure.host (xstormy16): Don't use the generic malloc.
15806         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
15807         * libc/machine/xstormy16/Makefile.in: Regenerate.
15808         * libc/machine/xstormy16/mallocr.c: New file.
15809         * libc/machine/xstormy16/tiny-malloc.c: New file.
15810
15811 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
15812
15813         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
15814         when _CYGWIN_TYPES_H is not defined.
15815
15816 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
15817
15818         * libc/include/sys/signal.h: Revert 2002-01-23 change.
15819
15820 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
15821
15822         * libc/include/sys/signal.h: Remove pthread_kill declaration
15823         when __CYGWIN__ is defined.
15824
15825 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
15826
15827         * libc/include/time.h: Add prototype for strptime for Cygwin.
15828
15829 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
15830
15831         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
15832         dst was not word aligned.
15833
15834         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
15835         if too much memory is requested.
15836
15837 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
15838
15839         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
15840         reads blanks from the input file to break if EOF reached
15841         rather than end processing.
15842
15843 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
15844
15845         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
15846
15847 2002-01-07 Alan Matsuoka <alanm@redhat.com>
15848
15849         * libc/include/machine/ieeefp.h: Configure d10v doubles to
15850         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
15851         libc/include/sys/config.h: Ditto.
15852
15853 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
15854
15855         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
15856
15857 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
15858             Catherine Moore  <clm@redhat.com>
15859             Richard Henderson  <rth@redhat.com>
15860             Corinna Vinschen  <vinschen@redhat.com>
15861
15862         * configure.host: Add support for xstormy16.
15863         * libc/include/machine/ieeefp.h: Add support for xstormy16.
15864         * libc/include/machine/setjmp.h: Add support for xstormy16.
15865         * libc/include/sys/config.h: Add support for xstormy16.
15866         * libc/machine/xstormy16/Makefile.am: New file.
15867         * libc/machine/xstormy16/Makefile.in: New file.
15868         * libc/machine/xstormy16/aclocal.m4: New file.
15869         * libc/machine/xstormy16/configure: New file.
15870         * libc/machine/xstormy16/configure.in: New file.
15871         * libc/machine/xstormy16/setjmp.S: New file.
15872
15873 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
15874
15875         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
15876         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
15877
15878 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
15879
15880         * libm/machine/Makefile.am: Change rules to create correct lib.a.
15881         * libm/machine/Makefile.in: Regenerated through automake.
15882
15883 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
15884
15885         * Makefile.am (DOCDIR): Force to empty string when doc
15886         directory is not present.
15887
15888 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
15889
15890         * libc/machine/i386/f_*: Move to libm/machine/i386.
15891
15892 2001-12-18      Joel Sherrill <joel@OARcorp.com>
15893
15894         * libm/machine/Makefile.am: Add dummy doc stub so
15895         "make info" works.
15896
15897 2001-12-17      Joel Sherrill <joel@OARcorp.com>
15898
15899         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
15900
15901 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
15902
15903         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
15904         $(COMPILE) rather than $(CC).
15905         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
15906         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
15907         $(LIB_COMPILE) change.
15908         (vfiprintf.$(oext)): Likewise.
15909
15910 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
15911
15912         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
15913         conditionalized including of getopt stuff.
15914
15915 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
15916
15917         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
15918         compile line.
15919         (vfiprintf.$(oext)): Likewise.
15920
15921 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
15922
15923         * Makefile.shared: New file.
15924         * libc/sys/linux/shared.ld: New file.
15925         * libm/machine/*: New files.
15926         * libm/machine/i386/*: New files.
15927         * Makefile.am: Add libtool support.  Change math and mathfp
15928         references to variables.
15929         * configure.host: Add variables for libtool support.  Add
15930         libm_machine_dir variable.
15931         * configure.in: Add objectlist variables, for libtool
15932         support.  Add CC_FOR_BUILD tests.
15933         * libc/Makefile.am: Add libtool support.  Change crt0.o
15934         reference to be a variable reference.
15935         * libc/configure.in: Add libtool support.  Change sublib
15936         names to be lib${subdir}.la when using libtool.
15937         * libc/ctype/Makefile.am: Add libtool support.
15938         * libc/errno/Makefile.am: Likewise.
15939         * libc/locale/Makefile.am: Likewise.
15940         * libc/machine/Makefile.am: Likewise.
15941         * libc/machine/configure.in: Likewise.
15942         * libc/machine/i386/Makefile.am: Likewise.
15943         * libc/machine/i386/configure.in: Likewise.
15944         * libc/misc/Makefile.am: Likewise.
15945         * libc/posix/Makefile.am: Likewise.
15946         * libc/reent/Makefile.am: Likewise.
15947         * libc/signal/Makefile.am: Likewise.
15948         * libc/stdio/Makefile.am: Likewise.
15949         * libc/stdlib/Makefile.am: Likewise.
15950         * libc/string/Makefile.am: Likewise.
15951         * libc/sys/Makefile.am: Likewise.
15952         * libc/sys/configure.in: Likewise.
15953         * libc/sys/linux/Makefile.am: Add libtool support.  Change
15954         awk reference to a variable reference.  Change signal.h
15955         reference to a variable reference.
15956         * libc/sys/linux/configure.in: Add libtool support.
15957         * libc/syscalls/Makefile.am: Likewise.
15958         * libc/time/Makefile.am: Likewise.
15959         * libc/unix/Makefile.am: Likewise.
15960         * libm/Makefile.am: Add libtool support.  Change math and
15961         mathfp references to variables.
15962         * libm/configure.in: Add libtool support.  Add
15963         LIBM_MACHINE_LIB variable.
15964         * libm/common/Makefile.am: Add libtool support.
15965         * libm/math/Makefile.am: Likewise.
15966         * libm/mathfp/Makefile.am: Likewise.
15967         Regenerate all Makefile.in, aclocal.m4, and configure.
15968
15969 2001-12-13 Anita Kulkarni <anitak@kpit.com>
15970
15971         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
15972
15973 2001-12-06  John Peacock <jpeacock@rowman.com>
15974
15975         * libc/include/sys/unistd.h: Correct ualarm declaration.
15976
15977 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
15978
15979         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
15980         vector before calling the initialisation functions.
15981
15982 2001-11-29  Christopher Faylor  <cgf@redhat.com>
15983
15984         * libc/include/dirent.h: Protect against multiple inclusion.
15985
15986 2001-11-27  Christopher Faylor  <cgf@redhat.com>
15987
15988         * libc/include/sys/types.h: Define useconds_t.
15989         * libc/include/sys/ulimit.h: Declare ualarm.
15990
15991 2001-11-21  Christopher Faylor  <cgf@redhat.com>
15992
15993         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
15994
15995 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
15996
15997         * libc/sys/mmixware/*: Tweak license header in all source files.
15998
15999 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
16000
16001         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
16002         to here.  Rearrange for general inclusion by stdlib.h.
16003         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
16004         isn't defined.
16005         * libc/sys/linux/include/alloca.h: Move to libc/include.
16006
16007 2001-11-12  Anthony Green  <green@redhat.com>
16008
16009         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
16010
16011 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
16012
16013         * libc/sys/mmixware/*: Correct spacing in all source files.
16014         * libc/sys/mmixware/syscall.h: Move misplaced file...
16015         * libc/sys/mmixware/sys/syscall.h: ...here.
16016
16017 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
16018
16019         * libc/include/machine/ieeefp.h: Add support for mmix target.
16020         * libc/include/machine/setjmp.h: Ditto.
16021         * configure.host: Ditto.
16022         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
16023         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
16024         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
16025         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
16026         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
16027         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
16028         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
16029         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
16030         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
16031         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
16032         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
16033         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
16034         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
16035         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
16036         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
16037         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
16038         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
16039         libc/sys/mmixware/aclocal.m4: Generate.
16040
16041 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
16042
16043         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
16044         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
16045         when __CYGWIN__ is defined.
16046         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
16047         logwtmp().
16048
16049 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
16050
16051         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
16052         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
16053         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
16054         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
16055
16056 2001-10-24  Christopher Faylor  <cgf@redhat.com>
16057
16058         * libc/stdio/fseek.c: Reset pointer to buffer base
16059         when forced to seek outside of current buffer contents.
16060         This prevents the code from erroneously thinking there is
16061         anything in the current buffer.
16062
16063 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
16064
16065         * libc/include/math.h: The C++ standard adds the single-precision
16066         versions of the elementary functions.
16067
16068 2001-10-22  Christopher Faylor  <cgf@redhat.com>
16069
16070         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
16071         throughout.
16072         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
16073         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
16074         * system.c (_system_r): Ditto.
16075
16076 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
16077
16078         * libc/include/sys/unistd.h: Add prototype for fchdir() when
16079         __CYGWIN__ or __rtems__ is defined.
16080
16081 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
16082
16083         * libc/include/stdlib.h: add declarations for
16084         _strtoull_r, _strtoll_r, strtoull, and strtoll.
16085         * libc/stdio/local.h: remove declarations of
16086         __strtoull_r and __strtoll_r.
16087         * libc/stdio/vfscanf.c(__svfscanf_r): call
16088         _strtoull_r instead of __strtoull_r. Ditto
16089         _strtoll_r vs. __strtoll_r.
16090         * libc/stdlib/Makefile.am: add new files to
16091         .c list and .def list
16092         * libc/stdlib/Makefile.in: regenerate
16093         * libc/stdlib/strtoll_r.c: rename __strtoll_r
16094         as _strtoll_r
16095         * libc/stdlib/strtoull_r.c: rename __strtoull_r
16096         as _strtoull_r
16097         * libc/stdlib/strtoull.c: new file
16098         * libc/stdlib/strtoll.c: new file
16099
16100 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
16101
16102         * libc/include/process.h: Add getpid() declaration.
16103
16104 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
16105
16106         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
16107         for new style arm/elf ctor/dtor handling.
16108         Minor formatting tidy up.
16109
16110 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
16111
16112         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
16113         and strtoull_r.c.
16114         * libc/stdlib/Makefile.in: Regenerated.
16115         * libc/stdlib/strtoll_r.c: New file.
16116         * libc/stdlib/strtoull_r.c: New file.
16117         * libc/stdio/local.h: Add prototypes for long long string
16118         conversion routines.
16119         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
16120         tied to %L integer conversion specifier.
16121
16122 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
16123
16124         * strftime.c (strftime): Fix "%W" implementation to properly handle
16125         Mondays too.
16126
16127 2001-09-07  Jeff Law  <law@redhat.com>
16128
16129         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
16130         __fini with "mov.l" instead of "mov.w".
16131
16132 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
16133
16134         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
16135         and getopt.h.
16136
16137 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
16138
16139         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
16140
16141 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
16142
16143         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
16144         field.
16145         (__DIRENT_VERSION): New define.
16146
16147 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
16148
16149         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
16150         Shrink __d_reserved accordingly to keep structure size.
16151         (dirfd): Declare external.
16152
16153 2001-08-29  Joel Sherrill <joel@OARcorp.com>
16154
16155         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
16156
16157 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
16158
16159         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
16160           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
16161           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
16162           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
16163           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
16164           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
16165           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
16166           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
16167         Add conditional compilation to avoid HW FPU instructions
16168         when compiled for soft-float.
16169
16170 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
16171
16172         * Makefile.am: Add check for ln failing when creating libg.a
16173         so that cp gets used as a backup.
16174         * Makefile.in: Regenerated.
16175
16176 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
16177
16178         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
16179         No longer include time.h.  Add struct __tm to use for
16180         _localtime_buf in the reentrant structure.  Add a
16181         _NULL definition to use in initializing the reentrant struct.
16182         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
16183         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
16184         <sys/_types.h>.
16185         * libc/include/sys/unistd.h: Include <sys/_types.h>.
16186         * libc/time/lcltime.c (localtime): Cast the reentrant struct
16187         _localtime_buf to be struct tm *.
16188
16189 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
16190
16191         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
16192         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
16193         __ctors_end.
16194         * libc/sys/h8300hms/syscalls.c: Include errno.h.
16195         (_unlink): New stub function.
16196
16197 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
16198
16199         * libc/include/sys/errno.h: Add a cautionary comment.
16200
16201 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
16202
16203         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
16204         for SIZE_SZ so that alignment ends up a minimum of 8.
16205
16206 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
16207
16208         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
16209         arguments.
16210
16211         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
16212         Cygwin.
16213
16214 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
16215
16216         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
16217         macro constants for mallopt options.
16218         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
16219
16220 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
16221
16222         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
16223         otherwise default.
16224
16225 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
16226
16227         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
16228
16229 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
16230
16231         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
16232         Define for little endian ARMs.
16233
16234         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
16235         __IEEE_BYTES_LITTLE_ENDIAN is defined.
16236
16237 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
16238
16239         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
16240
16241 2001-06-11  Egor Duda  <deo@logos-m.ru>
16242
16243         * libc/ctype/ctype_.c: When compiled with gcc on platforms
16244         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
16245         initialized memory region. Platform can define COMPACT_CTYPE
16246         to avoid allocation of the additional 128 bytes of data.
16247         Add pointer to _ctype_ array. Always initialize all _ctype_
16248         array elements.
16249
16250 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
16251
16252         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
16253         NULL pointer.
16254
16255 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
16256
16257         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
16258
16259 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
16260
16261         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
16262         matching, non-word alignment, and the length is <= 4 but more than
16263         enough to move them over a word boundary.
16264         Add comments explaining what each instruction does.
16265
16266 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
16267
16268         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
16269         * libc/include/sys/unistd.h: Ditto.
16270
16271 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
16272
16273         * libc/string/strrchr.c: Use strchr for the speed improvements.
16274
16275 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
16276
16277         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
16278         real file systems, let __smakebuf() determine if line buffering
16279         should be used for stdout.
16280
16281 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
16282
16283         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
16284
16285 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
16286
16287         * libc/include/stdlib.h: Add prototype for _strtod_r.
16288
16289 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
16290
16291         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
16292         * libc/stdio/vprintf.c (_vprintf_r): new function
16293         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
16294         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
16295         _DEFUN, and call _vfprintf_r, not vfprintf.
16296         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
16297         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
16298         _DEFUN, and call _vfprintf_r, not vfprintf.
16299
16300 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
16301
16302         * libc/include/sys/unistd.h [X_OK]: Use better protection against
16303         Cygwin X_OK definitions in sys/file.h.
16304
16305 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
16306
16307         * libc/include/sys/time.h: Define timercmp and other macros for
16308         __CYGWIN__, too.
16309
16310 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
16311
16312         * acinclude.m4: Added --enable-malloc-debugging configure flag.
16313         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
16314         --enable-malloc-debugging selected.
16315         * aclocal.m4 configure: Regenerated.
16316           libm/aclocal.m4 libm/configure: Ditto.
16317         * libc/aclocal.m4 libc/configure: Ditto.
16318         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
16319         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
16320         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
16321         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
16322         * doc/aclocal.m4 doc/configure: Ditto.
16323
16324 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
16325
16326         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
16327         into one list.
16328         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
16329         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
16330         function prototypes.
16331         (_fscanf_r, _sscanf_r): Ditto.
16332         * libc/include/stdlib.h: Added _strtod_r prototype.
16333         * libc/stdio/Makefile.am: Add new v*scanf functions.
16334         * libc/stdio/Makefile.in: Regenerate.
16335         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
16336         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
16337         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
16338         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
16339         (sscanf): Changed to call __svfscanf_r with _REENT argument.
16340         (_sscanf_r): New routine.
16341         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
16342         with __svfscanf_r prototype.
16343         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
16344         routines.
16345         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
16346         structure as argument as calls reentrant versions of helper functions
16347         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
16348         to _strtol_r and _strtod_r respectively.
16349         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
16350         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
16351         _REENT argument.
16352         * libc/stdio/vscanf.c: New file.
16353         * libc/stdio/vsscanf.c: Ditto.
16354
16355 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
16356
16357         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
16358         Define daylight to _daylight if it is not defined
16359         Prepare a variable export of timezone based on timezonevariable.
16360         (Cannot be used with the timezone() function.)
16361
16362 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
16363
16364         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
16365          Correct the numerical values.
16366
16367 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
16368
16369         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
16370
16371 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
16372
16373         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
16374         on case insensitve file systems.
16375
16376 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
16377
16378         * libc/include/sys/features.h: Add appropriate defines for Cygwin
16379         pthread support.
16380         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
16381         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
16382         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
16383
16384 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
16385
16386         * libc/include/machine/ieeefp.h: Comment about new configuration
16387         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
16388         * libm/common/fdlib.h: Define new macros for testing floats.
16389         * libm/common/sf_*: Use them.
16390         * libm/math/ef_*: Likewise.
16391         * libm/math/sf_*: Likewise.
16392
16393 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
16394
16395         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
16396         prolog to by-pass possible assembler error.
16397
16398 2001-03-21  Egor Duda  <deo@logos-m.ru>
16399
16400         Allow building internal stubs for non-reentrant syscalls
16401         if target provides its own malloc
16402         * libc/reent/reent.c (errno): Move definition here.
16403         * libc/reent/sbrkr.c: From here.
16404
16405 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
16406
16407         * libc/include/sys/types.h (BSD int typedefs): Guard with
16408         _BSDTYPES_DEFINED rather than _WINSOCK_H.
16409         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
16410         _SYS_TYPES_FD_SET.
16411         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
16412         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
16413
16414 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
16415
16416         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
16417         _PC_POSIX_SECURITY constants for Cygwin.
16418
16419 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
16420
16421         * libc/sys/cygwin/crt0.c: Add copyright hint.
16422         * libc/sys/cygwin/sys/dirent.h: Ditto.
16423         * libc/sys/cygwin/sys/param.h: Ditto.
16424         * libc/sys/cygwin/sys/utime.h: Ditto.
16425         * libc/sys/cygwin/sys/utmp.h: Ditto.
16426
16427 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
16428
16429         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
16430         equivalent to LONGINT.
16431
16432 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
16433
16434         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
16435         jmpbuf on MIPS64 targets.
16436         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
16437
16438 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
16439
16440         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
16441           declarations.
16442
16443 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
16444
16445         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
16446         For RTEMS, define to be ssize_t.  Default to int if not defined.
16447         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
16448         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
16449         * libc/stdio/local.h (__sread, __swrite): Likewise.
16450         * libc/include/sys/reent.h (_read, _write): Likewise.
16451         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
16452         * libc/syscalls/sysread.c (read): Likewise.
16453         * libc/syscalls/syswrite.c (write): Likewise.
16454
16455 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
16456
16457         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
16458
16459 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
16460
16461         * libc/include/sys/stat.h: Use special defines for executable stat bits
16462         when compiling for Cygwin.
16463         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
16464         for Cygwin.
16465
16466 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
16467
16468         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
16469         of strtok_r is always defined.
16470
16471 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
16472
16473         * libc/include/machine/ansi.h: New dummy header file.
16474
16475 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
16476
16477         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
16478         changed the copyright information to allow free modification of the
16479         file with no reference to "copying.dj".
16480         * libc/include/sys/stat-dj.h: Ditto.
16481         * libc/machine/i386/setjmp.S: Ditto.
16482         * libc/sys/h8300hms/sys/file.h: Ditto.
16483         * libc/sys/sysmec/access.c: Ditto.
16484         * libc/sys/sysnecv850/access.c: Ditto.
16485         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
16486         * libc/stdlib/getenv_r.c: Ditto.
16487         * libc/stdlib/putenv_r.c: Ditto.
16488         * libc/stdlib/setenv_r.c: Ditto.
16489         * libc/stdlib/getenv.c: Removed DJ reference since any possible
16490         modifications will now be in the _r version of this file.
16491         * libc/stdlib/putenv.c: Ditto.
16492         * libc/stdlib/setenv.c: Ditto.
16493         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
16494         valid.  Added a reference to DJ's web page that contains his address.
16495         * libc/sys/go32/*.s: Removed references to DJ's old address.
16496         * libc/sys/go32/*.c: Ditto.
16497         * libc/sys/go32/*.h: Ditto.
16498         * libc/sys/go32/*.S: Ditto.
16499         * libc/sys/go32/sys/*.h: Ditto.
16500
16501 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
16502
16503         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
16504         HAVE_FCNTL flag check.
16505         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
16506         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
16507
16508 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
16509
16510         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
16511
16512 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
16513
16514         * libc/include/stdlib.h: Add declarations of rand48 functions and
16515         their reentrant versions.
16516         * libc/include/sys/reent.h: Move macros from rand48.h. Add
16517         struct _rand48 for shared parameters of rand48 functions.
16518         (struct _reent): Add a variable _r48 of struct _rand48.
16519         (_REENT_INIT): Add _r48 initialization.
16520         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
16521         (CHEWOUT_FILES): Add rand48.def.
16522         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
16523         * libc/stdlib/Makefile.in: Regenerated.
16524         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
16525         NetBSD C library.
16526         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
16527         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
16528         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
16529         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
16530         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
16531         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
16532         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
16533         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
16534         * libc/stdlib/rand48.c (__dorand48): Ditto.
16535         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
16536         parameters into macros referring them in the reentrant structure.
16537
16538 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
16539
16540         * libc/include/sys/stat.h: Add mknod for Cygwin now that
16541         Cygwin definition has correct prototype.
16542
16543 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
16544
16545         * libc/include/sys/stat.h: Must revert change for mknod
16546         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
16547         prototype.
16548
16549 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
16550
16551         * libc/include/stdio.h: Revert putw prototype.
16552
16553 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
16554
16555         * libc/include/grp.h: add prototype for initgroups.
16556         * libc/include/stdio.h: fix prototype for putw.
16557         * libc/include/sys/signal.h: add prototype for killpg.
16558         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
16559         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
16560         vhangup and remove duplicate sysconf prototype.
16561
16562 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
16563
16564         * libc/sys/rtems/sys/types.h: Removed.
16565
16566 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
16567
16568         * libc/include/locale.h: add LC_MESSAGES definition
16569
16570 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
16571
16572         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
16573         SYS_get_argN):
16574         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
16575         __setup_argv_and_call_main): New.
16576
16577 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
16578
16579         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
16580         if defined.
16581         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
16582         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
16583         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
16584         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
16585
16586 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
16587
16588         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
16589         compiling under Cygwin.
16590
16591 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
16592
16593         * libc/include/math.h (signgam): Change to errno-like solution
16594         using a function to return the address of the real signgam.
16595         * libc/reent/signgam.c: New file containing __signgam().
16596         * libc/reent/Makefile.am: Added signgam.c to list of files.
16597         * libc/reent/Makefile.in: Regenerated.
16598
16599 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
16600
16601         * libc/sys/sh/syscalls.c (_times): New.
16602
16603         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
16604         * libc/sys/sh/syscalls.c (_gettimeofday): New.
16605
16606 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
16607
16608         * libc/include/math.h (signgam): Regress previous fix as
16609         it does not handle programs with extern int signgam in them.
16610
16611 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
16612
16613         * libc/include/math.h (signgam): Changed to a macro refering to
16614         its location in the reentrant structure.
16615
16616 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
16617
16618         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
16619         that suppressed . for %.0f, 0.1.  Check now looks if there
16620         are padding zeroes (expt) in addition to any digits (ndig) to
16621         print.
16622
16623 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
16624
16625         * libc/sys/arc/Makefile.am: New file.
16626         * libc/sys/arc/Makefile.in: Ditto.
16627         * libc/sys/arc/aclocal.m4: Ditto.
16628         * libc/sys/arc/configure: Ditto.
16629         * libc/sys/arc/configure.in: Ditto.
16630         * libc/sys/arc/crt0.S: Ditto.
16631         * libc/sys/arc/isatty.c: Ditto.
16632         * libc/sys/arc/mem-layout.c: Ditto.
16633         * libc/sys/arc/sbrk.c: Ditto.
16634         * libc/sys/arc/syscalls.c: Ditto.
16635         * libc/sys/arc/sys/syscall.h: Ditto.
16636
16637 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
16638
16639         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
16640
16641 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
16642
16643         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
16644
16645 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
16646
16647         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
16648
16649 2001-01-09  Nick Clifton  <nickc@redhat.com>
16650
16651         * configure.host (v859): Remove unsupported compiler options.
16652
16653 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
16654
16655         * src/newlib/configure.host (*-*-rtems*): add printf long long
16656         support for RTEMS.
16657
16658 2000-12-19  Graham Stott <grahams@redhat.com>
16659
16660         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
16661
16662 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
16663
16664         * configure.host: Turn on long double I/O for Cygwin.
16665
16666 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
16667
16668         * MAINTAINERS: Removed Ranjith.
16669         * NEWS: Updated for 1.9.0.
16670         * README: Updated.
16671         * acinclude.m4: Updated to release 1.9.0.
16672         * aclocal.m4 configure
16673           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
16674           libc/machine/aclocal.m4 libc/machine/configure
16675           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
16676           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
16677           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
16678           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
16679           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
16680           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
16681           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
16682           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
16683           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
16684           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
16685           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
16686           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
16687           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
16688           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
16689           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
16690           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
16691           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
16692           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
16693           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
16694           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
16695           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
16696           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
16697           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
16698           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
16699           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
16700           libc/sys/aclocal.m4 libc/sys/configure
16701           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
16702           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
16703           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
16704           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
16705           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
16706           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
16707           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
16708           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
16709           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
16710           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
16711           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
16712           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
16713           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
16714           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
16715           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
16716           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
16717           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
16718           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
16719           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
16720           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
16721           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
16722           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
16723           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
16724           libm/aclocal.m4 libm/configure: Regenerated.
16725
16726 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
16727
16728         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
16729         when __CYGWIN__ is defined.
16730
16731 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
16732
16733         * libc/stdlib/ldtoa.c (_ldcheck): New routine
16734         that categorizes a long double as NaN, Infinity, or other.
16735         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
16736         isinfl and isnanl static routines which were i386-specific.  Changed
16737         calls to the two removed routines to a single _ldcheck call.
16738         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
16739
16740 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
16741
16742         * Makefile.am: Fixed install-data-local target to use
16743         $(mkinstalldirs) for the installed header files to ensure
16744         the directories exist before copying.
16745         * Makefile.in: Regenerated.
16746
16747 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
16748
16749         * libc/include/sys/unistd.h: Restored Cygwin _SC
16750         constants and moved new constants appropriately
16751         so Cygwin will build.
16752
16753 2000-12-11  Joel Sherrill <joel@OARcorp.com>
16754
16755         * Merge RTEMS specific .h files into main libc/include.
16756         * libc/sys/rtems/include/signal.h: Removed.
16757         * libc/sys/rtems/include/time.h: Removed.
16758         * libc/sys/rtems/sys/features.h: Removed.
16759         * libc/sys/rtems/sys/sched.h: Removed.
16760         * libc/sys/rtems/sys/siginfo.h: Removed.
16761         * libc/sys/rtems/sys/signal.h: Removed.
16762         * libc/sys/rtems/sys/time.h: Removed.
16763         * libc/sys/rtems/sys/times.h: Removed.
16764         definitions for time_t and clock_t since these are
16765         no longer in time.h.
16766         * libc/include/pthread.h: New file.
16767         * libc/include/sys/sched.h: New file.
16768         * libc/include/sys/features.h: New file.
16769         * libc/include/time.h: Removed duplicate definition of clock_t
16770         and time_t, get them from <sys/types.h> instead.  Add prototypes
16771         for POSIX clock and timer functionality.
16772         * libc/sys/linux/sys/types.h: Changed to include
16773         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
16774         * libc/include/sys/signal.h: Add more complete set of POSIX
16775         signal functionality including real-time and threaded signals.
16776         * libc/include/sys/types.h: Add clock_t, time_t, struct
16777         timespec, and struct itimerspec.  Centralizing these makes
16778         things cleaner.  RTEMS uses 64-bit dev_t.
16779         Added numerous primitive definitions
16780         for pthreads including macros, pthread_attr_t,
16781         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
16782         pthread_once_t, and pthread_t.
16783         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
16784         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
16785         Feature flags removed and moved to new file <sys/features.h>.
16786         Full set of POSIX sysconf() constants
16787
16788 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
16789
16790         * configure.host: Added x86 linux target.
16791         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
16792         definitions provided if not already defined.
16793         * libc/sys/linux/crt0.c: New file.
16794         * libc/sys/linux/Makefile.am: Ditto.
16795         * libc/sys/linux/Makefile.in: Ditto.
16796         * libc/sys/linux/aclocal.m4: Ditto.
16797         * libc/sys/linux/brk.c: Ditto.
16798         * libc/sys/linux/configure: Ditto.
16799         * libc/sys/linux/configure.in: Ditto.
16800         * libc/sys/linux/getoptlong.c: Ditto.
16801         * libc/sys/linux/ids.c: Ditto.
16802         * libc/sys/linux/inode.c: Ditto.
16803         * libc/sys/linux/io.c: Ditto.
16804         * libc/sys/linux/linux.c: Ditto.
16805         * libc/sys/linux/process.c: Ditto.
16806         * libc/sys/linux/realpath.c: Ditto.
16807         * libc/sys/linux/select.c: Ditto.
16808         * libc/sys/linux/signal.c: Ditto.
16809         * libc/sys/linux/systat.c: Ditto.
16810         * libc/sys/linux/termios.c: Ditto.
16811         * libc/sys/linux/time.c: Ditto.
16812         * libc/sys/linux/wait.c: Ditto.
16813         * libc/sys/linux/include/alloca.h: Ditto.
16814         * libc/sys/linux/include/getopt.h: Ditto.
16815         * libc/sys/linux/include/stdint.h: Ditto.
16816         * libc/sys/linux/include/unistd.h: Ditto.
16817         * libc/sys/linux/sys/cdefs.h: Ditto.
16818         * libc/sys/linux/sys/dirent.h: Ditto.
16819         * libc/sys/linux/sys/errno.h: Ditto.
16820         * libc/sys/linux/sys/fcntl.h: Ditto.
16821         * libc/sys/linux/sys/file.h: Ditto.
16822         * libc/sys/linux/sys/ioctl.h: Ditto.
16823         * libc/sys/linux/sys/resource.h: Ditto.
16824         * libc/sys/linux/sys/signal.h: Ditto.
16825         * libc/sys/linux/sys/stat.h: Ditto.
16826         * libc/sys/linux/sys/syscall.h: Ditto.
16827         * libc/sys/linux/sys/termios.h: Ditto.
16828         * libc/sys/linux/sys/time.h: Ditto.
16829         * libc/sys/linux/sys/types.h: Ditto.
16830         * libc/sys/linux/sys/utmp.h: Ditto.
16831         * libc/sys/linux/sys/utsname.h: Ditto.
16832         * libc/sys/linux/sys/wait.h: Ditto.
16833
16834 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
16835
16836         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
16837         can be a relative path to $(top_srcdir)/install.sh so ensure the
16838         autoconf detected settings are properly passed recursively.
16839         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
16840         properly to subdirectories.
16841         * Makefile.in: Regenerated.
16842
16843 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
16844
16845         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
16846         a floating point register unless really printing a floating
16847         point number.
16848
16849 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
16850
16851         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
16852         Also removed \r's.
16853         (asctoeg): Replaced alloca call with stack array and malloc
16854         when storage exceeds reasonable limit.
16855         (e53toe): Fixed einfin calls missing ldp parameter.
16856         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
16857
16858 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
16859
16860
16861         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
16862
16863 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
16864
16865         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
16866         * libc/stdlib/Makefile.in: Regenerated.
16867         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
16868         * libc/stdio/vfieeefp.h: Added long double bit structures.
16869         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
16870         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
16871         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
16872         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
16873         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
16874         _strtold routines used for conversions between character
16875         and long double.
16876
16877 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
16878
16879         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
16880
16881 2000-12-04  Joel Sherrill <joel@OARcorp.com>
16882
16883         * libc/include/machine/time.h: RTEMS systems can configure clock
16884         tick rate so use sysconf() to ask.
16885
16886 2000-12-04  Joel Sherrill <joel@OARcorp.com>
16887
16888         * libc/include/sys/times.h: Add reference to POSIX standard.
16889
16890 2000-12-04  Joel Sherrill <joel@OARcorp.com>
16891
16892         * libc/include/sys/time.h: Added BSD timer manipulation macros
16893         used by RTEMS code.
16894
16895 2000-12-04  Joel Sherrill <joel@OARcorp.com>
16896
16897         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
16898         referenced by code generated by gcc 2.8.1.
16899         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
16900         satisfy gcc.
16901
16902 2000-12-04  Joel Sherrill <joel@OARcorp.com>
16903
16904         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
16905
16906 2000-12-04  Joel Sherrill <joel@OARcorp.com>
16907
16908         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
16909
16910 2000-12-04  Joel Sherrill <joel@OARcorp.com>
16911
16912         * configure.host (or16, or32): New entries for OpenCores
16913         OpenRisc CPUs.
16914         (*-*-rtems*): Add -DNO_EXEC.
16915
16916 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
16917
16918         * libc/include/sys/errno.h: Added comments on many error numbers.
16919         * libc/string/strerror.c: Added some more strings.
16920
16921 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
16922
16923         * libc/sys/sh/syscalls.c (_link): New stub.
16924
16925 2000-11-29  Nick Clifton  <nickc@redhat.com>
16926
16927         * configure.host: Add xscale target.
16928         * libc/machine/xscale: New directory.
16929         * libc/machine/xscale/Makefile.am: New file.
16930         * libc/machine/xscale/Makefile.in: New file.
16931         * libc/machine/xscale/aclocal.m4: New file.
16932         * libc/machine/xscale/configure: New file.
16933         * libc/machine/xscale/configure.in: New file.
16934         * libc/machine/xscale/memchr.S: New file.
16935         * libc/machine/xscale/memcmp.S: New file.
16936         * libc/machine/xscale/memcpy.S: New file.
16937         * libc/machine/xscale/memmove.S: New file.
16938         * libc/machine/xscale/memset.S: New file.
16939         * libc/machine/xscale/strchr.S: New file.
16940         * libc/machine/xscale/strcmp.S: New file.
16941         * libc/machine/xscale/strcpy.S: New file.
16942         * libc/machine/xscale/strlen.S: New file.
16943
16944 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
16945
16946         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
16947         avoid compiler warnings.
16948
16949 2000-11-22  Michael Meissner  <meissner@redhat.com>
16950
16951         * libc/posix/execl.c (execl): Don't reference environ directly,
16952         reference it only via a static pointer to avoid problems with some
16953         shared library systems and with different uses of small data where
16954         the user specifies his own version of environ.
16955         * libc/posix/execv.c (execv): Ditto.
16956         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
16957         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
16958         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
16959
16960         * libc/stdlib/getenv.c (environ): Delete unused reference to
16961         environ.
16962
16963         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
16964         colorization.
16965         * libc/stdlib/system.c: Ditto.
16966
16967 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
16968
16969         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
16970         including windows headers.
16971
16972 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
16973
16974         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
16975         * libc/include/dirent.h: Added definition of MAXNAMLEN if
16976         not defined by sys/dirent.h.
16977         * libc/posix/execvp.c: Added include of dirent.h to get
16978         MAXNAMLEN value which used to be in unistd.h.
16979
16980 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
16981
16982         * libc/include/sys/types.h: Change type of i to `size_t' in
16983         FD_ZERO macro to avoid compiler warnings.
16984
16985 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
16986
16987         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
16988         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
16989
16990 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
16991
16992         * libc/include/sys/unistd.h: Add defines for sysconf values
16993         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
16994         _SC_AVPHYS_PAGES.
16995
16996 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
16997
16998         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
16999         declarations for __CYGWIN__.
17000
17001 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
17002
17003         * libc/signal/signal.c (__sigtramp_r): ISO C requires
17004         case labels to be integral constant expressions, so
17005         use an if/else tree instead.
17006         (_raise_r): Likewise.
17007
17008 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
17009
17010         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
17011         clipping patch from e-mail reader.
17012
17013 2000-09-13  Will Cohen  <wcohen@redhat.com>
17014
17015         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
17016         Added return value 0.
17017         (_longjmp): Allow longjmp to return value of second argument
17018         passed to it.
17019
17020 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
17021
17022         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
17023         inline code to prevent having to include another header file.
17024
17025 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
17026
17027         * Makefile.am: Fix space vs. tab problem in install-data-local.
17028         * Makefile.in: Regenerate.
17029
17030 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
17031
17032         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
17033         (_EXPARM): New macro for defining a function parameter.
17034         * libc/include/stdlib.h: Use _EXPARM.
17035         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
17036
17037 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
17038
17039         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
17040         required, as documented in the gnu coding standards.
17041         * Makefile.in: Regenerate.
17042
17043 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
17044
17045         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
17046         make O_NDELAY and O_NONBLOCK have the same value.
17047
17048 2000-08-30  Kazu Hirata  <kazu@hxi.com>
17049
17050         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
17051
17052 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
17053
17054         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
17055         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
17056         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
17057         everywhere else.
17058
17059 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
17060
17061         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
17062         * libc/include/string.h: Don't include <sys/types.h>,
17063         as it causes really bad namespace pollution.  Don't declare
17064         swab(), it is properly declared in unistd.h.
17065
17066 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
17067
17068         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
17069         (broken) support for non-existent /etc/passwd field "comment".
17070
17071 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
17072
17073         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
17074         only if _DIRENT_HAVE_D_NAMLEN is defined.
17075         (alphasort): aligned prototype with
17076         libc/sys/cygwin/sys/dirent.h and simplified function body.
17077         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
17078         long telldir (DIR *) as mentioned in annex B of POSIX.1
17079
17080 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
17081
17082         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
17083         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
17084         Added __CLI and __STI macros (controlled via
17085         _I386MACH_ALLOW_HW_INTERRUPTS macro).
17086         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
17087         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
17088         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
17089         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
17090         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
17091         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
17092         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
17093         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
17094         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
17095         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
17096         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
17097         for all global entry points.
17098         * libc/machine/i386/setjmp.S: removed code replicated in
17099         libc/machine/i386/i386mach.h and included i386mach.h instead;
17100         Use __CLI and __STI instead of cli and sti.
17101
17102 2000-08-25  DJ Delorie  <dj@redhat.com>
17103
17104         * libc/include/sys/unistd.h (environ): this one isn't from the
17105         DLL, no __IMPORT
17106
17107 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
17108
17109         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
17110         environ when compiling under cygwin since it is already declared in
17111         unistd.h.
17112
17113 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
17114
17115         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
17116         like  x << y-z  to the equivalent  x << (y-z).
17117         (d2b): changed if statements with assignment to perform the
17118         assignment prior to the if check.
17119         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
17120         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
17121         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
17122         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
17123         precedence.
17124         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
17125         Added "_execve" prototype (for execl.c, execle.c, execv.c, and
17126         execve.c).
17127         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
17128         precedence.
17129         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
17130         clarify && and || precendence (and to remove pascalism).
17131         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
17132         * libm/math/s_infconst.c: added another pair of braces to all
17133         initializers for __infinity (need three: for __infinity[1] array,
17134         for union __dmath, and for i[2]).
17135
17136 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
17137
17138         * libc/stdlib/abort.c: changed description: uses "raise" instead of
17139         "getpid" and "kill"; added: uses "write" and "_exit".
17140         Also included unistd.h for "_exit" prototype.
17141         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
17142         reent.h for "_fork_r" and "_wait_r" prototypes.
17143         (do_system): changed  extern char *environ[] to POSIX-friendly
17144         extern char **environ.
17145         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
17146         prototypes.
17147         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
17148         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
17149         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
17150         * libc/reent/openr.c: included fcntl.h for "open" prototype.
17151         * libc/reent/signalr.c: included signal.h for "kill" prototype,
17152         unistd.h for "getpid" prototype.
17153         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
17154         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
17155         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
17156         prototype.  Also included stdlib.h for "abort", string.h for
17157         "strdup" and "strncmp" prototypes.
17158         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
17159         "strncpy", unistd.h for "read" and "close" prototypes.
17160         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
17161         "strcat" prototypes.
17162
17163 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
17164
17165         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
17166         used later (ifdef __SCLE)
17167         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
17168         used later (ifdef MB_CAPABLE)
17169         * libc/string/memset.c (memset): removed unused variables "count"
17170         and "unaligned_addr"
17171         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
17172         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
17173         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
17174         and "gid"
17175
17176 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
17177
17178         * libc/stdlib/envlock.c: changed documented "__env_lock" and
17179         "__env_unlock" prototype from "void *" or "char *" to
17180         "struct _reent *" to match real function.  Also added include
17181         of envlock.h.
17182         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
17183         "__malloc_unlock" prototype from "void *" or "char *" to
17184         "struct _reent *" to match real function.
17185         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
17186         prototypes (for getenv_r.c and setenv_r.c).
17187
17188 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
17189
17190         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
17191         and prototype in cygwin's utmp.h
17192
17193 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
17194
17195         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
17196
17197 2000-08-09  Nick Clifton  <nickc@cygnus.com>
17198
17199         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
17200         epilogue and to allow the functions to be used in a Thumb based
17201         toolchain.
17202
17203 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
17204
17205         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
17206         so size of 0 results in nothing being written to string.
17207         Also fixed code so that when size is non-zero, there is only
17208         a maximum of size - 1 characters written to the array and
17209         a nul terminator is appended at the end.
17210         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
17211
17212 2000-08-01  DJ Delorie  <dj@redhat.com>
17213
17214         * libc/include/sys/config.h: define __IMPORT appropriately
17215         * libc/include/ctype.h (_ctype_): use __IMPORT
17216         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
17217         * libc/include/math.h (__mb_cur_max): ditto
17218         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
17219         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
17220         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
17221         * libc/include/unistd.h (environ): ditto
17222
17223 2000-07-28  Michael Meissner  <meissner@redhat.com>
17224
17225         * libc/include/math.h (__infinity): Declare as an array without
17226         bounds to get around small data support.  Rewrite Cygwin support
17227         to be more general.
17228         * libm/math/s_infconst.c (__infinity): Ditto.
17229         * libm/mathfp/s_infconst.c (__infinity): Ditto.
17230
17231 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
17232
17233         * libc/include/math.h: Use appropriate dll import linkage for
17234         __infinity under Cygwin.
17235
17236 2000-07-13  DJ Delorie  <dj@cygnus.com>
17237
17238         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
17239
17240 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
17241
17242         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
17243         to argument list for AngelSWI_Reason_GetCmdLine.
17244
17245 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
17246
17247         * configure.host: Add support for AVR target.
17248         * libc/include/machine/ieeefp.h: Likewise.
17249         * libc/include/sys/config.h: Likewise.
17250
17251 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
17252
17253         * README: Newlib 1.8.2 must be built in a separate directory
17254         than the sources.
17255
17256 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
17257
17258         * libc/include/sys/reent.h (_rand_next): Added __extension__
17259         qualifier as long long type is not strict ANSI.
17260         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
17261         to long long constant.
17262
17263 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
17264
17265         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
17266         `setegid' provided by Cygwin.
17267
17268 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
17269
17270         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
17271         account for Cygwin.
17272
17273 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
17274
17275         * libc/include/sys/reent.h (_rand_next): Changed to
17276         unsigned long long and moved to end of _reent struct in _new union.
17277         (_REENT_INIT): Changed to move _rand_next initialization.
17278         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
17279         linear congruential algorithm that is used by DJGPP.
17280
17281 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
17282
17283         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
17284         * libc/include/sys/config.h: Define __RAND_MAX.
17285
17286 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
17287
17288         * libc/stdlib/rand_r.c: New algorithm that meets minimal
17289         standard.
17290
17291 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
17292
17293         * libc/include/string.h: Work around problem with strsignal and gdb.
17294
17295 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
17296
17297         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
17298         * libc/include/malloc.h: Ditto.
17299         * libc/include/process.h: Ditto.
17300         * libc/include/stdio.h: Ditto.
17301         * libc/include/stdlib.h: Ditto.
17302         * libc/include/time.h: Ditto.
17303         * libc/include/machine/setjmp.h: Ditto.
17304         * libc/include/sys/errno.h: Ditto.
17305         * libc/include/sys/signal.h: Ditto.
17306         * libc/include/sys/stat.h: Ditto.
17307         * libc/include/sys/time.h: Ditto.
17308         * libc/include/sys/unistd.h: Ditto.
17309         * libc/include/string.h: Ditto.  strsignal should return a const char *.
17310
17311 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
17312
17313         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
17314         * libm/common/s_log1p.c (log1p): Likewise.
17315         * libm/common/s_scalbn.c (scalbn): Likewise.
17316         * libm/math/e_log.c: Likewise.
17317         * libm/math/e_asin.c: Likewise.
17318         * libm/math/ef_asin.c: Likewise.
17319         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
17320         * libm/math/e_j1.c (pone, qone): Likewise.
17321         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
17322         * libm/math/ef_j1.c (ponef, qonef): Likewise.
17323         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
17324         * libm/mathfp/e_j1.c (pone, qone): Likewise.
17325         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
17326         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
17327
17328 2000-05-19  DJ Delorie  <dj@cygnus.com>
17329
17330         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
17331         (__sread): always read in binary mode
17332         (__swrite): always write in binary mode
17333         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
17334         compatibility issues with different dll versions
17335         * libc/stdio/fopen.c: use __stextmode
17336         * libc/stdio/fdopen.c: ditto
17337         * libc/stdio/freopen.c: ditto
17338         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
17339         * libc/stdio/local.h: declare __stextmode
17340
17341 2000-05-18  DJ Delorie  <dj@cygnus.com>
17342
17343         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
17344
17345 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
17346
17347         * libc/include/ctype.h: Changed tolower and toupper macros
17348         to use __extension__ to prevent pedantic warnings.
17349
17350 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
17351
17352         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
17353         structures.
17354
17355 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
17356
17357         * libc/include/machine/ieeefp.h: Add ia64 support.
17358         * configure.host: Likewise.
17359
17360 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
17361
17362         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
17363         month is now padded with space, not zero.  This now conforms to
17364         ANSI standard.
17365
17366 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
17367
17368         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
17369         host or network path") used by cygwin. Add some comments.
17370
17371 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
17372
17373         * libc/include/stdio.h (FILE): define __SCLE for "convert line
17374         endings" for Cygwin.
17375         (__sgetc): convert line endings if needed
17376         (__sputc): ditto
17377         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
17378         * libc/stdio/fopen.c (_fopen_r): ditto
17379         * libc/stdio/freopen.c (freopen): ditto
17380         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
17381         * libc/stdio/fvwrite.c (__sfvwrite): ditto
17382
17383 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
17384
17385         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
17386         post-increment when it is worth it, spacewise.
17387
17388 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
17389
17390         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
17391         * libc/stdio/findfp.c (std): Added declaration of flags and file.
17392         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
17393         return type.
17394         * libc/stdio/putchar.c (putchar): Added return statement.
17395         * libc/stdio/refill.c (lflush): Added correct parentheses.
17396         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
17397         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
17398         prints long value to use l qualifier.
17399         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
17400         messages and initialized local values: ilim, ilim1, and spec_case.
17401         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
17402         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
17403         * libc/stdlib/mprec.c: Ditto.
17404         * libc/stdlib/setenv_r.c: Ditto.
17405         * libc/stdlib/strtod.c: Ditto.
17406         * libc/stdlib/strtol.c: Ditto.
17407         * libc/stdlib/strtoul.c: Ditto.
17408         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
17409         * libm/common/sf_log1p.c: Ditto.
17410         * libm/common/sf_scalbn.c: Ditto.
17411         * libm/math/ef_log.c: Ditto.
17412
17413 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
17414
17415         * libc/posix/execvp.c (execvp): Check path for
17416         trailing slash.
17417
17418 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
17419
17420         * libc/include/sys/unistd.h: Add prototypes for
17421         fchmod, fchown, lchown.
17422
17423 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
17424
17425         * acinclude.m4: Changed release to 1.8.2.
17426         * aclocal.m4 configure doc/aclocal.m4 doc/configure
17427           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
17428           libc/machine/configure libc/machine/a29k/aclocal.m4
17429           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
17430           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
17431           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
17432           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
17433           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
17434           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
17435           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
17436           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
17437           libc/machine/i386/configure libc/machine/i960/aclocal.m4
17438           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
17439           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
17440           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
17441           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
17442           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
17443           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
17444           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
17445           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
17446           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
17447           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
17448           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
17449           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
17450           libc/machine/v850/configure libc/machine/w65/aclocal.m4
17451           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
17452           libc/machine/z8k/configure libc/sys/aclocal.m4
17453           libc/sys/aclocal.m4 libc/sys/configure
17454           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
17455           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
17456           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
17457           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
17458           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
17459           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
17460           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
17461           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
17462           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
17463           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
17464           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
17465           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
17466           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
17467           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
17468           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
17469           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
17470           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
17471           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
17472           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
17473           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
17474           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
17475           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
17476           libm/aclocal.m4 libm/configure: Regenerated.
17477
17478 2000-03-24  Nick Clifton  <nickc@cygnus.com>
17479
17480         * libc/sys/arm/syscalls.c: Fix compile time warnings.
17481         (do_AngelSWI): Add "cc" to list o registers clobbered.
17482
17483 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
17484
17485         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
17486         information to be clobbered by an Angel C library support syscall.
17487
17488 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
17489
17490         * libc/stdlib/envlock.c: Fixed comment typo.
17491
17492 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
17493
17494         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
17495         code to update nread as each character is processed instead
17496         of using buffer contents which throw away leading zeroes.
17497
17498 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
17499
17500         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
17501
17502 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
17503
17504         * libc/include/string.h: Include <sys/types.h>.
17505
17506 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
17507
17508         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
17509         with XSH5, not SVID.
17510
17511 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
17512
17513         * libc/include/string.h: Changed last argument back to ssize_t
17514         to make it compatible with XPG4 definition which is
17515         defined in <unistd.h>.  There is a conflict in the SVID 3
17516         and XPG4 definitions and newlib will settle with XPG4.
17517         * libc/string/swab.c: Ditto.
17518
17519 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
17520
17521         * libc/include/string.h: Changed last argument to size_t.
17522         * libc/string/swab.c: Changed last argument to size_t.
17523
17524 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
17525
17526         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
17527         (CHEWOUT_FILES): Added unlinkr.def.
17528         * libc/reent/Makefile.in: Rebuilt.
17529         * libc/sys.tex: Include unlinkr.def.
17530         * libc/reent/linkr.c (_unlink_r): Moved to...
17531         * libc/reent/unlinkr.c: ... new file.
17532
17533 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
17534
17535         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
17536         (CHEWOUT_FILES): Added swab.def.
17537         * libc/string/Makefile.in: Rebuilt.
17538         * libc/string/string.tex: Include swab.def.
17539         * libc/include/string.h (swab): Declare.
17540         * libc/string/swab.c: New file.
17541
17542 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
17543
17544         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
17545         (CHEWOUT_FILES): Added getw.def and putw.def.
17546         * libc/stdio/Makefile.in: Rebuilt.
17547         * libc/stdio/stdio.tex: Include getw.def and putw.def.
17548         * libc/stdio/getw.c: New file.
17549         * libc/stdio/putw.c: New file.
17550
17551 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
17552
17553         * libc/stdio/flags.c (__sflags): Added check that mode[1]
17554         is non-null before looking at mode[2].
17555
17556 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
17557
17558         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
17559         * libm/mathfp/sf_atan.c: Ditto.
17560
17561 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
17562
17563         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
17564
17565 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
17566
17567         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
17568         _DOUBLE_IS_32BITS.
17569
17570 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
17571
17572         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
17573         call prior to calling _VFPRINTF_R so reentrant data area is set.
17574         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
17575
17576 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
17577
17578         * libc/stdio/vfscanf.c (limits.h): #include.
17579         (MAX_LONG_LEN): #define.
17580         (__svfscanf): Handle floating point numbers with arbitrary amounts
17581         of leading zeroes.
17582
17583 2000-02-15  Nick Clifton  <nickc@cygnus.com>
17584
17585         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
17586         zero.  Set the blocksize to 1024/
17587
17588 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
17589
17590         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
17591         with line buffering.
17592
17593 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
17594
17595         * acinclude.m4: Changed include directory for winsup headers.
17596         * aclocal.m4 configure libc/aclocal.m4
17597           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
17598           libc/locale/Makefile.in libc/machine/aclocal.m4
17599           libc/machine/configure libc/machine/a29k/aclocal.m4
17600           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
17601           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
17602           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
17603           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
17604           libc/machine/fr30/configure
17605           libc/machine/h8300/aclocal.m4
17606           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
17607           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
17608           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
17609           libc/machine/i386/configure libc/machine/i960/aclocal.m4
17610           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
17611           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
17612           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
17613           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
17614           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
17615           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
17616           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
17617           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
17618           libc/machine/powerpc/configure
17619           libc/machine/sh/aclocal.m4
17620           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
17621           libc/machine/sparc/configure
17622           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
17623           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
17624           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
17625           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
17626           libc/misc/Makefile.in libc/posix/Makefile.in
17627           libc/reent/Makefile.in
17628           libc/signal/Makefile.in
17629           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
17630           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
17631           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
17632           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
17633           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
17634           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
17635           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
17636           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
17637           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
17638           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
17639           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
17640           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
17641           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
17642           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
17643           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
17644           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
17645           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
17646           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
17647           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
17648           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
17649           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
17650           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
17651           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
17652           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
17653           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
17654           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
17655           libm/configure: Regenerated.
17656
17657 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
17658
17659         * libc/stdlib/putenv_r.c (_putenv_r): New file.
17660         * libc/stdlib/strdup_r.c (_strdup_r): New file.
17661         * libc/include/string.h: Added _strdup_r.
17662         * libc/stdlib/putenv.c: Added call to reentrant version.
17663         * libc/stdlib/strdup.c: Ditto.
17664         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
17665         * libc/include/stdlib.h: Ditto.
17666         * libc/stdlib/Makefile.in: Regenerated.
17667         * libc/string/Makefile.in: Regenerated.
17668         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
17669         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
17670         management calls to reentrant versions.
17671         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
17672         * libc/stdlib/wctomb.c: Ditto.
17673         * libc/stdlib/mblen.c: Ditto.
17674         * libc/stdlib/mbstowcs.c: Ditto.
17675         * libc/stdlib/mbtowc.c: Ditto.
17676         * libc/stdlib/getenv.c: Ditto.
17677         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
17678         and _strdup_r.
17679
17680 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
17681
17682         patch from Corinna Vinschen <corinna@vinschen.de>
17683         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
17684
17685 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
17686
17687         * libm/mathfp/s_atangent.c: Fix exponent calculation.
17688         * libm/mathfp/s_ldexp.c: Ditto.
17689         * libm/mathfp/sf_atangent.c: Ditto.
17690         * libm/mathfp/sf_ldexp.c: Ditto.
17691
17692 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
17693
17694         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
17695         * libc/include/locale.h: define NULL to be 0.
17696
17697 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
17698
17699         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
17700         function.
17701
17702 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
17703
17704         * libc/machine/mn10300/setjmp.S: Handle am33.
17705
17706 1999-11-26  Nick Clifton  <nickc@cygnus.com>
17707
17708         * libc/sys/arm/syscalls.c: Add function prototypes.
17709         (stack_ptr): Move declaration before function definitions.
17710
17711 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
17712
17713         * NEWS: Updated version information.
17714         * README: Ditto.
17715
17716 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
17717
17718         * libc/machine/i386/strchr.S: Fixed alignment test.
17719
17720 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
17721
17722         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
17723
17724 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
17725
17726         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
17727         ensuring that there is space between the two.
17728
17729 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
17730
17731         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
17732         only.
17733
17734 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
17735
17736         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
17737         section
17738
17739 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
17740
17741         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
17742         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
17743
17744 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
17745         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
17746           per POSIX 1003.1b.
17747         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
17748           per POSIX 1003.1b.
17749
17750 1999-09-13  DJ Delorie  <dj@cygnus.com>
17751
17752         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
17753         also.
17754
17755 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
17756
17757         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
17758         also note BUFSIZ as its size.
17759
17760 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
17761
17762         * configure.host: Corrected feature defines for RTEMS.
17763         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
17764         * libc/include/sys/stat.h: mkfifo() should take const path arg.
17765         * libc/include/sys/unistd.h: pathconf() should take const path arg.
17766           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
17767           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
17768           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
17769           _PC_PRIO_IO, and _PC_SYNC_IO.
17770         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
17771         * libc/machine/m68k/Makefile.in: Regenerated.
17772         * libc/machine/m68k/strcpy.c: New file.
17773         * libc/machine/m68k/strlen.c: New file.
17774         * libc/stdio/tmpnam.c: Always make the returned name usable.
17775         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
17776         * libc/sys/rtems/sys/dirent.h: New file.
17777         * libc/sys/rtems/sys/types.h: Added dev_t.
17778
17779 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
17780
17781         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
17782
17783 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
17784
17785         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
17786         my patch.
17787
17788 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
17789
17790         patch from Jeff Johnston <jjohnstn@cygnus.com>
17791         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
17792         buffer is not in a useful state.
17793
17794 1999-09-01  Nick Clifton  <nickc@cygnus.com>
17795
17796         * libc/sys/arm/syscalls.c (_link): Add stub.
17797
17798 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
17799
17800         * ftell.c (ftell): Use actual position within buffer for text mode.
17801         * findfp.c (std): Initialize ptr->_bf._size.
17802
17803 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
17804
17805         * libc/include/sys/unistd.h: Add nice() declaration.
17806
17807 1999-08-09  Nick Clifton  <nickc@cygnus.com>
17808
17809         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
17810         declare as a thumb function so that the disassembler will see the
17811         mode change.
17812
17813 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
17814
17815         * libc/reent/reent.tex: Updated list of reentrant functions.
17816
17817 1999-07-09  Michael Meissner  <meissner@cygnus.com>
17818
17819         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
17820
17821 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
17822
17823         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
17824         separate file.
17825         * libc/stdio/snprintf.c: New file.
17826         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
17827         separate file.
17828         * libc/stdio/vsnprintf.c: New file.
17829         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
17830         * libc/stdio/Makefile.in: Regenerated.
17831
17832 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
17833
17834         Patch submitted by Egor Duda <deo@logos-m.ru>:
17835         * libc/include/stdio.h: Add declarations for *nprintf.
17836         * libc/stdio/sprintf.c (snprintf): New function.
17837         (_snprintf_r): New function.
17838         * libc/stdio/vsprintf.c (vsnprintf): New function.
17839         (_vnsprintf_r): New function.
17840
17841 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17842
17843         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
17844         * libm/Makefile.am (stmp-targetdep): Ditto.
17845         * libc/Makefile.in: Regenerated.
17846         * libm/Makefile.in: Ditto.
17847
17848 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17849
17850         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
17851         * libm/Makefile.am (stmp-targetdep): Ditto.
17852         * libc/Makefile.in: Regenerated.
17853         * libm/Makefile.in: Ditto.
17854
17855 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
17856
17857         * Makefile.am: Removed dependencies on all-recursive and added "."
17858         to the SUBDIRS list to prevent infinite recursion from occurring.
17859         Also removed any references to EXTRA_DATA.
17860         * libc/Makefile.am: Ditto.
17861         * libc/machine/Makefile.am: Ditto.
17862         * libc/machine/i386/Makefile.am: Ditto.
17863         * libm/Makefile.am: Ditto.
17864         * libc/sys/Makefile.am: Ditto.
17865         * Makefile.in: Regenerated.
17866         * aclocal.m4: Ditto.
17867         * configure: Ditto.
17868         * doc/Makefile.in: Ditto.
17869         * doc/aclocal.m4: Ditto.
17870         * doc/configure: Ditto.
17871         * libc/Makefile.in: Ditto.
17872         * libc/aclocal.m4: Ditto.
17873         * libc/configure: Ditto.
17874         * libc/machine/Makefile.in: Ditto.
17875         * libc/machine/aclocal.m4: Ditto.
17876         * libc/machine/configure: Ditto.
17877         * libc/machine/mn10300/Makefile.in: Ditto.
17878         * libc/machine/mn10300/aclocal.m4: Ditto.
17879         * libc/machine/mn10300/configure: Ditto.
17880         * libc/sys/Makefile.in: Ditto.
17881         * libc/sys/aclocal.m4: Ditto.
17882         * libc/sys/configure: Ditto.
17883         * libm/Makefile.in: Ditto.
17884         * libm/aclocal.m4: Ditto.
17885         * libm/configure: Ditto.
17886
17887 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
17888
17889         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
17890
17891 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
17892
17893         * libc/include/stdlib.h: Add reentrant routines.
17894         * libc/stdlib/Makefile.am: Add reentrant routines.
17895         * libc/stdlib/Makefile.in: Ditto.
17896         * libc/stdlib/envlock.c: New file.
17897         * libc/stdlib/envlock.h: New file.
17898         * libc/stdlib/getenv.c: Modify to call reentrant routine.
17899         * libc/stdlib/getenv_r.c: New file.
17900         * libc/stdlib/mblen.c: Modify to call reentrant routine.
17901         * libc/stdlib/mblen_r.c: New file.
17902         * libc/stdlib/setenv.c: Modify to call reentrant routine.
17903         * libc/stdlib/setenv_r.c: New file.
17904         * libc/stdlib/stdlib.tex: Add reentrant routines.
17905
17906 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
17907
17908         * libc/include/sys/types.h: Define __MS_types__ whenever
17909         cygwin or win32.
17910
17911 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
17912
17913         * libc/include/machine/ieeefp.h: Always default to little
17914         endian if Windows, regardless of architecture.
17915         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
17916         regardless of architecture.
17917
17918 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
17919
17920         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
17921         _WIN32 isn't defined.
17922
17923 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17924
17925         * libm/common/s_rint.c (rint): Add volatile qualifier for
17926         intermediate value w.
17927         * libm/common/sf_rint.c (rintf): Ditto.
17928
17929 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17930
17931         * libc/sys/arm/syscalls.c (remap_handle): Added check to
17932         ensure that std streams are initialized before being referenced.
17933
17934 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
17935
17936         * README: Update reference to newlib@cygnus.com new
17937         newlib@sourceware.cygnus.com address.
17938
17939 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
17940
17941         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
17942         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
17943         defined, even if _WIN32 isn't defined.
17944
17945 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
17946
17947         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
17948
17949 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
17950
17951         * libc/include/sys/reent.h: Change Long and ULong to __Long and
17952         __ULong.
17953         * libc/stdlib/dtoa.c: Ditto.
17954         * libc/stdlib/mprec.c: Ditto.
17955         * libc/stdlib/mprec.h: Ditto.
17956         * libc/stdlib/strtod.c: Ditto.
17957
17958 1999-04-21  Nick Clifton  <nickc@cygnus.com>
17959
17960         * configure.host (mcore): Remove mcore machine directory.
17961
17962 1999-04-18  Nick Clifton  <nickc@cygnus.com>
17963
17964         * libc/include/machine/ieeefp.h: Add support for mcore target.
17965         * libc/include/machine/setjmp.h: Add support for mcore target.
17966         * configure.host: Add support for mcore target.
17967
17968 1999-04-13  Mark Salter  <msalter@cygnus.com>
17969
17970         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
17971         * libc/sys/arm/syscalls.c: Added isatty.
17972
17973 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17974
17975         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
17976         insert zeroes after significant digits.
17977
17978 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17979
17980         * libc/stdio/vfprintf.c (cvt): Changed floating point
17981         cvt routine to use union used by dtoa to properly determine
17982         if the sign bit is on or not.
17983         * libc/stdio/vfieeefp.h: New file
17984
17985 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17986
17987         * aclocal.m4: Regenerated.
17988         * configure: Regenerated.
17989
17990 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17991
17992         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
17993         f_tanf reference.
17994         * libc/machine/i386/Makefile.in: Regenerated.
17995
17996 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
17997
17998         * acinclude.m4: Changed to work with new automake.
17999         * configure: Regenerated.
18000         * libc/machine/i386/aclocal.m4: Regenerated.
18001         * libc/machine/i386/configure: Regenerated.
18002
18003 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
18004
18005         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
18006         for telldir() and seekdir().  Rename unused structure element
18007         for use with these two routines.
18008
18009 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
18010
18011         * libc/time/mktime.c (validate_structure): Multiple fixes to
18012         code to handle cases where input fields are outside valid ranges.
18013         * libc/stdlib/div.c (div): Modified invalid rounding check.
18014         * libc/stdlib/ldiv.c (ldiv): Ditto.
18015
18016 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
18017
18018         * libc/machine/i386/memcpy.S: Performance rewrite.
18019         * libc/machine/i386/memmove.S: Ditto.
18020         * libc/machine/i386/i386mach.h: Added more register definitions.
18021         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
18022         option used.
18023         * libc/include/machine/fastmath.h: Add definitions for x86
18024         fast-math routines.
18025
18026 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
18027
18028         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
18029
18030 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
18031
18032         Adjust newlib headers for new Cygwin Win32 API header files:
18033         * libc/include/sys/time.h: Check _WINSOCK_H rather than
18034         _GNU_H_WINDOWS32_SOCKETS.
18035         * libc/include/sys/types.h: Ditto.
18036
18037 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
18038
18039         *include/sys/reent.h: Add checks for size of Bigint element Long.
18040         *libc/dtoa.c: Change routines to use generic Long type.
18041         *libc/mprec.c: Change routines to use generic Long type.
18042         *libc/mprec.h: Change routines to use generic Long type.
18043
18044 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
18045
18046         * libc/Makefile.am: Add .def files.
18047         * libc/Makefile.in: Regenerate.
18048         * libc/e_acosh.c: Documentation update.
18049         * libc/e_atanh.c: Documentation update.
18050         * libc/e_hypot.c: Documentation update.
18051         * libc/e_remainder.c: Documentation update.
18052         * libc/er_lgamma.c: Documentation update.
18053         * libc/mathfp.tex: Documentation update.
18054         * libc/s_acos.c: Documentation update.
18055         * libc/s_atan.c: Documentation update.
18056         * libc/s_atan2.c: Documentation update.
18057         * libc/s_cosh.c: Documentation update.
18058         * libc/s_fmod.c: Documentation update.
18059         * libc/s_isnan.c: Documentation update.
18060         * libc/s_log10.c: Documentation update.
18061         * libc/s_pow.c: Documentation update.
18062         * libc/w_jn.c: Documentation update.
18063
18064 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
18065
18066         * aclocal.m4: Regenerate.
18067         * configure: Regenerate.
18068
18069 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
18070
18071         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
18072         to return 1 if user specified return code is 0.
18073         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
18074
18075 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
18076
18077         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
18078         to save the return address.  Fixed longjmp to return to the original
18079         calling address of setjmp and to return the user specified return code
18080         rather than default to 1.
18081         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
18082
18083 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
18084
18085         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
18086
18087 1999-02-10  Nick Clifton  <nickc@cygnus.com>
18088
18089         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
18090         volatile so that its assignments will not be discarded.
18091
18092 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
18093
18094         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
18095         be __STRICT_ANSI__ which is generated by compiler.
18096         * libc/include/ctype.h: Ditto.
18097         * libc/include/math.h: Ditto.
18098         * libc/include/stdio.h: Ditto.
18099         * libc/include/stdlib.h: Ditto.
18100         * libc/include/string.h: Ditto.
18101         * libc/include/sys/signal.h: Ditto.
18102
18103 1999-02-08  Nick Clifton  <nickc@cygnus.com>
18104
18105         * configure.host: Add support for StrongARM target.
18106
18107 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
18108
18109         * libc/string/strncpy.c (strncpy): Removed redundant code
18110         that was copying bytes if data unaligned.
18111
18112 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
18113
18114         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
18115         mbstowcs.def, and wcstombs.def.
18116
18117 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
18118
18119         * libc/include/sys/errno.h: Add Cygwin errno.
18120         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
18121         is specified.
18122
18123 1999-01-29  Nick Clifton  <nickc@cygnus.com>
18124
18125         * libc/sys/arm/syscalls.c: Move C library functions into seperate
18126         file.
18127
18128         * libc/sys/arm/libcfunc.c: New file containing C library functions
18129         from syscalls.c
18130
18131         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
18132         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
18133
18134
18135 1999-01-27  Michael Meissner  <meissner@cygnus.com>
18136
18137         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
18138         type, and cut size in half so that the jmp_buf array is guaranteed
18139         to be aligned on a 64-bit boundary.
18140
18141 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
18142
18143         * libc/string/strings.tex: Added information about
18144         strcasecmp and strncasecmp.
18145         * libc/stdlib/stdlib.tex: Added missing information
18146         about mblen, mbstowcs, and wcstombs.
18147         * libc/string/strchr.c: Changed how mask is built to use
18148         shift operators so register will be used instead of storage.
18149
18150 1999-01-22  DJ Delorie  <dj@cygnus.com>
18151
18152         * libc/include/stdlib.h: don't use dllimport if we're building
18153         newlib, since it's inside cygwin.dll
18154
18155 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
18156
18157         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
18158         _ctype_ under cygwin.
18159
18160 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
18161
18162         * include/stdlib.h: Fix typo from previous checkin.
18163
18164 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
18165
18166         * include/ctype.h: Use __declspec(dllimport) method for exporting
18167         variable from cygwin DLL.
18168         * include/time.h: Ditto.
18169         * sys/errno.h: Ditto.
18170         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
18171         * libc/locale/locale.c: Use __declspec(dllexport) method for
18172         exporting variable from cygwin DLL.
18173
18174 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
18175
18176         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
18177         access of bogus pointer will result in SIGSEGV.
18178
18179 1999-01-07  Nick Clifton  <nickc@cygnus.com>
18180
18181         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
18182         of an underscore prefix to function names.
18183
18184 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
18185
18186         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
18187         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
18188
18189 1998-12-31  Michael Meissner  <meissner@cygnus.com>
18190
18191         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
18192         to `%' if not already defined.
18193
18194 1998-12-30  Michael Meissner  <meissner@cygnus.com>
18195
18196         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
18197         arguments const char *, not char *.
18198         * libc/include/stdio.h (_tempnam_r): Ditto.
18199
18200         * libc/include/sys/reent.h (struct _reent): The _sig_func type
18201         points to a function taking an integer, not void.
18202
18203 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
18204
18205         * configure.host: Add a define for Cygwin builds.
18206         * libc/include/ctype.h: Don't use dll imported variables in newlib.
18207
18208 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
18209
18210         * libc/include/ctype.h: Define _ctype_ as dll imported variable
18211         for use with Cygwin.
18212         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
18213         dll imported variables for use with Cygwin.
18214         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
18215         as a dll imported variable for Cygwin.
18216
18217 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
18218
18219         * libc/include/sys/unistd.h: Add proto for getpass.
18220
18221 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
18222
18223         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
18224         alphasort.
18225
18226 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
18227
18228         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
18229         not posix_path_list_p.
18230
18231 1998-12-15  Nick Clifton  <nickc@cygnus.com>
18232
18233         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
18234         a signed int.
18235
18236 1998-12-13  Nick Clifton  <nickc@cygnus.com>
18237
18238         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
18239
18240 1998-12-12  Nick Clifton  <nickc@cygnus.com>
18241
18242         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
18243         <msalter@cygnus.com>
18244         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
18245         * libc/machine/fr30/Makefile.in: Regenerated.
18246
18247 1998-12-11  Nick Clifton  <nickc@cygnus.com>
18248
18249         * configure.host: Remove use of libc/sys for FR30 port.
18250         * libc/sys/fr30: Remove directory (replaced by libgloss).
18251
18252 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
18253
18254         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
18255         * libc/string/strncat.c (ALIGNED): Ditto.
18256
18257 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
18258
18259         * libc/include/sys/time.h: include sys/types.h
18260
18261 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18262
18263         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
18264         comparison found when checking word at a time.
18265
18266 1998-12-04  Nick Clifton  <nickc@cygnus.com>
18267
18268         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
18269
18270 1998-12-03  Nick Clifton  <nickc@cygnus.com>
18271
18272         * libc/sys/fr30/syscalls.c (_times): New function stub.
18273
18274 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18275
18276         * configure.host (mach_add_setjmp): Replaced mach_add_objs
18277         with mach_add_setjmp flag which indicates if setjmp should
18278         be added to the machine directory objects.
18279         * acinclude.m4: Removed reference to mach_add_objs.
18280         * aclocal.m4: Regenerated.
18281         * Makefile.in: Regenerated.
18282         * configure: Regenerated.
18283         * libc/aclocal.m4: Regenerated.
18284         * libc/Makefile.in: Regenerated.
18285         * libc/configure: Regenerated.
18286         * libc/machine/aclocal.m4: Regenerated.
18287         * libc/machine/Makefile.in: Regenerated.
18288         * libc/machine/configure: Regenerated.
18289         * libc/machine/i386/aclocal.m4: Regenerated.
18290         * libc/machine/i386/Makefile.am: Altered to selectively add
18291         setjmp.S to the src files list.
18292         * libc/machine/i386/Makefile.in: Regenerated.
18293         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
18294         * libc/machine/i386/configure: Regenerated.
18295
18296 1998-12-02  Nick Clifton  <nickc@cygnus.com>
18297
18298         * libc/sys/fr30/crt0.s (_start): Fix function names.
18299
18300         * libc/machine/fr30: New directory
18301         * libc/machine/fr30/Makefile.am: New file.
18302         * libc/machine/fr30/Makefile.in: New generated file.
18303         * libc/machine/fr30/configure.in: New file.
18304         * libc/machine/fr30/configure: New generated file.
18305         * libc/machine/fr30/aclocal.m4: New generated file.
18306         * libc/sys/fr30/Makefile.am: New file.
18307         * libc/sys/fr30/Makefile.in: New generated file.
18308         * libc/sys/fr30/configure.in: New file.
18309         * libc/sys/fr30/configure: New generated file.
18310         * libc/sys/fr30/syscalls.c: New file.
18311
18312 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
18313
18314         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
18315
18316 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
18317
18318         * libc/time/strftime.c (strftime): Also handle %y for years before
18319         1900.
18320
18321 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
18322
18323         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
18324         UNIX convention.  Perform tolower on characters before comparing
18325         them rather than use toupper.
18326         * libc/string/strncasecmp.c (strncasecmp): Ditto.
18327
18328 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18329
18330         * configure.host: Added using i386 machine directory
18331         for all x86 cross-compiler and configuring
18332         which added object files to use via new "mach_add_objs" variable.
18333         * configure: Regenerated.
18334         * libc/configure: Regenerated.
18335         * libc/Makefile.in: Regenerated.
18336         * libc/aclocal.m4: Regenerated.
18337         * libc/ctype/Makefile.in: Regenerated.
18338         * libc/errno/Makefile.in: Regenerated.
18339         * libc/locale/Makefile.in: Regenerated.
18340         * libc/machine/Makefile.in: Regenerated.
18341         * libc/machine/aclocal.m4: Regenerated.
18342         * libc/machine/configure: Regenerated.
18343         * libc/posix/Makefile.in: Regenerated.
18344         * libc/reent/Makefile.in: Regenerated.
18345         * libc/signal/Makefile.in: Regenerated.
18346         * libc/stdio/Makefile.in: Regenerated.
18347         * libc/stdlib/Makefile.in: Regenerated.
18348         * libc/string/Makefile.in: Regenerated.
18349         * libc/string/memmove.c: Optimized code to use memcpy
18350         logic when performing a non-destructive copy.
18351         * libc/string/strncmp.c: Altered code to allow building
18352         optimized for size or speed.
18353         * libc/syscalls/Makefile.in: Regenerated.
18354         * libc/time/Makefile.in: Regenerated.
18355         * libc/unix/Makefile.in: Regenerated.
18356         * libc/machine/i386/Makefile.am: Added new files and reference
18357         to "mach_add_objs" to indicate optional object files.
18358         * libc/machine/i386/Makefile.in: Regenerated.
18359         * libc/machine/i386/aclocal.m4: Regenerated.
18360         * libc/machine/i386/configure: Regenerated.
18361         * libc/machine/i386/memchr.S: New file that implements
18362         function in Intel assembler.
18363         * libc/machine/i386/memcmp.S: ditto.
18364         * libc/machine/i386/memcpy.S: ditto.
18365         * libc/machine/i386/memmove.S: ditto.
18366         * libc/machine/i386/memset.S: ditto.
18367         * libc/machine/i386/strchr.S: ditto.
18368         * libc/machine/i386/strlen.S: ditto.
18369         * libc/machine/i386/f_atan2.S: New file that implements
18370         fast version of math function to be used by compiler when
18371         --ffast_math compile option is used.
18372         * libc/machine/i386/f_atan2f.S: ditto.
18373         * libc/machine/i386/f_exp.c: ditto.
18374         * libc/machine/i386/f_expf.c: ditto.
18375         * libc/machine/i386/f_frexp.S: ditto.
18376         * libc/machine/i386/f_frexpf.S: ditto.
18377         * libc/machine/i386/f_ldexp.S: ditto.
18378         * libc/machine/i386/f_ldexpf.S: ditto.
18379         * libc/machine/i386/f_log.S: ditto.
18380         * libc/machine/i386/f_logf.S: ditto.
18381         * libc/machine/i386/f_log10.S: ditto.
18382         * libc/machine/i386/f_log10f.S: ditto.
18383         * libc/machine/i386/f_math.h: New file.
18384         * libc/machine/i386/f_pow.c: ditto.
18385         * libc/machine/i386/f_powf.S: ditto.
18386         * libc/machine/i386/f_tan.S: ditto.
18387         * libc/machine/i386/f_tan.S: ditto.
18388         * libc/machine/i386/i386mach.h: New file.
18389
18390 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
18391
18392         patch from Mumit Khan <khan@xraylith.wisc.edu>
18393         * libc/include/stdio.h (tempnam): Add prototype.
18394         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
18395         (tempnam): Adhere to prototype.
18396
18397 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
18398
18399         * Makefile.am: Add default for AR_FLAGS.
18400         * Makefile.in: Regenerate.
18401
18402 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
18403
18404         * libc/include/time.h: move __cplusplus wrapper after includes
18405         * libc/include/sys/time.h: ditto.  If Cygwin, include
18406         sys/select.h.
18407         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
18408
18409 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
18410
18411         * libc/time/strftime.c (strftime): Handle %y after year 2000.
18412
18413 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
18414
18415         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
18416         abnormnal end-of-crt0 marker.
18417
18418 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
18419
18420         * libc/sys/fr30/crt0.s: New file/directory.
18421         * libc/include/machine/setjmp.h: Add FR30 target.
18422         * libc/include/machine/ieeefp.h: Add FR30 target.
18423         * configure.host: Add FR30 target.
18424
18425 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
18426
18427         * libm/math: Files that are duplicated in common directory removed.
18428         * libm/math/fdlibm.h: Removed.
18429         * libm/math/s_cbrt.c: Removed.
18430         * libm/math/s_copysign.c: Removed.
18431         * libm/math/s_expm1.c: Removed.
18432         * libm/math/s_finite.c: Removed.
18433         * libm/math/s_ilogb.c: Removed.
18434         * libm/math/s_infinity.c: Removed.
18435         * libm/math/s_lib_ver.c: Removed.
18436         * libm/math/s_log1p.c: Removed.
18437         * libm/math/s_logb.c: Removed.
18438         * libm/math/s_matherr.c: Removed.
18439         * libm/math/s_modf.c: Removed.
18440         * libm/math/s_nan.c: Removed.
18441         * libm/math/s_nextafter.c: Removed.
18442         * libm/math/s_rint.c: Removed.
18443         * libm/math/s_scalbn.c: Removed.
18444         * libm/math/sf_cbrt.c: Removed.
18445         * libm/math/sf_copysign.c: Removed.
18446         * libm/math/sf_expm1.c: Removed.
18447         * libm/math/sf_finite.c: Removed.
18448         * libm/math/sf_ilogb.c: Removed.
18449         * libm/math/sf_infinity.c: Removed.
18450         * libm/math/sf_log1p.c: Removed.
18451         * libm/math/sf_logb.c: Removed.
18452         * libm/math/sf_modf.c: Removed.
18453         * libm/math/sf_nan.c: Removed.
18454         * libm/math/sf_nextafter.c: Removed.
18455         * libm/math/sf_rint.c: Removed.
18456         * libm/math/sf_scalbn.c: Removed.
18457         * libm/math/Makefile.am: Removed references to deleted files (above).
18458         * libm/math/Makefile.in: Regenerated.
18459         * libm/Makefile.am: Added common directory to math.
18460         * libm/Makefile.in: Regenerated.
18461
18462 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
18463
18464         * libm/mathfp: Add non-ANSI functions.
18465         * libm/mathfp/e_acosh.c acosh(): New file.
18466         * libm/mathfp/e_atanh.c atanh(): New file.
18467         * libm/mathfp/e_hypot.c hypot(): New file.
18468         * libm/mathfp/e_j0.c j0(): New file.
18469         * libm/mathfp/e_j1.c j1(): New file.
18470         * libm/mathfp/e_remainder.c remainder(): New file.
18471         * libm/mathfp/e_scalb.c scalb(): New file.
18472         * libm/mathfp/ef_acosh.c acoshf(): New file.
18473         * libm/mathfp/ef_atanh.c atanhf(): New file.
18474         * libm/mathfp/ef_hypot.c hypotf(): New file.
18475         * libm/mathfp/ef_j0.c j0f(): New file.
18476         * libm/mathfp/ef_j1.c j1f(): New file.
18477         * libm/mathfp/ef_remainder.c remainderf(): New file.
18478         * libm/mathfp/ef_scalb.c scalbf(): New file.
18479         * libm/mathfp/er_gamma.c gamma_r: New file.
18480         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
18481         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
18482         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
18483         * libm/mathfp/w_cabs.c cabs(): New file.
18484         * libm/mathfp/w_drem.c drem(): New file.
18485         * libm/mathfp/w_jn.c jn(): New file.
18486         * libm/mathfp/wf_cabs.c cabsf(): New file.
18487         * libm/mathfp/wf_drem.c dremf(): New file.
18488         * libm/mathfp/wf_jn.c jnf(): New file.
18489
18490 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
18491
18492         * libc/sys/cygwin32: remove directory and contents
18493         * libc/sys/cygwin: and add back, losing the "32".
18494         * configure.host: check for cygwin* instead of cygwin32.
18495         * acinclude.m4: ditto.
18496         * aclocal.m4: regenerate with aclocal
18497         * configure: regenerate with autoconf
18498
18499 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
18500
18501         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
18502         for length
18503
18504 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18505
18506         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
18507         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
18508         to make rand/srand, strtok, asctime, localtime, w_gamma,
18509         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
18510         time.h to bring in struct tm definition.
18511         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
18512         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
18513         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
18514         instead of static variable.
18515         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
18516         struct reent instead of static variable.
18517         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
18518         struct reent instead of static variable.
18519         * libm/math/Makefile.am: Removed s_signgam.o.
18520         * libm/math/Makefile.in: Regenerated.
18521         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
18522         struct reent instead of global variable 'signgam'.
18523         * libm/math/w_lgamma.c (lgamma): Likewise.
18524         * libm/math/wf_gamma.c (gammaf): Likewise.
18525         * libm/math/wf_lgamma.c (lgammaf): Likewise.
18526         * libm/math/s_signgam.c: Removed.
18527         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
18528         to be const.
18529         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
18530         to be const.
18531         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
18532         libc/include/reent.h.
18533         * libc/reent/Makefile.in: Regenerated.
18534         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
18535         to be const.
18536         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
18537         'JIS_action_table' to be const.
18538         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
18539
18540 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
18541
18542         * acinclude.m4:  $with_target_subdir should default to '.'
18543         or confusion results when configuring in same directory as sources.
18544         * Regenerate all aclocal.m4 and configure files.
18545
18546 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18547
18548         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
18549         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
18550         for platforms where sizeof(size_t) < sizeof(long) via
18551         SIZE_T_SMALLER_THAN_LONG macro.
18552
18553 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18554
18555         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
18556         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
18557         which sets _CLOCKS_PER_SEC_ for selected machines.
18558         * libc/include/machine/time.h: New file.
18559
18560 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18561
18562         * libc/syscalls/sysexecve.c: New file.
18563         * libc/syscalls/sysgettod.c: New file.
18564         * libc/syscalls/systimes.c: New file.
18565         * libc/syscalls/Makefile.am: Added new objects.
18566         * libc/syscalls/Makefile.in: Regenerated.
18567         * libc/include/_syslist.h (_execve): Moved define in file.
18568         * libc/include/reent.h:  Added _execve_r declaration.
18569         * libc/Makefile.in: Regenerated.
18570         * libc/ctype/Makefile.in: Regenerated.
18571         * libc/errno/Makefile.in: Regenerated.
18572         * libc/locale/Makefile.in: Regenerated.
18573         * libc/machine/Makefile.in: Regenerated.
18574         * libc/misc/Makefile.in: Regenerated.
18575         * libc/posix/Makefile.in: Regenerated.
18576         * libc/reent/Makefile.in: Regenerated.
18577         * libc/reent/execr.c (_execve_r): Added _execve_r function.
18578         * libc/signal/Makefile.in: Regenerated.
18579         * libc/stdio/Makefile.in: Regenerated.
18580         * libc/time/Makefile.in: Regenerated.
18581         * libc/unix/Makefile.in: Regenerated.
18582         * libm/mathfp/Makefile.in: Regenerated.
18583
18584 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18585
18586         * libc/string/Makefile.in: Regenerated.
18587         * libc/string/memchr.c (memchr): Moved code to reduce object size.
18588         * libc/string/memcpy.c (memcpy): Ditto.
18589         * libc/string/memcmp.c (memcmp): Ditto.
18590         * libc/string/memset.c (memset): Ditto.
18591         * libc/string/strchr.c (strchr): Ditto.
18592         * libc/string/strcmp.c (strcmp): Ditto.
18593         * libc/string/strcpy.c (strcpy): Ditto.
18594         * libc/string/strlen.c (strlen): Ditto.
18595
18596 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18597
18598         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
18599         to generate aclocal.m4.
18600         * libm/Makefile.in: Regenerated.
18601         * libm/aclocal.m4: Regenerated.
18602         * libm/configure: Regenerated.
18603         * libm/math/Makefile.in: Regenerated.
18604         * libm/mathfp/Makefile.in: Regenerated.
18605
18606 1998-09-25  Mark Salter  <msalter@cygnus.com>
18607
18608         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
18609         by adding leading and trailing underscores to symbol names.
18610
18611 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
18612
18613         * Makefile.in: Add default for AR_FLAGS.
18614
18615 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
18616
18617         patch from ian@airs.com (Ian Taylor):
18618         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
18619         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
18620         is needed for detecting the build machine.  Required for
18621         cygwin native builds.
18622
18623         * Regenerate all aclocal.m4 and configure files.
18624
18625 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
18626
18627         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
18628         used to start with LC.
18629
18630 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18631
18632         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
18633         (longjmp): Likewise.
18634
18635 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18636
18637         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
18638         the test for small number of bytes.
18639
18640 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
18641
18642         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
18643         math library that uses floating point algorithms instead of the old
18644         libm.
18645         * Makefile.in: Regenerate with automake version 1.3b.
18646         * configure: Rebuild.
18647         * libm/Makefile.in: Regenerate with automake version 1.3b.
18648         * libm/aclocal.m4: Regenerate.
18649         * libm/configure: Rebuild.
18650         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
18651         * libm/acinclude.m4: Define macros for configure.in.
18652         * libm/config.h.in: Generate.
18653         * libm/mathfp/Makefile.am: New file.
18654         * libm/mathfp/Makefile.in: Generate.
18655         * libm/mathfp/s_acos.c (acos): New file.
18656         * libm/mathfp/s_asin.c (asin): New file.
18657         * libm/mathfp/s_asine.c (asine): New file.
18658         * libm/mathfp/s_atan.c (atan): New file.
18659         * libm/mathfp/s_atan2.c (atan2): New file.
18660         * libm/mathfp/s_atangent.c (atangent): New file.
18661         * libm/mathfp/s_ceil.c (ceil): New file.
18662         * libm/mathfp/s_copysign.c (copysign): New file.
18663         * libm/mathfp/s_cos.c (cos): New file.
18664         * libm/mathfp/s_cosh.c (cosh): New file.
18665         * libm/mathfp/s_exp.c (exp): New file.
18666         * libm/mathfp/s_fabs.c (fabs): New file.
18667         * libm/mathfp/s_finite.c (finite): New file.
18668         * libm/mathfp/s_floor.c (floor): New file.
18669         * libm/mathfp/s_fmod.c (fmod): New file.
18670         * libm/mathfp/s_frexp.c (frexp): New file.
18671         * libm/mathfp/s_infconst.c: New file.
18672         * libm/mathfp/s_isinf (isinf).c: New file.
18673         * libm/mathfp/s_isnan.c (isnan): New file.
18674         * libm/mathfp/s_ispos.c (ispos): New file.
18675         * libm/mathfp/s_ldexp.c (ldexp): New file.
18676         * libm/mathfp/s_log.c (log): New file.
18677         * libm/mathfp/s_log10.c (log10): New file.
18678         * libm/mathfp/s_logarithm.c (logarithm): New file.
18679         * libm/mathfp/s_mathcnst.c: New file.
18680         * libm/mathfp/s_modf (modf).c: New file.
18681         * libm/mathfp/s_numtest.c (numtest): New file.
18682         * libm/mathfp/s_pow.c (pow): New file.
18683         * libm/mathfp/s_scalbn.c (scalbn): New file.
18684         * libm/mathfp/s_sin (sin).c: New file.
18685         * libm/mathfp/s_sine.c (sine): New file.
18686         * libm/mathfp/s_sineh.c (sineh): New file.
18687         * libm/mathfp/s_sinf.c (sinf): New file.
18688         * libm/mathfp/s_sinh.c (sinh): New file.
18689         * libm/mathfp/s_sqrt.c (sqrt): New file.
18690         * libm/mathfp/s_tan.c (tan): New file.
18691         * libm/mathfp/s_tanh.c (tanh): New file.
18692         * libm/mathfp/sf_acos.c (acosf): New file.
18693         * libm/mathfp/sf_asin.c (asinf): New file.
18694         * libm/mathfp/sf_asine.c (asinef): New file.
18695         * libm/mathfp/sf_atan.c (atanf): New file.
18696         * libm/mathfp/sf_atan2.c (atan2f): New file.
18697         * libm/mathfp/sf_atangent.c (atangent): New file.
18698         * libm/mathfp/sf_ceil.c (ceilf): New file.
18699         * libm/mathfp/sf_copysign.c (copysignf): New file.
18700         * libm/mathfp/sf_cos.c (cosf): New file.
18701         * libm/mathfp/sf_cosh.c (coshf): New file.
18702         * libm/mathfp/sf_exp.c (expf): New file.
18703         * libm/mathfp/sf_fabs.c (fabsf): New file.
18704         * libm/mathfp/sf_finite.c (finitef): New file.
18705         * libm/mathfp/sf_floor.c (floorf): New file.
18706         * libm/mathfp/sf_fmod.c (fmodf): New file.
18707         * libm/mathfp/sf_frexp.c (frexpf): New file.
18708         * libm/mathfp/sf_isinf.c (isinff): New file.
18709         * libm/mathfp/sf_isnan.c (isnanf): New file.
18710         * libm/mathfp/sf_ispos.c (isposf): New file.
18711         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
18712         * libm/mathfp/sf_log.c (logf): New file.
18713         * libm/mathfp/sf_log10.c (log10f): New file.
18714         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
18715         * libm/mathfp/sf_modf.c (modff): New file.
18716         * libm/mathfp/sf_numtest.c (numtestf): New file.
18717         * libm/mathfp/sf_pow.c (powf): New file.
18718         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
18719         * libm/mathfp/sf_sin.c (sinf): New file.
18720         * libm/mathfp/sf_sine.c (sinef): New file.
18721         * libm/mathfp/sf_sineh.c (sinehf): New file.
18722         * libm/mathfp/sf_sinh.c (sinhf): New file.
18723         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
18724         * libm/mathfp/sf_tan.c (tanf): New file.
18725         * libm/mathfp/sf_tanh.c (tanhf): New file.
18726         * libm/mathfp/zmath.h: New file.
18727
18728 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18729
18730         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
18731         exit if it has been overwritten by pre-fetching in delay slot.
18732
18733 1998-09-01  Michael Meissner  <meissner@cygnus.com>
18734
18735         * Makefile.am (tooldir): Add in host_alias, so that multilib
18736         libraries are installed in the directory the compiler looks in.
18737         * Makefile.in: Regenerate.
18738
18739         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
18740
18741 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18742
18743         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
18744         ahead of test for number of bytes being moved.
18745
18746 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
18747
18748         * libc/include/sys/unistd.h: Nothing special needed for
18749         _exit under cygwin.
18750
18751 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
18752
18753         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
18754         conform to user label naming conventions.
18755
18756 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
18757
18758         * libc/sys/cygwin32/sys/utime.h: variable names in
18759         protos should start with two leading underscores
18760         * libc/include/string.h: ditto
18761         * libc/include/sys/signal.h: ditto
18762         * libc/include/sys/stat.h: ditto
18763         * libc/include/sys/time.h: ditto
18764         * libc/include/sys/unistd.h: ditto
18765         * libc/include/ctype.h: ditto
18766         * libc/include/stdlib.h: ditto
18767         * libc/include/sys/reent.h: struct _atexit function ptr takes a
18768         void, same with _sig_func.
18769
18770 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18771
18772         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
18773         for MB_CAPABLE to reduce code size when newlib is not configured
18774         with --enable-newlib-mb.
18775         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
18776         mbtowc_r.o to minimize size.
18777         * libc/stdlib/Makefile.in: Rebuild.
18778
18779 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
18780
18781         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
18782         to -DREENT.
18783         * libc/sys/sparc64/Makefile.in: Rebuild.
18784
18785 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
18786
18787         * Makefile.am (MAKEOVERRIDES): Define.
18788         * Makefile.in: Rebuild.
18789
18790 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
18791
18792         * libc/sys/sparc64/sys/stat.h (stat): Add const.
18793
18794 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
18795
18796         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
18797         newlib_cflags when looking for targ-include.
18798         * */aclocal.m4, */configure: Rebuild.
18799
18800 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
18801
18802         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
18803         to "_end".
18804
18805 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
18806
18807         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
18808         on SPARCs with little-endian data.
18809         * libc/include/machine/ieeefp.h: Ditto.
18810
18811 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
18812
18813         * acinclude.m4: Handle a relative srcdir correctly when setting
18814         newlib_cflags.
18815         * */aclocal.m4, */configure: Rebuild.
18816
18817 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18818
18819         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
18820         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
18821         * libm/math/wrf_gamma.c (gammaf_r): ditto
18822         * libm/math/wr_lgamma.c (lgamma_r): ditto
18823         * libm/math/wr_gamma.c (gamma_r): ditto
18824         * libm/math/wf_sqrt.c (sqrtf): ditto
18825         * libm/math/wf_sinh.c (sinhf): ditto
18826         * libm/math/wf_scalb.c (scalbf): ditto
18827         * libm/math/wf_remainder.c (remainderf): ditto
18828         * libm/math/wf_pow.c (powf): ditto
18829         * libm/math/wf_log10.c (log10f): ditto
18830         * libm/math/wf_log.c (logf): ditto
18831         * libm/math/wf_lgamma.c (lgammaf): ditto
18832         * libm/math/wf_jn.c (jnf, ynf): ditto
18833         * libm/math/wf_j1.c (j1f, y1f): ditto
18834         * libm/math/wf_j0.c (j0f, y0f): ditto
18835         * libm/math/wf_hypot.c (hypotf): ditto
18836         * libm/math/wf_gamma.c (gammaf): ditto
18837         * libm/math/wf_fmod.c (fmodf): ditto
18838         * libm/math/wf_exp.c (expf): ditto
18839         * libm/math/wf_cosh.c (coshf): ditto
18840         * libm/math/wf_atanh.c (atanhf): ditto
18841         * libm/math/wf_atan2f.c (atan2f): ditto
18842         * libm/math/wf_asin.c (asinf): ditto
18843         * libm/math/wf_acosh.c (acoshf): ditto
18844         * libm/math/wf_acos.c (acosf): ditto
18845         * libm/math/w_sqrt.c (sqrt): ditto
18846         * libm/math/w_sinh.c (sinh): ditto
18847         * libm/math/w_scalb.c (scalb): ditto
18848         * libm/math/w_remainder.c (remainder): ditto
18849         * libm/math/w_pow.c (pow): ditto
18850         * libm/math/w_log10.c (log10): ditto
18851         * libm/math/w_log.c (log): ditto
18852         * libm/math/w_lgamma.c (lgamma): ditto
18853         * libm/math/w_jn.c (jn, yn): ditto
18854         * libm/math/w_j1.c (j1, y1): ditto
18855         * libm/math/w_j0.c (j0, y0): ditto
18856         * libm/math/w_hypot.c (hypot): ditto
18857         * libm/math/w_gamma.c (gamma): ditto
18858         * libm/math/w_fmod.c (fmod): ditto
18859         * libm/math/w_exp.c (exp): ditto
18860         * libm/math/w_cosh.c (cosh): ditto
18861         * libm/math/w_atanh.c (atanh): ditto
18862         * libm/math/w_atan2f.c (atan2): ditto
18863         * libm/math/w_asin.c (asin): ditto
18864         * libm/math/w_acosh.c (acosh): ditto
18865         * libm/math/w_acos.c (acos): ditto
18866
18867 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
18868
18869         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
18870         (fsrc): Add wf_cabs.c and wf_drem.c.
18871         * libm/math/Makefile.in: Rebuild.
18872
18873         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
18874         unused directory variables.  Remove duplicate CFLAGS.
18875         * Makefile.in: Rebuild.
18876
18877         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
18878         with $(CC_FOR_BUILD).
18879         (makedoc.o): Likewise.
18880         * doc/Makefile.in: Rebuild.
18881
18882         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
18883         force a definition of COMPILE.
18884         (libfoo_a_SOURCES): Define.
18885         * libc/sys/cygwin32/Makefile.in: Rebuild.
18886         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
18887         force a definition of COMPILE.
18888         (libfoo_a_SOURCES): Define.
18889         * libc/sys/tic80/Makefile.in: Rebuild.
18890
18891 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
18892
18893         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
18894         flag.
18895
18896 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
18897
18898         * Build using autoconf and automake.  Added many Makefile.am and
18899         configure.in files, plus generated files.  Old configure.in files
18900         and all old Makefile.in files completely replaced.  Removed
18901         host/any.  Added acinclude.m4 and configure.host.
18902
18903 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
18904
18905         * libc/stdio/vfprintf.c: enable long long support, sometimes.
18906         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
18907
18908 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18909
18910         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
18911         * libc/machine/sh/Makefile.in: Add rules for new files.
18912
18913 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18914
18915         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
18916         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
18917         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
18918
18919 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
18920
18921         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
18922         code is ignored.
18923
18924 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18925
18926         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
18927         internal static buffer when s is NULL, as prescribed by ANSI.
18928
18929 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
18930
18931         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
18932         removed.
18933         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
18934         libc/stdlib will be used for h8300hms.
18935
18936 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18937
18938         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
18939         version that can be built either for speed or size.
18940         * libc/machine/mn10300/memset.S (_memset): ditto
18941         * libc/machine/mn10300/memchr.S (_memchr): ditto
18942         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
18943         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
18944         * libc/machine/mn10300/strchr.S (_strchr): ditto
18945         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
18946         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
18947         * libc/machine/mn10300/Makefile.in: Added entries for
18948         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
18949         strcmp.o, strcpy.o, and strlen.o.
18950
18951 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
18952
18953         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
18954         been replaced with libgloss/mn10200.
18955
18956 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
18957
18958         * libc/string/strchr.c (strchr): Make s a constant pointer to
18959         avoid warning.
18960
18961 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
18962
18963         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
18964         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
18965         board SWIs instead of Demon board SWIs).
18966
18967 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
18968
18969         * libc/string/strncat.c (strncat):  Make -Os act the same as
18970         PREFER_SIZE_OVER_SPEED being defined.
18971
18972 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
18973
18974         * libc/string/memchr.c (memchr): Make -Os act the same as
18975         PREFER_SIZE_OVER_SPEED being defined.
18976         * libc/string/memcmp.c (memcmp): Ditto.
18977         * libc/string/memcpy.c (memcpy): Ditto.
18978         * libc/string/memset.c (memset): Ditto.
18979         * libc/string/strcat.c (strcat): Ditto.
18980         * libc/string/strchr.c (strchr): Ditto.
18981         * libc/string/strcmp.c (strcmp): Ditto.
18982         * libc/string/strcpy.c (strcpy): Ditto.
18983         * libc/string/strlen.c (strlen): Ditto.
18984         * libc/string/strncat.c (strncat): Ditto.
18985         * libc/string/strncmp.c (strncmp): Ditto.
18986         * libc/string/strncpy.c (strncpy): Ditto.
18987
18988 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
18989
18990         * libc/include/sys/itimer.h: remove
18991         * libc/include/sys/time.h: itimer stuff should be here
18992
18993 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
18994
18995         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
18996         bit instead of comparing to 0 so -0.0 can be printed correctly.
18997
18998 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
18999
19000         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
19001
19002 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
19003
19004         * libc/include/sys/unistd.h: fix sync() proto
19005         * libc/include/sys/fcntl.h: remove _close which is already
19006         defined in unistd.h.
19007         * libc/include/sys/time.h: add getitimer proto
19008
19009 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
19010
19011         * libc/string/strchr.c: convert arg to unsigned char
19012         * libc/include/stdlib.h: add protos for random, srandom
19013         * libc/include/sys/stat.h: add lstat proto
19014         * libc/include/sys/time.h: add setitimer proto
19015         * libc/include/sys/unistd.h: add readlink, symlink protos
19016         * libc/include/process.h: instead of including windows.h and using
19017         HANDLEs in sexec protos, just use void *s.  Need to include
19018         sys/types.h.
19019
19020 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
19021
19022         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
19023
19024 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
19025
19026         * libc/include/process.h: add secure exec protos
19027
19028 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
19029
19030         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
19031         which are accessed as both doubles and integers.
19032         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
19033         * libc/stdlib/strtod.c (_strtod_r): Likewise.
19034         * libc/stdlib/mprec.h: Add "union double_union" and change
19035         word0/word1 macros to use it.
19036
19037 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
19038
19039         * libc/include/sys/signal.h: add __cplusplus wrapper
19040
19041 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
19042
19043         * libc/include/sys/utime.h: new generic file that gets replaced by
19044         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
19045         function.
19046         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
19047         * libc/include/time.h: remove duplicate utime proto
19048         * libc/include/utime.h: add comment
19049
19050 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
19051
19052         * libc/include/sys/time.h: Add missing include to
19053         allow use of _EXFUN.  Remove times function that is
19054         already defined in times.h.
19055
19056 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
19057
19058         * libc/include/time.h: Fix typo in tzset.
19059
19060 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
19061
19062         * libc/include/sys/time.h: add missing Cygwin32 function protos
19063         * libc/include/sys/unistd.h: ditto
19064         * libc/include/time.h: ditto
19065
19066 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
19067
19068         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
19069         FIXME.
19070         * libc/include/sys/types.h: add a new __MS_types__ section
19071         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
19072         __BIT_TYPES_DEFINED__.
19073
19074 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
19075
19076         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
19077         since it overrides the one in libc/include/sys.  Also, start
19078         including types.h.
19079
19080 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
19081
19082         * libm/math/Makefile.in: add s_signgam.o to obj list
19083
19084 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19085
19086         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
19087
19088 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
19089
19090         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
19091         so don't use defines.
19092
19093 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
19094
19095         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
19096
19097 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
19098
19099         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
19100         _current_locale as default locale.
19101
19102 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
19103
19104         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
19105         insufficient space in a chunk.
19106
19107 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19108
19109         * configure.in (links): Added check for --enable-newlib-mb configure
19110         option which defines the MB_CAPABLE macro.
19111         * libc/locale/locale.c (_setlocale_r): Added support for setting
19112         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
19113         defined.
19114         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
19115         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
19116         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
19117         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
19118         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
19119         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
19120         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
19121         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
19122         * libc/stdlib/Makefile.in: Added new multibyte
19123         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
19124         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
19125         _mbstowcs_r(), and _wcstombs_r().
19126         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
19127         for JIS, SJIS, and EUC-JP characters.
19128         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
19129         MB_CAPABLE defined.
19130         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
19131         MB_CAPABLE defined.
19132         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
19133         MB_CAPABLE defined.
19134         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
19135         if MB_CAPABLE defined.
19136         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
19137         if MB_CAPABLE defined.
19138         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
19139         to the format string processing when MB_CAPABLE.
19140         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
19141         call _mbtowc_r().
19142
19143 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
19144
19145         The following modifications are courtesy of Anthony Thompson,
19146         athompson@cambridge.arm.com:
19147         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
19148         boith RDI and RDP monitors.
19149         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
19150         RDI and RDP monitors.
19151
19152 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19153
19154         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
19155         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
19156         (_swiopen): Fixed open flags to treat write with append as just append.
19157         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
19158         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
19159
19160 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
19161
19162         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
19163         When needing to transfer an initial 2-byte-word, store as
19164         two single bytes.
19165
19166 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
19167
19168         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
19169         __SH3E__ .
19170         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
19171         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
19172
19173 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
19174
19175         * configure.in (target_cflags): If --enable-target-optspace, use
19176         -Os to compile newlib rather than -O2.  Default to using -Os for
19177         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
19178         used.
19179
19180 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
19181
19182         * libc/include/machine/setjmp.h: change sigsetjmp and
19183         siglongjmp definitions to use an array instead of a struct
19184         for __CYGWIN32__
19185
19186 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
19187
19188         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
19189
19190 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
19191
19192         * libc/string/strxfrm.c: fix to get correct return value
19193
19194 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
19195
19196         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
19197         builds.  Make mode change labels global so that they will be seen
19198         by the debugger.
19199
19200 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
19201
19202         * configure.in (links): Do not use ARM debiugging protocols for PE
19203         builds.
19204
19205         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
19206         message.
19207
19208 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19209
19210         * libc/stdio/findfp.c (__sinit): Made stdout default to
19211         line buffered mode as defined by ANSI.
19212
19213 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
19214
19215         * libc/include/sys/itimer.h: New file.
19216
19217         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
19218
19219 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
19220
19221         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
19222         failure.
19223
19224 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
19225
19226         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
19227         insns.
19228
19229 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
19230
19231         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
19232
19233 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
19234
19235         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
19236         support.
19237
19238         * libc/include/machine/setjmp.h: Add D30V support.
19239
19240         * configure.in (d30v-*): Add d30v machine directory.
19241
19242 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
19243
19244         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
19245         been replaced with libgloss/mn10300.
19246
19247 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
19248
19249         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
19250         it is no longer needed.
19251
19252 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
19253
19254         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
19255
19256 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
19257
19258         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
19259         the file when O_APPEND is set, wherever the EOF happens to be at
19260         that time.
19261
19262 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
19263
19264         patch from cgf@bbc.com (Christopher Faylor):
19265         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
19266         convention of closing fp prior to attempting to open the file
19267         argument.  This allows correct operation when reopening
19268         stdin/stdout/stderr.  Replaces last freopen.c patch.
19269
19270 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
19271
19272         patch from cgf@bbc.com (Christopher Faylor):
19273         * libc/stdio/freopen.c: freopen was not preserving the fd
19274         of the stream being operated on.  This confuses programs that
19275         expect that the handles for stdout and stderr will be 1 and 2.
19276
19277 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
19278
19279         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
19280
19281 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
19282
19283         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
19284
19285 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19286
19287         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
19288         altered to not use a branch.  Also added hint that last
19289         bclr in longjmp will likely result in branch.
19290
19291
19292 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
19293
19294         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
19295
19296 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
19297
19298         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
19299         v850 builds.
19300
19301         * configure.in: Add -msmall-sld to target_cflags for v850 builds.
19302
19303 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19304
19305         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
19306         that loads FR14 to specify offset of 8 rather than 4
19307         so it loads from offset 96 (where setjmp stored it).
19308
19309 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19310
19311         * libc/machine/sh/memcpy.S: (_memcpy): Update to
19312         latest version supplied by customer.
19313         * libc/machine/sh/memset.S (_memset): Ditto.
19314
19315 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
19316
19317         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
19318         PR14730).
19319
19320 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
19321
19322         * libc/include/string.h: remove redefinition of ffs
19323
19324 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
19325
19326         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
19327         defined
19328
19329 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
19330
19331         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
19332         TI Libraries to link to libc.a
19333
19334 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
19335
19336         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
19337         * libc/include/sys/stat.h (_{,f}stat): Ditto.
19338         * libc/include/sys/wait.h (_wait): Ditto.
19339         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
19340         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
19341
19342 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
19343
19344         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
19345         minded stabs so function name shows up when running the simulator
19346         with -t.
19347         * libc/sys/d10v/{crt0,trap}.S: Ditto.
19348
19349 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
19350
19351         * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
19352         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
19353         Use R5 where we used to use R3.
19354
19355 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
19356
19357         * libc/stdlib/getopt.c (getopt): replaced __progname
19358         with nargv[0] to improve portability to imbedded systems.
19359
19360 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
19361
19362         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
19363         patch supplied by Tont.Thompson@arm.com to fix the creation of the
19364         stdout file.
19365
19366 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
19367
19368         * libc/stdio/tmpnam.c (worker): Generate a different file name
19369         each time.
19370
19371         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
19372         fails, try an execlp for sh.
19373
19374         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
19375         option for the winsup include directory.
19376
19377 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
19378
19379         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
19380         debugging interface from Tony.Thompson@arm.com.
19381
19382         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
19383         * libc/sys/arm/swi.h: ditto.
19384
19385 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
19386
19387         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
19388         DIR struct used for readdir hashes.
19389
19390 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
19391
19392         * libc/string/strchr.c: Use "unsigned chars" as necessary.
19393
19394 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
19395
19396         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
19397         integer targets.
19398
19399 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
19400
19401         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
19402         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
19403         * libc/include/malloc.h: Add extern "C" if __cplusplus.
19404         (__malloc_copy): Declare.
19405
19406 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
19407
19408         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
19409         <sys/config.h>.
19410         (POINTER_UINT): Define.
19411         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
19412         (MALLOC_ALIGNMENT): Don't define if already defined.
19413         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
19414         long.
19415
19416 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
19417
19418         * libc/string/memset.c (memset): Fiddle with code so that the long
19419         value being stored is not a stack value.  Unroll storing longs 4
19420         times.
19421
19422 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
19423
19424         * Reduce code size for libm modules.
19425         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
19426         and simply move code into sqrt.
19427         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
19428         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
19429         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
19430         * libm/math/wr_gamma.c (gamma_r): Likewise.
19431         * libm/math/wf_sinh.c (sinfh): Likewise.
19432         * libm/math/w_sinh.c (sinh): Likewise.
19433         * libm/math/wf_scalb.c (scalbf): Likewise.
19434         * libm/math/w_scalb.c (scalb): Likewise.
19435         * libm/math/wf_remainder.c (remainderf): Likewise.
19436         * libm/math/w_remainder.c (remainder): Likewise.
19437         * libm/math/wf_pow.c (powf): Likewise.
19438         * libm/math/w_pow.c (pow): Likewise.
19439         * libm/math/wf_log10.c (log10f): Likewise.
19440         * libm/math/w_log10.c (log10): Likewise.
19441         * libm/math/wf_log.c (logf): Likewise.
19442         * libm/math/w_log.c (log): Likewise.
19443         * libm/math/w_lgamma.c (lgamma): Likewise.
19444         * libm/math/wf_lgamma.c (lgammaf): Likewise.
19445         * libm/math/wf_jn.c (jnf): Likewise.
19446         * libm/math/w_jn.c (jn): Likewise.
19447         * libm/math/wf_j1.c (j1f): Likewise.
19448         * libm/math/w_j1.c (j1): Likewise.
19449         * libm/math/wf_j0.c (j0f): Likewise.
19450         * libm/math/w_j0.c (j0): Likewise.
19451         * libm/math/wf_hypot.c (hypotf): Likewise.
19452         * libm/math/w_hypot.c (hypot): Likewise.
19453         * libm/math/wf_gamma.c (gammaf): Likewise.
19454         * libm/math/w_gamma.c (gamma): Likewise.
19455         * libm/math/wf_fmod.c (fmodf): Likewise.
19456         * libm/math/w_fmod.c (fmod): Likewise.
19457         * libm/math/wf_exp.c (expf): Likewise.
19458         * libm/math/w_exp.c (exp): Likewise.
19459         * libm/math/wf_cosh.c (coshf): Likewise.
19460         * libm/math/w_cosh.c (cosh): Likewise.
19461         * libm/math/wf_atanh.c (atanhf): Likewise.
19462         * libm/math/w_atanh.c (atanh): Likewise.
19463         * libm/math/wf_atan2.c (atan2f): Likewise.
19464         * libm/math/w_atan2.c (atan2): Likewise.
19465         * libm/math/wf_asin.c (asinf): Likewise.
19466         * libm/math/w_asin.c (asin): Likewise.
19467         * libm/math/wf_acosh.c (acoshf): Likewise.
19468         * libm/math/w_acosh.c (acosh): Likewise.
19469         * libm/math/wf_acos.c (asocf): Likewise.
19470         * libm/math/w_acos.c (acos): Likewise.
19471         * libm/math/wf_sqrt.c (sqrtf): Likewise.
19472         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
19473         for embedded systems.
19474
19475 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
19476
19477         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
19478         Lea in case of a foreign sbrk.
19479
19480 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
19481
19482         Incorporate Doug Lea's malloc:
19483         * libc/stdlib/mallocr.c: Completely replaced.
19484         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
19485         (realloc): Remove.
19486         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
19487         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
19488         mallopt.
19489         (mallinfo, malloc_stats, mallopt): New functions.
19490         (_mstats_r): Just call _malloc_stats_r.
19491         * libc/stdlib/malign.c: New file.
19492         * libc/stdlib/mlock.c: New file.
19493         * libc/stdlib/msize.c: New file.
19494         * libc/stdlib/mtrim.c: New file.
19495         * libc/stdlib/realloc.c: New file.
19496         * libc/stdlib/valloc.c: New file.
19497         * libc/stdlib/malloc.h: Remove.
19498         * libc/stdlib/callocr.c: Remove.
19499         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
19500         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
19501         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
19502         reallocr.o, valloc.o, vallocr.o.
19503         (CHEWOUT_FILES): Add mlock.def, mstats.def.
19504         (MALLOC_CFLAGS): New variable.
19505         (mallocr.o): New target, build from mallocr.c.
19506         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
19507         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
19508         (msizer.o, malloptr.o): Likewise.
19509         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
19510         (valloc.o): New target.
19511         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
19512         * libc/include/malloc.h: Declare struct mallinfo, and new
19513         routines.
19514         * libc/include/stdlib.h (cfree): Correct declaration.
19515
19516 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
19517
19518         * libc/include/machine/setjmp.h: Add support for Thumb target.
19519
19520         * libc/include/machine/ieeefp.h: Add support for Thumb target.
19521
19522         * configure.in (links): Add support for Thumb target.
19523
19524 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
19525
19526         * libc/sys/arm/setjmp.S: Updated with version from branch.
19527
19528 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
19529
19530         * libc/include/stdio.h: add POSIX-required define L_ctermid
19531         for ctermid
19532
19533 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
19534
19535         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
19536         addition to MISSING_SYSCALL_NAMES.
19537
19538 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
19539
19540         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
19541
19542 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
19543
19544         * libc/include/string.h: change strsignal proto to return
19545         a char *.  This eliminates compile problems in gdb resulting
19546         from gdb's definition of strsignal in defs.h.
19547
19548 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
19549
19550         * libc/sys/cygwin32/sys/utime.h: new (moved here from
19551         winsup/include) so as not to conflict with the one in
19552         libc/include.
19553         * libc/include/string.h: add protos for strsignal, strtosigno
19554
19555 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
19556
19557         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
19558
19559         * configure.in (d30v-*-*): Add configuration.
19560
19561 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
19562
19563         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
19564         to select which kind of debug monitor is in use for an ARM target.
19565
19566         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
19567         Angel and Demon debug monitors.  Part of this code was supplied by
19568         Tony Thompson at ARM: athompso@arm.com.
19569
19570 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
19571
19572         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
19573         semantics when the count is greater than the length of the second
19574         source string.
19575
19576 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
19577
19578         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
19579         * libc/include/sys/unistd.h: add protos for usleep, truncate,
19580         truncate and ftruncate take off_t, not size_t
19581
19582 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
19583
19584         * libc/string/strcat.c (strcat): Add missing comment end.
19585         * libc/string/strncat.c (strncat): Likewise.
19586
19587 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
19588
19589         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
19590         targets.
19591         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
19592         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
19593         defined.
19594         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
19595         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
19596         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
19597
19598 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
19599
19600         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
19601         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
19602
19603 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
19604
19605         * libc/machine/i386/setjmp.S: New file.
19606         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
19607         (OFILES): Add setjmp.o.
19608         (setjmp.o): Add rule for.
19609         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
19610
19611 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
19612                          Jeffrey A Law  (law@cygnus.com)
19613
19614         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
19615         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
19616         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
19617         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
19618
19619 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
19620
19621         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
19622         rules.
19623
19624         * libc/include/sys/config.h: Use __v850 to select v850
19625         endianness.
19626
19627         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
19628         buffer size.
19629
19630         * libc/include/machine/ieeefp.h: Use __v850 to select v850
19631         endianness.
19632
19633 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
19634
19635         * libc/stdlib/setenv.c: change unsetenv definition to match
19636         style of setenv (with _DEFUN).  The string should be a const.
19637         * libc/include/stdlib.h: unsetenv proto should return void.
19638
19639 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
19640
19641         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
19642
19643 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
19644
19645         * libc/stdio/glue.h: remove.
19646         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
19647         * libc/stdio/Makefile.in: remove glue.h dependencies
19648
19649 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
19650
19651         * libc/sys/sysnecv850/crt0.S: Created V850e version.
19652
19653 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
19654
19655         * configure.in (target_cpu): Add `arc'.
19656
19657 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
19658
19659         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
19660           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
19661         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
19662         * newlib/libc/reent/reent.c: Add _wrapup_reent.
19663         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
19664
19665 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
19666
19667         * libc/machine/mips/setjmp.S: Handle mips16 builds.
19668
19669 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
19670
19671         * libc/include/stdio.h (siprintf): Declare.
19672
19673 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
19674
19675         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
19676         TARGET_CFLAGS and NEWLIB_FLAGS.
19677
19678 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
19679
19680         * configure.in (links): Add support for v850ea target.
19681
19682 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
19683
19684         * configure.in (links): Add support for v850e target.
19685
19686 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
19687
19688         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
19689
19690 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
19691
19692         * configure.in (arc-*-*): Add support for.
19693         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
19694
19695 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
19696
19697         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
19698
19699 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
19700
19701         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
19702         comparison which accesses invalid memory when the key is
19703         larger than the last member of the array.
19704         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
19705         for CYGWIN32
19706         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
19707
19708 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
19709
19710         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
19711         not _STRICT_ANSI.
19712
19713 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
19714
19715         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
19716         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
19717
19718 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
19719
19720         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
19721         to load/store memory.
19722
19723 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
19724
19725         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
19726         underscores if _WIN32.
19727
19728 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
19729
19730         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
19731         support ifdef _USE_WRITE missed in last change.
19732         From Anders Blomdell <anders.blomdell@control.lth.se>.
19733
19734 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
19735
19736         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
19737         (_tmpnam_r, _tempnam_r): Update.
19738
19739 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
19740
19741         * libc/machine/sparc/setjmp.S: New file.
19742         * libc/machine/sparc/Makefile.in: Add setjmp.
19743         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
19744
19745 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
19746
19747         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
19748
19749 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
19750
19751         From Joel Sherrill <joel@oarcorp.com>.
19752         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
19753
19754         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
19755         * configure.in: Recognize *-*-rtems*.
19756         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
19757         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
19758         time.h,times.h,types.h}: New files.
19759         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
19760
19761 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
19762
19763         patch from sos@prospect.com.ru (Sergey Okhapkin):
19764         * include/sys/wait.h: correct operator precidence bug
19765         in WIFSIGNALED
19766
19767 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
19768
19769         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
19770         with newlib's unsetenv function
19771         * libc/sys/cygwin32/sys: new directory for includes
19772         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
19773         here from winsup/include/sys
19774
19775 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
19776
19777         * libc/include/sys/unistd.h: _exit should only be
19778         labelled noreturn when not __CYGWIN32__
19779         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
19780         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
19781         increment NSIG
19782
19783 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
19784
19785         * libc/include/sys/time.h: Only define timeval and timezone if
19786         _GNU_H_WINDOWS32_SOCKETS is not defined.
19787         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
19788
19789 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
19790
19791         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
19792         * libc/machine/mn10300/setjmp.S: Likewise.
19793
19794         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
19795         the mn10300 (more relaxing opportunities).
19796
19797 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
19798
19799         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
19800         Build libraries with -mstrict-align.
19801
19802 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
19803
19804         * libc/string/strlwr.c: New file.
19805         * libc/string/strupr.c: New file.
19806         * libc/include/string.h: Declare strlwr and strupr.
19807         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
19808         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
19809         (strlwr.o, strupr.o): New targets.
19810         * libc/string/strings.tex: Include strlwr and strupr docs.
19811
19812         * libc/include/sys/types.h: Don't define u_char, et. al., if
19813         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
19814         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
19815         _types_fd_set rather than fd_set, and define fd_set as a macro.
19816
19817         * libc/include/malloc.h: New file.
19818
19819         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
19820         strnicmp if they are not already defined.
19821
19822         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
19823         _timezone, _daylight, and _tzname.
19824
19825 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
19826
19827         * configure.in: Sort all configuration tables.
19828
19829         From Joel Sherrill <joel@oarcorp.com>
19830         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
19831
19832 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
19833
19834         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
19835         use int when declaring kill.
19836
19837         * libc/include/sys/timeb.h: New file.
19838
19839 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
19840
19841         * libc/include/sys/time.h: add itimer support for Cygwin32
19842
19843 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
19844
19845         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
19846         out a message that abort was called to stderr.
19847
19848 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
19849
19850         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
19851         so that libio doesn't freak.
19852
19853         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
19854         int.
19855
19856         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
19857         memory sizes, not int.
19858
19859 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
19860
19861         * libm/math/ef_hypot.c: Use long constants where
19862         appropriate.
19863         * libm/math/ef_sqrt.c: Ditto.
19864
19865         * libc/sys/sysmec/times.c(_times): Change to times.
19866
19867         * libc/sys/sysmec/read.c(_read): The third argument is
19868         size_t.
19869         * libc/sys/sysmec/write.c (_write): Ditto.
19870
19871         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
19872         (_lseek): It's off_t for the second argument.
19873
19874 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
19875
19876         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
19877         as well as machine/ieeefp.h.
19878
19879 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
19880
19881         * libc/include/sys/signal.h: add signal protos for winsup
19882         functions (when __CYGWIN32__), include types.h
19883         * libc/include/sys/types.h: Change __go32_types__ internal
19884         define to __MS_types__ since it's used for more than just
19885         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
19886         defined.
19887         * libc/include/sys/unistd.h: add ftruncate proto for
19888         winsup functions (when __CYGWIN32__)
19889
19890 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
19891
19892         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
19893
19894 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
19895
19896         * libc/include/machine/setjmp.h: Add tic80 support.
19897         * libc/machine/tic80/setjmp.S: Likewise.
19898
19899 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
19900
19901         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
19902         link programs from libraries only (such as in the X11
19903         distribution)
19904
19905 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
19906
19907         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
19908         supplied elsewhere in newlib.
19909
19910 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
19911
19912         * Makefile.in (INSTALL): Change install.sh to install-sh.
19913
19914 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
19915
19916         * README: update WWW address for on-line documentation.
19917
19918 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
19919
19920         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
19921         increment NSIG
19922
19923 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
19924
19925         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
19926         mn10300.
19927         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
19928
19929 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
19930
19931         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
19932         * libc/sys/d10v/syscalls.c: Likewise.
19933         * libc/sys/h8300hms/sbrk.c: Likewise.
19934         * libc/sys/h8500hms/syscalls.c: Likewise.
19935         * libc/sys/m88kbug/syscalls.c: Likewise.
19936         * libc/sys/sh/syscalls.c: Likewise.
19937         * libc/sys/sysmec/sbrk.c: Likewise.
19938         * libc/sys/sysnecv850/sbrk.c: Likewise.
19939         * libc/sys/w65/syscalls.c: Likewise.
19940         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
19941
19942 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
19943
19944         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
19945         emulated syscall instead of "trap".
19946
19947 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
19948
19949         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
19950         not trap 0.
19951
19952 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
19953
19954         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
19955
19956 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
19957
19958         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
19959         not "sh".
19960         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
19961         not "d10v".
19962         * libc/sys/tic80/crt0.c: New file for TIc80.
19963         * libc/sys/tic80/Makefile.in: New file for TIc80.
19964         * libc/machine/tic80/Makefile.in: New file for TIc80.
19965
19966 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
19967
19968         * libc/machine/sh/memcpy.S: New file.
19969         * libc/machine/sh/memset.S: New file.
19970         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
19971
19972 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
19973
19974         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
19975         for TIc80.
19976
19977 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
19978
19979         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
19980         the mn10200.
19981
19982 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
19983
19984         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
19985         (patch from andrew@pogo.WV.TEK.COM).
19986
19987 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
19988
19989         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
19990         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
19991
19992 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
19993
19994         * configure.in:  Add cases for "tic80" to set machine_dir,
19995         sys_dir, and syscall_dir.
19996
19997 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
19998
19999         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
20000
20001 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
20002
20003         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
20004
20005 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
20006
20007         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
20008         Use proper constant prefix.
20009
20010 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
20011
20012         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
20013         that loses on the mn10200 where ints and pointers are different
20014         sizes.
20015
20016 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
20017
20018         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
20019         target as signal is provided in winsup.
20020
20021 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
20022
20023         * libc/include/sys/process.h: Corrected const definitions
20024         in spawn functions. Added cwait.
20025
20026 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
20027
20028         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
20029         doubles.
20030         * libc/include/sys/config.h: Similarly.
20031
20032 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20033
20034         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
20035         target_cflags.
20036         (i[3456]86-*-sco*): Ditto.
20037
20038         * libc/signal/Makefile.in (OFILES): Add signal.o.
20039         (CFILES): Add signal.c.
20040
20041         * libc/signal/raise.c (_raise_r): Only compile code if
20042         SIGNAL_PROVIDED is defined.
20043
20044         * libc/signal/signal.c: Redo whole file so that it works with
20045         current newlib.  Use _kill_r if no signal handler provided.
20046
20047         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
20048         signal stubs.
20049         * libc/sys/sysvnecv70/Makefile.in: Ditto.
20050         * libc/sys/sysnecv850/Makefile.in: Ditto.
20051
20052         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
20053         * libc/sys/sysmec/{raise,signal}.c: Ditto.
20054         * libc/sys/sysvnecv70/signal.s: Ditto.
20055         * libc/sys/sysnecv850/raise.c: Ditto.
20056
20057         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
20058         simulator and debugger can tell the difference between a signal
20059         being raised and an exit system call.
20060
20061         * NEWS: Document software signals being provided.
20062
20063 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20064
20065         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
20066         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
20067         include/sys/config.h.
20068         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
20069         Change from 'inpure_data'.
20070         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
20071         &impure_data, not &inpure_data.
20072
20073         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
20074         and and System V ABI, define so that _impure_ptr lives in the
20075         .sdata section.
20076
20077 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20078
20079         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
20080         nothing if not defined.
20081         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
20082         its attributes.
20083
20084         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
20085
20086 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
20087
20088         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
20089         * libc/sys/sysmec/trap.s: Handle mn10200 too.
20090         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
20091
20092 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
20093
20094         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
20095
20096 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
20097
20098         * libc/include/sys/errno.h: Added net errno's.
20099
20100 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20101
20102         * libc/misc/ffs.c: New file to support ffs function for GCC test
20103         gcc.c-torture/execute/960909-1.c.
20104
20105         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
20106
20107 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
20108
20109         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
20110         * libc/sys/sysmec/trap.S: Likewise.
20111
20112 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
20113
20114         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
20115         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
20116
20117 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
20118
20119         * libc/sys/sysmec/signal.c: Dummy file.
20120         * libc/sys/sysmec/Makefile.in: Build it.
20121
20122 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
20123
20124         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
20125         mips16.
20126
20127 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
20128
20129         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
20130         c-startup and simulator traps.
20131
20132
20133         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
20134         * libc/sys/sysmec/trap0.S: Likewise.
20135
20136 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20137
20138         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
20139         round to double word alignment.
20140         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
20141         byte alignment.
20142
20143         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
20144
20145         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
20146         out of memory.
20147
20148 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
20149
20150         * configure.in: Handle mn10200 and mn10300.
20151         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
20152         * libc/include/sys/config.h: Likewise.
20153         * libc/sys/sysmec: New directory for mec stuff.
20154         * libc/machine/mn10300: New directory for mn10300 stuff.
20155         * libc/machine/mn10200: Similarly for mn10200 stuff.
20156
20157 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
20158
20159         * libc/sys/arm/crt0.S: Use .text, not .section .text.
20160         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
20161
20162         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
20163         (nlink_t): Change type from unsigned int to unsigned short.
20164         (mode_t): Ensure size is 32 bits even if int is 16.
20165         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
20166         (st_spare[123]): Change type from int to long.
20167
20168 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20169
20170         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
20171         byte boundary.
20172
20173         * configure.in (d10v*): Define SMALL_MEMORY.
20174
20175 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20176
20177         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
20178         -mrelocatable-lib and -mno-eabi flags.
20179
20180 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
20181
20182         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
20183         Fix handling of mis-aligned source operand when both the
20184         destination & length are properly aligned.
20185
20186 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
20187
20188         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
20189         times.o, time.o and gettime.o
20190         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
20191         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
20192         SYS_gettimeofday.
20193
20194 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
20195
20196         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
20197         * libc/sys/sysnecv850/access.c: New file.
20198
20199 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
20200
20201         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
20202
20203         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
20204         long.
20205
20206 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
20207
20208         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
20209
20210 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
20211
20212         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
20213         * libc/include/sys/config.h: Add m32r support.
20214
20215 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
20216
20217         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
20218         here.
20219
20220 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
20221
20222         * libc/include/machine/setjmp.h: Add D10v support.
20223
20224 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
20225
20226         * configure.in: Configure the "libc/syscalls" directory for
20227         the v850.
20228
20229         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
20230         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
20231         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
20232         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
20233         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
20234
20235 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
20236
20237         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
20238         stack for args for main and other routines.  Zero out args for
20239         main.
20240
20241         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
20242         correctly.
20243
20244 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20245
20246         * libc/stdio/findfp.c (std): Remove extraneous ';' after
20247         function.
20248
20249         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
20250
20251         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
20252         real system calls now.
20253
20254         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
20255         before casting them to int.
20256         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
20257
20258         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
20259         aligning pointer.
20260         * libc/string/memset.c (memset): Ditto.
20261
20262         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
20263         first convert ints to _POINTER_INT to eliminate GCC warning.
20264
20265         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
20266         processing %p.
20267
20268         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
20269         from 65000 if ints are only 16 bits.
20270
20271         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
20272         from 50000 if ints are only 16 bits.
20273
20274         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
20275         int type that is the same size as a pointer.
20276
20277         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
20278         processing %p.
20279         (get_number): Explicitly cast number to long before shifting by 16
20280         or 24, in case ints are short.
20281
20282         * libc/include/sys/config.h (_POINTER_INT): Define as short.
20283
20284 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
20285
20286         * libc/string.h: Added ffs, removed swab.
20287         * libc/sys/errno.h: Added EOPNOTSUPP.
20288         * libc/sys/unistd.h: Added swab.
20289
20290 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
20291
20292         * libc/include/sys/stat.h: Added fchmod.
20293         * libc/include/sys/unistd.h: Added fsync.
20294
20295 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
20296
20297         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
20298         and ECONNRESET (104) for cygwin32.
20299
20300 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
20301
20302         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
20303         do the static destructors.
20304
20305 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
20306
20307         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
20308
20309 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
20310
20311         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
20312         * configure.in: Recognize m32r-*-*.
20313
20314 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
20315
20316         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
20317         __rt_stkovf_split_small): Added default software stack overflow
20318         handlers, which just call SWI_Exit.
20319         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
20320         limit initialisation.
20321
20322 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
20323
20324         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
20325
20326 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
20327
20328         * libc/include/sys/types.h: Added ssize_t definition.
20329
20330 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20331
20332         * libc/machine/d10v/setjmp.S: Use ';' for comments.
20333         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
20334
20335         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
20336         branch around a single ldi instruction.
20337
20338         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
20339         Call exit, instead of just issuing a stop instruction.
20340
20341 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20342
20343         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
20344
20345 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20346
20347         * libc/stdlib/mprec.h: Explicitly declare all large constants as
20348         longs, and then cast them to __uint32_t.
20349
20350         * libc/include/sys/config.h: Protect against multiple inclusions.
20351
20352 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
20353
20354         * configure.in (d10v*): Set syscall_dir.
20355
20356 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
20357
20358         * libc/sys/d10v/crt0.S: Set stack pointer.
20359
20360 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
20361
20362         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
20363         in assembly for efficiency.  Change calling convention to allow
20364         long ints to be returned.
20365
20366 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20367
20368         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
20369
20370 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
20371
20372         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
20373         Handle empty entries in $PATH.
20374
20375 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
20376
20377         * libc/machine/d10v/setjmp.S: Make it really work.
20378
20379 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
20380
20381         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
20382         the .stack section.
20383
20384 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
20385
20386         * sys/sysnecv850/sys/file.h: Remove.
20387         * sys/sysnecv850/sys/syscall.h: New file.
20388         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
20389         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
20390         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
20391         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
20392         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
20393         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
20394         * sys/sysnec850/trap.S: New file.
20395         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
20396         syscalls.
20397         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
20398         * sys/sysnec850/sbrk.c: New version.
20399
20400 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
20401
20402         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
20403         as long as r6 is less than r7.
20404
20405 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
20406
20407         * Makefile.in (mostlyclean): Separate from clean target.  Don't
20408         remove *.a or targ-include.
20409         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
20410
20411 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20412
20413         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
20414         d10v.
20415         (__SMALL_BITFIELDS): Ditto.
20416
20417         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
20418
20419 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
20420
20421         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
20422         prefix.
20423
20424         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
20425         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
20426         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
20427         * libc/sys/sysnecv850/write.c (write): Likewise.
20428
20429         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
20430         .bss.
20431
20432 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20433
20434         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
20435         appropriately for D10V, depending on -mint16/-mint32.
20436
20437 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
20438
20439         * configure.in: Add cases for D10V.
20440
20441 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20442
20443         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
20444
20445 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
20446
20447         * libc/include/machine/ieeefp.h: Fix typo.
20448
20449 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
20450
20451         * libc/sys/d10v: New directory for D10V stuff.
20452         * libc/include/machine/ieeefp.h: Add D10V defines.
20453
20454 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
20455
20456         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
20457         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
20458         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
20459         * libc/string/strerror.c (strerror): Add them.
20460
20461 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
20462
20463         * libc/sys/sysnecv850: New directory for v850 stuff.
20464
20465         * libc/machine/v850: New directory for v850 stuff.
20466         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
20467
20468         * configure.in: Add support for the v850.
20469
20470         * libc/include/machine/ieeefp.h: Add v850 defines.
20471         * libc/include/machine/setjmp.h: Likewise.
20472         * libc/include/sys/config.h: Add v850 defines.
20473
20474 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
20475
20476         * libc/include/machine/ieeefp.h
20477         * libc/include/machine/setjmp.h
20478         * libc/include/sys/fcntl.h
20479         * libc/include/sys/signal.h
20480         * libc/include/sys/types.h
20481         * libc/stdlib/system.c:
20482         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
20483         API availability, __CYGWIN32__ for cygwin32 environment specific).
20484
20485 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
20486
20487         * libc/include/stdlib.h: add multibyte character functions.  Add
20488         __eprintf for assert.
20489
20490 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20491
20492         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
20493         arithmetic or __alignof__ to properly get the alignment, instead
20494         of hardwiring it to 4.
20495
20496 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
20497
20498         * libc/stdio/fseek.c: add fflush call to adjust seek offset
20499         on append stream (fix from NetBSD sources), adjust curoff offset
20500         for ungetc's benefit.
20501         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
20502         * libc/stdio/rewind.c: replace code with up to date NetBSD
20503         code to undo hacks made to work around above problem of not
20504         having fflush call mentioned above
20505
20506 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
20507
20508         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
20509         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
20510         Partially revert last changes.  The thread specific errno is set
20511         iff if the underlying syscall fails and the global errno is not
20512         zero.
20513
20514 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
20515
20516         * libc/reent/filer.c: Removed files, all functions have split out
20517         into their own files.
20518         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
20519         New files containing functions formally in filer.c
20520         * libc/reent/Makefile.in: Updated for above change.
20521
20522         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
20523         syscall fails, not if errno is changed.
20524         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
20525         _write_r): Likewise.
20526         * libc/reent/fstatr.c (_fstat_r): Likewise.
20527         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
20528         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
20529         * libc/reent/signalr.c (_kill_r): Likewise.
20530         * libc/reent/statr.c (_stat_r): Likewise.
20531         * libc/reent/timer.c (_gettimeofday_r): Likewise.
20532
20533         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
20534         signalr.c, statr.c, timer.c} (errno): declare extern rather
20535         than as a common.
20536
20537         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
20538         instead of calling vfprintf so that i*printf will not require
20539         floating point support code.
20540
20541 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
20542
20543         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
20544         path delimiter.
20545         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
20546         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
20547
20548 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
20549
20550         * libc/include/signal.h: _sig_func_ptr function takes an int
20551         * libc/include/sys/signal.h: sa_handler function takes an int
20552
20553 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
20554
20555         * libc/include/machine/ieeefp.h: Simplify H8/S support.
20556         * libc/include/sys/config.h: Add missing H8/S conditional.
20557
20558 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
20559
20560         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
20561
20562 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
20563
20564         * libc/include/machine/setjmp.h: Handle H8/S.
20565         * libc/include/machine/ieeefp.h: Likewise.
20566         * libc/include/sys/config.h: Likewise.
20567         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
20568         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
20569         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
20570         * libc/sys/h8300hms/crt0.S: Likewise.
20571
20572 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
20573
20574         * Makefile.in (datadir): Set to $(prefix)/share.
20575         (oldincludedir, docdir): Removed.
20576         * doc/Makefile.in (datadir): Set to $(prefix)/share.
20577         (oldincludedir, docdir): Removed.
20578         * libc/Makefile.in (datadir): Set to $(prefix)/share.
20579         (oldincludedir, docdir): Removed.
20580         * libm/Makefile.in (datadir): Set to $(prefix)/share.
20581         (oldincludedir, docdir): Removed.
20582
20583 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
20584
20585         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
20586         _reent struct.
20587
20588 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
20589
20590         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
20591         fetch current path rules with sysconf and handler posix/win32
20592         appropriately.
20593
20594         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
20595
20596         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
20597         (WAIT_CHILD): Always define.
20598
20599 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
20600
20601         * libc/stdlib/eprintf.c: New file.
20602         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
20603         (eprintf.o): New target.
20604
20605 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
20606
20607         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
20608         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
20609
20610 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
20611
20612         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
20613         NT in PowerPC endianess cases.
20614
20615 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20616
20617         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
20618
20619 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20620
20621         * libc/string/strtok.c: Fix doc typo.
20622
20623 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
20624
20625         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
20626         _next, _scanpoint, _signgam fields.
20627
20628         * libc/include/stdlib.h (rand_r): Added new declaration.
20629         (_rand_r, _srand_r): Removed declarations.
20630         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
20631         have been made obsolete by rand_r.
20632         * libc/stdlib/rand_r.c: New file, rand_r function as specified
20633         by POSIX.1c.
20634
20635         * libc/string/strtok.c: Update documentation to describe
20636         strtok_r().
20637
20638 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
20639
20640         * libc/include/sys/stat.h (stat structure): Use the expanded stat
20641         structure on Solaris, and PowerPC systems even though __svr4__ is
20642         defined.
20643
20644 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
20645
20646         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
20647
20648 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
20649
20650         * host/any: Use ../.. rather than .. to get to the main build
20651         directory.  This matches the current layout of the build
20652         directory.
20653
20654 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
20655
20656         * libc/machine/h8300/__main.S: Delete.  No longer needed.
20657         * libc/machine/h8300/Makefile.in: Corresponding changes.
20658         * libc/sys/h8300hms/crt1.c: New file.
20659         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
20660         * libc/sys/h8300hms/crt0.s: Call __main.
20661
20662         * libc/sys/h8300hms/crt0.S: Use temporary label names
20663         for branch targets.
20664
20665 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
20666
20667         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
20668
20669 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20670
20671         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
20672         .sdata on the PowerPC so that we can link newlib with code
20673         compiled with -msdata.
20674
20675 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
20676
20677         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
20678
20679 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
20680
20681         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
20682         exception handler to __cygwin_exception_handler.
20683
20684 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
20685
20686         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
20687
20688 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
20689
20690         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
20691         SunOS VPATH.
20692         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
20693         wcstombs.o): Likewise.
20694
20695 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
20696
20697         * libc/stdlib/environ.c (initial_env): New static local.
20698         (environ): Point to `initial_env'.
20699
20700         * libc/include/machine/setjmp.h: Clean up.
20701         (__H8300H__,__PPC__): Define _JBTYPE.
20702         (__arm__): Provide entry for.
20703         (sigjmp_buf): Delete.
20704         (jmp_buf): Use _JBTYPE if defined, otherwise int.
20705
20706 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
20707
20708         * libc/machine/h8300/strcmp.S: Sign extend the result to
20709         32bits so we don't lose with -mint32.
20710
20711 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
20712
20713         * libc/sys/go32/sys/errno.h: New file.
20714         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
20715         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
20716         errno's address (make compatible with rest of newlib).
20717         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
20718         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
20719
20720 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
20721
20722         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
20723         * libc/machine/sparc/Makefile.in: Build them.
20724         * libc/machine/sparc/machine/sparclet.h: New file.
20725
20726 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
20727
20728         * libc/machine/sh/asm.h: New file.
20729         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
20730         support for SH3e's FP registers.  Use asm.h.
20731
20732 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
20733
20734         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
20735         as first argument.  Call _dtoa_r and pass the reent structure
20736         instead of calling __dtoa.
20737
20738 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
20739
20740         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
20741         the h8300, h8500, and others.  Add comments for some rather
20742         dubious code.
20743
20744 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
20745
20746         * Makefile.in (check): Check that testsuite exists before cd.
20747
20748 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20749
20750         * libc/include/string.h (strsep): Correct prototype.
20751
20752 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
20753
20754         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
20755         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
20756         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
20757
20758 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
20759
20760         * libc/posix/{creat.c,isatty.c}: New files.
20761         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
20762
20763         * libc/sys/sparc64/crt0.S (environ): Delete.
20764         (.LHaveBias): Renamed from HaveBias.
20765
20766 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
20767
20768         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
20769         (_morecore_r): Delete SBRK_IS_ALLOC support.
20770
20771 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20772
20773         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
20774         module rather than touch, so we don't get warning messages when
20775         all of the libraries are combined into libc.a.
20776
20777 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
20778
20779         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
20780         crt0.s replaced by version in libgloss.
20781
20782 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
20783
20784         * libc/reent/Makefile.in (OFILES): Add impure.o.
20785         * libc/reent/impure.o: New file, define initial reentrancy struct.
20786         * libc/reent/reent.c: Remove above definition.
20787
20788         * libm/math/sf_asinh.c: Fix typo.
20789
20790         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
20791         srf_ldexp.o.
20792
20793         * libm/libm.texinfo: Change documentation to reflect changes
20794         in reentrancy model.
20795         * libm/math/w_gamma.c: Likewise.
20796
20797 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
20798
20799         * configure.in (*-*-cygwin32): New.
20800         (*-*-win32): Deleted.
20801         * libc/sys/win32 renamed libc/sys/cygwin32.
20802
20803 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20804
20805         * libc/include/sys/file.h: New include file.
20806
20807 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
20808
20809         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
20810
20811 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
20812
20813         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
20814
20815 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
20816
20817         * doc/makedoc.c (realloc): Declare at file scope.
20818         (catchar): Not here.
20819
20820 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
20821
20822         * Makefile.in (VERSION): Update to 1.7.0.
20823         * {libc,libm}/Makefile.in (VERSION): Likewise.
20824         * configure.in: Minor clean up of multilib stuff.
20825
20826         From David Johnson <davidj@ICSI.Berkeley.EDU>
20827         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
20828
20829         * libc/stdlib/environ.c: New file.
20830         * libc/stdlib/Makefile.in (OFILES): Build it.
20831         * libc/sys/h8500hms/crt0.c (environ): Deleted.
20832         * libc/sys/m88kbug/crt0.c (environ): Deleted.
20833         * libc/sys/z8ksim/crt0.c (environ): Deleted.
20834         * libc/sys/netware/environ.c: Deleted.
20835
20836 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
20837
20838         * configure.in (links): set sys_dir, posix_dir, syscall_dir
20839
20840 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
20841
20842         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
20843         declaration out to external scope and declare it PTR, not char *.
20844
20845 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
20846
20847         * libc/include/sys/unistd.h (getpagesize): New declaration.
20848         (_SC_PAGESIZE): New definition.
20849         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
20850         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
20851
20852 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
20853
20854         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
20855         addressing. System call returns size, not (last address + 1).
20856
20857 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20858
20859         * libm/math/*.c: Removed _foo_r() reentrancy API.
20860         * libc/include/math.h: Removed _foo_r prototypes and macros.
20861
20862         * libm/math/*.c: On systems with IEEE single precision "doubles"
20863         move foo() -> foof() wrapper code from the files that implement
20864         the standard IEEE double precision functions to the files that
20865         implement IEEE single precision functions. (ie. On those systems
20866         sin is moved from s_sin.c to sf_sin.c).  There should eventually
20867         be use of a C extension (like gcc's alias attribute) so that the
20868         wrappers are not needed at all.
20869
20870         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
20871         strict NEC V810 compiler.
20872         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
20873         for same reason.
20874
20875 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20876
20877         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
20878         from NetBSD C library.
20879         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
20880
20881         * libc/stdlib/assert.c (__assert): Renamed from __assertfail
20882         and adapted from implementation I wrote for NetBSD C library.
20883         The difference is __assert doesn't take a format argument,
20884         so that there won't be multiple copies of the same string
20885         constant in the executable if assertions are enabled in
20886         more than one source module.
20887         * libc/include/assert.h (assert): Changed to call __assert.
20888
20889 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20890
20891         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
20892         word1 on systems with 32 bit doubles.
20893         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
20894         so that we can do arithmetic on them.
20895         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
20896         compilers.
20897
20898 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
20899
20900         * libc/sys/arm/crt0.S: Zero bss.
20901
20902 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
20903
20904         * libc/include/unctrl.h: New file.
20905         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
20906         * configure.in (subdirs): Add libc/misc.
20907         * libc/Makefile.in (SUBDIRS): Add misc.
20908         (SUBLIBS): Add misc/lib.a.
20909
20910         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
20911
20912 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
20913
20914         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
20915         (_vfprintf_r): Call CHECK_INIT.
20916
20917 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
20918
20919         * Makefile.in (MULTITOP): Delete.
20920         (MULTISRCTOP, MULTIBUILDTOP): Add.
20921         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
20922         instead of cfg-ml-pos.in.
20923
20924 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
20925
20926         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
20927         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
20928         presence.
20929
20930 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
20931
20932         * libc/string/strtok.c: Include string.h to pick up strtok_r
20933         prototype.
20934
20935 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
20936
20937         * libc/string/strtok.c: include <_ansi.h>.
20938         * libc/time/asctime_r.c: `reresult' -> `result'.
20939
20940 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20941
20942         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
20943         in #ifndef _REENT_ONLY ... #endif conditional.
20944
20945         * libc/include/string.h (_strtok_r): Remove declaration.
20946         * libc/include/time.h (_asctime_r): Remove declaration.
20947         * libc/string/strtok.c (_strtok_r): Removed.
20948         * libc/time/asctime.c (_asctime_r): Removed.
20949
20950         * libc/string/Makefile.in (OFILES): Add new object.
20951         * libc/string/strtok_r.c: New file.  strtok_r function as
20952         specified by POSIX.1c, adapted from strtok implementation
20953         from NetBSD C library.
20954         * libc/string/strtok.c (strtok): Reimplemented in terms of
20955         strtok_r.
20956
20957         * libc/time/Makefile.in (OFILES): Add new objects.
20958         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
20959         New files, reentrant time functions specified by POSIX.1c.
20960         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
20961         reentrant time functions re-written in terms of reentrant
20962         functions.
20963         * libc/time/lcltime.c: Renamed from localtime.c
20964
20965         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
20966         gmtime_r, and localtime_r.
20967
20968 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
20969
20970         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
20971         * libc/include/sys/unistd.h (getlogin): Revert change of
20972         Oct 19.
20973         * libc/include/sys/signal.h (sigprocmask): Change prototype
20974         so it compiles with c++.
20975
20976 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
20977
20978         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
20979         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
20980         to give some room in case we need to align the jmp_buf.
20981
20982         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
20983         the new ppc-asm.h include file the compiler provides to specify
20984         function prologue/epilogue.  Eliminate saves of the xer and ctr
20985         registers, which are volatile.  Before starting to save registers,
20986         align to 8 byte boundary.
20987
20988 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
20989
20990         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
20991         referenced by standard libraries.
20992
20993 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
20994
20995         * libc/unix/Makefile.in, libc/string/Makefile.in,
20996         libc/stdio/Makefile.in, libc/reent/Makefile.in,
20997         libc/posix/Makefile.in:
20998         Remove tabs from otherwise empty line.  Confuses some
20999         older non-GNU versions of "make".
21000
21001 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
21002
21003         * libc/sys/unistd.h (getlogin): Returns const char *.
21004
21005 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
21006
21007         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
21008         * libc/include/errno.h: Moved into and include...
21009         * libc/include/sys/errno.h: New file.
21010         * libc/include/sys/wait.h: New file.
21011         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
21012         * libc/sys/win32/*: Moved out.
21013         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
21014         * configure.in (i[345]86-*-win32): HAVE_RENAME
21015
21016 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
21017
21018         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
21019         avoid macro expansion for these two names.
21020
21021 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
21022
21023         * libc/machine/h8500/psi.S: r6 renamed to fp.
21024
21025 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
21026
21027         * configure.in (powerpc*): No longer need to define
21028         NO_LONGLONG_POINTERS to supress warnings.
21029
21030 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
21031
21032         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
21033         through PTR instead of directly.
21034
21035         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
21036         non-standard constructor support.
21037
21038 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21039
21040         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
21041         address of the Bigint instead of the address of its _x field,
21042         as the size the result buffer was calculated accordingly.
21043         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
21044
21045         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
21046         from NetBSD C library.  No longer special cases division by
21047         zero (which needs to be done by the application anyway), but
21048         it doesn't need to call abs() (or labs()) four times either.
21049
21050         * libc/stdlib/qsort.c: Replaced with implementation from
21051         NetBSD C library.
21052
21053 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21054
21055         * libc/stdio/vfprintf.c: Replaced with implementation from
21056         NetBSD C library (which is derived from the 4.4BSD C library).
21057         * libc/stdio/cvt.c: Removed.
21058         * libc/stdio/Makefile: Updated.
21059
21060 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
21061
21062         * libc/sys/win32/syscalls.c (rename): New.
21063         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
21064
21065 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
21066
21067         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
21068         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
21069
21070         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
21071         (setjmp.o): Delete rule to build setjmp.o.
21072         * libc/sys/sh/setjmp.S: Delete file.
21073
21074 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21075
21076         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
21077         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
21078         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
21079         pow5mult and s2b to identifiers with leading underscores.
21080         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
21081         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
21082
21083 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
21084
21085         * libc/sys/posix/popen.c (sys/types.h): Include.
21086
21087 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
21088
21089         * libc/sys/win32/syscalls.h (fhandler): New struct.
21090         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
21091         (__fhandler_normal): Declare.
21092         (hinfo): New member op_handlers.
21093         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
21094         (__write): Likewise.
21095         (_read, _write, _open, _close, _lseek): Validate fd here.
21096         Move file type specific stuff to foo_normal.
21097         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
21098         New functions.
21099         (__lookup_fhandler): New function.
21100         (__lookup_fhandler_hook, __fhandler_normal): New variables.
21101
21102         From anders.blomdell@control.lth.se (Anders Blomdell)
21103         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
21104         Don't touch standard handles.
21105         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
21106         (_execve): Only create __FD_TABLE__ if necessary.
21107         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
21108
21109 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
21110
21111         * libc/sys/win32/sys/termios.h (FLUSHO): New.
21112         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
21113         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
21114         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
21115         without a handler is received.
21116         * libc/sys/win32/Makefile.in: Remove --nodelete.
21117         * libc/sys/win32/resouce.c (gettimeofday): New.
21118         * libc/sys/win32/syscalls.c (path_to_real_path): New.
21119         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
21120
21121 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
21122
21123         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
21124         Don't append "/*" to search pattern if trailing '/' already there,
21125         append "*".
21126         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
21127         like /'s, convert them to \'s.  Handle //<drive>/ path names.
21128         Add space for quoted \'s in arg string.  Print translated prog name
21129         and original prog name.
21130         (_execve): Handle parent doing exec a teensy bit better.
21131         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
21132         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
21133         path needs conversion, handle both cases.  Delete `const' from result.
21134         (hash_path_name): New function.
21135         (_open): Call it.
21136         (_stat): Likewise.  Fill in more fields for directories.
21137         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
21138         (wait_for_any): Fix trace message.
21139         (waitpid): Explicitly test for intpid == 0.
21140
21141         From anders.blomdell@control.lth.se (Anders Blomdell)
21142         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
21143         so `next' is valid.
21144
21145 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
21146
21147         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
21148         complicated.
21149
21150 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
21151
21152         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
21153         at all, not just == 1.
21154         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
21155
21156 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
21157
21158         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
21159         * libc/sys/win32/include/wintypes.h: include <winnt.h>
21160         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
21161         file.
21162
21163 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
21164
21165         * libc/sys/syscalls.c (getcwd): Fix off by one error.
21166
21167         * libc/sys/signal.c (sleep): Fill it in.
21168         * libc/sys/termios.c (tcflush): Use PurgeComm
21169         (tcsetattr): Set some more of the bits.
21170         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
21171
21172 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
21173
21174         * libc/sys/arm/crt0.S (fp): Initialize to 0.
21175         Conditionally include .idata$3 stuff ifdef __pe__.
21176
21177 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
21178
21179         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
21180         * libc/sys/win32/pipe.c (pipe): Ditto.
21181         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
21182         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
21183         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
21184         (tcgetattr): Contents are new.
21185         * libc/sys/win32/include/winkernel.h (DCB): New.
21186         (GetCommState, SetCommState): New.
21187
21188 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
21189
21190         * libc/sys/arm/crt0.S (_start): Define.
21191
21192 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
21193
21194         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
21195         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
21196
21197         * libc/sys/win32/sysconf.c: New
21198         * libc/sys/win32/sys/winadvapi.h: New
21199         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
21200         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
21201         * libc/sys/win32/pipe.c (pipe): Ditto.
21202         * libc/sys/win32/signal.c (_raise): New.
21203         (_kill): Moved from spawn.c
21204         * libc/sys/win32/spawn.c (kill): Moved to signal.c
21205         * libc/sys/win32/syscalls.c (__read): Use new fields.
21206         (_open): Ditto.
21207         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
21208         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
21209         * libc/include/sys/unistd.h (rmdir): Takes const path.
21210         * libc/include/sys/stat.h (mkdir): Takes const path.
21211         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
21212
21213 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
21214
21215         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
21216
21217         Add support for specifying paths as //<drive>/foo/bar.
21218         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
21219         (__path_to_real_path): Declare.
21220         (PATH_TO_REAL_PATH): New macro.
21221         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
21222         (__path_needs_conversion_p, __path_to_real_path): New functions.
21223         (_open): Fix test for error return from CreateFileA.
21224         Handle new path syntax.
21225         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
21226         * libc/sys/win32/dirsearch.c (opendir): Likewise.
21227
21228 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
21229
21230         * libc/sys/win32/include/*.h: Reorganized
21231         * libc/sys/win32/include/WINREADME: New.
21232         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
21233         * libc/sys/win32/*.c: Fix for new include scheme.
21234         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
21235         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
21236         * libc/sys/win32/passwd.c (*): Fix.
21237         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
21238         (_stat): Get directory owner and permissions right.
21239         * libc/sys/win32/syscalls.h (uinfo): New.
21240         * libc/sys/win32/version.def: Remove leading underscores.
21241
21242 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21243
21244         * libc/sys/win32/key.c: include "include/wincon.h".
21245
21246 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
21247
21248         * libc/sys/win32/{key, stubs}.c: New.
21249         * libc/sys/win32/Makefile: Adjust to cope.
21250         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
21251         (environ_init): Change env names to upper case.
21252         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
21253         * libc/sys/win32/passwd.c (*): Fill in the functions.
21254         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
21255         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
21256         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
21257         (_open): Initialze hmap->execable_p too.
21258         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
21259         (_fstat): Fill in permissions.
21260         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
21261
21262 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
21263
21264         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
21265         if defined.
21266         (cfg-ml-pos.in invocation): Likewise.
21267
21268 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21269
21270         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
21271         s_isnan.o and sf_isnan.o.
21272
21273 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
21274
21275         * All Makefile.in files: added maintainer-clean target as a
21276         synonym for realclean.
21277
21278 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
21279
21280         * libc/include/machine/setjmp.h: Add hppa support.
21281         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
21282         support.
21283         * libc/machine/hppa/Makefile.in: Related changes.
21284
21285 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
21286
21287         * configure.in (machine_dir): Don't set for v810-*-*.
21288
21289 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21290
21291         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
21292         conventions correctly.
21293
21294 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
21295
21296         * libc/stdio/puts.c: Update documentation of return value to match
21297         ANSI standard.
21298
21299 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
21300
21301         Fix file descriptor inheritance.
21302         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
21303         (NOT_OPEN_FD): Fix.
21304         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
21305         close-on-exec flag not set.  Initialize child's entire fd table.
21306         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
21307         CHILD_P.
21308         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
21309         if CHILD_P.  Initialize entire hmap entry.
21310         (dup): Only create new handle as inheritable if CHILD_P.
21311         (dup2): Likewise.  Properly initialize hmap entry.
21312
21313         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
21314         _spawn.
21315         (_exit): Use CHILD_P.
21316         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
21317         (_stat): Likewise.
21318
21319 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21320
21321         * libc/sys/win32/crt0.c (passover): fix up the state table.
21322         * libc/posix/popen.c: Added.
21323         * libc/posix/Makefile.in: compile popen.c.
21324
21325 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
21326
21327         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
21328         h8/500 define _DOUBLE_IS_32BITS.
21329
21330 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
21331
21332         Get vfork/exec/spawn/cwait/wait working again.
21333         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
21334         (procinfo): New member vfork_level.
21335         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
21336         (vfork_init_first): Use GetCurrentProcessId to get pid.
21337         Initialize vfork_level.
21338         (vfork_init): Delete __PID__.
21339         (environ_init): New function.  Undo patch of Aug 19, Posix says
21340         environment variables are case sensitive.
21341         (mainCRTStartup): Call it.
21342         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
21343         (my_longjump: Make static.
21344         (_spawn): New argument `h'.  Delete setting of __PID__.
21345         Delete local `idx'.  Look for chars that need quotes, rather than
21346         ones that don't.  Set handle of created process in `h'.
21347         Result is process id if created task.
21348         (allocate_spawn_entry): New function.
21349         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
21350         (_execve): Set __FD_TABLE__ before spawning child.
21351         Scan our fd table when passing fds, not our parent's.
21352         Store handle and pid in procinfo entry.
21353         (vfork0): Ensure strace message always printed.
21354         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
21355         (vfork): Don't clobber result of vfork0.
21356         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
21357         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
21358
21359         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
21360         and `exit_code'.
21361         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
21362         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
21363         adding vfork level to pseudo-pid.
21364         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
21365         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
21366         (_exit): If child, set exit code.
21367         (__vfork_record_death): Only close process handle if valid.
21368         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
21369         didn't exec.
21370         (wait_for_any): Likewise.  Start scan after root entry.
21371
21372 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
21373
21374         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
21375         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
21376         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
21377         of actual file length.
21378
21379         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
21380         * libc/include/paths.h: _PATH_BSHELL added.
21381         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
21382         and STDERR_FILENO.
21383
21384 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
21385
21386         * libc/include/ar.h: Added.
21387         * libc/include/sys/types.h: ino_t goes back to 32-bits.
21388         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
21389         * libc/sys/win32/syscalls.c (_open): compute .namehash based
21390         on filename.
21391         (_fstat): use .namehash for inode number of the fd.
21392
21393 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
21394
21395         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
21396          Change hinfo to __this_procinfo.
21397         * libc/sys/win32/crt0.c: Remove procinfo_list.
21398
21399 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21400
21401         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
21402         win32 environment.
21403
21404 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
21405
21406         * libc/sys/win32/include/grp.h: Removed.
21407         * libc/sys/include/grp.h: Added.
21408         * libc/sys/win32/grp.c: Include <grp.h>.
21409
21410 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
21411
21412         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
21413         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
21414         Defined for all but strict ANSI.
21415         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
21416         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
21417         * libc/signal/signal.c (_signal_r): Changed from using
21418         _MAX_SIGNALS to NSIG.
21419         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
21420          __hmap): Deleted.
21421         (__strace, __vfork_next_pid): New.
21422         (__exe_suffix): Default to 1.
21423         (passover, table): Understand quoted arguments.
21424         (vfork_init_first): New.
21425         (vfork_init): Initialize new process structure.
21426         (mainCRTStartup): Pass environ to main.
21427         * exceptions.c (__sig_mask): New
21428         (ehandler3): Ignore signals in mask.
21429         (really_exit): Remove CHILD_P test.
21430         * pipe.c (pipe, dup, dup2): Use new process and file structure.
21431         * resource.c (getrusage): Ditto.
21432         * signal.c (sigprocmask): New.
21433         * spawn.c (*): Rewritten.
21434         * syscalls.c (*): Use new process and file structure.
21435         (find_unused_handle): New.
21436         * syscalls.h (MAX_HANDLES): Deleted.
21437         (hinfo): Removed child_created_p.
21438         (MAX_CHILDREN): Deleted.
21439         (vfork_jmp_info, procinfo): New.
21440         * wait.c (*): Mostly new.
21441         * sys/strace.h (_STRACE_PARANOID): New.
21442         * sys/param.h: New file.
21443
21444 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21445
21446         * libc/include/sys/stat.h: add S_BLKSIZE.
21447         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
21448         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
21449         types under win32.
21450         (mode_t): add a #else to avoid multiple definitons.
21451
21452         * libc/sys/win32/Makefile.in: add grp.c.
21453         * libc/sys/win32/grp.c: include grp.h correctly.
21454         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
21455         of the st structure with real information.
21456         * libc/sys/win32 (dirent): d_ino is of type ino_t.
21457
21458 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
21459
21460         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
21461         and (maybe) sparc64.
21462         (nlink_t): Provide typedef.
21463
21464 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
21465
21466         * libc/sys/win32/grp.c: New file.
21467         * libc/sys/win32/include/grp.h: New file.
21468
21469 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21470
21471         * libc/include/machine/ieeefp.h: Added whitespace to make this
21472         file easier to maintain.
21473         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
21474         depending on the value of __LITTLE_ENDIAN__.
21475         On the sh3e, define _DOUBLE_IS_32BITS.
21476
21477 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
21478
21479         * libc/sys/vr4300/syscalls.c: Added missing support
21480         routines. _raise() and getpid().
21481
21482 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
21483
21484         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
21485
21486 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
21487
21488         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
21489         and VR4300 processor.
21490         * libc/sys/vr4300: Add directory.
21491         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
21492         monitor run-time support.
21493
21494 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21495
21496         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
21497         * libc/stdlib/stdlib.tex: Don't include atol.def.
21498
21499 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21500
21501         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
21502
21503 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
21504
21505         * libc/ctype/Makefile.in: Fill in _to* dependencies.
21506
21507 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
21508
21509         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
21510         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
21511         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
21512         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
21513         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
21514
21515 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21516
21517         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
21518
21519 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21520
21521         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
21522         * libc/stdlib/atoff.c: New file.
21523         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
21524         * libc/stdlib/atoi.c (atol): Removed.
21525         * libc/stdlib/atol.c: Removed duplicate documentation.
21526
21527         * libc/include/ctype.h (_tolower, _toupper): Moved inside
21528         #ifndef _STRICT_ANSI conditional.
21529         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
21530         * libc/ctype/_tolower.c: New file.
21531         * libc/ctype/_toupper.c: New file.
21532         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
21533         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
21534         * libc/ctype/toascii.c (_toascii): Removed.
21535
21536 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
21537
21538         * libc/sys/sparc64/sys/types.h: Deleted.
21539
21540 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21541
21542         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
21543         and recognize Windows_95 systems.
21544
21545 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21546
21547         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
21548         and passed fds should be opened in text mode.
21549
21550 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
21551
21552         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
21553         in __hmap, set to binary mode by default.
21554
21555 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21556
21557         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
21558         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
21559         vector 34.
21560
21561 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
21562
21563         * Makefile.in (install): Install all libraries found in the
21564         top level.  If there's a sys/<type>/include directory,
21565         install those headers into include.
21566
21567         * libc/sys/win32/kernel.def351: Delete
21568         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
21569         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
21570         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
21571         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
21572         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
21573         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
21574         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
21575         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
21576
21577         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
21578         * libc/sys/win32/crt0.c: Force all env names to upper case.
21579         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
21580         * libc/sys/win32/*.c: Headers have moved.
21581         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
21582         __vfork_child_idx is now __vfork_child_ptr.
21583
21584         * posix/execvp (execvp): Don't crash if no PATH envname.
21585
21586 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21587
21588         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
21589         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
21590         through the _freelist instead of through the _reclaim list.
21591         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
21592         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
21593         sources.
21594
21595 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21596
21597         * libc/machine/h8500/setjmp.S: New file.
21598         * libc/include/machine/setjmp.h: Updated for H8/500.
21599
21600 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
21601
21602         * libc/sys/win32/syscalls.c (_open): More stracing.
21603         (_stat): Open the file in O_BINARY.
21604
21605 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21606
21607         * libc/machine/h8300/setjmp.S: New file.
21608         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
21609
21610 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
21611
21612         * libc/sys/win32/crt0.c (__exe_suffix): New global.
21613         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
21614         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
21615         __exe_suffix.  Free fd_tab after setting env variable.
21616         (spawnv,_execve): Update.
21617         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
21618         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
21619         (__small_vfprintf): New function.
21620         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
21621         * libc/sys/win32/wait.c (cwait): Validate argument.
21622
21623         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
21624         (process_deletion_queue): Likewise.
21625
21626         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
21627
21628 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
21629
21630         * libc/sys/win32: Copyrights and gratuitous indenting.
21631
21632 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
21633
21634         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
21635         (process_deletion_queue): Likewise.
21636         (__close_all_files): New function.
21637         (_close): Only queue file deletion if really a file.
21638         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
21639         _P_APPEND_EXE.
21640         (_exit): Call __close_all_files.
21641
21642         * libc/stdlib/system.c: #include <errno.h>.
21643         (_system_r): Fix results in -DNO_EXEC case.
21644
21645         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
21646         Reorganize structure.
21647         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
21648         if argument is valid.  Save directory name in DIR.  malloc space
21649         for dirent struct separately.
21650         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
21651
21652         * libc/include/errno.h (ENAMETOOLONG): Define.
21653         * libc/string/strerror.c (strerror): Reword ENFILE.
21654         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
21655
21656 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
21657
21658         * libc/sys/win32/crt0.c (__progname): New global.
21659         (mainCRTStartup): Support strace=bitmask,filename.
21660         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
21661         * libc/sys/win32/syscalls.c (_write): Print parent trace message
21662         if error.
21663         (getcwd): Handle len too small.  Convert '\\' to '/'.
21664         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
21665         Add prototypes for open, creat, fcntl.
21666         (O_APPEND): Change value to conform to Microsoft's value.
21667         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
21668
21669         * libc/stdlib/getopt.c: New file.
21670         * libc/stdlib/Makefile.in: Build it.
21671
21672 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
21673
21674         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
21675         Fix scanning of $PATH.
21676         * libc/posix/exec*.c: Call _execve, not execve.
21677         * libc/posix/execve.c: New file.
21678         * libc/posix/Makefile.in (OFILES): Add execve.o.
21679
21680         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
21681         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
21682         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
21683         * libc/sys/win32/crt0.c: Update _STRACE calls.
21684         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
21685
21686         * libc/sys/win32/smallprint.c (rn): Fix digit list.
21687
21688         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
21689         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
21690         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
21691         Print __seterrno trace message first.
21692         (_execve): Renamed from execve.
21693         (vfork): Update __strace usage.
21694         (__vfork_child_pid): Deleted.
21695         (__vfork_children, __vfork_child_idx): New globals.
21696         (_spawnvp): New function.
21697         (spawnvp, spawnv, _execve): Call _spawnvp.
21698         (init_child): Record child in __vfork_children.
21699         (__vfork_get_entry, __vfork_record_death): New functions.
21700         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
21701         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
21702         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
21703         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
21704         (children): New typedef.
21705         (__vfork_children,__vfork_child_idx): Declare.
21706         (__vfork_get_entry,__vfork_record_death): Declare.
21707         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
21708         (waitpid): Handle pid == -1.
21709         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
21710         * configure.in (i386-win32): Add -DNO_FORK.
21711         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
21712         * libc/reent/execr.c (_fork_r): Likewise.
21713         * libc/stdlib/system.c (do_system): New function.
21714         If WIN32, try to get shell path from $SH_PATH, use vfork.
21715         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
21716         otherwise return 0.
21717
21718 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
21719
21720         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
21721         * libc/sys/win32/fcntl.h: Don't include self.
21722         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
21723         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
21724         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
21725         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
21726         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
21727         Correct prototypes.
21728         * libc/sys/win32/strace.c: New file.
21729         * libc/sys/win32/smallprint.c: New file.
21730         * libc/sys/win32/crt0.c (func): Delete.
21731         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
21732         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
21733         * libc/sys/win32/exceptions.c: Lint.
21734         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
21735         Clean up handle usage.
21736         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
21737         (open.c): Default file type is text.
21738         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
21739         * libc/sys/win32/advapi32.def: New
21740
21741 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
21742
21743         * configure.in (posix_dir, libc_posix_lib): New variables.
21744         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
21745         (i[345]86-*-win32): Define posix_dir.
21746         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
21747         (if unix_dir): Fix typo.
21748         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
21749         scandir,seekdir,telldir}: New files.
21750         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
21751         from libc/unix.
21752         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
21753         (SUBDIRS): Add posix.
21754         (SUBLIBS): Add $(LIBC_POSIX_LIB).
21755
21756         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
21757         (NSIG): Increase to 21.
21758         * libc/include/sys/unistd.h (pid_t): Move from here,
21759         * libc/include/sys/types.h (pid_t): to here.
21760
21761         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
21762         (__ptrace): Delete.
21763         (hinfo): New members close_exec_p, child_created_p.
21764         (struct exception_list): Define.
21765         (__hmap): Redefine as pointer to table.
21766         (__parent_hmap, __child_hmap): New globals.
21767         (__set_errno, __really_exit): Declare.
21768         (__vfork_child_pid): Declare.
21769         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
21770         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
21771         (__parent_hmap, __child_hmap): New globals.
21772         (__hmap): Redefine as pointer to active map.
21773         (__get_console): New function.
21774         (mainCRTStartup): Change leading '=' in environ vars to '!'.
21775         (env __FD_TABLE__): Watch for this and initialize our fd/handle
21776         mapping table from it if defined.
21777         (argv, envp): Dump if __strace >= 4.
21778         (main): Call here.
21779         * libc/sys/win32/exceptions.c (myp): Redefine.
21780         (__syscalls_b): Delete.
21781         (__stack_trace): New function.
21782         (ehandler3): Update to use _STRACE.  Print stack trace.
21783         Call __really_exit instead of exit.
21784         (init_exceptions): Delete args argc,argv.  New arg mine.
21785         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
21786         FindFirstFileA, FindNextFileA, GetComputerNameA,
21787         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
21788         * libc/sys/win32/signal.c (signal): Validate arg.
21789         (alarm, sleep): Define as stubs for now.
21790         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
21791         (__syscalls_b, errno): Delete.
21792         (__vfork_child_pid, __vfork_jmp_buf): New globals.
21793         (__seterrno): Handle more errors.
21794         (__sys_printf): Renamed from _ptrace.
21795         (__really_exit): New function.
21796         (queue_file_deletion, process_deletion_queue): New functions.
21797         (__resume_parent): New function.
21798         (_unlink): Handle trying to delete open file.
21799         (__totime_t): Renamed from totime_t.
21800         (setsid, __read, __write): New functions.
21801         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
21802         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
21803         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
21804         * libc/sys/win32/console.c: Update to new definition of __hmap.
21805         * libc/sys/win32/Makefile.in: Build new files.
21806         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
21807         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
21808         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
21809         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
21810
21811 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
21812
21813         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
21814
21815 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21816
21817         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
21818         have been made to the master dtoa.c sources (from netlib.att.com)
21819         since they were integrated into newlib in early 1992.  Fixes
21820         problems with storage leaks and handling of numbers with very
21821         negative exponents.
21822
21823 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21824
21825         * Makefile.in (all): set rootpre and srcrootpre before calling
21826         sub-makes.
21827
21828 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
21829
21830         * libc/sys/win32/crt0.c: Change __hmap usage.
21831         * libc/sys/win32/exceptions.c: Use _ptrace call.
21832         * libc/sys/win32/syscalls.c: Use _ptrace call.
21833         (read, write): Cope with DOS style CRLF when in TEXT mode.
21834         * libc/sys/win32/syscalls.h: Declare hinfo struct.
21835         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
21836         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
21837         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
21838         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
21839
21840 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21841
21842         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
21843
21844         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
21845         wrappers for hypot() and remainder() for BSD libm compatibility.
21846         These are public domain implementations written by me for the
21847         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
21848         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
21849         (fobj): Added wf_cabs.o and wf_drem.o.
21850
21851 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21852
21853         * libc/sys/h8500hms/misc.c: New file.
21854         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
21855
21856 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21857
21858         * libc/time/localtime.c (localtime): Fix problem with leap year
21859         handling.  Stole algorithm from Arthur David Olson's tz code.
21860
21861 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
21862
21863         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
21864
21865         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
21866         (_exit): Use argument.
21867
21868 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
21869
21870         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
21871
21872 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
21873
21874         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
21875
21876 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21877
21878         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
21879         target_cflags.
21880
21881 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
21882
21883         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
21884         ptrace with case insensitivity
21885         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
21886         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
21887         New files.
21888
21889 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
21890
21891         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
21892         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
21893         (all, install, *clean): Use new multilib support.
21894         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
21895
21896 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
21897
21898         * libc/include/sys/signal.h (__WIN32__): New.
21899
21900         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
21901
21902         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
21903         (ulp, b2d): Handle 32 bit doubles.
21904         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
21905         * libc/stdlib/strtod.c (_strtod_r): Ditto.
21906
21907 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
21908
21909         from medp@primag.co.uk:
21910         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
21911         dynamically allocated buffers.
21912
21913 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
21914
21915         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
21916         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
21917
21918 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
21919
21920         * configure.in (powerpc): Fix previous fix.
21921
21922 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
21923
21924         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
21925         directories for this target.
21926
21927 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
21928
21929         * configure.in (hppa): Add machine_dir definition.
21930         * libc/machine/hppa: New directory with PA specific implementations
21931         of the basic memory/string functions.
21932
21933 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
21934
21935         * configure.in: Update current PowerPC multilib directories.
21936         Split big and little endian configurations.
21937
21938 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
21939
21940         * configure.in: Add --enable-single-float option to configure to
21941         control use of MIPS single-float directories.  Default to yes.
21942
21943         * Makefile.in (all): Don't recurse into multilib directory if it
21944         does not exist.
21945
21946 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21947
21948         * libc/sys/sh/syscalls.c: Fix typo.
21949
21950 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
21951
21952         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
21953         Pass down DLLTOOL.
21954         * libc/include/process.h: Define WAIT_CHILD.
21955         * libc/include/types.h: Get sizes right for win32.
21956         * configure.in (i386-*-pe): Becomes i386-win32.
21957         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
21958         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
21959         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
21960         is defined.
21961
21962 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
21963
21964         * configure.in (i[345]86-*-pe):  New target (NT).
21965         * host/any: DLLTOOL new.
21966         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
21967         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
21968         WIN32 (just enough to cross host the comp-tools).
21969
21970 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
21971
21972         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
21973         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
21974
21975 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
21976
21977         * libc/include/machine/ieeefp.h (arm): Change to always be
21978         __IEEE_BIG_ENDIAN (even on little endian ARM's).
21979
21980 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
21981
21982         * libc/sys/crt0.S: Initialze sp, and call exit after main.
21983         * libc/sys/syscalls.c (abort): New.
21984         * configure.in (arm): Define ABORT_PROVIDED.
21985
21986 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
21987
21988         * configure.in (powerpc): Define multidirs.
21989
21990 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
21991
21992         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
21993
21994 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
21995
21996         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
21997
21998 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
21999
22000         * configure.in, libc/include/machine/ieeefp.h: Modified
22001         for arm:
22002         libc/machine/arm/*, libc/sys/arm/*: New
22003
22004 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
22005
22006         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
22007           __powerpc__ when determining endianness.
22008
22009 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
22010
22011         * configure.in (m68*): Add multidir for the m68332.
22012
22013         * host/any (CC): Fix typo in last change.
22014
22015 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
22016
22017         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
22018         when determining endianness.
22019         * libc/include/machine/ieeefp.h: Ditto.
22020         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
22021         operands.
22022
22023 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
22024
22025         * libc/include/errno.h (ENOTEMPTY): Define.
22026
22027 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
22028
22029         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
22030           target_cflags.
22031
22032         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
22033           and umultiply.o.
22034
22035         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
22036           instead of only when open succeeds.  ANSI requires that multiple
22037           calls to tmpnam() result in different files.
22038
22039         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
22040           objects pulled in from /lib/libc.a that must be renamed before
22041           being pulled into newlib.  /lib/libc.a's div.o conflicted with
22042           newlib's file with the same name.
22043
22044         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
22045
22046         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
22047           the build tree will only be used if the executables are present
22048           (instead of just the Makefiles).
22049
22050         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
22051           wcstombs): Define.
22052         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
22053           versions of these functions that I orignally wrote for the
22054           NetBSD C library.
22055         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
22056           versions I wrote for NetBSD.
22057
22058 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
22059
22060         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
22061         * libc/sys/sparclite/crt0.s: ditto.
22062
22063 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
22064
22065         * configure.in: Add soft-float for proelf.
22066
22067 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
22068
22069         * libc/stdlib/mprec.h (Bcopy): Copy the right number
22070         of bytes.
22071
22072 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
22073
22074         * Makefile.in (all): Depend on `force'.
22075         * configure.in (syscall_dir): Renamed from fake_sys_dir.
22076         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
22077         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
22078         * libc/Makefile.in: Likewise.
22079         * libc/include/reent.h: Update syscall references.
22080         (_fcntl_r): Add prototype.
22081         * libc/syscalls/*.c #include <reent.h>.
22082         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
22083
22084 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
22085
22086         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
22087         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
22088         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
22089         (time.h, sys/types.h): Always include (even if MSDOS).
22090         (stat): Fix prototype.
22091
22092 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
22093
22094         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
22095
22096 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
22097
22098         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
22099
22100 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
22101
22102         * libc/include/regdef.h: New file.
22103         * libc/machine/mips/machine/regdef.h: New file.
22104
22105 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
22106
22107         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
22108
22109 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
22110
22111         * libc/sys/sh/crt0.S: Pass main's return to exit.
22112         * libc/sys/sh/trap.S: Put errno in the right place.
22113
22114 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
22115
22116         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
22117         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
22118         * libm/math/ef_rem_pio2.c: Likewise.
22119         * libm/math/e_log10.c: Remove unused static one.
22120         * libm/math/ef_log10.c: Likewise.
22121         * libm/math/s_frexp.c: Likewise.
22122         * libm/math/sf_frexp.c: Likewise.
22123
22124 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
22125
22126         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
22127         longjmp.S: Upgraded.
22128         * libc/sys/go32/sys/setjmp.h: Upgraded.
22129         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
22130
22131 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
22132
22133         * configure.in: Add many entries to multidirs for mips targets.
22134
22135 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
22136
22137         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
22138           5.2 which fixes bug where jn(-1,x) is three times larger than
22139           the actual answer.
22140         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
22141
22142 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
22143
22144         * libc/sys/w65/sys/syscalls.h: New file
22145         * libc/include/machine/ieeefp.h: W65 support.
22146         * libc/include/sys/config.h: Ditto.
22147         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
22148         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
22149         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
22150
22151 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
22152
22153         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
22154
22155 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
22156
22157         * Makefile.in, configure.in: Remove any references to the old
22158         "stub" dir.
22159
22160 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
22161
22162         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
22163         uses ... in prototype.
22164
22165
22166 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
22167
22168         * libc/sys/a29khif/sys/libconfig.h: Remove.
22169         * libc/sys/go32/sys/libconfig.h: Remove.
22170         * libc/sys/sun4/sys/libconfig.h: Remove.
22171         * libc/sys/sysvi386/sys/libconfig.h: Remove.
22172         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
22173         * libc/sys/sparc64/sys/libconfig.h: Remove.
22174
22175         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
22176         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
22177         * libc/include/math.h: Change all uses of _FLOAT_RET and
22178         _FLOAT_ARG to float.
22179         * libm/test/math.c: Likewise.
22180         * testsuite/libm.sac/math.c: Likewise.
22181         * testsuite/libm.sac/working/math.c: Likewise.
22182
22183 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
22184
22185         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
22186         gcc calls gas with endian option.
22187         * configure.in (sh): Build little endian version too.
22188
22189 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
22190
22191         * configure.in: Configure big and little endian versions for MIPS
22192         targets.
22193
22194 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
22195
22196         * libc/include/limits.h: Deleted.
22197         * libc/include/machine/limits.h: Deleted.
22198
22199 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
22200
22201         * ChangeLog: Remove stub directory. This has all been rewritten
22202         and moved to devo/libgloss.
22203
22204 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
22205
22206         * Makefile.in (dvi): Add to info target, use $@ in sub make.
22207         (docs): Merge into info target.
22208         * libm/Makefile.in (dvi): Add $(srcdir).
22209         * libm/math/Makefile.in (chobjs): Remove underscores from file
22210         names.  Texinfo doesn't like them.
22211         (wacos.def, ...): Add explicit targets for all .def files.
22212         * libm/math/math.tex: Remove underscores from @include file names.
22213         * doc/Makefile.in (dvi): Add dummy target.
22214         * testsuite/Makefile.in (dvi): Add dummy target.
22215
22216 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
22217
22218         * Makefile.in (VERSION): Define.  For net newlib releases.
22219
22220 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
22221
22222         * README: New file.
22223
22224 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
22225
22226         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
22227
22228 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22229
22230         * libc/stdlib/setenv.c (_findenv): Declare.
22231
22232         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
22233         fcntl to not use _EXFUN, and change string parameters to open and
22234         creat to be ``const char *''.
22235         * libc/sys/sparc64/sys/fcntl.h: Likewise.
22236         * libc/sys/sparc64/creat.c (creat): Make PATH const.
22237         * libc/syscalls/sysopen.c: Include <fcntl.h>.
22238         (open) Make _FILE const.
22239         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
22240         (_creat): Make PATH const.
22241         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
22242         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
22243         * libc/sys/m88kbug/syscalls.c (open): Likewise.
22244         * libc/sys/sh/syscalls.c (_open): Likewise.
22245         * stub/shared/glue.c (open): Make BUF const.
22246         * stub/ex93x/syscalls.c (open): Make FILENAME const.
22247
22248 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
22249
22250         * libc/include/errno.h: Add ENMFILE
22251         * libc/include/sys/config.h: Support Z8000.
22252         * libc/include/sys/signal.h: New signals for go32.
22253         * libc/machine/h8500/psi.S (__addpsir0r0): New function
22254         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
22255         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
22256         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
22257         size is variable, depending upon CHUNK_POWER.
22258         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
22259
22260 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
22261
22262         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
22263
22264 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22265
22266         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
22267
22268 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22269
22270         * configure.in: Change i[34]86 to i[345]86.
22271
22272         * libc/include/math.h: Don't define HUGE_VAL if it is already
22273         defined.
22274
22275 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22276
22277         * testsuite/libm.sac/test_erfc.c: Correct some result values.
22278         * testsuite/libm.sac/test_gammaf.c: Likewise.
22279         * testsuite/libm.sac/test_sin.c: Likewise.
22280         * testsuite/libm.sac/test_tanh.c: Likewise.
22281
22282 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22283
22284         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
22285         already set.  Define typedefs __int32_t and __uint32_t.
22286         * libc/include/math.h: Include <machine/ieeefp.h>.
22287         (union __dmath): Use __uint32_t.
22288         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
22289         instead of int and unsigned int.
22290
22291 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22292
22293         Replace the math library with the SunPRO fdlibm package.
22294         * libm/math: Completely changed all files.
22295         * libm/ieeefp: Remove contents and directory.
22296         * libm/Makefile.in (LIBM_FP_LIB): Remove.
22297         (SUBDIRS): Just set to math/lib.a.
22298         * libm/libm.texinfo: Updated for new library.
22299         * libc/include/math.h: Extensive changes for new math library.
22300         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
22301         from _FLOAT_ARG to float.
22302         (maxpowtwo, maxpowtwof): Don't declare.
22303         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
22304         (libm_fp_lib): Removed.
22305         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
22306         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
22307         argument to ${RUNTEST}.
22308         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
22309         (.c.o): New rule.
22310         (RUNTESTFLAGS): Set CC and CFLAGS.
22311         (TESTS): Remove test_log2 and test_log2f.
22312         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
22313         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
22314         _FLOAT_ARG, for single precision argument type.
22315         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
22316         expected failure.  Close the input pipe.
22317         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
22318         Correct misspelling of inaccurate.
22319         (test_mok): Use ``inaccurate'', not ``wrong''.
22320         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
22321         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
22322         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
22323         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
22324         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
22325         test_yn.c): Correct many result values.  Many are still wrong.
22326
22327         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
22328         just copy the string.
22329         (_gcvt): Always return the buffer.
22330
22331 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
22332
22333         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
22334
22335 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
22336
22337         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
22338         structure.
22339         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
22340         (_reclaim_reent): declare new entry point.
22341         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
22342         functions.
22343
22344         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
22345         ever allocated, so that we can later reclaim them all.
22346         (pow5mult): make reentrant.
22347
22348         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
22349         so that when given NULL as a buffer, return a pointer to static
22350         space in the rent structure.  This is not documented behaviour;
22351         it's only to support ecvt and fcvt, which aren't ANSI anyway.
22352         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
22353         therefore become reentrant).
22354
22355         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
22356
22357 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22358
22359         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
22360
22361 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
22362
22363         * Makefile.in: Make link to libg.a after libc.a; this is needed
22364           for the testsuites to build executables when everything comes
22365           from the tree.
22366
22367 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
22368
22369         * libc/Makefile.in: Add a VERSION variable so we can keep track.
22370         * libm/Makefile.in: Add a VERSION variable so we can keep track.
22371
22372 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
22373
22374         * libc/include/stdio.h: Use __VALIST, not va_list.
22375
22376 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
22377
22378         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
22379         testsuite/libm.sac/execute.exp:
22380           Replace error proc calls with perror calls.
22381
22382 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
22383
22384         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
22385         * libc/include/time.h: #define NULL as 0L.
22386
22387 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
22388
22389         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
22390         care of it.
22391
22392 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22393
22394         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
22395         not __unix__.
22396
22397 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
22398
22399         * configure.in (TARGET_CFLAGS): Set -O2 as default.
22400         (z8k-*-*): Use syscalls fake sys dir.
22401         * libc/sys/z8k/glue.c: Rename syscalls.
22402         * libc/sys/go32/Makefile.in: Use new routines.
22403         * libc/machine/Makefile.in: Fix typo in ln stuff.
22404
22405 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22406
22407         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
22408         * libc/Makefile.in (crt0.o): Likewise.
22409         * libc/machine/Makefile.in (lib.a): Likewise.
22410         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
22411
22412         All Makefile.in files: Added mostlyclean, realclean and distclean
22413         targets.
22414
22415         * Makefile.in: Don't bother to unexport XTRAFLAGS or
22416         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
22417         the top level Makefile.
22418
22419 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
22420
22421         * libc/sys/sparc64/sys/stat.h: New file.
22422         * libc/sys/sparc64/sys/time.h: New file.
22423         * libc/sys/sparc64/sys/types.h: New file.
22424
22425 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
22426
22427         * stub/ex93x/crt0.s (start): Add code to clear bss.
22428
22429 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
22430
22431         * libc/include/sys/types.h (time_t): Properly protect inside
22432         #ifndef __time_t_defined.
22433
22434         * libc/stdio/fileno.c: New file.
22435         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
22436         (fileno.o): Add dependency.
22437         * libc/include/stdio.h (__sgetc): Rename never to _never.
22438         (fileno macro): Disable, needs to do CHECK_INIT first.
22439
22440 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
22441
22442         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
22443         goal.
22444
22445         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
22446         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
22447         runtest.
22448         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
22449         runtest.
22450
22451 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
22452
22453         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
22454         of the various constants.
22455
22456 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
22457
22458         * libc/include/math.h: #ifndef __math_68881 around things which
22459         conflict with the (gcc-provided) inline functions in
22460         gcc/ginclude/math-68881.h.
22461
22462 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
22463
22464         * libc/include/_syslist.h (_gettimeofday): Define.
22465         (_times): Ditto.
22466         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
22467         (struct tms, timeval, timezone): Declare.
22468         (_gettimeofday_r, _times_r): Declare.
22469         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
22470         #ifdef _CLOCK_T_ surrounding definition of clock_t.
22471         (time_t): Add multiple definition protection, __time_t_defined.
22472         * libc/include/sys/time.h: Don't #include <time.h>.
22473         Always define struct timezone (remove #ifndef _TIME_H_).
22474         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
22475         #ifdef _CLOCK_T_ surrounding definition of clock_t.
22476         * libc/reent/Makefile.in (OFILES): Add timer.o.
22477         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
22478         * libc/reent/timer.c: New file.
22479         * libc/time/clock.c: #include <reent.h>.
22480         (clock): Call _times_r instead of times.
22481         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
22482         HAVE_GET_TIME_OF_DAY.
22483         Add comment regarding supporting OS routine(s) required (for docs).
22484         #include <reent.h>.
22485         (time): Call _gettimeofday_r instead of gettimeofday.
22486         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
22487         * libc/time/ctime.c: Ditto.
22488         * libc/time/strftime.c: Ditto.
22489         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
22490         (TEMPLATE_SFILES_R): Define here.  Also define times.
22491         Add times_r.o/times.S dependence.
22492         (time2.c, junk.c): Deleted.
22493         * libc/sys/sparc64/time2.c: Deleted.
22494         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
22495
22496         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
22497         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
22498         * libc/sys/sparc64/junk.c: Deleted.
22499
22500 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
22501
22502         * libc/sys/sparc64/Makefile.in: Add times syscall.
22503         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
22504         be used with and without it.  Add comment clarifying Medium/Anywhere
22505         model requirements.
22506         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
22507         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
22508         even if obsolete.
22509
22510 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
22511
22512         * configure.in (target_cflags): Move init.
22513         (sparc64-*-*): Define HAVE_BLKSIZE.
22514
22515 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
22516
22517         * libc/include/sys/_types.h: New file.
22518         * libc/include/reent.h: #include it.
22519         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
22520         MISSING_SYSCALL_NAMES.
22521         Sort syscalls.
22522         * libc/include/_syslist.h: Remove _raise.
22523         * libc/reent/signalr.c: New file.
22524         * libc/reent/Makefile.in: Compile it.
22525         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
22526         Add doc for raise and _raise_r.
22527         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
22528         (raise): Call _raise_r.
22529         (_raise_r): Call _getpid_r and _kill_r.
22530         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
22531         (abort): Loop forever calling raise and _exit.
22532
22533 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22534
22535         * configure.in: Remove extraneous echo.
22536
22537 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
22538
22539         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
22540         collision with unistd.h, and fix for svr4.
22541
22542 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
22543
22544         * libc/stdio/local.h (_llicvt): Declare.
22545         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
22546         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
22547         (_llicvt): Define.
22548         (_sicvt): Fix function header (`value' is short).
22549         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
22550         Add printing of long long's support.
22551         Add printing of 8 byte pointer support.
22552
22553 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
22554
22555         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
22556         stat, chmod): New hooks.
22557         (sbrk): Abort if stack and heap collide.
22558         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
22559         shortcut when given small args.
22560         * libc/machine/sh/setjmp.s: Rewritten.
22561         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
22562         of cmp/str instruction.
22563
22564 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22565
22566         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
22567         and machine_dir powerpc.
22568         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
22569         Add cases for __powerpc__.
22570         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
22571         New files.
22572
22573         * libc/include/stdio.h (_iprintf_r): Declare correctly.
22574
22575 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
22576
22577         * libc/stdlib/callocr.c: New file with _calloc_r in it.
22578         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
22579
22580 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
22581
22582         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
22583         (print_e): More comments to describe args, etc.
22584         "type" arg may now be 'g' or 'G' for %g/G format --> remove
22585         trailing blanks.
22586         (_gcvt): Remove locals decpt, sign, end, p, done.
22587         More comments for print_e invocation.
22588         Pass "type" to print_e as is (g/G).
22589
22590 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
22591
22592         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
22593         stock m68000.
22594
22595 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
22596
22597         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
22598         works with any sized pointer, including ones bigger than ints and
22599         longs.
22600
22601 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
22602
22603         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
22604
22605 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
22606
22607         * libc/include/stdlib.h (_calloc_r): Add prototype.
22608         * libc/machine/h8500/negsi2.c: New file.
22609         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
22610         large unsigned numbers.
22611         * libc/machine/h8500/cmpsi.c: Add cmppsi.
22612         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
22613         works when sizeof(size_t) != sizeof(char *).
22614         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
22615         get play area
22616         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
22617
22618 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
22619
22620         * libc/include/assert.h (assert): Handle -traditional.
22621
22622 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
22623
22624         * Makefile.in: added ; after every "fi" and "done" that wasn't at
22625         the end of a line (ie. anything before a backslash continuation)
22626         so that bash handles them.
22627
22628 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
22629
22630         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
22631         stat to lstat
22632
22633 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
22634
22635         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
22636         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
22637         libc/machine/sh/udivsi3.s: Use new calling convention.
22638
22639 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
22640
22641         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
22642         chmod, access, chdir, chown by making _path const. Also fix _amode
22643         param of access.
22644
22645 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
22646
22647         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
22648         _khif_tmpnam, because it doesn't comply with ANSI but may be
22649         useful anyway. Real tmpnam was already in libc/stdio, and was
22650         colliding with this one (pr 2176.)
22651         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
22652         the wrong idea anyhow.
22653
22654 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
22655
22656         * configure.in: Remove h8300h, we have multilib now.
22657
22658 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
22659
22660         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
22661         functions, to get preference over the ones in libiberty (since we
22662         provide correct declarations in <string.h>.
22663         * libc/string/Makefile.in: add support for strncasecmp,
22664         strcasecmp.
22665
22666 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
22667
22668         * Change netware config not to look for cpu explicitly.
22669
22670 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
22671
22672         * libc/sys/sparc64/{creat.c,junk.c}: New files.
22673         * libc/sys/sparc64/Makefile.in: Add dependencies.
22674
22675 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
22676
22677         * configure.in: Clean up v9 a bit, new "os" aoutv8.
22678
22679 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
22680
22681         * libc/include/sys/reent.h: make structure smaller by allocating
22682         some stuff when needed.
22683         * libc/signal/signal.c: allocate as needed
22684         * libc/stdio/findfp.c,stdio/local.h: ditto
22685         * libc/stdlib/mprec.c: ditto
22686
22687         * libc/time/localtime.c: don't return a dangling stack ptr.
22688
22689 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
22690
22691         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
22692
22693 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22694
22695         * libc/include/stdio.h (__sputc): comment out static inline which
22696           confuses coff toolchains.
22697
22698 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
22699
22700         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
22701         _write.s, getpid.c, kill.c, read.s}:
22702         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
22703         through the syscalls directory.
22704
22705 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
22706
22707         * configure.in: fixed double quote gotcha.
22708
22709 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
22710
22711         * stub/ex931: stub library for sparclite board.
22712         * stub/idp: Renamed from mc68ec. Added contructor table
22713         stuff to linker script.
22714         * stub/mvme135: Renamed from m68kmvme. Added contructor table
22715         stuff to linker script.
22716
22717 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22718
22719         * configure.in: Configure testsuites only if they exist.
22720
22721 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22722
22723         * configure.in: Don't set machine_dir for i386 until there is
22724         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
22725         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
22726         CLOCK_PROVIDED and MALLOC_PROVIDED.
22727
22728         * libc/sys/netware: New directory.  Contains simplistic and
22729         probably incorrect stubs for NetWare.  Should be enough to load
22730         the library.
22731         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
22732         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
22733         stub files.
22734
22735         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
22736         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
22737         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
22738         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
22739
22740 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
22741
22742         * testsuite/Makefile.in: add "docs" dummy target for consistency
22743         with rest of newlib; turn "info" and "install-info" into dummy
22744         targets, since they wouldn't have worked.  (Depended on
22745         nonexistent "doc" subdir.)
22746
22747 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
22748
22749         * configure.in: handle mips* instead of mips
22750
22751 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
22752
22753         * libc/include/sys/dirent.h: New file.  If it is not overridden by
22754         a version of libc/sys/*/sys/dirent.h, it includes the next
22755         <dirent.h> file in case there is one lurking somewhere.
22756
22757 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22758
22759         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
22760         compliance, namely: Accept a minus sign.  Consider a single 0 with
22761         a radix of 0 as being a conversion.  Determine overflow correctly.
22762         If an overflow occurs, set *ptr to the end of the number, not the
22763         middle.
22764         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
22765
22766 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
22767
22768         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
22769
22770 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
22771
22772         * Makefile.in (INSTALL): Use $srcrootpre.
22773         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
22774         can't handle it.
22775         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
22776         it.
22777         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
22778         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
22779         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
22780         * libm/math/Makefile.in (matherr.o): Ditto.
22781
22782 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
22783
22784         * configure.in: Build multidirs for z8k.
22785         * libc/include/stdlib.h (_strtoul_r): add prototype.
22786         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
22787         * libc/include/machine/setjmp.h: Add for z8k.
22788         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
22789         * libc/sys/z8ksim/glue.c: tidy up.
22790
22791 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
22792
22793         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
22794         New files.  Requires execve system call.
22795         * libc/unix/Makefile.in: Use them.
22796         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
22797         Deleted, moved to libc/unix.
22798         * libc/sys/sparc64/Makefile.in: Remove them.
22799
22800 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
22801
22802         * libc/sys/sparc64/{template.S template_r.S}: New files.
22803         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
22804         from templates.
22805         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
22806         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
22807         umask.S unlink.S wait4.S write.S}: Removed, now built from
22808         templates.
22809
22810 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
22811
22812         * libc/time/time.c: #include <_ansi.h>.
22813
22814 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
22815
22816         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
22817
22818 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22819
22820         * configure.in: match m8* rather than m88k so that m88110 is
22821           recognized as well.
22822
22823 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
22824
22825         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
22826         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
22827         misc.c: New file.
22828
22829         * configure.in: Add multilib support to h8300.
22830
22831 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
22832
22833         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
22834         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
22835         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
22836
22837 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22838
22839         * configure.in: Corrected multidirs for sparc target.
22840
22841 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
22842
22843         Support for building newlib multiple times with different
22844         compilation flags.
22845         * configure.in: Only configure doc at top level.  Set multidirs
22846         when appropriate for target, unless not at top level.  If
22847         multidirs is set, independently configure each subdirectory.
22848         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
22849         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
22850         automagically set by configure.in.
22851         (all): If MULTIDIRS is set, build multiple copies of libraries.
22852         (install): If MULTIDIRS is set, install multiple copies of
22853         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
22854         MULTISUBDIR is set, don't bother to install header files.
22855         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
22856         ${srcrootpre}.
22857         * stub/configure.in: Set MULTISUBDIR appropriately.
22858         * stub/Makefile.in (install): Install in
22859         $(tooldir)/lib/$(MULTISUBDIR).
22860         * All Makefile.in files: Define SRCTOP as well as TOP.
22861
22862 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
22863
22864         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
22865         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
22866
22867 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
22868
22869         * libc/sys/h8300hms/exit.c (_exit): New function.
22870
22871 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22872
22873         * configure.in: recognize m88110.
22874
22875 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22876
22877         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
22878           prototype main and call with args.
22879
22880 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
22881
22882         First real try at system traps for m88k-bug.
22883         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
22884           to real trap calls.
22885         * libc/sys/m88kbug/sys/systraps.h: new file.
22886
22887 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22888
22889         Patches to fix info building when target does not use sys
22890         directory.
22891         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
22892         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
22893           libc/sys.tex.
22894         * libc/sys/Makefile.in (doc): do nothing.
22895
22896 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22897
22898         * libc/Makefile.in (CRT0): new macro.
22899           (all): depend on $(CRT0) rather than crt0.o.
22900
22901         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
22902           do not default crt0, instead, set crt0 and crt0_dir based on
22903           sys_dir and stub_dir.
22904
22905         * Makefile.in (CRT0_DIR): new macro.
22906           (all): depend on $(CRT0) rather than crt0.o which may not exist.
22907           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
22908           $(CRT0).
22909           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
22910
22911 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
22912
22913         * testsuite/lib/libm.exp:
22914                 added code to support compiling and linking of tests for
22915                 libm.sac (paranoia to be added next) and processing the
22916                 pass or failure of the tests.
22917
22918         * testsuite/config/unix-libm.exp:
22919                 platform specific proc's for dealing with compiler, linker
22920                 and the way we execute and process the test results.
22921
22922         * testsuite/libm.sac/execute.exp:
22923                 generic framework for the sac tests. the config and lib
22924                 expect code for specific platforms tie it all together.
22925
22926         * testsuite/libm.sac/test_is.c:
22927                 changed the output of the test to be consistant with the
22928                 other tests. parsing of pass nad fail messages is now fixed.
22929
22930 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
22931
22932         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
22933         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
22934         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
22935         #ifdef __cplusplus, surround by extern ""C { ... }.
22936         * libc/include/assert.h:  Do *not* protect assert.h against
22937         multiple inclusion!  Also, #undef it before #define, to allow
22938         redefinition.
22939         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
22940         should be only in unistd.h.
22941
22942         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
22943         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
22944         ... }.
22945
22946 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
22947
22948         * libc/machine/sparc/Makefile.in: Must create a library, even
22949         if empty.
22950
22951 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22952
22953         * configure.in: set machine_dir for m88k.  edit crt0 definition
22954           into makefiles.
22955
22956         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
22957
22958         * libc/Makefile.in (all): also build crt0.o.
22959
22960         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
22961           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
22962           to remove CRT0.
22963
22964         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
22965           (all): reworked to build in place.
22966           (clean): remove lib.a
22967           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
22968
22969         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
22970           (_start): key off edata rather than _start_bss.
22971
22972 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
22973
22974         * libc/include/sys/unistd.h, libc/include/reent.h,
22975         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
22976
22977 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22978
22979         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
22980
22981         * Makefile.in (libc.a): break into two rules, one for libc.a and
22982           one for libc/libc.a.  Force subdirs current before rebuilding
22983           library.
22984           (libm.a): break into two rules, one for libm.a and one for
22985           libm/libm.a.  Force subdirs current before rebuilding library.
22986
22987         * libc/Makefile.in (SUBLIBS): fix typo.
22988
22989         * libc/sys/Makefile.in (all): force descent into subdirs, then
22990           rebuild library iff out of of date.
22991
22992 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
22993
22994         Rework so that library is built and then finished rather than
22995         being built on each invocation of make.
22996
22997         * host/any (machine_dir, sys_dir, signal_dir): these are not
22998           shared and have been moved to their associated Makefile.in's.
22999           (AR_FLAGS): switch to qc which is faster.
23000         * configure.in: no longer assign machine_dir for m88k.  set
23001           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
23002           stub_dir set, then add to configdirs.  add comment about silly
23003           configuration.
23004           (configdirs): drop stub.  It will be added only
23005           when needed.
23006           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
23007           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
23008           stub_lib, crt0): new variables for tailoring lower level
23009           makefiles.  Assign accordingly and edit into makefiles.
23010         * libm/Makefile.in: updated copyright.
23011           (TARGETLIB): removed.
23012           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
23013           (SUBDIRS): removed TARGETDEP_DIRS.
23014           (LIBM_FP_LIB, SUBLIBS): new macros.
23015           (all): reworked.
23016           (force): new target to force rebuilds.
23017           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
23018         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
23019           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
23020           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
23021           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
23022           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
23023           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
23024           stub/m68kmvme/Makefile.in: updated copyright.
23025           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
23026           (all): reworked.  made this the default rule.
23027           (clean): also remove lib.a.
23028           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
23029         * stub/Makefile.in: updated copyright.
23030           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
23031           (stub_lib): new macro.
23032           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
23033           RANLIB.
23034           (all): reworked.
23035           (clean, install): assume stub_dir exists.
23036           (Makefile): depend on configure.in.  call $(SHELL) rather than
23037           sh.  drop redundant ./
23038         * stub/configure.in (stublib): new macro, assign it, edit it into
23039           makefiles.
23040         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
23041           updated copyright.
23042           (all): reworked.
23043           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
23044         * libc/Makefile.in (TARGETCRT0): removed.
23045           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
23046           TARGETCRT0.
23047           (SUBDIRS): drop TARGETDEP_DIRS.
23048           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
23049           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
23050           (force): new target to force rebuilds.
23051         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
23052           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
23053           removed.
23054           (clean): assume sys_dir always exists.
23055         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
23056           drop redundant ./
23057         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
23058           libc/locale/Makefile.in, libc/machine/Makefile.in,
23059           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
23060           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
23061           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
23062           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
23063           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
23064           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
23065           libc/signal/Makefile.in, libc/stdio/Makefile.in,
23066           libc/stdlib/Makefile.in, libc/string/Makefile.in,
23067           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
23068           libc/time/Makefile.in, libc/unix/Makefile.in,
23069           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
23070           (TARGETLIB): removed.
23071           (all): reworked.
23072           (clean): also remove lib.a.
23073           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
23074         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
23075           new macros.
23076           (SUBDIRS): moved to follow frag inclusion, change stub to
23077           stub_dir.
23078           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
23079           are now set in the libc Makefile.
23080         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
23081           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
23082           TARGETCRT0.
23083           (force): new target to force rebuilds.
23084         * stub/configure.in: determine and set stub_lib for for Makefile.
23085
23086 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
23087
23088         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
23089         crt0.s renamed to crt0.S.
23090         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
23091
23092         * libc/machine/h8300/Makefile.in: Make `all' the default target.
23093         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
23094         h8300h.
23095         * libc/machine/h8300/defines.h: Add macros to handle pointers for
23096         h8300 (16 bits) and h8300h (32 bits).
23097         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
23098         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
23099
23100 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
23101
23102         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
23103         implementation of setjmp and longjmp for the m88k.
23104         * libc/include/machine/setjmp.h: Added __m88000__ case.
23105
23106 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
23107
23108         * configure.in: Recognize h8300h as variant of h8300.
23109
23110 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
23111
23112         * libc/include/sys/unistd.h (read, write): get prototypes right.
23113         (sbrk): New prototype.
23114         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
23115         * libc/stdio/local.h: Include unistd.h.
23116         * libc/machine/h8300/syscalls.c: Names have changed.
23117
23118 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
23119
23120         * configure.in: add sys_dir assignment for m88k-bug.
23121
23122 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
23123
23124         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
23125         a.out or elf.
23126         * libc/sys/sparc64: all *.S files: Use new macros.
23127         * libc/sys/sparc64/isatty.c: New file.
23128         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
23129         functions beyond what newlib provides.
23130
23131 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
23132
23133         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
23134         svr4.
23135
23136 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
23137
23138         * libc/include/machine/ieeefp.h: Add support for h8/300h.
23139
23140 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
23141
23142         * configure.in: add m88k.
23143         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
23144         sanity check so no one else need ever chase what I did to find
23145         this.
23146
23147         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
23148
23149 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
23150
23151         * doc/makedoc.c: Include <ctype.h>.
23152
23153 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
23154
23155         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
23156         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
23157         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
23158
23159         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
23160
23161 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
23162
23163         * libc/include/errno.h (ENOSYS): Added.
23164
23165         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
23166
23167 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
23168
23169         * libc/stdio/fflush.c (fflush): Check for reent struct
23170         initialization.
23171         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
23172
23173 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
23174
23175         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
23176         out of dtoa.c so it doesn't pollute the namespace.
23177         * libc/include/_syslist.h: new file -- mappings from _function to
23178         function, for systems where we can't win (by default, all of them,
23179         until we start updating system calls.)
23180         * libc/syscalls: new directory -- stubs for exporting _function
23181         names as unmodified function names.
23182         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
23183         _syslist.h on all platforms by default, but put hooks in for
23184         fake_sys_dir so we can include it when we've renamed the system
23185         calls.
23186         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
23187         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
23188         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
23189         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
23190         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
23191         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
23192         non ANSI functions to call _function.
23193
23194 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
23195
23196         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
23197         when base 16 is specified.  Don't accept non-digits if radix > 10.
23198
23199 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
23200
23201         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
23202
23203 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
23204
23205         * libc/include/sys/stat.h: Surround text after #endif with
23206         comments.
23207
23208 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
23209
23210         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
23211         _malloc_r, _realloc_r, and free_r call the corresponding
23212         non-reentrant functions.
23213
23214         * libm/math/modf.c (modf): We now take the address of ipart, so
23215         don't make it a register variable.
23216
23217 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
23218
23219         * libm/math/*: Rename all xxx_r fns to _xxx_r.
23220
23221 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
23222
23223         * libc/libc.texinfo and embedded docn throughout: formatting
23224         improvements, minor rephrasing for clarity, and improved
23225         reentrancy docn.
23226
23227 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
23228
23229         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
23230
23231         * libc/stdio/cvt.c (_licvt): Print the right value on machines
23232         where sizeof(int) != sizeof(long).
23233
23234 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
23235
23236         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
23237         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
23238         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
23239         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
23240         libm/math/matherr.c: changes for better docn formatting (info).
23241
23242         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
23243         libc/reent/reent.tex, libc/signal/signal.tex,
23244         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
23245         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
23246         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
23247         makeinfo node defaulting to get better Info file node structure.
23248         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
23249         Also include a few formerly missing sections (subroutines).
23250
23251         * doc/doc.str: delete fossil expansion for "func"
23252
23253         * default.menu, no-signal.menu: delete.
23254
23255         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
23256         method used to adjust doc for missing "signals" chapter when
23257         signal_dir is empty.
23258
23259 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
23260
23261         * configure.in: added testsuite/libm.sac
23262
23263 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
23264
23265         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
23266         code model).
23267
23268 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
23269
23270         * libm/Makefile.in: Use $(MAKE) rather than make, and define
23271         MAKEOVERRIDES to be empty.
23272
23273 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
23274
23275         * configure.in: Don't build mips-*-* with -msoft-float, since that
23276         makes it incompatible with hard floating point.
23277
23278 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
23279
23280         * Makefile.in: added recursive 'make check'
23281
23282 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
23283
23284         * configure.in: added ./testsuite ./testsuite/libm.paranoia
23285         * ./testsuite/Makefile.in: created
23286         * ./testsuite/libm.paranoia: paranoia tests added
23287
23288 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
23289
23290         * configure.in: For mips-*-* set machine_dir to mips.
23291
23292         * libc/machine/mips: New directory.
23293         * libc/machine/mips/Makefile.in: New file.
23294         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
23295         setjmp and longjmp.
23296         * libc/include/machine/setjmp.h: Added __mips__ case.
23297
23298         * libc/machine/lmips: Removed unused and useless directory.
23299
23300 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
23301
23302         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
23303
23304 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
23305
23306         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
23307         start up).
23308
23309 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
23310
23311         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
23312         SETJMP_H.
23313
23314 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
23315
23316         * libm/test/convert.c: structure member errno -> errno_val.
23317         Must include <errno.h> to use errno, it's a macro now.
23318         * libm/test/math.c: Ditto.
23319         * libm/test/math2.c: Include errno.h.
23320         * libm/test/string.c: Ditto.
23321         * libm/test/test.h: structure member errno -> errno_val.
23322         Remove extern int errno decl.
23323
23324 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
23325
23326         * libc/stdio/Makefile.in: Added dependencies on local header
23327         files.
23328         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
23329         files.
23330
23331 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
23332
23333         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
23334
23335 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
23336
23337         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
23338         Initialize _data.
23339
23340         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
23341         * libc/stdio/local.h: Add prototype for _licvt.
23342
23343         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
23344         instead of malloc,reealloc.
23345
23346         * libc/stdlib/local.h: New file.
23347         * libc/stdlib/efgcvt.c: #include local.h.
23348         (gcvt): Fix call to _gcvt.
23349         * libc/stdlib/ecvtbuf.c: #include local.h.
23350
23351         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
23352         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
23353         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
23354
23355         * libc/stdlib/atexit.c: moved global data to struct _reent.
23356         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
23357
23358         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
23359
23360 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
23361
23362         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
23363         here from ../reent.h.
23364
23365 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
23366
23367         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
23368         should be provided in both libc.a and libm.a.
23369         (libc.a): Depend on targ-include and libm.a.  Copy
23370         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
23371         (libm.a): Depend on targ-include.
23372         * configure.in (subdirs): Removed libc/math.
23373
23374 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
23375
23376         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
23377
23378 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
23379
23380         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
23381         sys/reent.h instead of reent.h.
23382         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
23383         headers moved to sys/reent.h.
23384         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
23385         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
23386         __need__MAX_SIGNALS defined.
23387         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
23388         std{in,out,err} refer to new _std{in,out,err} members.
23389
23390 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
23391
23392         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
23393         case.
23394
23395 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
23396
23397         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
23398         rather than whatever macro seterrno() has.
23399
23400 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
23401
23402         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
23403         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
23404
23405         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
23406         __STDC__.
23407
23408         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
23409         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
23410         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
23411
23412         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
23413         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
23414
23415         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
23416         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
23417         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
23418         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
23419         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
23420         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
23421         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
23422         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
23423         for ANSI.  structure members given leading "_" for ANSI.  Use
23424         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
23425
23426         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
23427         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
23428         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
23429         reent_struct renamed to struct _reent for ANSI.
23430         Structure members given leading "_" for ANSI.
23431         _CONST --> const in prototypes.
23432         Use _HAVE_STDC instead of __STDC__.
23433
23434         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
23435         _xxx_r.
23436         struct reent_struct renamed to struct _reent for ANSI.
23437         Structure members given leading "_" for ANSI.
23438
23439         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
23440         _xxx_r.
23441         struct reent_struct renamed to struct _reent for ANSI.
23442
23443         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
23444         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
23445         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
23446         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
23447         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
23448
23449         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
23450         signal.h, stdio.h, stdlib.h, string.h, time.h}:
23451         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
23452         #ifndef _STRICT_ANSI non-ANSI routines.
23453         Reentrant routines renamed from _r_xxx to _xxx_r.
23454         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
23455         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
23456         Clean up namespace (structure members have leading "_").
23457         struct reent_struct renamed to struct _reent for ANSI compliance.
23458         _CONST --> const in function prototypes.
23459
23460         * libc/include/string.h: Add NULL and size_t.
23461
23462         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
23463         unlink, wait, wait4. Reentrant syscall routines close, fork,
23464         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
23465         write.
23466         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
23467         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
23468         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
23469         write.S}: Define reentrant versions.
23470         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
23471         reentrant syscalls.
23472
23473         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
23474
23475         * libc/include/stdlib.h (RAND_MAX): Fix value.
23476
23477 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
23478
23479         * libc/sys/a29khif/_main.c: Removed unnecessary file.
23480         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
23481         VPATH support targets after all: target.
23482
23483         * stub/mvme135/mvme.S: Renamed exceptionhandler to
23484         exceptionHandler, which is what mvme135-stub.c expects.
23485
23486 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
23487
23488         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
23489
23490         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
23491         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
23492         compliant).
23493
23494 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
23495
23496         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
23497         first.
23498         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
23499         _r_write): Ditto.
23500         libc/reent/fstatr.c (_r_fstat): Ditto.
23501         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
23502         libc/reent/sbrkr.c (_r_sbrk): Ditto.
23503         libc/reent/statr.c (_r_stat): Ditto.
23504
23505         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
23506         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
23507         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
23508         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
23509         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
23510         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
23511         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
23512         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
23513         (__swrite): Ditto for _r_lseek, _r_write.
23514         (__sseek): Ditto for _r_lseek.
23515         (__close): Ditto for _r_close.
23516         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
23517
23518         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
23519         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
23520
23521         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
23522         to make reent_struct the first argument (and thus consistent with
23523         the rest of newlib).
23524
23525         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
23526         reference to __STDC__.
23527
23528 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
23529
23530         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
23531         global __cleanup.
23532
23533 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
23534
23535         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
23536         first.
23537         libc/stdio/fclose.c (fclose): Ditto.
23538
23539 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
23540
23541         * Run through indent and rename reentrant routines for ANSI.
23542         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
23543         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
23544         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
23545         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
23546         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
23547         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
23548         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
23549         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
23550         vsprintf.c wbuf.c wsetup.c local.h}
23551
23552         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
23553
23554         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
23555         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
23556         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
23557         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
23558         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
23559         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
23560
23561         * Run through indent.
23562         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
23563         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
23564         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
23565         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
23566         strxfrm.c}
23567
23568         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
23569         localtime.c mktime.c strftime.c time.c}:
23570         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
23571
23572         * Reformatting + renaming (for ANSI, GNU style, consistency).
23573         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
23574         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
23575         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
23576
23577 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
23578
23579         * libc/include/stdio.h (stdin_r): Fix.
23580
23581 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
23582
23583         * Makefile.in: Unexport some variables to keep GNU make from
23584         putting them in the environment and using up needed ARG_MAX space
23585         (a hack is used to let this work with older makes as well).
23586
23587 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
23588
23589         * Makefile.in: Use $(MAKE) rather than make.
23590         (MAKEOVERRIDES): Define to be empty.
23591         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
23592         (libc.a, libm.a): Depend on targ-include.
23593         * host/any (LD): Don't define.
23594         (INCLUDES): Use targ-include.
23595         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
23596         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
23597         * libc/Makefile.in: Use $(MAKE) rather than make.
23598         (MAKEOVERRIDES): Define to be empty.
23599         (FLAGS_TO_PASS): Don't pass LD (it's not used).
23600         (all): Rewrote to be slightly smaller.
23601         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
23602         Define to be empty.
23603         (FLAGS_TO_PASS): Don't pass LD (it's not used).
23604         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
23605
23606 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
23607
23608         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
23609         with errno/errno.c.
23610
23611 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
23612
23613         * Changes for reentrancy.
23614         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
23615         Use ptr->_errno, not errno.
23616         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
23617         libc/stdio/remove.c (remove_r): New function.
23618         libc/stdio/rename.c (rename_r): New function.
23619         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
23620         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
23621         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
23622         reentrant versions of system calls.
23623         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
23624         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
23625         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
23626         libc/stdio/findfp.c: Include <string.h>.
23627         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
23628         "local.h".
23629         libc/stdio/wbuf.c: Include "fvwrite.h"
23630
23631         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
23632         <string.h>.
23633         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
23634         (NULL): Don't define if already defined.
23635         libc/stdlib/system.c: Call reentrant versions of system calls.
23636         (system_r): New function.
23637
23638         * Changes for reentrancy.
23639         libc/include/_ansi.h (_PARAMS): New macro.
23640         libc/include/errno.h: Define errno as a macro that calls __errno.
23641         (__errno_r): New macro for reentrant code.
23642         libc/include/math.h: Include reent.h.  Declare many reentrant
23643         functions.
23644         (signgam): Now a macro, not a variable.
23645         (struct exception): Added err field.
23646         libc/include/reent.h: Don't declare __sglue.  Added function
23647         declarations.
23648         (struct reent_struct): Moved errno to beginning.  Added _signgam.
23649         libc/include/stdio.h, libc/include/stdlib.h: Added function
23650         declarations.
23651
23652         * More reentrancy hacking.
23653         libc/errno/errno.c (__errno): New function.
23654         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
23655         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
23656         files.
23657
23658         * Added many new reentrant functions to libm/math/*.
23659         libm/math/error.c (__matherror): Added reent_struct pointer
23660         argument. Changed all callers.
23661         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
23662         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
23663         libm/math/tan.h: Removed obsolete unused header files.
23664
23665         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
23666
23667         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
23668
23669 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
23670
23671         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
23672         delay slots.
23673
23674 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
23675
23676         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
23677
23678 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
23679
23680         * libc/reent/reent.tex:  New file.  (text from
23681         newlib/libc/libc.texinfo)
23682         * libc/stdio/tmpnam.c:  fixed doc typo
23683         * libc/stdlib/rand.c:   fixed doc typo
23684
23685 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
23686
23687         * libc/reent/reent.tex:  New file.  (text from
23688         newlib/libc/libc.texinfo)
23689
23690 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
23691
23692         support for reentrancy
23693         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
23694         new files
23695         * libc/errno/errno.c, libc/include/ieeefp.h,
23696         libc/include/locale.h, libc/include/reent.h,
23697         libc/include/signal.h, libc/include/stdio.h,
23698         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
23699         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
23700         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
23701         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
23702         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
23703         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
23704         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
23705         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
23706         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
23707         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
23708         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
23709         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
23710         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
23711         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
23712         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
23713         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
23714         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
23715         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
23716         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
23717         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
23718         libc/time/strftime.c: modify to provide reentracy.
23719
23720         new routines:
23721         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
23722         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
23723         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
23724         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
23725         mstats_r, realloc_r, localeconv_r, setlocale_r
23726
23727 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
23728
23729         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
23730         libc/include/sys/config.h, libc/include/sys/signal.h,
23731         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
23732         provided macros (such as m68000), use the ansi version
23733         (__m68000__) so that the library can be used with code compiled
23734         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
23735         and sparc.
23736
23737 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
23738
23739         * configure.in (sparc*): Don't set -fsoft-float for sparc
23740         configurations.  Do set -fsoft-float for sparclite configurations.
23741
23742 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
23743
23744         * default.menu, no-signal.menu: alternate forms of libc main menu
23745           (in newlib rather than newlib/libc due to configuration restrictions)
23746
23747         * configure.in: select one of the two menus above, link to
23748         libc.menu
23749
23750         * libc/libc.texinfo: include menu from separate file
23751
23752 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
23753
23754         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
23755         (info): Split long shell command in half.
23756         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
23757         sub-makes, just CHEW and TARGETDOC.
23758         (targetdep.tex): Removed now special handling of sys and machine
23759         subdirectories, made obsolete some time ago.
23760         * libc/machine/Makefile.in (doc): Don't pass everything to
23761         sub-make, just CHEW and TARGETDOC.
23762         (Makefile): New target.
23763         * libc/sys/Makefile.in (Makefile): New target.
23764
23765 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
23766
23767         * Makefile.in (here and most subdirectories): Only pass down CHEW
23768         and TARGETDOC when making info, not for other targets.
23769
23770         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
23771         $(AR_FLAGS) rather than $(ARUPDATE).
23772
23773 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
23774
23775         * Try to reduce command line length:
23776         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
23777         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
23778         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
23779         (info): Pass CHEW to other subdirs.
23780
23781 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
23782
23783         * configure.in: add signal_dir, like unix_dir, but by default it
23784         is set to "signal" so that a29khif can turn it off (since a29khif
23785         has raise() as part of machine-specific signal.s.)
23786
23787 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
23788
23789         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
23790         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
23791         correctly.
23792         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
23793         libc/stdio/vfprintf: type lint.
23794         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
23795         initialzation code.
23796         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
23797
23798 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
23799
23800         * stub/mvme135/mvme135-asm.S: new file.
23801         stub/mvme135mvme135-stub.c: moved all assembler routines into
23802         mvme135-asm.S.
23803         stub/mvme135/Makefile.in: build mvme135-stub.o.
23804
23805 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
23806
23807         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
23808         sub-Makefiles instead, to try to avoid line length limitations.
23809
23810 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
23811
23812         * libc/include/unistd.h (read, write):  Use void* instead of
23813         char*.
23814
23815 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
23816
23817         * stub/go32/resetpc: sample script to send a reset packet to the
23818         stub
23819
23820         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
23821         DOS environment, which compiles with Turbo C.
23822
23823         * stub/go32/DSER32.LNK: new file, linker commands for serial
23824         remote stub.
23825
23826         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
23827         start up message to identify version; call set_debug_traps.
23828
23829         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
23830         keyboard interaction); call handle_exception() in go_til_stop,
23831         rather than return, so that the remote stub gets control.
23832
23833         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
23834         rename, rather than mv), set flags that work with current Turbo C,
23835         including using the /3 flag; also, add commands to build dser32.
23836
23837         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
23838         default Turbo C installation (\tc rather than \usr)
23839
23840         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
23841         "&..."
23842
23843 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
23844
23845         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
23846
23847 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
23848
23849         * libc/stdio/cvt.c (licvt): new function to convert ints when
23850         sizeof(int) != sizeof(long).
23851
23852         * libc/include/stdio.h: added prototype for iprintf.
23853         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
23854
23855 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
23856
23857         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
23858         __REGISTER_PREFIX__.
23859
23860 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
23861
23862         * libc/sys/m68kbare: moved into stub directory.
23863
23864 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
23865
23866         * configure.in, Makefile.in: created new directory stub, to hold
23867         sample code for specific targets.
23868
23869 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
23870
23871         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
23872         in the unified libc/include/sys/fcntl.h.
23873
23874 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
23875
23876         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
23877         printed .01, not 0.01.
23878
23879 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
23880
23881         * configure.in: compile with -m68000 for m68* targets.
23882
23883 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
23884
23885         * libm/math/remainder.c (remainder): document the svr4 and sunos
23886         references used to construct the function.
23887
23888 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
23889
23890         * libm/math/remainder.c (rint, remainder): fix old typos.
23891         * libm/math/Makefile.in: actually build remainder.c (functions
23892         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
23893         page.)
23894
23895 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
23896
23897         * libc/string/bcopy.c: BSD version works on overlapping strings,
23898         so ours should too.
23899
23900         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
23901         ("SHELL").
23902
23903 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
23904
23905         * Makefile.in (docs): new target.
23906
23907 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
23908
23909         * libc/include/sys/times.h: define clock_t as required by POSIX.
23910         libc/include/time.h: protect clock_t from multiple definitions.
23911
23912 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
23913
23914         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
23915         does not need more than the original three iterations to get
23916         within 1 ulp. (Paranoia tests for rounding to better than that,
23917         but further iterations *don't* help, only more subtle changes
23918         can.)
23919
23920 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
23921
23922         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
23923         were doing nothing useful.
23924
23925 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
23926
23927         * configure.in: define MALLOC_PROVIDED for vxworks targets;
23928         removed sys_dir settings of vxworks68 and vxworks960.
23929         host/any: don't pass -nostdinc to gcc, since newlib no longer
23930         provides all required header files.
23931
23932         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
23933         is not defined; this provides a hook for VxWorks.
23934
23935 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
23936
23937         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
23938         buffer if buf is NULL, don't do it here -- it is already being
23939         done by makebuf elsewhere in stdio.
23940
23941 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
23942
23943         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
23944         that C programs can call functions without using initial
23945         underscores.
23946
23947 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
23948
23949         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
23950
23951 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
23952
23953         * configure.in: set TARGET_CFLAGS for certain CPU types to
23954         -msoft-float.
23955
23956 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
23957
23958         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
23959
23960 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
23961
23962         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
23963         m68k*-unknown-coff.
23964
23965 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
23966
23967         * libc/include/stdio.h: define __need___va_list before including
23968         <stdarg.h>, to avoid defining va_arg, et. al.
23969
23970 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
23971
23972         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
23973         (don't cd to the user's home directory).
23974
23975         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
23976         In general this is the wrong thing to do, but I can't get around
23977         GNU make's insistence on passing command line arguments any other
23978         way.
23979
23980 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
23981
23982         * configure.in: always configure the libc/sys directory, since it
23983         now provides a required documentation file.
23984
23985         * Makefile.in: replaced all instances of $(MAKE) with make.  In
23986         general this is the wrong thing to do, but I can't get around GNU
23987         make's insistence on passing command line arguments any other way.
23988
23989 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
23990
23991         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
23992         terminated.
23993
23994         * libc/stdio/local.h: include <stdarg.h> to define va_list.
23995         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
23996
23997         * libc/include/float.h, libc/include/stdarg.h,
23998         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
23999         versions instead.
24000         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
24001         <stdarg.h>, not from <machine/types.h>.  Protect definition of
24002         NULL.
24003         libc/include/time.h: get size_t from stddef.h.  Protect definition
24004         of NULL.
24005         libc/include/machine/limits.h: override gcc <limits.h> by defining
24006         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
24007         get correct INT_MIN and LONG_LONG values.
24008         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
24009         size_t or va_list at all; they're now gotten from stddef.h
24010         instead.
24011         libc/include/machine/varargs.h: removed; use gcc version instead.
24012         libc/include/sys/types.h: explicitly include <machine/types.h>.
24013
24014         * libm/math/sqrt.h: using the fp-bit routines appears to require
24015         more iterations.
24016
24017         * Makefile.in, host/any: let system include files override machine
24018         include files.
24019
24020 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
24021
24022         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
24023         override _*_T_ definitions defaulted here.
24024
24025 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
24026
24027         * Makefile.in (install): install the include files in
24028         $(tooldir)/include, not $(exec_prefix)/include.
24029
24030 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
24031
24032         * Makefile.in (install): fixed typo, and changed install to not
24033         force rebuild of libc.a and libm.a.
24034
24035 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
24036
24037         * libc/sys/a29khif/*: Changed all .include's to include
24038         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
24039         that they will be installed for the user.
24040
24041         * Makefile.in (all): create targ-include, a directory holding the
24042         machine and system specific header files during the build.
24043         (install): fixed installation of machine and system specific
24044         header files.
24045
24046         * Makefile.in: fixed comment.
24047         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
24048         we can pass $(INCLUDES) to it.
24049
24050 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
24051
24052         * libc/include/sys/param.h: new generic file, which may be
24053         overridden for specific systems.
24054
24055         * libc/include/sys/signal.h: define all ANSI signal names, and
24056         NSIG (which is not ANSI) for a29k.
24057
24058 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
24059
24060         * Makefile.in: don't pass down arguments the lower level makes
24061         will not need.
24062         * libc/Makefile.in: recurse directly, rather than using subdir_do,
24063         in hopes of avoiding argument length limits.
24064         * libm/Makefile.in: recurse directly, rather using subdir_do, in
24065         hopes of avoiding argument length limits.
24066
24067 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
24068
24069         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
24070         mode_t is defined.
24071
24072 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
24073
24074         * Fixed make info and make install-info for newlib, changing most
24075         Makefile.in and several *.tex files.  Moved doc directory from
24076         libc to top level.
24077
24078         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
24079         Should be rewritten.
24080
24081         * libc/string/strings.tex: renamed node index to node index
24082         function, so that it does not conflict with the top level index
24083         node.
24084
24085         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
24086
24087 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
24088
24089         * Overhauled general configuration for newlib.  Eliminated all
24090         target dependent Makefile fragments.  Create libraries in newlib
24091         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
24092         than CROSS_CC, et. al.  Broke make docs; will fix later.
24093
24094         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
24095         Should be rewritten.
24096
24097 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
24098
24099         * libc/configure.in: cleaned up somewhat; switch on ${target}
24100         rather than ${target_alias}.
24101         * libm/configure.in: cleaned up somewhat; switch on ${target}
24102         rather than ${target_alias}.
24103
24104         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
24105         * libc/include/ctype.h: marked _ctype_ as _CONST.
24106
24107         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
24108         _CONST.
24109
24110         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
24111         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
24112         libc/stdio/gets.c (gets): removed non-ANSI warning message.
24113         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
24114
24115         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
24116         bigtens, tinytens): marked arrays _CONST.
24117         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
24118         rather than a static variable.
24119
24120         * libc/time/asctime.c (asctime), libc/time/localtime.c
24121         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
24122         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
24123         mname_len, mname): Marked static arrays _CONST.
24124
24125         * libm/math/gamma.h: made local variables non-static.
24126
24127         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
24128         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
24129         _CONST.
24130
24131         * libm/math/constants.c: removed file, because the constants it
24132         defined were never referenced.
24133         libm/math/Makefile.in: removed references to constants.c.
24134         libm/math/mathimpl.h: removed declarations of constants.
24135
24136 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
24137
24138         * libc/include/machine/varargs.h: only call __builtin_saveregs if
24139         it is sensibly defined in libgcc2.  Checks preprocessor defines,
24140         which is not a good solution.
24141
24142         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
24143
24144         * libm/frexp.c: handle denormalized numbers as arguments.
24145
24146         * libm/math/Makefile.in: added some dependencies for .c files
24147         which include local .h files.
24148
24149 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
24150
24151         * libc/configure.in: set target_alias for OSE*.  Replace
24152         target_makefile_frag if it is blank.
24153
24154         * libc/Makefile.in: make sure everything is passed to subsidiary
24155         makes; create all directories when installing.
24156
24157         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
24158         CROSS_ARUPDATE instead of AR.
24159
24160         * libm/configure.in: set target_alias for OSE*.  Replace
24161         target_makefile_frag if it is blank.
24162
24163         * libm/Makefile.in: make sure everything is passed to subsidiary
24164         makes; create all directories when installing.
24165
24166 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
24167
24168         * add following change from libc copy.
24169
24170 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
24171
24172         * libc/libc.texinfo: make copyright disclaimers appear on back of
24173         title page; make format of same slightly less ugly; avoid using
24174         underbars in section headings (avoids nasty texinfo bug in table
24175         of contents).
24176
24177         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
24178           comments only) avoid using underbars in section headings
24179
24180         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
24181           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
24182           changes in comments only): shorten headings ieeefp/infinity.c,
24183           ieeefp/isnan.c: (doc, comments only) more informative headings
24184
24185         * libc/math/bessel.c: (doc, comments only) shorten heading
24186
24187         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
24188         (doc, comments only) shorten headings
24189
24190         * libc/time/localtime.c (doc, comments only): shorten headings
24191
24192         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
24193           isnan
24194           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
24195           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
24196           headings
24197           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
24198           only) more informative headings
24199         * libm/math/bessel.c: (doc, comments only) shorten heading
24200
24201 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
24202
24203         * .../Makefile.in: use CROSS_ARUPDATE consistently.
24204         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
24205         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
24206         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
24207         defined, the one from the .mt file will be correct.
24208         * libc/include/machine, libc/include/sys: created, and populated
24209         with common files from machine/*/machine. ifdefs were used for
24210         most, typically by handling exceptions first and then filling in
24211         defaults. Files with D.J. Delorie copyright #included rather than
24212         copied. Most files in include/sys really were the same in the
24213         original.
24214         * libc/include/...: cleaned up use of _EXFUN.
24215         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
24216         it with double quotes, not angles.
24217
24218 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
24219
24220         * libc/Makefile.in: always create installation directories.
24221
24222 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
24223
24224         * libc/configure.in: handle host properly (using canonical
24225         triples), better error message for the case of target not found
24226
24227 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
24228
24229         * libc/Makefile.in (insincdir): Ensure this directory exists
24230         before attempting installation.
24231
24232 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
24233
24234         * libc/stdlib/assert.c: now calls abort like it should
24235         * libc/sys/a29khif: many many patches for 29khif work
24236         * libc/machine/i386: gnulib2 expanded there.
24237
24238 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
24239
24240         Added accurate fp conversion routines to stdlib, moved dcvt from
24241         stdio to stdlib and called it ecvtbuf:
24242         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
24243         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
24244         routines
24245         * libc/libc.texinfo: Modifed to include the copyright info from
24246         the mprec files
24247         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
24248         * libc/test/ : many vector which tested for the implementation
24249         defined returns of strange conversion requests have been updated
24250         to relflect the new implementation
24251
24252 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
24253
24254         * libc/libc.texinfo: new chapter on variable arg lists
24255         (stdarg.h/varargs.h)
24256         * libc/libc.texinfo: new title
24257         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
24258         (doc only) shorter headings for better formatting.
24259
24260 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
24261
24262         * libc/libc.texinfo: three more info menu entries
24263         * libc/locale/locale.tex: new chapter
24264         * libc/locale/locale.c: new doc for setlocale, localeconv
24265         * libc/locale/Makefile.in: use new locale doc
24266         * libc/signal/signal.tex: new chapter
24267         * libc/signal/raise.c, libc/signal/signal.c: new doc
24268         * libc/signal/Makefile.in: use new doc
24269         * libc/time/time.tex: new chapter
24270         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
24271         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
24272         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
24273         * libc/time/Makefile.in: use new doc
24274
24275 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
24276
24277         * libm/math/log1p.c: split to use the new function way of float
24278         function definition. math/log1p.h deleted
24279         * libm/math/scalb.c: obsolete and deleted
24280         * libm/math/scalbn.c: created from part log1p.c
24281         * libm/math/Makefile.in: know about log1p and scalbn
24282
24283 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
24284
24285         * libc/ctype/isupper.c: revise doc;
24286           libc/ctype/ctype.tex: use doc from isupper.c
24287
24288         * libc/string/bzero.c: new doc
24289
24290 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
24291
24292         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
24293         new doc
24294         * libc/stdlib/Makefile.in: extract new doc
24295         * libc/stdlib/stdlib.tex: use new doc
24296
24297         * libc/string/strerror.c: expanded doc.
24298
24299         * libc/stdio/Makefile.in: extract doc from more files
24300         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
24301         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
24302         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
24303         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
24304         libc/stdio/vsprintf.c: new doc
24305         * libc/stdio/stdio.tex: use new doc
24306
24307 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
24308
24309         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
24310         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
24311         finitef functions.
24312         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
24313         time ago.
24314
24315         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
24316         * libc/stdio/setbuf.c: added ansi style definition.
24317         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
24318         buffer if none provided.
24319         * libc/stdio/tmpfile.c: lint
24320         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
24321         rather than using static, also make sure file isn't already
24322         present.  Uses P_tmpdir. (tempnam): rewritten to use new
24323         subroutine, and uses P_tmpdir.
24324         * libc/stdio/siprintf.c: created
24325
24326 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
24327
24328         Release 1.03 for NEC, major mods. Main differences from release
24329         1.02::
24330
24331         More tests in test/:
24332         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
24333         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
24334         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
24335         get/set mask, get/set sticky and get/set roundtoi.  Tests
24336         that setting the bits changes the way arithmetic is done.
24337         * string.c: added test to make sure memcmp does it with unsigned
24338         chars.
24339         * test.c: cleaned up and removed lint.
24340         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
24341         dvec.c: tests for string to value conversions,  sprintf, scanf,
24342         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
24343         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
24344         rounding in sprintf too.
24345         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
24346         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
24347         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
24348         and function form.
24349         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
24350         powf
24351
24352         In the library:
24353         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
24354         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
24355         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
24356         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
24357         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
24358         than sprintf.
24359         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
24360         * Method of producting float versions of double functions has
24361         changed, functions will be modified gradually. So far:
24362         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
24363         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
24364         altered
24365         * libc/string/memcmp.c: now uses unsigned chars
24366         * libc/string/bcmp.c, libc/string/strcpy.c,
24367         libc/stsring/strxfrm.c: fixed doc
24368         * libc/sys/sysvnecv70.tex: fix example of sbrk code
24369 \f
24370 Local Variables:
24371 version-control: never
24372 End: