Home
last modified time | relevance | path

Searched refs:_VALIDATE_CLEAR_OSSERR_RETURN (Results 1 – 16 of 16) sorted by relevance

/reactos/sdk/lib/ucrt/lowio/
H A Dread.cpp380 _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 Dlocking.cpp97 _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 Deof.cpp19 _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 Dfilelength.cpp23 _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 Dosfinfo.cpp262 _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 Dpipe.cpp22 _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 Dcgets.cpp112 _VALIDATE_CLEAR_OSSERR_RETURN(string != nullptr, EINVAL, nullptr); in _cgets()
113 _VALIDATE_CLEAR_OSSERR_RETURN(string[0] > 0, EINVAL, nullptr); in _cgets()
H A Dcgetws.cpp140 _VALIDATE_CLEAR_OSSERR_RETURN(string != nullptr, EINVAL, nullptr); in _cgetws()
141 _VALIDATE_CLEAR_OSSERR_RETURN(string[0] > 0, EINVAL, nullptr); in _cgetws()
H A Dcputs.cpp15 _VALIDATE_CLEAR_OSSERR_RETURN(string != nullptr, EINVAL, -1); in _cputs()
H A Dcputws.cpp20 _VALIDATE_CLEAR_OSSERR_RETURN((string != nullptr), EINVAL, -1); in _cputws()
/reactos/sdk/lib/ucrt/filesystem/
H A Dstat.cpp458 _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 Dwchmod.cpp19 _VALIDATE_CLEAR_OSSERR_RETURN(path != nullptr, EINVAL, -1); in _wchmod()
/reactos/sdk/lib/ucrt/misc/
H A Dchdir.cpp62 _VALIDATE_CLEAR_OSSERR_RETURN(path != nullptr, EINVAL, -1); in common_chdir()
/reactos/sdk/lib/ucrt/inc/
H A Dcorecrt_internal_ptd_propagation.h395 #undef _VALIDATE_CLEAR_OSSERR_RETURN
409 #undef _VALIDATE_CLEAR_OSSERR_RETURN
H A Dinternal_shared.h90 #define _VALIDATE_CLEAR_OSSERR_RETURN(expr, errorcode, retexpr) \ macro
/reactos/sdk/lib/ucrt/exec/
H A Dspawnv.cpp180 _VALIDATE_CLEAR_OSSERR_RETURN(mode >= 0 && mode <= _P_DETACH, EINVAL, -1); in execute_command()