/ast/src/lib/libcodex/ |
H A D | codexid.c | 34 register Codexmeth_t* meth; local 36 for (meth = codexlist(NiL); meth; meth = codexlist(meth)) 37 if (meth->identf && (*meth->identf)(meth, head, headsize, name, namesize)) 38 return meth;
|
H A D | codexadd.c | 31 codexadd(const char* name, Codexmeth_t* meth) argument 33 if (meth->next) 35 meth->next = codexstate.first; 36 codexstate.first = meth;
|
H A D | codexmeth.c | 34 register Codexmeth_t* meth; local 44 return CODEXERROR->meth; 46 meth = codexstate.first; 47 while (meth) 49 if (!codexcmp(name, meth->name)) 50 return meth; 51 last = meth; 52 if (!(meth = meth->next) && !plugin) 67 if ((lib = (Codexlib_f)dlllook(dll, "codex_lib")) && (meth [all...] |
H A D | codexpass.c | 33 codexpass(void* buf, size_t n, Codexdisc_t* disc, Codexmeth_t* meth) argument 40 return (*disc->passf)(buf, n, disc, meth); 41 sfsprintf(prompt, sizeof(prompt), "Enter %s passphrase: ", meth->name);
|
H A D | codex.c | 83 if (code->meth->syncf) 86 if (r = (*code->meth->syncf)(code)) 92 if (code->meth->donef) 95 r = (*code->meth->donef)(code); 107 if (code->meth->closef) 108 r = (*code->meth->closef)(code); 125 if (code->meth->syncf && !(code->flags & CODEX_FLUSH)) 128 if ((r = (*code->meth->syncf)(code)) < 0) 137 if (data && code->meth->dataf && !(r = (*code->meth 161 Codexmeth_t* meth = code->meth->next; local 175 Codexmeth_t* meth = code->meth->next; local 188 Codexmeth_t* meth = code->meth->next; local 201 Codexmeth_t* meth = CODEX(disc)->meth->next; local 214 Codexmeth_t* meth = CODEX(disc)->meth->next; local 227 Codexmeth_t* meth = CODEX(disc)->meth->next; local 303 Codexmeth_t* meth = code->meth->next; local 316 Codexmeth_t* meth = code->meth->next; local 329 Codexmeth_t* meth = code->meth->next; local 427 push(Sfio_t* sp, const char* name, Codexnum_t flags, Codexdisc_t* disc, Codexmeth_t* meth) argument 713 register Codexmeth_t* meth; local 750 Codexmeth_t* meth; member in struct:Part_s 759 codex(Sfio_t* ip, Sfio_t* op, const char* name, Codexnum_t flags, Codexdisc_t* disc, Codexmeth_t* meth) argument [all...] |
H A D | codexlist.c | 26 * call with meth==0 to get the first method 34 codexlist(Codexmeth_t* meth) argument 43 if (!meth) 45 if (!meth->next && !codexstate.scanned) 48 lp = meth; 64 return meth->next;
|
/ast/src/lib/librecsort/ |
H A D | rsmethod.c | 29 Rsmethod_t* rsmethod(Rs_t* rs, Rsmethod_t* meth) argument 31 Rsmethod_t* rsmethod(rs, meth) 33 Rsmethod_t* meth; 36 reg Rsmethod_t* old = rs->meth; 39 if(!meth) 42 if (RSNOTIFY(rs,RS_METHOD,meth,0,rs->disc) < 0) 45 if(meth->size <= 0) 47 else if(!(methdata = vmresize(Vmheap,NIL(Void_t*),meth->size,VM_RSZERO)) ) 53 rs->meth = meth; [all...] |
/ast/src/lib/libardir/ |
H A D | ardir.c | 30 ardiropen(const char* file, Ardirmeth_t* meth, int flags) argument 42 if (((ar->fd = open(file, (flags & ARDIR_CREATE) ? (O_CREAT|O_TRUNC|O_RDWR|O_BINARY|O_cloexec) : (flags & ARDIR_UPDATE) ? (O_RDWR|O_BINARY|O_cloexec) : (O_RDONLY|O_BINARY|O_cloexec))) < 0 || fstat(ar->fd, &ar->st) || !S_ISREG(ar->st.st_mode)) && (!meth || !(flags & ARDIR_FORCE))) 52 if (!(ar->meth = meth)) 55 for (meth = ar_first_method; ar->meth = meth; meth = meth->next) 56 if ((!skip || !strmatch(meth 176 Ardirmeth_t* meth; local 185 ardirlist(Ardirmeth_t* meth) argument [all...] |
/ast/src/lib/libvcodex/Vcwindow/ |
H A D | vcwopen.c | 28 Vcwindow_t* vcwopen(Vcwdisc_t* disc, Vcwmethod_t* meth) argument 30 Vcwindow_t* vcwopen(disc, meth) 32 Vcwmethod_t* meth; /* window matching method */ 44 if(!meth) 45 meth = Vcwdecode; 51 vcw->meth = meth; 59 if(meth->eventf && (*meth->eventf)(vcw, VCW_OPENING) < 0)
|
H A D | vcwclose.c | 41 if(vcw->meth && vcw->meth->eventf && 42 (*vcw->meth->eventf)(vcw, VCW_CLOSING) < 0 )
|
/ast/src/cmd/dsslib/ip_t/ |
H A D | ivopen.c | 26 ivopen(Ivdisc_t* disc, Ivmeth_t* meth, int size, const char* options) argument 30 if (!disc || !meth || !(iv = newof(0, Iv_t, 1, 3 * size))) 33 iv->meth = meth; 40 if (meth->eventf && (*meth->eventf)(iv, IV_OPEN, (void*)options) < 0)
|
H A D | ivclose.c | 30 if (iv->meth->eventf && (*iv->meth->eventf)(iv, IV_CLOSE, 0) < 0)
|
H A D | ivmeth.c | 28 Ivmeth_t** meth; member in struct:Method_s 51 return *methods[i].meth;
|
/ast/src/lib/libast/cdt/ |
H A D | dtmethod.c | 30 Dtmethod_t* dtmethod(Dt_t* dt, Dtmethod_t* meth) argument 32 Dtmethod_t* dtmethod(dt, meth) 34 Dtmethod_t* meth; 39 Dtmethod_t *oldmt = dt->meth; 42 if(!meth || meth == oldmt) 46 if(disc->eventf && (*disc->eventf)(dt,DT_METH,(Void_t*)meth,disc) < 0) 53 dt->searchf = meth->searchf; 54 dt->meth = meth; [all...] |
H A D | dtopen.c | 33 if (type == DT_DELETE && (dt->meth->type&(DT_OBAG|DT_BAG))) 39 Dt_t* _dtopen(Dtdisc_t* disc, Dtmethod_t* meth, unsigned long version) argument 41 Dt_t* _dtopen(disc, meth, version) 43 Dtmethod_t* meth; 51 if(!disc || !meth) 56 type = meth->type; 59 pdt.searchf = meth->searchf; 60 pdt.meth = meth; 68 { if((data->type & DT_METHODS) != meth 111 dtopen(Dtdisc_t* disc, Dtmethod_t* meth) argument [all...] |
/ast/src/cmd/mailx/port/ |
H A D | dtopen.c | 77 Dt_t* dtopen(Dtdisc_t* disc, Dtmethod_t* meth) argument 79 Dt_t* dtopen(disc, meth) 81 Dtmethod_t* meth; 88 if(!disc || !meth) 97 dt->meth = NIL(Dtmethod_t*); 107 { if(e < 0 || !data || !(data->type&meth->type) ) 121 data->type = meth->type; 128 dt->searchf = meth->searchf; 129 dt->meth = meth; [all...] |
H A D | dtmethod.c | 77 Dtmethod_t* dtmethod(Dt_t* dt, Dtmethod_t* meth) argument 79 Dtmethod_t* dtmethod(dt, meth) 81 Dtmethod_t* meth; 88 reg Dtmethod_t* oldmeth = dt->meth; 90 if(!meth || meth->type == oldmeth->type) 95 (meth && (meth->type&(DT_STACK|DT_QUEUE))) ) 99 (*disc->eventf)(dt,DT_METH,(Void_t*)meth,disc) < 0) 116 dt->data->type = (dt->data->type&~(DT_METHODS|DT_FLATTEN)) | meth [all...] |
/ast/src/lib/libpz/ |
H A D | sfdczip.c | 37 * push the sfio discipline named by meth: 52 sfdczip(Sfio_t* sp, const char* path, register const char* meth, Error_f errorf) argument 62 if (meth) 64 if (part = (const char*)strchr(meth, ' ')) 65 len = part - meth; 67 len = strlen(meth); 69 switch ((len<<8)|meth[0]) 72 if (strneq(meth, "bzip", len)) 76 if (strneq(meth, "gzip", len)) 80 if (strneq(meth, "lz [all...] |
/ast/src/lib/libvcodex/ |
H A D | vcopen.c | 30 Vcodex_t* vcopen(Vcdisc_t* disc, Vcmethod_t* meth, Void_t* init, argument 33 Vcodex_t* vcopen(disc, meth, init, coder, flags) 35 Vcmethod_t* meth; /* method to process given data */ 49 if(!meth || !(vc = (Vcodex_t*)calloc(1,sizeof(Vcodex_t))) ) 52 if(!(vc->applyf = (flags&VC_ENCODE) ? meth->encodef : meth->decodef) ) 58 vc->meth = meth; 67 if(meth->eventf && (*meth 99 char *args, *s, meth[1024]; local [all...] |
H A D | vcclose.c | 49 if(vc->meth && vc->meth->eventf && 50 (*vc->meth->eventf)(vc, VC_CLOSING, NIL(Void_t*)) < 0 )
|
/ast/src/cmd/tests/aso/ |
H A D | tproc.c | 56 Asometh_t *meth; local 81 meth = 0; 82 while (meth = asometh(ASO_NEXT, meth)) 84 if (!(meth->type & type)) 86 if (asoinit(lockid, meth, 0)) 88 twarn("%s method initialization failed", meth->name); 91 tinfo("testing %s method with %d processes", meth->name, N_PROC); 120 terror("%s method count error -- expected %d, got %d", meth->name, N_PROC*N_STEP*N_REP, *Count); 129 tinfo("%s method elapsed time %ld.%lds", meth [all...] |
H A D | tthread.c | 70 Asometh_t *meth; local 79 meth = 0; 80 while (meth = asometh(ASO_NEXT, meth)) 82 if (!(meth->type & type)) 84 if (asoinit(lockid, meth, 0)) 86 twarn("%s method initialization failed", meth->name); 89 tinfo("testing %s method with %d threads", meth->name, N_THREADS); 114 terror("%s method free() call error -- expected %d, got %d", meth->name, N_OBJS, N_free); 122 tinfo("%s method elapsed time %ld.%lds", meth [all...] |
/ast/src/lib/libdss/ |
H A D | dss-compress.h | 54 char* meth; local 87 if (!(meth = *argv)) 93 sfprintf(cx->buf, "%s", meth); 94 while (meth = *argv++) 95 sfprintf(cx->buf, " %s", meth); 96 if (!(meth = sfstruse(cx->buf))) 99 if (sfdczip(expr->op, expr->file, meth, disc->errorf) < 0)
|
/ast/src/cmd/codex/ |
H A D | codex.c | 120 register Codexmeth_t* meth; local 127 for (meth = codexlist(NiL); meth; meth = codexlist(meth)) 129 sfprintf(sp, "[+%s\b", meth->name); 131 if (meth->identf || meth->vcmeth) 136 if (meth->vcmeth) 141 else if (!(meth [all...] |
/ast/src/cmd/codexlib/zip/ |
H A D | zip.c | 29 p->meth = 0; 33 p->meth = &codex_zip_shrink; 40 p->meth = &codex_zip_reduce; 45 p->meth = &codex_zip_implode; 53 p->meth = &codex_zip_deflate; 60 return (*p->meth->openf)(p, args, flags);
|