private int checkFd(int fd) { // There might be a lighter-weight check, but we basically want to // make sure the FD is valid and the effective user can access it, // since we need to simulate fcntl semantics. return libc().fstat(fd, checkFdStat); }
private int checkFd(int fd) { // There might be a lighter-weight check, but we basically want to // make sure the FD is valid and the effective user can access it, // since we need to simulate fcntl semantics. return libc().fstat(fd, checkFdStat); }
private int checkFd(int fd) { // There might be a lighter-weight check, but we basically want to // make sure the FD is valid and the effective user can access it, // since we need to simulate fcntl semantics. return libc().fstat(fd, checkFdStat); }
public int fstat(int fd, FileStat stat) { return libc().fstat(fd, stat); }
public int fstat(int fd, FileStat stat) { return libc().fstat(fd, stat); }
public int fstat(int fd, FileStat stat) { return libc().fstat(fd, stat); }
public int fstat(int fd, FileStat stat) { return libc().fstat(fd, stat); }
public int fstat(FileDescriptor fileDescriptor, FileStat stat) { int fd = helper.getfd(fileDescriptor); return libc().fstat(fd, stat); }
public int fstat(FileDescriptor fileDescriptor, FileStat stat) { int fd = helper.getfd(fileDescriptor); return libc().fstat(fd, stat); }
public int fstat(FileDescriptor fileDescriptor, FileStat stat) { int fd = helper.getfd(fileDescriptor); return libc().fstat(fd, stat); }
public int fstat(FileDescriptor fileDescriptor, FileStat stat) { int fd = helper.getfd(fileDescriptor); return libc().fstat(fd, stat); }
@Override public int fstat(FileDescriptor fileDescriptor, FileStat stat) { int fd = ((WindowsLibC) libc())._open_osfhandle(helper.gethandle(fileDescriptor), 0); try { return libc().fstat(fd, stat); } finally { ((WindowsLibC) libc())._close(fd); } }