]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/include/venti.h
venti: fix memory layers
[plan9front.git] / sys / include / venti.h
index c899a66ab16201c9e083f64e05d183cfae65eff2..dff553b4c8cbd573853b8991e973a8a22879a460 100644 (file)
@@ -134,7 +134,8 @@ enum
        _VtEntryDir = 1<<1,             /* a directory */
        _VtEntryDepthShift = 2,         /* shift for pointer depth */
        _VtEntryDepthMask = 7<<2,       /* mask for pointer depth */
-       VtEntryLocal = 1<<5             /* for local storage only */
+       VtEntryLocal = 1<<5,            /* for local storage only */
+       VtEntryNoArchive = 1<<6         /* for local storage only */
 };
 enum
 {
@@ -206,10 +207,10 @@ int vtscorefmt(Fmt*);
  * error-checking malloc et al.
  */
 void   vtfree(void *);
-void*  vtmalloc(int);
-void*  vtmallocz(int);
-void*  vtrealloc(void *p, int);
-void*  vtbrk(int n);
+void*  vtmalloc(ulong);
+void*  vtmallocz(ulong);
+void*  vtrealloc(void *p, ulong);
+void*  vtbrk(ulong);
 char*  vtstrdup(char *);
 
 /*
@@ -334,7 +335,9 @@ struct VtConn
 };
 
 VtConn*        vtconn(int infd, int outfd);
+int    vtreconn(VtConn*, int, int);
 VtConn*        vtdial(char*);
+int    vtredial(VtConn*, char*);
 void   vtfreeconn(VtConn*);
 int    vtsend(VtConn*, Packet*);
 Packet*        vtrecv(VtConn*);
@@ -378,6 +381,10 @@ int        vtwritepacket(VtConn*, uchar score[VtScoreSize], uint type, Packet *p);
 int    vtsync(VtConn*);
 int    vtping(VtConn*);
 
+/* sha1 */
+void   vtsha1(uchar score[VtScoreSize], uchar*, int);
+int    vtsha1check(uchar score[VtScoreSize], uchar*, int);
+
 /*
  * Data blocks and block cache.
  */