diff options
author | jhb <jhb@FreeBSD.org> | 2011-11-14 18:00:15 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2011-11-14 18:00:15 +0000 |
commit | 9315d9d42cc5f041dacb6e324a9c1b58aafb2dd7 (patch) | |
tree | c65b53bda22ffe4d632d919b80c5e3f6cb529bd6 /sys/sys/syscallsubr.h | |
parent | 6521dad4b689c989139dc6ee11871319ae830cd6 (diff) | |
download | FreeBSD-src-9315d9d42cc5f041dacb6e324a9c1b58aafb2dd7.zip FreeBSD-src-9315d9d42cc5f041dacb6e324a9c1b58aafb2dd7.tar.gz |
- Split out a kern_posix_fadvise() from the posix_fadvise() system call so
it can be used by in-kernel consumers.
- Make kern_posix_fallocate() public.
- Use kern_posix_fadvise() and kern_posix_fallocate() to implement the
freebsd32 wrappers for the two system calls.
Diffstat (limited to 'sys/sys/syscallsubr.h')
-rw-r--r-- | sys/sys/syscallsubr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h index 7649f1a..08dba2f 100644 --- a/sys/sys/syscallsubr.h +++ b/sys/sys/syscallsubr.h @@ -153,6 +153,10 @@ int kern_openat(struct thread *td, int fd, char *path, int kern_pathconf(struct thread *td, char *path, enum uio_seg pathseg, int name, u_long flags); int kern_pipe(struct thread *td, int fildes[2]); +int kern_posix_fadvise(struct thread *td, int fd, off_t offset, off_t len, + int advice); +int kern_posix_fallocate(struct thread *td, int fd, off_t offset, + off_t len); int kern_preadv(struct thread *td, int fd, struct uio *auio, off_t offset); int kern_pselect(struct thread *td, int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tvp, sigset_t *uset, int abi_nfdbits); |