public long read(int fd, byte[] buf, long n) { handler.unimplementedError("read"); return -1; } public long write(int fd, byte[] buf, long n) {
public long write(int fd, ByteBuffer buf, long n) { handler.unimplementedError("write"); return -1; } public long pread(int fd, byte[] buf, long n, long offset) {
@Override public String strerror(int code) { handler.unimplementedError("strerror"); return null; }
@Override public int setegid(int egid) { handler.unimplementedError("setegid"); return -1; }
@Override public int getpriority(int which, int who) { handler.unimplementedError("getpriority"); return -1; }
@Override public String readlink(String oldpath) { handler.unimplementedError("readlink"); return null; }
public Passwd getpwnam(String which) { handler.unimplementedError("getpwnam unimplemented"); return null; } public Group getgrnam(String which) {
@Override public int setuid(int uid) { handler.unimplementedError("setuid"); return -1; }
@Override public int wait(int[] status) { handler.unimplementedError("wait"); return -1; }
public long pwrite(int fd, byte[] buf, long n, long offset) { handler.unimplementedError("pwrite"); return -1; } public long pread(int fd, ByteBuffer buf, long n, long offset) {
public int pread(int fd, byte[] buf, int n, int offset) { handler.unimplementedError("pread"); return -1; } public int pwrite(int fd, byte[] buf, int n, int offset) {
@Override public int execv(String path, String[] argv) { handler.unimplementedError("egid"); return -1; }
@Override public int setgid(int gid) { handler.unimplementedError("setgid"); return -1; }
@Override public int getpgid() { handler.unimplementedError("getpgid"); return -1; }
@Override public int lchmod(String filename, int mode) { handler.unimplementedError("lchmod"); return -1; }
public int getExpire() { handler.unimplementedError("passwd.expire unimplemented"); return ~0; } }
private int old_fstat(int fd, FileStat stat) { try { return super.fstat(fd, stat); } catch (UnsatisfiedLinkError ex2) { handler.unimplementedError("fstat"); return -1; } }
private final int old_lstat(String path, FileStat stat) { try { return super.lstat(path, stat); } catch (UnsatisfiedLinkError ex) { handler.unimplementedError("lstat"); return -1; } }
public int ioprio_get(int which, int who) { Syscall.ABI abi = Syscall.abi(); if (abi == null) { handler.unimplementedError("ioprio_get"); return -1; } return libc().syscall(abi.__NR_ioprio_get(), which, who); }
public int ioprio_set(int which, int who, int ioprio) { Syscall.ABI abi = Syscall.abi(); if (abi == null) { handler.unimplementedError("ioprio_set"); return -1; } return libc().syscall(abi.__NR_ioprio_set(), which, who, ioprio); } }