diff options
author | Peter Wemm <peter@FreeBSD.org> | 2007-07-04 22:57:21 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2007-07-04 22:57:21 +0000 |
commit | c2815ad564f29ace8944b8dd302e870e2e005aa8 (patch) | |
tree | aba597bf8efc4ca951999b9075343fd6c9ee705a /sys/kern/sys_generic.c | |
parent | e9ac9968aa9c3466f600ad791be7e3c86c692ce0 (diff) | |
download | src-c2815ad564f29ace8944b8dd302e870e2e005aa8.tar.gz src-c2815ad564f29ace8944b8dd302e870e2e005aa8.zip |
Notes
Diffstat (limited to 'sys/kern/sys_generic.c')
-rw-r--r-- | sys/kern/sys_generic.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c index 992d181f0088..16bd19509cc9 100644 --- a/sys/kern/sys_generic.c +++ b/sys/kern/sys_generic.c @@ -142,6 +142,20 @@ pread(td, uap) return(error); } +int +freebsd6_pread(td, uap) + struct thread *td; + struct freebsd6_pread_args *uap; +{ + struct pread_args oargs; + + oargs.fd = uap->fd; + oargs.buf = uap->buf; + oargs.nbyte = uap->nbyte; + oargs.offset = uap->offset; + return (pread(td, &oargs)); +} + /* * Scatter read system call. */ @@ -337,6 +351,20 @@ pwrite(td, uap) return(error); } +int +freebsd6_pwrite(td, uap) + struct thread *td; + struct freebsd6_pwrite_args *uap; +{ + struct pwrite_args oargs; + + oargs.fd = uap->fd; + oargs.buf = uap->buf; + oargs.nbyte = uap->nbyte; + oargs.offset = uap->offset; + return (pwrite(td, &oargs)); +} + /* * Gather write system call. */ |