Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 254) sorted by relevance

1234567891011

/glibc-2.36/misc/
Dfstab.c36 static struct mntent *fstab_fetch (struct fstab_state *state);
37 static struct fstab *fstab_convert (struct fstab_state *state);
52 struct fstab_state *state; in getfsent() local
54 state = fstab_init (0); in getfsent()
55 if (state == NULL) in getfsent()
57 if (fstab_fetch (state) == NULL) in getfsent()
59 return fstab_convert (state); in getfsent()
66 struct fstab_state *state; in getfsspec() local
69 state = fstab_init (1); in getfsspec()
70 if (state == NULL) in getfsspec()
[all …]
/glibc-2.36/argp/
Dargp-parse.c111 argp_default_parser (int key, char *arg, struct argp_state *state) in argp_default_parser() argument
116 __argp_state_help (state, state->out_stream, ARGP_HELP_STD_HELP); in argp_default_parser()
119 __argp_state_help (state, state->out_stream, in argp_default_parser()
132 state->name = strrchr (arg, '/'); in argp_default_parser()
133 if (state->name) in argp_default_parser()
134 state->name++; in argp_default_parser()
136 state->name = arg; in argp_default_parser()
139 program_invocation_short_name = state->name; in argp_default_parser()
142 if ((state->flags & (ARGP_PARSE_ARGV0 | ARGP_NO_ERRS)) in argp_default_parser()
145 state->argv[0] = arg; in argp_default_parser()
[all …]
Dargp-help.c167 fill_in_uparams (const struct argp_state *state) in fill_in_uparams() argument
226 __argp_failure (state, 0, 0, in fill_in_uparams()
227 dgettext (state == NULL ? NULL in fill_in_uparams()
228 : state->root_argp->argp_domain, in fill_in_uparams()
237 __argp_failure (state, 0, 0, in fill_in_uparams()
238 dgettext (state == NULL ? NULL in fill_in_uparams()
239 : state->root_argp->argp_domain, "\ in fill_in_uparams()
249 __argp_failure (state, 0, 0, in fill_in_uparams()
250 dgettext (state == NULL ? NULL in fill_in_uparams()
251 : state->root_argp->argp_domain, in fill_in_uparams()
[all …]
/glibc-2.36/sysdeps/mach/hurd/i386/
Dtrampoline.c34 const struct machine_thread_all_state *state) in fill_siginfo() argument
49 si->si_addr = (void *) state->basic.eip; in fill_siginfo()
87 struct machine_thread_all_state *state) in _hurd_setup_sighandler() argument
133 memcpy (&state->basic, &ss->context->sc_i386_thread_state, in _hurd_setup_sighandler()
134 sizeof (state->basic)); in _hurd_setup_sighandler()
135 memcpy (&state->fpu, &ss->context->sc_i386_float_state, in _hurd_setup_sighandler()
136 sizeof (state->fpu)); in _hurd_setup_sighandler()
137 state->set |= (1 << i386_REGS_SEGS_STATE) | (1 << i386_FLOAT_STATE); in _hurd_setup_sighandler()
141 if (! machine_get_basic_state (ss->thread, state)) in _hurd_setup_sighandler()
147 state->basic.esp = state->basic.uesp; in _hurd_setup_sighandler()
[all …]
Dintr-msg.h84 INTR_MSG_BACK_OUT (struct i386_thread_state *state) in INTR_MSG_BACK_OUT() argument
87 if (state->eip >= (natural_t) &_hurd_intr_rpc_msg_cx_sp) in INTR_MSG_BACK_OUT()
88 state->uesp = state->ecx; in INTR_MSG_BACK_OUT()
90 state->ecx = state->uesp; in INTR_MSG_BACK_OUT()
96 #define SYSCALL_EXAMINE(state, callno) \ argument
98 struct { unsigned int c[2]; } *p = (void *) ((state)->eip - 7); \
105 *(callno) = (state)->eax; \
126 #define MSG_EXAMINE(state, msgid, rcvname, send_name, opt, tmout) \ argument
128 const struct mach_msg_trap_args *args = (const void *) (state)->uesp; \
/glibc-2.36/iconv/
Dgconv_simple.c176 mbstate_t *state = step_data->__statep; in internal_ucs4_loop_single() local
177 size_t cnt = state->__count & 7; in internal_ucs4_loop_single()
180 state->__value.__wchb[cnt++] = *(*inptrp)++; in internal_ucs4_loop_single()
185 state->__count &= ~7; in internal_ucs4_loop_single()
186 state->__count |= cnt; in internal_ucs4_loop_single()
192 (*outptrp)[0] = state->__value.__wchb[3]; in internal_ucs4_loop_single()
193 (*outptrp)[1] = state->__value.__wchb[2]; in internal_ucs4_loop_single()
194 (*outptrp)[2] = state->__value.__wchb[1]; in internal_ucs4_loop_single()
195 (*outptrp)[3] = state->__value.__wchb[0]; in internal_ucs4_loop_single()
199 (*outptrp)[0] = state->__value.__wchb[0]; in internal_ucs4_loop_single()
[all …]
Dloop.c292 mbstate_t *state = step_data->__statep; in FCTNAME() local
373 mbstate_t *state = step_data->__statep; in SINGLE() local
394 assert ((state->__count & 7) <= sizeof (state->__value)); in SINGLE()
395 for (inlen = 0; inlen < (size_t) (state->__count & 7); ++inlen) in SINGLE()
396 bytebuf[inlen] = state->__value.__wchb[inlen]; in SINGLE()
423 assert (inlen_after <= sizeof (state->__value.__wchb)); in SINGLE()
425 state->__value.__wchb[inlen] = *inptr++; in SINGLE()
470 assert (inptr - bytebuf > (state->__count & 7)); in SINGLE()
472 *inptrp += inptr - bytebuf - (state->__count & 7); in SINGLE()
481 state->__count &= ~7; in SINGLE()
[all …]
/glibc-2.36/stdlib/
Drandom_r.c164 int32_t *state; in __srandom_r() local
176 state = buf->state; in __srandom_r()
180 state[0] = seed; in __srandom_r()
184 dst = state; in __srandom_r()
200 buf->fptr = &state[buf->rand_sep]; in __srandom_r()
201 buf->rptr = &state[0]; in __srandom_r()
236 int32_t *old_state = buf->state; in weak_alias()
265 int32_t *state = &((int32_t *) arg_state)[1]; /* First location. */ in weak_alias() local
267 buf->end_ptr = &state[degree]; in weak_alias()
269 buf->state = state; in weak_alias()
[all …]
Dmblen.c26 static mbstate_t state; variable
48 memset (&state, '\0', sizeof state); in mblen()
57 memset (&state, '\0', sizeof state); in mblen()
59 result = __mbrtowc (NULL, s, n, &state); in mblen()
Dtst-random.c52 char* state[nseq]; /* state for PRNG */ in do_test() local
85 state[s] = (char*) malloc (degree); in do_test()
86 oldstate[s] = initstate (seed[s], state[s], degree); in do_test()
88 state[0] = oldstate[1]; in do_test()
92 if (state[s] != oldstate[s + 1]) in do_test()
101 char *oldstate = (char *) setstate (state[s]); in do_test()
102 if (oldstate != state[(s + nseq - 1) % nseq]) in do_test()
/glibc-2.36/support/
Dsupport_record_failure.c42 static struct test_failures *state; variable
47 void *ptr = mmap (NULL, sizeof (*state), PROT_READ | PROT_WRITE, in init()
51 printf ("error: could not map %zu bytes: %m\n", sizeof (*state)); in init()
55 state = ptr; in init()
61 if (state == NULL) in support_record_failure()
69 __atomic_store_n (&state->failed, 1, __ATOMIC_RELEASE); in support_record_failure()
70 __atomic_add_fetch (&state->counter, 1, __ATOMIC_RELEASE); in support_record_failure()
76 if (state == NULL) in support_report_failure()
87 bool failed = __atomic_load_n (&state->failed, __ATOMIC_RELAXED); in support_report_failure()
90 __atomic_load_n (&state->counter, __ATOMIC_RELAXED)); in support_report_failure()
[all …]
/glibc-2.36/nss/nss_db/
Ddb-XXX.c55 static struct nss_db_map state; variable
72 status = internal_setent (DBFILE, &state); in CONCAT()
95 internal_endent (&state); in CONCAT()
137 struct nss_db_map state = { NULL, 0 }; \
138 enum nss_status status = internal_setent (DBFILE, &state); \
146 const struct nss_db_header *header = state.header; \
218 internal_endent (&state); \
247 if (state.header == NULL) in CONCAT()
249 status = internal_setent (DBFILE, &state); in CONCAT()
262 entidx = (const char *) state.header + state.header->valstroffset; in CONCAT()
[all …]
/glibc-2.36/localedata/
Dtst-mbswcs1.c40 mbstate_t state; in do_test() local
52 memset (&state, '\0', sizeof (state)); in do_test()
54 show (mbrtowc (&wc, (const char *) buf + 0, 1, &state), 1, 37); in do_test()
55 show (mbrtowc (&wc, (const char *) buf + 1, 1, &state), -2, 37); in do_test()
56 show (mbrtowc (&wc, (const char *) buf + 2, 3, &state), 2, 8364); in do_test()
57 show (mbrtowc (&wc, (const char *) buf + 4, 1, &state), -2, 8364); in do_test()
58 show (mbrtowc (&wc, (const char *) buf + 5, 1, &state), 1, 955); in do_test()
59 show (mbrtowc (&wc, (const char *) buf + 5, 1, &state), -1, 955); in do_test()
Dtst-mbswcs2.c41 mbstate_t state; in do_test() local
54 memset (&state, '\0', sizeof (state)); in do_test()
57 show (mbsnrtowcs (&wc, &src, 1, 1, &state), 1, 37, buf + 1); in do_test()
58 show (mbsnrtowcs (&wc, &src, 3, 1, &state), 1, 8364, buf + 4); in do_test()
59 show (mbsnrtowcs (&wc, &src, 1, 1, &state), 0, 8364, buf + 5); in do_test()
60 show (mbsnrtowcs (&wc, &src, 1, 1, &state), 1, 955, buf + 6); in do_test()
Dtst-mbswcs5.c45 mbstate_t state; in do_test() local
57 memset (&state, '\0', sizeof (state)); in do_test()
61 show (wcrtomb (dst, *src++, &state), 1, buf + 1); in do_test()
62 show (wcrtomb (dst, *src++, &state), 3, buf + 4); in do_test()
63 show (wcrtomb (dst, *src++, &state), 2, buf + 6); in do_test()
64 show (wcrtomb (dst, *src, &state), 1, buf + 7); in do_test()
Dtst-mbswcs3.c46 mbstate_t state; in do_test() local
58 memset (&state, '\0', sizeof (state)); in do_test()
62 show (wcsrtombs (dst, &src, 1, &state), 1, srcbuf + 1, buf + 1); in do_test()
63 show (wcsrtombs (dst, &src, 1, &state), 0, srcbuf + 1, buf + 1); in do_test()
64 show (wcsrtombs (dst, &src, 4, &state), 3, srcbuf + 2, buf + 4); in do_test()
65 show (wcsrtombs (dst, &src, 2, &state), 2, srcbuf + 3, buf + 6); in do_test()
/glibc-2.36/elf/
Drtld.c151 static void dl_main_state_init (struct dl_main_state *state);
157 static void process_envvars (struct dl_main_state *state);
292 dl_main_state_init (struct dl_main_state *state) in dl_main_state_init() argument
294 audit_list_init (&state->audit_list); in dl_main_state_init()
295 state->library_path = NULL; in dl_main_state_init()
296 state->library_path_source = NULL; in dl_main_state_init()
297 state->preloadlist = NULL; in dl_main_state_init()
298 state->preloadarg = NULL; in dl_main_state_init()
299 state->glibc_hwcaps_prepend = NULL; in dl_main_state_init()
300 state->glibc_hwcaps_mask = NULL; in dl_main_state_init()
[all …]
/glibc-2.36/sunrpc/
Dtst-svc_register.c100 static struct test_state state = { 0, }; in rpcbind_dispatch() local
109 TEST_VERIFY (state.set_called == (request->rq_proc == PMAPPROC_UNSET)); in rpcbind_dispatch()
110 TEST_VERIFY (!state.unset_called); in rpcbind_dispatch()
122 state.set_called = TRUE; in rpcbind_dispatch()
124 state.unset_called = TRUE; in rpcbind_dispatch()
133 xdr_test_state, (void *) &state)); in rpcbind_dispatch()
268 struct test_state state = get_test_state (); in do_test() local
271 TEST_VERIFY (state.set_called); in do_test()
275 TEST_VERIFY (state.unset_called); in do_test()
282 TEST_VERIFY (!state.unset_called); in do_test()
[all …]
/glibc-2.36/string/
Dstrverscmp.c74 int state = S_N + ((c1 == '0') + (isdigit (c1) != 0)); in __strverscmp() local
82 state = next_state[state]; in __strverscmp()
85 state += (c1 == '0') + (isdigit (c1) != 0); in __strverscmp()
88 state = result_type[state * 3 + (((c2 == '0') + (isdigit (c2) != 0)))]; in __strverscmp()
90 switch (state) in __strverscmp()
103 return state; in __strverscmp()
/glibc-2.36/locale/
Dgen-translit.py31 state = 0
34 if state == 0:
36 state = 1
39 elif state == 1:
42 state = 0
44 state = 2
49 elif state == 2:
54 state = 1
56 state = 0
57 if state == 1:
/glibc-2.36/locale/programs/
Dcharmap.c279 int state; in parse_charmap() local
309 state = 1; in parse_charmap()
320 switch (state) in parse_charmap()
351 state = 2; in parse_charmap()
496 state = 90; in parse_charmap()
527 state = 3; in parse_charmap()
548 state = 4; in parse_charmap()
561 state = 2; in parse_charmap()
582 state = 2; in parse_charmap()
609 state = 5; in parse_charmap()
[all …]
/glibc-2.36/manual/examples/
Dargp-ex3.c105 parse_opt (int key, char *arg, struct argp_state *state) in parse_opt() argument
109 struct arguments *arguments = state->input; in parse_opt()
124 if (state->arg_num >= 2) in parse_opt()
126 argp_usage (state); in parse_opt()
128 arguments->args[state->arg_num] = arg; in parse_opt()
133 if (state->arg_num < 2) in parse_opt()
135 argp_usage (state); in parse_opt()
Dargp-ex4.c92 parse_opt (int key, char *arg, struct argp_state *state) in parse_opt() argument
96 struct arguments *arguments = state->input; in parse_opt()
117 argp_usage (state); in parse_opt()
135 arguments->strings = &state->argv[state->next]; in parse_opt()
136 state->next = state->argc; in parse_opt()
/glibc-2.36/resolv/
Dbase64.c196 int tarindex, state, ch; in libresolv_hidden_def() local
199 state = 0; in libresolv_hidden_def()
213 switch (state) { in libresolv_hidden_def()
220 state = 1; in libresolv_hidden_def()
231 state = 2; in libresolv_hidden_def()
242 state = 3; in libresolv_hidden_def()
251 state = 0; in libresolv_hidden_def()
265 switch (state) { in libresolv_hidden_def()
305 if (state != 0) in libresolv_hidden_def()
/glibc-2.36/iconvdata/
Dtst-loading.c29 enum state { unloaded, loaded }; enum
34 enum state state; member
38 #define MODULE(Name) { .name = #Name, .state = unloaded }
131 if (modules[idx].state == unloaded) in do_test()
149 modules[idx].state = loaded; in do_test()
169 modules[idx].state = unloaded; in do_test()
174 if (modules[count].state == loaded && iconv_close (modules[count].cd) != 0) in do_test()

1234567891011