Lines Matching refs:cenforce

237 private T cenforce(T)(T condition, lazy scope const(char)[] name, string file = __FILE__, size_t li…  in cenforce()  function
253 private T cenforce(T)(T condition, scope const(char)[] name, scope const(FSChar)* namez, in version()
271 private T cenforce(T)(T condition, scope const(char)[] name, scope const(FSChar)* namez, in version()
291 cenforce(false, null, null,
370 cenforce(fd != -1, name); in version()
374 cenforce(fstat(fd, &statbuf) == 0, name, namez); in version()
388 cenforce(actual != -1, name, namez); in version()
451 cenforce(h != INVALID_HANDLE_VALUE, name, namez); in version()
452 scope(exit) cenforce(trustedCloseHandle(h), name, namez); in version()
454 cenforce(trustedGetFileSize(h, fileSize), name, namez); in version()
464 cenforce(trustedReadFile(h, &buf[0], size), name, namez); in version()
836 cenforce(fd != -1, name, namez); in version()
850 cenforce(sum == size, name, namez); in version()
852 cenforce(core.sys.posix.unistd.close(fd) == 0, name, namez); in version()
869 cenforce(h != INVALID_HANDLE_VALUE, name, namez); in version()
870 cenforce(SetFilePointer(h, 0, null, FILE_END) != INVALID_SET_FILE_POINTER, in version()
881 cenforce(h != INVALID_HANDLE_VALUE, name, namez); in version()
894 cenforce(sum == size && CloseHandle(h), name, namez); in version()
996 cenforce(core.stdc.stdio.rename(fromz, toz) == 0, t, toz); in renameImpl()
1061 cenforce(DeleteFileW(namez), name, namez); in removeImpl()
1073 cenforce(core.stdc.stdio.remove(namez) == 0, in removeImpl()
1150 cenforce(trustedStat(namez, statbuf) == 0, names, namez); in version()
1251 cenforce(trustedStat(namez, statbuf) == 0, names, namez); in version()
1561 cenforce(h != INVALID_HANDLE_VALUE, names, namez); in setTimesImpl()
1564 cenforce(CloseHandle(h), names, namez); in setTimesImpl()
1566 cenforce(SetFileTime(h, null, &ta, &tm), names, namez); in setTimesImpl()
1575 cenforce(utimensat(AT_FDCWD, namez, t, 0) == 0, names, namez); in setTimesImpl()
1589 cenforce(false, names, namez); in setTimesImpl()
1596 cenforce(utimes(namez, t) == 0, names, namez); in setTimesImpl()
1671 cenforce(trustedStat(namez, statbuf) == 0, names, namez); in version()
2011 cenforce(result != INVALID_FILE_ATTRIBUTES, names, namez); in version()
2024 cenforce(trustedStat(namez, statbuf) == 0, names, namez); in version()
2869 cenforce(trustedChdir(pathz), pathStr, pathz);
2945 cenforce(trustedMkdir(pathz, octal!777) == 0, pathStr, pathz); in version()
2993 cenforce(GetLastError() == ERROR_ALREADY_EXISTS, pathname.idup); in ensureDirExists()
3001 cenforce(errno == EEXIST || errno == EISDIR, pathname); in ensureDirExists()
3142 cenforce(trustedRmdir(pathz), pathStr, pathz);
3290 cenforce(size != -1, to!string(link));
3303 cenforce(size != -1, to!string(link));
3382 immutable n = cenforce(GetCurrentDirectoryW(to!DWORD(buffW.length), buffW.ptr), in version()
3395 cenforce(n2 && n2 < cn, "getcwd"); in version()
3404 auto p = cenforce(core.sys.posix.unistd.getcwd(null, BUF_SIZE), in version()
3411 auto p = cenforce(core.sys.posix.unistd.getcwd(null, 0), in version()
5388 cenforce(err != 0, "Cannot get available disk space");
5404 cenforce(err == 0, "Cannot get available disk space");
5416 cenforce(err == 0, "Cannot get available disk space");