version 1.15, 2001/09/03 15:53:00 |
version 1.17, 2002/02/16 21:27:44 |
|
|
struct passwd *pw; |
struct passwd *pw; |
int doall = 0; |
int doall = 0; |
time_t f_time = 0; |
time_t f_time = 0; |
|
int bodun_always = 0; |
|
|
int f_dayAfter = 0; /* days after current date */ |
int f_dayAfter = 0; /* days after current date */ |
int f_dayBefore = 0; /* days before current date */ |
int f_dayBefore = 0; /* days before current date */ |
|
|
struct specialev spev[NUMEV]; |
struct specialev spev[NUMEV]; |
|
|
void childsig __P((int)); |
void childsig(int); |
|
|
int |
int |
main(argc, argv) |
main(argc, argv) |
|
|
|
|
(void)setlocale(LC_ALL, ""); |
(void)setlocale(LC_ALL, ""); |
|
|
while ((ch = getopt(argc, argv, "-af:t:A:B:")) != -1) |
while ((ch = getopt(argc, argv, "-abf:t:A:B:")) != -1) |
switch (ch) { |
switch (ch) { |
case '-': /* backward contemptible */ |
case '-': /* backward contemptible */ |
case 'a': |
case 'a': |
|
|
doall = 1; |
doall = 1; |
break; |
break; |
|
|
|
case 'b': |
|
bodun_always++; |
|
break; |
|
|
case 'f': /* other calendar file */ |
case 'f': /* other calendar file */ |
calendarFile = optarg; |
calendarFile = optarg; |
break; |
break; |
|
|
usage() |
usage() |
{ |
{ |
(void)fprintf(stderr, |
(void)fprintf(stderr, |
"usage: calendar [-a] [-A num] [-B num] [-t [[[cc]yy][mm]]dd] " |
"usage: calendar [-a] [-A num] [-b] [-B num] [-t [[[cc]yy][mm]]dd] " |
"[-f calendarfile]\n"); |
"[-f calendarfile]\n"); |
exit(1); |
exit(1); |
} |
} |