Home
last modified time | relevance | path

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

1234567

/freebsd-11-stable/contrib/binutils/libiberty/
HDstrcasecmp.c35 typedef unsigned char uc; typedef
37 (uc)'\000',(uc)'\001',(uc)'\002',(uc)'\003',(uc)'\004',(uc)'\005',(uc)'\006',(uc)'\007',
38 (uc)'\010',(uc)'\011',(uc)'\012',(uc)'\013',(uc)'\014',(uc)'\015',(uc)'\016',(uc)'\017',
39 (uc)'\020',(uc)'\021',(uc)'\022',(uc)'\023',(uc)'\024',(uc)'\025',(uc)'\026',(uc)'\027',
40 (uc)'\030',(uc)'\031',(uc)'\032',(uc)'\033',(uc)'\034',(uc)'\035',(uc)'\036',(uc)'\037',
41 (uc)'\040',(uc)'\041',(uc)'\042',(uc)'\043',(uc)'\044',(uc)'\045',(uc)'\046',(uc)'\047',
42 (uc)'\050',(uc)'\051',(uc)'\052',(uc)'\053',(uc)'\054',(uc)'\055',(uc)'\056',(uc)'\057',
43 (uc)'\060',(uc)'\061',(uc)'\062',(uc)'\063',(uc)'\064',(uc)'\065',(uc)'\066',(uc)'\067',
44 (uc)'\070',(uc)'\071',(uc)'\072',(uc)'\073',(uc)'\074',(uc)'\075',(uc)'\076',(uc)'\077',
45 (uc)'\100',(uc)'\141',(uc)'\142',(uc)'\143',(uc)'\144',(uc)'\145',(uc)'\146',(uc)'\147',
[all …]
/freebsd-11-stable/contrib/gcclibs/libiberty/
HDstrcasecmp.c35 typedef unsigned char uc; typedef
37 (uc)'\000',(uc)'\001',(uc)'\002',(uc)'\003',(uc)'\004',(uc)'\005',(uc)'\006',(uc)'\007',
38 (uc)'\010',(uc)'\011',(uc)'\012',(uc)'\013',(uc)'\014',(uc)'\015',(uc)'\016',(uc)'\017',
39 (uc)'\020',(uc)'\021',(uc)'\022',(uc)'\023',(uc)'\024',(uc)'\025',(uc)'\026',(uc)'\027',
40 (uc)'\030',(uc)'\031',(uc)'\032',(uc)'\033',(uc)'\034',(uc)'\035',(uc)'\036',(uc)'\037',
41 (uc)'\040',(uc)'\041',(uc)'\042',(uc)'\043',(uc)'\044',(uc)'\045',(uc)'\046',(uc)'\047',
42 (uc)'\050',(uc)'\051',(uc)'\052',(uc)'\053',(uc)'\054',(uc)'\055',(uc)'\056',(uc)'\057',
43 (uc)'\060',(uc)'\061',(uc)'\062',(uc)'\063',(uc)'\064',(uc)'\065',(uc)'\066',(uc)'\067',
44 (uc)'\070',(uc)'\071',(uc)'\072',(uc)'\073',(uc)'\074',(uc)'\075',(uc)'\076',(uc)'\077',
45 (uc)'\100',(uc)'\141',(uc)'\142',(uc)'\143',(uc)'\144',(uc)'\145',(uc)'\146',(uc)'\147',
[all …]
/freebsd-11-stable/contrib/file/src/
HDis_json.c72 json_isspace(const unsigned char uc) in json_isspace() argument
74 switch (uc) { in json_isspace()
86 json_isdigit(unsigned char uc) in json_isdigit() argument
88 switch (uc) { in json_isdigit()
98 json_isxdigit(unsigned char uc) in json_isxdigit() argument
100 if (json_isdigit(uc)) in json_isxdigit()
102 switch (uc) { in json_isxdigit()
112 json_skip_space(const unsigned char *uc, const unsigned char *ue) in json_skip_space() argument
114 while (uc < ue && json_isspace(*uc)) in json_skip_space()
115 uc++; in json_skip_space()
[all …]
HDis_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()
98 switch (c = *uc++) { in csv_parse()
101 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-11-stable/contrib/subversion/subversion/libsvn_subr/utf8proc/
HDutf8proc.c116 utf8proc_uint32_t uc; in utf8proc_iterate() local
122 uc = *str++; in utf8proc_iterate()
123 if (uc < 0x80) { in utf8proc_iterate()
124 *dst = uc; in utf8proc_iterate()
128 if ((uc - 0xc2) > (0xf4-0xc2)) return UTF8PROC_ERROR_INVALIDUTF8; in utf8proc_iterate()
129 if (uc < 0xe0) { /* 2-byte sequence */ in utf8proc_iterate()
132 *dst = ((uc & 0x1f)<<6) | (*str & 0x3f); in utf8proc_iterate()
135 if (uc < 0xf0) { /* 3-byte sequence */ in utf8proc_iterate()
139 if (uc == 0xed && *str > 0x9f) in utf8proc_iterate()
141 uc = ((uc & 0xf)<<12) | ((*str & 0x3f)<<6) | (str[1] & 0x3f); in utf8proc_iterate()
[all …]
/freebsd-11-stable/sys/netpfil/ipfw/nat64/
HDnat64lsn_control.c75 nat64lsn_default_config(ipfw_nat64lsn_cfg *uc) in nat64lsn_default_config() argument
78 if (uc->max_ports == 0) in nat64lsn_default_config()
79 uc->max_ports = NAT64LSN_MAX_PORTS; in nat64lsn_default_config()
81 uc->max_ports = roundup(uc->max_ports, NAT64_CHUNK_SIZE); in nat64lsn_default_config()
82 if (uc->max_ports > NAT64_CHUNK_SIZE * NAT64LSN_MAXPGPTR) in nat64lsn_default_config()
83 uc->max_ports = NAT64_CHUNK_SIZE * NAT64LSN_MAXPGPTR; in nat64lsn_default_config()
84 if (uc->jmaxlen == 0) in nat64lsn_default_config()
85 uc->jmaxlen = NAT64LSN_JMAXLEN; in nat64lsn_default_config()
86 if (uc->jmaxlen > 65536) in nat64lsn_default_config()
87 uc->jmaxlen = 65536; in nat64lsn_default_config()
[all …]
HDnat64clat_control.c98 ipfw_nat64clat_cfg *uc) in nat64clat_export_config() argument
100 uc->plat_prefix = cfg->base.plat_prefix; in nat64clat_export_config()
101 uc->plat_plen = cfg->base.plat_plen; in nat64clat_export_config()
102 uc->clat_prefix = cfg->base.clat_prefix; in nat64clat_export_config()
103 uc->clat_plen = cfg->base.clat_plen; in nat64clat_export_config()
104 uc->flags = cfg->base.flags & NAT64CLAT_FLAGSMASK; in nat64clat_export_config()
105 uc->set = cfg->no.set; in nat64clat_export_config()
106 strlcpy(uc->name, cfg->no.name, sizeof(uc->name)); in nat64clat_export_config()
119 ipfw_nat64clat_cfg *uc; in export_config_cb() local
121 uc = (ipfw_nat64clat_cfg *)ipfw_get_sopt_space(da->sd, sizeof(*uc)); in export_config_cb()
[all …]
HDnat64stl_control.c99 ipfw_nat64stl_cfg *uc) in nat64stl_export_config() argument
103 uc->prefix6 = cfg->base.plat_prefix; in nat64stl_export_config()
104 uc->plen6 = cfg->base.plat_plen; in nat64stl_export_config()
105 uc->flags = cfg->base.flags & NAT64STL_FLAGSMASK; in nat64stl_export_config()
106 uc->set = cfg->no.set; in nat64stl_export_config()
107 strlcpy(uc->name, cfg->no.name, sizeof(uc->name)); in nat64stl_export_config()
110 ipfw_export_obj_ntlv(no, &uc->ntlv6); in nat64stl_export_config()
112 ipfw_export_obj_ntlv(no, &uc->ntlv4); 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()
[all …]
/freebsd-11-stable/contrib/bzip2/
HDdecompress.c108 UChar uc; in BZ2_decompress() local
197 GET_UCHAR(BZ_X_MAGIC_1, uc); in BZ2_decompress()
198 if (uc != BZ_HDR_B) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress()
200 GET_UCHAR(BZ_X_MAGIC_2, uc); in BZ2_decompress()
201 if (uc != BZ_HDR_Z) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress()
203 GET_UCHAR(BZ_X_MAGIC_3, uc) in BZ2_decompress()
204 if (uc != BZ_HDR_h) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress()
222 GET_UCHAR(BZ_X_BLKHDR_1, uc); in BZ2_decompress()
224 if (uc == 0x17) goto endhdr_2; in BZ2_decompress()
225 if (uc != 0x31) RETURN(BZ_DATA_ERROR); in BZ2_decompress()
[all …]
/freebsd-11-stable/bin/sh/tests/expansion/
HDset-u1.03 ${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
7 ${SH} -uc 'unset foo; echo ${foo-}' >/dev/null || exit 1
8 ${SH} -uc 'unset foo; echo ${foo+}' >/dev/null || exit 1
9 ${SH} -uc 'unset foo; echo ${foo=}' >/dev/null || exit 1
11 ${SH} -uc 'unset foo; echo ${#foo}' 2>/dev/null && exit 1
12 ${SH} -uc 'foo=; echo ${#foo}' >/dev/null || exit 1
13 ${SH} -uc 'unset foo; echo ${foo#?}' 2>/dev/null && exit 1
14 ${SH} -uc 'foo=1; echo ${foo#?}' >/dev/null || exit 1
[all …]
/freebsd-11-stable/sys/kern/
HDkern_context.c65 ucontext_t uc; in sys_getcontext() local
71 bzero(&uc, sizeof(ucontext_t)); in sys_getcontext()
72 get_mcontext(td, &uc.uc_mcontext, GET_MC_CLEAR_RET); in sys_getcontext()
74 uc.uc_sigmask = td->td_sigmask; in sys_getcontext()
76 bzero(uc.__spare__, sizeof(uc.__spare__)); in sys_getcontext()
77 ret = copyout(&uc, uap->ucp, UC_COPY_SIZE); in sys_getcontext()
85 ucontext_t uc; in sys_setcontext() local
91 ret = copyin(uap->ucp, &uc, UC_COPY_SIZE); in sys_setcontext()
93 ret = set_mcontext(td, &uc.uc_mcontext); in sys_setcontext()
95 kern_sigprocmask(td, SIG_SETMASK, &uc.uc_sigmask, in sys_setcontext()
[all …]
/freebsd-11-stable/lib/libthread_db/arch/mips/
HDlibpthread_md.c42 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument
45 memcpy(uc->uc_mcontext.mc_regs, &r->r_regs[ZERO], in pt_reg_to_ucontext()
46 sizeof(uc->uc_mcontext.mc_regs)); in pt_reg_to_ucontext()
47 uc->uc_mcontext.mc_pc = r->r_regs[PC]; in pt_reg_to_ucontext()
48 uc->uc_mcontext.mullo = r->r_regs[MULLO]; in pt_reg_to_ucontext()
49 uc->uc_mcontext.mulhi = r->r_regs[MULHI]; in pt_reg_to_ucontext()
53 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() argument
55 memcpy(&r->r_regs[ZERO], uc->uc_mcontext.mc_regs, in pt_ucontext_to_reg()
56 sizeof(uc->uc_mcontext.mc_regs)); in pt_ucontext_to_reg()
57 r->r_regs[PC] = uc->uc_mcontext.mc_pc; in pt_ucontext_to_reg()
[all …]
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
HDt_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
112 _lwp_makecontext(&uc, lwp_main_func, NULL, NULL, stack, ssize); in ATF_TC_BODY()
114 error = _lwp_create(&uc, 0, &lid); in ATF_TC_BODY()
123 uc->uc_flags &= ~_UC_CPU;
[all …]
HDt_getcontext.c112 ucontext_t uc[DEPTH]; local
117 ATF_REQUIRE_EQ(getcontext(&uc[i]), 0);
119 uc[i].uc_stack.ss_sp = malloc(STACKSZ);
120 uc[i].uc_stack.ss_size = STACKSZ;
121 uc[i].uc_link = (i > 0) ? &uc[i - 1] : &save;
126 makecontext(&uc[i], (void *)run, 6, i,
130 makecontext(&uc[i], (void *)run, 8, i,
134 makecontext(&uc[i], (void *)run, 6, i,
137 makecontext(&uc[i], (void *)run, 10, i,
141 makecontext(&uc[i], (void *)run, 10, i,
[all …]
/freebsd-11-stable/lib/libthread_db/arch/i386/
HDlibpthread_md.c40 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument
42 memcpy(&uc->uc_mcontext.mc_fs, &r->r_fs, 18*4); in pt_reg_to_ucontext()
43 uc->uc_mcontext.mc_gs = r->r_gs; in pt_reg_to_ucontext()
47 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() argument
49 memcpy(&r->r_fs, &uc->uc_mcontext.mc_fs, 18*4); in pt_ucontext_to_reg()
50 r->r_gs = uc->uc_mcontext.mc_gs; in pt_ucontext_to_reg()
54 pt_fpreg_to_ucontext(const struct fpreg* r, ucontext_t *uc) in pt_fpreg_to_ucontext() argument
57 memcpy(&uc->uc_mcontext.mc_fpstate, r, in pt_fpreg_to_ucontext()
61 struct savexmm *sx = (struct savexmm *)&uc->uc_mcontext.mc_fpstate; in pt_fpreg_to_ucontext()
69 pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) in pt_ucontext_to_fpreg() argument
[all …]
/freebsd-11-stable/contrib/libc-vis/
HDunvis.c204 unsigned char uc = (unsigned char)c; in unvis() local
357 if (isoctal(uc)) { in unvis()
373 if (isoctal(uc)) { in unvis()
383 if (!isxdigit(uc)) in unvis()
387 if (isxdigit(uc)) { in unvis()
388 *cp = xtod(uc); in unvis()
400 if (isxdigit(uc)) { in unvis()
401 *cp = xtod(uc) | (*cp << 4); in unvis()
407 if (uc == '\n' || uc == '\r') { in unvis()
411 if (isxdigit(uc) && (isdigit(uc) || isupper(uc))) { in unvis()
[all …]
/freebsd-11-stable/contrib/libarchive/libarchive/test/
HDtest_archive_string_conversion.c51 unicode_to_utf8(char *p, uint32_t uc) in unicode_to_utf8() argument
56 if (uc <= 0x7f) { in unicode_to_utf8()
57 *p++ = (char)uc; in unicode_to_utf8()
58 } else if (uc <= 0x7ff) { in unicode_to_utf8()
59 *p++ = 0xc0 | ((uc >> 6) & 0x1f); in unicode_to_utf8()
60 *p++ = 0x80 | (uc & 0x3f); in unicode_to_utf8()
61 } else if (uc <= 0xffff) { in unicode_to_utf8()
62 *p++ = 0xe0 | ((uc >> 12) & 0x0f); in unicode_to_utf8()
63 *p++ = 0x80 | ((uc >> 6) & 0x3f); in unicode_to_utf8()
64 *p++ = 0x80 | (uc & 0x3f); in unicode_to_utf8()
[all …]
/freebsd-11-stable/tools/test/vm86/
HDvm86_test.c56 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-11-stable/contrib/mdocml/
HDterm.c439 int sz, uc; in term_word() local
485 uc = mchars_num2uc(seq + 1, sz - 1); in term_word()
488 uc = mchars_num2char(seq, sz); in term_word()
489 if (uc < 0) in term_word()
498 uc = mchars_spec2cp(seq, sz); in term_word()
499 if (uc > 0) in term_word()
500 encode1(p, uc); in term_word()
531 uc = -p->col; in term_word()
533 uc = 0; in term_word()
536 uc += term_hen(p, &su); in term_word()
[all …]
/freebsd-11-stable/gnu/usr.bin/rcs/lib/
HDrcsfcmp.c159 register int xc, uc; local
183 Igeteof_(ufp, uc, ueof=true;)
186 if (xc != uc)
193 uc = 0; /* Keep lint happy. */
201 Igeteof_(ufp, uc, ueof=true;)
209 Igeteof_(ufp, uc, ueof=true;)
212 if (xc != uc)
226 (xc==KDELIM || xc==VDELIM) && (uc==KDELIM || uc==VDELIM) &&
234 if (xc != uc) {
236 uc = discardkeyval(uc, ufp);
[all …]
/freebsd-11-stable/lib/libthread_db/arch/sparc64/
HDlibpthread_md.c40 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument
43 memcpy(&uc->uc_mcontext, r, MIN(sizeof(uc->uc_mcontext), sizeof(*r))); in pt_reg_to_ucontext()
47 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() argument
50 memcpy(r, &uc->uc_mcontext, MIN(sizeof(uc->uc_mcontext), sizeof(*r))); in pt_ucontext_to_reg()
54 pt_fpreg_to_ucontext(const struct fpreg* r, ucontext_t *uc) in pt_fpreg_to_ucontext() argument
56 mcontext_t *mc = &uc->uc_mcontext; in pt_fpreg_to_ucontext()
66 pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) in pt_ucontext_to_fpreg() argument
68 const mcontext_t *mc = &uc->uc_mcontext; in pt_ucontext_to_fpreg()
/freebsd-11-stable/sys/mips/mips/
HDfreebsd32_machdep.c253 ucontext32_t uc; in freebsd32_sigreturn() local
258 if (copyin(uap->sigcntxp, &uc, sizeof(uc)) != 0) { in freebsd32_sigreturn()
263 error = set_mcontext32(td, &uc.uc_mcontext); in freebsd32_sigreturn()
267 kern_sigprocmask(td, SIG_SETMASK, &uc.uc_sigmask, NULL, 0); in freebsd32_sigreturn()
271 td, uc.uc_mcontext.mc_srr0, uc.uc_mcontext.mc_gpr[1]); in freebsd32_sigreturn()
287 ucontext32_t uc; in freebsd32_getcontext() local
293 bzero(&uc, sizeof(uc)); in freebsd32_getcontext()
294 get_mcontext32(td, &uc.uc_mcontext, GET_MC_CLEAR_RET); in freebsd32_getcontext()
296 uc.uc_sigmask = td->td_sigmask; in freebsd32_getcontext()
298 ret = copyout(&uc, uap->ucp, UC32_COPY_SIZE); in freebsd32_getcontext()
[all …]
/freebsd-11-stable/contrib/libarchive/libarchive/
HDarchive_string_composition.h987 #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-11-stable/lib/libc/rpc/
HDsvc_dg.c522 struct cl_cache *uc; in svc_dg_enablecache() local
530 uc = ALLOC(struct cl_cache, 1); in svc_dg_enablecache()
531 if (uc == NULL) { in svc_dg_enablecache()
536 uc->uc_size = size; in svc_dg_enablecache()
537 uc->uc_nextvictim = 0; in svc_dg_enablecache()
538 uc->uc_entries = ALLOC(cache_ptr, size * SPARSENESS); in svc_dg_enablecache()
539 if (uc->uc_entries == NULL) { in svc_dg_enablecache()
541 FREE(uc, struct cl_cache, 1); in svc_dg_enablecache()
545 MEMZERO(uc->uc_entries, cache_ptr, size * SPARSENESS); in svc_dg_enablecache()
546 uc->uc_fifo = ALLOC(cache_ptr, size); in svc_dg_enablecache()
[all …]
/freebsd-11-stable/lib/libthread_db/arch/powerpc/
HDlibpthread_md.c37 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument
39 mcontext_t *mc = &uc->uc_mcontext; in pt_reg_to_ucontext()
45 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() argument
47 const mcontext_t *mc = &uc->uc_mcontext; in pt_ucontext_to_reg()
53 pt_fpreg_to_ucontext(const struct fpreg *r, ucontext_t *uc) in pt_fpreg_to_ucontext() argument
55 mcontext_t *mc = &uc->uc_mcontext; in pt_fpreg_to_ucontext()
62 pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) in pt_ucontext_to_fpreg() argument
64 const mcontext_t *mc = &uc->uc_mcontext; in pt_ucontext_to_fpreg()

1234567