Lines Matching refs:fd
55 static chan_t *fd_to_channel(int fd) in fd_to_channel() argument
57 if ((fd < 0) || (fd >= NR_CHANS) || (fdset[fd].index == NODEV)) { in fd_to_channel()
61 return &fdset[fd]; in fd_to_channel()
496 int close(int fd) in close() argument
500 channel = fd_to_channel(fd); in close()
608 int read(int fd, void *buf, int n) in read() argument
616 channel = fd_to_channel(fd); in read()
633 int write(int fd, void *buf, int n) in write() argument
641 channel = fd_to_channel(fd); in write()
657 int seek(int fd, long off, int whence) in seek() argument
661 channel = fd_to_channel(fd); in seek()