version 1.23, 2017/07/22 16:20:10 |
version 1.24, 2017/07/22 17:01:09 |
|
|
#include <stdlib.h> |
#include <stdlib.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
int lflag; |
|
int portableflag; |
|
|
|
__dead void usage(void); |
__dead void usage(void); |
|
|
int |
int |
main(int argc, char *argv[]) |
main(int argc, char *argv[]) |
{ |
{ |
pid_t pid; |
|
int ch, status; |
|
struct timespec before, after, during; |
|
struct rusage ru; |
struct rusage ru; |
int exitonsig = 0; |
struct timespec before, after, during; |
|
int ch, exitonsig, lflag, portableflag, status; |
|
pid_t pid; |
|
|
if (pledge("stdio proc exec", NULL) == -1) |
if (pledge("stdio proc exec", NULL) == -1) |
err(1, "pledge"); |
err(1, "pledge"); |
|
|
|
exitonsig = lflag = portableflag = 0; |
|
|
while ((ch = getopt(argc, argv, "lp")) != -1) { |
while ((ch = getopt(argc, argv, "lp")) != -1) { |
switch(ch) { |
switch(ch) { |