Lines Matching defs:fd

200  * int close(int fd);
204 int sys_close(int fd)
206 return my_syscall1(__NR_close, fd);
210 int close(int fd)
212 return __sysret(sys_close(fd));
217 * int dup(int fd);
221 int sys_dup(int fd)
223 return my_syscall1(__NR_dup, fd);
227 int dup(int fd)
229 return __sysret(sys_dup(fd));
340 * int fsync(int fd);
344 int sys_fsync(int fd)
346 return my_syscall1(__NR_fsync, fd);
350 int fsync(int fd)
352 return __sysret(sys_fsync(fd));
357 * int getdents64(int fd, struct linux_dirent64 *dirp, int count);
361 int sys_getdents64(int fd, struct linux_dirent64 *dirp, int count)
363 return my_syscall3(__NR_getdents64, fd, dirp, count);
367 int getdents64(int fd, struct linux_dirent64 *dirp, int count)
369 return __sysret(sys_getdents64(fd, dirp, count));
534 * int ioctl(int fd, unsigned long req, void *value);
538 int sys_ioctl(int fd, unsigned long req, void *value)
540 return my_syscall3(__NR_ioctl, fd, req, value);
544 int ioctl(int fd, unsigned long req, void *value)
546 return __sysret(sys_ioctl(fd, req, value));
590 * off_t lseek(int fd, off_t offset, int whence);
594 off_t sys_lseek(int fd, off_t offset, int whence)
597 return my_syscall3(__NR_lseek, fd, offset, whence);
599 return __nolibc_enosys(__func__, fd, offset, whence);
604 off_t lseek(int fd, off_t offset, int whence)
606 return __sysret(sys_lseek(fd, offset, whence));
679 void *sys_mmap(void *addr, size_t length, int prot, int flags, int fd,
691 return (void *)my_syscall6(n, addr, length, prot, flags, fd, offset);
701 void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset)
703 void *ret = sys_mmap(addr, length, prot, flags, fd, offset);
869 * ssize_t read(int fd, void *buf, size_t count);
873 ssize_t sys_read(int fd, void *buf, size_t count)
875 return my_syscall3(__NR_read, fd, buf, count);
879 ssize_t read(int fd, void *buf, size_t count)
881 return __sysret(sys_read(fd, buf, count));
1030 * int statx(int fd, const char *path, int flags, unsigned int mask, struct statx *buf);
1035 int sys_statx(int fd, const char *path, int flags, unsigned int mask, struct statx *buf)
1038 return my_syscall5(__NR_statx, fd, path, flags, mask, buf);
1040 return __nolibc_enosys(__func__, fd, path, flags, mask, buf);
1045 int statx(int fd, const char *path, int flags, unsigned int mask, struct statx *buf)
1047 return __sysret(sys_statx(fd, path, flags, mask, buf));
1229 * ssize_t write(int fd, const void *buf, size_t count);
1233 ssize_t sys_write(int fd, const void *buf, size_t count)
1235 return my_syscall3(__NR_write, fd, buf, count);
1239 ssize_t write(int fd, const void *buf, size_t count)
1241 return __sysret(sys_write(fd, buf, count));