/** * Create a NativeFile object and open the associated file/device * for native access. * * @param fname the name of the file to open * @param flags Linux style file access flags * @param libc standard C library interface to be used. * @throws LastErrorException when operations fails */ public NativeFile(@NonNull String fname, int flags, @NonNull ILibc libc) throws LastErrorException { this.libc = libc; open(fname, flags); }
/** * Create a NativeFile object and open the associated file/device * for native access. * * @param fname the name of the file to open * @param flags Linux style file access flags * @param mode Linux style file access mode * @param libc standard C library interface to be used. * @throws LastErrorException when operations fails */ public NativeFile(@NonNull String fname, int flags, int mode, @NonNull ILibc libc) throws LastErrorException { this.libc = libc; open(fname, flags, mode); }