Home
last modified time | relevance | path

Searched refs:uc (Results 1 – 25 of 176) sorted by relevance

12345678

/freebsd/contrib/file/src/
H A Dis_json.c120 while (uc < ue && json_isspace(*uc)) in json_skip_space()
121 uc++; in json_skip_space()
187 uc = json_skip_space(uc, ue); in json_parse_array()
223 uc = json_skip_space(uc, ue); in json_parse_object()
239 uc = json_skip_space(uc, ue); in json_parse_object()
286 for (; uc < ue; uc++) { in json_parse_number()
295 for (; uc < ue; uc++) { in json_parse_number()
302 if (got && (*uc == 'e' || *uc == 'E')) { in json_parse_number()
307 if (*uc == '+' || *uc == '-') in json_parse_number()
309 for (; uc < ue; uc++) { in json_parse_number()
[all …]
H A Dis_simh.c94 getlen(const unsigned char **uc) in getlen() argument
97 memcpy(&n, *uc, sizeof(n)); in getlen()
98 *uc += sizeof(n); in getlen()
113 const unsigned char *orig_uc = uc; in simh_parse()
118 while (ue - uc >= CAST(ptrdiff_t, sizeof(nbytes))) { in simh_parse()
119 nbytes = getlen(&uc); in simh_parse()
132 uc += nbytes; in simh_parse()
133 if (ue - uc < CAST(ptrdiff_t, sizeof(nbytes))) in simh_parse()
135 cbytes = getlen(&uc); in simh_parse()
152 const unsigned char *ue = uc + b->flen; in file_is_simh()
[all …]
H A Dis_csv.c67 eatquote(const unsigned char *uc, const unsigned char *ue) in eatquote() argument
71 while (uc < ue) { in eatquote()
72 unsigned char c = *uc++; in eatquote()
76 return --uc; in eatquote()
92 csv_parse(const unsigned char *uc, const unsigned char *ue) in csv_parse() argument
96 while (uc < ue) { in csv_parse()
97 switch (*uc++) { in csv_parse()
100 uc = eatquote(uc, ue); in csv_parse()
136 const unsigned char *uc = CAST(const unsigned char *, b->fbuf); in file_is_csv() local
137 const unsigned char *ue = uc + b->flen; in file_is_csv()
[all …]
/freebsd/contrib/sendmail/libsm/
H A Duxtext_unquote.c120 int uc = 0; local
126 uc = (uc << 4) + (ch - '0');
128 uc = (uc << 4) + (ch - 'a' + 10);
130 uc = (uc << 4) + (ch - 'A' + 10);
133 if (uc > 0x10ffff)
137 if (uc < 0x80)
138 APPCH(uc);
139 else if (uc < 0x800)
144 else if (uc < 0x10000)
150 else if (uc < 0x200000)
[all …]
/freebsd/sys/dev/rtwn/usb/
H A Drtwn_usb_attach.c143 STAILQ_INSERT_HEAD(&uc->uc_rx_inactive, &uc->uc_rx[i], next); in rtwn_usb_alloc_rx_list()
164 STAILQ_INSERT_HEAD(&uc->uc_tx_inactive, &uc->uc_tx[i], next); in rtwn_usb_alloc_tx_list()
199 uc->uc_rx_stat_len = 0; in rtwn_usb_free_rx_list()
200 uc->uc_rx_off = 0; in rtwn_usb_free_rx_list()
225 rtwn_usb_reset_tx_list(uc, &uc->uc_tx_active, vap); in rtwn_usb_reset_lists()
226 rtwn_usb_reset_tx_list(uc, &uc->uc_tx_pending, vap); in rtwn_usb_reset_lists()
276 uc->uc_rx_stat_len = 0; in rtwn_usb_reset_rx_list()
277 uc->uc_rx_off = 0; in rtwn_usb_reset_rx_list()
384 uc->uc_udev = uaa->device; in rtwn_usb_attach()
448 rtwn_suspend(&uc->uc_sc); in rtwn_usb_suspend()
[all …]
H A Drtwn_usb_tx.c75 struct rtwn_softc *sc = &uc->uc_sc; in _rtwn_usb_getbuf()
78 bf = STAILQ_FIRST(&uc->uc_tx_inactive); in _rtwn_usb_getbuf()
91 struct rtwn_softc *sc = &uc->uc_sc; in rtwn_usb_getbuf()
96 bf = _rtwn_usb_getbuf(uc); in rtwn_usb_getbuf()
107 struct rtwn_softc *sc = &uc->uc_sc; in rtwn_usb_txeof()
124 if (STAILQ_EMPTY(&uc->uc_tx_active) && STAILQ_EMPTY(&uc->uc_tx_pending)) in rtwn_usb_txeof()
135 struct rtwn_softc *sc = &uc->uc_sc; in rtwn_bulk_tx_callback()
146 rtwn_usb_txeof(uc, data, 0); in rtwn_bulk_tx_callback()
176 rtwn_usb_txeof(uc, data, 1); in rtwn_bulk_tx_callback()
235 data = rtwn_usb_getbuf(uc); in rtwn_usb_tx_start()
[all …]
H A Drtwn_usb_ep.c131 switch (uc->ntx) { in rtwn_usb_setup_queues()
169 uc->ntx = 0; in rtwn_usb_setup_endpoints()
170 ep = uc->uc_udev->endpoints; in rtwn_usb_setup_endpoints()
171 ep_end = uc->uc_udev->endpoints + uc->uc_udev->endpoints_max; in rtwn_usb_setup_endpoints()
185 if (uc->ntx == RTWN_MAX_EPOUT) in rtwn_usb_setup_endpoints()
191 if (uc->ntx == 0 || uc->ntx > RTWN_MAX_EPOUT) { in rtwn_usb_setup_endpoints()
194 uc->ntx); in rtwn_usb_setup_endpoints()
203 switch (uc->ntx) { in rtwn_usb_setup_endpoints()
228 uc->uc_xfer, rtwn_config, RTWN_N_TRANSFER, uc, &sc->sc_mtx); in rtwn_usb_setup_endpoints()
239 rtwn_usb_setup_queues(uc); in rtwn_usb_setup_endpoints()
[all …]
H A Drtwn_usb_rx.c153 struct rtwn_softc *sc = &uc->uc_sc; in rtwn_rxeof_fragmented()
166 uc->uc_rx_stat_len += min_len; in rtwn_rxeof_fragmented()
206 uc->uc_rx_off = sizeof(*stat); in rtwn_rxeof_fragmented()
214 uc->uc_rx_off += min_len; in rtwn_rxeof_fragmented()
215 if (uc->uc_rx_off == totlen) { in rtwn_rxeof_fragmented()
217 min_len = rtwn_usb_align_rx(uc, in rtwn_rxeof_fragmented()
224 uc->uc_rx_stat_len = 0; in rtwn_rxeof_fragmented()
225 uc->uc_rx_off = 0; in rtwn_rxeof_fragmented()
230 if (uc->uc_rx_stat_len == 0) in rtwn_rxeof_fragmented()
304 uc->uc_rx_stat_len == 0)) { in rtwn_report_intr()
[all …]
/freebsd/bin/sh/tests/expansion/
H A Dset-u1.02 ${SH} -uc 'unset foo; echo $foo' 2>/dev/null && exit 1
3 ${SH} -uc 'foo=; echo $foo' >/dev/null || exit 1
4 ${SH} -uc 'foo=1; echo $foo' >/dev/null || exit 1
6 ${SH} -uc 'unset foo; echo ${foo-}' >/dev/null || exit 1
11 ${SH} -uc 'foo=; echo ${#foo}' >/dev/null || exit 1
21 ${SH} -uc 'echo $!' 2>/dev/null && exit 1
22 ${SH} -uc ':& echo $!' >/dev/null || exit 1
23 ${SH} -uc 'echo $#' >/dev/null || exit 1
24 ${SH} -uc 'echo $1' 2>/dev/null && exit 1
25 ${SH} -uc 'echo $1' ${SH} x >/dev/null || exit 1
[all …]
/freebsd/contrib/bzip2/
H A Ddecompress.c108 UChar uc; in BZ2_decompress() local
197 GET_UCHAR(BZ_X_MAGIC_1, uc); in BZ2_decompress()
203 GET_UCHAR(BZ_X_MAGIC_3, uc) in BZ2_decompress()
242 GET_UCHAR(BZ_X_BCRC_1, uc); in BZ2_decompress()
244 GET_UCHAR(BZ_X_BCRC_2, uc); in BZ2_decompress()
246 GET_UCHAR(BZ_X_BCRC_3, uc); in BZ2_decompress()
248 GET_UCHAR(BZ_X_BCRC_4, uc); in BZ2_decompress()
269 if (uc == 1) in BZ2_decompress()
295 if (uc == 0) break; in BZ2_decompress()
539 s->cftabCopy[uc]++; in BZ2_decompress()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_lwp_create.c81 ucontext_t uc; \
85 getcontext(&uc); \
86 uc.uc_flags = _UC_CPU; \
87 ARCH##_##NAME(&uc); \
89 error = _lwp_create(&uc, 0, &lid); \
92 static void ARCH##_##NAME(ucontext_t *uc) \
105 ucontext_t uc; in ATF_TC_BODY() local
114 error = _lwp_create(&uc, 0, &lid); in ATF_TC_BODY()
123 uc->uc_flags &= ~_UC_CPU;
188 uc->uc_mcontext.__gregs[_REG_PC] = 0;
[all …]
H A Dt_getcontext.c110 ucontext_t uc[DEPTH]; local
115 ATF_REQUIRE_EQ(getcontext(&uc[i]), 0);
117 uc[i].uc_stack.ss_sp = malloc(STACKSZ);
118 uc[i].uc_stack.ss_size = STACKSZ;
119 uc[i].uc_link = (i > 0) ? &uc[i - 1] : &save;
127 makecontext(&uc[i], (void *)run, 6, i,
134 makecontext(&uc[i], (void *)run, 8, i,
137 makecontext(&uc[i], (void *)run, 10, i,
141 makecontext(&uc[i], (void *)run, 10, i,
149 ATF_REQUIRE_EQ(setcontext(&uc[DEPTH-1]), 0);
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64lsn_control.c75 if (uc->jmaxlen == 0) in nat64lsn_default_config()
78 uc->jmaxlen = 65536; in nat64lsn_default_config()
99 uc->states_chunks = 1 << fls(uc->states_chunks); in nat64lsn_default_config()
114 ipfw_nat64lsn_cfg *uc; in nat64lsn_create() local
131 if (uc->plen4 > 32) in nat64lsn_create()
139 if (nat64_check_prefix6(&uc->prefix6, uc->plen6) != 0 && in nat64lsn_create()
154 if (nat64lsn_find(ni, uc->name, uc->set) != NULL) { in nat64lsn_create()
164 cfg->no.set = uc->set; in nat64lsn_create()
188 if (nat64lsn_find(ni, uc->name, uc->set) != NULL) { in nat64lsn_create()
327 strlcpy(uc->name, cfg->no.name, sizeof(uc->name)); in nat64lsn_export_config()
[all …]
H A Dnat64clat_control.c101 uc->set = cfg->no.set; in nat64clat_export_config()
102 strlcpy(uc->name, cfg->no.name, sizeof(uc->name)); in nat64clat_export_config()
115 ipfw_nat64clat_cfg *uc; in export_config_cb() local
117 uc = (ipfw_nat64clat_cfg *)ipfw_get_sopt_space(da->sd, sizeof(*uc)); in export_config_cb()
159 nat64_check_prefix6(&uc->plat_prefix, uc->plat_plen) != 0 || in nat64clat_create()
160 nat64_check_prefix6(&uc->clat_prefix, uc->clat_plen) != 0) in nat64clat_create()
166 if (nat64clat_find(ni, uc->name, uc->set) != NULL) { in nat64clat_create()
172 cfg = nat64clat_alloc_config(uc->name, uc->set); in nat64clat_create()
184 if (nat64clat_find(ni, uc->name, uc->set) != NULL) { in nat64clat_create()
259 if (nat64_check_prefix6(&uc->plat_prefix, uc->plat_plen) != 0) { in nat64clat_config()
[all …]
H A Dnat64stl_control.c96 ipfw_nat64stl_cfg *uc) in nat64stl_export_config() argument
103 uc->set = cfg->no.set; in nat64stl_export_config()
104 strlcpy(uc->name, cfg->no.name, sizeof(uc->name)); in nat64stl_export_config()
122 ipfw_nat64stl_cfg *uc; in export_config_cb() local
124 uc = (ipfw_nat64stl_cfg *)ipfw_get_sopt_space(da->sd, sizeof(*uc)); in export_config_cb()
176 ipfw_nat64stl_cfg *uc; in nat64stl_create() local
190 nat64_check_prefix6(&uc->prefix6, uc->plen6) != 0) in nat64stl_create()
199 if (nat64stl_find(ni, uc->name, uc->set) != NULL) { in nat64stl_create()
205 cfg = nat64stl_alloc_config(uc->name, uc->set); in nat64stl_create()
214 if (nat64stl_find(ni, uc->name, uc->set) != NULL) { in nat64stl_create()
[all …]
/freebsd/lib/libthread_db/arch/i386/
H A Dlibpthread_md.c39 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument
41 memcpy(&uc->uc_mcontext.mc_fs, &r->r_fs, 18*4); in pt_reg_to_ucontext()
42 uc->uc_mcontext.mc_gs = r->r_gs; in pt_reg_to_ucontext()
48 memcpy(&r->r_fs, &uc->uc_mcontext.mc_fs, 18*4); in pt_ucontext_to_reg()
49 r->r_gs = uc->uc_mcontext.mc_gs; in pt_ucontext_to_reg()
56 memcpy(&uc->uc_mcontext.mc_fpstate, r, in pt_fpreg_to_ucontext()
82 pt_fxsave_to_ucontext(const char* r, ucontext_t *uc) in pt_fxsave_to_ucontext() argument
89 pt_ucontext_to_fxsave(const ucontext_t *uc, char *r) in pt_ucontext_to_fxsave() argument
98 ucontext_t uc; in pt_md_init() local
100 getcontext(&uc); in pt_md_init()
[all …]
/freebsd/sys/kern/
H A Dkern_context.c63 ucontext_t uc; in sys_getcontext() local
69 bzero(&uc, sizeof(ucontext_t)); in sys_getcontext()
72 uc.uc_sigmask = td->td_sigmask; in sys_getcontext()
82 ucontext_t uc; in sys_setcontext() local
88 ret = copyin(uap->ucp, &uc, UC_COPY_SIZE); in sys_setcontext()
90 ret = set_mcontext(td, &uc.uc_mcontext); in sys_setcontext()
103 ucontext_t uc; in sys_swapcontext() local
109 bzero(&uc, sizeof(ucontext_t)); in sys_swapcontext()
112 uc.uc_sigmask = td->td_sigmask; in sys_swapcontext()
118 ret = set_mcontext(td, &uc.uc_mcontext); in sys_swapcontext()
[all …]
/freebsd/contrib/libc-vis/
H A Dunvis.c387 *cp = xtod(uc); in unvis()
406 if (uc == '\n' || uc == '\r') { in unvis()
410 if (isxdigit(uc) && (isdigit(uc) || isupper(uc))) { in unvis()
411 *cp = XTOD(uc); in unvis()
418 if (isxdigit(uc) && (isdigit(uc) || isupper(uc))) { in unvis()
426 switch (uc) { in unvis()
434 *cp = uc; in unvis()
453 if (uc == ';') in unvis()
454 uc = '\0'; in unvis()
466 if (uc != 0) { in unvis()
[all …]
/freebsd/tools/test/vm86/
H A Dvm86_test.c55 ucontext_t *uc; in sig_handler() local
58 uc = ucp; in sig_handler()
59 mc = &uc->uc_mcontext; in sig_handler()
77 ucontext_t uc; in main() local
114 memset(&uc, 0, sizeof(uc)); in main()
115 uc.uc_mcontext.mc_ecx = 0x2345; in main()
116 uc.uc_mcontext.mc_eflags = PSL_VM | PSL_USER; in main()
117 uc.uc_mcontext.mc_cs = uc.uc_mcontext.mc_ds = uc.uc_mcontext.mc_es = in main()
118 uc.uc_mcontext.mc_ss = (uintptr_t)vm86_code >> 4; in main()
119 uc.uc_mcontext.mc_esp = 0xfffe; in main()
[all …]
/freebsd/contrib/libpcap/
H A Dfmtutils.c108 uint32_t uc; in utf_16le_to_utf_8_truncated() local
135 uc = REPLACEMENT_CHARACTER; in utf_16le_to_utf_8_truncated()
154 uc = SURROGATE_VALUE(c, c2); in utf_16le_to_utf_8_truncated()
161 uc = REPLACEMENT_CHARACTER; in utf_16le_to_utf_8_truncated()
175 uc = REPLACEMENT_CHARACTER; in utf_16le_to_utf_8_truncated()
181 uc = c; in utf_16le_to_utf_8_truncated()
189 if (uc < 0x0080) { in utf_16le_to_utf_8_truncated()
198 *utf_8++ = (char)uc; in utf_16le_to_utf_8_truncated()
200 } else if (uc < 0x0800) { in utf_16le_to_utf_8_truncated()
209 *utf_8++ = ((uc >> 6) & 0x3F) | 0xC0; in utf_16le_to_utf_8_truncated()
[all …]
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_archive_string_conversion.c86 if (uc > 0xffff) { in unicode_to_utf16be()
89 uc -= 0x10000; in unicode_to_utf16be()
113 if (uc > 0xffff) { in unicode_to_utf16le()
116 uc -= 0x10000; in unicode_to_utf16le()
139 if (uc > 0xffff) { in unicode_to_wc()
142 uc -= 0x10000; in unicode_to_wc()
161 unsigned uc = 0; in scan_unicode_pattern() local
171 uc = (uc << 4) + (*p - '0'); in scan_unicode_pattern()
173 uc = (uc << 4) + (*p - 'A' + 0x0a); in scan_unicode_pattern()
182 switch (uc) { in scan_unicode_pattern()
[all …]
/freebsd/contrib/mandoc/
H A Dterm.c589 uc = *seq; in term_word()
634 uc = 0; in term_word()
664 lsz = uc; in term_word()
666 uc = -1; in term_word()
684 uc = -1; in term_word()
688 uc = *cp; in term_word()
689 if (uc < 0x20 || (uc > 0x7E && uc < 0xA0)) in term_word()
744 if ((uc < 0x20 && uc != 0x09) || in term_word()
745 (uc > 0x7E && uc < 0xA0)) in term_word()
1012 if ((uc < 0x20 && uc != 0x09) || in term_strlen()
[all …]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_string_composition.h985 #define IS_DECOMPOSABLE_BLOCK(uc) \ argument
986 (((uc)>>8) <= 0x1D2 && u_decomposable_blocks[(uc)>>8])
1006 #define CCC(uc) \ argument
1007 (((uc) > 0x1D244)?0:\
1008 ccc_val[ccc_val_index[ccc_index[(uc)>>8]][((uc)>>4)&0x0F]][(uc)&0x0F])
/freebsd/lib/libthread_db/arch/powerpc/
H A Dlibpthread_md.c36 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument
38 mcontext_t *mc = &uc->uc_mcontext; in pt_reg_to_ucontext()
44 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() argument
46 const mcontext_t *mc = &uc->uc_mcontext; in pt_ucontext_to_reg()
52 pt_fpreg_to_ucontext(const struct fpreg *r, ucontext_t *uc) in pt_fpreg_to_ucontext() argument
54 mcontext_t *mc = &uc->uc_mcontext; in pt_fpreg_to_ucontext()
61 pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) in pt_ucontext_to_fpreg() argument
63 const mcontext_t *mc = &uc->uc_mcontext; in pt_ucontext_to_fpreg()
/freebsd/sys/arm64/arm64/
H A Dfreebsd32_machdep.c263 ucontext32_t uc; in freebsd32_getcontext() local
269 memset(&uc, 0, sizeof(uc)); in freebsd32_getcontext()
272 uc.uc_sigmask = td->td_sigmask; in freebsd32_getcontext()
282 ucontext32_t uc; in freebsd32_setcontext() local
288 ret = copyin(uap->ucp, &uc, UC_COPY_SIZE); in freebsd32_setcontext()
302 ucontext32_t uc; in freebsd32_sigreturn() local
307 if (copyin(uap->sigcntxp, &uc, sizeof(uc))) in freebsd32_sigreturn()
323 ucontext32_t uc; in freebsd32_swapcontext() local
329 bzero(&uc, sizeof(uc)); in freebsd32_swapcontext()
332 uc.uc_sigmask = td->td_sigmask; in freebsd32_swapcontext()
[all …]

12345678