equal
deleted
inserted
replaced
430 } |
430 } |
431 } |
431 } |
432 |
432 |
433 // -- native methods -- |
433 // -- native methods -- |
434 |
434 |
435 private static native void init(); |
|
436 |
|
437 // sizeof inotify_event |
435 // sizeof inotify_event |
438 private static native int eventSize(); |
436 private static native int eventSize(); |
439 |
437 |
440 // offsets of inotify_event |
438 // offsets of inotify_event |
441 private static native int[] eventOffsets(); |
439 private static native int[] eventOffsets(); |
459 AccessController.doPrivileged(new PrivilegedAction<Void>() { |
457 AccessController.doPrivileged(new PrivilegedAction<Void>() { |
460 public Void run() { |
458 public Void run() { |
461 System.loadLibrary("nio"); |
459 System.loadLibrary("nio"); |
462 return null; |
460 return null; |
463 }}); |
461 }}); |
464 init(); |
|
465 } |
462 } |
466 } |
463 } |