version 1.20, 2005/11/16 16:45:11 |
version 1.24, 2013/04/02 04:40:21 |
|
|
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
|
|
#ifndef lint |
|
static const char copyright[] = |
|
"@(#) Copyright (c) 1989, 1993\n\ |
|
The Regents of the University of California. All rights reserved.\n"; |
|
#endif /* not lint */ |
|
|
|
#ifndef lint |
|
#if 0 |
|
static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94"; |
|
#else |
|
static const char rcsid[] = "$OpenBSD$"; |
|
#endif |
|
#endif /* not lint */ |
|
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/uio.h> |
#include <sys/uio.h> |
|
|
|
|
#include "pathnames.h" |
#include "pathnames.h" |
#include "calendar.h" |
#include "calendar.h" |
|
|
|
extern struct iovec header[]; |
|
|
#define WEEKLY 1 |
#define WEEKLY 1 |
#define MONTHLY 2 |
#define MONTHLY 2 |
#define YEARLY 3 |
#define YEARLY 3 |
|
|
} |
} |
|
|
#if DEBUG |
#if DEBUG |
printf("Mktime: %d %d %d %s\n", (int)mktime(&tm), (int)t, len, |
printf("Mktime: %d %lld %d %s\n", (int)mktime(&tm), (long long)t, len, |
asctime(&tm)); |
asctime(&tm)); |
#endif |
#endif |
return(mktime(&tm)); |
return(mktime(&tm)); |
|
|
|
|
/* adjust bodun rate */ |
/* adjust bodun rate */ |
if (bodun && !bodun_always) |
if (bodun && !bodun_always) |
bodun = !(arc4random() % 3); |
bodun = !arc4random_uniform(3); |
|
|
/* Easter or Easter depending days */ |
/* Easter or Easter depending days */ |
if (flags & F_SPECIAL) |
if (flags & F_SPECIAL) |