different logging

This commit is contained in:
rsc 2005-02-13 18:32:06 +00:00
parent 42e8d853f4
commit 587f8f4ddb

View file

@ -53,6 +53,7 @@ typedef struct VtLogChunk VtLogChunk;
struct VtLog struct VtLog
{ {
VtLog *next; /* in hash table */ VtLog *next; /* in hash table */
char *name;
VtLogChunk *chunk; VtLogChunk *chunk;
uint nchunk; uint nchunk;
VtLogChunk *w; VtLogChunk *w;
@ -60,19 +61,19 @@ struct VtLog
int ref; int ref;
}; };
struct VtLogchunk struct VtLogChunk
{ {
char *buf; char *p;
uint nbuf; char *ep;
char *w; char *wp;
}; };
VtLog *vtlogopen(char *name, uint size); VtLog *vtlogopen(char *name, uint size);
void vtlogprint(VtLog *log, char *fmt, ...); void vtlogprint(VtLog *log, char *fmt, ...);
void vtlog(char *name, char *fmt, ...); void vtlog(char *name, char *fmt, ...);
void vtlogclose(char *name); void vtlogclose(VtLog*);
void vtlogremove(char *name); void vtlogremove(char *name);
int vtlogdump(int fd, VtLog*); void vtlogdump(int fd, VtLog*);
/* XXX begin actual venti.h */ /* XXX begin actual venti.h */
@ -335,6 +336,7 @@ struct VtConn
char *version; char *version;
char *uid; char *uid;
char *sid; char *sid;
char addr[256]; /* address of other side */
}; };
VtConn *vtconn(int infd, int outfd); VtConn *vtconn(int infd, int outfd);
@ -487,6 +489,8 @@ int vtfileremove(VtFile*);
extern int chattyventi; extern int chattyventi;
extern int ventidoublechecksha1; extern int ventidoublechecksha1;
extern char *VtServerLog;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif