jdk/src/solaris/classes/sun/nio/fs/LinuxWatchService.java
changeset 9523 b7c69ba6b563
parent 9035 1255eb81cc2f
child 9679 d98ae8bc45fc
equal deleted inserted replaced
9522:38e96027251b 9523:b7c69ba6b563
   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 }