Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/cron/lib/misc.c
Show First 20 Lines • Show All 379 Lines • ▼ Show 20 Lines | out: if (allow) | ||||
fclose(allow); | fclose(allow); | ||||
if (deny) | if (deny) | ||||
fclose(deny); | fclose(deny); | ||||
return (isallowed); | return (isallowed); | ||||
} | } | ||||
void | void | ||||
log_it(username, xpid, event, detail) | log_it(char *username, int xpid, char *event, const char *detail) | ||||
char *username; | |||||
int xpid; | |||||
char *event; | |||||
char *detail; | |||||
{ | { | ||||
#if defined(LOG_FILE) || DEBUGGING | #if defined(LOG_FILE) || DEBUGGING | ||||
PID_T pid = xpid; | PID_T pid = xpid; | ||||
#endif | #endif | ||||
#if defined(LOG_FILE) | #if defined(LOG_FILE) | ||||
char *msg; | char *msg; | ||||
TIME_T now = time((TIME_T) 0); | TIME_T now = time((TIME_T) 0); | ||||
register struct tm *t = localtime(&now); | register struct tm *t = localtime(&now); | ||||
▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines |