Lines Matching defs:m

68 bool_t xdr_pages(XDR *xdrs, struct mycon *m);
69 bool_t xdr_dirs(XDR *xdrs, struct mycon *m);
71 int mygetdir(char *block, int *no, struct mycon *m);
72 int mygetpage(char *block, int *pageno, struct mycon *m);
130 struct mycon m;
172 m.map = (map_ctrl *)shim_dbm_open(path, 0, 0);
173 if (m.map == NULL) {
190 shim_dbm_close((DBM *)m.map);
199 shim_dbm_close((DBM *)m.map);
215 val = shim_dbm_fetch((DBM *)m.map, key);
221 shim_dbm_close((DBM *)m.map);
228 m.key = shim_dbm_firstkey((DBM *)m.map);
230 m.lblk = -1;
231 m.firstd = 0;
233 if (!svc_sendreply(rqstp->rq_xprt, xdr_myfyl, (caddr_t)&m)) {
236 shim_dbm_close((DBM *)m.map);
258 xdr_pages(XDR *xdrs, struct mycon *m)
268 res.status = mygetpage(res.pag_u.ok.blkdat, &(res.pag_u.ok.blkno), m);
286 &(res.pag_u.ok.blkno), m);
305 mygetdir(char *block, int *no, struct mycon *m)
310 if (m->firstd == 0) {
311 lseek(m->map->entries->dbm_dirf, 0, 0);
312 m->firstd = 1;
314 m->firstd++;
316 len = read(m->map->entries->dbm_dirf, block, DBLKSIZ);
317 *no = (m->firstd) - 1;
321 * printf("dir block %d\n", (m->firstd) - 1);
337 xdr_dirs(XDR *xdrs, struct mycon *m)
343 res.status = mygetdir(res.dir_u.ok.blkdat, &(res.dir_u.ok.blkno), m);
352 &(res.dir_u.ok.blkno), m);
361 mygetpage(char *block, int *pageno, struct mycon *m)
364 for (; m->key.dptr;
365 m->key = shim_dbm_do_nextkey((DBM *)m->map, m->key)) {
367 if (m->map->entries->dbm_pagbno != m->lblk) {
370 * m->map->entries->dbm_pagbno,
371 * m->lblk);
373 m->lblk = m->map->entries->dbm_pagbno;
374 *pageno = m->lblk;
375 memmove(block, m->map->entries->dbm_pagbuf, PBLKSIZ);
377 m->key = mydbm_topkey(m->map->entries, m->key);
378 m->key = shim_dbm_do_nextkey((DBM *)m->map, m->key);
399 register size_t m;
401 register long m;
430 m = tmp.dsize;
431 if (m != ans.dsize) {
432 if ((m - ans.dsize) < 0)
434 } else if (m == 0) {
444 while (--m);