Home | History | Annotate | Line # | Download | only in kern
vnode_if.sh revision 1.19.2.3
      1       1.1   mycroft #!/bin/sh -
      2       1.9       cgd copyright="\
      3       1.2       gwr /*
      4      1.16      fvdl  * Copyright (c) 1992, 1993, 1994, 1995
      5       1.2       gwr  *	The Regents of the University of California.  All rights reserved.
      6       1.2       gwr  *
      7       1.2       gwr  * Redistribution and use in source and binary forms, with or without
      8       1.2       gwr  * modification, are permitted provided that the following conditions
      9       1.2       gwr  * are met:
     10       1.2       gwr  * 1. Redistributions of source code must retain the above copyright
     11       1.2       gwr  *    notice, this list of conditions and the following disclaimer.
     12       1.2       gwr  * 2. Redistributions in binary form must reproduce the above copyright
     13       1.2       gwr  *    notice, this list of conditions and the following disclaimer in the
     14       1.2       gwr  *    documentation and/or other materials provided with the distribution.
     15       1.2       gwr  * 3. All advertising materials mentioning features or use of this software
     16       1.2       gwr  *    must display the following acknowledgement:
     17       1.2       gwr  *	This product includes software developed by the University of
     18       1.2       gwr  *	California, Berkeley and its contributors.
     19       1.2       gwr  * 4. Neither the name of the University nor the names of its contributors
     20       1.2       gwr  *    may be used to endorse or promote products derived from this software
     21       1.2       gwr  *    without specific prior written permission.
     22       1.2       gwr  *
     23      1.18  christos  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS \`\`AS IS'' AND
     24       1.2       gwr  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     25       1.2       gwr  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     26       1.2       gwr  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     27       1.2       gwr  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     28       1.2       gwr  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     29       1.2       gwr  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     30       1.2       gwr  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     31       1.2       gwr  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     32       1.2       gwr  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     33       1.2       gwr  * SUCH DAMAGE.
     34       1.2       gwr  */
     35       1.9       cgd "
     36  1.19.2.3    bouyer SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.19.2.3 2001/02/11 19:16:52 bouyer Exp $'
     37       1.1   mycroft 
     38       1.1   mycroft # Script to produce VFS front-end sugar.
     39       1.1   mycroft #
     40       1.1   mycroft # usage: vnode_if.sh srcfile
     41       1.1   mycroft #	(where srcfile is currently /sys/kern/vnode_if.src)
     42       1.1   mycroft #
     43       1.1   mycroft 
     44       1.1   mycroft if [ $# -ne 1 ] ; then
     45       1.1   mycroft 	echo 'usage: vnode_if.sh srcfile'
     46       1.1   mycroft 	exit 1
     47       1.1   mycroft fi
     48       1.2       gwr 
     49       1.9       cgd # Name and revision of the source file.
     50       1.2       gwr src=$1
     51       1.9       cgd SRC_ID=`head -1 $src | sed -e 's/.*\$\(.*\)\$.*/\1/'`
     52       1.1   mycroft 
     53       1.1   mycroft # Names of the created files.
     54       1.2       gwr out_c=vnode_if.c
     55       1.9       cgd out_h=../sys/vnode_if.h
     56       1.2       gwr 
     57       1.2       gwr # Awk program (must support nawk extensions)
     58       1.2       gwr # Use "awk" at Berkeley, "nawk" or "gawk" elsewhere.
     59       1.2       gwr awk=${AWK:-awk}
     60       1.2       gwr 
     61       1.2       gwr # Does this awk have a "toupper" function? (i.e. is it GNU awk)
     62       1.2       gwr isgawk=`$awk 'BEGIN { print toupper("true"); exit; }' 2>/dev/null`
     63       1.2       gwr 
     64       1.2       gwr # If this awk does not define "toupper" then define our own.
     65       1.2       gwr if [ "$isgawk" = TRUE ] ; then
     66       1.2       gwr 	# GNU awk provides it.
     67       1.2       gwr 	toupper=
     68       1.2       gwr else
     69       1.2       gwr 	# Provide our own toupper()
     70       1.2       gwr 	toupper='
     71       1.2       gwr function toupper(str) {
     72       1.2       gwr 	_toupper_cmd = "echo "str" |tr a-z A-Z"
     73       1.2       gwr 	_toupper_cmd | getline _toupper_str;
     74       1.2       gwr 	close(_toupper_cmd);
     75       1.2       gwr 	return _toupper_str;
     76       1.2       gwr }'
     77       1.2       gwr fi
     78       1.1   mycroft 
     79       1.2       gwr #
     80       1.2       gwr # This is the common part of all awk programs that read $src
     81       1.2       gwr # This parses the input for one function into the arrays:
     82       1.2       gwr #	argdir, argtype, argname, willrele
     83       1.2       gwr # and calls "doit()" to generate output for the function.
     84       1.2       gwr #
     85       1.2       gwr # Input to this parser is pre-processed slightly by sed
     86       1.2       gwr # so this awk parser doesn't have to work so hard.  The
     87       1.2       gwr # changes done by the sed pre-processing step are:
     88       1.2       gwr #	insert a space beween * and pointer name
     89       1.2       gwr #	replace semicolons with spaces
     90       1.2       gwr #
     91       1.2       gwr sed_prep='s:\*\([^\*/]\):\* \1:g
     92       1.2       gwr s/;/ /'
     93       1.2       gwr awk_parser='
     94       1.2       gwr # Comment line
     95       1.2       gwr /^#/	{ next; }
     96       1.2       gwr # First line of description
     97       1.2       gwr /^vop_/	{
     98       1.2       gwr 	name=$1;
     99       1.2       gwr 	argc=0;
    100       1.2       gwr 	next;
    101       1.2       gwr }
    102       1.2       gwr # Last line of description
    103       1.2       gwr /^}/	{
    104       1.2       gwr 	doit();
    105       1.2       gwr 	next;
    106       1.2       gwr }
    107       1.2       gwr # Middle lines of description
    108       1.2       gwr {
    109       1.2       gwr 	argdir[argc] = $1; i=2;
    110       1.2       gwr 	if ($2 == "WILLRELE") {
    111       1.2       gwr 		willrele[argc] = 1;
    112       1.2       gwr 		i++;
    113      1.19  wrstuden 	} else if ($2 == "WILLUNLOCK") {
    114      1.19  wrstuden 		willrele[argc] = 2;
    115      1.19  wrstuden 		i++;
    116      1.19  wrstuden 	} else if ($2 == "WILLPUT") {
    117      1.19  wrstuden 		willrele[argc] = 3;
    118      1.19  wrstuden 		i++;
    119       1.2       gwr 	} else
    120       1.2       gwr 		willrele[argc] = 0;
    121       1.7       cgd 	argtype[argc] = $i; i++;
    122       1.2       gwr 	while (i < NF) {
    123       1.7       cgd 		argtype[argc] = argtype[argc]" "$i;
    124       1.2       gwr 		i++;
    125       1.2       gwr 	}
    126       1.2       gwr 	argname[argc] = $i;
    127       1.2       gwr 	argc++;
    128       1.2       gwr 	next;
    129       1.2       gwr }
    130       1.2       gwr '
    131       1.1   mycroft 
    132      1.15   thorpej # This is put before the copyright on each generated file.
    133       1.9       cgd warning="\
    134      1.15   thorpej /*	@NetBSD@	*/
    135      1.15   thorpej 
    136       1.1   mycroft /*
    137       1.2       gwr  * Warning: This file is generated automatically.
    138       1.2       gwr  * (Modifications made here may easily be lost!)
    139       1.1   mycroft  *
    140       1.9       cgd  * Created from the file:
    141       1.9       cgd  *	${SRC_ID}
    142       1.9       cgd  * by the script:
    143       1.2       gwr  *	${SCRIPT_ID}
    144       1.1   mycroft  */
    145       1.9       cgd " 
    146       1.2       gwr 
    147       1.7       cgd # This is to satisfy McKusick (get rid of evil spaces 8^)
    148       1.7       cgd anal_retentive='s:\([^/]\*\) :\1:g'
    149       1.2       gwr 
    150       1.2       gwr #
    151       1.2       gwr # Redirect stdout to the H file.
    152       1.2       gwr #
    153       1.2       gwr echo "$0: Creating $out_h" 1>&2
    154       1.2       gwr exec > $out_h
    155       1.1   mycroft 
    156       1.2       gwr # Begin stuff
    157      1.15   thorpej echo -n "$warning" | sed -e 's/\$//g;s/@/\$/g'
    158       1.9       cgd echo ""
    159       1.9       cgd echo -n "$copyright"
    160      1.10     mikel echo ''
    161      1.10     mikel echo '#ifndef _SYS_VNODE_IF_H_'
    162      1.10     mikel echo '#define _SYS_VNODE_IF_H_'
    163  1.19.2.1    bouyer echo ''
    164  1.19.2.1    bouyer echo '#ifdef _KERNEL'
    165  1.19.2.2    bouyer echo '#if defined(_LKM) || defined(LKM)'
    166  1.19.2.1    bouyer echo '/* LKMs always use non-inlined vnode ops. */'
    167  1.19.2.1    bouyer echo '#define	VNODE_OP_NOINLINE'
    168  1.19.2.1    bouyer echo '#else'
    169  1.19.2.1    bouyer echo '#include "opt_vnode_op_noinline.h"'
    170  1.19.2.1    bouyer echo '#endif'
    171  1.19.2.1    bouyer echo '#endif /* _KERNEL */'
    172       1.2       gwr echo '
    173  1.19.2.3    bouyer extern const struct vnodeop_desc vop_default_desc;
    174       1.2       gwr '
    175       1.1   mycroft 
    176       1.2       gwr # Body stuff
    177       1.2       gwr # This awk program needs toupper() so define it if necessary.
    178       1.2       gwr sed -e "$sed_prep" $src | $awk "$toupper"'
    179       1.2       gwr function doit() {
    180       1.2       gwr 	# Declare arg struct, descriptor.
    181       1.2       gwr 	printf("\nstruct %s_args {\n", name);
    182  1.19.2.3    bouyer 	printf("\tconst struct vnodeop_desc * a_desc;\n");
    183       1.2       gwr 	for (i=0; i<argc; i++) {
    184       1.7       cgd 		printf("\t%s a_%s;\n", argtype[i], argname[i]);
    185       1.1   mycroft 	}
    186       1.2       gwr 	printf("};\n");
    187  1.19.2.3    bouyer 	printf("extern const struct vnodeop_desc %s_desc;\n", name);
    188       1.8    chopps 	# Prototype it.
    189  1.19.2.1    bouyer 	printf("#ifndef VNODE_OP_NOINLINE\n");
    190  1.19.2.1    bouyer 	printf("static __inline\n");
    191  1.19.2.1    bouyer 	printf("#endif\n");
    192  1.19.2.1    bouyer 	protoarg = sprintf("int %s(", toupper(name));
    193       1.8    chopps 	protolen = length(protoarg);
    194       1.8    chopps 	printf("%s", protoarg);
    195       1.8    chopps 	for (i=0; i<argc; i++) {
    196       1.8    chopps 		protoarg = sprintf("%s", argtype[i]);
    197       1.8    chopps 		if (i < (argc-1)) protoarg = (protoarg ", ");
    198       1.8    chopps 		arglen = length(protoarg);
    199       1.8    chopps 		if ((protolen + arglen) > 77) {
    200       1.8    chopps 			protoarg = ("\n    " protoarg);
    201       1.8    chopps 			arglen += 4;
    202       1.8    chopps 			protolen = 0;
    203       1.8    chopps 		}
    204       1.8    chopps 		printf("%s", protoarg);
    205       1.8    chopps 		protolen += arglen;
    206       1.8    chopps 	}
    207  1.19.2.1    bouyer 	printf(")\n");
    208  1.19.2.1    bouyer 	printf("#ifndef VNODE_OP_NOINLINE\n");
    209  1.19.2.1    bouyer 	printf("__attribute__((__unused__))\n");
    210  1.19.2.1    bouyer 	printf("#endif\n");
    211  1.19.2.1    bouyer 	printf(";\n");
    212       1.2       gwr 	# Define inline function.
    213  1.19.2.1    bouyer 	printf("#ifndef VNODE_OP_NOINLINE\n");
    214       1.5       cgd 	printf("static __inline int %s(", toupper(name));
    215       1.2       gwr 	for (i=0; i<argc; i++) {
    216       1.2       gwr 		printf("%s", argname[i]);
    217       1.2       gwr 		if (i < (argc-1)) printf(", ");
    218       1.2       gwr 	}
    219       1.2       gwr 	printf(")\n");
    220       1.2       gwr 	for (i=0; i<argc; i++) {
    221       1.7       cgd 		printf("\t%s %s;\n", argtype[i], argname[i]);
    222       1.2       gwr 	}
    223       1.2       gwr 	printf("{\n\tstruct %s_args a;\n", name);
    224       1.2       gwr 	printf("\ta.a_desc = VDESC(%s);\n", name);
    225       1.2       gwr 	for (i=0; i<argc; i++) {
    226       1.2       gwr 		printf("\ta.a_%s = %s;\n", argname[i], argname[i]);
    227       1.2       gwr 	}
    228       1.2       gwr 	printf("\treturn (VCALL(%s%s, VOFFSET(%s), &a));\n}\n",
    229       1.2       gwr 		argname[0], arg0special, name);
    230  1.19.2.1    bouyer 	printf("#endif\n");
    231  1.19.2.3    bouyer 	vops++;
    232       1.2       gwr }
    233       1.2       gwr BEGIN	{
    234       1.2       gwr 	arg0special="";
    235  1.19.2.3    bouyer 	vops = 1; # start at 1, to count the 'default' op
    236       1.2       gwr }
    237       1.2       gwr END	{
    238       1.2       gwr 	printf("\n/* Special cases: */\n#include <sys/buf.h>\n");
    239       1.2       gwr 	argc=1;
    240       1.2       gwr 	argtype[0]="struct buf *";
    241       1.2       gwr 	argname[0]="bp";
    242       1.2       gwr 	arg0special="->b_vp";
    243       1.2       gwr 	name="vop_strategy";
    244       1.2       gwr 	doit();
    245       1.2       gwr 	name="vop_bwrite";
    246       1.2       gwr 	doit();
    247  1.19.2.3    bouyer 
    248  1.19.2.3    bouyer 	printf("\n#define VNODE_OPS_COUNT\t%d\n", vops);
    249       1.2       gwr }
    250       1.7       cgd '"$awk_parser" | sed -e "$anal_retentive"
    251       1.1   mycroft 
    252       1.2       gwr # End stuff
    253       1.2       gwr echo '
    254       1.2       gwr /* End of special cases. */'
    255      1.10     mikel echo ''
    256      1.10     mikel echo '#endif /* !_SYS_VNODE_IF_H_ */'
    257       1.1   mycroft 
    258       1.2       gwr #
    259       1.2       gwr # Redirect stdout to the C file.
    260       1.2       gwr #
    261       1.2       gwr echo "$0: Creating $out_c" 1>&2
    262       1.2       gwr exec > $out_c
    263       1.1   mycroft 
    264       1.2       gwr # Begin stuff
    265      1.15   thorpej echo -n "$warning" | sed -e 's/\$//g;s/@/\$/g'
    266       1.9       cgd echo ""
    267       1.9       cgd echo -n "$copyright"
    268       1.2       gwr echo '
    269  1.19.2.1    bouyer /*
    270  1.19.2.1    bouyer  * If we have LKM support, always include the non-inline versions for
    271  1.19.2.1    bouyer  * LKMs.  Otherwise, do it based on the option.
    272  1.19.2.1    bouyer  */
    273  1.19.2.1    bouyer #ifdef LKM
    274  1.19.2.1    bouyer #define	VNODE_OP_NOINLINE
    275  1.19.2.2    bouyer #else
    276  1.19.2.2    bouyer #include "opt_vnode_op_noinline.h"
    277  1.19.2.1    bouyer #endif'
    278  1.19.2.1    bouyer echo '
    279       1.1   mycroft #include <sys/param.h>
    280       1.1   mycroft #include <sys/mount.h>
    281  1.19.2.1    bouyer #include <sys/buf.h>
    282       1.1   mycroft #include <sys/vnode.h>
    283       1.1   mycroft 
    284       1.1   mycroft struct vnodeop_desc vop_default_desc = {
    285       1.1   mycroft 	0,
    286       1.1   mycroft 	"default",
    287       1.1   mycroft 	0,
    288       1.1   mycroft 	NULL,
    289       1.1   mycroft 	VDESC_NO_OFFSET,
    290       1.1   mycroft 	VDESC_NO_OFFSET,
    291       1.1   mycroft 	VDESC_NO_OFFSET,
    292       1.1   mycroft 	VDESC_NO_OFFSET,
    293       1.1   mycroft 	NULL,
    294       1.1   mycroft };
    295       1.2       gwr '
    296       1.1   mycroft 
    297       1.2       gwr # Body stuff
    298       1.2       gwr sed -e "$sed_prep" $src | $awk '
    299       1.2       gwr function do_offset(typematch) {
    300       1.2       gwr 	for (i=0; i<argc; i++) {
    301       1.2       gwr 		if (argtype[i] == typematch) {
    302       1.2       gwr 			printf("\tVOPARG_OFFSETOF(struct %s_args, a_%s),\n",
    303       1.2       gwr 				name, argname[i]);
    304       1.2       gwr 			return i;
    305       1.2       gwr 		};
    306       1.2       gwr 	};
    307       1.2       gwr 	print "\tVDESC_NO_OFFSET,";
    308       1.2       gwr 	return -1;
    309       1.2       gwr }
    310       1.1   mycroft 
    311       1.2       gwr function doit() {
    312       1.2       gwr 	# Define offsets array
    313  1.19.2.3    bouyer 	printf("\nconst int %s_vp_offsets[] = {\n", name);
    314       1.2       gwr 	for (i=0; i<argc; i++) {
    315       1.2       gwr 		if (argtype[i] == "struct vnode *") {
    316       1.2       gwr 			printf ("\tVOPARG_OFFSETOF(struct %s_args,a_%s),\n",
    317       1.2       gwr 				name, argname[i]);
    318       1.2       gwr 		}
    319       1.1   mycroft 	}
    320       1.2       gwr 	print "\tVDESC_NO_OFFSET";
    321       1.2       gwr 	print "};";
    322       1.2       gwr 	# Define F_desc
    323  1.19.2.3    bouyer 	printf("const struct vnodeop_desc %s_desc = {\n", name);
    324       1.2       gwr 	# offset
    325  1.19.2.3    bouyer 	printf ("\t%d,\n", vop_offset++);
    326       1.2       gwr 	# printable name
    327       1.2       gwr 	printf ("\t\"%s\",\n", name);
    328       1.2       gwr 	# flags
    329       1.2       gwr 	printf("\t0");
    330       1.2       gwr 	vpnum = 0;
    331       1.2       gwr 	for (i=0; i<argc; i++) {
    332       1.2       gwr 		if (willrele[i]) {
    333      1.19  wrstuden 			if (willrele[i] == 2) {
    334      1.19  wrstuden 				word = "UNLOCK";
    335      1.19  wrstuden 			} else if (willrele[i] == 3) {
    336      1.19  wrstuden 				word = "PUT";
    337      1.19  wrstuden 			} else {
    338      1.19  wrstuden 				word = "RELE";
    339      1.19  wrstuden 			}
    340       1.2       gwr 			if (argdir[i] ~ /OUT/) {
    341      1.19  wrstuden 				printf(" | VDESC_VPP_WILL%s", word);
    342       1.1   mycroft 			} else {
    343      1.19  wrstuden 				printf(" | VDESC_VP%s_WILL%s", vpnum, word);
    344       1.1   mycroft 			};
    345       1.2       gwr 			vpnum++;
    346       1.2       gwr 		}
    347       1.1   mycroft 	}
    348       1.2       gwr 	print ",";
    349       1.2       gwr 	# vp offsets
    350       1.2       gwr 	printf ("\t%s_vp_offsets,\n", name);
    351       1.2       gwr 	# vpp (if any)
    352       1.2       gwr 	do_offset("struct vnode **");
    353       1.2       gwr 	# cred (if any)
    354       1.2       gwr 	do_offset("struct ucred *");
    355       1.2       gwr 	# proc (if any)
    356       1.2       gwr 	do_offset("struct proc *");
    357       1.2       gwr 	# componentname
    358       1.2       gwr 	do_offset("struct componentname *");
    359       1.2       gwr 	# transport layer information
    360       1.2       gwr 	printf ("\tNULL,\n};\n");
    361  1.19.2.1    bouyer 
    362  1.19.2.1    bouyer 	# Define function.
    363  1.19.2.1    bouyer 	printf("#ifdef VNODE_OP_NOINLINE\n");
    364  1.19.2.1    bouyer 	printf("int\n%s(", toupper(name));
    365  1.19.2.1    bouyer 	for (i=0; i<argc; i++) {
    366  1.19.2.1    bouyer 		printf("%s", argname[i]);
    367  1.19.2.1    bouyer 		if (i < (argc-1)) printf(", ");
    368  1.19.2.1    bouyer 	}
    369  1.19.2.1    bouyer 	printf(")\n");
    370  1.19.2.1    bouyer 	for (i=0; i<argc; i++) {
    371  1.19.2.1    bouyer 		printf("\t%s %s;\n", argtype[i], argname[i]);
    372  1.19.2.1    bouyer 	}
    373  1.19.2.1    bouyer 	printf("{\n\tstruct %s_args a;\n", name);
    374  1.19.2.1    bouyer 	printf("\ta.a_desc = VDESC(%s);\n", name);
    375  1.19.2.1    bouyer 	for (i=0; i<argc; i++) {
    376  1.19.2.1    bouyer 		printf("\ta.a_%s = %s;\n", argname[i], argname[i]);
    377  1.19.2.1    bouyer 	}
    378  1.19.2.1    bouyer 	printf("\treturn (VCALL(%s%s, VOFFSET(%s), &a));\n}\n",
    379  1.19.2.1    bouyer 		argname[0], arg0special, name);
    380  1.19.2.1    bouyer 	printf("#endif\n");
    381  1.19.2.1    bouyer }
    382  1.19.2.1    bouyer BEGIN	{
    383       1.2       gwr 	printf("\n/* Special cases: */\n");
    384  1.19.2.3    bouyer 	# start from 1 (vop_default is at 0)
    385  1.19.2.3    bouyer 	vop_offset=1;
    386       1.2       gwr 	argc=1;
    387       1.2       gwr 	argdir[0]="IN";
    388       1.2       gwr 	argtype[0]="struct buf *";
    389       1.2       gwr 	argname[0]="bp";
    390  1.19.2.1    bouyer 	arg0special="->b_vp";
    391       1.2       gwr 	willrele[0]=0;
    392       1.2       gwr 	name="vop_strategy";
    393       1.2       gwr 	doit();
    394       1.2       gwr 	name="vop_bwrite";
    395       1.2       gwr 	doit();
    396  1.19.2.3    bouyer 	printf("\n/* End of special cases */\n");
    397  1.19.2.3    bouyer 
    398  1.19.2.3    bouyer 	arg0special="";
    399       1.1   mycroft }
    400       1.7       cgd '"$awk_parser" | sed -e "$anal_retentive"
    401       1.1   mycroft 
    402       1.2       gwr # End stuff
    403       1.2       gwr echo '
    404       1.2       gwr /* End of special cases. */'
    405       1.1   mycroft 
    406       1.2       gwr # Add the vfs_op_descs array to the C file.
    407       1.2       gwr # Begin stuff
    408       1.2       gwr echo '
    409  1.19.2.3    bouyer const struct vnodeop_desc * const vfs_op_descs[] = {
    410       1.2       gwr 	&vop_default_desc,	/* MUST BE FIRST */
    411       1.2       gwr 	&vop_strategy_desc,	/* XXX: SPECIAL CASE */
    412       1.2       gwr 	&vop_bwrite_desc,	/* XXX: SPECIAL CASE */
    413       1.2       gwr '
    414       1.2       gwr 
    415       1.2       gwr # Body stuff
    416       1.2       gwr sed -e "$sed_prep" $src | $awk '
    417       1.2       gwr function doit() {
    418       1.2       gwr 	printf("\t&%s_desc,\n", name);
    419       1.1   mycroft }
    420       1.2       gwr '"$awk_parser"
    421       1.1   mycroft 
    422       1.2       gwr # End stuff
    423       1.2       gwr echo '	NULL
    424       1.1   mycroft };
    425       1.2       gwr '
    426       1.1   mycroft 
    427       1.2       gwr exit 0
    428       1.1   mycroft 
    429       1.2       gwr # Local Variables:
    430       1.2       gwr # tab-width: 4
    431       1.2       gwr # End:
    432