38off_t
_lseek(
int fd, off_t offset,
int whence)
41 struct file *filep = NULL;
44 ret = fs_getfilep(fd, &filep);
47 return (off_t)-get_errno();
54 if (filep->
f_dir == NULL) {
55 return (off_t)-EINVAL;
58 rewinddir(filep->
f_dir);
60 seekdir(filep->
f_dir, offset);
62 ret = telldir(filep->
f_dir);
64 return (off_t)-get_errno();
70 ret = file_seek(filep, offset, whence);
80 struct file *filep = NULL;
84 ret = fs_getfilep(fd, &filep);
94 if (filep->
f_dir == NULL) {
98 rewinddir(filep->
f_dir);
100 seekdir(filep->
f_dir, offsetLow);
102 ret = telldir(filep->
f_dir);
110 ret = file_seek64(filep, offset, whence);
off64_t _lseek64(int fd, int offsetHigh, int offsetLow, off64_t *result, int whence)
off_t _lseek(int fd, off_t offset, int whence)
ARG_NUM_3 ARG_NUM_1 ARG_NUM_2 ARG_NUM_2 ARG_NUM_3 ARG_NUM_1 ARG_NUM_4 ARG_NUM_2 ARG_NUM_2 ARG_NUM_5 ARG_NUM_2 ARG_NUM_0 ARG_NUM_2 ARG_NUM_1 ARG_NUM_2 ARG_NUM_3 ARG_NUM_7 ARG_NUM_2 ARG_NUM_3 ARG_NUM_2 ARG_NUM_4 off64_t