Searched defs:meth (Results 1 - 25 of 67) sorted by relevance

123

/ast/src/lib/libcodex/
H A Dcodexadd.c31 codexadd(const char* name, Codexmeth_t* meth) argument
33 if (meth->next)
35 meth->next = codexstate.first;
36 codexstate.first = meth;
H A Dcodexid.c34 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 Dcodexpass.c33 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 Dcodexlist.c26 * 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;
H A Dcodexmeth.c34 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...]
/ast/src/lib/libvcodex/Vcwindow/
H A Dvcwopen.c28 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)
/ast/src/lib/librecsort/
H A Drsmethod.c29 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...]
H A Drsopen.c45 int rsinit(reg Rs_t* rs, Rsmethod_t* meth, ssize_t c_max, int type, Rskey_t* key) argument
47 int rsinit(rs, meth, c_max, type, key)
49 Rsmethod_t* meth; /* sorting method */
72 if(!(rs->methdata = (Void_t*)vmresize(Vmheap,NIL(Void_t*),meth->size,VM_RSZERO)) )
75 rs->meth = meth;
95 Rs_t* rsopen(Rsdisc_t* disc, Rsmethod_t* meth, ssize_t c_max, int type) argument
97 Rs_t* rsopen(disc, meth, c_max, type)
99 Rsmethod_t* meth; /* sorting method */
106 if((rs = rsnew(disc)) && rsinit(rs, meth, c_ma
[all...]
/ast/src/cmd/dsslib/ip_t/
H A Divopen.c26 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 Divmeth.c28 Ivmeth_t** meth; member in struct:Method_s
51 return *methods[i].meth;
/ast/src/cmd/mailx/port/
H A Ddtopen.c77 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 Ddtmethod.c77 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/libdss/
H A Ddss-compress.h54 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)
H A Ddsslib.h83 Dssmeth_t* meth; member in struct:Dsstagdisc_s
/ast/src/lib/libast/cdt/
H A Ddtmethod.c30 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 Ddtnew.c59 _dtnew(Vmalloc_t* vm, Dtdisc_t* disc, Dtmethod_t* meth, unsigned long version) argument
70 if (dt = _dtopen(&dc.ndisc, meth, version))
78 dtnew(Vmalloc_t* vm, Dtdisc_t* disc, Dtmethod_t* meth) argument
80 return _dtnew(vm, disc, meth, 20050420L);
H A Ddtopen.c33 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/lib/libpz/
H A Dsfdczip.c37 * 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/cmd/tests/aso/
H A Dtproc.c56 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...]
/ast/src/cmd/builtin/
H A Duudecode.c82 Uumeth_t* meth; local
153 if (!(meth = uumeth(encoding)))
155 if (uu = uuopen(&disc, meth))
H A Duuencode.c81 Uumeth_t* meth; local
154 if (!(meth = uumeth(encoding)))
156 if (uu = uuopen(&disc, meth))
/ast/src/lib/libardir/
H A Dardir.c30 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/libast/vmalloc/
H A Dvmopen.c56 Vmalloc_t* vmopen(Vmdisc_t* disc, Vmethod_t* meth, int mode) argument
58 Vmalloc_t* vmopen(disc, meth, mode)
60 Vmethod_t* meth; /* method to manage space */
73 if(!meth || !disc || !disc->memoryf )
80 memcpy(&vmp->meth, meth, sizeof(Vmethod_t));
115 vd->mode = mode | meth->meth;
/ast/src/lib/libtaso/
H A Dtaso.c140 Asometh_t* meth; local
145 if (!(meth = (Asometh_t*)data))
148 if (meth == method[i])
150 if (meth == method[i])
151 meth = 0;
152 return _asometh(type, meth);
/ast/src/cmd/dsslib/opaque/
H A Dopaque.c45 Dssmeth_t meth; member in struct:Opaque_s
58 register Opaque_t* opaque = (Opaque_t*)file->dss->meth->data;
87 file->data = &((Opaque_t*)file->dss->meth->data)->magic.size;
156 opaquemeth(const char* name, const char* options, const char* schema, Dssdisc_t* disc, Dssmeth_t* meth) argument
167 opaque->meth = *meth;
168 opaque->meth.data = opaque;
171 if (dssoptlib(meth->cx->buf, &dss_lib_opaque, usage, disc))
173 s = sfstruse(meth->cx->buf);
211 dtinsert(opaque->meth
[all...]

Completed in 84 milliseconds

123