rminnichadd manualse67599c16 years agoHistory
56 lines · 1.0 KB · Text
RawDownload
.TH VENTI-ZERO 2.SH NAMEvtzerotruncate, vtzeroextend, vtzeroscore \- Venti block truncation.SH SYNOPSIS.ft L#include <u.h>.br#include <libc.h>.br#include <venti.h>.ta +\w'\fLuint 'u.PP.Buint	vtzerotruncate(int type, uchar *buf, uint size).PP.Bvoid	vtzeroextend(int type, uchar *buf, uint size, uint newsize).PP.Bextern uchar vtzeroscore[VtScoreSize];.SH DESCRIPTIONThese utility functions compute how to truncate or replacetrailing zeros (for data blocks) or trailing zero scores(for pointer blocks) to canonicalize the blocks beforestoring them to Venti..PP.I Vtzerotruncatereturns the size of the .IR size -bytebuffer pointed to by.I bufignoring trailing zeros or zero scores,according to the given.IR type ..PP.I Vtzeroextendpads.I bufwith zeros or zero scores,according to the given.IR type ,to grow it from.I sizebytes to.I newsizebytes..PP.I Vtzeroscoreis the score of the zero-length block..SH SOURCE.B /sys/src/libventi/zero.c.br.B /sys/src/libventi/zeroscore.c.SH SEE ALSO.IR venti (2),.IR venti (6)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t