diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2000-07-17 00:17:07 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2000-07-17 00:17:07 +0000 |
| commit | d5124417a75fdd2c83255ebc42de593e3c15bcfa (patch) | |
| tree | cc9f478b091cbf0ba7b03294e2412f3b30d80c4a /sys/compat/linux/linux_file.c | |
| parent | 6037da7d24b32ac981882081fa31b25555cab36b (diff) | |
Notes
Diffstat (limited to 'sys/compat/linux/linux_file.c')
| -rw-r--r-- | sys/compat/linux/linux_file.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 90d82c2d3295..2cb2303629ce 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/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); +} |
