![]() ![]() | ![]() |
version 1.13, 2015/01/16 06:40:06 | version 1.14, 2015/10/18 22:37:30 | ||
---|---|---|---|
|
|
||
#include <ctype.h> | #include <ctype.h> | ||
#include <errno.h> | #include <errno.h> | ||
#include <fcntl.h> | #include <fcntl.h> | ||
#include <err.h> | |||
#include "bgplg.h" | #include "bgplg.h" | ||
|
|
||
struct stat st; | struct stat st; | ||
u_int i; | u_int i; | ||
struct cmd *cmdp = NULL; | struct cmd *cmdp = NULL; | ||
if (pledge("stdio rpath proc exec", NULL) == -1) | |||
err(1, "pledge"); | |||
if (gethostname(myname, sizeof(myname)) != 0) | if (gethostname(myname, sizeof(myname)) != 0) | ||
return (1); | return (1); |