diff options
author | jhb <jhb@FreeBSD.org> | 2005-07-07 18:17:55 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-07-07 18:17:55 +0000 |
commit | cf15cbb1b695b3bfb61d396be49bbf6ea3e889c1 (patch) | |
tree | c30d76b42af5454db3e0f1a3a40342b16e62fe4e /sys/compat/linux/linux_misc.c | |
parent | 909e7ff886fb519c878c02fa47955048637cc7e7 (diff) | |
download | FreeBSD-src-cf15cbb1b695b3bfb61d396be49bbf6ea3e889c1.zip FreeBSD-src-cf15cbb1b695b3bfb61d396be49bbf6ea3e889c1.tar.gz |
- Add two new system calls: preadv() and pwritev() which are like readv()
and writev() except that they take an additional offset argument and do
not change the current file position. In SAT speak:
preadv:readv::pread:read and pwritev:writev::pwrite:write.
- Try to reduce code duplication some by merging most of the old
kern_foov() and dofilefoo() functions into new dofilefoo() functions
that are called by kern_foov() and kern_pfoov(). The non-v functions
now all generate a simple uio on the stack from the passed in arguments
and then call kern_foov(). For example, read() now just builds a uio and
calls kern_readv() and pwrite() just builds a uio and calls kern_pwritev().
PR: kern/80362
Submitted by: Marc Olzheim marcolz at stack dot nl (1)
Approved by: re (scottl)
MFC after: 1 week
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
0 files changed, 0 insertions, 0 deletions