Home
last modified time | relevance | path

Searched refs:uc (Results 1 – 25 of 158) 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()
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 Dzyd_usb.c412 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 …]
/illumos-gate/usr/src/uts/sparc/syscall/
H A Dgetcontext.c178 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 Ddecompress.c109 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/intel/syscall/
H A Dgetcontext.c183 ucontext_t uc; in getsetcontext() local
203 if (uc.uc_flags & UC_SIGMASK) in getsetcontext()
205 if (copyout(&uc, arg, sizeof (uc))) in getsetcontext()
218 sizeof (uc.uc_filler) - in getsetcontext()
231 restorecontext(&uc); in getsetcontext()
235 sizeof (uc.uc_stack)); in getsetcontext()
320 ucontext32_t uc; in getsetcontext32() local
336 if (copyout(&uc, arg, sizeof (uc))) in getsetcontext32()
344 if (copyin(ucp, &uc, sizeof (uc) - in getsetcontext32()
345 sizeof (uc.uc_filler) - in getsetcontext32()
[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/cmd/fm/eversholt/files/sparc/sun4v/
H A Dgcpu.esc139 FLT_CPU_UE(chip, itlb-uc, chip-uc);
140 FLT_CPU_UE(core, itlb-uc, core-uc);
142 FLT_CPU_UE(chip, dtlb-uc, chip-uc);
143 FLT_CPU_UE(core, dtlb-uc, core-uc);
149 FLT_CPU_UE(chip, ireg-uc, chip-uc);
150 FLT_CPU_UE(core, ireg-uc, core-uc);
152 FLT_CPU_UE(chip, mreg-uc, chip-uc);
153 FLT_CPU_UE(core, mreg-uc, core-uc);
155 FLT_CPU_UE(chip, freg-uc, chip-uc);
156 FLT_CPU_UE(core, freg-uc, core-uc);
[all …]
H A Dgmem.esc239 * membuf-crc-uc, membuf-other-uc will fault the detector FRU and sender FRU
251 event fault.memory.memlink-uc@CHIP;
258 prop fault.memory.memlink-uc@CHIP
263 prop fault.memory.memlink-uc@MEM_BUFF
278 event upset.memory.memlink-uc@CHIP;
280 prop upset.memory.memlink-uc@CHIP
288 prop fault.memory.memlink-uc@MEM_BUFF
293 prop fault.memory.memlink-uc@CHIP
298 prop fault.memory.memlink-uc@MEM_CTRL
312 prop fault.memory.memlink-uc@CHIP
[all …]
/illumos-gate/usr/src/ucblib/librpcsoc/
H A Dsvc_udp.c367 struct udp_cache *uc; local
374 if (uc == NULL) {
378 uc->uc_size = size;
379 uc->uc_nextvictim = 0;
381 if (uc->uc_entries == NULL) {
389 if (uc->uc_fifo == NULL) {
397 su->su_cache = (char *) uc;
421 victim = uc->uc_fifo[uc->uc_nextvictim];
465 uc->uc_entries[loc] = victim;
466 uc->uc_fifo[uc->uc_nextvictim++] = victim;
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dterm.c589 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 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/lib/libc/port/sys/
H A Dgetpeerucred.c41 ucred_t *uc = *ucp; in getpeerucred() local
43 if (uc == NULL) { in getpeerucred()
44 uc = _ucred_alloc(); in getpeerucred()
45 if (uc == NULL) in getpeerucred()
49 if (syscall(SYS_ucredsys, UCREDSYS_GETPEERUCRED, fd, uc) != 0) { in getpeerucred()
51 ucred_free(uc); in getpeerucred()
54 *ucp = uc; in getpeerucred()
/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/libnsl/rpc/
H A Dti_opts.c174 (void) memcpy(uc, &opt[1], in find_ucred_opt()
210 *uid_out = ucred_geteuid(uc); in __rpc_get_local_uid()
232 lcred->euid = ucred_geteuid(uc); in __rpc_get_local_cred()
233 lcred->egid = ucred_getegid(uc); in __rpc_get_local_cred()
234 lcred->ruid = ucred_getruid(uc); in __rpc_get_local_cred()
235 lcred->rgid = ucred_getrgid(uc); in __rpc_get_local_cred()
236 lcred->pid = ucred_getpid(uc); in __rpc_get_local_cred()
246 ucred_t *ucp = *uc; in svc_getcallerucred()
262 if (*uc == NULL) in svc_getcallerucred()
267 if (*uc == NULL) in svc_getcallerucred()
[all …]
H A Dsvc_dg.c691 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 Dxregs.c56 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 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.c354 unsigned int uc; in yylex() local
420 uc = pch->buf[0]; in yylex()
422 if (uc == '\n') { in yylex()
427 if (uc == '"') in yylex()
429 if (uc == '\\') in yylex()
446 uc = pch->buf[0]; in yylex()
448 if (isalpha(uc) || (uc == '_')) { in yylex()
452 buf[buf_pos++] = (char)uc; in yylex()
457 isdigit(uc) || (uc == '_'))) { in yylex()
491 if (isdigit(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.c60 cchar_t uc; local
88 uc._n = 1;
89 uc._at = cc->_at;
90 uc._co = cc->_co;
96 uc._wc[0] = *p;
97 if (__m_cc_add(w, y, x, &uc, 0, &y, &x) == ERR)
/illumos-gate/usr/src/lib/iconv_modules/zh/common/
H A Dzh_TW-euc%zh_TW-iso2022-7.c322 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 Dnscd_frontend.c315 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 Dadt_ucred.h43 extern au_id_t ucred_getauid(const ucred_t *uc);
44 extern au_asid_t ucred_getasid(const ucred_t *uc);
45 extern const au_mask_t *ucred_getamask(const ucred_t *uc);
46 extern const au_tid64_addr_t *ucred_getatid(const ucred_t *uc);
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwadd_wch.c76 cchar_t uc; in wadd_wch() local
108 uc._n = 1; in wadd_wch()
109 uc._at = cc->_at; in wadd_wch()
110 uc._co = cc->_co; in wadd_wch()
116 uc._wc[0] = *p; in wadd_wch()
117 if (__m_cc_add(w, y, x, &uc, 0, &y, &x) == ERR) in wadd_wch()

1234567