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

1234567891011>>

/freebsd-9.3-release/contrib/less/
H A Dmkfuncs.awk1 BEGIN { FS="("; state = 0 }
3 /^ public/ { ftype = $0; state = 1 }
5 { if (state == 1)
6 state = 2
7 else if (state == 2)
8 { print ftype,$1,"();"; state = 0 }
/freebsd-9.3-release/usr.bin/getconf/
H A Dfake-gperf.awk4 state = 0;
7 /^%{$/ && state == 0 {
8 state = 1;
11 /^%}$/ && state == 1 {
12 state = 0;
15 state == 1 { print; next; }
16 /^struct/ && state == 0 {
21 /^%%$/ && state == 0 {
22 state = 2;
35 /^%%$/ && state
[all...]
/freebsd-9.3-release/lib/libz/
H A Dgzread.c20 state->fd, and update state->eof, state->err, and state->msg as appropriate.
23 local int gz_load(state, buf, len, have)
24 gz_statep state;
33 ret = read(state->fd, buf + *have, len - *have);
39 gz_error(state, Z_ERRNO, zstrerror());
43 state->eof = 1;
54 local int gz_avail(state)
297 gz_statep state; local
395 gz_statep state; local
430 gz_statep state; local
494 gz_statep state; local
553 gz_statep state; local
574 gz_statep state; local
[all...]
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));
107 struct inflate_state FAR *state; local
109 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
110 state = (struct inflate_state FAR *)strm->state;
111 strm->total_in = strm->total_out = state->total = 0;
113 if (state
132 struct inflate_state FAR *state; local
147 struct inflate_state FAR *state; local
187 struct inflate_state FAR *state; local
235 struct inflate_state FAR *state; local
328 struct inflate_state state; local
384 struct inflate_state FAR *state; local
609 struct inflate_state FAR *state; local
[all...]
H A Dgzlib.c77 /* Reset gzip file state */
78 local void gz_reset(state)
79 gz_statep state;
81 state->x.have = 0; /* no output data available */
82 if (state->mode == GZ_READ) { /* for reading ... */
83 state->eof = 0; /* not at end of file */
84 state->past = 0; /* have not read past end yet */
85 state->how = LOOK; /* look for gzip header */
87 state->seek = 0; /* no seek request pending */
88 gz_error(state, Z_O
99 gz_statep state; local
321 gz_statep state; local
345 gz_statep state; local
372 gz_statep state; local
457 gz_statep state; local
485 gz_statep state; local
517 gz_statep state; local
535 gz_statep state; local
555 gz_statep state; local
[all...]
H A Dgzwrite.c16 /* Initialize state for writing a gzip file. Mark initialization by setting
17 state->size to non-zero. Return -1 on failure or 0 on success. */
18 local int gz_init(state)
19 gz_statep state;
22 z_streamp strm = &(state->strm);
25 state->in = (unsigned char *)malloc(state->want);
26 if (state->in == NULL) {
27 gz_error(state, Z_MEM_ERROR, "out of memory");
31 /* only need output buffer and deflate state i
174 gz_statep state; local
254 gz_statep state; local
316 gz_statep state; local
397 gz_statep state; local
472 gz_statep state; local
505 gz_statep state; local
546 gz_statep state; local
[all...]
H A Dinfback.c19 local void fixedtables OF((struct inflate_state FAR *state));
35 struct inflate_state FAR *state; local
58 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
60 if (state == Z_NULL) return Z_MEM_ERROR;
62 strm->state = (struct internal_state FAR *)state;
63 state->dmax = 32768U;
64 state->wbits = windowBits;
65 state->wsize = 1U << windowBits;
66 state
257 struct inflate_state FAR *state; local
[all...]
/freebsd-9.3-release/contrib/gdb/gdb/config/i386/
H A Dnm-i386gnu.h30 #define THREAD_STATE_SET_TRACED(state) \
31 ((struct i386_thread_state *) (state))->efl |= 0x100
32 #define THREAD_STATE_CLEAR_TRACED(state) \
33 ((((struct i386_thread_state *) (state))->efl &= ~0x100), 1)
/freebsd-9.3-release/contrib/libarchive/libarchive/
H A Darchive_read_support_compression_compress.c204 struct private_data *state; local
212 state = (struct private_data *)calloc(sizeof(*state), 1);
214 if (state == NULL || out_block == NULL) {
216 free(state);
223 self->data = state;
224 state->out_block_size = out_block_size;
225 state->out_block = out_block;
236 state->maxcode_bits = code & 0x1f;
237 state
264 struct private_data *state; local
308 struct private_data *state = (struct private_data *)self->data; local
323 struct private_data *state = (struct private_data *)self->data; local
413 struct private_data *state = (struct private_data *)self->data; local
[all...]
H A Darchive_write_set_compression_program.c106 struct private_data *state; local
116 state = (struct private_data *)malloc(sizeof(*state));
117 if (state == NULL) {
122 memset(state, 0, sizeof(*state));
125 state->description = (char *)malloc(strlen(prefix) + strlen(cmd) + 1);
126 strcpy(state->description, prefix);
127 strcat(state->description, cmd);
128 a->archive.compression_name = state
160 struct private_data *state = a->compressor.data; local
268 struct private_data *state; local
[all...]
H A Darchive_write_set_compression_compress.c138 struct private_data *state; local
155 state = (struct private_data *)malloc(sizeof(*state));
156 if (state == NULL) {
161 memset(state, 0, sizeof(*state));
163 state->compressed_buffer_size = a->bytes_per_block;
164 state->compressed = malloc(state->compressed_buffer_size);
166 if (state
220 struct private_data *state = a->compressor.data; local
242 struct private_data *state = a->compressor.data; local
308 struct private_data *state = a->compressor.data; local
329 struct private_data *state; local
427 struct private_data *state; local
[all...]
H A Darchive_read_support_compression_program.c143 struct program_bidder *state; local
153 * Allocate our private state.
155 state = (struct program_bidder *)calloc(sizeof (*state), 1);
156 if (state == NULL)
158 state->cmd = strdup(cmd);
160 state->signature_len = signature_len;
161 state->signature = malloc(signature_len);
162 memcpy(state->signature, signature, signature_len);
168 bidder->data = state;
179 struct program_bidder *state = (struct program_bidder *)self->data; local
196 struct program_bidder *state = self->data; local
226 child_stop(struct archive_read_filter *self, struct program_filter *state) argument
293 struct program_filter *state = self->data; local
359 struct program_filter *state; local
416 struct program_filter *state; local
445 struct program_filter *state; local
[all...]
H A Darchive_write_set_compression_gzip.c121 struct private_data *state; local
148 state = (struct private_data *)malloc(sizeof(*state));
149 if (state == NULL) {
154 memset(state, 0, sizeof(*state));
160 state->compressed_buffer_size = a->bytes_per_block;
161 state->compressed = (unsigned char *)malloc(state->compressed_buffer_size);
162 state
259 struct private_data *state; local
292 struct private_data *state; local
420 drive_compressor(struct archive_write *a, struct private_data *state, int finishing) argument
[all...]
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/zmod/
H A Dinflate.c33 * - Change strm->next_out[-state->offset] to *(strm->next_out - state->offset)
37 * - Add comments on state->bits assertion in inffast.c
102 local void fixedtables OF((struct inflate_state FAR *state));
113 struct inflate_state FAR *state; local
115 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
116 state = (struct inflate_state FAR *)strm->state;
117 strm->total_in = strm->total_out = state->total = 0;
120 state
140 struct inflate_state FAR *state; local
157 struct inflate_state FAR *state; local
279 struct inflate_state state; local
334 struct inflate_state FAR *state; local
565 struct inflate_state FAR *state; local
[all...]
/freebsd-9.3-release/sys/contrib/octeon-sdk/
H A Dcvmx-coremask.c67 * This structure defines the private state maintained by coremask module.
82 } state = { variable in typeref:struct:__anon6357
104 cvmx_spinlock_lock(&state.lock);
108 if (state.s[i].coremask == 0) {
110 state.s[i].coremask = coremask;
113 if (state.s[i].coremask == coremask) {
115 target = state.s[i].exit + 1; /* wrap-around at 32b */
117 state.s[i].checkin |= cvmx_coremask_core(cvmx_get_core_num());
118 if (state.s[i].checkin == coremask) {
119 state
[all...]
/freebsd-9.3-release/lib/libthr/thread/
H A Dthr_once.c55 if (atomic_cmpset_rel_int(&once_control->state, ONCE_IN_PROGRESS, ONCE_NEVER_DONE))
57 atomic_store_rel_int(&once_control->state, ONCE_NEVER_DONE);
58 _thr_umtx_wake(&once_control->state, INT_MAX, 0);
65 int state; local
70 state = once_control->state;
71 if (state == ONCE_DONE)
73 if (state == ONCE_NEVER_DONE) {
74 if (atomic_cmpset_acq_int(&once_control->state, state, ONCE_IN_PROGRES
[all...]
/freebsd-9.3-release/contrib/libpcap/missing/
H A Dsnprintf.c63 * Common state
66 struct state { struct
72 int (*append_char)(struct state *, unsigned char);
73 int (*reserve)(struct state *, size_t);
79 sn_reserve (struct state *state, size_t n) argument
81 return state->s + n > state->theend;
85 sn_append_char (struct state *state, unsigne argument
133 append_number(struct state *state, unsigned long num, unsigned base, char *rep, int width, int prec, int flags, int minusp) argument
222 append_string(struct state *state, unsigned char *arg, int width, int prec, int flags) argument
253 append_char(struct state *state, unsigned char arg, int width, int flags) argument
288 xyzprintf(struct state *state, const char *char_format, va_list ap) argument
612 struct state state; local
[all...]
/freebsd-9.3-release/contrib/tcpdump/missing/
H A Dsnprintf.c63 * Common state
66 struct state { struct
72 int (*append_char)(struct state *, unsigned char);
73 int (*reserve)(struct state *, size_t);
79 sn_reserve (struct state *state, size_t n) argument
81 return state->s + n > state->theend;
85 sn_append_char (struct state *state, unsigne argument
133 append_number(struct state *state, unsigned long num, unsigned base, char *rep, int width, int prec, int flags, int minusp) argument
222 append_string(struct state *state, unsigned char *arg, int width, int prec, int flags) argument
253 append_char(struct state *state, unsigned char arg, int width, int flags) argument
288 xyzprintf(struct state *state, const char *char_format, va_list ap) argument
612 struct state state; local
[all...]
/freebsd-9.3-release/contrib/gcc/
H A Dmkmap-flat.awk22 state = "nm";
38 state == "nm" && /^%%/ {
39 state = "ver";
43 state == "nm" && ($1 == "U" || $2 == "U") {
47 state == "nm" && NF == 3 {
52 state == "nm" {
/freebsd-9.3-release/sys/contrib/xz-embedded/linux/lib/xz/
H A Dxz_lzma2.h23 * Maximum number of position states. A position state is the lowest pb
60 /* The lowest 7 states indicate that the previous state was a literal. */
64 static inline void lzma_state_literal(enum lzma_state *state) argument
66 if (*state <= STATE_SHORTREP_LIT_LIT)
67 *state = STATE_LIT_LIT;
68 else if (*state <= STATE_LIT_SHORTREP)
69 *state -= 3;
71 *state -= 6;
75 static inline void lzma_state_match(enum lzma_state *state) argument
77 *state
[all...]
/freebsd-9.3-release/sys/crypto/rc4/
H A Drc4.c57 * Initialize an RC4 state buffer using the supplied key,
61 rc4_init(struct rc4_state *const state, const u_char *key, int keylen) argument
66 /* Initialize state with identity permutation */
68 state->perm[i] = (u_char)i;
69 state->index1 = 0;
70 state->index2 = 0;
74 j += state->perm[i] + key[k];
75 swap_bytes(&state->perm[i], &state->perm[j]);
82 * Encrypt some data using the supplied RC4 state buffe
88 rc4_crypt(struct rc4_state *const state, const u_char *inbuf, u_char *outbuf, int buflen) argument
[all...]
/freebsd-9.3-release/crypto/heimdal/lib/roken/
H A Dsnprintf.c58 * Common state
73 sn_reserve (struct snprintf_state *state, size_t n) argument
75 return state->s + n > state->theend;
79 sn_append_char (struct snprintf_state *state, unsigned char c) argument
81 if (!sn_reserve (state, 1))
82 *state->s++ = c;
87 as_reserve (struct snprintf_state *state, size_t n) argument
89 if (state->s + n > state
110 as_append_char(struct snprintf_state *state, unsigned char c) argument
129 pad(struct snprintf_state *state, int width, char c) argument
147 append_number(struct snprintf_state *state, u_longest num, unsigned base, const char *rep, int width, int prec, int flags, int minusp) argument
262 append_string(struct snprintf_state *state, const unsigned char *arg, int width, int prec, int flags) argument
297 append_char(struct snprintf_state *state, unsigned char arg, int width, int flags) argument
354 xyzprintf(struct snprintf_state *state, const char *char_format, va_list ap) argument
648 struct snprintf_state state; local
686 struct snprintf_state state; local
[all...]
/freebsd-9.3-release/contrib/expat/lib/
H A Dxmlrole.c93 #define setTopLevel(state) \
94 ((state)->handler = ((state)->documentEntity \
98 #define setTopLevel(state) ((state)->handler = internalSubset)
101 typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state,
125 static int FASTCALL common(PROLOG_STATE *state, int tok);
128 prolog0(PROLOG_STATE *state, argument
136 state->handler = prolog1;
139 state
165 prolog1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
196 prolog2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
217 doctype0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
235 doctype1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
265 doctype2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
282 doctype3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
299 doctype4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
319 doctype5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
336 internalSubset(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
393 externalSubset0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
406 externalSubset1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
438 entity0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
458 entity1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
475 entity2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
503 entity3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
520 entity4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
537 entity5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
560 entity6(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
578 entity7(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
606 entity8(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
623 entity9(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
640 entity10(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
657 notation0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
674 notation1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
698 notation2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
715 notation3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
733 notation4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
754 attlist0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
772 attlist1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
793 attlist2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
834 attlist3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
853 attlist4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
873 attlist5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
890 attlist6(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
907 attlist7(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
928 attlist8(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
968 attlist9(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
985 element0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1003 element1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1033 element2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1073 element3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1098 element4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1116 element5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1137 element6(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1167 element7(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1217 condSect0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1241 condSect1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1259 condSect2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1278 declClose(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1295 error(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1305 common(PROLOG_STATE *state, int tok) argument
1316 XmlPrologStateInit(PROLOG_STATE *state) argument
1329 XmlPrologStateInitExternalEntity(PROLOG_STATE *state) argument
[all...]
/freebsd-9.3-release/sys/cddl/dev/dtrace/
H A Ddtrace_vtime.c32 dtrace_vtime_state_t state, nstate = 0; local
35 state = dtrace_vtime_active;
37 switch (state) {
53 state, nstate) != state);
59 dtrace_vtime_state_t state, nstate = 0; local
62 state = dtrace_vtime_active;
64 switch (state) {
80 state, nstate) != state);
[all...]
/freebsd-9.3-release/contrib/wpa/src/utils/
H A Dstate_machine.h15 * implement a state machine. In addition to including this header file, each
16 * file implementing a state machine must define STATE_MACHINE_DATA to be the
17 * data structure including state variables (enum machine_state,
20 * a group of state machines with shared data structure, STATE_MACHINE_ADDR
22 * SM_ENTRY_M macro can be used to define similar group of state machines
30 * SM_STATE - Declaration of a state machine function
32 * @state: State machine state
34 * This macro is used to declare a state machine function. It is used in place
35 * of a C function definition to declare functions to be run when the state i
[all...]

Completed in 252 milliseconds

1234567891011>>