Searched refs:state (Results 1 - 25 of 430) sorted by relevance

1234567891011>>

/ast/src/lib/libcs/
H A Dcsfree.c25 * free cs state context
31 csfree(register Cs_t* state) argument
33 if (!state || state == &cs)
35 free(state);
H A Dcsntoa.c31 csntoa(register Cs_t* state, unsigned long addr) argument
38 if ((!addr || p[0] == 127 && p[1] == 0 && p[2] == 0 && p[3] <= 1) && !state->ntoa[sizeof(state->ntoa)-1])
40 state->ntoa[sizeof(state->ntoa)-1] = 1;
41 addr = csaddr(state, NiL);
42 state->ntoa[sizeof(state->ntoa)-1] = 0;
44 sfsprintf(state->ntoa, sizeof(state
[all...]
H A Dcsalloc.c25 * allocate cs state context
33 register Cs_t* state; local
35 if (state = newof(0, Cs_t, 1, 0))
37 state->id = cs.id;
38 state->disc = disc ? disc : cs.disc;
40 state->nostream = -1;
43 state->nosocket = -1;
46 return state;
H A Dcsfull.c31 csfull(register Cs_t* state, unsigned long addr) argument
35 state->flags |= CS_ADDR_FULL;
36 s = csname(state, addr);
37 state->flags &= ~CS_ADDR_FULL;
38 messagef((state->id, NiL, -8, "full(%s) = %s", csntoa(state, addr), s));
H A Dcsping.c34 csping(register Cs_t* state, const char* name) argument
39 sfsprintf(state->temp, sizeof(state->path), "/dev/tcp/%s/inet.echo", name);
40 if ((fd = csopen(state, state->temp, 0)) < 0) return -1;
41 n = (cswrite(state, fd, M, N) != N || csread(state, fd, state->temp, N, CS_LINE) != N || strncmp(M, state->temp, N)) ? -1 : 0;
43 if (n) messagef((state
[all...]
H A Dcsname.c61 cssetdb(register Cs_t* state) argument
66 if (state->db <= 0 && ++state->db)
84 csname(register Cs_t* state, unsigned long addr) argument
88 messagef((state->id, NiL, -8, "name(%s) call", csntoa(state, addr)));
101 csdb(state);
110 if (!((state->flags | state->disc->flags) & CS_ADDR_FULL))
117 strncpy(state
[all...]
/ast/src/lib/libdll/
H A Ddllerror.c28 Dllstate_t state; variable
40 if (state.error)
42 state.error = retain;
43 return state.errorbuf;
48 state.error = retain;
49 sfsprintf(state.errorbuf, sizeof(state.errorbuf), "%s", s);
/ast/src/cmd/sort/
H A Dgen.c43 #define RAND() (state.seed=(state.seed*0x63c63cd9L+1)&0xffffffff)
59 } state; variable in typeref:struct:__anon218
66 if (state.part >= state.range['d'].min)
68 state.part = 0;
71 c = data[(state.seed >> state.part) % m];
72 state.part += CHAR_BIT;
86 state
[all...]
/ast/src/cmd/codexlib/lzd/
H A Dlzd.c64 fill(State_t* state) argument
68 if (state->eof)
70 if ((r = sfrd(state->codex->sp, state->buf, sizeof(state->buf), &state->codex->sfdisc)) <= 0)
72 state->eof = 1;
75 state->ie = (state->ip = state
80 getcode(State_t* state) argument
96 push(State_t* state, int c) argument
106 clrcode(State_t* state) argument
114 addcode(register State_t* state, int suf_code, int old_code) argument
130 register State_t* state; local
146 register State_t* state = (State_t*)p->data; local
159 register State_t* state = (State_t*)CODEX(disc)->data; local
[all...]
/ast/src/cmd/codexlib/lzh/
H A Dlzh.c111 fill(State_t* state) argument
115 if (state->eof)
117 if ((r = sfrd(state->codex->sp, state->buf, sizeof(state->buf), &state->codex->sfdisc)) <= 0)
119 state->eof = 1;
122 state->ie = (state->ip = state
131 getbits(register State_t* state, int n, int peek) argument
148 make_table(State_t* state, int nchar, ui1* bitlen, int tablebits, ui2* table, ui4 tablesize) argument
331 get_p_len(State_t* state, int k, int nbit, int i_special) argument
370 get_c_len(State_t* state) argument
421 reconst(State_t* state, int start, int end) argument
488 swap_inc(State_t* state, int p) argument
530 update_c(State_t* state, int p) argument
545 update_p(State_t* state, int p) argument
564 make_new_node(State_t* state, int p) argument
589 ready_made(State_t* state, ui1* tbl) argument
613 read_tree_c(State_t* state) argument
639 read_tree_p(State_t* state) argument
661 set_c_d0(State_t* state, ui4 n_max, ui4 maxmatch, ui4 snp) argument
708 init_c_d0(State_t* state) argument
716 decode_c_d0(State_t* state) argument
731 init_p_d0(State_t* state) argument
744 decode_p_d0(State_t* state) argument
763 init_c_d1(State_t* state) argument
769 decode_start_fix(State_t* state) argument
782 init_c_s0(State_t* state) argument
797 decode_c_s0(State_t* state) argument
829 init_p_s0(State_t* state) argument
835 decode_p_s0(State_t* state) argument
854 init_c_s1(State_t* state) argument
871 decode_c_s1(State_t* state) argument
888 init_p_s1(State_t* state) argument
894 decode_p_s1(State_t* state) argument
910 init_c_s2(State_t* state) argument
917 decode_c_s2(State_t* state) argument
926 init_p_s2(State_t* state) argument
932 decode_p_s2(State_t* state) argument
938 init_c_s3(State_t* state) argument
955 decode_c_s3(State_t* state) argument
979 init_p_s3(State_t* state) argument
985 decode_p_s3(State_t* state) argument
1086 register State_t* state; local
1156 register State_t* state = (State_t*)p->data; local
1170 register State_t* state = (State_t*)CODEX(disc)->data; local
[all...]
/ast/src/cmd/3d/
H A Dchdir3d.c33 if (!fscall(NiL, MSG_stat, 0, path, &state.path.st))
35 if (state.ret)
37 if (!S_ISDIR(state.path.st.st_mode))
42 state.level = 1;
49 if (state.level > 0 && state.pwd && !CHDIR(state.pwd))
50 state.level = 0;
56 if (state.pwd)
59 * save absolute path in state
[all...]
H A Ddup3d.c33 if (nfd >= 0 && ofd >= 0 && ofd < elementsof(state.file))
35 if (state.cache)
37 if (!(state.file[ofd].flags & FILE_OPEN))
39 state.file[nfd] = state.file[ofd];
40 state.file[nfd].flags &= ~FILE_CLOEXEC;
41 state.file[nfd].reserved = 0;
42 if (nfd > state.cache)
43 state.cache = nfd;
44 if (nfd > state
[all...]
H A Dclose3d.c30 if (fd >= 0 && fd < elementsof(state.file))
39 if (state.file[fd].dir)
41 free(state.file[fd].dir);
42 state.file[fd].dir = 0;
45 if (rp = state.file[fd].reserved)
53 state.file[nfd].reserved = rp;
54 state.file[nfd].flags = FILE_LOCK;
55 state.file[fd].reserved = 0;
59 if ((mp = state.file[fd].mount) && fssys(mp, MSG_close))
61 if (FSTAT(fd, &state
[all...]
/ast/src/lib/libz/
H A Dinflate.c26 * - Change strm->next_out[-state->offset] to *(strm->next_out - state->offset)
30 * - Add comments on state->bits assertion in inffast.c
95 local void fixedtables OF((struct inflate_state FAR *state));
106 struct inflate_state FAR *state; local
108 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
109 state = (struct inflate_state FAR *)strm->state;
110 strm->total_in = strm->total_out = state->total = 0;
113 state
133 struct inflate_state FAR *state; local
150 struct inflate_state FAR *state; local
272 struct inflate_state state; local
327 struct inflate_state FAR *state; local
558 struct inflate_state FAR *state; local
[all...]
H A Dinfback.c19 local void fixedtables OF((struct inflate_state FAR *state));
35 struct inflate_state FAR *state; local
49 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
51 if (state == Z_NULL) return Z_MEM_ERROR;
53 strm->state = (struct internal_state FAR *)state;
54 state->dmax = 32768U;
55 state->wbits = windowBits;
56 state->wsize = 1U << windowBits;
57 state
248 struct inflate_state FAR *state; local
[all...]
/ast/src/lib/libast/comp/
H A Dre_comp.c39 } state; variable in typeref:struct:__anon251
48 if (state.valid)
54 if (state.valid)
56 state.valid = 0;
57 regfree(&state.re);
59 if (!(r = regcomp(&state.re, pattern, REG_LENIENT|REG_NOSUB|REG_NULL)))
61 state.valid = 1;
65 regerror(r, &state.re, state.error, sizeof(state
[all...]
/ast/src/cmd/sortlib/sync/
H A Dtest.c39 register State_t* state; local
43 if (!(state = (State_t*)*data))
48 if (!(state = newof(0, State_t, 1, strlen(s) + 1)))
50 state->status = RS_ACCEPT;
51 state->pretty = 'A';
52 strcpy(state->sp = (char*)(state + 1), s);
53 *data = state;
55 state->count++;
56 if (*state
102 E11(Rsobj_t* rp, Rsobj_t* dp, void** state) argument
103 E14(Rsobj_t* rp, Rsobj_t* dp, void** state) argument
104 E15(Rsobj_t* rp, Rsobj_t* dp, void** state) argument
105 E16(Rsobj_t* rp, Rsobj_t* dp, void** state) argument
106 E17(Rsobj_t* rp, Rsobj_t* dp, void** state) argument
107 E21(Rsobj_t* rp, Rsobj_t* dp, void** state) argument
108 E25(Rsobj_t* rp, Rsobj_t* dp, void** state) argument
109 E27(Rsobj_t* rp, Rsobj_t* dp, void** state) argument
110 E31(Rsobj_t* rp, Rsobj_t* dp, void** state) argument
111 E32(Rsobj_t* rp, Rsobj_t* dp, void** state) argument
112 E35(Rsobj_t* rp, Rsobj_t* dp, void** state) argument
113 E37(Rsobj_t* rp, Rsobj_t* dp, void** state) argument
114 E38(Rsobj_t* rp, Rsobj_t* dp, void** state) argument
115 E39(Rsobj_t* rp, Rsobj_t* dp, void** state) argument
[all...]
/ast/src/lib/libcodex/
H A Dcode-uu.c100 fill(State_t* state) argument
104 state->bp = state->buf;
105 if ((r = sfrd(state->codex->sp, state->bp, sizeof(state->buf), &state->codex->sfdisc)) <= 0)
107 state->be = state->bp;
110 state
115 flush(register State_t* state) argument
164 register State_t* state; local
232 register State_t* state = (State_t*)p->data; local
262 register State_t* state = (State_t*)CODEX(disc)->data; local
396 register State_t* state = (State_t*)CODEX(disc)->data; local
[all...]
H A Dcode-qp.c59 fill(State_t* state) argument
63 state->bp = state->buf + LINE;
64 if ((r = sfrd(state->codex->sp, state->bp, BUFFER, &state->codex->sfdisc)) <= 0)
66 state->be = state->bp;
69 state->be = state
74 flush(register State_t* state, int c) argument
95 register State_t* state; local
119 register State_t* state = (State_t*)CODEX(disc)->data; local
171 register State_t* state = (State_t*)CODEX(disc)->data; local
[all...]
/ast/src/lib/libast/regex/
H A Dregalloc.c33 state.disc.re_flags = flags;
34 state.disc.re_resizef = resize;
35 state.disc.re_resizehandle = handle;
/ast/src/cmd/codexlib/zip/
H A Dimplode.c197 fill(State_t* state) argument
201 if (state->eof)
203 if ((r = sfrd(state->codex->sp, state->buf, sizeof(state->buf), &state->codex->sfdisc)) <= 0)
205 state->eof = 1;
208 state->ie = (state->ip = state
212 get_tree( State_t* state, ulg *l, ulg n) argument
241 explode_lit8(State_t* state, char *buff, size_t size) argument
382 explode_lit4(State_t* state, char *buff, size_t size) argument
522 explode_nolit8(State_t* state, char *buff, size_t size) argument
650 explode_nolit4(State_t* state, char *buff, size_t size) argument
778 State_t* state; local
822 State_t* state = (State_t*)p->data; local
835 register State_t* state = (State_t*)p->data; local
925 register State_t* state = (State_t*)CODEX(disc)->data; local
[all...]
/ast/src/lib/libardir/
H A Dar-pdp11.c43 typedef struct State_s /* method state */
59 State_t* state; local
61 if (ar && (state = (State_t*)ar->data))
62 free(state);
74 State_t* state; local
84 if (!(state = newof(0, State_t, 1, 0)))
86 ar->data = (void*)state;
87 state->swap = swap;
88 state->offset = MAGIC_SIZE;
100 State_t* state local
136 State_t* state = (State_t*)ar->data; local
[all...]
H A Dar-s5r0.c57 typedef struct State_s /* method state */
74 State_t* state; local
78 if (!ar || !(state = (State_t*)ar->data))
83 if (state->touch && state->patch >= 0)
85 if (lseek(ar->fd, state->patch, SEEK_SET) != state->patch)
94 free(state);
107 State_t* state; local
114 if (!(state
130 State_t* state = (State_t*)ar->data; local
166 State_t* state = (State_t*)ar->data; local
[all...]
/ast/src/lib/libcmd/
H A Dcp.c157 typedef struct State_s /* program state */
171 int postsiz; /* state.path post index */
172 int presiz; /* state.path pre index */
176 int suflen; /* strlen(state.suffix) */
186 #define INITSTATE pathsiz /* (re)init state before this */
187 int pathsiz; /* state.path buffer size */
191 char* opname; /* state.op message string */
206 preserve(State_t* state, const char* path, struct stat* ns, struct stat* os) argument
210 if ((state->preserve & PRESERVE_TIME) && tmxtouch(path, tmxgetatime(os), tmxgetmtime(os), TMX_NOTIME, 0))
212 if (state
236 visit(State_t* state, register FTSENT* ent) argument
691 State_t* state; local
[all...]
/ast/src/cmd/std/
H A Ddd.c184 static State_t state = variable
398 if (state.in.fp != sfstdin)
399 sfclose(state.in.fp);
400 if (state.out.fp == sfstdout)
401 sfsync(state.out.fp);
403 sfclose(state.out.fp);
404 if (!state.silent.value.number)
406 sfprintf(sfstderr, "%I*u+%I*u records in\n", sizeof(Sfulong_t), (Sfulong_t)state.in.complete, sizeof(Sfulong_t), (Sfulong_t)(state.in.partial + (state
[all...]

Completed in 76 milliseconds

1234567891011>>