/reactos/sdk/lib/ucrt/lowio/ |
H A D | read.cpp | 380 _VALIDATE_CLEAR_OSSERR_RETURN(fh >= 0 && (unsigned)fh < (unsigned)_nhandle, EBADF, -1); in _read() 381 _VALIDATE_CLEAR_OSSERR_RETURN(_osfile(fh) & FOPEN, EBADF, -1); in _read() 382 _VALIDATE_CLEAR_OSSERR_RETURN(buffer_size <= INT_MAX, EINVAL, -1); in _read() 415 _VALIDATE_CLEAR_OSSERR_RETURN(fh >= 0 && (unsigned)fh < (unsigned)_nhandle, EBADF, -1); in _read_nolock() 416 _VALIDATE_CLEAR_OSSERR_RETURN(_osfile(fh) & FOPEN, EBADF, -1); in _read_nolock() 417 _VALIDATE_CLEAR_OSSERR_RETURN(result_buffer_size <= INT_MAX, EINVAL, -1); in _read_nolock() 423 _VALIDATE_CLEAR_OSSERR_RETURN(result_buffer != nullptr, EINVAL, -1); in _read_nolock() 455 _VALIDATE_CLEAR_OSSERR_RETURN(result_buffer_size % 2 == 0, EINVAL, -1); in _read_nolock() 475 _VALIDATE_CLEAR_OSSERR_RETURN((result_buffer_size % 2) == 0, EINVAL, -1); in _read_nolock()
|
H A D | locking.cpp | 97 _VALIDATE_CLEAR_OSSERR_RETURN(fh >= 0 && (unsigned)fh < (unsigned)_nhandle, EBADF, -1); in _locking() 98 _VALIDATE_CLEAR_OSSERR_RETURN(_osfile(fh) & FOPEN, EBADF, -1); in _locking() 99 _VALIDATE_CLEAR_OSSERR_RETURN(number_of_bytes >= 0, EINVAL, -1); in _locking()
|
H A D | eof.cpp | 19 _VALIDATE_CLEAR_OSSERR_RETURN((fh >= 0 && (unsigned)fh < (unsigned)_nhandle), EBADF, -1); in _eof() 20 _VALIDATE_CLEAR_OSSERR_RETURN((_osfile(fh) & FOPEN), EBADF, -1); in _eof()
|
H A D | filelength.cpp | 23 _VALIDATE_CLEAR_OSSERR_RETURN(fh >= 0 && (unsigned)fh < (unsigned)_nhandle, EBADF, -1); in common_filelength() 24 _VALIDATE_CLEAR_OSSERR_RETURN(_osfile(fh) & FOPEN, EBADF, -1); in common_filelength()
|
H A D | osfinfo.cpp | 262 _VALIDATE_CLEAR_OSSERR_RETURN(fh >= 0 && (unsigned)fh < (unsigned)_nhandle, EBADF, -1); in _get_osfhandle() 263 _VALIDATE_CLEAR_OSSERR_RETURN(_osfile(fh) & FOPEN, EBADF, -1); in _get_osfhandle()
|
/reactos/sdk/lib/ucrt/conio/ |
H A D | pipe.cpp | 22 _VALIDATE_CLEAR_OSSERR_RETURN(phandles != nullptr, EINVAL, -1); in _pipe() 25 …_VALIDATE_CLEAR_OSSERR_RETURN((textmode & ~(_O_NOINHERIT | _O_BINARY | _O_TEXT)) == 0, EINVAL, -1); in _pipe() 26 …_VALIDATE_CLEAR_OSSERR_RETURN((textmode & (_O_BINARY | _O_TEXT)) != (_O_BINARY | _O_TEXT), EINVAL,… in _pipe()
|
H A D | cgets.cpp | 112 _VALIDATE_CLEAR_OSSERR_RETURN(string != nullptr, EINVAL, nullptr); in _cgets() 113 _VALIDATE_CLEAR_OSSERR_RETURN(string[0] > 0, EINVAL, nullptr); in _cgets()
|
H A D | cgetws.cpp | 140 _VALIDATE_CLEAR_OSSERR_RETURN(string != nullptr, EINVAL, nullptr); in _cgetws() 141 _VALIDATE_CLEAR_OSSERR_RETURN(string[0] > 0, EINVAL, nullptr); in _cgetws()
|
H A D | cputs.cpp | 15 _VALIDATE_CLEAR_OSSERR_RETURN(string != nullptr, EINVAL, -1); in _cputs()
|
H A D | cputws.cpp | 20 _VALIDATE_CLEAR_OSSERR_RETURN((string != nullptr), EINVAL, -1); in _cputws()
|
/reactos/sdk/lib/ucrt/filesystem/ |
H A D | stat.cpp | 458 _VALIDATE_CLEAR_OSSERR_RETURN(result != nullptr, EINVAL, -1); in common_stat() 461 _VALIDATE_CLEAR_OSSERR_RETURN(path != nullptr, EINVAL, -1); in common_stat() 562 _VALIDATE_CLEAR_OSSERR_RETURN(result != nullptr, EINVAL, -1); in common_fstat() 566 _VALIDATE_CLEAR_OSSERR_RETURN(fh >= 0 && fh < _nhandle, EBADF, -1); in common_fstat() 567 _VALIDATE_CLEAR_OSSERR_RETURN(_osfile(fh) & FOPEN, EBADF, -1); in common_fstat()
|
H A D | wchmod.cpp | 19 _VALIDATE_CLEAR_OSSERR_RETURN(path != nullptr, EINVAL, -1); in _wchmod()
|
/reactos/sdk/lib/ucrt/misc/ |
H A D | chdir.cpp | 62 _VALIDATE_CLEAR_OSSERR_RETURN(path != nullptr, EINVAL, -1); in common_chdir()
|
/reactos/sdk/lib/ucrt/inc/ |
H A D | corecrt_internal_ptd_propagation.h | 395 #undef _VALIDATE_CLEAR_OSSERR_RETURN 409 #undef _VALIDATE_CLEAR_OSSERR_RETURN
|
H A D | internal_shared.h | 90 #define _VALIDATE_CLEAR_OSSERR_RETURN(expr, errorcode, retexpr) \ macro
|
/reactos/sdk/lib/ucrt/exec/ |
H A D | spawnv.cpp | 180 _VALIDATE_CLEAR_OSSERR_RETURN(mode >= 0 && mode <= _P_DETACH, EINVAL, -1); in execute_command()
|