| /freebsd-13.1/contrib/file/src/ |
| H A D | is_json.c | 114 while (uc < ue && json_isspace(*uc)) in json_skip_space() 115 uc++; in json_skip_space() 212 uc = json_skip_space(uc, ue); in json_parse_object() 228 uc = json_skip_space(uc, ue); in json_parse_object() 271 uc++; in json_parse_number() 273 for (; uc < ue; uc++) { in json_parse_number() 282 for (; uc < ue; uc++) { in json_parse_number() 289 if (got && (*uc == 'e' || *uc == 'E')) { in json_parse_number() 294 if (*uc == '+' || *uc == '-') in json_parse_number() 296 for (; uc < ue; uc++) { in json_parse_number() [all …]
|
| H A D | is_csv.c | 67 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() 135 const unsigned char *uc = CAST(const unsigned char *, b->fbuf); in file_is_csv() local 136 const unsigned char *ue = uc + b->flen; in file_is_csv() [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_subr/utf8proc/ |
| H A D | utf8proc.c | 122 uc = *str++; in utf8proc_iterate() 124 *dst = uc; in utf8proc_iterate() 144 *dst = uc; in utf8proc_iterate() 227 utf8proc_stage1table[uc >> 8] + (uc & 0xFF) in unsafe_get_property() 233 return uc < 0 || uc >= 0x110000 ? utf8proc_properties : unsafe_get_property(uc); in utf8proc_get_property() 430 if (uc == 0x2018 || uc == 0x2019 || uc == 0x02BC || uc == 0x02C8) in utf8proc_decompose_char() 436 if (uc == 0x2039 || uc == 0x2329 || uc == 0x3008) in utf8proc_decompose_char() 438 if (uc == 0x203A || uc == 0x232A || uc == 0x3009) in utf8proc_decompose_char() 441 if (uc == 0x02C4 || uc == 0x02C6 || uc == 0x2038 || uc == 0x2303) in utf8proc_decompose_char() 567 if (uc == 0x000A || uc == 0x000D || uc == 0x0085 || in utf8proc_normalize_utf32() [all …]
|
| /freebsd-13.1/sys/dev/rtwn/usb/ |
| H A D | rtwn_usb_attach.c | 146 STAILQ_INSERT_HEAD(&uc->uc_rx_inactive, &uc->uc_rx[i], next); in rtwn_usb_alloc_rx_list() 167 STAILQ_INSERT_HEAD(&uc->uc_tx_inactive, &uc->uc_tx[i], next); in rtwn_usb_alloc_tx_list() 202 uc->uc_rx_stat_len = 0; in rtwn_usb_free_rx_list() 203 uc->uc_rx_off = 0; in rtwn_usb_free_rx_list() 228 rtwn_usb_reset_tx_list(uc, &uc->uc_tx_active, vap); in rtwn_usb_reset_lists() 229 rtwn_usb_reset_tx_list(uc, &uc->uc_tx_pending, vap); in rtwn_usb_reset_lists() 279 uc->uc_rx_stat_len = 0; in rtwn_usb_reset_rx_list() 280 uc->uc_rx_off = 0; in rtwn_usb_reset_rx_list() 387 uc->uc_udev = uaa->device; in rtwn_usb_attach() 451 rtwn_suspend(&uc->uc_sc); in rtwn_usb_suspend() [all …]
|
| H A D | rtwn_usb_tx.c | 77 struct rtwn_softc *sc = &uc->uc_sc; in _rtwn_usb_getbuf() 80 bf = STAILQ_FIRST(&uc->uc_tx_inactive); in _rtwn_usb_getbuf() 93 struct rtwn_softc *sc = &uc->uc_sc; in rtwn_usb_getbuf() 98 bf = _rtwn_usb_getbuf(uc); in rtwn_usb_getbuf() 109 struct rtwn_softc *sc = &uc->uc_sc; in rtwn_usb_txeof() 126 if (STAILQ_EMPTY(&uc->uc_tx_active) && STAILQ_EMPTY(&uc->uc_tx_pending)) in rtwn_usb_txeof() 137 struct rtwn_softc *sc = &uc->uc_sc; in rtwn_bulk_tx_callback() 148 rtwn_usb_txeof(uc, data, 0); in rtwn_bulk_tx_callback() 178 rtwn_usb_txeof(uc, data, 1); in rtwn_bulk_tx_callback() 237 data = rtwn_usb_getbuf(uc); in rtwn_usb_tx_start() [all …]
|
| H A D | rtwn_usb_ep.c | 133 switch (uc->ntx) { in rtwn_usb_setup_queues() 171 uc->ntx = 0; in rtwn_usb_setup_endpoints() 172 ep = uc->uc_udev->endpoints; in rtwn_usb_setup_endpoints() 173 ep_end = uc->uc_udev->endpoints + uc->uc_udev->endpoints_max; in rtwn_usb_setup_endpoints() 187 if (uc->ntx == RTWN_MAX_EPOUT) in rtwn_usb_setup_endpoints() 193 if (uc->ntx == 0 || uc->ntx > RTWN_MAX_EPOUT) { in rtwn_usb_setup_endpoints() 196 uc->ntx); in rtwn_usb_setup_endpoints() 205 switch (uc->ntx) { in rtwn_usb_setup_endpoints() 230 uc->uc_xfer, rtwn_config, RTWN_N_TRANSFER, uc, &sc->sc_mtx); in rtwn_usb_setup_endpoints() 241 rtwn_usb_setup_queues(uc); in rtwn_usb_setup_endpoints() [all …]
|
| H A D | rtwn_usb_rx.c | 155 struct rtwn_softc *sc = &uc->uc_sc; in rtwn_rxeof_fragmented() 168 uc->uc_rx_stat_len += min_len; in rtwn_rxeof_fragmented() 208 uc->uc_rx_off = sizeof(*stat); in rtwn_rxeof_fragmented() 216 uc->uc_rx_off += min_len; in rtwn_rxeof_fragmented() 217 if (uc->uc_rx_off == totlen) { in rtwn_rxeof_fragmented() 219 min_len = rtwn_usb_align_rx(uc, in rtwn_rxeof_fragmented() 226 uc->uc_rx_stat_len = 0; in rtwn_rxeof_fragmented() 227 uc->uc_rx_off = 0; in rtwn_rxeof_fragmented() 232 if (uc->uc_rx_stat_len == 0) in rtwn_rxeof_fragmented() 306 uc->uc_rx_stat_len == 0)) { in rtwn_report_intr() [all …]
|
| /freebsd-13.1/bin/sh/tests/expansion/ |
| H A D | set-u1.0 | 3 ${SH} -uc 'unset foo; echo $foo' 2>/dev/null && exit 1 4 ${SH} -uc 'foo=; echo $foo' >/dev/null || exit 1 5 ${SH} -uc 'foo=1; echo $foo' >/dev/null || exit 1 12 ${SH} -uc 'foo=; echo ${#foo}' >/dev/null || exit 1 22 ${SH} -uc 'echo $!' 2>/dev/null && exit 1 23 ${SH} -uc ':& echo $!' >/dev/null || exit 1 24 ${SH} -uc 'echo $#' >/dev/null || exit 1 25 ${SH} -uc 'echo $1' 2>/dev/null && exit 1 26 ${SH} -uc 'echo $1' ${SH} x >/dev/null || exit 1 27 ${SH} -uc 'echo $2' ${SH} x 2>/dev/null && exit 1 [all …]
|
| /freebsd-13.1/lib/libthread_db/arch/mips/ |
| H A D | libpthread_md.c | 48 sizeof(uc->uc_mcontext.mc_regs)); in pt_reg_to_ucontext() 49 uc->uc_mcontext.mc_pc = r->r_regs[PC]; in pt_reg_to_ucontext() 50 uc->uc_mcontext.mullo = r->r_regs[MULLO]; in pt_reg_to_ucontext() 51 uc->uc_mcontext.mulhi = r->r_regs[MULHI]; in pt_reg_to_ucontext() 58 sizeof(uc->uc_mcontext.mc_regs)); in pt_ucontext_to_reg() 59 r->r_regs[PC] = uc->uc_mcontext.mc_pc; in pt_ucontext_to_reg() 60 r->r_regs[MULLO] = uc->uc_mcontext.mullo; in pt_ucontext_to_reg() 61 r->r_regs[MULHI] = uc->uc_mcontext.mulhi; in pt_ucontext_to_reg() 68 memcpy(uc->uc_mcontext.mc_fpregs, r->r_regs, in pt_fpreg_to_ucontext() 69 sizeof(uc->uc_mcontext.mc_fpregs)); in pt_fpreg_to_ucontext() [all …]
|
| /freebsd-13.1/contrib/bzip2/ |
| H A D | decompress.c | 108 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-13.1/sys/netpfil/ipfw/nat64/ |
| H A D | nat64lsn_control.c | 78 if (uc->jmaxlen == 0) in nat64lsn_default_config() 81 uc->jmaxlen = 65536; in nat64lsn_default_config() 102 uc->states_chunks = 1 << fls(uc->states_chunks); in nat64lsn_default_config() 117 ipfw_nat64lsn_cfg *uc; in nat64lsn_create() local 134 if (uc->plen4 > 32) in nat64lsn_create() 142 if (nat64_check_prefix6(&uc->prefix6, uc->plen6) != 0 && in nat64lsn_create() 157 if (nat64lsn_find(ni, uc->name, uc->set) != NULL) { in nat64lsn_create() 167 cfg->no.set = uc->set; in nat64lsn_create() 191 if (nat64lsn_find(ni, uc->name, uc->set) != NULL) { in nat64lsn_create() 330 strlcpy(uc->name, cfg->no.name, sizeof(uc->name)); in nat64lsn_export_config() [all …]
|
| H A D | nat64clat_control.c | 104 uc->set = cfg->no.set; in nat64clat_export_config() 105 strlcpy(uc->name, cfg->no.name, sizeof(uc->name)); in nat64clat_export_config() 118 ipfw_nat64clat_cfg *uc; in export_config_cb() local 120 uc = (ipfw_nat64clat_cfg *)ipfw_get_sopt_space(da->sd, sizeof(*uc)); in export_config_cb() 162 nat64_check_prefix6(&uc->plat_prefix, uc->plat_plen) != 0 || in nat64clat_create() 163 nat64_check_prefix6(&uc->clat_prefix, uc->clat_plen) != 0) in nat64clat_create() 169 if (nat64clat_find(ni, uc->name, uc->set) != NULL) { in nat64clat_create() 175 cfg = nat64clat_alloc_config(uc->name, uc->set); in nat64clat_create() 187 if (nat64clat_find(ni, uc->name, uc->set) != NULL) { in nat64clat_create() 262 if (nat64_check_prefix6(&uc->plat_prefix, uc->plat_plen) != 0) { in nat64clat_config() [all …]
|
| H A D | nat64stl_control.c | 99 ipfw_nat64stl_cfg *uc) in nat64stl_export_config() argument 106 uc->set = cfg->no.set; in nat64stl_export_config() 107 strlcpy(uc->name, cfg->no.name, sizeof(uc->name)); in nat64stl_export_config() 125 ipfw_nat64stl_cfg *uc; in export_config_cb() local 127 uc = (ipfw_nat64stl_cfg *)ipfw_get_sopt_space(da->sd, sizeof(*uc)); in export_config_cb() 179 ipfw_nat64stl_cfg *uc; in nat64stl_create() local 193 nat64_check_prefix6(&uc->prefix6, uc->plen6) != 0) in nat64stl_create() 202 if (nat64stl_find(ni, uc->name, uc->set) != NULL) { in nat64stl_create() 208 cfg = nat64stl_alloc_config(uc->name, uc->set); in nat64stl_create() 217 if (nat64stl_find(ni, uc->name, uc->set) != NULL) { in nat64stl_create() [all …]
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_lwp_create.c | 81 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 D | t_getcontext.c | 110 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-13.1/lib/libthread_db/arch/i386/ |
| H A D | libpthread_md.c | 42 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument 44 memcpy(&uc->uc_mcontext.mc_fs, &r->r_fs, 18*4); in pt_reg_to_ucontext() 45 uc->uc_mcontext.mc_gs = r->r_gs; in pt_reg_to_ucontext() 51 memcpy(&r->r_fs, &uc->uc_mcontext.mc_fs, 18*4); in pt_ucontext_to_reg() 52 r->r_gs = uc->uc_mcontext.mc_gs; in pt_ucontext_to_reg() 59 memcpy(&uc->uc_mcontext.mc_fpstate, r, in pt_fpreg_to_ucontext() 85 pt_fxsave_to_ucontext(const char* r, ucontext_t *uc) in pt_fxsave_to_ucontext() argument 92 pt_ucontext_to_fxsave(const ucontext_t *uc, char *r) in pt_ucontext_to_fxsave() argument 101 ucontext_t uc; in pt_md_init() local 103 getcontext(&uc); in pt_md_init() [all …]
|
| /freebsd-13.1/sys/kern/ |
| H A D | kern_context.c | 67 ucontext_t uc; in sys_getcontext() local 73 bzero(&uc, sizeof(ucontext_t)); in sys_getcontext() 76 uc.uc_sigmask = td->td_sigmask; in sys_getcontext() 86 ucontext_t uc; in sys_setcontext() local 92 ret = copyin(uap->ucp, &uc, UC_COPY_SIZE); in sys_setcontext() 94 ret = set_mcontext(td, &uc.uc_mcontext); in sys_setcontext() 107 ucontext_t uc; in sys_swapcontext() local 113 bzero(&uc, sizeof(ucontext_t)); in sys_swapcontext() 116 uc.uc_sigmask = td->td_sigmask; in sys_swapcontext() 122 ret = set_mcontext(td, &uc.uc_mcontext); in sys_swapcontext() [all …]
|
| /freebsd-13.1/contrib/libc-vis/ |
| H A D | unvis.c | 388 *cp = xtod(uc); in unvis() 407 if (uc == '\n' || uc == '\r') { in unvis() 411 if (isxdigit(uc) && (isdigit(uc) || isupper(uc))) { in unvis() 412 *cp = XTOD(uc); in unvis() 419 if (isxdigit(uc) && (isdigit(uc) || isupper(uc))) { in unvis() 427 switch (uc) { in unvis() 435 *cp = uc; in unvis() 454 if (uc == ';') in unvis() 455 uc = '\0'; in unvis() 467 if (uc != 0) { in unvis() [all …]
|
| /freebsd-13.1/tools/test/vm86/ |
| H A D | vm86_test.c | 56 ucontext_t *uc; in sig_handler() local 59 uc = ucp; in sig_handler() 60 mc = &uc->uc_mcontext; in sig_handler() 78 ucontext_t uc; in main() local 115 memset(&uc, 0, sizeof(uc)); in main() 116 uc.uc_mcontext.mc_ecx = 0x2345; in main() 117 uc.uc_mcontext.mc_eflags = PSL_VM | PSL_USER; in main() 118 uc.uc_mcontext.mc_cs = uc.uc_mcontext.mc_ds = uc.uc_mcontext.mc_es = in main() 119 uc.uc_mcontext.mc_ss = (uintptr_t)vm86_code >> 4; in main() 120 uc.uc_mcontext.mc_esp = 0xfffe; in main() [all …]
|
| /freebsd-13.1/contrib/libarchive/libarchive/test/ |
| H A D | test_archive_string_conversion.c | 88 if (uc > 0xffff) { in unicode_to_utf16be() 91 uc -= 0x10000; in unicode_to_utf16be() 115 if (uc > 0xffff) { in unicode_to_utf16le() 118 uc -= 0x10000; in unicode_to_utf16le() 141 if (uc > 0xffff) { in unicode_to_wc() 144 uc -= 0x10000; in unicode_to_wc() 163 unsigned uc = 0; in scan_unicode_pattern() local 173 uc = (uc << 4) + (*p - '0'); in scan_unicode_pattern() 175 uc = (uc << 4) + (*p - 'A' + 0x0a); in scan_unicode_pattern() 184 switch (uc) { in scan_unicode_pattern() [all …]
|
| /freebsd-13.1/contrib/mandoc/ |
| H A D | term.c | 592 uc = *seq; in term_word() 635 uc = 0; in term_word() 665 lsz = uc; in term_word() 667 uc = -1; in term_word() 685 uc = -1; in term_word() 689 uc = *cp; in term_word() 690 if (uc < 0x20 || (uc > 0x7E && uc < 0xA0)) in term_word() 745 if ((uc < 0x20 && uc != 0x09) || in term_word() 746 (uc > 0x7E && uc < 0xA0)) in term_word() 1013 if ((uc < 0x20 && uc != 0x09) || in term_strlen() [all …]
|
| /freebsd-13.1/contrib/libarchive/libarchive/ |
| H A D | archive_string_composition.h | 987 #define IS_DECOMPOSABLE_BLOCK(uc) \ argument 988 (((uc)>>8) <= 0x1D2 && u_decomposable_blocks[(uc)>>8]) 1008 #define CCC(uc) \ argument 1009 (((uc) > 0x1D244)?0:\ 1010 ccc_val[ccc_val_index[ccc_index[(uc)>>8]][((uc)>>4)&0x0F]][(uc)&0x0F])
|
| /freebsd-13.1/sys/mips/mips/ |
| H A D | freebsd32_machdep.c | 236 ucontext32_t uc; in freebsd32_sigreturn() local 241 if (copyin(uap->sigcntxp, &uc, sizeof(uc)) != 0) { in freebsd32_sigreturn() 254 td, uc.uc_mcontext.mc_srr0, uc.uc_mcontext.mc_gpr[1]); in freebsd32_sigreturn() 270 ucontext32_t uc; in freebsd32_getcontext() local 276 bzero(&uc, sizeof(uc)); in freebsd32_getcontext() 279 uc.uc_sigmask = td->td_sigmask; in freebsd32_getcontext() 289 ucontext32_t uc; in freebsd32_setcontext() local 300 &uc.uc_sigmask, NULL, 0); in freebsd32_setcontext() 310 ucontext32_t uc; in freebsd32_swapcontext() local 316 bzero(&uc, sizeof(uc)); in freebsd32_swapcontext() [all …]
|
| /freebsd-13.1/sys/arm64/arm64/ |
| H A D | freebsd32_machdep.c | 248 ucontext32_t uc; in freebsd32_getcontext() local 254 memset(&uc, 0, sizeof(uc)); in freebsd32_getcontext() 257 uc.uc_sigmask = td->td_sigmask; in freebsd32_getcontext() 267 ucontext32_t uc; in freebsd32_setcontext() local 273 ret = copyin(uap->ucp, &uc, UC_COPY_SIZE); in freebsd32_setcontext() 287 ucontext32_t uc; in freebsd32_sigreturn() local 292 if (copyin(uap->sigcntxp, &uc, sizeof(uc))) in freebsd32_sigreturn() 308 ucontext32_t uc; in freebsd32_swapcontext() local 314 bzero(&uc, sizeof(uc)); in freebsd32_swapcontext() 317 uc.uc_sigmask = td->td_sigmask; in freebsd32_swapcontext() [all …]
|
| /freebsd-13.1/lib/libthread_db/arch/powerpc/ |
| H A D | libpthread_md.c | 39 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument 41 mcontext_t *mc = &uc->uc_mcontext; in pt_reg_to_ucontext() 47 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() argument 49 const mcontext_t *mc = &uc->uc_mcontext; in pt_ucontext_to_reg() 55 pt_fpreg_to_ucontext(const struct fpreg *r, ucontext_t *uc) in pt_fpreg_to_ucontext() argument 57 mcontext_t *mc = &uc->uc_mcontext; in pt_fpreg_to_ucontext() 64 pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) in pt_ucontext_to_fpreg() argument 66 const mcontext_t *mc = &uc->uc_mcontext; in pt_ucontext_to_fpreg()
|