summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-11-17 15:42:47 +0000
committerjhb <jhb@FreeBSD.org>2010-11-17 15:42:47 +0000
commit5c07657c6b8851989d47328889c79ddc4c6c746d (patch)
tree8b4192cb7df837e44e4ed54ac16ba8f93b1f0b9c /sbin
parent32a58110d0f0bf2f7b478c11079ac75f273aff5a (diff)
downloadFreeBSD-src-5c07657c6b8851989d47328889c79ddc4c6c746d.zip
FreeBSD-src-5c07657c6b8851989d47328889c79ddc4c6c746d.tar.gz
Remove unused autofs userland bits.
Approved by: core
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount_autofs/Makefile9
-rw-r--r--sbin/mount_autofs/mount_autofs.871
-rw-r--r--sbin/mount_autofs/mount_autofs.c113
3 files changed, 0 insertions, 193 deletions
diff --git a/sbin/mount_autofs/Makefile b/sbin/mount_autofs/Makefile
deleted file mode 100644
index b05d961..0000000
--- a/sbin/mount_autofs/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-# $Id: Makefile,v 1.6 2004/09/08 08:27:12 bright Exp $
-# $FreeBSD$
-
-PROG=mount_autofs
-MAN=mount_autofs.8
-BINDIR?=/sbin
-WARNS?= 2
-
-.include <bsd.prog.mk>
diff --git a/sbin/mount_autofs/mount_autofs.8 b/sbin/mount_autofs/mount_autofs.8
deleted file mode 100644
index 5f10ea7..0000000
--- a/sbin/mount_autofs/mount_autofs.8
+++ /dev/null
@@ -1,71 +0,0 @@
-.\" Copyright (c) 2004 Alfred Perlstein <alfred@FreeBSD.org>
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
-.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.\" $Id: mount_autofs.8,v 1.3 2004/09/08 08:12:21 bright Exp $
-.\" $FreeBSD$
-.Dd August 30, 2004
-.Dt MOUNT_AUTOFS 8
-.Os
-.Sh NAME
-.Nm mount_autofs
-.Nd mount an autofs file system
-.Sh SYNOPSIS
-.Nm
-.Op Fl o Ar options
-.Ar dummy
-.Ar node
-.Sh DESCRIPTION
-The
-.Nm
-utility attaches an autofs file system
-device on to the file system tree at the point
-.Ar node .
-.Pp
-This command is normally executed by
-.Xr mount 8
-at boot time.
-.Pp
-The options are as follows:
-.Bl -tag -width indent
-.It Fl o
-Options are specified with a
-.Fl o
-flag followed by a comma separated string of options.
-See the
-.Xr mount 8
-man page for possible options and their meanings.
-.El
-.Sh SEE ALSO
-.Xr mount 2 ,
-.Xr unmount 2 ,
-.Xr fstab 5 ,
-.Xr mount 8
-.Sh HISTORY
-The
-.Nm
-utility first appeared in
-.Fx 6.0 .
-.Sh AUTHORS
-This manual page and the autofs file system suite were written by
-.An Alfred Perlstein .
diff --git a/sbin/mount_autofs/mount_autofs.c b/sbin/mount_autofs/mount_autofs.c
deleted file mode 100644
index 17fbb5b..0000000
--- a/sbin/mount_autofs/mount_autofs.c
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
- * Copyright (c) 2004 Alfred Perlstein <alfred@FreeBSD.org>
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $Id: mount_autofs.c,v 1.5 2004/09/08 08:12:21 bright Exp $
- * $FreeBSD$
- */
-#include <err.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#include <sys/param.h>
-#include <sys/mount.h>
-#include <sys/uio.h>
-
-void usage(void);
-
-const char *progname;
-
-void
-usage(void) {
-
- errx(1, "usage: %s node", progname);
-}
-int mymount(const char *type, const char *dir, int flags, void *data);
-
-#if __FreeBSD_version < 600000
-int
-mymount(const char *type, const char *dir, int flags, void *data)
-{
-
- return (mount(type, dir, flags, data));
-}
-#else
-void ioset(struct iovec *iovp, const char *str);
-
-void
-ioset(struct iovec *iovp, const char *str)
-{
-
- iovp->iov_base = __DECONST(char *, str);
- iovp->iov_len = strlen(str) + 1;
-}
-
-int
-mymount(
- const char *type,
- const char *dir,
- int flags __unused,
- void *data __unused
-)
-{
- struct iovec iov[4], *iovp;
-
- iovp = &iov[0];
- ioset(iovp++, "fstype");
- ioset(iovp++, type);
- ioset(iovp++, "fspath");
- ioset(iovp++, dir);
- return (nmount(iov, 4, 0));
-}
-#endif
-
-int
-main(int argc, char **argv)
-{
- int error;
- int ch;
-
- progname = argv[0];
-
- while ((ch = getopt(argc, argv, "o:")) != -1) {
- /* just eat opts for now */
- switch (ch) {
- case '?':
- usage();
- }
- }
- argc -= optind;
- argv += optind;
-
- if (argc < 2) {
- usage();
- }
-
- error = mymount("autofs", argv[1], 0, NULL);
- if (error)
- perror("mount");
- return (error == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
-}
OpenPOWER on IntegriCloud