diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2004-07-08 00:43:50 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2004-07-08 00:43:50 +0000 |
commit | c438d25d9e4f9b7b62fa3b9bb72e029e8b359211 (patch) | |
tree | e62f8ad4207d9cbdd6a674900ba16194022da63a /share | |
parent | ad5d91b7b1f7f2ed7f71b18eadb8e68b7ae10458 (diff) | |
download | src-c438d25d9e4f9b7b62fa3b9bb72e029e8b359211.tar.gz src-c438d25d9e4f9b7b62fa3b9bb72e029e8b359211.zip |
There is no VOP_TRUNCATE anymore.
style(9) (parenthesis around return values) the example.
Notes
Notes:
svn path=/head/; revision=131773
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/VOP_RDWR.9 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/share/man/man9/VOP_RDWR.9 b/share/man/man9/VOP_RDWR.9 index 4aaea5a52e58..dfe25f34bf7c 100644 --- a/share/man/man9/VOP_RDWR.9 +++ b/share/man/man9/VOP_RDWR.9 @@ -142,7 +142,7 @@ vop_read(struct vnode *vp, struct uio *uio, int ioflag, struct ucred *cred) if (bp != NULL) bqrelse(bp); - return error; + return (error); } int @@ -207,7 +207,8 @@ vop_write(struct vnode *vp, struct uio *uio, int ioflag, struct ucred *cred) if (error) { if (ioflag & IO_UNIT) { - VOP_TRUNCATE(vp, osize, ioflag & IO_SYNC, cred, uio->uio_td); + /* call private routine to truncate file. */ + your_truncate(vp, osize, ioflag & IO_SYNC, cred, uio->uio_td); uio->uio_offset -= resid - uio->uio_resid; uio->uio_resid = resid; } @@ -216,7 +217,7 @@ vop_write(struct vnode *vp, struct uio *uio, int ioflag, struct ucred *cred) error = VOP_UPDATE(vp, &tv, &tv, 1); /* XXX what does this do? */ } - return error; + return (error); } .Ed .Sh ERRORS |