Searched refs:ucp (Results 1 - 25 of 64) sorted by relevance

123

/freebsd-11-stable/sys/libkern/
H A Dinet_ntoa.c42 unsigned char *ucp = (unsigned char *)&ina; local
45 ucp[0] & 0xff,
46 ucp[1] & 0xff,
47 ucp[2] & 0xff,
48 ucp[3] & 0xff);
55 unsigned char *ucp = (unsigned char *)&ina; local
58 ucp[0] & 0xff,
59 ucp[1] & 0xff,
60 ucp[2] & 0xff,
61 ucp[
[all...]
/freebsd-11-stable/lib/libc/amd64/gen/
H A Dsignalcontext.c39 static void sigctx_wrapper(ucontext_t *ucp, handler_t func, uint64_t *args);
44 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) argument
52 if (ucp == NULL)
61 sp = (ucp->uc_mcontext.mc_rsp - 128 - sizeof(ucontext_t)) & ~15UL;
63 bcopy(ucp, sig_uc, sizeof(*sig_uc));
78 bzero(&ucp->uc_mcontext, sizeof(ucp->uc_mcontext));
79 ucp->uc_mcontext.mc_fpformat = _MC_FPFMT_NODEV;
80 ucp->uc_mcontext.mc_ownedfp = _MC_FPOWNED_NONE;
81 ucp
96 sigctx_wrapper(ucontext_t *ucp, handler_t func, uint64_t *args) argument
[all...]
H A Dmakecontext.c39 static void makectx_wrapper(ucontext_t *ucp, func_t func, uint64_t *args);
44 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) argument
52 if ((ucp == NULL) || (ucp->uc_mcontext.mc_len != sizeof(mcontext_t)))
54 else if ((argc < 0) || (argc > 6) || (ucp->uc_stack.ss_sp == NULL) ||
55 (ucp->uc_stack.ss_size < MINSIGSTKSZ)) {
62 ucp->uc_mcontext.mc_len = 0;
67 sp = (uint64_t *)(ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size);
88 ucp
98 makectx_wrapper(ucontext_t *ucp, func_t func, uint64_t *args) argument
[all...]
H A Dgetcontextx.c63 ucontext_t *ucp; local
65 ucp = (ucontext_t *)ctx;
67 xfpu.addr = (char *)(ucp + 1);
71 ucp->uc_mcontext.mc_xfpustate = (__register_t)xfpu.addr;
72 ucp->uc_mcontext.mc_xfpustate_len = xstate_sz;
73 ucp->uc_mcontext.mc_flags |= _MC_HASFPXSTATE;
75 ucp->uc_mcontext.mc_xfpustate = 0;
76 ucp->uc_mcontext.mc_xfpustate_len = 0;
84 ucontext_t *ucp; local
86 ucp
[all...]
/freebsd-11-stable/lib/libc/powerpc/gen/
H A Dsignalcontext.c39 static void ctx_wrapper(ucontext_t *ucp, handler_t func, uint32_t sig,
45 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) argument
52 if (ucp == NULL)
58 sp = (ucp->uc_mcontext.mc_gpr[1] - sizeof(ucontext_t)) & ~15UL;
60 bcopy(ucp, sig_uc, sizeof(*sig_uc));
75 bzero(&ucp->uc_mcontext, sizeof(ucp->uc_mcontext));
76 ucp->uc_link = sig_uc;
77 sigdelset(&ucp->uc_sigmask, sig);
79 ucp
92 ctx_wrapper(ucontext_t *ucp, handler_t func, uint32_t sig, uint32_t sig_si, uint32_t sig_uc) argument
[all...]
H A Dmakecontext.c40 void _ctx_done(ucontext_t *ucp);
44 _ctx_done(ucontext_t *ucp) argument
46 if (ucp->uc_link == NULL)
50 ucp->uc_mcontext.mc_len = 0;
52 setcontext((const ucontext_t *)ucp->uc_link);
59 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) argument
67 if ((ucp == NULL) || (argc < 0) || (argc > NCARGS)
68 || (ucp->uc_stack.ss_sp == NULL)
69 || (ucp->uc_stack.ss_size < MINSIGSTKSZ)) {
71 ucp
[all...]
/freebsd-11-stable/lib/libc/powerpc64/gen/
H A Dsignalcontext.c39 static void ctx_wrapper(ucontext_t *ucp, handler_t func, uint32_t sig,
45 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) argument
52 if (ucp == NULL)
58 sp = (ucp->uc_mcontext.mc_gpr[1] - sizeof(ucontext_t)) & ~15UL;
60 bcopy(ucp, sig_uc, sizeof(*sig_uc));
75 bzero(&ucp->uc_mcontext, sizeof(ucp->uc_mcontext));
76 ucp->uc_link = sig_uc;
77 sigdelset(&ucp->uc_sigmask, sig);
79 ucp
92 ctx_wrapper(ucontext_t *ucp, handler_t func, uint32_t sig, uint32_t sig_si, uint32_t sig_uc) argument
[all...]
H A Dmakecontext.c40 void _ctx_done(ucontext_t *ucp);
44 _ctx_done(ucontext_t *ucp) argument
46 if (ucp->uc_link == NULL)
50 ucp->uc_mcontext.mc_len = 0;
52 setcontext((const ucontext_t *)ucp->uc_link);
59 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) argument
67 if ((ucp == NULL) || (argc < 0) || (argc > NCARGS)
68 || (ucp->uc_stack.ss_sp == NULL)
69 || (ucp->uc_stack.ss_size < MINSIGSTKSZ)) {
71 ucp
[all...]
/freebsd-11-stable/lib/libc/i386/gen/
H A Dmakecontext.c46 _ctx_done (ucontext_t *ucp) argument
48 if (ucp->uc_link == NULL)
56 ucp->uc_mcontext.mc_len = 0;
60 setcontext((const ucontext_t *)ucp->uc_link);
66 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) argument
73 if (ucp == NULL)
75 else if ((ucp->uc_stack.ss_sp == NULL) ||
76 (ucp->uc_stack.ss_size < MINSIGSTKSZ)) {
83 ucp->uc_mcontext.mc_len = 0;
87 ucp
[all...]
H A Dsignalcontext.c42 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) argument
50 * 2n+sizeof(struct sigframe) ucp
55 p = (register_t *)(void *)(intptr_t)ucp->uc_mcontext.mc_esp;
56 *--p = (register_t)(intptr_t)ucp;
65 bcopy(ucp, &sfp->sf_uc, sizeof(ucontext_t));
72 ucp->uc_mcontext.mc_esi = ucp->uc_mcontext.mc_esp - sizeof(int);
73 ucp->uc_mcontext.mc_esp = (register_t)(intptr_t)p;
74 ucp->uc_mcontext.mc_eip = (register_t)(intptr_t)_ctx_start;
75 ucp
[all...]
H A Dgetcontextx.c95 ucontext_t *ucp; local
97 ucp = (ucontext_t *)ctx;
99 xfpu.addr = (char *)(ucp + 1);
103 ucp->uc_mcontext.mc_xfpustate = (__register_t)xfpu.addr;
104 ucp->uc_mcontext.mc_xfpustate_len = xstate_sz;
105 ucp->uc_mcontext.mc_flags |= _MC_HASFPXSTATE;
107 ucp->uc_mcontext.mc_xfpustate = 0;
108 ucp->uc_mcontext.mc_xfpustate_len = 0;
116 ucontext_t *ucp; local
118 ucp
[all...]
/freebsd-11-stable/lib/libc/sparc64/gen/
H A Dmakecontext.c44 void _ctx_done(ucontext_t *ucp);
48 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) argument
55 mc = &ucp->uc_mcontext;
56 if (ucp == NULL ||
60 (ucp->uc_stack.ss_sp == NULL) ||
61 (ucp->uc_stack.ss_size < MINSIGSTKSZ)) {
65 mc = &ucp->uc_mcontext;
66 sp = (uint64_t)ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size;
72 mc->mc_global[2] = (uint64_t)ucp;
79 _ctx_done(ucontext_t *ucp) argument
[all...]
H A Dsignalcontext.c48 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) argument
54 mc = &ucp->uc_mcontext;
61 bcopy(ucp, &sfp->sf_uc, sizeof(*ucp));
65 mc->mc_global[2] = (uint64_t)ucp;
73 ucp->uc_link = &sfp->sf_uc;
74 sigdelset(&ucp->uc_sigmask, sig);
/freebsd-11-stable/lib/libc/riscv/gen/
H A Dmakecontext.c50 ctx_done(ucontext_t *ucp) argument
53 if (ucp->uc_link == NULL) {
56 setcontext((const ucontext_t *)ucp->uc_link);
64 __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...) argument
71 if (ucp == NULL)
77 gp = &ucp->uc_mcontext.mc_gpregs;
86 gp->gp_sp = STACKALIGN(ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size);
90 gp->gp_s[1] = (__register_t)ucp;
/freebsd-11-stable/lib/libc/aarch64/gen/
H A Dmakecontext.c45 ctx_done(ucontext_t *ucp) argument
48 if (ucp->uc_link == NULL) {
51 setcontext((const ucontext_t *)ucp->uc_link);
59 __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...) argument
66 if (ucp == NULL)
72 gp = &ucp->uc_mcontext.mc_gpregs;
81 gp->gp_sp = STACKALIGN(ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size);
85 gp->gp_x[20] = (__register_t)ucp;
/freebsd-11-stable/lib/libc/mips/gen/
H A Dmakecontext.c54 __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...) argument
67 if (argc < 0 || argc > 6 || ucp == NULL ||
68 ucp->uc_stack.ss_sp == NULL ||
69 ucp->uc_stack.ss_size < MINSIGSTKSZ)
71 mc = &ucp->uc_mcontext;
74 ((uintptr_t)ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size);
86 mc->mc_regs[S0] = (intptr_t)ucp;
115 _ctx_done(ucontext_t *ucp) argument
118 if (ucp
[all...]
H A Dsignalcontext.c49 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) argument
/freebsd-11-stable/contrib/file/src/
H A Dis_json.c120 json_parse_string(const unsigned char **ucp, const unsigned char *ue) argument
122 const unsigned char *uc = *ucp;
125 DPRINTF("Parse string: ", uc, *ucp);
158 *ucp = uc;
159 DPRINTF("Good string: ", uc, *ucp);
166 DPRINTF("Bad string: ", uc, *ucp);
167 *ucp = uc;
172 json_parse_array(const unsigned char **ucp, const unsigned char *ue, argument
175 const unsigned char *uc = *ucp;
177 DPRINTF("Parse array: ", uc, *ucp);
206 json_parse_object(const unsigned char **ucp, const unsigned char *ue, size_t *st, size_t lvl) argument
262 json_parse_number(const unsigned char **ucp, const unsigned char *ue) argument
312 json_parse_const(const unsigned char **ucp, const unsigned char *ue, const char *str, size_t len) argument
329 json_parse(const unsigned char **ucp, const unsigned char *ue, size_t *st, size_t lvl) argument
[all...]
/freebsd-11-stable/lib/libc/arm/gen/
H A Dmakecontext.c45 ctx_done(ucontext_t *ucp) argument
48 if (ucp->uc_link == NULL)
51 setcontext((const ucontext_t *)ucp->uc_link);
59 __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...) argument
61 __greg_t *gr = ucp->uc_mcontext.__gregs;
68 (((uintptr_t)ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size -
79 gr[_REG_R5] = (__greg_t)ucp;
H A Dsignalcontext.c49 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) argument
52 __greg_t *gr = ucp->uc_mcontext.__gregs;
60 bcopy(ucp, &sfp->sf_uc, sizeof(*ucp));
69 gr[_REG_R5] = (__greg_t)ucp;
74 ucp->uc_link = &sfp->sf_uc;
75 sigdelset(&ucp->uc_sigmask, sig);
H A Dgetcontextx.c52 ucontext_t *ucp; local
57 ucp = &ucxp->ucontext;
64 ucp->uc_mcontext.mc_vfp_size = sizeof(mcontext_vfp_t);
65 ucp->uc_mcontext.mc_vfp_ptr = mvp;
/freebsd-11-stable/lib/libc/gen/
H A Dtrivial-getcontextx.c52 ucontext_t *ucp; local
54 ucp = (ucontext_t *)ctx;
55 return (getcontext(ucp));
/freebsd-11-stable/sys/kern/
H A Dkern_context.c51 struct __ucontext *ucp; member in struct:getcontext_args
54 const struct __ucontext_t *ucp; member in struct:setcontext_args
58 const struct __ucontext_t *ucp; member in struct:swapcontext_args
68 if (uap->ucp == NULL)
77 ret = copyout(&uc, uap->ucp, UC_COPY_SIZE);
88 if (uap->ucp == NULL)
91 ret = copyin(uap->ucp, &uc, UC_COPY_SIZE);
109 if (uap->oucp == NULL || uap->ucp == NULL)
120 ret = copyin(uap->ucp, &uc, UC_COPY_SIZE);
/freebsd-11-stable/lib/libc/sys/
H A Dswapcontext.c48 swapcontext(ucontext_t *oucp, const ucontext_t *ucp) argument
52 __libc_interposing[INTERPOS_swapcontext])(oucp, ucp));
/freebsd-11-stable/lib/libthr/thread/
H A Dthr_sig.c71 static void check_cancel(struct pthread *curthread, ucontext_t *ucp);
135 siginfo_t *info __unused, ucontext_t *ucp)
144 check_cancel(curthread, ucp);
158 ucontext_t *ucp; local
165 ucp = _ucp;
183 curthread->deferred_sigmask = ucp->uc_sigmask;
185 ucp->uc_sigmask = _thr_deferset;
189 handle_signal(&act, sig, info, ucp);
193 handle_signal(struct sigaction *actp, int sig, siginfo_t *info, ucontext_t *ucp) argument
205 SIGSETOR(actp->sa_mask, ucp
134 sigcancel_handler(int sig __unused, siginfo_t *info __unused, ucontext_t *ucp) argument
278 check_cancel(struct pthread *curthread, ucontext_t *ucp) argument
731 __thr_setcontext(const ucontext_t *ucp) argument
747 __thr_swapcontext(ucontext_t *oucp, const ucontext_t *ucp) argument
[all...]

Completed in 185 milliseconds

123