Searched refs:uc (Results 1 - 25 of 140) sorted by relevance

123456

/illumos-gate/usr/src/lib/libc/port/sys/
H A Dgetpeerucred.c41 ucred_t *uc = *ucp; local
43 if (uc == NULL) {
44 uc = _ucred_alloc();
45 if (uc == NULL)
49 if (syscall(SYS_ucredsys, UCREDSYS_GETPEERUCRED, fd, uc) != 0) {
51 ucred_free(uc);
54 *ucp = uc;
/illumos-gate/usr/src/lib/libc/sparc/gen/
H A D_xregs_clrptr.c38 _xregs_clrptr(ucontext_t *uc) argument
41 uc->uc_mcontext.xrs.xrs_id = 0;
42 uc->uc_mcontext.xrs.xrs_ptr = NULL;
H A Dsiglongjmp.c48 ucontext_t uc; local
49 greg_t *reg = uc.uc_mcontext.gregs;
62 (void) memset(&uc, 0, sizeof (uc));
63 uc.uc_flags = UC_STACK | UC_CPU;
65 uc.uc_stack = bp->sjs_stack;
66 uc.uc_link = bp->sjs_uclink;
72 uc.uc_flags |= UC_SIGMASK;
73 uc.uc_sigmask = bp->sjs_sigmask;
98 (void) setcontext(&uc);
[all...]
/illumos-gate/usr/src/lib/libc/sparcv9/gen/
H A D_xregs_clrptr.c38 _xregs_clrptr(ucontext_t *uc) argument
40 uc->uc_mcontext.xrs.xrs_id = 0;
41 uc->uc_mcontext.xrs.xrs_ptr = NULL;
H A Dsiglongjmp.c45 ucontext_t uc; local
46 greg_t *reg = uc.uc_mcontext.gregs;
59 (void) memset(&uc, 0, sizeof (uc));
60 uc.uc_flags = UC_STACK | UC_CPU;
62 uc.uc_stack = bp->sjs_stack;
63 uc.uc_link = bp->sjs_uclink;
71 uc.uc_flags |= UC_SIGMASK;
72 uc.uc_sigmask = bp->sjs_sigmask;
97 (void) setcontext(&uc);
[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/uts/common/sys/
H A Ducred.h74 #define UCCRED(uc) (prcred_t *)(((uc)->uc_credoff == 0) ? NULL : \
75 ((char *)(uc)) + (uc)->uc_credoff)
78 #define UCPRIV(uc) (prpriv_t *)(((uc)->uc_privoff == 0) ? NULL : \
79 ((char *)(uc)) + (uc)->uc_privoff)
82 #define UCAUD(uc) (auditinfo64_addr_t *)(((uc)
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ducred.c86 ucred_free(ucred_t *uc) argument
88 free(uc);
95 ucred_t *uc; local
97 uc = _ucred_alloc();
99 if (uc == NULL)
102 if (syscall(SYS_ucredsys, UCREDSYS_UCREDGET, pid, uc) != 0) {
103 ucred_free(uc);
107 return (uc);
111 ucred_geteuid(const ucred_t *uc) argument
114 const prcred_t *cr = UCCRED(uc);
125 ucred_getruid(const ucred_t *uc) argument
139 ucred_getsuid(const ucred_t *uc) argument
153 ucred_getegid(const ucred_t *uc) argument
167 ucred_getrgid(const ucred_t *uc) argument
181 ucred_getsgid(const ucred_t *uc) argument
195 ucred_getgroups(const ucred_t *uc, const gid_t **grps) argument
214 ucred_getprivset(const ucred_t *uc, priv_ptype_t set) argument
233 ucred_getpid(const ucred_t *uc) argument
243 ucred_getprojid(const ucred_t *uc) argument
253 ucred_getzoneid(const ucred_t *uc) argument
265 ucred_getlabel(const ucred_t *uc) argument
282 ucred_getpflags(const ucred_t *uc, uint_t flag) argument
318 ucred_getauid(const ucred_t *uc) argument
330 ucred_getasid(const ucred_t *uc) argument
342 ucred_getatid(const ucred_t *uc) argument
356 ucred_getamask(const ucred_t *uc) argument
[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, argument
139 while ((err = usb_pipe_ctrl_xfer_wait(uc->cdata->dev_default_ph,
160 zyd_usb_ctrl_recv(struct zyd_usb *uc, uint8_t request, uint16_t value, argument
181 err = usb_pipe_ctrl_xfer_wait(uc->cdata->dev_default_ph,
218 zyd_usb_loadfirmware(struct zyd_usb *uc, uint8_t *fw, size_t size) argument
229 if (zyd_usb_ctrl_send(uc, ZYD_DOWNLOADREQ, addr, fw, mlen)
239 if (zyd_usb_ctrl_recv(uc, ZYD_DOWNLOADSTS, 0, &stat, sizeof (stat))
341 zyd_usb_open_pipe(struct zyd_usb *uc, argument
365 if (usb_pipe_open(uc
385 zyd_usb_open_pipes(struct zyd_usb *uc) argument
446 zyd_usb_close_pipes(struct zyd_usb *uc) argument
527 zyd_usb_bulk_pipe_send(struct zyd_usb *uc, usb_pipe_handle_t pipe, const void *data, size_t len) argument
600 zyd_usb_intr_pipe_send(struct zyd_usb *uc, usb_pipe_handle_t pipe, const void *data, size_t len) argument
658 zyd_usb_cmd_pipe_send(struct zyd_usb *uc, const void *data, size_t len) argument
683 zyd_usb_cmd_send(struct zyd_usb *uc, uint16_t code, const void *data, size_t len) argument
715 zyd_usb_ioread_req(struct zyd_usb *uc, const void *in_data, size_t in_len, void *out_data, size_t out_len) argument
761 struct zyd_usb *uc; local
823 struct zyd_usb *uc; local
843 zyd_usb_cmd_in_start_polling(struct zyd_usb *uc) argument
874 zyd_usb_cmd_in_stop_polling(struct zyd_usb *uc) argument
889 struct zyd_usb *uc; local
969 struct zyd_usb *uc; local
983 zyd_usb_data_in_start_request(struct zyd_usb *uc) argument
1017 zyd_usb_data_in_enable(struct zyd_usb *uc) argument
1032 zyd_usb_data_in_disable(struct zyd_usb *uc) argument
1044 zyd_usb_send_packet(struct zyd_usb *uc, mblk_t *mp) argument
1085 struct zyd_usb *uc = &sc->usb; local
1137 struct zyd_usb *uc = &sc->usb; local
1153 struct zyd_usb *uc; local
1199 struct zyd_usb *uc; local
1228 struct zyd_usb *uc = &sc->usb; local
1253 struct zyd_usb *uc = &sc->usb; local
[all...]
/illumos-gate/usr/src/boot/lib/libc/string/
H A Dmemccpy.c45 unsigned char uc = c; local
47 if ((*tp++ = *fp++) == uc)
/illumos-gate/usr/src/cmd/fm/eversholt/files/sparc/sun4v/
H A Dgcpu.esc87 ERPT_EVENT(chip, itlb-uc);
88 ERPT_EVENT(core, itlb-uc);
89 ERPT_EVENT(strand, itlb-uc);
90 ERPT_EVENT(chip, dtlb-uc);
91 ERPT_EVENT(core, dtlb-uc);
92 ERPT_EVENT(strand, dtlb-uc);
93 ERPT_EVENT(chip, icache-uc);
94 ERPT_EVENT(core, icache-uc);
95 ERPT_EVENT(chip, dcache-uc);
96 ERPT_EVENT(core, dcache-uc);
[all...]
H A Dgmem.esc57 event ereport.cpu.generic-sparc.mem-uc@level { within(1s)}
68 ereport.cpu.generic-sparc.mem-uc@level<>; \
74 ereport.cpu.generic-sparc.mem-uc@level<>
86 ereport.cpu.generic-sparc.mem-uc@level<>; \
92 ereport.cpu.generic-sparc.mem-uc@level<>
239 * membuf-crc-uc, membuf-other-uc will fault the detector FRU and sender FRU
243 event ereport.cpu.generic-sparc.membuf-crc-uc@CHIP { within(1s) };
244 event ereport.cpu.generic-sparc.membuf-crc-uc@MEM_BUFF { within(1s) };
245 event ereport.cpu.generic-sparc.membuf-crc-uc
[all...]
/illumos-gate/usr/src/uts/intel/ia32/syscall/
H A Dgetcontext.c183 ucontext_t uc; local
202 savecontext(&uc, &curthread->t_hold);
203 if (uc.uc_flags & UC_SIGMASK)
204 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask);
205 if (copyout(&uc, arg, sizeof (uc)))
217 if (copyin(ucp, &uc, sizeof (ucontext_t) -
218 sizeof (uc.uc_filler) -
219 sizeof (uc.uc_mcontext.fpregs))) {
222 if (uc
320 ucontext32_t uc; local
[all...]
/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/uts/sparc/syscall/
H A Dgetcontext.c178 ucontext_t uc; local
203 savecontext(&uc, &curthread->t_hold);
204 if (uc.uc_flags & UC_SIGMASK)
205 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask);
216 uc.uc_mcontext.fpregs.fpu_qcnt = 0;
217 uc.uc_mcontext.fpregs.fpu_q = (struct _fq *)NULL;
219 if (copyout(&uc, arg, sizeof (ucontext_t)))
231 if (copyin(ucp, &uc, sizeof (ucontext_t) -
232 sizeof (uc.uc_filler) -
233 sizeof (uc
425 ucontext32_t uc; local
[all...]
/illumos-gate/usr/src/ucblib/librpcsoc/
H A Dsvc_udp.c367 struct udp_cache *uc; local
373 uc = ALLOC(struct udp_cache, 1);
374 if (uc == NULL) {
378 uc->uc_size = size;
379 uc->uc_nextvictim = 0;
380 uc->uc_entries = ALLOC(cache_ptr, size * SPARSENESS);
381 if (uc->uc_entries == NULL) {
384 FREE(uc, struct udp_cache, 1);
387 BZERO(uc->uc_entries, cache_ptr, size * SPARSENESS);
388 uc
413 struct udp_cache *uc = (struct udp_cache *) su->su_cache; local
484 register struct udp_cache *uc = (struct udp_cache *) su->su_cache; local
[all...]
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dsigsetjmp.c46 ucontext_t uc; local
51 uc.uc_flags = UC_STACK | UC_SIGMASK;
52 __getcontext(&uc);
62 bp->sjs_stack = uc.uc_stack;
67 memcpy(bp->sjs_sigmask, &(uc.uc_sigmask), 3 * sizeof (int));
106 ucontext_t uc; local
111 uc.uc_flags = UC_STACK;
112 __getcontext(&uc);
125 bp->sjs_stack = uc.uc_stack;
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dsetjmp.c45 ucontext_t uc; local
50 uc.uc_flags = UC_STACK | UC_SIGMASK;
51 __getcontext(&uc);
61 bp->sjs_stack = uc.uc_stack;
65 memcpy(bp->sjs_sigmask, &(uc.uc_sigmask), 3 * sizeof (int));
/illumos-gate/usr/src/common/bzip2/
H A Ddecompress.c108 UChar uc; local
197 GET_UCHAR(BZ_X_MAGIC_1, uc);
198 if (uc != BZ_HDR_B) RETURN(BZ_DATA_ERROR_MAGIC);
200 GET_UCHAR(BZ_X_MAGIC_2, uc);
201 if (uc != BZ_HDR_Z) RETURN(BZ_DATA_ERROR_MAGIC);
203 GET_UCHAR(BZ_X_MAGIC_3, uc)
204 if (uc != BZ_HDR_h) RETURN(BZ_DATA_ERROR_MAGIC);
222 GET_UCHAR(BZ_X_BLKHDR_1, uc);
224 if (uc == 0x17) goto endhdr_2;
225 if (uc !
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Ducredsys.c49 struct ucred_s *uc; local
111 uc = cred2ucred(kpc.pc_cr, kpc.pc_cpid, NULL, CRED());
115 err = copyout(uc, buf, uc->uc_size);
117 kmem_free(uc, uc->uc_size);
133 struct ucred_s *uc; local
173 uc = cred2ucred(pcr, pid, NULL, CRED());
177 err = copyout(uc, ubuf, uc
[all...]
/illumos-gate/usr/src/lib/libc/i386/gen/
H A Dmakectxt.c114 ucontext_t uc; local
116 (void) getcontext(&uc);
117 (void) setcontext(uc.uc_link);
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwadd_wch.c76 cchar_t uc; local
108 uc._n = 1;
109 uc._at = cc->_at;
110 uc._co = cc->_co;
116 uc._wc[0] = *p;
117 if (__m_cc_add(w, y, x, &uc, 0, &y, &x) == ERR)
/illumos-gate/usr/src/lib/libast/common/features/
H A Dlimits.c89 unsigned char uc; local
105 uc = 0;
106 uc = ~uc;
108 while (uc >>= 1) val++;
118 uc = 0;
119 uc = ~uc;
132 val = uc;
141 val = (unsigned char)(uc >>
[all...]
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Dsetjmp.c45 ucontext_t uc; local
50 uc.uc_flags = UC_STACK;
51 __getcontext(&uc);
64 bp->sjs_stack = uc.uc_stack;
/illumos-gate/usr/src/tools/ctf/dwarf/common/
H A Dpro_encode_nm.c67 unsigned char uc; local
72 uc = val & DATA_MASK;
75 uc |= MORE_BYTES;
77 *a = uc;

Completed in 107 milliseconds

123456