summaryrefslogtreecommitdiffstats
path: root/sbin/kldload
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>1997-10-21 09:59:26 +0000
committerjmg <jmg@FreeBSD.org>1997-10-21 09:59:26 +0000
commitb389f452d8a77670926690345cf49b53f9451897 (patch)
treea284ef2aff480c29616bbf818f2d4a0ed88a0bb9 /sbin/kldload
parentc48e9412457d79d9e1896b06c050ad6be32cad91 (diff)
downloadFreeBSD-src-b389f452d8a77670926690345cf49b53f9451897.zip
FreeBSD-src-b389f452d8a77670926690345cf49b53f9451897.tar.gz
a few code style changes:
o start function names in column 1 o sort order of flags in getopt and switch o don't try to reference progname o unspam some changes introduced by a 2.2.1-R build box instead of a -current build box doc changes: o document when these commands first appeared o put email address in angle brakets o minor mdoc clean up
Diffstat (limited to 'sbin/kldload')
-rw-r--r--sbin/kldload/kldload.814
-rw-r--r--sbin/kldload/kldload.c15
2 files changed, 16 insertions, 13 deletions
diff --git a/sbin/kldload/kldload.8 b/sbin/kldload/kldload.8
index a27ace2..0288aa9 100644
--- a/sbin/kldload/kldload.8
+++ b/sbin/kldload/kldload.8
@@ -23,11 +23,11 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id$
+.\" $Id: kldload.8,v 1.1 1997/05/07 18:19:21 dfr Exp $
.\"
.Dd April 25, 1997
.Dt KLDLOAD 8
-.Os
+.Os FreeBSD
.Sh NAME
.Nm kldload
.Nd load a file into the kernel
@@ -41,14 +41,20 @@ The
loads a file into the kernel using the kernel linker.
.Pp
The options are:
-.Bl -tag -width indent
+.Bl -tag -width XXX -offset indent
.It Fl v
Be more verbose.
.El
.Sh SEE ALSO
.Xr kldstat 8 ,
.Xr kldunload 8
+.Sh HISTORY
+The
+.Nm
+command first appeared in
+.Fx 3.0 .
.Sh AUTHOR
.Bl -tag
-Doug Rabson, dfr@freebsd.org
+Doug Rabson
+.Aq dfr@freebsd.org
.El.
diff --git a/sbin/kldload/kldload.c b/sbin/kldload/kldload.c
index 3145fde..5488e3e 100644
--- a/sbin/kldload/kldload.c
+++ b/sbin/kldload/kldload.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: kldload.c,v 1.1 1997/05/07 18:19:21 dfr Exp $
+ * $Id: kldload.c,v 1.2 1997/10/19 11:15:42 jmg Exp $
*/
#include <err.h>
@@ -33,23 +33,20 @@
#include <sys/param.h>
#include <sys/linker.h>
-extern int optind;
-
-static char* progname;
-
-static void usage()
+static void
+usage(void)
{
- fprintf(stderr, "usage: %s filename\n", progname);
+ fprintf(stderr, "usage: kldload filename\n");
exit(1);
}
-int main(int argc, char** argv)
+int
+main(int argc, char** argv)
{
int c;
int verbose = 0;
int fileid;
- progname = argv[0];
while ((c = getopt(argc, argv, "v")) != -1)
switch (c) {
case 'v':
OpenPOWER on IntegriCloud