Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jan 2002 04:54:47 -0800 (PST)
From:      Gilbert Gong <ggong@cal.alumni.berkeley.edu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/33509: fix vnode_if.pl to internally call itself vnode_if.pl
Message-ID:  <200201031254.g03Cslp41692@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         33509
>Category:       kern
>Synopsis:       fix vnode_if.pl to internally call itself vnode_if.pl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 03 05:00:04 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gilbert Gong
>Release:        4.4
>Organization:
>Environment:
FreeBSD devfrebsd.internal.net 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18 11:57:08 PDT 2001     murray@builder.FreeBSD.org:/usr/src/sys/compile/GENERIC  i386      
>Description:
vnode_if.pl creates the files vnode_if.c and vnode_if.h

The tops of the files begin with this comment:
/*
 * This file is produced automatically.
 * Do not modify anything in here by hand.
 *
 * Created from @(#)vnode_if.sh 8.1 (Berkeley) 6/10/93
 */

This comment is both incorrect and confusing..      
>How-To-Repeat:
run vnode_if.pl, and inspect the files it creates, eg
perl /usr/src/sys/kern/vnode_if.pl -c -h /usr/src/sys/kern/vnode_if.src 
head vnode_if.c
head vnode_if.h

>Fix:
--- vnode_if.pl Thu Jan  3 05:56:47 2002
+++ vnode_if-new.pl     Thu Jan  3 05:52:50 2002
@@ -39,7 +39,7 @@
 #
 # Script to produce VFS front-end sugar.
 #
-# usage: vnode_if.sh srcfile
+# usage: vnode_if.pl srcfile
 #      (where srcfile is currently /sys/kern/vnode_if.src)
 #
 
@@ -61,7 +61,7 @@
     } elsif ($arg =~ m/\.src$/) {
        $SRC = $arg;
     } else {
-       print "usage: vnode_if.sh [-c] [-h] srcfile\n";
+       print "usage: vnode_if.pl [-c] [-h] srcfile\n";
        exit(1);
     }
 }
@@ -83,7 +83,7 @@
  * This file is produced automatically.
  * Do not modify anything in here by hand.
  *
- * Created from @(#)vnode_if.sh        8.1 (Berkeley) 6/10/93
+ * Created from sys/kern/vnode_if.pl
  */
 
 extern struct vnodeop_desc vop_default_desc;
@@ -99,7 +99,7 @@
  * This file is produced automatically.
  * Do not modify anything in here by hand.
  *
- * Created from @(#)vnode_if.sh        8.1 (Berkeley) 6/10/93
+ * Created from sys/kern/vnode_if.pl
  */
 
 #include <sys/param.h>
      
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201031254.g03Cslp41692>