aboutsummaryrefslogtreecommitdiff
path: root/libexec/xtend/user.c
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>1997-12-04 07:25:19 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>1997-12-04 07:25:19 +0000
commit14d460e1b4e522cf853a54a6924a5e3763da64ae (patch)
treebaf07b9d78f399e406efc50959310a23cf5232d6 /libexec/xtend/user.c
parent8cda9fcc0d9f6bca4d9d772e12d3634db93431d6 (diff)
Notes
Diffstat (limited to 'libexec/xtend/user.c')
-rw-r--r--libexec/xtend/user.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/libexec/xtend/user.c b/libexec/xtend/user.c
index 1a863af6b054..c9e9e6d6df11 100644
--- a/libexec/xtend/user.c
+++ b/libexec/xtend/user.c
@@ -27,11 +27,17 @@
* 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: user.c,v 1.5 1997/02/22 14:22:42 peter Exp $
*/
+#ifndef lint
+static const char rcsid[] =
+ "$Id$";
+#endif /* not lint */
+
+#include <ctype.h>
#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
#include <sys/param.h>
#include <sys/time.h>
#include "xtend.h"
@@ -40,15 +46,19 @@
MONENTRY Monitor[MAXMON];
+int find __P((char *, char *[]));
+void printstatus __P((FILE *, STATUS *));
+
/*
* Process a user command
*/
+int
user_command()
{
char h;
char *m;
- int i, k, c, n, error;
+ int i, k, n, error;
char cmd[512], dumppath[MAXPATHLEN+1], pkt[3];
FILE *dumpf;
@@ -137,6 +147,7 @@ user_command()
return(0);
}
+int
find(s, tab)
char *s;
char *tab[];
@@ -149,6 +160,7 @@ char *tab[];
return(-1);
}
+void
printstatus(f, s)
FILE *f;
STATUS *s;