version 1.6, 1996/09/02 18:47:16 |
version 1.7, 1996/12/07 08:00:45 |
|
|
int syslog_pid; /* read in from /etc/syslog.pid */ |
int syslog_pid; /* read in from /etc/syslog.pid */ |
#define MIN_PID 3 |
#define MIN_PID 3 |
#define MAX_PID 65534 |
#define MAX_PID 65534 |
char hostname[64]; /* hostname */ |
char hostname[MAXHOSTNAMELEN]; /* hostname */ |
char *daytime; /* timenow in human readable form */ |
char *daytime; /* timenow in human readable form */ |
|
|
|
|
|
|
int owner_uid; |
int owner_uid; |
int group_gid; |
int group_gid; |
{ |
{ |
char file1[128], file2[128]; |
char file1[MAXPATHLEN], file2[MAXPATHLEN]; |
char zfile1[128], zfile2[128]; |
char zfile1[MAXPATHLEN], zfile2[MAXPATHLEN]; |
int fd; |
int fd; |
struct stat st; |
struct stat st; |
int days = numdays; |
int days = numdays; |
|
|
char *log; |
char *log; |
{ |
{ |
int pid; |
int pid; |
char tmp[128]; |
char tmp[MAXPATHLEN]; |
|
|
pid = fork(); |
pid = fork(); |
(void) sprintf(tmp,"%s.0",log); |
(void) sprintf(tmp,"%s.0",log); |
|
|
char *file; |
char *file; |
{ |
{ |
struct stat sb; |
struct stat sb; |
char tmp[MAXPATHLEN+3]; |
char tmp[MAXPATHLEN]; |
|
|
(void) strcpy(tmp,file); |
(void) strcpy(tmp,file); |
if (stat(strcat(tmp,".0"),&sb) < 0) |
if (stat(strcat(tmp,".0"),&sb) < 0) |