tdifferent logging - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 587f8f4ddb177e1e6ab32531b4f331e8a6d54b6d
 (DIR) parent 42e8d853f498c954c8e3c45e8f1084a453b65163
 (HTM) Author: rsc <devnull@localhost>
       Date:   Sun, 13 Feb 2005 18:32:06 +0000
       
       different logging
       
       Diffstat:
         M include/venti.h                     |      16 ++++++++++------
       
       1 file changed, 10 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/include/venti.h b/include/venti.h
       t@@ -53,6 +53,7 @@ typedef struct VtLogChunk VtLogChunk;
        struct VtLog
        {
                VtLog *next;        /* in hash table */
       +        char *name;
                VtLogChunk *chunk;
                uint nchunk;
                VtLogChunk *w;
       t@@ -60,19 +61,19 @@ struct VtLog
                int ref;
        };
        
       -struct VtLogchunk
       +struct VtLogChunk
        {
       -        char *buf;
       -        uint nbuf;
       -        char *w;
       +        char *p;
       +        char *ep;
       +        char *wp;
        };
        
        VtLog *vtlogopen(char *name, uint size);
        void        vtlogprint(VtLog *log, char *fmt, ...);
        void        vtlog(char *name, char *fmt, ...);
       -void        vtlogclose(char *name);
       +void        vtlogclose(VtLog*);
        void        vtlogremove(char *name);
       -int        vtlogdump(int fd, VtLog*);
       +void        vtlogdump(int fd, VtLog*);
        
        /* XXX begin actual venti.h */
        
       t@@ -335,6 +336,7 @@ struct VtConn
                char        *version;
                char        *uid;
                char *sid;
       +        char addr[256];        /* address of other side */
        };
        
        VtConn *vtconn(int infd, int outfd);
       t@@ -487,6 +489,8 @@ int vtfileremove(VtFile*);
        extern int chattyventi;
        extern int ventidoublechecksha1;
        
       +extern char *VtServerLog;
       +
        #ifdef __cplusplus
        }
        #endif