MCPcopy Create free account
hub / github.com/questdb/questdb / isSecurityError

Method isSecurityError

core/src/main/java/io/questdb/std/Files.java:777–786  ·  view source on GitHub ↗
(int errno)

Source from the content-addressed store, hash-verified

775 native static int close0(int fd);
776
777 static boolean isSecurityError(int errno) {
778 if (Os.isLinux()) {
779 return errno == CairoException.ERRNO_EACCES_LINUX || errno == CairoException.ERRNO_EPERM_LINUX;
780 } else if (Os.isWindows()) {
781 return errno == CairoException.ERRNO_ACCESS_DENIED_WIN;
782 } else if (Os.isOSX()) {
783 return errno == CairoException.ERRNO_EACCES_MACOS || errno == CairoException.ERRNO_EPERM_MACOS;
784 }
785 return false;
786 }
787
788 static native long mmap0(int fd, long len, long offset, int flags, long baseAddress);
789

Callers 2

rmdirMethod · 0.95
rmdirMethod · 0.95

Calls 3

isLinuxMethod · 0.95
isWindowsMethod · 0.95
isOSXMethod · 0.95

Tested by

no test coverage detected