/freebsd/lib/libc/locale/ |
H A D | iswctype.c | 44 iswalnum(wint_t wc) in iswalnum() argument 46 return (__istype(wc, _CTYPE_A|_CTYPE_N)); in iswalnum() 51 iswalpha(wint_t wc) in iswalpha() argument 53 return (__istype(wc, _CTYPE_A)); in iswalpha() 58 iswascii(wint_t wc) in iswascii() argument 60 return ((wc & ~0x7F) == 0); in iswascii() 65 iswblank(wint_t wc) in iswblank() argument 67 return (__istype(wc, _CTYPE_B)); in iswblank() 72 iswcntrl(wint_t wc) in iswcntrl() argument 74 return (__istype(wc, _CTYPE_C)); in iswcntrl() [all …]
|
H A D | nextwctype.c | 40 nextwctype_l(wint_t wc, wctype_t wct, locale_t locale) in nextwctype_l() argument 50 if (wc < _CACHED_RUNES) { in nextwctype_l() 51 wc++; in nextwctype_l() 52 while (wc < _CACHED_RUNES) { in nextwctype_l() 53 if (runes->__runetype[wc] & wct) in nextwctype_l() 54 return (wc); in nextwctype_l() 55 wc++; in nextwctype_l() 57 wc--; in nextwctype_l() 59 if (rr->__ranges != NULL && wc < rr->__ranges[0].__min) { in nextwctype_l() 60 wc = rr->__ranges[0].__min; in nextwctype_l() [all …]
|
H A D | iswalnum_l.3 | 60 .Fn iswalnum_l "wint_t wc" "locale_t loc" 62 .Fn iswalpha_l "wint_t wc" "locale_t loc" 64 .Fn iswcntrl_l "wint_t wc" "locale_t loc" 66 .Fn iswctype_l "wint_t wc" "locale_t loc" 68 .Fn iswdigit_l "wint_t wc" "locale_t loc" 70 .Fn iswgraph_l "wint_t wc" "locale_t loc" 72 .Fn iswlower_l "wint_t wc" "locale_t loc" 74 .Fn iswprint_l "wint_t wc" "locale_t loc" 76 .Fn iswpunct_l "wint_t wc" "locale_t loc" 78 .Fn iswspace_l "wint_t wc" "locale_t loc" [all …]
|
H A D | iswalnum.3 | 63 .Fn iswalnum "wint_t wc" 65 .Fn iswalpha "wint_t wc" 67 .Fn iswascii "wint_t wc" 69 .Fn iswblank "wint_t wc" 71 .Fn iswcntrl "wint_t wc" 73 .Fn iswdigit "wint_t wc" 75 .Fn iswgraph "wint_t wc" 77 .Fn iswhexnumber "wint_t wc" 79 .Fn iswideogram "wint_t wc" 81 .Fn iswlower "wint_t wc" [all …]
|
H A D | mskanji.c | 98 wchar_t wc; in _MSKanji_mbrtowc() local 123 wc = (ms->ch << 8) | (*s & 0xFF); in _MSKanji_mbrtowc() 125 *pwc = wc; in _MSKanji_mbrtowc() 129 wc = *s++ & 0xff; in _MSKanji_mbrtowc() 130 if ((wc > 0x80 && wc < 0xa0) || (wc >= 0xe0 && wc < 0xfd)) { in _MSKanji_mbrtowc() 133 ms->ch = wc; in _MSKanji_mbrtowc() 140 wc = (wc << 8) | (*s++ & 0xff); in _MSKanji_mbrtowc() 142 *pwc = wc; in _MSKanji_mbrtowc() 146 *pwc = wc; in _MSKanji_mbrtowc() 147 return (wc == L'\0' ? 0 : 1); in _MSKanji_mbrtowc() [all …]
|
/freebsd/include/ |
H A D | wctype.h | 99 #define iswalnum(wc) __istype((wc), _CTYPE_A|_CTYPE_D|_CTYPE_N) argument 100 #define iswalpha(wc) __istype((wc), _CTYPE_A) argument 101 #define iswblank(wc) __istype((wc), _CTYPE_B) argument 102 #define iswcntrl(wc) __istype((wc), _CTYPE_C) argument 103 #define iswctype(wc, charclass) __istype((wc), (charclass)) argument 104 #define iswdigit(wc) __istype((wc), _CTYPE_D) argument 105 #define iswgraph(wc) __istype((wc), _CTYPE_G) argument 106 #define iswlower(wc) __istype((wc), _CTYPE_L) argument 107 #define iswprint(wc) __istype((wc), _CTYPE_R) argument 108 #define iswpunct(wc) __istype((wc), _CTYPE_P) argument [all …]
|
/freebsd/lib/libc/tests/locale/ |
H A D | mbrtowc_test.c | 49 wchar_t wc; in ATF_TC_BODY() local 61 ATF_REQUIRE(mbrtowc(&wc, buf, 1, NULL) == 0); in ATF_TC_BODY() 62 ATF_REQUIRE(wc == 0); in ATF_TC_BODY() 66 ATF_REQUIRE(mbrtowc(&wc, buf, 1, &s) == 0); in ATF_TC_BODY() 67 ATF_REQUIRE(wc == 0); in ATF_TC_BODY() 72 ATF_REQUIRE(mbrtowc(&wc, buf, 1, NULL) == 1); in ATF_TC_BODY() 73 ATF_REQUIRE(wc == L'A'); in ATF_TC_BODY() 77 ATF_REQUIRE(mbrtowc(&wc, buf, 1, &s) == 1); in ATF_TC_BODY() 78 ATF_REQUIRE(wc == L'A'); in ATF_TC_BODY() 81 wc = L'z'; in ATF_TC_BODY() [all …]
|
H A D | mbtowc_test.c | 47 wchar_t wc; in ATF_TC_BODY() local 57 wc = 0xcccc; in ATF_TC_BODY() 59 ATF_REQUIRE(mbtowc(&wc, buf, 1) == 0); in ATF_TC_BODY() 60 ATF_REQUIRE(wc == 0); in ATF_TC_BODY() 64 ATF_REQUIRE(mbtowc(&wc, buf, 1) == 1); in ATF_TC_BODY() 65 ATF_REQUIRE(wc == L'A'); in ATF_TC_BODY() 68 wc = L'z'; in ATF_TC_BODY() 70 ATF_REQUIRE(mbtowc(&wc, buf, 0) == -1); in ATF_TC_BODY() 71 ATF_REQUIRE(wc == L'z'); in ATF_TC_BODY() 82 wc = 0xcccc; in ATF_TC_BODY() [all …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | pcics_reg_driver.h | 176 * again.WC 185 * VF register space WC 258 #define PXPCS_TL_CONTROL_5_UNKNOWNTYPE_ERR_ATTN (1 << 29) /*WC*/ 259 #define PXPCS_TL_CONTROL_5_BOUNDARY4K_ERR_ATTN (1 << 28) /*WC*/ 260 #define PXPCS_TL_CONTROL_5_MRRS_ERR_ATTN (1 << 27) /*WC*/ 261 #define PXPCS_TL_CONTROL_5_MPS_ERR_ATTN (1 << 26) /*WC*/ 262 #define PXPCS_TL_CONTROL_5_TTX_BRIDGE_FORWARD_ERR (1 << 25) /*WC*/ 263 #define PXPCS_TL_CONTROL_5_TTX_TXINTF_OVERFLOW (1 << 24) /*WC*/ 266 #define PXPCS_TL_CONTROL_5_TTX_ERR_NP_TAG_IN_USE (1 << 21) /*WC*/ 267 #define PXPCS_TL_CONTROL_5_TRX_ERR_UNEXP_RTAG (1 << 20) /*WC*/ [all …]
|
/freebsd/lib/libiconv_modules/UES/ |
H A D | citrus_ues.c | 125 to_str(char *s, wchar_t wc, int bit) in to_str() argument 142 *p++ = xdig[(wc >> (bit -= 4)) & 0xF]; in to_str() 148 is_hi_surrogate(wchar_t wc) in is_hi_surrogate() argument 151 return (wc >= 0xD800 && wc <= 0xDBFF); in is_hi_surrogate() 155 is_lo_surrogate(wchar_t wc) in is_lo_surrogate() argument 158 return (wc >= 0xDC00 && wc <= 0xDFFF); in is_lo_surrogate() 171 ucs_to_surrogate(wchar_t wc, wchar_t * __restrict hi, wchar_t * __restrict lo) in ucs_to_surrogate() argument 174 wc -= 0x10000; in ucs_to_surrogate() 175 *hi = (wc >> 10) + 0xD800; in ucs_to_surrogate() 176 *lo = (wc & 0x3FF) + 0xDC00; in ucs_to_surrogate() [all …]
|
/freebsd/usr.bin/localedef/ |
H A D | ctype.c | 80 wchar_t wc; member 96 return (c1->wc < c2->wc ? -1 : c1->wc > c2->wc ? 1 : 0); in ctype_compare() 176 get_ctype(wchar_t wc) in get_ctype() argument 181 srch.wc = wc; in get_ctype() 187 ctn->wc = wc; in get_ctype() 204 last_ctype = ctn->wc; in add_ctype() 238 add_width(int wc, int width) in add_width() argument 242 if ((ctn = get_ctype(wc)) == NULL) { in add_width() 272 add_caseconv(int val, int wc) in add_caseconv() argument 284 ctn->toupper = wc; in add_caseconv() [all …]
|
H A D | wide.c | 192 tomb_none(char *mb, wchar_t wc) in tomb_none() argument 198 *(uint8_t *)mb = (wc & 0xff); in tomb_none() 207 towide_utf8(wchar_t *wc, const char *mb, unsigned n) in towide_utf8() argument 219 *wc = c; in towide_utf8() 259 *wc = c; in towide_utf8() 264 tomb_utf8(char *mb, wchar_t wc) in tomb_utf8() argument 271 if (wc <= 0x7f) { in tomb_utf8() 272 s[0] = wc & 0x7f; in tomb_utf8() 276 if (wc <= 0x7ff) { in tomb_utf8() 279 } else if (wc <= 0xffff) { in tomb_utf8() [all …]
|
H A D | charmap.c | 50 wchar_t wc; member 239 return ((c1->wc < c2->wc) ? -1 : (c1->wc > c2->wc) ? 1 : 0); in cmap_compare_wc() 251 add_charmap_impl(const char *sym, wchar_t wc, int nodups) in add_charmap_impl() argument 256 srch.wc = wc; in add_charmap_impl() 263 if ((wc != (wchar_t)-1) && ((RB_FIND(cmap_wc, &cmap_wc, &srch)) == NULL)) { in add_charmap_impl() 268 n->wc = wc; in add_charmap_impl() 283 n->wc = wc; in add_charmap_impl() 305 if ((undefok == 0) && ((cm == NULL) || (cm->wc == (wchar_t)-1))) { in add_charmap_undefined() 314 add_charmap_range(char *s, char *e, int wc) in add_charmap_range() argument 345 add_charmap_impl(nn, wc, 1); in add_charmap_range() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_cq.c | 499 struct ib_wc *wc) in mlx4_ib_handle_error_cqe() argument 513 wc->status = IB_WC_LOC_LEN_ERR; in mlx4_ib_handle_error_cqe() 516 wc->status = IB_WC_LOC_QP_OP_ERR; in mlx4_ib_handle_error_cqe() 519 wc->status = IB_WC_LOC_PROT_ERR; in mlx4_ib_handle_error_cqe() 522 wc->status = IB_WC_WR_FLUSH_ERR; in mlx4_ib_handle_error_cqe() 525 wc->status = IB_WC_MW_BIND_ERR; in mlx4_ib_handle_error_cqe() 528 wc->status = IB_WC_BAD_RESP_ERR; in mlx4_ib_handle_error_cqe() 531 wc->status = IB_WC_LOC_ACCESS_ERR; in mlx4_ib_handle_error_cqe() 534 wc->status = IB_WC_REM_INV_REQ_ERR; in mlx4_ib_handle_error_cqe() 537 wc->status = IB_WC_REM_ACCESS_ERR; in mlx4_ib_handle_error_cqe() [all …]
|
/freebsd/lib/libiconv_modules/UTF1632/ |
H A D | citrus_utf1632.c | 107 wchar_t wc = L'\0'; in _citrus_UTF1632_mbrtowc_priv() local 162 /* get wc */ in _citrus_UTF1632_mbrtowc_priv() 168 wc = (psenc->ch[0] | in _citrus_UTF1632_mbrtowc_priv() 172 wc = (psenc->ch[1] | in _citrus_UTF1632_mbrtowc_priv() 178 if (wc >= 0xD800 && wc <= 0xDBFF) { in _citrus_UTF1632_mbrtowc_priv() 185 wc -= 0xD800; /* wc : surrogate high (see above) */ in _citrus_UTF1632_mbrtowc_priv() 186 wc <<= 10; in _citrus_UTF1632_mbrtowc_priv() 191 wc |= psenc->ch[2]; in _citrus_UTF1632_mbrtowc_priv() 192 wc |= (wchar_t)(psenc->ch[3] & 3) << 8; in _citrus_UTF1632_mbrtowc_priv() 197 wc |= psenc->ch[3]; in _citrus_UTF1632_mbrtowc_priv() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_cq.c | 117 static void handle_good_req(struct ib_wc *wc, struct mlx5_cqe64 *cqe, in handle_good_req() argument 120 wc->wc_flags = 0; in handle_good_req() 123 wc->wc_flags |= IB_WC_WITH_IMM; in handle_good_req() 125 wc->opcode = IB_WC_RDMA_WRITE; in handle_good_req() 128 wc->wc_flags |= IB_WC_WITH_IMM; in handle_good_req() 131 wc->opcode = IB_WC_SEND; in handle_good_req() 134 wc->opcode = IB_WC_RDMA_READ; in handle_good_req() 135 wc->byte_len = be32_to_cpu(cqe->byte_cnt); in handle_good_req() 138 wc->opcode = IB_WC_COMP_SWAP; in handle_good_req() 139 wc in handle_good_req() 164 handle_responder(struct ib_wc * wc,struct mlx5_cqe64 * cqe,struct mlx5_ib_qp * qp) handle_responder() argument 282 mlx5_handle_error_cqe(struct mlx5_ib_dev * dev,struct mlx5_err_cqe * cqe,struct ib_wc * wc) mlx5_handle_error_cqe() argument 438 sw_send_comp(struct mlx5_ib_qp * qp,int num_entries,struct ib_wc * wc,int * npolled) sw_send_comp() argument 468 sw_recv_comp(struct mlx5_ib_qp * qp,int num_entries,struct ib_wc * wc,int * npolled) sw_recv_comp() argument 495 mlx5_ib_poll_sw_comp(struct mlx5_ib_cq * cq,int num_entries,struct ib_wc * wc,int * npolled) mlx5_ib_poll_sw_comp() argument 516 mlx5_poll_one(struct mlx5_ib_cq * cq,struct mlx5_ib_qp ** cur_qp,struct ib_wc * wc) mlx5_poll_one() argument 647 poll_soft_wc(struct mlx5_ib_cq * cq,int num_entries,struct ib_wc * wc) poll_soft_wc() argument 668 mlx5_ib_poll_cq(struct ib_cq * ibcq,int num_entries,struct ib_wc * wc) mlx5_ib_poll_cq() argument 1380 mlx5_ib_generate_wc(struct ib_cq * ibcq,struct ib_wc * wc) mlx5_ib_generate_wc() argument [all...] |
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | cwctype | 29 int iswalnum(wint_t wc); 30 int iswalpha(wint_t wc); 31 int iswblank(wint_t wc); // C99 32 int iswcntrl(wint_t wc); 33 int iswdigit(wint_t wc); 34 int iswgraph(wint_t wc); 35 int iswlower(wint_t wc); 36 int iswprint(wint_t wc); 37 int iswpunct(wint_t wc); 38 int iswspace(wint_t wc); [all …]
|
H A D | wctype.h | 26 int iswalnum(wint_t wc); 27 int iswalpha(wint_t wc); 28 int iswblank(wint_t wc); // C99 29 int iswcntrl(wint_t wc); 30 int iswdigit(wint_t wc); 31 int iswgraph(wint_t wc); 32 int iswlower(wint_t wc); 33 int iswprint(wint_t wc); 34 int iswpunct(wint_t wc); 35 int iswspace(wint_t wc); [all...] |
/freebsd/contrib/libxo/tests/core/saved/ |
H A D | test_05.XP.out | 7 <wc>෴ - 0xdf4 - 1</wc> 8 <wc>ණ - 0xdab - 1</wc> 9 <wc>් - 0xdca - 0</wc> 10 <wc>ණ - 0xdab - 1</wc> 11 <wc>្ - 0x17d2 - 0</wc> 12 <wc>෴ - 0xdf4 - 1</wc> 13 <wc>1 - 0x31 - 1</wc> 14 <wc>͏ - 0x34f - 0</wc> 15 <wc>2 - 0x32 - 1</wc> 16 <wc>⃝ - 0x20dd - 0</wc>
|
H A D | test_05.X.out | 1 …wc>෴ - 0xdf4 - 1</wc><wc>ණ - 0xdab - 1</wc><wc>් - 0xdca - 0</wc><wc>ණ - 0xdab - 1</wc><wc>្ - 0x1…
|
/freebsd/lib/libiconv_modules/GBK2K/ |
H A D | citrus_gbk2k.c | 156 wchar_t wc; in _citrus_GBK2K_mbrtowc_priv() local 223 wc = 0; in _citrus_GBK2K_mbrtowc_priv() 225 wc = (wc << 8) | (*s1++ & 0xff); in _citrus_GBK2K_mbrtowc_priv() 228 *pwc = wc; in _citrus_GBK2K_mbrtowc_priv() 230 *nresult = (wc == 0) ? 0 : psenc->chlen - chlenbak; in _citrus_GBK2K_mbrtowc_priv() 252 char * __restrict s, size_t n, wchar_t wc, _GBK2KState * __restrict psenc, in _citrus_GBK2K_wcrtomb_priv() argument 263 len = _mb_count(wc); in _citrus_GBK2K_wcrtomb_priv() 271 if (!_mb_singlebyte(_PUSH_PSENC(wc ))) { in _citrus_GBK2K_wcrtomb_priv() 277 if (!_mb_leadbyte (_PUSH_PSENC(wc >> 8)) || in _citrus_GBK2K_wcrtomb_priv() 278 !_mb_trailbyte (_PUSH_PSENC(wc))) { in _citrus_GBK2K_wcrtomb_priv() [all …]
|
/freebsd/contrib/ofed/libmlx4/ |
H A D | cq.c | 158 static inline void handle_good_req(struct ibv_wc *wc, struct mlx4_cqe *cqe) in handle_good_req() argument 160 wc->wc_flags = 0; in handle_good_req() 163 wc->wc_flags |= IBV_WC_WITH_IMM; in handle_good_req() 166 wc->opcode = IBV_WC_RDMA_WRITE; in handle_good_req() 169 wc->wc_flags |= IBV_WC_WITH_IMM; in handle_good_req() 173 wc->opcode = IBV_WC_SEND; in handle_good_req() 176 wc->opcode = IBV_WC_RDMA_READ; in handle_good_req() 177 wc->byte_len = be32toh(cqe->byte_cnt); in handle_good_req() 180 wc->opcode = IBV_WC_COMP_SWAP; in handle_good_req() 181 wc->byte_len = 8; in handle_good_req() [all …]
|
/freebsd/usr.bin/wc/tests/ |
H A D | wc_test.sh | 15 # Size of wc's read buffer. 53 atf_check -o match:"^ +${l} +${w} +${c}\$" wc <"${file}" 54 atf_check -o match:"^ +${l}\$" wc -l <"${file}" 55 atf_check -o match:"^ +${w}\$" wc -w <"${file}" 56 atf_check -o match:"^ +${c}\$" wc -c <"${file}" 57 atf_check -o match:"^ +${m}\$" wc -m <"${file}" 58 atf_check -o match:"^ +${l} +${w} +${c} ${file}\$" wc "$file" 59 atf_check -o match:"^ +${l} ${file}\$" wc -l "$file" 60 atf_check -o match:"^ +${w} ${file}\$" wc -w "$file" 61 atf_check -o match:"^ +${c} ${file}\$" wc -c "$file" [all …]
|
/freebsd/lib/libiconv_modules/DECHanyu/ |
H A D | citrus_dechanyu.c | 173 wchar_t wc; in _citrus_DECHanyu_mbrtowc_priv() local 183 wc = (wchar_t)0; in _citrus_DECHanyu_mbrtowc_priv() 210 wc |= (wchar_t)HANYUBIT; in _citrus_DECHanyu_mbrtowc_priv() 228 wc |= (wchar_t)HANYUBIT; in _citrus_DECHanyu_mbrtowc_priv() 252 wc |= (wchar_t)(ch << 8); in _citrus_DECHanyu_mbrtowc_priv() 256 wc |= (wchar_t)ch; in _citrus_DECHanyu_mbrtowc_priv() 258 *pwc = wc; in _citrus_DECHanyu_mbrtowc_priv() 278 char * __restrict s, size_t n, wchar_t wc, in _citrus_DECHanyu_wcrtomb_priv() argument 287 if ((uint32_t)wc <= 0x7F) { in _citrus_DECHanyu_wcrtomb_priv() 288 ch = wc & 0xFF; in _citrus_DECHanyu_wcrtomb_priv() [all …]
|
/freebsd/bin/ls/ |
H A D | util.c | 55 wchar_t wc; in prn_normal() local 61 while ((clen = mbrtowc(&wc, s, MB_LEN_MAX, &mbs)) != 0) { in prn_normal() 76 if (iswprint(wc)) in prn_normal() 77 n += wcwidth(wc); in prn_normal() 86 wchar_t wc; in prn_printable() local 92 while ((clen = mbrtowc(&wc, s, MB_LEN_MAX, &mbs)) != 0) { in prn_printable() 105 if (!iswprint(wc)) { in prn_printable() 114 n += wcwidth(wc); in prn_printable() 136 wchar_t wc; in len_octal() local 141 while (len != 0 && (clen = mbrtowc(&wc, in len_octal() 168 wchar_t wc; prn_octal() local [all...] |