LogFile
writeLog(Record,&LogFile,LogName,&Collecting);
if (openLog(&LogFile,LogName) == SUCCESS){
static int LogFile = CLOSED; /* Log file file destriptor. */
static int LogFile = CLOSED; /* Log file file destriptor. */
writeLog(Record,&LogFile,LogName,&Collecting);
writeLog(Record,&LogFile,LogName,&Collecting);
if (openLog(&LogFile,LogName) == SUCCESS)
if (LogFile == CLOSED) {
LogFile = open(LogName, O_WRONLY | O_APPEND);
LogFile = creat(LogName, LOGFILEMODE);
if (LogFile < 0){
writeLog(Record,&LogFile,LogName,&Collecting);
writeLog(Record,&LogFile,LogName,&Collecting);
static int LogFile = CLOSED; /* Log file file destriptor. */
if (LogFile < 0)
if ((fstat(LogFile, &statbuff) != 0) ||
ret = putmsg(LogFile, &ctl, &dat, 0);
if ((fstat(LogFile, &statbuff) == 0) &&
LogFile = open(logname, O_WRONLY);
(void) fcntl(LogFile, F_SETFD, 1);
(void) fstat(LogFile, &statbuff);
if ((fstat(LogFile, &statbuff) == 0) && (statbuff.st_rdev == LogDev)) {
(void) close(LogFile);
LogFile = -1;