| 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 | |