Lines Matching refs:fd
108 int _close_r(struct _reent *ptr, int fd) in _close_r() argument
111 return close(fd); in _close_r()
125 int _fcntl_r(struct _reent *ptr, int fd, int cmd, int arg) in _fcntl_r() argument
137 int _fstat_r(struct _reent *ptr, int fd, struct stat *pstat) in _fstat_r() argument
143 int _isatty_r(struct _reent *ptr, int fd) in _isatty_r() argument
145 if (fd >=0 && fd < 3) in _isatty_r()
178 int flock(int fd, int operation) in flock() argument
183 _off_t _lseek_r(struct _reent *ptr, int fd, _off_t pos, int whence) in _lseek_r() argument
187 rc = lseek(fd, pos, whence); in _lseek_r()
222 _ssize_t _read_r(struct _reent *ptr, int fd, void *buf, size_t nbytes) in _read_r() argument
226 if (fd == STDIN_FILENO) in _read_r()
240 else if (fd == STDOUT_FILENO || fd == STDERR_FILENO) in _read_r()
246 rc = read(fd, buf, nbytes); in _read_r()
292 _ssize_t _write_r(struct _reent *ptr, int fd, const void *buf, size_t nbytes) in _write_r() argument
298 if (fd == STDOUT_FILENO || fd == STDERR_FILENO) in _write_r()
311 else if (fd == STDIN_FILENO) in _write_r()
318 rc = write(fd, buf, nbytes); in _write_r()