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

1234567891011>>

/freebsd-10.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-10.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-10.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-10.3-release/contrib/libarchive/libarchive/
H A Darchive_write_add_filter_compress.c150 struct private_data *state; local
160 state = (struct private_data *)calloc(1, sizeof(*state));
161 if (state == NULL) {
176 state->compressed_buffer_size = bs;
177 state->compressed = malloc(state->compressed_buffer_size);
179 if (state->compressed == NULL) {
182 free(state);
190 state
234 struct private_data *state = f->data; local
253 struct private_data *state = f->data; local
319 struct private_data *state = f->data; local
340 struct private_data *state = (struct private_data *)f->data; local
428 struct private_data *state = (struct private_data *)f->data; local
[all...]
H A Darchive_read_support_filter_program.c128 struct program_bidder *state, const void *signature, size_t signature_len)
132 state->signature_len = signature_len;
133 state->signature = malloc(signature_len);
134 memcpy(state->signature, signature, signature_len);
140 bidder->data = state;
154 struct program_bidder *state; local
163 * Allocate our private state.
165 state = (struct program_bidder *)calloc(1, sizeof (*state));
166 if (state
127 set_bidder_signature(struct archive_read_filter_bidder *bidder, struct program_bidder *state, const void *signature, size_t signature_len) argument
182 struct program_bidder *state = (struct program_bidder *)self->data; local
189 free_state(struct program_bidder *state) argument
209 struct program_bidder *state = self->data; local
239 child_stop(struct archive_read_filter *self, struct program_filter *state) argument
309 struct program_filter *state = self->data; local
399 struct program_filter *state; local
475 struct program_filter *state; local
504 struct program_filter *state; local
[all...]
H A Darchive_read_support_filter_compress.c211 struct private_data *state; local
219 state = (struct private_data *)calloc(sizeof(*state), 1);
221 if (state == NULL || out_block == NULL) {
223 free(state);
230 self->data = state;
231 state->out_block_size = out_block_size;
232 state->out_block = out_block;
243 state->maxcode_bits = code & 0x1f;
244 state
271 struct private_data *state; local
315 struct private_data *state = (struct private_data *)self->data; local
330 struct private_data *state = (struct private_data *)self->data; local
420 struct private_data *state = (struct private_data *)self->data; local
[all...]
/freebsd-10.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-10.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:__anon7291
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-10.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-10.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-10.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-10.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-10.3-release/contrib/llvm/tools/lldb/include/lldb/Core/
H A DState.h24 /// @param[in] state
28 /// A NULL terminated C string that describes \a state. The
33 StateAsCString (lldb::StateType state);
36 /// Check if a state represents a state where the process or thread
39 /// @param[in] state
43 /// \b true if the state represents a process or thread state
47 StateIsRunningState (lldb::StateType state);
50 /// Check if a state represent
[all...]
/freebsd-10.3-release/contrib/unbound/util/
H A Drandom.h46 * random state structure.
54 * @param seed: seed value to create state (if no good entropy is found).
59 * Initialize a random generator state for use
60 * @param seed: seed value to create state contents.
63 * can be used to seed random states via a parent-random-state that
65 * @return new state or NULL alloc failure.
71 * Generate next random number from the state passed along.
73 * @param state: must have been initialised with ub_initstate.
76 long int ub_random(struct ub_randstate* state);
80 * @param state
[all...]
/freebsd-10.3-release/contrib/jemalloc/include/jemalloc/internal/
H A Dprng.h25 * uint32_t state : Seed value.
28 #define prng32(r, lg_range, state, a, c) do { \
32 r = (state * (a)) + (c); \
33 state = r; \
38 #define prng64(r, lg_range, state, a, c) do { \
42 r = (state * (a)) + (c); \
43 state = r; \
/freebsd-10.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-10.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-10.3-release/crypto/heimdal/lib/roken/
H A Dsnprintf.c52 * Common state
67 sn_reserve (struct snprintf_state *state, size_t n) argument
69 return state->s + n > state->theend;
73 sn_append_char (struct snprintf_state *state, unsigned char c) argument
75 if (!sn_reserve (state, 1))
76 *state->s++ = c;
81 as_reserve (struct snprintf_state *state, size_t n) argument
83 if (state->s + n > state
104 as_append_char(struct snprintf_state *state, unsigned char c) argument
123 pad(struct snprintf_state *state, int width, char c) argument
141 append_number(struct snprintf_state *state, u_longest num, unsigned base, const char *rep, int width, int prec, int flags, int minusp) argument
256 append_string(struct snprintf_state *state, const unsigned char *arg, int width, int prec, int flags) argument
291 append_char(struct snprintf_state *state, unsigned char arg, int width, int flags) argument
348 xyzprintf(struct snprintf_state *state, const char *char_format, va_list ap) argument
642 struct snprintf_state state; local
680 struct snprintf_state state; local
[all...]
/freebsd-10.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-10.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-10.3-release/contrib/wpa/src/utils/
H A Dstate_machine.h9 * implement a state machine. In addition to including this header file, each
10 * file implementing a state machine must define STATE_MACHINE_DATA to be the
11 * data structure including state variables (enum machine_state,
14 * a group of state machines with shared data structure, STATE_MACHINE_ADDR
16 * SM_ENTRY_M macro can be used to define similar group of state machines
24 * SM_STATE - Declaration of a state machine function
26 * @state: State machine state
28 * This macro is used to declare a state machine function. It is used in place
29 * of a C function definition to declare functions to be run when the state i
[all...]

Completed in 179 milliseconds

1234567891011>>