440
441 // offsets of inotify_event
442 private static native int[] eventOffsets();
443
444 private static native int inotifyInit() throws UnixException;
445
446 private static native int inotifyAddWatch(int fd, long pathAddress, int mask)
447 throws UnixException;
448
449 private static native void inotifyRmWatch(int fd, int wd)
450 throws UnixException;
451
452 private static native void configureBlocking(int fd, boolean blocking)
453 throws UnixException;
454
455 private static native void socketpair(int[] sv) throws UnixException;
456
457 private static native int poll(int fd1, int fd2) throws UnixException;
458
459 static {
460 jdk.internal.loader.BootLoader.loadLibrary("nio");
461 }
462 }
|
440
441 // offsets of inotify_event
442 private static native int[] eventOffsets();
443
444 private static native int inotifyInit() throws UnixException;
445
446 private static native int inotifyAddWatch(int fd, long pathAddress, int mask)
447 throws UnixException;
448
449 private static native void inotifyRmWatch(int fd, int wd)
450 throws UnixException;
451
452 private static native void configureBlocking(int fd, boolean blocking)
453 throws UnixException;
454
455 private static native void socketpair(int[] sv) throws UnixException;
456
457 private static native int poll(int fd1, int fd2) throws UnixException;
458
459 static {
460 sun.security.action.LoadLibraryAction.privilegedLoadLibrary("nio");
461 }
462 }
|