Home
last modified time | relevance | path

Searched refs:uc (Results 26 – 50 of 155) sorted by relevance

1234567

/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_qpmod.c841 ibt_qp_uc_attr_t *uc; in hermon_qp_reset2init() local
1047 uc = &info_p->qp_transport.uc; in hermon_qp_reset2init()
1118 ibt_qp_uc_attr_t *uc; in hermon_qp_init2init() local
1230 uc = &info_p->qp_transport.uc; in hermon_qp_init2init()
1324 ibt_qp_uc_attr_t *uc; in hermon_qp_init2rtr() local
1535 uc = &info_p->qp_transport.uc; in hermon_qp_init2rtr()
1698 ibt_qp_uc_attr_t *uc; in hermon_qp_rtr2rts() local
1839 uc = &info_p->qp_transport.uc; in hermon_qp_rtr2rts()
2079 uc = &info_p->qp_transport.uc; in hermon_qp_rts2rts()
2438 uc = &info_p->qp_transport.uc; in hermon_qp_sqd2rts()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dlwp_create.c71 ucontext_t uc; in syslwp_create() local
90 if (copyin(ucp, &uc, sizeof (ucontext_t))) in syslwp_create()
92 sigutok(&uc.uc_sigmask, &sigmask); in syslwp_create()
100 ucontext_32ton(&uc32, &uc, NULL, NULL); in syslwp_create()
102 ucontext_32ton(&uc32, &uc); in syslwp_create()
130 lwp_load(lwp, uc.uc_mcontext.gregs, thrptr); in syslwp_create()
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd_door.c368 ucred_t *uc = NULL; in cmd_changestate() local
385 if (door_ucred(&uc) != 0) { in cmd_changestate()
391 if (check_auth(uc, HP_MODIFY_AUTH) != 0) { in cmd_changestate()
393 audit_changestate(uc, HP_MODIFY_AUTH, path, connection, in cmd_changestate()
395 ucred_free(uc); in cmd_changestate()
408 ucred_free(uc); in cmd_changestate()
465 ucred_t *uc = NULL; in cmd_private() local
473 if ((cmd == HP_CMD_SETPRIVATE) && (door_ucred(&uc) != 0)) { in cmd_private()
488 (check_auth(uc, HP_MODIFY_AUTH) != 0)) { in cmd_private()
492 ucred_free(uc); in cmd_private()
[all …]
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwins_wch.c105 cchar_t uc; in __m_wins_wch() local
141 uc._n = 1; in __m_wins_wch()
142 uc._at = cc->_at; in __m_wins_wch()
143 uc._co = cc->_co; in __m_wins_wch()
149 uc._wc[0] = *p; in __m_wins_wch()
150 if ((width = __m_cc_ins(w, y, x, &uc)) < 0) in __m_wins_wch()
/illumos-gate/usr/src/uts/common/io/zyd/
H A Dzyd_hw.c376 struct zyd_usb *uc = &sc->usb; in zyd_hw_init() local
465 zyd_usb_cmd_in_stop_polling(uc); in zyd_hw_init()
467 zyd_usb_close_pipes(uc); in zyd_hw_init()
475 struct zyd_usb *uc = &sc->usb; in zyd_hw_deinit() local
477 zyd_usb_cmd_in_stop_polling(uc); in zyd_hw_deinit()
478 zyd_usb_close_pipes(uc); in zyd_hw_deinit()
610 struct zyd_usb *uc = &sc->usb; in zyd_hw_start() local
670 zyd_usb_data_in_disable(uc); in zyd_hw_start()
681 struct zyd_usb *uc = &sc->usb; in zyd_hw_stop() local
683 if (uc->connected) { in zyd_hw_stop()
[all …]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dwins_wch.c101 cchar_t uc; local
141 uc._n = 1;
142 uc._at = cc->_at;
143 uc._co = cc->_co;
149 uc._wc[0] = *p;
150 if ((width = __m_cc_ins(w, y, x, &uc)) < 0)
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_getsockname.c182 ucred_t *uc = *ucp; in pr_getpeerucred() local
187 if (uc == NULL) { in pr_getpeerucred()
188 uc = _ucred_alloc(); in pr_getpeerucred()
189 if (uc == NULL) in pr_getpeerucred()
209 adp->arg_object = uc; in pr_getpeerucred()
219 ucred_free(uc); in pr_getpeerucred()
223 *ucp = uc; in pr_getpeerucred()
H A DPstack.c175 ucontext_t uc; in load_uclist() local
198 uc.uc_link = (ucontext_t *)(uintptr_t)u32.uc_link; in load_uclist()
201 if (Pread(P, &uc, sizeof (uc), addr) != sizeof (uc)) in load_uclist()
208 addr = (uintptr_t)uc.uc_link; in load_uclist()
/illumos-gate/usr/src/lib/libdwarf/common/
H A Dpro_encode_nm.c56 unsigned char uc; in _dwarf_pro_encode_leb128_nm() local
61 uc = val & DATA_MASK; in _dwarf_pro_encode_leb128_nm()
64 uc |= MORE_BYTES; in _dwarf_pro_encode_leb128_nm()
66 *a = uc; in _dwarf_pro_encode_leb128_nm()
/illumos-gate/usr/src/uts/intel/os/
H A Dsendsig.c146 ucontext_t *uc; in sendsig() local
185 minstacksz = sizeof (struct sigframe) + SA(sizeof (*uc)); in sendsig()
316 uc = (ucontext_t *)(sp + sizeof (struct sigframe) + xsave_size); in sendsig()
323 copyout_noerr(tuc, uc, sizeof (*tuc)); in sendsig()
327 lwp->lwp_oldcontext = (uintptr_t)uc; in sendsig()
364 rp->r_rdx = (uintptr_t)uc; in sendsig()
434 ucontext32_t *uc; in sendsig32() local
551 uc = (ucontext32_t *)fp; in sendsig32()
562 copyout_noerr(tuc, uc, sizeof (*tuc)); in sendsig32()
566 lwp->lwp_oldcontext = (uintptr_t)uc; in sendsig32()
[all …]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dsigaction.c530 ucontext_t uc; in setcontext() local
538 (void) memcpy(&uc, ucp, sizeof (uc)); in setcontext()
543 if (uc.uc_flags & UC_SIGMASK) { in setcontext()
545 delete_reserved_signals(&uc.uc_sigmask); in setcontext()
546 self->ul_sigmask = uc.uc_sigmask; in setcontext()
554 uc.uc_flags &= ~UC_SIGMASK; in setcontext()
557 self->ul_siglink = uc.uc_link; in setcontext()
568 uc.uc_mcontext.gregs[REG_G7] = (greg_t)self; in setcontext()
575 uc.uc_mcontext.gregs[REG_FS] = (greg_t)0; in setcontext()
591 ret = __setcontext(&uc); in setcontext()
[all …]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_share_doorsvc.c143 ucred_t *uc = NULL; in have_priv_sys_smb() local
148 if (door_ucred(&uc) != 0) { in have_priv_sys_smb()
158 pid = ucred_getpid(uc); in have_priv_sys_smb()
164 ps = ucred_getprivset(uc, PRIV_EFFECTIVE); in have_priv_sys_smb()
175 "PID = %d UID = %d", (int)pid, ucred_getruid(uc)); in have_priv_sys_smb()
179 if (uc != NULL) in have_priv_sys_smb()
180 ucred_free(uc); in have_priv_sys_smb()
H A Dsmbd_pipesvc.c275 ucred_t *uc = NULL; in pipe_has_priv() local
280 if (getpeerucred(np->np_fid, &uc) != 0) { in pipe_has_priv()
284 clpid = ucred_getpid(uc); in pipe_has_priv()
285 ps = ucred_getprivset(uc, PRIV_PERMITTED); in pipe_has_priv()
302 (int)clpid, ucred_getruid(uc)); in pipe_has_priv()
307 if (uc != NULL) in pipe_has_priv()
308 ucred_free(uc); in pipe_has_priv()
/illumos-gate/usr/src/lib/libc/sparcv9/gen/
H A D_xregs_clrptr.c36 _xregs_clrptr(ucontext_t *uc) in _xregs_clrptr() argument
38 uc->uc_mcontext.xrs.xrs_id = 0; in _xregs_clrptr()
39 uc->uc_mcontext.xrs.xrs_ptr = NULL; in _xregs_clrptr()
/illumos-gate/usr/src/lib/libc/sparc/gen/
H A D_xregs_clrptr.c36 _xregs_clrptr(ucontext_t *uc) in _xregs_clrptr() argument
39 uc->uc_mcontext.xrs.xrs_id = 0; in _xregs_clrptr()
40 uc->uc_mcontext.xrs.xrs_ptr = NULL; in _xregs_clrptr()
/illumos-gate/usr/src/cmd/ldapcachemgr/
H A Dcachemgr_change.c223 ucred_t *uc = NULL; in door_client_dead() local
226 if (door_ucred(&uc) == -1 && errno == EINVAL) { in door_client_dead()
231 if (uc) in door_client_dead()
232 ucred_free(uc); in door_client_dead()
654 ucred_t *uc = NULL; in chg_is_called_from_nscd_or_peruser_nscd() local
656 if (door_ucred(&uc) != 0) { in chg_is_called_from_nscd_or_peruser_nscd()
661 euid = ucred_geteuid(uc); in chg_is_called_from_nscd_or_peruser_nscd()
662 pid = *pidp = ucred_getpid(uc); in chg_is_called_from_nscd_or_peruser_nscd()
669 ucred_getruid(uc), euid); in chg_is_called_from_nscd_or_peruser_nscd()
675 ucred_getruid(uc), euid); in chg_is_called_from_nscd_or_peruser_nscd()
[all …]
/illumos-gate/usr/src/lib/libc/i386/threads/
H A Dmachdep.c97 ucontext_t uc; in setup_context() local
100 uc.uc_flags = UC_CPU; in setup_context()
101 (void) __getcontext(&uc); in setup_context()
102 fs = uc.uc_mcontext.gregs[FS]; in setup_context()
103 es = uc.uc_mcontext.gregs[ES]; in setup_context()
104 ds = uc.uc_mcontext.gregs[DS]; in setup_context()
105 cs = uc.uc_mcontext.gregs[CS]; in setup_context()
106 ss = uc.uc_mcontext.gregs[SS]; in setup_context()
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dsm_casts4.c10 unsigned char uc; variable
18 if (uc < -2) in main()
34 __smatch_implied(uc); in main()
H A Dsm_casts5.c10 char uc; variable
18 if (uc < (unsigned int)-2) in main()
34 __smatch_implied(uc); in main()
H A Dsm_casts6.c10 char uc; variable
18 if (uc < (unsigned int)2) in main()
34 __smatch_implied(uc); in main()
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dtx.c108 ucred_t *uc = NULL; in get_peer_label() local
121 if (getpeerucred(fd, &uc) == -1) in get_peer_label()
124 sl = ucred_getlabel(uc); in get_peer_label()
139 ucred_free(uc); in get_peer_label()
/illumos-gate/usr/src/cmd/vscan/vscand/
H A Dvs_stats.c119 ucred_t *uc = NULL; in vs_stats_check_auth() local
123 if (door_ucred(&uc) != 0) in vs_stats_check_auth()
126 if (((uid = ucred_getsuid(uc)) == (uid_t)-1) || in vs_stats_check_auth()
129 ucred_free(uc); in vs_stats_check_auth()
133 ucred_free(uc); in vs_stats_check_auth()
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_selfcred.c511 ucred_t *uc = NULL; in _nscd_proc_iamhere() local
530 uid = ucred_geteuid(uc); in _nscd_proc_iamhere()
704 ucred_free(uc); in _nscd_proc_iamhere()
705 uc = NULL; in _nscd_proc_iamhere()
951 ucred_t *uc = NULL; in _nscd_proc_alt_get() local
981 ucred_free(uc); in _nscd_proc_alt_get()
982 uc = NULL; in _nscd_proc_alt_get()
1264 ucred_t *uc = NULL; in _nscd_peruser_getadmin() local
1279 uid = ucred_geteuid(uc); in _nscd_peruser_getadmin()
1280 ucred_free(uc); in _nscd_peruser_getadmin()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dcred.c944 struct ucred_s *uc; in cred2ucred() local
953 uc = buf; in cred2ucred()
955 uc->uc_size = realsz; in cred2ucred()
956 uc->uc_pid = pid; in cred2ucred()
957 uc->uc_projid = cr->cr_projid; in cred2ucred()
975 cred2prcred(cr, UCCRED(uc)); in cred2ucred()
976 cred2prpriv(cr, UCPRIV(uc)); in cred2ucred()
979 uc->uc_audoff = 0; in cred2ucred()
984 return (uc); in cred2ucred()
1022 struct ucred_s *uc; in pgetucred() local
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/libc/
H A Dlibc.c122 ucontext_t uc; in d_ucontext() local
127 if (mdb_vread(&uc, sizeof (uc), addr) != sizeof (uc)) { in d_ucontext()
133 (uint_t)uc.uc_flags, uc_flags_bits); in d_ucontext()
136 uc.uc_sigmask.__sigbits[0], uc.uc_sigmask.__sigbits[1], in d_ucontext()
137 uc.uc_sigmask.__sigbits[2], uc.uc_sigmask.__sigbits[3]); in d_ucontext()
139 uc.uc_stack.ss_sp, uc.uc_stack.ss_size, stack_flags(&uc.uc_stack)); in d_ucontext()
329 ucontext_t uc; in uc_walk_step() local
334 if (mdb_vread(&uc, sizeof (uc), addr) != sizeof (uc)) { in uc_walk_step()
339 wsp->walk_addr = (uintptr_t)uc.uc_link; in uc_walk_step()
383 ucontext_t uc; in oldc_walk_step() local
[all …]

1234567