Return to calendar.c CVS log | Up to [local] / src / usr.bin / calendar |
version 1.32, 2015/10/23 11:43:16 | version 1.33, 2015/11/16 17:49:35 | ||
---|---|---|---|
|
|
||
if (argc) | if (argc) | ||
usage(); | usage(); | ||
if (doall) { | |||
if (pledge("stdio rpath tmppath fattr id proc exec", NULL) | |||
== -1) | |||
err(1, "pledge"); | |||
} else { | |||
if (pledge("stdio rpath proc exec", NULL) == -1) | |||
err(1, "pledge"); | |||
} | |||
/* use current time */ | /* use current time */ | ||
if (f_time <= 0) | if (f_time <= 0) | ||
(void)time(&f_time); | (void)time(&f_time); |