Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2002-09-102002-09-09 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/include/sys/_types.h (_mbstate_t): Changed to use unsigned char internally. * libc/sys/linux/sys/_types.h: Ditto. * libc/include/sys/reent.h * libc/stdlib/mblen.c (mblen): Use function-specific state value from default reentrancy structure. * libc/stdlib/mblen_r.c (_mblen_r): If return code from _mbtowc_r is less than 0, reset state __count value and return -1. * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer is NULL, use the function-specific pointer provided in the default reentrancy structure. * libc/stdlib/mbrtowc.c: Add reentrant form of function. If input state pointer is NULL, use function-specific area provided in reentrancy structure. * libc/stdlib/mbsrtowcs.c: Ditto. * libc/stdlib/wcrtomb.c: Ditto. * libc/stdlib/wcsrtombs.c: Ditto. * libc/stdlib/mbstowcs.c: Reformat. * libc/stdlib/wcstombs.c: Ditto. * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs, reset the state's __count value and return -1. * libc/stdlib/mbtowc.c: Ditto. * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality. If number of bytes is used up before completing a valid multibyte character, return -2 and save the state. * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count and change some __count references to __state for clarity.
2002-08-292002-08-29 Kazuhiro Fujieda <fujieda@jaist.ac.jp>Jeff Johnston
* libc/include/wchar.h: Define NULL. Define WEOF more general way. Declare functions in newlib manner. * libc/stdlib/Makefile.am: Delete wmem*.c * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/wmemchr.c: Delete. * libc/stdlib/wmemcmp.c: Ditto. * libc/stdlib/wmemcpy.c: Ditto. * libc/stdlib/wmemmove.c: Ditto. * libc/stdlib/wmemset.c: Ditto. * libc/string/Makefile.am: Add wmem*.c and wcs*.c. * libc/string/Makefile.in: Regenerated. * libc/string/wcscat.c: New file derived from the NetBSD C Library. * libc/string/wcschr.c: Ditto. * libc/string/wcscmp.c: Ditto. * libc/string/wcscpy.c: Ditto. * libc/string/wcscspn.c: Ditto. * libc/string/wcslcat.c: Ditto. * libc/string/wcslcpy.c: Ditto. * libc/string/wcslen.c: Ditto. * libc/string/wcsncat.c: Ditto. * libc/string/wcsncmp.c: Ditto. * libc/string/wcsncpy.c: Ditto. * libc/string/wcspbrk.c: Ditto. * libc/string/wcsrchr.c: Ditto. * libc/string/wcsspn.c: Ditto. * libc/string/wcsstr.c: Ditto. * libc/string/wmemchr.c: Ditto. * libc/string/wmemcmp.c: Ditto. * libc/string/wmemcpy.c: Ditto. * libc/string/wmemmove.c: Ditto. * libc/string/wmemset.c: Ditto.
2002-08-282002-08-28 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>. * libc/stdlib/wmemcmp.c: Ditto. * libc/stdlib/wmemcpy.c: Ditto. * libc/stdlib/wmemmove.c: Ditto. * libc/stdlib/wmemset.c: Ditto.
2002-08-282002-08-27 Egor Duda <deo@logos-m.ru>Jeff Johnston
* libc/stdlib/wmemchr.c: New file. * libc/stdlib/wmemcmp.c: Ditto. * libc/stdlib/wmemcpy.c: Ditto. * libc/stdlib/wmemmove.c: Ditto. * libc/stdlib/wmemset.c: Ditto. * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files. * configure.host: Default -DMB_CAPABLE for cygwin. * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(), wmemmove() and wmemset(). Add include of <_ansi.h>. * libc/stdlib/Makefile.in: Regenerate.
2002-08-262002-08-26 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST. * Makefile.in: Regenerated. * acinclude.m4: Add support for --enable-newlib-elix-level option. * aclocal.m4: Regenerated. * configure: Ditto. * configure.host: Add code to define _ELIX_LEVEL if --enable-newlib-elix-level option is used. * configure.in: * libc/aclocal.m4: Regenerated. * libc/configure: Ditto. * libc/argz/Makefile.am: Add EL/IX level checking. * libc/argz/Makefile.in: Regenerated. * libc/argz/dummy.c: New file. * libc/ctype/Makefile.am: Add EL/IX level checking. * libc/ctype/Makefile.in: Regenerated. * libc/locale/Makefile.am: Add EL/IX level checking. * libc/locale/Makefile.in: Regenerated. * libc/posix/Makefile.am: Add EL/IX level checking. * libc/posix/Makefile.in: Regenerated. * libc/posix/telldir.c: Add EL/IX level checking. * libc/reent/Makefile.am: Ditto. * libc/reent/fstat64r.c: Ditto. * libc/reent/lseek64r.c: Ditto. * libc/reent/open64r.c: Ditto. * libc/reent/Makefile.in: Regenerated. * libc/search/Makefile.am: Add EL/IX level checking. * libc/search/Makefile.in: Regenerated. * libc/stdio/Makefile.am: Add EL/IX level checking. * libc/stdio/Makefile.in: Regenerated. * libc/stdio64/Makefile.am: Add EL/IX level checking. * libc/stdio64/Makefile.in: Regenerated. * libc/stdio64/dummy.c: New file. * libc/stdio64/fgetpos64.c: Fix so _LARGEFILE_64 macro is checked after first include. * libc/stdio64/fopen64.c: Ditto. * libc/stdio64/freopen64.c: Ditto. * libc/stdio64/fseeko64.c: Ditto. * libc/stdio64/fsetpos64.c: Ditto. * libc/stdio64/ftello64.c: Ditto. * libc/stdio64/tmpfile64.c: Ditto. * libc/stdlib/Makefile.am: Add EL/IX level checking. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/mstats.c: Add EL/IX level checking. * libc/string/Makefile.am: Ditto. * libc/string/Makefile.in: Regenerated. * libc/sys/linux/Makefile.am: Add EL/IX level checking. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/aclocal.m4: Ditto. * libc/sys/linux/configure: Ditto. * libc/sys/linux/aio.c: Add EL/IX level checking. * libc/sys/linux/ftok.c: Ditto. * libc/sys/linux/getdate.c: Ditto. * libc/sys/linux/ids.c: Ditto. * libc/sys/linux/inode.c: Ditto. * libc/sys/linux/io.c: Ditto. * libc/sys/linux/process.c: Ditto. * libc/sys/linux/resource.c: Ditto. * libc/sys/linux/sched.c: Ditto. * libc/sys/linux/sig.c: Ditto. * libc/sys/linux/termios.c: Ditto. * libc/sys/linux/wait.c: Ditto plus add __waitpid and __libc___waitpid weak aliases. * libc/sys/linux/machine/i386/syscall.h: Add new _base macros that generate the code for a syscall, but do not create a weak alias. * libc/syscalls/Makefile.am: Add EL/IX level checking. * libc/syscalls/Makefile.in: Regenerated. * libc/time/tzset_r.c: Change to replace strdup with equivalent functionality. * libc/unix/Makefile.am: Add EL/IX level checking. * libc/unix/Makefile.in: Regenerated.
2002-08-23 * libc/include/langinfo.h: New file.Thomas Fitzsimmons
* libc/include/wchar.h: Likewise. * libc/include/sys/syslimits.h: Likewise. * libc/locale/fix_grouping.c: Likewise. * libc/locale/ldpart.c: Likewise. * libc/locale/ldpart.h: Likewise. * libc/locale/lmessages.c: Likewise. * libc/locale/lmessages.h: Likewise. * libc/locale/lmonetary.c: Likewise. * libc/locale/lmonetary.h: Likewise. * libc/locale/lnumeric.c: Likewise. * libc/locale/lnumeric.h: Likewise. * libc/locale/nl_langinfo.3: Likewise. * libc/locale/nl_langinfo.c: Likewise. * libc/locale/timelocal.c: Likewise. * libc/locale/timelocal.h: Likewise. * libc/stdlib/btowc.c: Likewise. * libc/stdlib/mbrlen.c: Likewise. * libc/stdlib/mbrtowc.c: Likewise. * libc/stdlib/mbsinit.c: Likewise. * libc/stdlib/mbsrtowcs.c: Likewise. * libc/stdlib/wcrtomb.c: Likewise. * libc/stdlib/wcsrtombs.c: Likewise. * libc/stdlib/wctob.c: Likewise. * libc/sys/linux/prof-freq.c: Likewise. * libc/sys/linux/profile.c: Likewise. * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise. * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise. * libc/include/stdlib.h: Change re-entrant functions to take mbstate_t pointers. * libc/include/sys/_types.h: Define _mbstate_t. * libc/include/sys/config.h (MB_LEN_MAX): New macro. * libc/include/sys/errno.h (EILSEQ): New error code. * libc/include/sys/reent.h: Include wchar.h. Change reentrant structure to use mbstate_t. * libc/locale/Makefile.am (LIB_SOURCES): Add new files. * libc/machine/powerpc/vfprintf.c: Use mbstate_t. * libc/machine/powerpc/vfscanf.c: Likewise. * libc/stdio/getdelim.c: Reallocate buffer only when necessary. * libc/stdio/vfprintf.c: Likewise. * libc/stdio/vfscanf.c: Likewise. * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files. * libc/stdlib/mblen.c: Use mbstate_t. * libc/stdlib/mblen_r.c: Likewise. * libc/stdlib/mbstowcs.c: Likewise. * libc/stdlib/mbstowcs_r.c: Likewise. * libc/stdlib/mbtowc.c: Likewise. * libc/stdlib/mbtowc_r.c: Likewise. * libc/stdlib/wcstombs.c: Likewise. * libc/stdlib/wcstombs_r.c: Likewise. * libc/stdlib/wctomb_r.c: Likewise. * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and profile.c. * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add dl-procinfo.c. * libc/sys/linux/sys/errno.h (EILSEQ): New error code. * libc/sys/linux/sys/types.h (off_t): Define type. * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8 to C-UTF-8. * testsuite/newlib.locale/UTF-8.exp: Likewise.
2002-08-202002-08-20 Casper S. Hornstrup <chorns@users.sourceforge.net>Jeff Johnston
* libc/stdlib/mallocr.c: #include windows.h on Win32. (AlignPage): Continue macro on next line.
2002-08-102002-08-09 Jason Tishler <jason@tishler.net>Jeff Johnston
* libc/stdlib/mallocr.c: Include <limits.h>. (request2size): Change macro to do unsigned long comparisons and avoid signed overflow. (mALLOc): Add overflow check for the number of bytes to allocate. (rEALLOc): Ditto.
2002-07-242002-07-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/include/string.h: Add mempcpy, strndup, and _strndup_r prototypes. * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/strdup.c: Removed. * libc/stdlib/strdup_r.c: Removed. * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c, mempcpy.c, strndup.c, and strndup_r.c. * libc/string/Makefile.in: Regenerated. * libc/string/memccpy.c: New file. * libc/string/mempcpy.c: Ditto. * libc/string/strndup.c: Ditto. * libc/string/strndup_r.c: Ditto. * libc/string/strdup.c: New file moved from stdlib. * libc/string/strdup_r.c: Ditto. * libc/string/strings.tex: Add memccpy and mempcpy documentation.
2002-07-20 * libc/argz/argz_replace.c: Include buf_findstr.h.Thomas Fitzsimmons
* libc/argz/buf_findstr.c: Likewise. * libc/argz/envz_entry.c: Include buf_findstr.h. Cast return value to (char *). * libc/argz/envz_get.c: Likewise. * libc/include/sys/unistd.h: Add getopt and getsubopt declarations. * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c. * libc/stdlib/getsubopt.3: New file. * libc/stdlib/getsubopt.c: New file. * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base): Change esp to ebp.
2002-07-05 * Remove files (should have been done on 2002-06-20).Thomas Fitzsimmons
2002-06-252002-06-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/include/math.h: Remove <sys/types.h>. (__dmath): Use __ULong instead of _uint32_t. * libc/include/sys/reent.h: If long or int is not 32-bits, include <sys/types.h> to get definitions for _int32_t and _uint32_t. * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs. * libm/common/fdlibm.h: Ditto.
2002-06-20 * Makefile.am (LIB_OBJECTLISTS): AddThomas Fitzsimmons
libc/search/objectlist.awk.in. * libc/Makefile.am (SUBDIRS): Add search. (SUBLIBS): Add search/libsearch.la. * libc/configure.in (AC_OUTPUT): Add search/Makefile. * libc/search: New directory. * libc/search/Makefile.am: New file. * libc/search/extern.h: New file. * libc/search/hash.c: New file. * libc/search/hash.h: New file. * libc/search/hash_bigkey.c: New file. * libc/search/hash_buf.c: New file. * libc/search/hash_func.c: New file. * libc/search/hash_log2.c: New file. * libc/search/hash_page.c: New file. * libc/search/hcreate.3: New file. * libc/search/hcreate.c: New file. * libc/search/hcreate.c~: New file. * libc/search/hcreate_r.c: New file. * libc/search/ndbm.c: New file. * libc/search/page.h: New file. * libc/search/tdelete.c: New file. * libc/search/tdestroy.c: New file. * libc/search/tfind.c: New file. * libc/search/tsearch.3: New file. * libc/search/tsearch.c: New file. * libc/search/twalk.c: New file. * libc/include/db.h: New file. * libc/include/ndbm.h: New file. * libc/include/search.h: New file. * libc/include/sys/queue.h: New file. * libc/include/sys/cdefs.h: New file. * libc/include/sys/param.h [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to LITTLE_ENDIAN or BIG_ENDIAN. * libc/include/sys/errno.h (EFTYPE): New macro. * libc/search/bsearch.c: Move from libc/stdlib. * libc/search/qsort.c: Likewise. * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and qsort.c. (CHEWOUT_FILES): Remove bsearch.def and qsort.def. * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
2002-06-142002-06-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/include/stdlib.h: Add _Exit prototype. * libc/stdlib/Makefile.am: Add _Exit.c support. * libc/stdlib/Makefile.in: Ditto. * libc/stdlib/_Exit.c: New file.
2002-06-08 * libm/common/s_fdim.c: New file.Thomas Fitzsimmons
* libm/common/s_fma.c: Likewise. * libm/common/s_fmax.c: Likewise. * libm/common/s_fmin.c: Likewise. * libm/common/s_fpclassify.c: Likewise. * libm/common/s_lrint.c: Likewise. * libm/common/s_lround.c: Likewise. * libm/common/s_nearbyint.c: Likewise. * libm/common/s_remquo.c: Likewise. * libm/common/s_round.c: Likewise. * libm/common/s_scalbln.c: Likewise. * libm/common/s_signbit.c: Likewise. * libm/common/s_trunc.c: Likewise. * libm/common/sf_fdim.c: Likewise. * libm/common/sf_fma.c: Likewise. * libm/common/sf_fmax.c: Likewise. * libm/common/sf_fmin.c: Likewise. * libm/common/sf_lrint.c: Likewise. * libm/common/sf_lround.c: Likewise. * libm/common/sf_nearbyint.c: Likewise. * libm/common/sf_remquo.c: Likewise. * libm/common/sf_round.c: Likewise. * libm/common/sf_scalbln.c: Likewise. * libm/common/sf_trunc.c: Likewise. * libm/math/w_exp2.c: Likewise. * libm/math/w_tgamma.c: Likewise. * libm/math/wf_exp2.c: Likewise. * libm/math/wf_tgamma.c: Likewise. * libm/mathfp/s_exp2.c: Likewise. * libm/mathfp/s_tgamma.c: Likewise. * libm/mathfp/sf_exp2.c: Likewise. * libm/mathfp/sf_tgamma.c: Likewise. * libm/math/er_gamma.c: Fix return value. * libm/math/erf_gamma.c: Likewise. * libm/mathfp/er_gamma.c: Likewise. * libm/mathfp/erf_gamma.c: Likewise. * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific declarations and macros. Regenerated all Makefile.in, aclocal.m4 and configure files to use new libtool macros in top-level libtool.m4
2002-05-162002-05-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/include/stdlib.h: Add on_exit prototype. * libc/include/sys/reent.h (struct _atexit): Add argument array and bits to track type of exit routine to support both on_exit and atexit. (_REENT_INIT_PTR): Add missing fields that won't be zeroed out by default and change the setting of the atexit structure. (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace. * libc/stdlib/on_exit.c: New file. * libc/stdlib/Makefile.am: Add support for on_exit. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/atexit.c: Change to initialize types field. * libc/stdlib/exit.c: Change to look at types field for each exit routine and either call an atexit-style or an on_exit-style routine accordingly.
2002-05-072002-05-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/include/sys/reent.h (_l64a_buf): New reentrant area. (_REENT_L64A_BUF): New macro for accessing area. * libc/stdlib/Makefile.am: Add a64l.c and l64a.c. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/a64l.c: New file. * libc/stdlib/l64a.c: New file.
2002-05-01 * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.Thomas Fitzsimmons
(SUBDEFS): Add LIBC_EXTRA_DEF. * libc/configure.in (LIBC_EXTRA_LIB): New variable. (LIBC_EXTRA_DEF): Likewise. (extra_dir): Likewise. * libc/machine/xscale/machine: New directory. * libc/machine/xscale/machine/profile.h: New file. * Makefile.am (site.exp): Remove newlib_cflags. Add multibuildtop. * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's. * testsuite/lib/flags.exp: New file. * testsuite/lib/newlib.exp: Load flags.exp. (newlib_target_compile): Remove libgloss directory references. (newlib_init): Remove newlib_cflags references.
2002-04-30 * Various formatting and whitespace changes.Thomas Fitzsimmons
2002-04-30 * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.Jonathan Larmour
(_system): New function. Ditto. * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM. * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale targets.
2002-04-25 * Makefile.am (check-DEJAGNU): New target.Thomas Fitzsimmons
(site.exp): Likewise. * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST with AC_CANONICAL_SYSTEM. Remove AC_CANONICAL_BUILD. * libc/locale/locale.c (_setlocale_r): Add UTF-8 support. * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise. * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise. * testsuite: New directory. * testsuite/config: Likewise. * testsuite/lib: Likewise. * testsuite/newlib.locale: Likewise. * testsuite/newlib.string: Likewise. * testsuite/config/default.exp: New file. * testsuite/lib/checkoutput.exp: New file. * testsuite/lib/newlib.exp: New file. * testsuite/lib/passfail.exp: New file. * testsuite/newlib.locale/UTF-8.c: New file. * testsuite/newlib.locale/UTF-8.exp: New file. * testsuite/newlib.locale/locale.exp: New file. * testsuite/newlib.string/string.exp: New file. * testsuite/newlib.string/tstring.c: New file.
2002-04-182002-04-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/include/time.h (tzset, _tzset_r): Added prototypes. (strptime): Moved prototype to be within !__STRICT_ANSI__. (_tzname, _daylight, _timezone): No long __CYGWIN__ only. (tzname): Defined for all platforms. (daylight, timezone): Defined only for CYGWIN. * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after environment set up. * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ environment variable is set. * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and tzset_r.c. * libc/time/Makefile.in: Regenerated. * libc/time/gmtime.c (gmtime): Changed to call gmtime_r. * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r. * libc/time/lcltime_r.c (lcltime_r): Ditto. * libc/time/local.h: New local header file. * libc/time/mktime.c (mktime): Add timezone support. * libc/time/mktm_r.c: New file which is the common engine for gmtime_r and lcltime_r. This code has timezone support. * libc/time/strftime.c (strftime): Add %Z timezone support. * libc/time/tzlock.c: New file containing timezone lock stubs. * libc/time/tzset.c: New file containing tzset() routine. * libc/time/tzset_r.c: New file containing _tzset_r and internal routine for calculating timezone changes for specified year.
2002-04-13* libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrkAlexandre Oliva
fails, don't bail out, and try to correct next time.
2002-04-022002-04-01 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for initializing a struct _reent that has been dynamically allocated. (_REENT_CHECK_MISC): New macro that checks _misc struct for _REENT_SMALL and does nothing otherwise. (_REENT_STRTOK_LAST): New macro for reentrant strtok. (_REENT_MBLEN_STATE): New macro for reentrant mblen. (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc. (_REENT_WCTOMB_STATE): New macro for reentrant wctomb. [_REENT_SMALL](struct _misc_reent): New structure containing miscellaneous reentrant areas needed by newlib. [_REENT_SMALL](struct _reent): Add _misc pointer. [_REENT_SMALL](_REENT_INIT_MISC): New macro. * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC and _REENT_STRTOK_LAST macros. * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC and _REENT_MBLEN_STATE macros. * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC and _REENT_MBTOWC_STATE macros. * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC and _REENT_WCTOMB_STATE macros.
2002-04-022002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>Jeff Johnston
* libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
2002-02-052002-02-05 Manik Raina <manik@cisco.com>Jeff Johnston
* libc/misc/dprintf (parse_number): #if 0 unused function. * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables s, p, k, and outstr. * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
2002-02-03* implement a new `struct _reent' that is significantly smaller. use thisMatthew Green
if _REENT_SMALL is defined in config.h. define this for xstormy16.
2001-12-18 * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equalThomas Fitzsimmons
$(COMPILE) rather than $(CC). * libc/stdio/Makefile.am (LIB_COMPILE): Likewise. (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by $(LIB_COMPILE) change. (vfiprintf.$(oext)): Likewise.
2001-12-14 * Makefile.shared: New file.Thomas Fitzsimmons
* libc/sys/linux/shared.ld: New file. * libm/machine/*: New files. * libm/machine/i386/*: New files. * Makefile.am: Add libtool support. Change math and mathfp references to variables. * configure.host: Add variables for libtool support. Add libm_machine_dir variable. * configure.in: Add objectlist variables, for libtool support. Add CC_FOR_BUILD tests. * libc/Makefile.am: Add libtool support. Change crt0.o reference to be a variable reference. * libc/configure.in: Add libtool support. Change sublib names to be lib${subdir}.la when using libtool. * libc/ctype/Makefile.am: Add libtool support. * libc/errno/Makefile.am: Likewise. * libc/locale/Makefile.am: Likewise. * libc/machine/Makefile.am: Likewise. * libc/machine/configure.in: Likewise. * libc/machine/i386/Makefile.am: Likewise. * libc/machine/i386/configure.in: Likewise. * libc/misc/Makefile.am: Likewise. * libc/posix/Makefile.am: Likewise. * libc/reent/Makefile.am: Likewise. * libc/signal/Makefile.am: Likewise. * libc/stdio/Makefile.am: Likewise. * libc/stdlib/Makefile.am: Likewise. * libc/string/Makefile.am: Likewise. * libc/sys/Makefile.am: Likewise. * libc/sys/configure.in: Likewise. * libc/sys/linux/Makefile.am: Add libtool support. Change awk reference to a variable reference. Change signal.h reference to a variable reference. * libc/sys/linux/configure.in: Add libtool support. * libc/syscalls/Makefile.am: Likewise. * libc/time/Makefile.am: Likewise. * libc/unix/Makefile.am: Likewise. * libm/Makefile.am: Add libtool support. Change math and mathfp references to variables. * libm/configure.in: Add libtool support. Add LIBM_MACHINE_LIB variable. * libm/common/Makefile.am: Add libtool support. * libm/math/Makefile.am: Likewise. * libm/mathfp/Makefile.am: Likewise. Regenerate all Makefile.in, aclocal.m4, and configure.
2001-10-22* libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations throughout.Christopher Faylor
* signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__. * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__. * system.c (_system_r): Ditto.
2001-10-012001-10-01 Charles Wilson <cwilson@ece.gatech.edu>Jeff Johnston
* libc/include/stdlib.h: add declarations for _strtoull_r, _strtoll_r, strtoull, and strtoll. * libc/stdio/local.h: remove declarations of __strtoull_r and __strtoll_r. * libc/stdio/vfscanf.c(__svfscanf_r): call _strtoull_r instead of __strtoull_r. Ditto _strtoll_r vs. __strtoll_r. * libc/stdlib/Makefile.am: add new files to .c list and .def list * libc/stdlib/Makefile.in: regenerate * libc/stdlib/strtoll_r.c: rename __strtoll_r as _strtoll_r * libc/stdlib/strtoull_r.c: rename __strtoull_r as _strtoull_r * libc/stdlib/strtoull.c: new file * libc/stdlib/strtoll.c: new file
2001-09-142001-09-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/stdlib/Makefile.am: Add support to build strtoll_r.c and strtoull_r.c. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/strtoll_r.c: New file. * libc/stdlib/strtoull_r.c: New file. * libc/stdio/local.h: Add prototypes for long long string conversion routines. * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support tied to %L integer conversion specifier.
2001-08-222001-08-21 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional for SIZE_SZ so that alignment ends up a minimum of 8.
2001-06-28Handle ARMs with big endian IEEE words but little endian IEEE bytesNick Clifton
2001-06-11 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencingJonathan Larmour
NULL pointer.
2001-04-212001-04-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together into one list. [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list. (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New function prototypes. (_fscanf_r, _sscanf_r): Ditto. * libc/include/stdlib.h: Added _strtod_r prototype. * libc/stdio/Makefile.am: Add new v*scanf functions. * libc/stdio/Makefile.in: Regenerate. * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype and code is shared. Added reentrant _fscanf_r which calls __svfscanf_r. * libc/stdio/scanf.c: Changed to call __svfscanf_r. * libc/stdio/sscanf.c: Changed documentation to add reentrant routines. (sscanf): Changed to call __svfscanf_r with _REENT argument. (_sscanf_r): New routine. * libc/stdio/local.h: Removed __svfscanf prototype and replaced it with __svfscanf_r prototype. * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New routines. (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy structure as argument as calls reentrant versions of helper functions (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof to _strtol_r and _strtod_r respectively. * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r. * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with _REENT argument. * libc/stdio/vscanf.c: New file. * libc/stdio/vsscanf.c: Ditto.
2001-02-232001-02-22 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/include/machine/setjmp-dj.h: With DJ Delorie's permission, changed the copyright information to allow free modification of the file with no reference to "copying.dj". * libc/include/sys/stat-dj.h: Ditto. * libc/machine/i386/setjmp.S: Ditto. * libc/sys/h8300hms/sys/file.h: Ditto. * libc/sys/sysmec/access.c: Ditto. * libc/sys/sysnecv850/access.c: Ditto. * libc/stdio/mktemp.c: Fixed typo for the word copyright. * libc/stdlib/getenv_r.c: Ditto. * libc/stdlib/putenv_r.c: Ditto. * libc/stdlib/setenv_r.c: Ditto. * libc/stdlib/getenv.c: Removed DJ reference since any possible modifications will now be in the _r version of this file. * libc/stdlib/putenv.c: Ditto. * libc/stdlib/setenv.c: Ditto. * libc/sys/go32/copying.dj: Removed DJ's address which is no longer valid. Added a reference to DJ's web page that contains his address. * libc/sys/go32/*.s: Removed references to DJ's old address. * libc/sys/go32/*.c: Ditto. * libc/sys/go32/*.h: Ditto. * libc/sys/go32/*.S: Ditto. * libc/sys/go32/sys/*.h: Ditto.
2001-02-152001-02-14 Kazuhiro Fujieda <fujieda@jaist.ac.jp>Jeff Johnston
* libc/include/stdlib.h: Add declarations of rand48 functions and their reentrant versions. * libc/include/sys/reent.h: Move macros from rand48.h. Add struct _rand48 for shared parameters of rand48 functions. (struct _reent): Add a variable _r48 of struct _rand48. (_REENT_INIT): Add _r48 initialization. * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions. (CHEWOUT_FILES): Add rand48.def. * libc/stdlib/Makefile.am: Add dependencies for rand48 functions. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the NetBSD C library. * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto. * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto. * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto. * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto. * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto. * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto. * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto. * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto. * libc/stdlib/rand48.c (__dorand48): Ditto. * libc/stdlib/rand48.h: Ditto, and modify declarations of global parameters into macros referring them in the reentrant structure.
2001-01-30* libc/stdlib/mallocr.c: Undefine windows preprocessor variables when compilingChristopher Faylor
under Cygwin.
2000-12-142000-12-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/stdlib/ldtoa.c (_ldcheck): New routine that categorizes a long double as NaN, Infinity, or other. * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed isinfl and isnanl static routines which were i386-specific. Changed calls to the two removed routines to a single _ldcheck call. * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
2000-12-082000-12-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/stdlib/ldtoa.c: Removed include of alloca.h. Also removed \r's. (asctoeg): Replaced alloca call with stack array and malloc when storage exceeds reasonable limit. (e53toe): Fixed einfin calls missing ldp parameter. (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
2000-12-072000-12-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/stdlib/Makefile.am: Added ldtoa.c to list of sources. * libc/stdlib/Makefile.in: Regenerated. * libc/stdio/floatio.h: Added suitable MAXEXP for long double. * libc/stdio/vfieeefp.h: Added long double bit structures. * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support. [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines. (exponent): Changed expbuf to reasonable maximum instead of MAXEXP. * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support. * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and _strtold routines used for conversions between character and long double.
2000-12-042000-12-04 Joel Sherrill <joel@OARcorp.com>Jeff Johnston
* libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
2000-11-22Only reference environ indirectly through a pointerMichael Meissner
2000-09-07* Makefile.am: Fix space vs. tab problem in install-data-local.Christopher Faylor
* Makefile.in: Regenerate. * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__. (_EXPARM): New macro for defining a function parameter. * libc/include/stdlib.h: Use _EXPARM. * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
2000-08-25* libc/stdlib/system.c (do_system): Eliminate explicit declaration of environChristopher Faylor
when compiling under cygwin since it is already declared in unistd.h.
2000-08-252000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston
* libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions like x << y-z to the equivalent x << (y-z). (d2b): changed if statements with assignment to perform the assignment prior to the if check. * libc/reent/reent.c: included stdlib.h for "_free_r" prototype. * libc/unix/getpass.c (getpass): moved "echo" assignment out of if. * libc/unix/ttyname.c: included string.h for "strcpy" prototype. * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and || precedence. * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c). Added "_execve" prototype (for execl.c, execle.c, execv.c, and execve.c). * libc/posix/popen.c (popen): added parentheses to clarify && and || precedence. * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to clarify && and || precendence (and to remove pascalism). * libm/math/e_sinh.c (__ieee754_sinh): Ditto. * libm/math/s_infconst.c: added another pair of braces to all initializers for __infinity (need three: for __infinity[1] array, for union __dmath, and for i[2]).
2000-08-242000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston
* libc/stdlib/abort.c: changed description: uses "raise" instead of "getpid" and "kill"; added: uses "write" and "_exit". Also included unistd.h for "_exit" prototype. * libc/stdlib/system.c: included unistd.h for "execve" prototype, reent.h for "_fork_r" and "_wait_r" prototypes. (do_system): changed extern char *environ[] to POSIX-friendly extern char **environ. * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp" prototypes. * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype. * libc/reent/execr.c: included sys/wait.h for "wait" prototype. * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype. * libc/reent/openr.c: included fcntl.h for "open" prototype. * libc/reent/signalr.c: included signal.h for "kill" prototype, unistd.h for "getpid" prototype. * libc/reent/statr.c: included sys/stat.h for "stat" prototype. * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype. * libc/unix/getut.c (utmpname): removed local, incorrect "strdup" prototype. Also included stdlib.h for "abort", string.h for "strdup" and "strncmp" prototypes. * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and "strncpy", unistd.h for "read" and "close" prototypes. * libc/posix/execvp.c: included string.h for "strchr", "strlen", and "strcat" prototypes.
2000-08-242000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston
* libc/stdlib/envlock.c: changed documented "__env_lock" and "__env_unlock" prototype from "void *" or "char *" to "struct _reent *" to match real function. Also added include of envlock.h. * libc/stdlib/mlock.c: changed documented "__malloc_lock" and "__malloc_unlock" prototype from "void *" or "char *" to "struct _reent *" to match real function. * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock" prototypes (for getenv_r.c and setenv_r.c).
2000-06-20Tue Jun 20 14:30:00 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston
* libc/include/sys/reent.h (_rand_next): Added __extension__ qualifier as long long type is not strict ANSI. * libc/stdlib/rand.c (rand): Added __extension__ qualifier to long long constant.