/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2011 Jason King. All rights reserved.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <err.h>
#include <spawn.h>
extern char **environ;
static void usage(const char *);
int
{
const char **p;
int rc = 0;
if (argc < 2)
if (rc != 0) {
}
if (!check_file(*p, &mode))
continue;
rc = 1;
}
return (rc);
}
static boolean_t
{
int fd;
if (fd == -1) {
return (B_FALSE);
}
return (B_FALSE);
}
return (B_FALSE);
}
return (B_FALSE);
}
return (B_FALSE);
}
return (B_FALSE);
}
return (B_TRUE);
}
static boolean_t
{
int i, rc;
int stat = 0;
return (B_FALSE);
}
}
return (B_FALSE);
}
return (B_FALSE);
}
return (B_FALSE);
}
}
return (B_TRUE);
}
static void
{
}