|
ReactOS 0.4.16-dev-2104-gb84fa49
|
#include <io.h>#include <stdio.h>#include <string.h>#include <stdarg.h>#include "ntstatus.h"#include "windef.h"#include "winternl.h"#include "msvcrt.h"#include "winnls.h"#include "excpt.h"#include "wine/debug.h"
Go to the source code of this file.
Macros | |
| #define | WIN32_NO_STATUS |
| #define | ERR_CASE(oserr) case oserr: |
| #define | ERR_MAPS(oserr, crterr) case oserr: *errno_ptr = crterr; break |
Functions | |
| WINE_DEFAULT_DEBUG_CHANNEL (msvcrt) | |
| void | msvcrt_set_errno (int err) |
| int *CDECL | _errno (void) |
| __msvcrt_ulong *CDECL | __doserrno (void) |
| int CDECL | _get_errno (int *pValue) |
| int CDECL | _get_doserrno (int *pValue) |
| int CDECL | _set_errno (int value) |
| int CDECL | _set_doserrno (int value) |
| char *CDECL | strerror (int err) |
| int CDECL | strerror_s (char *buffer, size_t numberOfElements, int errnum) |
| char *CDECL | _strerror (const char *str) |
| void CDECL | perror (const char *str) |
| void CDECL | _wperror (const wchar_t *str) |
| int CDECL | _wcserror_s (wchar_t *buffer, size_t nc, int err) |
| wchar_t *CDECL | _wcserror (int err) |
| int CDECL | __wcserror_s (wchar_t *buffer, size_t nc, const wchar_t *str) |
| wchar_t *CDECL | __wcserror (const wchar_t *str) |
| void CDECL | _seterrormode (int mode) |
| void __cdecl | _invalid_parameter (const wchar_t *expr, const wchar_t *func, const wchar_t *file, unsigned int line, uintptr_t arg) |
Variables | |
| static char | str_success [] = "Success" |
| static char | str_EPERM [] = "Operation not permitted" |
| static char | str_ENOENT [] = "No such file or directory" |
| static char | str_ESRCH [] = "No such process" |
| static char | str_EINTR [] = "Interrupted system call" |
| static char | str_EIO [] = "Input/output error" |
| static char | str_ENXIO [] = "No such device or address" |
| static char | str_E2BIG [] = "Argument list too long" |
| static char | str_ENOEXEC [] = "Exec format error" |
| static char | str_EBADF [] = "Bad file descriptor" |
| static char | str_ECHILD [] = "No child processes" |
| static char | str_EAGAIN [] = "Resource temporarily unavailable" |
| static char | str_ENOMEM [] = "Cannot allocate memory" |
| static char | str_EACCES [] = "Permission denied" |
| static char | str_EFAULT [] = "Bad address" |
| static char | str_EBUSY [] = "Device or resource busy" |
| static char | str_EEXIST [] = "File exists" |
| static char | str_EXDEV [] = "Invalid cross-device link" |
| static char | str_ENODEV [] = "No such device" |
| static char | str_ENOTDIR [] = "Not a directory" |
| static char | str_EISDIR [] = "Is a directory" |
| static char | str_EINVAL [] = "Invalid argument" |
| static char | str_ENFILE [] = "Too many open files in system" |
| static char | str_EMFILE [] = "Too many open files" |
| static char | str_ENOTTY [] = "Inappropriate ioctl for device" |
| static char | str_EFBIG [] = "File too large" |
| static char | str_ENOSPC [] = "No space left on device" |
| static char | str_ESPIPE [] = "Illegal seek" |
| static char | str_EROFS [] = "Read-only file system" |
| static char | str_EMLINK [] = "Too many links" |
| static char | str_EPIPE [] = "Broken pipe" |
| static char | str_EDOM [] = "Numerical argument out of domain" |
| static char | str_ERANGE [] = "Numerical result out of range" |
| static char | str_EDEADLK [] = "Resource deadlock avoided" |
| static char | str_ENAMETOOLONG [] = "File name too long" |
| static char | str_ENOLCK [] = "No locks available" |
| static char | str_ENOSYS [] = "Function not implemented" |
| static char | str_ENOTEMPTY [] = "Directory not empty" |
| static char | str_EILSEQ [] = "Invalid or incomplete multibyte or wide character" |
| static char | str_generic_error [] = "Unknown error" |
| char * | MSVCRT__sys_errlist [] |
| unsigned int | MSVCRT__sys_nerr = ARRAY_SIZE(MSVCRT__sys_errlist) - 1 |
| static _invalid_parameter_handler | invalid_parameter_handler = NULL |
| #define ERR_CASE | ( | oserr | ) | case oserr: |
| #define ERR_MAPS | ( | oserr, | |
| crterr | |||
| ) | case oserr: *errno_ptr = crterr; break |
| __msvcrt_ulong *CDECL __doserrno | ( | void | ) |
Definition at line 223 of file errno.c.
Referenced by _cwait(), _get_doserrno(), _set_doserrno(), msvcrt_init_fp(), and msvcrt_set_errno().
Definition at line 436 of file errno.c.
Definition at line 405 of file errno.c.
Referenced by __wcserror().
Definition at line 215 of file errno.c.
Referenced by __wcserror_s(), _access_s(), _aligned_offset_malloc(), _aligned_offset_realloc(), _atoi_l(), _atol_l(), _beginthread(), _chdrive(), _chsize_s(), _close(), _cwait(), _dup2(), _fcvt_s(), _findnext(), _findnexti64(), _flsbuf(), _fsopen(), _ftime_s(), _fullpath(), _gcvt(), _gcvt_s(), _get_errno(), _get_osfhandle(), _get_osplatform(), _get_pgmptr(), _get_tzname(), _get_wpgmptr(), _getcwd(), _getdcwd(), _gmtime64_s(), _heapadd(), _i64toa_s(), _i64tow_s(), _localtime32_s(), _localtime64_s(), _locking(), _lseeki64(), _ltoa_s(), _ltow_s(), _makepath_s(), _mbccpy_s_l(), _mbsnbcat_s_l(), _mbstowcs_l(), _mbstrlen_l(), _mktemp_s(), _pclose(), _pipe(), _putenv_s(), _read(), _searchenv_s(), _set_errno(), _setmbcp(), _setmbcp_l(), _setmode(), _sopen_dispatch(), _splitpath_s(), _strdate_s(), _Strftime(), _strlwr_s_l(), _strnset_s(), _strtime_s(), _strtoi64_l(), _strtol_l(), _strtoui64_l(), _strtoul_l(), _strupr_s_l(), _strxfrm_l(), _tolower_l(), _toupper_l(), _tsearchenv_s(), _tstat64(), _ui64toa_s(), _ui64tow_s(), _ultoa_s(), _ultow_s(), _vscprintf_p_l(), _waccess_s(), _wasctime(), _wcslwr_s(), _wcslwr_s_l(), _wcsnset_s(), _wcsset_s(), _wcstod_l(), _wcstoi64_l(), _wcstol_l(), _wcstoui64_l(), _wcstoul_l(), _wcsupr_s_l(), _wcsxfrm_l(), _wctomb_s_l(), _wfindnext(), _wfindnext32(), _wfindnext64(), _wfindnext64i32(), _wfindnexti64(), _wfopen_s(), _wfreopen_s(), _wfullpath(), _wgetcwd(), _wgetdcwd(), _wmakepath_s(), _wmktemp_s(), _wputenv_s(), _write(), _wsearchenv_s(), _wsopen_dispatch(), _wsopen_s(), _wsplitpath_s(), _wstat64(), _wstrdate_s(), _wstrtime_s(), _wsystem(), _wtoi_l(), _wtol_l(), alloc_pioinfo_block(), asctime(), asctime_buf(), calloc(), fopen_s(), freopen_s(), get_ioinfo_alloc(), heap_alloc_dbg(), heap_alloc_dbg_internal(), malloc(), math_error(), mbsrtowcs_s(), mktime_helper(), msvcrt_get_file(), msvcrt_init_fp(), msvcrt_set_errno(), msvcrt_spawn(), perror(), pf_printf(), rand_s(), read_i(), read_utf8(), run_open_osfhandle(), START_TEST(), strerror_s(), strftime_date(), strftime_helper(), strftime_impl(), strftime_int(), strftime_nstr(), strftime_str(), strftime_time(), strtod_helper(), Test_popen(), tmpnam_helper(), vfprintf_helper(), vfwprintf_helper(), vsprintf_p_l_opt(), vswprintf_p_l_opt(), wcsrtombs_l(), wcsrtombs_s_l(), wctomb(), win_iconv_open(), and wtmpnam_helper().
| void __cdecl _invalid_parameter | ( | const wchar_t * | expr, |
| const wchar_t * | func, | ||
| const wchar_t * | file, | ||
| unsigned int | line, | ||
| uintptr_t | arg | ||
| ) |
Definition at line 461 of file errno.c.
Referenced by _fsopen(), _strnset_s(), _strupr(), _tasctime_s(), _vscprintf_p_l(), _wcslwr(), _wcsnset_s(), _wcsset_s(), gets_s(), localtime_s(), pf_printf(), rand_s(), vfprintf_helper(), vfwprintf_helper(), vsprintf_p_l_opt(), and vswprintf_p_l_opt().
Definition at line 264 of file errno.c.
Referenced by _dosmaperr().
Definition at line 255 of file errno.c.
Referenced by _access(), _access_s(), _chdrive(), _dosmaperr(), _i64tow(), _mbstowcs_l(), _Success_(), _tgetcwd(), _tgetdcwd(), _tsearchenv_s(), _tsplitpath_x(), _ui64tow(), _waccess(), _wcserror_s(), _wcsupr_s(), _wsystem(), access_dirT(), do_spawnT(), localtime_s(), signal(), strtol(), strtoull(), system(), vfprintf_s(), vfwprintf_s(), wcsncat_s(), wcsrtombs_l(), and wcstok_s().
Definition at line 315 of file errno.c.
Referenced by _wperror().
Definition at line 354 of file errno.c.
Referenced by PerformRegAction(), ReadFromFile(), and REGPROC_open_export_file().
Definition at line 132 of file errno.c.
Definition at line 337 of file errno.c.
Referenced by _wctomb_s_l(), _wperror(), ADsGetLastError(), check_atari(), check_file_size(), command(), count_blocks(), CreateOutputFile(), dataconn(), disk_close(), disk_create(), disk_query_directory(), disk_query_information(), disk_query_volume_information(), disk_read(), disk_set_information(), disk_write(), flush_output_buffer(), fs_open(), ftruncate_growable(), Generate(), getit(), hookup(), init_leases_list(), initconn(), Jobs(), lcd(), LocalChdirCmd(), LocalMkdirCmd(), LocalRenameCmd(), LocalRmCmd(), LocalRmdirCmd(), main(), MakeDirectory(), MkSpoolDir(), netfinger(), NotifyInfo(), open_tcp_connect(), OpenTmpBookmarkFile(), parallel_create(), PerformRegAction(), printercache_mkdir(), printercache_save_blob(), process_data(), processRegLines(), proxtrans(), PutBookmark(), rd_open_file(), rd_pstcache_mkdir(), read_line(), read_pipe(), recvrequest(), REGPROC_open_export_file(), reset(), rpc_broadcast_exp(), WriterThread::Run(), RunBatch(), ruserpass(), save_licence(), SavePrefs(), sendrequest(), serial_create(), Server(), shell(), ShellCmd(), SpoolGetCmd(), SpoolPutCmd(), SpoolX(), subprocess(), test_file_truncate(), verify_output_file(), WaitForRemoteInput(), WaitForRemoteOutput(), wave_out_open(), wave_out_play(), wave_out_set_format(), wave_out_volume(), wctob(), write_packet(), and xstrdup().
Definition at line 273 of file errno.c.
Referenced by _lzx_get_bytes(), aargh(), adns__must_gettimeofday(), adns__query_send(), adns__querysend_tcp(), adns__tcp_tryconnect(), adns_processreadable(), adns_processwriteable(), adns_wait(), adnsfail(), chmc_init(), chmc_section_create(), clnt_spcreateerror(), clnt_sperror(), errmsgstr(), Error(), fd_event(), fileClient(), fs_flush(), get_ImageBase(), gl_file(), logMess(), main(), mpg123_open(), open_stream(), pdie(), process_directory(), processRequest(), proclog(), rdp2vnc_connect(), readconfig(), rw(), SError(), ServeOneClient(), Server(), set_LogFile(), sysfail(), Test__sys_errlist(), test_file_inherit_child(), test_file_inherit_child_no(), TIFFOpen(), TRIO_ARGS1(), ui_select(), verr(), vwarn(), write_dlldata(), and write_dlldata_list().
Definition at line 288 of file errno.c.
| WINE_DEFAULT_DEBUG_CHANNEL | ( | msvcrt | ) |
|
static |
Definition at line 129 of file errno.c.
Referenced by _invalid_parameter(), test__mbsncpy_s(), test__memicmp(), test__memicmp_l(), test__strnicmp(), test_environment_manipulation(), test_fwprintf(), and test_invalid_parameter_handler().
| char* MSVCRT__sys_errlist[] |
Definition at line 79 of file errno.c.
Referenced by __wcserror_s(), _strerror(), _wcserror_s(), perror(), strerror(), and strerror_s().
| unsigned int MSVCRT__sys_nerr = ARRAY_SIZE(MSVCRT__sys_errlist) - 1 |
Definition at line 127 of file errno.c.
Referenced by __wcserror_s(), _strerror(), _wcserror_s(), perror(), strerror(), and strerror_s().
|
static |
|
static |