X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=sys%2Finclude%2Fventi.h;h=e4677c1a30317a4400ee7b6e2cc2f70a3598ae99;hb=8b59286ef1d9bef6c2c7b248ab0b8072e25ec9cf;hp=c899a66ab16201c9e083f64e05d183cfae65eff2;hpb=c558a99e0be506a9abdf677f0ca4490644e05fc1;p=plan9front.git diff --git a/sys/include/venti.h b/sys/include/venti.h old mode 100755 new mode 100644 index c899a66ab..e4677c1a3 --- a/sys/include/venti.h +++ b/sys/include/venti.h @@ -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 { @@ -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. */