*** empty log message ***

This commit is contained in:
cvs
2000-03-15 15:08:37 +00:00
parent 9e823d7a2f
commit 0a2e39df36
5 changed files with 15 additions and 8 deletions

View File

@ -21,6 +21,8 @@ static char *eptr=&ebuf[0];
static int lastStamp=0; static int lastStamp=0;
static int notDated=0; static int notDated=0;
int ftime (struct timeb *__timeptr); /* for some reason not defined in timeb.h with flag -std1 */
int logfileStd=0; int logfileStd=0;
int dirty=0; int dirty=0;

View File

@ -1,14 +1,14 @@
#include "buf.h" #include "buf.h"
void logfileInit(char *path, int nodate); void logfileInit(char *path, int nodate);
void logfileUpd(); void logfileUpd(void);
void logfileStamp(char *text); void logfileStamp(char *text);
void logfileOut(char *fmt, ...); void logfileOut(char *fmt, ...);
void logfileOutTmp(char *fmt, ...); void logfileOutTmp(char *fmt, ...);
void logfileOutBuf(buf_type *buf); void logfileOutBuf(buf_type *buf);
void logfileShowErr(char *text); void logfileShowErr(char *text);
void logfilePurge(); void logfilePurge(void);
void logfileWriteTmp(); void logfileWriteTmp(void);
void logfileClose(); void logfileClose(void);
extern int logfileStd; extern int logfileStd;

View File

@ -21,7 +21,7 @@ struct SerChan {
char cmd[SER_BUF_LEN]; char cmd[SER_BUF_LEN];
}; };
void SerA_error() { void SerA_error(void) {
char *a_txt; char *a_txt;
int a_cod, a_my, a_vms; int a_cod, a_my, a_vms;

View File

@ -1,3 +1,8 @@
/* needed to define ftime(), accept() and gethostbyaddr() correctly when using flag -std1 */
#ifndef _XOPEN_SOURCE_EXTENDED
#define _XOPEN_SOURCE_EXTENDED
#endif
#include <sys/time.h> #include <sys/time.h>
#include <sys/timeb.h> #include <sys/timeb.h>
#include <assert.h> #include <assert.h>
@ -32,7 +37,7 @@ int CocInitServer(int bufsize, int port) {
ERR_I(CocCreateSockAdr(&sadr, NULL, port)); ERR_I(CocCreateSockAdr(&sadr, NULL, port));
ERR_SI(bind(mainFd, (struct sockaddr *)&sadr, sizeof(sadr))); ERR_SI(bind(mainFd, (struct sockaddr *)&sadr, sizeof(sadr)));
logfileOut("created server on port %d\n", port); logfileOut("created server on port %d\n", port);
ERR_SI(listen(mainFd, SOMAXCONN)); ERR_SI(listen(mainFd, 8));
FD_ZERO(&mask); FD_ZERO(&mask);
FD_SET(mainFd, &mask); FD_SET(mainFd, &mask);
maxfd=mainFd+1; maxfd=mainFd+1;

View File

@ -27,9 +27,9 @@ int CocHandle1Request(int tmo_msec, int fd);
*/ */
struct CocClient *CocGetNextCmd(); struct CocClient *CocGetNextCmd(void);
/* /*
get next client with a pending command get next client with a pending command
*/ */
void CocCloseServer(); void CocCloseServer(void);