1 /** 2 * This file has no copyright assigned and is placed in the Public Domain. 3 * This file is part of the mingw-w64 runtime package. 4 * No warranty is given; refer to the file DISCLAIMER.PD within this package. 5 */ 6 #include <errno.h> 7 _set_errno(int _Value)8errno_t __cdecl _set_errno (int _Value) 9 { 10 errno = _Value; 11 return errno; 12 } 13 _get_errno(int * _Value)14errno_t __cdecl _get_errno (int *_Value) 15 { 16 if(_Value) *_Value=errno; 17 return errno; 18 } 19