/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ucred.c | 86 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() 103 ucred_free(uc); in ucred_get() 107 return (uc); in ucred_get() 236 if (uc->uc_pid == -1) in ucred_getpid() 239 return (uc->uc_pid); in ucred_getpid() 249 return (uc->uc_projid); in ucred_getprojid() [all …]
|
/illumos-gate/usr/src/uts/common/io/zyd/ |
H A D | zyd_usb.c | 412 ZYD_USB_USE_ATTR, &uc->pipe_data_in, &uc->ep_data_in) != in zyd_usb_open_pipes() 419 ZYD_USB_USE_ATTR, &uc->pipe_cmd_in, &uc->ep_cmd_in) != in zyd_usb_open_pipes() 429 ZYD_USB_NO_ATTR, &uc->pipe_cmd_out, &uc->ep_cmd_out) != in zyd_usb_open_pipes() 451 usb_pipe_close(uc->dip, uc->pipe_data_out, USB_FLAGS_SLEEP, in zyd_usb_close_pipes() 457 usb_pipe_close(uc->dip, uc->pipe_data_in, USB_FLAGS_SLEEP, in zyd_usb_close_pipes() 463 usb_pipe_close(uc->dip, uc->pipe_cmd_in, USB_FLAGS_SLEEP, in zyd_usb_close_pipes() 469 usb_pipe_close(uc->dip, uc->pipe_cmd_out, USB_FLAGS_SLEEP, in zyd_usb_close_pipes() 1034 usb_pipe_reset(uc->dip, uc->pipe_data_in, USB_FLAGS_SLEEP, in zyd_usb_data_in_disable() 1126 usb_client_detach(uc->dip, uc->cdata); in zyd_usb_init() 1141 usb_client_detach(uc->dip, uc->cdata); in zyd_usb_deinit() [all …]
|
H A D | zyd.h | 396 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 D | getcontext.c | 291 ucontext_t uc; in getsetcontext() local 317 if (copyout(&uc, arg, sizeof (uc))) in getsetcontext() 347 if (copyout(&uc, arg, sizeof (uc))) in getsetcontext() 373 uc.uc_xsave = 0; in getsetcontext() 388 restorecontext(&uc); in getsetcontext() 392 sizeof (uc.uc_stack)); in getsetcontext() 519 ucontext32_t uc; in getsetcontext32() local 538 if (copyout(&uc, arg, sizeof (uc))) in getsetcontext32() 557 if (copyout(&uc, arg, sizeof (uc))) in getsetcontext32() 577 uc.uc_xsave = 0; in getsetcontext32() [all …]
|
/illumos-gate/usr/src/uts/sparc/syscall/ |
H A D | getcontext.c | 178 ucontext_t uc; in getsetcontext() local 204 if (uc.uc_flags & UC_SIGMASK) in getsetcontext() 232 sizeof (uc.uc_filler) - in getsetcontext() 239 if (uc.uc_flags & UC_SIGMASK) in getsetcontext() 246 if (uc.uc_flags & UC_FPU) { in getsetcontext() 251 &uc.uc_mcontext.fpregs, in getsetcontext() 304 xregs_clrptr(lwp, &uc); in getsetcontext() 313 restorecontext(&uc); in getsetcontext() 425 ucontext32_t uc; in getsetcontext32() local 481 if (copyin(ucp, &uc, sizeof (uc) - sizeof (uc.uc_filler) - in getsetcontext32() [all …]
|
/illumos-gate/usr/src/common/bzip2/ |
H A D | decompress.c | 109 UChar uc; in BZ2_decompress() local 198 GET_UCHAR(BZ_X_MAGIC_1, uc); in BZ2_decompress() 204 GET_UCHAR(BZ_X_MAGIC_3, uc) in BZ2_decompress() 243 GET_UCHAR(BZ_X_BCRC_1, uc); in BZ2_decompress() 245 GET_UCHAR(BZ_X_BCRC_2, uc); in BZ2_decompress() 247 GET_UCHAR(BZ_X_BCRC_3, uc); in BZ2_decompress() 249 GET_UCHAR(BZ_X_BCRC_4, uc); in BZ2_decompress() 270 if (uc == 1) in BZ2_decompress() 296 if (uc == 0) break; in BZ2_decompress() 534 s->cftabCopy[uc]++; in BZ2_decompress() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | ucred.h | 74 #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 D | svc_udp.c | 365 struct udp_cache *uc; local 372 if (uc == NULL) { 376 uc->uc_size = size; 377 uc->uc_nextvictim = 0; 379 if (uc->uc_entries == NULL) { 387 if (uc->uc_fifo == NULL) { 395 su->su_cache = (char *) uc; 419 victim = uc->uc_fifo[uc->uc_nextvictim]; 463 uc->uc_entries[loc] = victim; 464 uc->uc_fifo[uc->uc_nextvictim++] = victim; [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | term.c | 589 uc = *seq; in term_word() 634 uc = 0; in term_word() 664 lsz = uc; in term_word() 666 uc = -1; in term_word() 684 uc = -1; in term_word() 688 uc = *cp; in term_word() 689 if (uc < 0x20 || (uc > 0x7E && uc < 0xA0)) in term_word() 744 if ((uc < 0x20 && uc != 0x09) || in term_word() 745 (uc > 0x7E && uc < 0xA0)) in term_word() 1012 if ((uc < 0x20 && uc != 0x09) || in term_strlen() [all …]
|
/illumos-gate/usr/src/lib/libc/sparc/gen/ |
H A D | siglongjmp.c | 46 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 D | siglongjmp.c | 45 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 D | ucredsys.c | 49 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 D | getpeerucred.c | 39 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 D | ti_opts.c | 172 (void) memcpy(uc, &opt[1], in find_ucred_opt() 208 *uid_out = ucred_geteuid(uc); in __rpc_get_local_uid() 230 lcred->euid = ucred_geteuid(uc); in __rpc_get_local_cred() 231 lcred->egid = ucred_getegid(uc); in __rpc_get_local_cred() 232 lcred->ruid = ucred_getruid(uc); in __rpc_get_local_cred() 233 lcred->rgid = ucred_getrgid(uc); in __rpc_get_local_cred() 234 lcred->pid = ucred_getpid(uc); in __rpc_get_local_cred() 244 ucred_t *ucp = *uc; in svc_getcallerucred() 260 if (*uc == NULL) in svc_getcallerucred() 265 if (*uc == NULL) in svc_getcallerucred() [all …]
|
H A D | svc_dg.c | 691 struct cl_cache *uc; in svc_dg_enablecache() local 710 if (uc == NULL) { in svc_dg_enablecache() 716 uc->uc_size = size; in svc_dg_enablecache() 721 free(uc); in svc_dg_enablecache() 729 free(uc); in svc_dg_enablecache() 758 struct cl_cache *uc; in cache_set() local 783 victim = uc->uc_fifo[uc->uc_nextvictim]; in cache_set() 824 su->su_xid, uc->uc_prog, uc->uc_vers, uc->uc_proc, uaddr); in cache_set() 856 uc->uc_fifo[uc->uc_nextvictim++] = victim; in cache_set() 857 uc->uc_nextvictim %= uc->uc_size; in cache_set() [all …]
|
/illumos-gate/usr/src/uts/sparc/v9/os/ |
H A D | xregs.c | 56 uc->uc_mcontext.xrs.xrs_id = 0; in xregs_clrptr() 57 uc->uc_mcontext.xrs.xrs_ptr = NULL; in xregs_clrptr() 78 if (uc->uc_mcontext.xrs.xrs_id == XRS_ID) in xregs_getptr() 79 return (uc->uc_mcontext.xrs.xrs_ptr); in xregs_getptr() 90 uc->uc_mcontext.xrs.xrs_id = XRS_ID; in xregs_setptr() 91 uc->uc_mcontext.xrs.xrs_ptr = xrp; in xregs_setptr() 100 uc->uc_mcontext.xrs.xrs_id = 0; in xregs_clrptr32() 101 uc->uc_mcontext.xrs.xrs_ptr = 0; in xregs_clrptr32() 116 return (uc->uc_mcontext.xrs.xrs_ptr); in xregs_getptr32() 124 uc->uc_mcontext.xrs.xrs_id = XRS_ID; in xregs_setptr32() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | limits.c | 89 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 D | gnu_lex.c | 352 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() 455 isdigit(uc) || (uc == '_'))) { in yylex() 489 if (isdigit(uc)) { in yylex() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/stackalign/ |
H A D | stackalign.c | 94 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 D | wadd_wch.c | 58 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 D | tavor_qpmod.c | 745 ibt_qp_uc_attr_t *uc; in tavor_qp_reset2init() local 838 uc = &info_p->qp_transport.uc; 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() 1091 ibt_qp_uc_attr_t *uc; in tavor_qp_init2rtr() local 1307 uc = &info_p->qp_transport.uc; in tavor_qp_init2rtr() 1451 ibt_qp_uc_attr_t *uc; in tavor_qp_rtr2rts() local 1609 uc = &info_p->qp_transport.uc; in tavor_qp_rtr2rts() 1839 uc = &info_p->qp_transport.uc; in tavor_qp_rts2rts() 2112 uc = &info_p->qp_transport.uc; in tavor_qp_sqd2rts() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/zh/common/ |
H A D | zh_TW-euc%zh_TW-iso2022-7.c | 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() 456 if (uc & MSB) { in _cv_enconv() 457 if (uc == 0x8e) in _cv_enconv() 562 if (uc & MSB) { in get_plane_no_by_str() 563 if (uc != 0x8e) in get_plane_no_by_str() 565 uc = *(++inbuf); in get_plane_no_by_str() [all …]
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_frontend.c | 315 ucred_t *uc = NULL; in _nscd_get_client_euid() local 326 ucred_free(uc); in _nscd_get_client_euid() 341 ucred_t *uc = NULL; in _nscd_check_client_priv() local 353 ucred_free(uc); in _nscd_check_client_priv() 379 ucred_free(uc); in _nscd_check_client_priv() 414 ucred_getruid(uc), ucred_geteuid(uc), zoneid); in N2N_check_priv() 415 ucred_free(uc); in N2N_check_priv() 424 ucred_getruid(uc), ucred_geteuid(uc), zoneid); in N2N_check_priv() 426 ucred_free(uc); in N2N_check_priv() 440 ucred_t *uc = NULL; in _nscd_APP_check_cred() local [all …]
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | adt_ucred.h | 41 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);
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | wadd_wch.c | 74 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()
|