summaryrefslogtreecommitdiff
path: root/sys/i386/linux/linux_file.c
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2000-07-19 21:12:39 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2000-07-19 21:12:39 +0000
commite59c84c0ec1daa1599e47c8ac27d65771d429acb (patch)
tree5d91b9367837ffd411f1194c2b0c5bc77e53d3f4 /sys/i386/linux/linux_file.c
parent3344f6a053da51b1b6ed2b0d97c77fc161e6ab48 (diff)
Notes
Diffstat (limited to 'sys/i386/linux/linux_file.c')
-rw-r--r--sys/i386/linux/linux_file.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/i386/linux/linux_file.c b/sys/i386/linux/linux_file.c
index 90d82c2d3295..2cb2303629ce 100644
--- a/sys/i386/linux/linux_file.c
+++ b/sys/i386/linux/linux_file.c
@@ -849,3 +849,31 @@ linux_fdatasync(p, uap)
bsd.fd = uap->fd;
return fsync(p, &bsd);
}
+
+int
+linux_pread(p, uap)
+ struct proc *p;
+ struct linux_pread_args *uap;
+{
+ struct pread_args bsd;
+
+ bsd.fd = uap->fd;
+ bsd.buf = uap->buf;
+ bsd.nbyte = uap->nbyte;
+ bsd.offset = uap->offset;
+ return pread(p, &bsd);
+}
+
+int
+linux_pwrite(p, uap)
+ struct proc *p;
+ struct linux_pwrite_args *uap;
+{
+ struct pwrite_args bsd;
+
+ bsd.fd = uap->fd;
+ bsd.buf = uap->buf;
+ bsd.nbyte = uap->nbyte;
+ bsd.offset = uap->offset;
+ return pwrite(p, &bsd);
+}