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

123

/freebsd-12-stable/sys/libkern/
H A Dinet_ntoa.c41 unsigned char *ucp = (unsigned char *)&ina; local
44 ucp[0] & 0xff,
45 ucp[1] & 0xff,
46 ucp[2] & 0xff,
47 ucp[3] & 0xff);
/freebsd-12-stable/lib/libc/amd64/gen/
H A Dsignalcontext.c41 static void sigctx_wrapper(ucontext_t *ucp, handler_t func, uint64_t *args);
46 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) argument
54 if (ucp == NULL)
63 sp = (ucp->uc_mcontext.mc_rsp - 128 - sizeof(ucontext_t)) & ~15UL;
65 bcopy(ucp, sig_uc, sizeof(*sig_uc));
80 bzero(&ucp->uc_mcontext, sizeof(ucp->uc_mcontext));
81 ucp->uc_mcontext.mc_fpformat = _MC_FPFMT_NODEV;
82 ucp->uc_mcontext.mc_ownedfp = _MC_FPOWNED_NONE;
83 ucp
98 sigctx_wrapper(ucontext_t *ucp, handler_t func, uint64_t *args) argument
[all...]
H A Dmakecontext.c41 static void makectx_wrapper(ucontext_t *ucp, func_t func, uint64_t *args);
46 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) argument
54 if ((ucp == NULL) || (ucp->uc_mcontext.mc_len != sizeof(mcontext_t)))
56 else if ((argc < 0) || (argc > 6) || (ucp->uc_stack.ss_sp == NULL) ||
57 (ucp->uc_stack.ss_size < MINSIGSTKSZ)) {
64 ucp->uc_mcontext.mc_len = 0;
69 sp = (uint64_t *)(ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size);
90 ucp
100 makectx_wrapper(ucontext_t *ucp, func_t func, uint64_t *args) argument
[all...]
/freebsd-12-stable/lib/libc/powerpc/gen/
H A Dsignalcontext.c41 static void ctx_wrapper(ucontext_t *ucp, handler_t func, uint32_t sig,
47 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) argument
54 if (ucp == NULL)
60 sp = (ucp->uc_mcontext.mc_gpr[1] - sizeof(ucontext_t)) & ~15UL;
62 bcopy(ucp, sig_uc, sizeof(*sig_uc));
77 bzero(&ucp->uc_mcontext, sizeof(ucp->uc_mcontext));
78 ucp->uc_link = sig_uc;
79 sigdelset(&ucp->uc_sigmask, sig);
81 ucp
94 ctx_wrapper(ucontext_t *ucp, handler_t func, uint32_t sig, uint32_t sig_si, uint32_t sig_uc) argument
[all...]
H A Dmakecontext.c42 void _ctx_done(ucontext_t *ucp);
46 _ctx_done(ucontext_t *ucp) argument
48 if (ucp->uc_link == NULL)
52 ucp->uc_mcontext.mc_len = 0;
54 setcontext((const ucontext_t *)ucp->uc_link);
61 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) argument
69 if ((ucp == NULL) || (argc < 0)
70 || (ucp->uc_stack.ss_sp == NULL)
71 || (ucp->uc_stack.ss_size < MINSIGSTKSZ)) {
73 ucp
[all...]
/freebsd-12-stable/lib/libc/powerpc64/gen/
H A Dsignalcontext.c41 static void ctx_wrapper(ucontext_t *ucp, handler_t func, uint32_t sig,
47 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) argument
54 if (ucp == NULL)
60 sp = (ucp->uc_mcontext.mc_gpr[1] - sizeof(ucontext_t)) & ~15UL;
62 bcopy(ucp, sig_uc, sizeof(*sig_uc));
77 bzero(&ucp->uc_mcontext, sizeof(ucp->uc_mcontext));
78 ucp->uc_link = sig_uc;
79 sigdelset(&ucp->uc_sigmask, sig);
81 ucp
94 ctx_wrapper(ucontext_t *ucp, handler_t func, uint32_t sig, uint32_t sig_si, uint32_t sig_uc) argument
[all...]
H A Dmakecontext.c42 void _ctx_done(ucontext_t *ucp);
46 _ctx_done(ucontext_t *ucp) argument
48 if (ucp->uc_link == NULL)
52 ucp->uc_mcontext.mc_len = 0;
54 setcontext((const ucontext_t *)ucp->uc_link);
61 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) argument
69 if ((ucp == NULL) || (argc < 0)
70 || (ucp->uc_stack.ss_sp == NULL)
71 || (ucp->uc_stack.ss_size < MINSIGSTKSZ)) {
73 ucp
[all...]
/freebsd-12-stable/lib/libc/i386/gen/
H A Dmakecontext.c48 _ctx_done (ucontext_t *ucp) argument
50 if (ucp->uc_link == NULL)
58 ucp->uc_mcontext.mc_len = 0;
62 setcontext((const ucontext_t *)ucp->uc_link);
68 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) argument
75 if (ucp == NULL)
77 else if ((ucp->uc_stack.ss_sp == NULL) ||
78 (ucp->uc_stack.ss_size < MINSIGSTKSZ)) {
85 ucp->uc_mcontext.mc_len = 0;
89 ucp
[all...]
H A Dsignalcontext.c44 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) argument
52 * 2n+sizeof(struct sigframe) ucp
57 p = (register_t *)(void *)(intptr_t)ucp->uc_mcontext.mc_esp;
58 *--p = (register_t)(intptr_t)ucp;
67 bcopy(ucp, &sfp->sf_uc, sizeof(ucontext_t));
74 ucp->uc_mcontext.mc_esi = ucp->uc_mcontext.mc_esp - sizeof(int);
75 ucp->uc_mcontext.mc_esp = (register_t)(intptr_t)p;
76 ucp->uc_mcontext.mc_eip = (register_t)(intptr_t)_ctx_start;
77 ucp
[all...]
/freebsd-12-stable/lib/libc/sparc64/gen/
H A Dmakecontext.c46 void _ctx_done(ucontext_t *ucp);
50 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) argument
57 mc = &ucp->uc_mcontext;
58 if (ucp == NULL ||
62 (ucp->uc_stack.ss_sp == NULL) ||
63 (ucp->uc_stack.ss_size < MINSIGSTKSZ)) {
67 mc = &ucp->uc_mcontext;
68 sp = (uint64_t)ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size;
74 mc->mc_global[2] = (uint64_t)ucp;
81 _ctx_done(ucontext_t *ucp) argument
[all...]
H A Dsignalcontext.c50 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) argument
56 mc = &ucp->uc_mcontext;
63 bcopy(ucp, &sfp->sf_uc, sizeof(*ucp));
67 mc->mc_global[2] = (uint64_t)ucp;
75 ucp->uc_link = &sfp->sf_uc;
76 sigdelset(&ucp->uc_sigmask, sig);
/freebsd-12-stable/lib/libc/x86/gen/
H A Dgetcontextx.c79 ucontext_t *ucp; local
81 ucp = (ucontext_t *)ctx;
82 xfpu.addr = (char *)(ucp + 1);
86 ucp->uc_mcontext.mc_xfpustate = (__register_t)xfpu.addr;
87 ucp->uc_mcontext.mc_xfpustate_len = xstate_sz;
88 ucp->uc_mcontext.mc_flags |= _MC_HASFPXSTATE;
95 ucontext_t *ucp; local
97 ucp = (ucontext_t *)ctx;
98 ucp->uc_mcontext.mc_xfpustate = 0;
99 ucp
113 ucontext_t *ucp; local
[all...]
/freebsd-12-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-12-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-12-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-12-stable/lib/libc/mips/gen/
H A Dmakecontext.c57 __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...) argument
70 if (argc < 0 || ucp == NULL ||
71 ucp->uc_stack.ss_sp == NULL ||
72 ucp->uc_stack.ss_size < MINSIGSTKSZ)
74 mc = &ucp->uc_mcontext;
77 ((uintptr_t)ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size);
86 mc->mc_regs[S0] = (intptr_t)ucp;
114 _ctx_done(ucontext_t *ucp) argument
117 if (ucp
[all...]
H A Dsignalcontext.c51 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) argument
/freebsd-12-stable/lib/libc/arm/gen/
H A Dmakecontext.c47 ctx_done(ucontext_t *ucp) argument
50 if (ucp->uc_link == NULL)
53 setcontext((const ucontext_t *)ucp->uc_link);
61 __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...) argument
63 __greg_t *gr = ucp->uc_mcontext.__gregs;
70 (((uintptr_t)ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size -
81 gr[_REG_R5] = (__greg_t)ucp;
H A Dsignalcontext.c51 __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) argument
54 __greg_t *gr = ucp->uc_mcontext.__gregs;
62 bcopy(ucp, &sfp->sf_uc, sizeof(*ucp));
71 gr[_REG_R5] = (__greg_t)ucp;
76 ucp->uc_link = &sfp->sf_uc;
77 sigdelset(&ucp->uc_sigmask, sig);
H A Dgetcontextx.c54 ucontext_t *ucp; local
59 ucp = &ucxp->ucontext;
66 ucp->uc_mcontext.mc_vfp_size = sizeof(mcontext_vfp_t);
67 ucp->uc_mcontext.mc_vfp_ptr = mvp;
/freebsd-12-stable/lib/libc/gen/
H A Dtrivial-getcontextx.c52 ucontext_t *ucp; local
54 ucp = (ucontext_t *)ctx;
55 return (getcontext(ucp));
/freebsd-12-stable/lib/libsecureboot/
H A Dreadfile.c58 unsigned char *ucp; local
66 ucp = read_fd(fd, st.st_size);
68 if (len != NULL && ucp != NULL)
70 return (ucp);
/freebsd-12-stable/sys/kern/
H A Dkern_context.c53 struct __ucontext *ucp; member in struct:getcontext_args
56 const struct __ucontext_t *ucp; member in struct:setcontext_args
60 const struct __ucontext_t *ucp; member in struct:swapcontext_args
70 if (uap->ucp == NULL)
79 ret = copyout(&uc, uap->ucp, UC_COPY_SIZE);
90 if (uap->ucp == NULL)
93 ret = copyin(uap->ucp, &uc, UC_COPY_SIZE);
111 if (uap->oucp == NULL || uap->ucp == NULL)
122 ret = copyin(uap->ucp, &uc, UC_COPY_SIZE);
/freebsd-12-stable/lib/libc/sys/
H A Dswapcontext.c47 swapcontext(ucontext_t *oucp, const ucontext_t *ucp) argument
51 __libc_interposing[INTERPOS_swapcontext])(oucp, ucp));
/freebsd-12-stable/lib/libthr/thread/
H A Dthr_sig.c73 static void check_cancel(struct pthread *curthread, ucontext_t *ucp);
137 siginfo_t *info __unused, ucontext_t *ucp)
146 check_cancel(curthread, ucp);
160 ucontext_t *ucp; local
167 ucp = _ucp;
185 curthread->deferred_sigmask = ucp->uc_sigmask;
187 ucp->uc_sigmask = _thr_deferset;
191 handle_signal(&act, sig, info, ucp);
195 handle_signal(struct sigaction *actp, int sig, siginfo_t *info, ucontext_t *ucp) argument
207 SIGSETOR(actp->sa_mask, ucp
136 sigcancel_handler(int sig __unused, siginfo_t *info __unused, ucontext_t *ucp) argument
280 check_cancel(struct pthread *curthread, ucontext_t *ucp) argument
734 __thr_setcontext(const ucontext_t *ucp) argument
750 __thr_swapcontext(ucontext_t *oucp, const ucontext_t *ucp) argument
[all...]

Completed in 165 milliseconds

123