Home
last modified time | relevance | path

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

1234567

/illumos-gate/usr/src/lib/libc/port/gen/
H A Ducred.c86 ucred_free(ucred_t *uc) in ucred_free() argument
88 free(uc); in ucred_free()
95 ucred_t *uc; in ucred_get() local
97 uc = _ucred_alloc(); in ucred_get()
99 if (uc == NULL) in ucred_get()
102 if (syscall(SYS_ucredsys, UCREDSYS_UCREDGET, pid, uc) != 0) { in ucred_get()
103 ucred_free(uc); in ucred_get()
107 return (uc); in ucred_get()
111 ucred_geteuid(const ucred_t *uc) in ucred_geteuid() argument
114 const prcred_t *cr = UCCRED(uc); in ucred_geteuid()
[all …]
/illumos-gate/usr/src/uts/common/io/zyd/
H A Dzyd_usb.c44 static zyd_res zyd_usb_data_in_start_request(struct zyd_usb *uc);
115 zyd_usb_ctrl_send(struct zyd_usb *uc, uint8_t request, uint16_t value, in zyd_usb_ctrl_send() argument
139 while ((err = usb_pipe_ctrl_xfer_wait(uc->cdata->dev_default_ph, in zyd_usb_ctrl_send()
160 zyd_usb_ctrl_recv(struct zyd_usb *uc, uint8_t request, uint16_t value, in zyd_usb_ctrl_recv() argument
181 err = usb_pipe_ctrl_xfer_wait(uc->cdata->dev_default_ph, in zyd_usb_ctrl_recv()
218 zyd_usb_loadfirmware(struct zyd_usb *uc, uint8_t *fw, size_t size) in zyd_usb_loadfirmware() argument
229 if (zyd_usb_ctrl_send(uc, ZYD_DOWNLOADREQ, addr, fw, mlen) in zyd_usb_loadfirmware()
239 if (zyd_usb_ctrl_recv(uc, ZYD_DOWNLOADSTS, 0, &stat, sizeof (stat)) in zyd_usb_loadfirmware()
341 zyd_usb_open_pipe(struct zyd_usb *uc, in zyd_usb_open_pipe() argument
365 if (usb_pipe_open(uc->dip, &endpoint->ep_descr, in zyd_usb_open_pipe()
[all …]
H A Dzyd.h396 zyd_res zyd_usb_open_pipes(struct zyd_usb *uc);
397 void zyd_usb_close_pipes(struct zyd_usb *uc);
398 zyd_res zyd_usb_cmd_in_start_polling(struct zyd_usb *uc);
399 void zyd_usb_cmd_in_stop_polling(struct zyd_usb *uc);
400 zyd_res zyd_usb_data_in_enable(struct zyd_usb *uc);
401 void zyd_usb_data_in_disable(struct zyd_usb *uc);
402 zyd_res zyd_usb_cmd_send(struct zyd_usb *uc, uint16_t code,
404 zyd_res zyd_usb_ioread_req(struct zyd_usb *uc, const void *in_data,
406 zyd_res zyd_usb_send_packet(struct zyd_usb *uc, mblk_t *mp);
408 zyd_res zyd_usb_loadfirmware(struct zyd_usb *uc, uint8_t *fw,
/illumos-gate/usr/src/uts/intel/syscall/
H A Dgetcontext.c291 ucontext_t uc; in getsetcontext() local
312 ret = savecontext(&uc, &curthread->t_hold, SAVECTXT_F_NONE); in getsetcontext()
315 if (uc.uc_flags & UC_SIGMASK) in getsetcontext()
316 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask); in getsetcontext()
317 if (copyout(&uc, arg, sizeof (uc))) in getsetcontext()
338 if (copyin(&ucp->uc_xsave, &uc.uc_xsave, in getsetcontext()
339 sizeof (uc.uc_xsave)) != 0) { in getsetcontext()
342 ret = savecontext(&uc, &curthread->t_hold, SAVECTXT_F_EXTD); in getsetcontext()
345 if (uc.uc_flags & UC_SIGMASK) in getsetcontext()
346 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask); in getsetcontext()
[all …]
/illumos-gate/usr/src/uts/sparc/syscall/
H A Dgetcontext.c178 ucontext_t uc; in getsetcontext() local
203 savecontext(&uc, &curthread->t_hold); in getsetcontext()
204 if (uc.uc_flags & UC_SIGMASK) in getsetcontext()
205 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask); in getsetcontext()
216 uc.uc_mcontext.fpregs.fpu_qcnt = 0; in getsetcontext()
217 uc.uc_mcontext.fpregs.fpu_q = (struct _fq *)NULL; in getsetcontext()
219 if (copyout(&uc, arg, sizeof (ucontext_t))) in getsetcontext()
231 if (copyin(ucp, &uc, sizeof (ucontext_t) - in getsetcontext()
232 sizeof (uc.uc_filler) - in getsetcontext()
233 sizeof (uc.uc_mcontext.fpregs) - in getsetcontext()
[all …]
/illumos-gate/usr/src/common/bzip2/
H A Ddecompress.c109 UChar uc; in BZ2_decompress() local
198 GET_UCHAR(BZ_X_MAGIC_1, uc); in BZ2_decompress()
199 if (uc != BZ_HDR_B) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress()
201 GET_UCHAR(BZ_X_MAGIC_2, uc); in BZ2_decompress()
202 if (uc != BZ_HDR_Z) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress()
204 GET_UCHAR(BZ_X_MAGIC_3, uc) in BZ2_decompress()
205 if (uc != BZ_HDR_h) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress()
223 GET_UCHAR(BZ_X_BLKHDR_1, uc); in BZ2_decompress()
225 if (uc == 0x17) goto endhdr_2; in BZ2_decompress()
226 if (uc != 0x31) RETURN(BZ_DATA_ERROR); in BZ2_decompress()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Ducred.h74 #define UCCRED(uc) (prcred_t *)(((uc)->uc_credoff == 0) ? NULL : \ argument
75 ((char *)(uc)) + (uc)->uc_credoff)
78 #define UCPRIV(uc) (prpriv_t *)(((uc)->uc_privoff == 0) ? NULL : \ argument
79 ((char *)(uc)) + (uc)->uc_privoff)
82 #define UCAUD(uc) (auditinfo64_addr_t *)(((uc)->uc_audoff == 0) ? NULL : \ argument
83 ((char *)(uc)) + (uc)->uc_audoff)
86 #define UCLABEL(uc) (bslabel_t *)(((uc)->uc_labeloff == 0) ? NULL : \ argument
87 ((char *)(uc)) + (uc)->uc_labeloff)
/illumos-gate/usr/src/ucblib/librpcsoc/
H A Dsvc_udp.c365 struct udp_cache *uc; local
371 uc = ALLOC(struct udp_cache, 1);
372 if (uc == NULL) {
376 uc->uc_size = size;
377 uc->uc_nextvictim = 0;
378 uc->uc_entries = ALLOC(cache_ptr, size * SPARSENESS);
379 if (uc->uc_entries == NULL) {
382 FREE(uc, struct udp_cache, 1);
385 BZERO(uc->uc_entries, cache_ptr, size * SPARSENESS);
386 uc->uc_fifo = ALLOC(cache_ptr, size);
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dterm.c527 int sz, uc; in term_word() local
570 uc = mchars_num2uc(seq + 1, sz - 1); in term_word()
573 uc = mchars_num2char(seq, sz); in term_word()
574 if (uc < 0) in term_word()
583 uc = mchars_spec2cp(seq, sz); in term_word()
584 if (uc > 0) in term_word()
585 encode1(p, uc); in term_word()
589 uc = *seq; in term_word()
632 uc = -p->col; in term_word()
634 uc = 0; in term_word()
[all …]
/illumos-gate/usr/src/lib/libc/sparc/gen/
H A Dsiglongjmp.c46 ucontext_t uc; in siglongjmp() local
47 greg_t *reg = uc.uc_mcontext.gregs; in siglongjmp()
60 (void) memset(&uc, 0, sizeof (uc)); in siglongjmp()
61 uc.uc_flags = UC_STACK | UC_CPU; in siglongjmp()
63 uc.uc_stack = bp->sjs_stack; in siglongjmp()
64 uc.uc_link = bp->sjs_uclink; in siglongjmp()
70 uc.uc_flags |= UC_SIGMASK; in siglongjmp()
71 uc.uc_sigmask = bp->sjs_sigmask; in siglongjmp()
96 (void) setcontext(&uc); in siglongjmp()
/illumos-gate/usr/src/lib/libc/sparcv9/gen/
H A Dsiglongjmp.c45 ucontext_t uc; in siglongjmp() local
46 greg_t *reg = uc.uc_mcontext.gregs; in siglongjmp()
59 (void) memset(&uc, 0, sizeof (uc)); in siglongjmp()
60 uc.uc_flags = UC_STACK | UC_CPU; in siglongjmp()
62 uc.uc_stack = bp->sjs_stack; in siglongjmp()
63 uc.uc_link = bp->sjs_uclink; in siglongjmp()
71 uc.uc_flags |= UC_SIGMASK; in siglongjmp()
72 uc.uc_sigmask = bp->sjs_sigmask; in siglongjmp()
97 (void) setcontext(&uc); in siglongjmp()
/illumos-gate/usr/src/uts/common/syscall/
H A Ducredsys.c49 struct ucred_s *uc; in getpeerucred() local
111 uc = cred2ucred(kpc.pc_cr, kpc.pc_cpid, NULL, CRED()); in getpeerucred()
115 err = copyout(uc, buf, uc->uc_size); in getpeerucred()
117 kmem_free(uc, uc->uc_size); in getpeerucred()
133 struct ucred_s *uc; in ucred_get() local
173 uc = cred2ucred(pcr, pid, NULL, CRED()); in ucred_get()
177 err = copyout(uc, ubuf, uc->uc_size); in ucred_get()
179 kmem_free(uc, uc->uc_size); in ucred_get()
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dgetpeerucred.c39 ucred_t *uc = *ucp; in getpeerucred() local
41 if (uc == NULL) { in getpeerucred()
42 uc = _ucred_alloc(); in getpeerucred()
43 if (uc == NULL) in getpeerucred()
47 if (syscall(SYS_ucredsys, UCREDSYS_GETPEERUCRED, fd, uc) != 0) { in getpeerucred()
49 ucred_free(uc); in getpeerucred()
52 *ucp = uc; in getpeerucred()
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dti_opts.c119 find_ucred_opt(const SVCXPRT *trans, ucred_t *uc, bool_t checkzone) in find_ucred_opt() argument
128 if (getpeerucred(trans->xp_fd, &uc) == 0) in find_ucred_opt()
144 (void) memcpy(uc, &opth[1], opth->len); in find_ucred_opt()
172 (void) memcpy(uc, &opt[1], in find_ucred_opt()
178 if (getpeerucred(trans->xp_fd, &uc) != 0) in find_ucred_opt()
188 return (ucred_getzoneid(uc) == myzone ? 0 : -1); in find_ucred_opt()
197 ucred_t *uc = alloca(ucred_size()); in __rpc_get_local_uid() local
202 err = __svc_get_door_ucred(trans, uc) == FALSE; in __rpc_get_local_uid()
204 err = find_ucred_opt(trans, uc, B_TRUE); in __rpc_get_local_uid()
208 *uid_out = ucred_geteuid(uc); in __rpc_get_local_uid()
[all …]
H A Dsvc_dg.c691 struct cl_cache *uc; in svc_dg_enablecache() local
709 uc = malloc(sizeof (struct cl_cache)); in svc_dg_enablecache()
710 if (uc == NULL) { in svc_dg_enablecache()
716 uc->uc_size = size; in svc_dg_enablecache()
717 uc->uc_nextvictim = 0; in svc_dg_enablecache()
718 uc->uc_entries = calloc(size * SPARSENESS, sizeof (cache_ptr)); in svc_dg_enablecache()
719 if (uc->uc_entries == NULL) { in svc_dg_enablecache()
721 free(uc); in svc_dg_enablecache()
725 uc->uc_fifo = calloc(size, sizeof (cache_ptr)); in svc_dg_enablecache()
726 if (uc->uc_fifo == NULL) { in svc_dg_enablecache()
[all …]
/illumos-gate/usr/src/uts/sparc/v9/os/
H A Dxregs.c54 xregs_clrptr(klwp_id_t lwp, ucontext_t *uc) in xregs_clrptr() argument
56 uc->uc_mcontext.xrs.xrs_id = 0; in xregs_clrptr()
57 uc->uc_mcontext.xrs.xrs_ptr = NULL; in xregs_clrptr()
66 xregs_hasptr(klwp_id_t lwp, ucontext_t *uc) in xregs_hasptr() argument
68 return (uc->uc_mcontext.xrs.xrs_id == XRS_ID); in xregs_hasptr()
76 xregs_getptr(klwp_id_t lwp, ucontext_t *uc) in xregs_getptr() argument
78 if (uc->uc_mcontext.xrs.xrs_id == XRS_ID) in xregs_getptr()
79 return (uc->uc_mcontext.xrs.xrs_ptr); in xregs_getptr()
88 xregs_setptr(klwp_id_t lwp, ucontext_t *uc, caddr_t xrp) in xregs_setptr() argument
90 uc->uc_mcontext.xrs.xrs_id = XRS_ID; in xregs_setptr()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dlimits.c89 unsigned char uc; in main() local
105 uc = 0; in main()
106 uc = ~uc; in main()
108 while (uc >>= 1) val++; in main()
118 uc = 0; in main()
119 uc = ~uc; in main()
132 val = uc; in main()
141 val = (unsigned char)(uc >> 1) + 1; in main()
146 val = (unsigned char)(uc >> 1); in main()
/illumos-gate/usr/src/cmd/msgfmt/
H A Dgnu_lex.c352 unsigned int uc; in yylex() local
418 uc = pch->buf[0]; in yylex()
420 if (uc == '\n') { in yylex()
425 if (uc == '"') in yylex()
427 if (uc == '\\') in yylex()
444 uc = pch->buf[0]; in yylex()
446 if (isalpha(uc) || (uc == '_')) { in yylex()
450 buf[buf_pos++] = (char)uc; in yylex()
454 (isalpha(uc = pch->buf[0]) || in yylex()
455 isdigit(uc) || (uc == '_'))) { in yylex()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/stackalign/
H A Dstackalign.c94 ucontext_t back, uc; in main() local
115 if (getcontext(&uc) < 0) { in main()
120 uc.uc_link = &back; in main()
121 uc.uc_stack.ss_size = STACK_SIZE; in main()
122 uc.uc_stack.ss_flags = 0; in main()
123 if ((uc.uc_stack.ss_sp = malloc(STACK_SIZE)) == NULL) { in main()
129 makecontext(&uc, (void (*)(void *))get_stack_at_entry, 1, &arg); in main()
130 if (swapcontext(&back, &uc) < 0) { in main()
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dwadd_wch.c58 cchar_t uc; local
86 uc._n = 1;
87 uc._at = cc->_at;
88 uc._co = cc->_co;
94 uc._wc[0] = *p;
95 if (__m_cc_add(w, y, x, &uc, 0, &y, &x) == ERR)
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_qpmod.c745 ibt_qp_uc_attr_t *uc; in tavor_qp_reset2init() local
838 uc = &info_p->qp_transport.uc; in tavor_qp_reset2init()
847 portnum = uc->uc_path.cep_hca_port_num; in tavor_qp_reset2init()
855 pkeyindx = uc->uc_path.cep_pkey_ix; in tavor_qp_reset2init()
902 ibt_qp_uc_attr_t *uc; in tavor_qp_init2init() local
1004 uc = &info_p->qp_transport.uc; in tavor_qp_init2init()
1012 portnum = uc->uc_path.cep_hca_port_num; in tavor_qp_init2init()
1027 pkeyindx = uc->uc_path.cep_pkey_ix; in tavor_qp_init2init()
1091 ibt_qp_uc_attr_t *uc; in tavor_qp_init2rtr() local
1307 uc = &info_p->qp_transport.uc; in tavor_qp_init2rtr()
[all …]
/illumos-gate/usr/src/lib/iconv_modules/zh/common/
H A Dzh_TW-euc%zh_TW-iso2022-7.c320 unsigned char uc = (unsigned char) inbuf; in get_plane_no_by_char() local
322 ret = uc - PMASK; in get_plane_no_by_char()
411 unsigned char uc; in _cv_enconv() local
439 uc = *inbuf; in _cv_enconv()
440 if ((uc & MSB) == 0) { in _cv_enconv()
441 *outbuf++ = uc; in _cv_enconv()
454 st->keepc[0] = uc = *inbuf++; in _cv_enconv()
456 if (uc & MSB) { in _cv_enconv()
457 if (uc == 0x8e) in _cv_enconv()
560 unsigned char uc = (unsigned char) *inbuf; in get_plane_no_by_str() local
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_frontend.c315 ucred_t *uc = NULL; in _nscd_get_client_euid() local
319 if (door_ucred(&uc) != 0) { in _nscd_get_client_euid()
325 id = ucred_geteuid(uc); in _nscd_get_client_euid()
326 ucred_free(uc); in _nscd_get_client_euid()
341 ucred_t *uc = NULL; in _nscd_check_client_priv() local
346 if (door_ucred(&uc) != 0) { in _nscd_check_client_priv()
352 if (ucred_geteuid(uc) == 0) { in _nscd_check_client_priv()
353 ucred_free(uc); in _nscd_check_client_priv()
357 eset = ucred_getprivset(uc, PRIV_EFFECTIVE); in _nscd_check_client_priv()
379 ucred_free(uc); in _nscd_check_client_priv()
[all …]
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwadd_wch.c74 cchar_t uc; in wadd_wch() local
106 uc._n = 1; in wadd_wch()
107 uc._at = cc->_at; in wadd_wch()
108 uc._co = cc->_co; in wadd_wch()
114 uc._wc[0] = *p; in wadd_wch()
115 if (__m_cc_add(w, y, x, &uc, 0, &y, &x) == ERR) in wadd_wch()
/illumos-gate/usr/src/lib/libbsm/common/
H A Dadt_ucred.h41 extern au_id_t ucred_getauid(const ucred_t *uc);
42 extern au_asid_t ucred_getasid(const ucred_t *uc);
43 extern const au_mask_t *ucred_getamask(const ucred_t *uc);
44 extern const au_tid64_addr_t *ucred_getatid(const ucred_t *uc);

1234567