2 a0d146ed 2005-07-12 devnull * sorted by 4,/^$/|sort -bd +1
4 a0d146ed 2005-07-12 devnull int addarena(Arena *name);
5 a0d146ed 2005-07-12 devnull void addstat(int, int);
6 a0d146ed 2005-07-12 devnull void addstat2(int, int, int, int);
7 a0d146ed 2005-07-12 devnull ZBlock *alloczblock(u32int size, int zeroed, uint alignment);
8 a0d146ed 2005-07-12 devnull Arena *amapitoa(Index *index, u64int a, u64int *aa);
9 a0d146ed 2005-07-12 devnull u64int arenadirsize(Arena *arena, u32int clumps);
10 a0d146ed 2005-07-12 devnull void arenaupdate(Arena *arena, u32int size, u8int *score);
11 a0d146ed 2005-07-12 devnull void backsumarena(Arena *arena);
12 a0d146ed 2005-07-12 devnull void binstats(long (*fn)(Stats *s0, Stats *s1, void*), void *arg, long t0, long t1, Statbin *bin, int nbin);
13 a0d146ed 2005-07-12 devnull int bloominit(Bloom*, vlong, uchar*);
14 a0d146ed 2005-07-12 devnull int bucklook(u8int*, int, u8int*, int);
15 a0d146ed 2005-07-12 devnull u32int buildbucket(Index *ix, IEStream *ies, IBucket *ib, uint);
16 a0d146ed 2005-07-12 devnull void checkdcache(void);
17 a0d146ed 2005-07-12 devnull void checklumpcache(void);
18 a0d146ed 2005-07-12 devnull int clumpinfoeq(ClumpInfo *c, ClumpInfo *d);
19 a0d146ed 2005-07-12 devnull int clumpinfoeq(ClumpInfo *c, ClumpInfo *d);
20 a0d146ed 2005-07-12 devnull u32int clumpmagic(Arena *arena, u64int aa);
21 a0d146ed 2005-07-12 devnull uint countbits(uint n);
22 a0d146ed 2005-07-12 devnull int delarena(Arena *arena);
23 a0d146ed 2005-07-12 devnull void delaykickicache(void);
24 a0d146ed 2005-07-12 devnull void delaykickround(Round*);
25 a0d146ed 2005-07-12 devnull void delaykickroundproc(void*);
26 a0d146ed 2005-07-12 devnull void dirtydblock(DBlock*, int);
27 a0d146ed 2005-07-12 devnull AState diskstate(void);
28 a0d146ed 2005-07-12 devnull void *emalloc(ulong);
29 a0d146ed 2005-07-12 devnull void *erealloc(void *, ulong);
30 a0d146ed 2005-07-12 devnull char *estrdup(char*);
31 a0d146ed 2005-07-12 devnull void *ezmalloc(ulong);
32 a0d146ed 2005-07-12 devnull Arena *findarena(char *name);
33 a0d146ed 2005-07-12 devnull int flushciblocks(Arena *arena);
34 a0d146ed 2005-07-12 devnull void flushdcache(void);
35 a0d146ed 2005-07-12 devnull void flushicache(void);
36 a0d146ed 2005-07-12 devnull void flushqueue(void);
37 a0d146ed 2005-07-12 devnull void fmtzbinit(Fmt *f, ZBlock *b);
38 a0d146ed 2005-07-12 devnull void freearena(Arena *arena);
39 a0d146ed 2005-07-12 devnull void freearenapart(ArenaPart *ap, int freearenas);
40 a0d146ed 2005-07-12 devnull void freeiestream(IEStream *ies);
41 a0d146ed 2005-07-12 devnull void freeifile(IFile *f);
42 a0d146ed 2005-07-12 devnull void freeisect(ISect *is);
43 a0d146ed 2005-07-12 devnull void freeindex(Index *index);
44 a0d146ed 2005-07-12 devnull void freepart(Part *part);
45 a0d146ed 2005-07-12 devnull void freezblock(ZBlock *b);
46 a0d146ed 2005-07-12 devnull DBlock *_getdblock(Part *part, u64int addr, int mode, int load);
47 a0d146ed 2005-07-12 devnull DBlock *getdblock(Part *part, u64int addr, int mode);
48 a0d146ed 2005-07-12 devnull u32int hashbits(u8int *score, int nbits);
49 a0d146ed 2005-07-12 devnull int httpdinit(char *address, char *webroot);
50 a0d146ed 2005-07-12 devnull int iaddrcmp(IAddr *ia1, IAddr *ia2);
51 a0d146ed 2005-07-12 devnull IEntry* icachedirty(u32int, u32int, u64int);
52 a0d146ed 2005-07-12 devnull void icacheclean(IEntry*);
53 a0d146ed 2005-07-12 devnull int ientrycmp(const void *vie1, const void *vie2);
54 a0d146ed 2005-07-12 devnull char *ifileline(IFile *f);
55 a0d146ed 2005-07-12 devnull int ifilename(IFile *f, char *dst);
56 a0d146ed 2005-07-12 devnull int ifileu32int(IFile *f, u32int *r);
57 a0d146ed 2005-07-12 devnull int inbloomfilter(Bloom*, u8int*);
58 a0d146ed 2005-07-12 devnull int indexsect(Index *ix, u8int *score);
59 a0d146ed 2005-07-12 devnull int indexsect0(Index *ix, u32int buck);
60 a0d146ed 2005-07-12 devnull Arena *initarena(Part *part, u64int base, u64int size, u32int blocksize);
61 a0d146ed 2005-07-12 devnull ArenaPart *initarenapart(Part *part);
62 a0d146ed 2005-07-12 devnull int initarenasum(void);
63 a0d146ed 2005-07-12 devnull void initbloomfilter(Index*);
64 a0d146ed 2005-07-12 devnull void initdcache(u32int mem);
65 a0d146ed 2005-07-12 devnull void initicache(int bits, int depth);
66 a0d146ed 2005-07-12 devnull void initicachewrite(void);
67 a0d146ed 2005-07-12 devnull IEStream *initiestream(Part *part, u64int off, u64int clumps, u32int size);
68 a0d146ed 2005-07-12 devnull ISect *initisect(Part *part);
69 a0d146ed 2005-07-12 devnull Index *initindex(char *name, ISect **sects, int n);
70 a0d146ed 2005-07-12 devnull void initlumpcache(u32int size, u32int nblocks);
71 a0d146ed 2005-07-12 devnull int initlumpqueues(int nq);
72 a0d146ed 2005-07-12 devnull Part* initpart(char *name, int mode);
73 a0d146ed 2005-07-12 devnull void initround(Round*, char*, int);
74 a0d146ed 2005-07-12 devnull int initventi(char *config, Config *conf);
75 a0d146ed 2005-07-12 devnull void insertlump(Lump *lump, Packet *p);
76 a0d146ed 2005-07-12 devnull int insertscore(u8int *score, IAddr *ia, int write);
77 a0d146ed 2005-07-12 devnull void kickdcache(void);
78 a0d146ed 2005-07-12 devnull void kickicache(void);
79 a0d146ed 2005-07-12 devnull void kickround(Round*, int wait);
80 a0d146ed 2005-07-12 devnull ZBlock *loadclump(Arena *arena, u64int aa, int blocks, Clump *cl, u8int *score, int verify);
81 a0d146ed 2005-07-12 devnull DBlock *loadibucket(Index *index, u8int *score, ISect **is, u32int *buck, IBucket *ib);
82 a0d146ed 2005-07-12 devnull int loadientry(Index *index, u8int *score, int type, IEntry *ie);
83 a0d146ed 2005-07-12 devnull void logerr(int severity, char *fmt, ...);
84 a0d146ed 2005-07-12 devnull Lump *lookuplump(u8int *score, int type);
85 a0d146ed 2005-07-12 devnull int lookupscore(u8int *score, int type, IAddr *ia, int *rac);
86 a0d146ed 2005-07-12 devnull int maparenas(AMap *am, Arena **arenas, int n, char *what);
87 a0d146ed 2005-07-12 devnull void markbloomfilter(Bloom*, u8int*);
88 a0d146ed 2005-07-12 devnull uint msec(void);
89 a0d146ed 2005-07-12 devnull int namecmp(char *s, char *t);
90 a0d146ed 2005-07-12 devnull void namecp(char *dst, char *src);
91 a0d146ed 2005-07-12 devnull int nameok(char *name);
92 a0d146ed 2005-07-12 devnull Arena *newarena(Part *part, u32int, char *name, u64int base, u64int size, u32int blocksize);
93 a0d146ed 2005-07-12 devnull ArenaPart *newarenapart(Part *part, u32int blocksize, u32int tabsize);
94 a0d146ed 2005-07-12 devnull ISect *newisect(Part *part, u32int vers, char *name, u32int blocksize, u32int tabsize);
95 a0d146ed 2005-07-12 devnull Index *newindex(char *name, ISect **sects, int n);
96 a0d146ed 2005-07-12 devnull u32int now(void);
97 a0d146ed 2005-07-12 devnull int okamap(AMap *am, int n, u64int start, u64int stop, char *what);
98 a0d146ed 2005-07-12 devnull int okibucket(IBucket*, ISect*);
99 a0d146ed 2005-07-12 devnull int outputamap(Fmt *f, AMap *am, int n);
100 a0d146ed 2005-07-12 devnull int outputindex(Fmt *f, Index *ix);
101 a0d146ed 2005-07-12 devnull int packarena(Arena *arena, u8int *buf);
102 a0d146ed 2005-07-12 devnull int packarenahead(ArenaHead *head, u8int *buf);
103 a0d146ed 2005-07-12 devnull int packarenapart(ArenaPart *as, u8int *buf);
104 a0d146ed 2005-07-12 devnull void packbloomhead(Bloom*, u8int*);
105 a0d146ed 2005-07-12 devnull int packclump(Clump *c, u8int *buf, u32int);
106 a0d146ed 2005-07-12 devnull void packclumpinfo(ClumpInfo *ci, u8int *buf);
107 a0d146ed 2005-07-12 devnull void packibucket(IBucket *b, u8int *buf, u32int magic);
108 a0d146ed 2005-07-12 devnull void packientry(IEntry *i, u8int *buf);
109 a0d146ed 2005-07-12 devnull int packisect(ISect *is, u8int *buf);
110 a0d146ed 2005-07-12 devnull void packmagic(u32int magic, u8int *buf);
111 a0d146ed 2005-07-12 devnull ZBlock *packet2zblock(Packet *p, u32int size);
112 a0d146ed 2005-07-12 devnull int parseamap(IFile *f, AMapN *amn);
113 a0d146ed 2005-07-12 devnull int parseindex(IFile *f, Index *ix);
114 a0d146ed 2005-07-12 devnull void partblocksize(Part *part, u32int blocksize);
115 a0d146ed 2005-07-12 devnull int partifile(IFile *f, Part *part, u64int start, u32int size);
116 a0d146ed 2005-07-12 devnull void printarenapart(int fd, ArenaPart *ap);
117 a0d146ed 2005-07-12 devnull void printarena(int fd, Arena *arena);
118 a0d146ed 2005-07-12 devnull void printindex(int fd, Index *ix);
119 a0d146ed 2005-07-12 devnull void printstats(void);
120 a0d146ed 2005-07-12 devnull void putdblock(DBlock *b);
121 a0d146ed 2005-07-12 devnull void putlump(Lump *b);
122 a0d146ed 2005-07-12 devnull int queuewrite(Lump *b, Packet *p, int creator, uint ms);
123 a0d146ed 2005-07-12 devnull u32int readarena(Arena *arena, u64int aa, u8int *buf, long n);
124 a0d146ed 2005-07-12 devnull int readarenamap(AMapN *amn, Part *part, u64int base, u32int size);
125 a0d146ed 2005-07-12 devnull Bloom *readbloom(Part*);
126 a0d146ed 2005-07-12 devnull int readclumpinfo(Arena *arena, int clump, ClumpInfo *ci);
127 a0d146ed 2005-07-12 devnull int readclumpinfos(Arena *arena, int clump, ClumpInfo *cis, int n);
128 a0d146ed 2005-07-12 devnull ZBlock *readfile(char *name);
129 a0d146ed 2005-07-12 devnull int readifile(IFile *f, char *name);
130 a0d146ed 2005-07-12 devnull Packet *readlump(u8int *score, int type, u32int size, int *cached);
131 a0d146ed 2005-07-12 devnull int readpart(Part *part, u64int addr, u8int *buf, u32int n);
132 a0d146ed 2005-07-12 devnull int runconfig(char *config, Config*);
133 a0d146ed 2005-07-12 devnull int scorecmp(u8int *, u8int *);
134 a0d146ed 2005-07-12 devnull void scoremem(u8int *score, u8int *buf, int size);
135 a0d146ed 2005-07-12 devnull void setatailstate(AState*);
136 a0d146ed 2005-07-12 devnull void setdcachestate(AState*);
137 a0d146ed 2005-07-12 devnull void seterr(int severity, char *fmt, ...);
138 a0d146ed 2005-07-12 devnull void setstat(int, long);
139 a0d146ed 2005-07-12 devnull void settrace(char *type);
140 a0d146ed 2005-07-12 devnull u64int sortrawientries(Index *ix, Part *tmp, u64int *tmpoff, Bloom *bloom);
141 a0d146ed 2005-07-12 devnull void startbloomproc(Bloom*);
142 a0d146ed 2005-07-12 devnull Memimage* statgraph(Graph *g);
143 a0d146ed 2005-07-12 devnull void statsinit(void);
144 a0d146ed 2005-07-12 devnull int storeclump(Index *index, ZBlock *b, u8int *score, int type, u32int creator, IAddr *ia);
145 a0d146ed 2005-07-12 devnull int storeientry(Index *index, IEntry *m);
146 a0d146ed 2005-07-12 devnull int strscore(char *s, u8int *score);
147 a0d146ed 2005-07-12 devnull int stru32int(char *s, u32int *r);
148 a0d146ed 2005-07-12 devnull int stru64int(char *s, u64int *r);
149 a0d146ed 2005-07-12 devnull void sumarena(Arena *arena);
150 a0d146ed 2005-07-12 devnull int syncarena(Arena *arena, u64int start, u32int n, int zok, int fix);
151 a0d146ed 2005-07-12 devnull int syncarenaindex(Index *ix, Arena *arena, u32int clump, u64int a, int fix, int *pflush, int check);
152 a0d146ed 2005-07-12 devnull int syncindex(Index *ix, int fix, int mustflushicache, int check);
153 a0d146ed 2005-07-12 devnull void trace(char *type, char*, ...);
154 a0d146ed 2005-07-12 devnull void traceinit(void);
155 a0d146ed 2005-07-12 devnull int u64log2(u64int v);
156 a0d146ed 2005-07-12 devnull u64int unittoull(char *s);
157 a0d146ed 2005-07-12 devnull int unpackarena(Arena *arena, u8int *buf);
158 a0d146ed 2005-07-12 devnull int unpackarenahead(ArenaHead *head, u8int *buf);
159 a0d146ed 2005-07-12 devnull int unpackarenapart(ArenaPart *as, u8int *buf);
160 a0d146ed 2005-07-12 devnull int unpackbloomhead(Bloom*, u8int*);
161 a0d146ed 2005-07-12 devnull int unpackclump(Clump *c, u8int *buf, u32int);
162 a0d146ed 2005-07-12 devnull void unpackclumpinfo(ClumpInfo *ci, u8int *buf);
163 a0d146ed 2005-07-12 devnull void unpackibucket(IBucket *b, u8int *buf, u32int magic);
164 a0d146ed 2005-07-12 devnull void unpackientry(IEntry *i, u8int *buf);
165 a0d146ed 2005-07-12 devnull int unpackisect(ISect *is, u8int *buf);
166 a0d146ed 2005-07-12 devnull u32int unpackmagic(u8int *buf);
167 a0d146ed 2005-07-12 devnull void ventifmtinstall(void);
168 a0d146ed 2005-07-12 devnull void vtloghdump(Hio*, VtLog*);
169 a0d146ed 2005-07-12 devnull void vtloghlist(Hio*);
170 a0d146ed 2005-07-12 devnull int vtproc(void(*)(void*), void*);
171 a0d146ed 2005-07-12 devnull int vttypevalid(int type);
172 a0d146ed 2005-07-12 devnull void waitforkick(Round*);
173 a0d146ed 2005-07-12 devnull int wbarena(Arena *arena);
174 a0d146ed 2005-07-12 devnull int wbarenahead(Arena *arena);
175 a0d146ed 2005-07-12 devnull int wbarenamap(AMap *am, int n, Part *part, u64int base, u64int size);
176 a0d146ed 2005-07-12 devnull int wbarenapart(ArenaPart *ap);
177 a0d146ed 2005-07-12 devnull void wbbloomhead(Bloom*);
178 a0d146ed 2005-07-12 devnull int wbisect(ISect *is);
179 a0d146ed 2005-07-12 devnull int wbindex(Index *ix);
180 a0d146ed 2005-07-12 devnull int whackblock(u8int *dst, u8int *src, int ssize);
181 a0d146ed 2005-07-12 devnull u64int writeaclump(Arena *a, Clump *c, u8int *clbuf, u64int, u64int*);
182 a0d146ed 2005-07-12 devnull u32int writearena(Arena *arena, u64int aa, u8int *clbuf, u32int n);
183 a0d146ed 2005-07-12 devnull int writebloom(Bloom*);
184 a0d146ed 2005-07-12 devnull int writeclumpinfo(Arena *arean, int clump, ClumpInfo *ci);
185 a0d146ed 2005-07-12 devnull int writepng(Hio*, Memimage*);
186 a0d146ed 2005-07-12 devnull u64int writeiclump(Index *ix, Clump *c, u8int *clbuf, u64int*);
187 a0d146ed 2005-07-12 devnull int writelump(Packet *p, u8int *score, int type, u32int creator, uint ms);
188 a0d146ed 2005-07-12 devnull int writepart(Part *part, u64int addr, u8int *buf, u32int n);
189 a0d146ed 2005-07-12 devnull int writeqlump(Lump *u, Packet *p, int creator, uint ms);
190 a0d146ed 2005-07-12 devnull Packet *zblock2packet(ZBlock *zb, u32int size);
191 a0d146ed 2005-07-12 devnull void zeropart(Part *part, int blocksize);
194 a0d146ed 2005-07-12 devnull #pragma varargck argpos sysfatal 1
195 a0d146ed 2005-07-12 devnull #pragma varargck argpos logerr 2
196 a0d146ed 2005-07-12 devnull #pragma varargck argpos SetErr 2
199 a0d146ed 2005-07-12 devnull #define scorecmp(h1,h2) memcmp((h1),(h2),VtScoreSize)
200 a0d146ed 2005-07-12 devnull #define scorecp(h1,h2) memmove((h1),(h2),VtScoreSize)
202 a0d146ed 2005-07-12 devnull #define MK(t) ((t*)emalloc(sizeof(t)))
203 a0d146ed 2005-07-12 devnull #define MKZ(t) ((t*)ezmalloc(sizeof(t)))
204 a0d146ed 2005-07-12 devnull #define MKN(t,n) ((t*)emalloc((n)*sizeof(t)))
205 a0d146ed 2005-07-12 devnull #define MKNZ(t,n) ((t*)ezmalloc((n)*sizeof(t)))
206 a0d146ed 2005-07-12 devnull #define MKNA(t,at,n) ((t*)emalloc(sizeof(t) + (n)*sizeof(at)))