Searched defs:handle (Results 1 - 25 of 69) sorted by relevance

123

/ast/src/lib/libast/regex/
H A Dregalloc.c31 regalloc(void* handle, void*(*resize)(void*,void*,size_t), regflags_t flags) argument
35 state.disc.re_resizehandle = handle;
H A Dregrexec.c36 regrexec(const regex_t* p, const char* s, size_t len, size_t nmatch, regmatch_t* match, regflags_t flags, int sep, void* handle, regrecord_t record) argument
119 if (n = (*record)(handle, (char*)beg, x - beg))
124 else if (n = (*record)(handle, (char*)l, r - l))
128 n = (inv && (++r - buf) < len) ? (*record)(handle, (char*)r, (buf + len) - r): 0;
161 regrexec(const regex_t* p, const char* s, size_t len, size_t nmatch, oldregmatch_t* oldmatch, regflags_t flags, int sep, void* handle, regrecord_t record) argument
171 if (!(r = regrexec_20120528(p, s, len, nmatch, match, flags, sep, handle, record)))
180 return regrexec_20120528(p, s, len, 0, NiL, flags, sep, handle, record);
/ast/src/lib/libast/misc/
H A Derrorf.c33 errorf(void* handle, void* discipline, int level, ...) argument
38 errorv((discipline && handle) ? *((char**)handle) : (char*)handle, (discipline || level < 0) ? level : (level | ERROR_LIBRARY), ap);
/ast/src/lib/libtksh/tcl/
H A DtclLoadDl.c71 VOID *handle;
73 handle = dlopen(fileName, RTLD_NOW | RTLD_GLOBAL);
74 if (handle == NULL) {
79 *proc1Ptr = (Tcl_PackageInitProc *) dlsym(handle, sym1);
80 *proc2Ptr = (Tcl_PackageInitProc *) dlsym(handle, sym2);
70 VOID *handle; local
/ast/src/lib/libast/hash/
H A Dhashwalk.c37 hashwalk(Hash_table_t* tab, int flags, register int (*walker)(const char*, char*, void*), void* handle) argument
47 if ((v = (*walker)(hashname(b), (tab->flags & HASH_VALUE) ? b->value : (char*)b, handle)) < 0)
H A Dhashalloc.c51 void* handle; local
63 handle = va_arg(ap, void*);
65 if (!(tab = (Hash_table_t*)(*region)(handle, NiL, sizeof(Hash_table_t), 0)))
82 if (!(tab->root = (Hash_root_t*)(*region)(handle, NiL, sizeof(Hash_root_t), 0)))
91 tab->root->local->handle = handle;
172 if (!(tab->table = (Hash_bucket_t**)(*region)(handle, NiL, sizeof(Hash_bucket_t*) * tab->size, 0)))
H A Dhashfree.c51 void* handle; local
64 handle = tab->root->local->handle;
79 if (region) (*region)(handle, p->name, 0, 0);
84 if (region) (*region)(handle, p, 0, 0);
96 if (region) (*region)(handle, tab->table, 0, 0);
136 if (region) (*region)(handle, tab->root, 0, 0);
141 if (region) (*region)(handle, tab, 0, 0);
H A Dhashsize.c47 void* handle; local
53 handle = tab->root->local->handle;
54 new_s = (Hash_bucket_t**)(*region)(handle, NiL, sizeof(Hash_bucket_t*) * size, 0);
77 if (region) (*region)(handle, tab->table, 0, 0);
H A Dhashlib.h50 void* handle; /* region handle arg */ member in struct:__anon262
/ast/src/lib/libast/string/
H A Dstreval.c39 userconv(const char* s, char** end, void* handle) argument
41 return((*((Handle_t*)handle)->convert)(s, end));
47 Handle_t handle; local
49 return((handle.convert = convert) ? strexpr(s, end, userconv, &handle) : strexpr(s, end, (Convert_t)0, NiL));
H A Dstrexpr.c49 typedef struct /* expression handle */
55 void* handle; /* user convert handle */ member in struct:__anon310
248 else if (ex->convert) n = (*ex->convert)(ex->nextchr, &ex->nextchr, ex->handle);
264 * (long)(*convert)(const char* string, char** end, void* handle)
274 strexpr(const char* s, char** end, long(*convert)(const char*, char**, void*), void* handle) argument
282 ex.handle = handle;
288 if (convert) (*convert)(NiL, &ex.errmsg, handle);
/ast/src/lib/libtk/unix/
H A DtkUnixEvent.c63 Tcl_File handle;
68 handle = Tcl_GetFile(
70 Tcl_WatchFile(handle, TCL_READABLE);
111 Tcl_File handle;
117 handle = Tcl_GetFile(
119 if (Tcl_FileReady(handle, TCL_READABLE) != 0) {
62 Tcl_File handle; local
109 Tcl_File handle; local
/ast/src/lib/libast/astsa/
H A Derror.c95 errorf(void* handle, void* discipline, int level, ...) argument
100 errorv((discipline && handle) ? *((char**)handle) : (char*)handle, level, ap);
/ast/src/lib/libcmd/
H A Dpids.c55 * handle==0 for heading
59 key(void* handle, Sffmt_t* fp, const char* arg, char** ps, Sflong_t* pn) argument
85 *ps = (char*)handle;
H A Dtee.c67 * This discipline writes to each file in the list given in handle
71 tee_write(Sfio_t* fp, const void* buf, size_t n, Sfdisc_t* handle) argument
75 register int* hp = ((Tee_t*)handle)->fd;
H A Dvmstate.c66 * handle==0 for heading
70 key(void* handle, Sffmt_t* fp, const char* arg, char** ps, Sflong_t* pn) argument
72 register State_t* state = (State_t*)handle;
137 visit(Vmalloc_t* vm, void* addr, size_t size, Vmdisc_t* disc, void* handle) argument
139 State_t* state = (State_t*)handle;
/ast/src/cmd/cs/
H A Drsh.c37 svc_connect(void* handle, int fd, Cs_id_t* id, int clone, char** argv) argument
45 NoP(handle);
H A Dnam.c52 svc_connect(void* handle, int fd, CSID* id, int clone, char** args) argument
54 register State_t* state = (State_t*)handle;
70 svc_read(void* handle, int fd) argument
72 State_t* state = (State_t*)handle;
159 svc_timeout(void* handle) argument
161 State_t* state = (State_t*)handle;
H A Dtst-old.c55 svc_init(void* handle, int maxfd) argument
59 NoP(handle);
66 svc_connect(void* handle, int fd, Cs_id_t* id, int clone, char** argv) argument
68 State_t* state = (State_t*)handle;
94 svc_read(void* handle, int fd) argument
96 State_t* state = (State_t*)handle;
127 svc_timeout(void* handle) argument
129 State_t* state = (State_t*)handle;
/ast/src/lib/libast/comp/
H A Dregexp.c43 block(void* handle, void* data, size_t size) argument
45 register Env_t* env = (Env_t*)handle;
55 _re_comp(regexp_t* re, const char* pattern, char* handle, unsigned int size) argument
57 register Env_t* env = (Env_t*)handle;
94 _re_exec(regexp_t* re, const char* subject, const char* handle, int anchor) argument
96 register Env_t* env = (Env_t*)handle;
H A Dregcmp.c49 block(void* handle, void* data, size_t size) argument
51 register Regex_t* re = (Regex_t*)handle;
190 regex(const char* handle, const char* subject, ...) argument
201 if (!(re = (Regex_t*)handle) || !subject)
/ast/src/lib/libcoshell/
H A Dcoopen.c95 setopt(void* handle, register const void* p, int n, const char* v) argument
97 Coshell_t* co = (Coshell_t*)handle;
/ast/src/lib/libcs/
H A Dcsserve.c36 void* handle; member in struct:Server_s
49 return (*server->con)(server->handle, fp->fd, ip, 0, av) ? -1 : fp->fd;
61 return (*server->rd)(server->handle, fp->fd) < 0 ? -1 : 1;
65 return (*server->wr)(server->handle, fp->fd) < 0 ? -1 : 1;
80 (*server->done)(server->handle, 0);
83 if (server->done && !(*server->done)(server->handle, EXIT_TERM(arg)))
90 return !server->to ? 0 : (*server->to)(server->handle) < 0 ? -1 : 1;
141 csserve(Cs_t* state, void* handle, const char* path, void* (*init)(void*, int), int (*done)(void*, int), int (*con)(void*, int, Csid_t*, int, char**), int (*rd)(void*, int), int (*wr)(void*, int), int (*to)(void*)) argument
152 server->handle = handle;
204 _cs_serve(void* handle, const char* path, void* (*init)(void*, int), int (*done)(void*, int), int (*con)(void*, int, Csid_t*, int, char**), int (*rd)(void*, int), int (*wr)(void*, int), int (*to)(void*)) argument
[all...]
/ast/src/lib/libexpr/
H A Dexcc.c541 global(Dt_t* table, void* object, void* handle) argument
543 register Excc_t* cc = (Excc_t*)handle;
/ast/src/cmd/ksh93/bltins/
H A Dsleep.c130 static void completed(void * handle) argument
132 char *expired = (char*)handle;

Completed in 986 milliseconds

123