< prev index next >

src/java.base/linux/classes/sun/nio/fs/LinuxNativeDispatcher.java

Print this page




 104         try {
 105             fremovexattr0(filedes, buffer.address());
 106         } finally {
 107             buffer.release();
 108         }
 109     }
 110 
 111     private static native void fremovexattr0(int filedes, long nameAddress)
 112         throws UnixException;
 113 
 114     /**
 115      * size_t flistxattr(int filedes, const char *list, size_t size)
 116      */
 117     static native int flistxattr(int filedes, long listAddress, int size)
 118         throws UnixException;
 119 
 120     // initialize
 121     private static native void init();
 122 
 123     static {
 124         AccessController.doPrivileged(new PrivilegedAction<Void>() {
 125             public Void run() {
 126                 System.loadLibrary("nio");
 127                 return null;
 128         }});
 129         init();
 130     }
 131 }


 104         try {
 105             fremovexattr0(filedes, buffer.address());
 106         } finally {
 107             buffer.release();
 108         }
 109     }
 110 
 111     private static native void fremovexattr0(int filedes, long nameAddress)
 112         throws UnixException;
 113 
 114     /**
 115      * size_t flistxattr(int filedes, const char *list, size_t size)
 116      */
 117     static native int flistxattr(int filedes, long listAddress, int size)
 118         throws UnixException;
 119 
 120     // initialize
 121     private static native void init();
 122 
 123     static {
 124         AccessController.doPrivileged(new PrivilegedAction<>() {
 125             public Void run() {
 126                 System.loadLibrary("nio");
 127                 return null;
 128         }});
 129         init();
 130     }
 131 }
< prev index next >