diff options
author | phk <phk@FreeBSD.org> | 1997-09-10 20:11:02 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-09-10 20:11:02 +0000 |
commit | a300d400e95ae536e411be55d358e7ab886c2edf (patch) | |
tree | 0f8ca44ceac4e4291bff2fc1dd520413fe096337 /sys/tools | |
parent | 1a50603a249c2949b7e49144a2ecebc38586ec6d (diff) | |
download | FreeBSD-src-a300d400e95ae536e411be55d358e7ab886c2edf.zip FreeBSD-src-a300d400e95ae536e411be55d358e7ab886c2edf.tar.gz |
3 lines of code and updates to a number of comments.
Reviewed by: phk
Submitted by: Terry Lambert <tlambert@primenet.com>
Diffstat (limited to 'sys/tools')
-rw-r--r-- | sys/tools/vnode_if.awk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk index 75f49a7..d351d8e 100644 --- a/sys/tools/vnode_if.awk +++ b/sys/tools/vnode_if.awk @@ -32,7 +32,7 @@ # SUCH DAMAGE. # # @(#)vnode_if.sh 8.1 (Berkeley) 6/10/93 -# $Id$ +# $Id: vnode_if.sh,v 1.11 1997/02/22 09:39:36 peter Exp $ # # Script to produce VFS front-end sugar. @@ -397,6 +397,8 @@ static inline int VOP_BWRITE(bp) a.a_bp = bp; return (VCALL((bp)->b_vp, VOFFSET(vop_bwrite), &a)); } + +extern int vfs_opv_numops; END_OF_SPECIAL_CASES cat << END_OF_SPECIAL_CASES >> $CFILE @@ -457,3 +459,11 @@ $AWK ' } }' < $SRC >> $CFILE +cat << END_OF_NUMOPS_CODE >> $CFILE + +/* + * the -1 is to account for the NULL + * XXX is the NULL still necessary? I don't think so... + */ +int vfs_opv_numops = (sizeof(vfs_op_descs)/sizeof(struct vnodeop_desc *)) - 1; +END_OF_NUMOPS_CODE |