Home
last modified time | relevance | path

Searched refs:ucp (Results 1 – 13 of 13) sorted by relevance

/dragonfly/lib/libc/x86_64/gen/
HDquickcontext.c44 static void makectx_quick_wrapper(ucontext_t *ucp, uint64_t *stack_top);
62 _makecontext_quick(ucontext_t *ucp) in _makecontext_quick() argument
66 if (ucp == NULL) in _makecontext_quick()
68 bzero(&ucp->uc_sigmask, sizeof(ucp->uc_sigmask)); in _makecontext_quick()
69 bzero(&ucp->uc_mcontext, sizeof(ucp->uc_mcontext)); in _makecontext_quick()
70 ucp->uc_link = NULL; in _makecontext_quick()
71 ucp->uc_mcontext.mc_len = sizeof(mcontext_t); in _makecontext_quick()
74 (uint64_t *)((char *)ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size); in _makecontext_quick()
87 ucp->uc_mcontext.mc_rdi = (register_t)ucp; in _makecontext_quick()
88 ucp->uc_mcontext.mc_rsi = (register_t)stack_top; in _makecontext_quick()
[all …]
HDmakecontext.c49 static void makectx_wrapper(ucontext_t *ucp, func_t func, uint64_t *args);
58 _makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) in _makecontext() argument
65 if (ucp == NULL) in _makecontext()
74 if ((ucp->uc_stack.ss_sp == NULL) || in _makecontext()
75 (ucp->uc_stack.ss_size < MINSIGSTKSZ)) { in _makecontext()
76 ucp->uc_mcontext.mc_len = 0; in _makecontext()
79 ucp->uc_mcontext.mc_len = 0; in _makecontext()
81 if (ucp->uc_mcontext.mc_len == sizeof(mcontext_t)) { in _makecontext()
84 stack_top = (uint64_t *)((char *)ucp->uc_stack.ss_sp + in _makecontext()
85 ucp->uc_stack.ss_size); in _makecontext()
[all …]
/dragonfly/contrib/file/src/
HDis_json.c127 json_parse_string(const unsigned char **ucp, const unsigned char *ue, in json_parse_string() argument
130 const unsigned char *uc = *ucp; in json_parse_string()
133 DPRINTF("Parse string: ", uc, *ucp); in json_parse_string()
166 DPRINTF("Good string: ", uc, *ucp); in json_parse_string()
167 *ucp = uc; in json_parse_string()
174 DPRINTF("Bad string: ", uc, *ucp); in json_parse_string()
175 *ucp = uc; in json_parse_string()
180 json_parse_array(const unsigned char **ucp, const unsigned char *ue, in json_parse_array() argument
183 const unsigned char *uc = *ucp; in json_parse_array()
185 DPRINTF("Parse array: ", uc, *ucp); in json_parse_array()
[all …]
/dragonfly/lib/libc/gen/
HDucontext.c65 _swapcontext(ucontext_t *oucp, const ucontext_t *ucp) in _swapcontext() argument
70 if (ucp->uc_mcontext.mc_len == 0) in _swapcontext()
73 ret = sigreturn(__DECONST(ucontext_t *, ucp)); in _swapcontext()
90 _setcontext(const ucontext_t *ucp) in _setcontext() argument
97 if (ucp->uc_mcontext.mc_len == 0) in _setcontext()
103 ret = sigreturn(__DECONST(ucontext_t *, ucp)); in _setcontext()
/dragonfly/sys/libkern/
HDinet_ntoa.c42 unsigned char *ucp = (unsigned char *)&ina; in kinet_ntoa() local
45 ucp[0] & 0xff, in kinet_ntoa()
46 ucp[1] & 0xff, in kinet_ntoa()
47 ucp[2] & 0xff, in kinet_ntoa()
48 ucp[3] & 0xff); in kinet_ntoa()
/dragonfly/sys/kern/
HDinit_main.c563 char *ucp, **uap, *arg0, *arg1; in start_init() local
635 ucp = (char *)USRSTACK; in start_init()
636 (void)subyte(--ucp, 0); /* trailing zero */ in start_init()
638 (void)subyte(--ucp, 's'); in start_init()
643 (void)subyte(--ucp, 'f'); in start_init()
649 (void)subyte(--ucp, 'C'); in start_init()
653 (void)subyte(--ucp, '-'); in start_init()
654 (void)subyte(--ucp, '-'); /* leading hyphen */ in start_init()
655 arg1 = ucp; in start_init()
660 (void)subyte(--ucp, 0); in start_init()
[all …]
/dragonfly/contrib/gcc-4.7/libgcc/config/i386/
HDcrtfastmath.c42 ucontext_t *ucp) in sigill_hdlr() argument
48 ucp->uc_mcontext.gregs[EIP] += 3; in sigill_hdlr()
49 setcontext (ucp); in sigill_hdlr()
/dragonfly/sys/platform/vkernel64/x86_64/
HDcpu_regs.c351 ucontext_t *ucp; in sys_sigreturn() local
364 ucp = &uc; in sys_sigreturn()
365 rflags = ucp->uc_mcontext.mc_rflags; in sys_sigreturn()
396 bcopy(&ucp.uc_mcontext.mc_gs, tf, sizeof(struct trapframe)); in sys_sigreturn()
434 cs = ucp->uc_mcontext.mc_cs; in sys_sigreturn()
440 bcopy(&ucp->uc_mcontext.mc_rdi, regs, sizeof(struct trapframe)); in sys_sigreturn()
446 npxpop(&ucp->uc_mcontext); in sys_sigreturn()
448 if (ucp->uc_mcontext.mc_onstack & 1) in sys_sigreturn()
453 lp->lwp_sigmask = ucp->uc_sigmask; in sys_sigreturn()
/dragonfly/contrib/dialog/
HDtrace.c143 const wchar_t *ucp = uc; in dlg_trace_win() local
146 wcsrtombs(buffer, &ucp, sizeof(buffer), &state); in dlg_trace_win()
/dragonfly/sys/vfs/ufs/
HDufs_vnops.c1285 struct ucred ucred, *ucp; in ufs_mkdir() local
1286 ucp = cnp->cn_cred; in ufs_mkdir()
1313 ucp = &ucred; in ufs_mkdir()
1320 (error = ufs_chkiq(ip, 1, ucp, 0))) { in ufs_mkdir()
2006 struct ucred ucred, *ucp; in ufs_makeinode() local
2007 ucp = cnp->cn_cred; in ufs_makeinode()
2033 ucp = &ucred; in ufs_makeinode()
2040 (error = ufs_chkiq(ip, 1, ucp, 0))) { in ufs_makeinode()
/dragonfly/crypto/openssh/
HDchannels.c1308 u_char *ucp; in x11_open_helper() local
1324 ucp = sshbuf_mutable_ptr(b); in x11_open_helper()
1325 if (ucp[0] == 0x42) { /* Byte order MSB first. */ in x11_open_helper()
1326 proto_len = 256 * ucp[6] + ucp[7]; in x11_open_helper()
1327 data_len = 256 * ucp[8] + ucp[9]; in x11_open_helper()
1328 } else if (ucp[0] == 0x6c) { /* Byte order LSB first. */ in x11_open_helper()
1329 proto_len = ucp[6] + 256 * ucp[7]; in x11_open_helper()
1330 data_len = ucp[8] + 256 * ucp[9]; in x11_open_helper()
1333 ucp[0]); in x11_open_helper()
1344 memcmp(ucp + 12, sc->x11_saved_proto, proto_len) != 0) { in x11_open_helper()
[all …]
/dragonfly/sys/platform/pc64/x86_64/
HDmachdep.c950 ucontext_t *ucp; in sys_sigreturn() local
963 ucp = &uc; in sys_sigreturn()
964 rflags = ucp->uc_mcontext.mc_rflags; in sys_sigreturn()
996 bcopy(&ucp->uc_mcontext.mc_gs, tf, sizeof(struct trapframe)); in sys_sigreturn()
1032 cs = ucp->uc_mcontext.mc_cs; in sys_sigreturn()
1039 _bcopy(&ucp->uc_mcontext.mc_rdi, regs, in sys_sigreturn()
1047 npxpop(&ucp->uc_mcontext); in sys_sigreturn()
1049 if (ucp->uc_mcontext.mc_onstack & 1) in sys_sigreturn()
1054 lp->lwp_sigmask = ucp->uc_sigmask; in sys_sigreturn()
/dragonfly/lib/libthread_xu/thread/
HDthr_sig.c61 ucontext_t *ucp __unused) in sigcancel_handler()