user/lib/libc/src/file/fd/stat.c
/**
 * Gets directory info for the given file.
 */
Gets directory info for the given file.
Gets directory info for the given file .
int fstat(int filedes, struct stat *buf) {
    stream_t *fp = ConvertFdToStream(filedes);
    if(!fp) {
        errno = EBADF;
        return -1;
    }
    errno = EIO;
    return -1;
}
int fstat ( int filedes , struct stat * buf ) { stream_t * fp = ConvertFdToStream ( filedes ) ; if ( ! fp ) { errno = EBADF ; return -1 ; } errno = EIO ; return -1 ; }
Gets directory info for the given file.
Gets directory info for the given file .
// get the file descriptor // TODO: implement