summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/include/stdlib.h
Commit message (Collapse)AuthorAgeFilesLines
* * mingw: Delete obsolete directory.Christopher Faylor2012-11-071-564/+0
| | | | * w32api: Ditto.
* * include/wchar.h (_wcstrtoi64): Declare.Earnie Boyd2012-08-031-4/+4
| | | | | | (_wcstrtoi64_l): Ditto. (_wcstrtoui64): Ditto. (_wcstrtoui64_l): Ditto.
* * include/stdlib.h (_strtoi64): Declare.Earnie Boyd2012-08-031-0/+9
| | | | | | | | | | (_strtoi64_l): Ditto. (_strtoui64): Ditto. (_strtoui64_l): Ditto. (_wcstrtoi64): Ditto. (_wcstrtoi64_l): Ditto. (_wcstrtoui64): Ditto. (_wcstrtoui64_l): Ditto.
* 2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-05-241-5/+2
| | | | | | * include/stdlib.h (strtod): Declare as extern to resolve compilation issues. Thanks to cgf for the report.
* 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-05-231-5/+0
| | | | | | | * include/stdlib.h (strtod): Remove possible static declaration to resolve issue with gcc. Thanks to Tobias Burnus for the report.
* 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-05-231-4/+4
| | | | | | | * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc by wrapping the functions in brackets. Thanks to Kai Tietz for the report.
* 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>Chris Sutcliffe2011-05-231-2/+2
| | | | | | | * include/_mingw.h: Define GCC system_header only if PCC is not defined. * include/stdlib.h: Fix a long-standing typo which prevented correct use of the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h> is included before <ctype.h>.
* 2009-08-08 Danny Smith <dannysmith@users.sourceforge.net>Chris Sutcliffe2009-08-081-1/+1
| | | | | | | | | * include/math.h (__fpclassifyl, __isnan, __isnanf, isnanl, __signbit, __signbitf, __signbitl, sinhf, tanhf, expf, frexpf, ldexpf, hypotf, powf, __fp_unordered_compare): Add prototypes. * include/stdio.h (vsnwprintf): Add prototype. * include/wchar.h (vsnwprintf): Add prototype. * include/unistd.h (ftruncate): Move prototype out of __NO_INLINE__ guard.
* 2009-07-18 Gregory McGarry <gregorymcgarry@users.sourceforge.net>Chris Sutcliffe2009-07-181-1/+5
| | | | | | * include/inttypes.h include/math.h include/stdio.h include/stdlib.h include/string.h include/unistd.h include/wchar.h: Add __NO_INLINE__ guard to all inline functions.
* 2009-06-16 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2009-06-171-0/+1
| | | | * include/stdlib.h (_wtof): Define.
* Make strtod() inline definition C89 compliant.Keith Marshall2008-10-111-2/+5
|
* Fix MinGW-Bug [2125708].Keith Marshall2008-09-251-25/+29
|
* 2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>Chris Sutcliffe2008-05-151-1/+7
| | | | * include/stdlib.h: Fix strtod under C++.
* 2008-05-06 Ramiro Polla <ramiro@lisha.ufsc.br>Chris Sutcliffe2008-05-071-2/+4
| | | | | * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod. * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set.
* 2008-04-02 Ramiro Polla <ramiro@lisha.ufsc.br>Chris Sutcliffe2008-05-031-1/+2
| | | | | | | | | Make strtod() conform to C99. * include/stdlib.h (strtod): Declare this mingwex function, and... (_strtod): rename this MSVCRT counterpart. * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod.
* * incude/wchar.h (_wsystem) Declare.Danny Smith2007-07-121-9/+11
| | | | | | | | | | | | | (_wputenv) Declare. (_wgetenv): Declare. (_wsearchenv): Declare. (_wmakepath): Declare. (_wsplitpath): Declare. (_wfullpath): Declare. * incude/stdlib.h (_wsystem) Declare. (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath, _wfullpath): Move into _WSTDLIB_DEFINED guard. * include/tchar.h (_tsystem): New UNICODE mapping define.
* *include/assert.h: Qualify all functions with __MINGW_NOTHROW.Danny Smith2007-06-231-118/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *include/conio.h: Likewise. *include/ctype.h: Likewise. *include/direct.h: Likewise. *include/dos.h: Likewise. *include/errno.h: Likewise. *include/fenv.h: Likewise. *include/float.h: Likewise. *include/inttypes.h: Likewise. *include/io.h: Likewise. *include/libgen.h: Likewise. *include/locale.h: Likewise. *include/malloc.h: Likewise. *include/mbctype.h: Likewise. *include/mbstring.h: Likewise. *include/process.h: Likewise. *include/search.h: Likewise. *include/setjmp.h: Likewise. *include/signal.h: Likewise. *include/stdio.h: Likewise. *include/stdlib.h: Likewise. *include/string.h: Likewise. *include/time.h: Likewise. *include/wchar.h: Likewise. *include/sys/stat.h: Likewise. *include/sys/time.h: Likewise. *include/sys/timeb.h: Likewise. *include/sys/utime.h: Likewise.
* * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.Danny Smith2007-06-131-2/+8
| | | | * include/io.h: Likewise.
* Expose some msvcr80.dll functions.Danny Smith2007-01-261-2/+16
| | | | | | | | | | | | * include/stdlib.h (_set_abort_behavior): Add prototype. (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for _set_abort_behavior mask argument. (_invalid_parameter_handler): Add typedef. (_set_invalid_parameter_handler): Add prototype. * include/stdio.h (_get_printf_count_output): Add prototype. (_set_printf_count_output): Add prototype. * msvcrt.def.in (_get_printf_count_output, _set_printf_count_output, _set_abort_behavior, _set_invalid_parameter_handler): Add stubs.
* * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define.Danny Smith2006-09-101-4/+4
| | | | | | (__MINGW_IMPORT): Ansify. * include/stdlib.h (_sleep, _beep, _seterrormode): Add __MINGW_ATTRIB_DEPRECATED.
* Import David Gay's gdtoa library.Danny Smith2006-08-311-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | * mingwex/gdtoa: New directory. * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c, g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h, gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c, README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c, ulp.c): New files. * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files. * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files. * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage(). * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage(). * mingwex/wcstold.c: Avoid using strtold internals. * mingwex/wcstof.c: Rewrite. * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution. (GDTOA_OBJS): Add to library. (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h. (STDLIB_OBJS): Remove. (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o. (Q8_OBJS): Add wcstof.o wcstold.o. * include/stdlib.h (strtof): Remove inline definition. (wcstof): Likewise. * include/wchar.h (wcstof): Remove inline definition.
* * include/stdlib.h (strtof): Add prototype. UglifyDanny Smith2005-09-191-6/+16
| | | | | | | | parameter names in inline definition. (wcstof): Likewise. (_Exit): Uglify parameter names in inline definition. (llabs): Add prototype. (_set_error_mode): Add prototype and input defines.
* * include/_mingw.h: Use only two underscores to uglifyDanny Smith2004-07-261-15/+15
| | | | | | | | | | __MINGW_ATTRIB_* macros. * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens. * includ/setjmp.h: Likewise. * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent string functions. (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
* * include/_mingw.h (_MINGW_ATTR_*): Replace withDanny Smith2004-07-251-25/+15
| | | | | | | | | | | | | | | | | | __MINGW_ATTRIB_*. * include/stdlib.h (_ATTRIB_NORETURN): Replace with __MINGW_ATTRIB_NOREURN, throughout. (malloc): Declare with __MINGW_ATTRIB_MALLOC. (calloc): Likewise. (abs): Declare with __MINGW_ATTRIB_CONST. (labs): Likewise. (div): Likewise. (ldiv): Likewise. (lldiv): Likewise. (_rotl): Likewise. (_rotr): Likewise. (_lrotl): Likewise. (_lrotr): Likewise. * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
* * CONTRIBUTORS: New file.Earnie Boyd2004-04-201-19/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DISCLAIMER: Ditto. * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors section CONTRIBUTORS file. Remove RCS tags. * CRTFmode.c: Ditto. * CRTglob.c: Ditto. * CRTinit.c: Ditto. * crt1.c: Ditto. * crtdll.dev: Ditto. * dllcrt1.c: Ditto. * dllmain.c: Ditto. * gccmain.c: Ditto. * init.c: Ditto. * isascii.c: Ditto. * iscsym.c: Ditto. * iscsymf.c: Ditto. * jamfile: Ditto. * main.c: Ditto. * msvcrt.def.in: Ditto. * strcasecmp.c: Ditto. * toascii.c: Ditto. * wcscmpi.c: Ditto. * include/assert.h: Ditto. * include/conio.h: Ditto. * include/ctype.h: Ditto. * include/direct.h: Ditto. * include/dirent.h: Ditto. * include/dos.h: Ditto. * include/errno.h: Ditto. * include/excpt.h: Ditto. * include/fcntl.h: Ditto. * include/float.h: Ditto. * include/io.h: Ditto. * include/locale.h: Ditto. * include/malloc.h: Ditto. * include/math.h: Ditto. * include/process.h: Ditto. * include/setjmp.h: Ditto. * include/share.h: Ditto. * include/signal.h: Ditto. * include/stdio.h: Ditto. * include/stdlib.h: Ditto. * include/string.h: Ditto. * include/tchar.h: Ditto. * include/time.h: Ditto. * include/wchar.h: Ditto. * include/sys/locking.h: Ditto. * include/sys/param.h: Ditto. * include/sys/stat.h: Ditto. * include/sys/timeb.h: Ditto. * include/sys/types.h: Ditto. * include/sys/utime.h: Ditto. * mingwex/dirent.c: Ditto.
* * include/stdlib.h: Guard non-ISO functions withDanny Smith2003-09-291-4/+7
| | | | !__STRICT_ANSI__, throughout.
* * include/_mingw.h (__CRT_INLINE): Define.Danny Smith2003-09-241-10/+10
| | | | | | | | | | | | * include/ctype.h: Replace 'extern inline' with __CRT_INLINE, throughout * include/inttypes.h: Likewise. * include/math.h: Likewise. * include/stdio.h: Likewise. * include/stdlib.h: Likewise. * include/string.h: Likewise. * include/wchar.h: Likewise. * include/wctype.h: Likewise.
* * include/search.h: New file.Danny Smith2003-07-031-1/+2
| | | | | | | * include/stdlib.h: Add comment about qsort, bsearch in search.h. * test_headers.c: Include search.h. * moldname.def.in (lfind, lsearch): Add.
* * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,Danny Smith2003-05-151-7/+8
| | | | but still protect inline definition with __STRICT_ANSI__
* * include/stdlib.h (qsort): Remove const from first parm.Danny Smith2003-03-111-1/+1
| | | | Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
* * include/_mingw.h (_CRTIMP): Define for __GNUC__ ifDanny Smith2003-02-101-115/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __declspec(dllimport) supported. (__cdecl): Define if not already defined. (__stdcall): Likewise. * include/dirent.h: Qualify fuctions with __cdecl. * include/fenv.h: Likewise. * include/inttypes.h: Likewise. * include/assert.h: Qualify fuctions with __cdecl. Qualify CRT dll imports with _CRTIMP. * include/conio.h: Likewise. * include/ctype.h: Likewise. * include/direct.h: Likewise. * include/dos.h: Likewise. * include/errno.h: Likewise. * include/float.h: Likewise. * include/io.h: Likewise. * include/locale.h: Likewise. * include/malloc.h: Likewise. * include/math.h: Likewise. * include/mbctype.h: Likewise. * include/mbstring.h: Likewise. * include/process.h: Likewise. * include/setjmp.h: Likewise. * include/signal.h: Likewise. * include/stdio.h: Likewise. * include/stdlib.h: Likewise. * include/string.h: Likewise. * include/time.h: Likewise. * include/wchar.h: Likewise. * include/wctype.h: Likewise. * include/sys/stat.h: Likewise. * include/sys/timeb.h: Likewise. * include/sys/utime.h: Likewise. * include/ctype.h: Guard ctype inlines with __NO_INLINE__. * include/wctype.h: Guard wctype inlines with __NO_INLINE__. * include/stdio.h (__VALIST): Guard against prior definition.
* * include/stdlib.h: Make words after #endif a comment.Earnie Boyd2003-02-081-1/+1
|
* * include/stdlib.h (_osver, _winver, _winmajor,Danny Smith2003-01-031-4/+11
| | | | | _winminor): Declare as direct imports from dll if __DECLSPEC_SUPPORTED.
* Add strtold and wcstold to libmingwex.aDanny Smith2002-11-261-0/+2
| | | | | | | | | | | | | | | | | * mingwex/strtold.c: New file. * mingwex/wcstold.c: New file. * mingwex/ldtoa.c: New file. * mingwex/math/cephes_emath.h: New file. * mingwex/math/cephes_emath.c: New file. * mingwex/Makefile.in (DISTFILES): Add new files. (MATH_DISTFILES): Ditto. (STDLIB_OBJS): New. Define as strtold.c wcstold.c. (MATH_OBJS): Add cephes_emath.o. (LIB_OBJS): Add $(STDLIB_OBJS). * include/stdlib.h (strtold, wcstold): Add prototypes. * include/wchar.h (wcstold): Add prototype. Add missing ChangeLog entry for 2002-11-09.
* 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith2002-10-201-2/+2
| | | | | | | | | | | | * crt1.c: Define new macro __IN_MINGW_RUNTIME before including stdlib.h. Comment on reason. Define WIN32_MEAN_AND_LEAN before including windows.h * include/stdlib.h (_fmode): Protect declaration as dllimported variable with __IN_MINGW_RUNTIME. 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu> * crt1.c: Include stdlib.h.
* * include/fcntl.h (_fmode): Remove declarations andDanny Smith2002-10-031-2/+27
| | | | | | | | | | | | | | compatibility defines. (_setmode, setmode): Remove prototypes. * include/stdlib (_fmode): Add declarations and compatibility defines. Change type to int. * include/io.h (_setmode, setmode): Add prototypes. * samples/fmode/all.c: Adjust includes. * samples/fmode/test.c: Likewise. * crt1.c (_CRT_fmode): Declare as int. * CRTfmode.c (_CRT_fmode): Likewise. * include/stdlib: Remove comment about MB_CUR_MAX.
* * include/stdlib.h (_imp____mbcur_max): add missing ';'.Danny Smith2002-10-021-2/+2
| | | | (_imp____mbcur_max_dll): Likewise.
* 2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>Danny Smith2002-06-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before defining. * include/excpt.h (): Include windef.h not windows.h. * include/fcntl.h (_O_SHORT_LIVED): Add define. (_chmod): Add prototype. (_creat): Correct prototype. (SH_DENY*): Rename defines to _SH_DENY*. (SH_DENY*): Add Non-ANSI names for _SH_DENY*. include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG, _IOAPPEND): Add defines. (_wfindfirst): Correct prototype. (_wfdopen): Add prototype. * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add prototypes. * include/string.h (_mbschr, _mbstok, _mbsncat): Remove prototypes. (_wcsdup): Correct prototype. * include/mbstring.h: Remove comments about _mbschr, _mbstok, _mbsncat being in string.h. * include/wchar.h (_wfindfirst): Correct prototype. * include/tchar.h (_tfdopen): Add _UNICODE mappings.
* * include/_mingw.h: Increment version to 2.0.Danny Smith2002-06-131-21/+93
| | | | | * Makefile.in: Ditto. Merge in mingwex branch.
* Merge MinGW changesEarnie Boyd2002-01-251-0/+4
|
* Merge MinGW CVS differencesEarnie Boyd2001-12-051-1/+1
|
* 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>Earnie Boyd2001-11-011-3/+3
| | | | | | | | | | | | | | | | | | * include/io.h (_commit): Add declaration. Thanks to: "stefan" <stefan@lkcc.org> 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net> * include/sys/stat.h: Make S_IS* macros safer. 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net> * include/stdlib.h (EXIT_FAILURE): Change value to 1. 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net> * include/stdlib.h (__p__environ, __p__wenviron): Use __STDC__ prototypes.
* * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.Earnie Boyd2001-08-051-4/+1
| | | | | | | | | | * include/stdio.h (_IORW): Change constant to 0x0080. (TMP_MAX): Add new define. (_P_tmpdir): Ditto. (_wP_tmpdir): Ditto. (L_tmpnam): Change constant to 16. * include/malloc.h: Fix non-ANSI comment after #endif. * profile/Makefile.in (mkinstalldirs): Correct relative path.
* *include/stdlib.h (__p__pgmptr): add prototype.Earnie Boyd2001-01-281-0/+21
| | | | | | | | | | | | (__p__wpgmptr): likewise. (_pgmptr_dll): move declaration from dos.h. (_wpgmptr_dll): likewise. (_pgmptr): conditional define (MSVCT/CRTDLL). (_wpgmptr): likewise. *include/dos.h (_base*_dll variables): declare only for CRTDLL. (_os*_dll variables): likewise. (_pgmptr_dll): remove declaration and associated defines to stdlib.h. (_wpgmptr_dll): likewise.
* * include/stdlib.h: Apply Danny Smith patch 102730Earnie Boyd2001-01-161-2/+2
| | | | | 2000-12-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz> (_wgetenv) Correction to return type.
* * include/direct.h: add guard around MSVCRT-only prototytpesEarnie Boyd2000-11-211-7/+20
| | | | | | | | | | | | | | | | * include/io.h: add __int64 struct definitions and function prototypes; add guard for MSVCRT-only prototypes * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX * include/stdio.h: add wchar function prototypes (__MSVCRT__); put wchar functions together to make sync with wchar.h easier * include/stdlib.h: add wide char functions (__MSVCRT__) * include/string.h: add string collation functions ( __MSVCRT__) * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__) * include/tchar.h: add macros and macro function definitions * include/wchar.h: add wide char function prototypes ( __MSVCRT__ ); enclose more functions in __MSVCRT__ guard; some oldname wide char function prototypes #if (0)'d * profile/gmon.h: add guard around BSD-ish typedefs
* import winsup-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+386