vnode_if.awk (10676) | vnode_if.awk (11921) |
---|---|
1#!/bin/sh - 2# 3# Copyright (c) 1992, 1993 4# The Regents of the University of California. All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 18 unchanged lines hidden (view full) --- 27# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32# SUCH DAMAGE. 33# 34# @(#)vnode_if.sh 8.1 (Berkeley) 6/10/93 | 1#!/bin/sh - 2# 3# Copyright (c) 1992, 1993 4# The Regents of the University of California. All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 18 unchanged lines hidden (view full) --- 27# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32# SUCH DAMAGE. 33# 34# @(#)vnode_if.sh 8.1 (Berkeley) 6/10/93 |
35# $Id: vnode_if.sh,v 1.5 1995/09/04 00:20:18 dyson Exp $ | 35# $Id: vnode_if.sh,v 1.6 1995/09/11 16:05:16 bde Exp $ |
36# 37 38# Script to produce VFS front-end sugar. 39# 40# usage: vnode_if.sh srcfile 41# (where srcfile is currently /sys/kern/vnode_if.src) 42# 43# These awk scripts are not particularly well written, specifically they --- 226 unchanged lines hidden (view full) --- 270 dirs[numargs] = dir; 271 reles[numargs] = rele; 272 types[numargs] = type; 273 args[numargs] = arg; 274 }; 275 } 276 277 function generate_operation_vp_offsets() { | 36# 37 38# Script to produce VFS front-end sugar. 39# 40# usage: vnode_if.sh srcfile 41# (where srcfile is currently /sys/kern/vnode_if.src) 42# 43# These awk scripts are not particularly well written, specifically they --- 226 unchanged lines hidden (view full) --- 270 dirs[numargs] = dir; 271 reles[numargs] = rele; 272 types[numargs] = type; 273 args[numargs] = arg; 274 }; 275 } 276 277 function generate_operation_vp_offsets() { |
278 printf ("int %s_vp_offsets[] = {\n", name); | 278 printf ("static int %s_vp_offsets[] = {\n", name); |
279 # as a side effect, figure out the releflags 280 releflags = ""; 281 vpnum = 0; 282 for (i=1; i<=numargs; i++) { 283 if (types[i] == "struct vnode *") { 284 printf ("\tVOPARG_OFFSETOF(struct %s_args,a_%s),\n", 285 name, args[i]); 286 if (reles[i] == "WILLRELE") { --- 178 unchanged lines hidden --- | 279 # as a side effect, figure out the releflags 280 releflags = ""; 281 vpnum = 0; 282 for (i=1; i<=numargs; i++) { 283 if (types[i] == "struct vnode *") { 284 printf ("\tVOPARG_OFFSETOF(struct %s_args,a_%s),\n", 285 name, args[i]); 286 if (reles[i] == "WILLRELE") { --- 178 unchanged lines hidden --- |