ReactOS 0.4.16-dev-2104-gb84fa49
errno.c File Reference
#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"
Include dependency graph for errno.c:

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"
 
charMSVCRT__sys_errlist []
 
unsigned int MSVCRT__sys_nerr = ARRAY_SIZE(MSVCRT__sys_errlist) - 1
 
static _invalid_parameter_handler invalid_parameter_handler = NULL
 

Macro Definition Documentation

◆ ERR_CASE

#define ERR_CASE (   oserr)    case oserr:

◆ ERR_MAPS

#define ERR_MAPS (   oserr,
  crterr 
)    case oserr: *errno_ptr = crterr; break

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 27 of file errno.c.

Function Documentation

◆ __doserrno()

__msvcrt_ulong *CDECL __doserrno ( void  )

Definition at line 223 of file errno.c.

224{
225 return &msvcrt_get_thread_data()->thread_doserrno;
226}
thread_data_t *CDECL msvcrt_get_thread_data(void)
Definition: thread.c:45

Referenced by _cwait(), _get_doserrno(), _set_doserrno(), msvcrt_init_fp(), and msvcrt_set_errno().

◆ __wcserror()

wchar_t *CDECL __wcserror ( const wchar_t str)

Definition at line 436 of file errno.c.

437{
439 int err;
440
441 if (!data->wcserror_buffer)
442 if (!(data->wcserror_buffer = malloc(256 * sizeof(wchar_t)))) return NULL;
443
444 err = __wcserror_s(data->wcserror_buffer, 256, str);
445 if (err) FIXME("bad wcserror call (%d)\n", err);
446
447 return data->wcserror_buffer;
448}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define malloc
Definition: debug_ros.c:4
#define NULL
Definition: types.h:112
int CDECL __wcserror_s(wchar_t *buffer, size_t nc, const wchar_t *str)
Definition: errno.c:405
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
#define err(...)
const WCHAR * str

◆ __wcserror_s()

int CDECL __wcserror_s ( wchar_t buffer,
size_t  nc,
const wchar_t str 
)

Definition at line 405 of file errno.c.

406{
407 int err;
408 size_t len;
409
410 err = *_errno();
411 if (err < 0 || err > MSVCRT__sys_nerr) err = MSVCRT__sys_nerr;
412
413 len = MultiByteToWideChar(CP_ACP, 0, MSVCRT__sys_errlist[err], -1, NULL, 0) + 1 /* \n */;
414 if (str && *str) len += wcslen(str) + 2 /* ': ' */;
415 if (len > nc)
416 {
417 MSVCRT_INVALID_PMT("buffer[nc] is too small", ERANGE);
418 return ERANGE;
419 }
420 if (str && *str)
421 {
423 lstrcatW(buffer, L": ");
424 }
425 else buffer[0] = '\0';
426 len = wcslen(buffer);
428 lstrcatW(buffer, L"\n");
429
430 return 0;
431}
#define CP_ACP
Definition: compat.h:109
#define lstrcpyW
Definition: compat.h:749
#define MultiByteToWideChar
Definition: compat.h:110
char * MSVCRT__sys_errlist[]
Definition: errno.c:79
unsigned int MSVCRT__sys_nerr
Definition: errno.c:127
int *CDECL _errno(void)
Definition: errno.c:215
_ACRTIMP size_t __cdecl wcslen(const wchar_t *)
Definition: wcs.c:2983
#define ERANGE
Definition: errno.h:55
#define MSVCRT_INVALID_PMT(x, err)
Definition: msvcrt.h:376
#define L(x)
Definition: resources.c:13
GLuint buffer
Definition: glext.h:5915
GLenum GLsizei len
Definition: glext.h:6722
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)
Definition: lstring.c:274

Referenced by __wcserror().

◆ _errno()

int *CDECL _errno ( void  )

Definition at line 215 of file errno.c.

216{
217 return &msvcrt_get_thread_data()->thread_errno;
218}

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().

◆ _get_doserrno()

int CDECL _get_doserrno ( int pValue)

Definition at line 243 of file errno.c.

244{
245 if (!pValue)
246 return EINVAL;
247
248 *pValue = *__doserrno();
249 return 0;
250}
__msvcrt_ulong *CDECL __doserrno(void)
Definition: errno.c:223
#define EINVAL
Definition: errno.h:44
PWCHAR pValue

◆ _get_errno()

int CDECL _get_errno ( int pValue)

Definition at line 231 of file errno.c.

232{
233 if (!pValue)
234 return EINVAL;
235
236 *pValue = *_errno();
237 return 0;
238}

◆ _invalid_parameter()

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.

463{
464#if _MSVCR_VER >= 140
466
467 if (data->invalid_parameter_handler)
468 {
469 data->invalid_parameter_handler( expr, func, file, line, arg );
470 return;
471 }
472#endif
473
475 else
476 {
477 ERR( "%s:%u %s: %s %Ix\n", debugstr_w(file), line, debugstr_w(func), debugstr_w(expr), arg );
478#if _MSVCR_VER >= 80
480#endif
481 }
482}
#define ERR(fmt,...)
Definition: precomp.h:57
VOID WINAPI RaiseException(_In_ DWORD dwExceptionCode, _In_ DWORD dwExceptionFlags, _In_ DWORD nNumberOfArguments, _In_opt_ const ULONG_PTR *lpArguments)
Definition: except.c:700
static _invalid_parameter_handler invalid_parameter_handler
Definition: errno.c:129
GLenum func
Definition: glext.h:6028
#define debugstr_w
Definition: kernel32.h:32
#define STATUS_INVALID_CRUNTIME_PARAMETER
Definition: ntstatus.h:1092
Definition: query.h:86
Definition: fci.c:127
Definition: parser.c:49
#define EXCEPTION_NONCONTINUABLE
Definition: stubs.h:23

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().

◆ _set_doserrno()

int CDECL _set_doserrno ( int  value)

Definition at line 264 of file errno.c.

265{
266 *__doserrno() = value;
267 return 0;
268}
Definition: pdh_main.c:96

Referenced by _dosmaperr().

◆ _set_errno()

◆ _seterrormode()

void CDECL _seterrormode ( int  mode)

Definition at line 453 of file errno.c.

454{
456}
UINT WINAPI SetErrorMode(IN UINT uMode)
Definition: except.c:751
GLenum mode
Definition: glext.h:6217

◆ _strerror()

char *CDECL _strerror ( const char str)

Definition at line 315 of file errno.c.

316{
318 int err;
319
320 if (!data->strerror_buffer)
321 if (!(data->strerror_buffer = malloc(256))) return NULL;
322
323 err = data->thread_errno;
324 if (err < 0 || err > MSVCRT__sys_nerr) err = MSVCRT__sys_nerr;
325
326 if (str && *str)
327 sprintf( data->strerror_buffer, "%s: %s\n", str, MSVCRT__sys_errlist[err] );
328 else
329 sprintf( data->strerror_buffer, "%s\n", MSVCRT__sys_errlist[err] );
330
331 return data->strerror_buffer;
332}
#define sprintf
Definition: sprintf.c:45

Referenced by _wperror().

◆ _wcserror()

wchar_t *CDECL _wcserror ( int  err)

Definition at line 392 of file errno.c.

393{
395
396 if (!data->wcserror_buffer)
397 if (!(data->wcserror_buffer = malloc(256 * sizeof(wchar_t)))) return NULL;
398 _wcserror_s(data->wcserror_buffer, 256, err);
399 return data->wcserror_buffer;
400}
int CDECL _wcserror_s(wchar_t *buffer, size_t nc, int err)
Definition: errno.c:379

◆ _wcserror_s()

int CDECL _wcserror_s ( wchar_t buffer,
size_t  nc,
int  err 
)

Definition at line 379 of file errno.c.

380{
381 if (!MSVCRT_CHECK_PMT(buffer != NULL)) return EINVAL;
382 if (!MSVCRT_CHECK_PMT(nc > 0)) return EINVAL;
383
384 if (err < 0 || err > MSVCRT__sys_nerr) err = MSVCRT__sys_nerr;
386 return 0;
387}
#define MSVCRT_CHECK_PMT(x)
Definition: msvcrt.h:378

Referenced by _wcserror().

◆ _wperror()

void CDECL _wperror ( const wchar_t str)

Definition at line 354 of file errno.c.

355{
356 size_t size;
357 char *buffer = NULL;
358
359 if (str && *str)
360 {
361 size = wcstombs(NULL, str, 0);
362 if (size == -1) return;
363 size++;
364 buffer = malloc(size);
365 if (!buffer) return;
366 if (wcstombs(buffer, str, size) == -1)
367 {
368 free(buffer);
369 return;
370 }
371 }
372 perror(buffer);
373 free(buffer);
374}
#define free
Definition: debug_ros.c:5
void CDECL perror(const char *str)
Definition: errno.c:337
GLsizeiptr size
Definition: glext.h:5919
wcstombs
Definition: stdlib.h:1013

Referenced by PerformRegAction(), ReadFromFile(), and REGPROC_open_export_file().

◆ msvcrt_set_errno()

void msvcrt_set_errno ( int  err)

Definition at line 132 of file errno.c.

133{
134 int *errno_ptr = _errno();
135 __msvcrt_ulong *doserrno = __doserrno();
136
137 *doserrno = err;
138
139 switch(err)
140 {
141#define ERR_CASE(oserr) case oserr:
142#define ERR_MAPS(oserr, crterr) case oserr: *errno_ptr = crterr; break
185 default:
186 /* Remaining cases map to EINVAL */
187 /* FIXME: may be missing some errors above */
188 *errno_ptr = EINVAL;
189 }
190}
#define ERROR_BUSY
Definition: dderror.h:12
#define ERROR_OUTOFMEMORY
Definition: deptool.c:13
#define ERROR_INVALID_HANDLE
Definition: compat.h:98
#define ERROR_ACCESS_DENIED
Definition: compat.h:97
#define ERR_MAPS(oserr, crterr)
#define ERR_CASE(oserr)
unsigned long __msvcrt_ulong
Definition: corecrt.h:168
#define ENOENT
Definition: errno.h:25
#define ENOSPC
Definition: errno.h:49
#define EEXIST
Definition: errno.h:39
#define ECHILD
Definition: errno.h:33
#define ENOEXEC
Definition: errno.h:31
#define EDEADLK
Definition: errno.h:56
#define EPIPE
Definition: errno.h:53
#define EMFILE
Definition: errno.h:46
#define ENOMEM
Definition: errno.h:35
#define EIO
Definition: errno.h:28
#define EBUSY
Definition: errno.h:38
#define ENOTEMPTY
Definition: errno.h:61
#define ENODEV
Definition: errno.h:41
#define E2BIG
Definition: errno.h:30
#define EACCES
Definition: errno.h:36
#define EBADF
Definition: errno.h:32
#define EAGAIN
Definition: errno.h:34
#define ERROR_ALREADY_EXISTS
Definition: disk.h:80
#define ERROR_FILE_NOT_FOUND
Definition: disk.h:79
#define ERROR_BAD_NETPATH
Definition: winerror.h:267
#define ERROR_NOT_ENOUGH_QUOTA
Definition: winerror.h:1480
#define ERROR_CURRENT_DIRECTORY
Definition: winerror.h:241
#define ERROR_IO_DEVICE
Definition: winerror.h:977
#define ERROR_NESTING_NOT_ALLOWED
Definition: winerror.h:392
#define ERROR_BAD_ENVIRONMENT
Definition: winerror.h:235
#define ERROR_SHARING_VIOLATION
Definition: winerror.h:257
#define ERROR_POSSIBLE_DEADLOCK
Definition: winerror.h:991
#define ERROR_TOO_MANY_OPEN_FILES
Definition: winerror.h:229
#define ERROR_INVALID_BLOCK
Definition: winerror.h:234
#define ERROR_PATH_NOT_FOUND
Definition: winerror.h:228
#define ERROR_BAD_PATHNAME
Definition: winerror.h:355
#define ERROR_NO_PROC_SLOTS
Definition: winerror.h:295
#define ERROR_DISK_FULL
Definition: winerror.h:308
#define ERROR_BROKEN_PIPE
Definition: winerror.h:305
#define ERROR_NOT_LOCKED
Definition: winerror.h:352
#define ERROR_CHILD_NOT_COMPLETE
Definition: winerror.h:323
#define ERROR_DIR_NOT_EMPTY
Definition: winerror.h:339
#define ERROR_FILE_EXISTS
Definition: winerror.h:287
#define ERROR_LOCK_VIOLATION
Definition: winerror.h:258
#define ERROR_SEEK_ON_DEVICE
Definition: winerror.h:326
#define ERROR_CANNOT_MAKE
Definition: winerror.h:288
#define ERROR_FAIL_I24
Definition: winerror.h:289
#define ERROR_NO_MORE_FILES
Definition: winerror.h:243
#define ERROR_WAIT_NO_CHILDREN
Definition: winerror.h:322
#define ERROR_BAD_FORMAT
Definition: winerror.h:236
#define ERROR_FILENAME_EXCED_RANGE
Definition: winerror.h:385
#define ERROR_DRIVE_LOCKED
Definition: winerror.h:304
#define ERROR_LOCK_FAILED
Definition: winerror.h:358
#define ERROR_MAX_THRDS_REACHED
Definition: winerror.h:357
#define ERROR_INVALID_ACCESS
Definition: winerror.h:237
#define ERROR_NETWORK_ACCESS_DENIED
Definition: winerror.h:279
#define ERROR_ARENA_TRASHED
Definition: winerror.h:232
#define ERROR_INVALID_DRIVE
Definition: winerror.h:240
#define ERROR_BAD_NET_NAME
Definition: winerror.h:281
#define ERROR_BAD_DEVICE
Definition: winerror.h:1032

◆ perror()

void CDECL perror ( const char str)

Definition at line 337 of file errno.c.

338{
339 int err = *_errno();
340 if (err < 0 || err > MSVCRT__sys_nerr) err = MSVCRT__sys_nerr;
341
342 if (str && *str)
343 {
344 _write( 2, str, strlen(str) );
345 _write( 2, ": ", 2 );
346 }
348 _write( 2, "\n", 1 );
349}
int CDECL _write(int fd, const void *buf, unsigned int count)
Definition: file.c:3561
_ACRTIMP size_t __cdecl strlen(const char *)
Definition: string.c:1592

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().

◆ strerror()

◆ strerror_s()

int CDECL strerror_s ( char buffer,
size_t  numberOfElements,
int  errnum 
)

Definition at line 288 of file errno.c.

289{
290 char *ptr;
291
292 if (!buffer || !numberOfElements)
293 {
294 *_errno() = EINVAL;
295 return EINVAL;
296 }
297
298 if (errnum < 0 || errnum > MSVCRT__sys_nerr)
299 errnum = MSVCRT__sys_nerr;
300
301 ptr = MSVCRT__sys_errlist[errnum];
302 while (*ptr && numberOfElements > 1)
303 {
304 *buffer++ = *ptr++;
306 }
307
308 *buffer = '\0';
309 return 0;
310}
static PVOID ptr
Definition: dispmode.c:27
static size_t numberOfElements
Definition: string.c:98

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( msvcrt  )

Variable Documentation

◆ invalid_parameter_handler

◆ MSVCRT__sys_errlist

char* MSVCRT__sys_errlist[]

Definition at line 79 of file errno.c.

Referenced by __wcserror_s(), _strerror(), _wcserror_s(), perror(), strerror(), and strerror_s().

◆ MSVCRT__sys_nerr

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().

◆ str_E2BIG

char str_E2BIG[] = "Argument list too long"
static

Definition at line 45 of file errno.c.

◆ str_EACCES

char str_EACCES[] = "Permission denied"
static

Definition at line 51 of file errno.c.

◆ str_EAGAIN

char str_EAGAIN[] = "Resource temporarily unavailable"
static

Definition at line 49 of file errno.c.

◆ str_EBADF

char str_EBADF[] = "Bad file descriptor"
static

Definition at line 47 of file errno.c.

◆ str_EBUSY

char str_EBUSY[] = "Device or resource busy"
static

Definition at line 53 of file errno.c.

◆ str_ECHILD

char str_ECHILD[] = "No child processes"
static

Definition at line 48 of file errno.c.

◆ str_EDEADLK

char str_EDEADLK[] = "Resource deadlock avoided"
static

Definition at line 71 of file errno.c.

◆ str_EDOM

char str_EDOM[] = "Numerical argument out of domain"
static

Definition at line 69 of file errno.c.

◆ str_EEXIST

char str_EEXIST[] = "File exists"
static

Definition at line 54 of file errno.c.

◆ str_EFAULT

char str_EFAULT[] = "Bad address"
static

Definition at line 52 of file errno.c.

◆ str_EFBIG

char str_EFBIG[] = "File too large"
static

Definition at line 63 of file errno.c.

◆ str_EILSEQ

char str_EILSEQ[] = "Invalid or incomplete multibyte or wide character"
static

Definition at line 76 of file errno.c.

◆ str_EINTR

char str_EINTR[] = "Interrupted system call"
static

Definition at line 42 of file errno.c.

◆ str_EINVAL

char str_EINVAL[] = "Invalid argument"
static

Definition at line 59 of file errno.c.

◆ str_EIO

char str_EIO[] = "Input/output error"
static

Definition at line 43 of file errno.c.

◆ str_EISDIR

char str_EISDIR[] = "Is a directory"
static

Definition at line 58 of file errno.c.

◆ str_EMFILE

char str_EMFILE[] = "Too many open files"
static

Definition at line 61 of file errno.c.

◆ str_EMLINK

char str_EMLINK[] = "Too many links"
static

Definition at line 67 of file errno.c.

◆ str_ENAMETOOLONG

char str_ENAMETOOLONG[] = "File name too long"
static

Definition at line 72 of file errno.c.

◆ str_ENFILE

char str_ENFILE[] = "Too many open files in system"
static

Definition at line 60 of file errno.c.

◆ str_ENODEV

char str_ENODEV[] = "No such device"
static

Definition at line 56 of file errno.c.

◆ str_ENOENT

char str_ENOENT[] = "No such file or directory"
static

Definition at line 40 of file errno.c.

◆ str_ENOEXEC

char str_ENOEXEC[] = "Exec format error"
static

Definition at line 46 of file errno.c.

◆ str_ENOLCK

char str_ENOLCK[] = "No locks available"
static

Definition at line 73 of file errno.c.

◆ str_ENOMEM

char str_ENOMEM[] = "Cannot allocate memory"
static

Definition at line 50 of file errno.c.

◆ str_ENOSPC

char str_ENOSPC[] = "No space left on device"
static

Definition at line 64 of file errno.c.

◆ str_ENOSYS

char str_ENOSYS[] = "Function not implemented"
static

Definition at line 74 of file errno.c.

◆ str_ENOTDIR

char str_ENOTDIR[] = "Not a directory"
static

Definition at line 57 of file errno.c.

◆ str_ENOTEMPTY

char str_ENOTEMPTY[] = "Directory not empty"
static

Definition at line 75 of file errno.c.

◆ str_ENOTTY

char str_ENOTTY[] = "Inappropriate ioctl for device"
static

Definition at line 62 of file errno.c.

◆ str_ENXIO

char str_ENXIO[] = "No such device or address"
static

Definition at line 44 of file errno.c.

◆ str_EPERM

char str_EPERM[] = "Operation not permitted"
static

Definition at line 39 of file errno.c.

◆ str_EPIPE

char str_EPIPE[] = "Broken pipe"
static

Definition at line 68 of file errno.c.

◆ str_ERANGE

char str_ERANGE[] = "Numerical result out of range"
static

Definition at line 70 of file errno.c.

◆ str_EROFS

char str_EROFS[] = "Read-only file system"
static

Definition at line 66 of file errno.c.

◆ str_ESPIPE

char str_ESPIPE[] = "Illegal seek"
static

Definition at line 65 of file errno.c.

◆ str_ESRCH

char str_ESRCH[] = "No such process"
static

Definition at line 41 of file errno.c.

◆ str_EXDEV

char str_EXDEV[] = "Invalid cross-device link"
static

Definition at line 55 of file errno.c.

◆ str_generic_error

char str_generic_error[] = "Unknown error"
static

Definition at line 77 of file errno.c.

◆ str_success

char str_success[] = "Success"
static

Definition at line 38 of file errno.c.