summaryrefslogtreecommitdiffstats
path: root/sys/sys/syscallsubr.h
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2017-03-19 14:46:40 +0000
committertrasz <trasz@FreeBSD.org>2017-03-19 14:46:40 +0000
commita43cc8b98dc6738add7832af5e872a83d666a0de (patch)
treeebc11897e21564e3a9bc83f4d97b95455175defa /sys/sys/syscallsubr.h
parentdda33d70766a6fd935229fd6293181d7dae494f7 (diff)
downloadFreeBSD-src-a43cc8b98dc6738add7832af5e872a83d666a0de.zip
FreeBSD-src-a43cc8b98dc6738add7832af5e872a83d666a0de.tar.gz
MFC r313018:
Add kern_pread() and kern_pwrite(), and use it in compats instead of their sys_*() counterparts. The svr4 is left unchanged. Sponsored by: DARPA, AFRL
Diffstat (limited to 'sys/sys/syscallsubr.h')
-rw-r--r--sys/sys/syscallsubr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index d938563..f9cb3ed 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -177,11 +177,15 @@ int kern_posix_fallocate(struct thread *td, int fd, off_t offset,
off_t len);
int kern_procctl(struct thread *td, enum idtype idtype, id_t id, int com,
void *data);
+int kern_pread(struct thread *td, int fd, void *buf, size_t nbyte,
+ off_t offset);
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);
int kern_ptrace(struct thread *td, int req, pid_t pid, void *addr,
int data);
+int kern_pwrite(struct thread *td, int fd, const void *buf, size_t nbyte,
+ off_t offset);
int kern_pwritev(struct thread *td, int fd, struct uio *auio, off_t offset);
int kern_readlinkat(struct thread *td, int fd, char *path,
enum uio_seg pathseg, char *buf, enum uio_seg bufseg, size_t count);
OpenPOWER on IntegriCloud