/titanic_50/usr/src/cmd/mandoc/ |
H A D | term_ps.c | 40 (size_t)((double)(x) * (1000.0 / (double)(p)->ps->scale)) 44 ((double)(x) / (1000.0 / (double)(p)->ps->scale)) 547 p->ps = mandoc_calloc(1, sizeof(struct termp_ps)); in pspdf_alloc() 606 p->ps->scale = 11; in pspdf_alloc() 620 lineheight = PNT2AFM(p, ((double)p->ps->scale * 1.4)); in pspdf_alloc() 622 p->ps->width = p->ps->lastwidth = (size_t)pagex; in pspdf_alloc() 623 p->ps->height = (size_t)pagey; in pspdf_alloc() 624 p->ps->header = pagey - (marginy / 2) - (lineheight / 2); in pspdf_alloc() 625 p->ps->top = pagey - marginy; in pspdf_alloc() 626 p->ps->footer = (marginy / 2) - (lineheight / 2); in pspdf_alloc() [all …]
|
/titanic_50/usr/src/uts/common/inet/sockmods/ |
H A D | sockmod_pfp.c | 272 struct pfpsock *ps; in sockpfp_create() local 320 ps = kmem_zalloc(sizeof (*ps), kmflags); in sockpfp_create() 321 if (ps == NULL) { in sockpfp_create() 326 ps->ps_type = type; in sockpfp_create() 327 ps->ps_proto = proto; in sockpfp_create() 328 rw_init(&ps->ps_bpflock, NULL, RW_DRIVER, NULL); in sockpfp_create() 329 mutex_init(&ps->ps_lock, NULL, MUTEX_DRIVER, NULL); in sockpfp_create() 340 return ((sock_lower_handle_t)ps); in sockpfp_create() 360 struct pfpsock *ps; in pfp_packet() local 368 ps = arg; in pfp_packet() [all …]
|
/titanic_50/usr/src/lib/libnsl/yp/ |
H A D | yp_xdr.c | 120 xdr_ypreq_key(XDR *xdrs, struct ypreq_key *ps) in xdr_ypreq_key() argument 122 return ((bool)(xdr_ypdomain_wrap_string(xdrs, &ps->domain) && in xdr_ypreq_key() 123 xdr_ypmap_wrap_string(xdrs, &ps->map) && in xdr_ypreq_key() 124 xdr_datum(xdrs, &ps->keydat))); in xdr_ypreq_key() 131 xdr_ypreq_nokey(XDR *xdrs, struct ypreq_nokey *ps) in xdr_ypreq_nokey() argument 133 return ((bool)(xdr_ypdomain_wrap_string(xdrs, &ps->domain) && in xdr_ypreq_nokey() 134 xdr_ypmap_wrap_string(xdrs, &ps->map))); in xdr_ypreq_nokey() 141 xdr_ypresp_val(XDR *xdrs, struct ypresp_val *ps) in xdr_ypresp_val() argument 143 return ((bool)(xdr_u_int(xdrs, &ps->status) && in xdr_ypresp_val() 144 xdr_datum(xdrs, &ps->valdat))); in xdr_ypresp_val() [all …]
|
/titanic_50/usr/src/uts/common/syscall/ |
H A D | poll.c | 251 pollstate_t *ps = curthread->t_pollstate; in pollunlock() local 260 if (ps != NULL && ps->ps_depth > 1) { in pollunlock() 261 ps->ps_flags |= POLLSTATE_ULFAIL; in pollunlock() 272 pcp = ps->ps_pcache; in pollunlock() 288 pollstate_t *ps = curthread->t_pollstate; in pollrelock() local 301 pcp = ps->ps_pcache; in pollrelock() 334 pollstate_t *ps; in poll_common() local 410 ps = pollstate_create(); in poll_common() 412 if (ps->ps_pcache == NULL) in poll_common() 413 ps->ps_pcache = pcache_alloc(); in poll_common() [all …]
|
/titanic_50/usr/src/lib/libc/sparc/sys/ |
H A D | ptrace.c | 141 pstatus_t *ps; in ptrace() local 219 ps = &cp->pstatus; in ptrace() 220 if (!(ps->pr_flags & PR_ISTOP)) { in ptrace() 225 if (!(ps->pr_flags & PR_ISTOP)) in ptrace() 307 ps->pr_lwp.pr_reg[R_PSR] = cp->user.u_reg[REG_PSR]; in ptrace() 308 ps->pr_lwp.pr_reg[R_PC] = cp->user.u_reg[REG_PC]; in ptrace() 309 ps->pr_lwp.pr_reg[R_nPC] = cp->user.u_reg[REG_nPC]; in ptrace() 310 ps->pr_lwp.pr_reg[R_Y] = cp->user.u_reg[REG_Y]; in ptrace() 311 ps->pr_lwp.pr_reg[R_G1] = cp->user.u_reg[REG_G1]; in ptrace() 312 ps->pr_lwp.pr_reg[R_G2] = cp->user.u_reg[REG_G2]; in ptrace() [all …]
|
/titanic_50/usr/src/cmd/ypcmd/ |
H A D | yppush.c | 233 static unsigned short send_message(struct server *ps, 537 struct server *ps; in add_server() local 548 if ((ps = (struct server *)malloc((unsigned)sizeof (struct server))) in add_server() 555 strcpy(ps->svc_name, sname); in add_server() 556 ps->state = SSTAT_INIT; in add_server() 557 ps->status = 0; in add_server() 558 ps->oldvers = FALSE; in add_server() 559 ps->xactid = xactid + seq++; in add_server() 560 ps->pnext = server_list; in add_server() 561 server_list = ps; in add_server() [all …]
|
H A D | ypserv_resolv_common.c | 56 xdr_ypfwdreq_key4(XDR *xdrs, struct ypfwdreq_key4 *ps) in xdr_ypfwdreq_key4() argument 58 return (xdr_ypmap_wrap_string(xdrs, &ps->map) && in xdr_ypfwdreq_key4() 59 xdr_datum(xdrs, &ps->keydat) && in xdr_ypfwdreq_key4() 60 xdr_u_long(xdrs, &ps->xid) && in xdr_ypfwdreq_key4() 61 xdr_u_long(xdrs, &ps->ip) && in xdr_ypfwdreq_key4() 62 xdr_u_short(xdrs, &ps->port)); in xdr_ypfwdreq_key4() 67 xdr_ypfwdreq_key6(XDR *xdrs, struct ypfwdreq_key6 *ps) in xdr_ypfwdreq_key6() argument 70 char **addrp = (caddr_t *)&(ps->addr); in xdr_ypfwdreq_key6() 72 return (xdr_ypmap_wrap_string(xdrs, &ps->map) && in xdr_ypfwdreq_key6() 73 xdr_datum(xdrs, &ps->keydat) && in xdr_ypfwdreq_key6() [all …]
|
H A D | ypv1_xdr.c | 54 _xdr_yprequest(XDR *xdrs, struct yprequest *ps) in _xdr_yprequest() argument 68 (int *) &ps->yp_reqtype, in _xdr_yprequest() 69 (char *) &ps->yp_reqbody, in _xdr_yprequest() 77 _xdr_ypresponse(XDR *xdrs, struct ypresponse *ps) in _xdr_ypresponse() argument 91 (int *) &ps->yp_resptype, in _xdr_ypresponse() 92 (char *) &ps->yp_respbody, in _xdr_ypresponse() 102 _xdr_ypbind_oldsetdom(XDR *xdrs, struct ypbind_setdom *ps) 104 char *domain = ps->ypsetdom_domain; 107 xdr_yp_binding(xdrs, &ps->ypsetdom_binding));
|
/titanic_50/usr/src/lib/libc/i386/sys/ |
H A D | ptrace.c | 141 pstatus_t *ps; in ptrace() local 219 ps = &cp->pstatus; in ptrace() 220 if (!(ps->pr_flags & PR_ISTOP)) { in ptrace() 225 if (!(ps->pr_flags & PR_ISTOP)) in ptrace() 301 ps->pr_lwp.pr_reg[GS] = cp->user.u_reg[GS]; in ptrace() 302 ps->pr_lwp.pr_reg[FS] = cp->user.u_reg[FS]; in ptrace() 303 ps->pr_lwp.pr_reg[ES] = cp->user.u_reg[ES]; in ptrace() 304 ps->pr_lwp.pr_reg[DS] = cp->user.u_reg[DS]; in ptrace() 305 ps->pr_lwp.pr_reg[EDI] = cp->user.u_reg[EDI]; in ptrace() 306 ps->pr_lwp.pr_reg[ESI] = cp->user.u_reg[ESI]; in ptrace() [all …]
|
/titanic_50/usr/src/cmd/lp/filter/postscript/postscript/ |
H A D | Makefile | 36 aps.ps \ 37 banner.ps \ 38 baseline.ps \ 39 color.ps \ 40 dpost.ps \ 41 draw.ps \ 42 fatcourier.ps \ 43 forms.ps \ 44 postprint.ps \ 45 ps.requests \ [all …]
|
/titanic_50/usr/src/lib/libast/common/sfio/ |
H A D | sfputr.c | 38 reg uchar* ps; local 49 { if(SFWPEEK(f,ps,p) < 0) 57 { memcpy(ps, s, n); 58 ps += n; 62 { *ps++ = rc; 65 f->next = ps; 89 { *ps++ = rc; 90 f->next = ps; 96 if((ps = (uchar*)memccpy(ps,s,'\0',p)) != NIL(uchar*)) 97 ps -= 1; [all …]
|
H A D | _sfputu.c | 38 reg uchar *s, *ps; local 50 s = ps = &(c[N_ARRAY-1]); 54 n = (ps-s)+1; 56 if(n > 8 || SFWPEEK(f,ps,p) < n) 61 case 8 : *ps++ = *s++; 62 case 7 : *ps++ = *s++; 63 case 6 : *ps++ = *s++; 64 case 5 : *ps++ = *s++; 65 case 4 : *ps++ = *s++; 66 case 3 : *ps++ = *s++; [all …]
|
H A D | _sfputm.c | 39 reg uchar *s, *ps; local 51 s = ps = &(c[N_ARRAY-1]); 57 n = (ps-s)+1; 59 if(n > 8 || SFWPEEK(f,ps,p) < n) 64 case 8 : *ps++ = *s++; 65 case 7 : *ps++ = *s++; 66 case 6 : *ps++ = *s++; 67 case 5 : *ps++ = *s++; 68 case 4 : *ps++ = *s++; 69 case 3 : *ps++ = *s++; [all …]
|
H A D | _sfputl.c | 38 reg uchar *s, *ps; local 48 s = ps = &(c[N_ARRAY-1]); 61 n = (ps-s)+1; 63 if(n > 8 || SFWPEEK(f,ps,p) < n) 68 case 8 : *ps++ = *s++; 69 case 7 : *ps++ = *s++; 70 case 6 : *ps++ = *s++; 71 case 5 : *ps++ = *s++; 72 case 4 : *ps++ = *s++; 73 case 3 : *ps++ = *s++; [all …]
|
/titanic_50/usr/src/lib/libpkg/common/ |
H A D | pkgweb.c | 152 static WEB_SESSION *ps; variable 278 if (ps == NULL) in web_cleanup() 283 if (ps->keystore) { in web_cleanup() 284 (void) close_keystore(err, ps->keystore, NULL); in web_cleanup() 287 ps->keystore = NULL; in web_cleanup() 291 if (ps->uniqfile) { in web_cleanup() 292 (void) remove_dwnld_file(ps->uniqfile); in web_cleanup() 293 free(ps->uniqfile); in web_cleanup() 294 ps->uniqfile = NULL; in web_cleanup() 296 if (ps->link) { in web_cleanup() [all …]
|
/titanic_50/usr/src/uts/common/io/comstar/port/pppt/ |
H A D | pppt.c | 801 pppt_sess_t *ps = ptask->pt_sess; in pppt_lport_task_free() local 804 pppt_sess_rele(ps); in pppt_lport_task_free() 853 pppt_sess_t *ps; in pppt_sess_lookup_locked() local 861 ps = pppt_sess_lookup_by_id_locked(session_id); in pppt_sess_lookup_locked() 862 if (ps == NULL) { in pppt_sess_lookup_locked() 867 tgt = ps->ps_target; in pppt_sess_lookup_locked() 875 ps->ps_stmf_sess->ss_rport->rport_tptid_sz)) { in pppt_sess_lookup_locked() 885 ps->ps_stmf_sess->ss_rport->rport_tptid) != B_TRUE)) { in pppt_sess_lookup_locked() 899 return (ps); in pppt_sess_lookup_locked() 906 pppt_sess_t *ps; in pppt_sess_lookup_by_id_locked() local [all …]
|
/titanic_50/usr/src/lib/libc/port/locale/ |
H A D | euc.c | 105 _EUC_mbsinit(const mbstate_t *ps) in _EUC_mbsinit() argument 108 return (ps == NULL || ((const _EucState *)ps)->want == 0); in _EUC_mbsinit() 129 size_t n, mbstate_t *_RESTRICT_KYWD ps, boolean_t zero) in _EUC_CN_mbrtowc() argument 131 return (_EUC_mbrtowc_impl(pwc, s, n, ps, SS2, 4, 0, 0, zero)); in _EUC_CN_mbrtowc() 137 size_t nms, size_t len, mbstate_t *_RESTRICT_KYWD ps) in _EUC_CN_mbsnrtowcs() argument 139 return (__mbsnrtowcs_std(dst, src, nms, len, ps, _EUC_CN_mbrtowc)); in _EUC_CN_mbsnrtowcs() 144 mbstate_t *_RESTRICT_KYWD ps) in _EUC_CN_wcrtomb() argument 146 return (_EUC_wcrtomb_impl(s, wc, ps, SS2, 4, 0, 0)); in _EUC_CN_wcrtomb() 151 size_t nwc, size_t len, mbstate_t *_RESTRICT_KYWD ps) in _EUC_CN_wcsnrtombs() argument 153 return (__wcsnrtombs_std(dst, src, nwc, len, ps, _EUC_CN_wcrtomb)); in _EUC_CN_wcsnrtombs() [all …]
|
H A D | mbrtowc.c | 37 size_t n, mbstate_t *_RESTRICT_KYWD ps, locale_t loc) in mbrtowc_l() argument 41 if (ps == NULL) in mbrtowc_l() 42 ps = &mbs; in mbrtowc_l() 43 return (loc->ctype->lc_mbrtowc(pwc, s, n, ps, B_FALSE)); in mbrtowc_l() 48 size_t n, mbstate_t *_RESTRICT_KYWD ps) in mbrtowc() argument 50 return (mbrtowc_l(pwc, s, n, ps, uselocale(NULL))); in mbrtowc() 55 size_t n, mbstate_t *_RESTRICT_KYWD ps, locale_t loc) in mbrtowc_nz_l() argument 59 if (ps == NULL) in mbrtowc_nz_l() 60 ps = &mbs; in mbrtowc_nz_l() 61 return (loc->ctype->lc_mbrtowc(pwc, s, n, ps, B_TRUE)); in mbrtowc_nz_l() [all …]
|
H A D | wcsnrtombs.c | 41 size_t nwc, size_t len, mbstate_t *_RESTRICT_KYWD ps, locale_t loc) in wcsnrtombs_l() argument 45 if (ps == NULL) in wcsnrtombs_l() 46 ps = &mbs; in wcsnrtombs_l() 47 return (loc->ctype->lc_wcsnrtombs(dst, src, nwc, len, ps)); in wcsnrtombs_l() 52 size_t nwc, size_t len, mbstate_t *_RESTRICT_KYWD ps) in wcsnrtombs() argument 54 return (wcsnrtombs_l(dst, src, nwc, len, ps, uselocale(NULL))); in wcsnrtombs() 59 size_t nwc, size_t len, mbstate_t *_RESTRICT_KYWD ps, in __wcsnrtombs_std() argument 73 if ((nb = pwcrtomb(buf, *s, ps)) == (size_t)-1) in __wcsnrtombs_std() 87 if ((nb = pwcrtomb(dst, *s, ps)) == (size_t)-1) { in __wcsnrtombs_std() 99 mbsbak = *ps; in __wcsnrtombs_std() [all …]
|
H A D | mbsnrtowcs.c | 40 size_t nms, size_t len, mbstate_t *_RESTRICT_KYWD ps, locale_t loc) in mbsnrtowcs_l() argument 44 if (ps == NULL) in mbsnrtowcs_l() 45 ps = &mbs; in mbsnrtowcs_l() 46 return (loc->ctype->lc_mbsnrtowcs(dst, src, nms, len, ps)); in mbsnrtowcs_l() 51 size_t nms, size_t len, mbstate_t *_RESTRICT_KYWD ps) in mbsnrtowcs() argument 53 return (mbsnrtowcs_l(dst, src, nms, len, ps, uselocale(NULL))); in mbsnrtowcs() 58 size_t nms, size_t len, mbstate_t *_RESTRICT_KYWD ps, in __mbsnrtowcs_std() argument 71 if ((nb = pmbrtowc(&wc, s, nms, ps, B_FALSE)) == in __mbsnrtowcs_std() 86 if ((nb = pmbrtowc(dst, s, nms, ps, B_FALSE)) == (size_t)-1) { in __mbsnrtowcs_std()
|
/titanic_50/usr/src/lib/libc/port/fp/ |
H A D | hex_bin.c | 115 fp_exception_field_type *ps) in __hex_to_single() argument 120 *ps = 0; in __hex_to_single() 128 __pack_single(&u, px, rd, ps); in __hex_to_single() 129 if (*ps != 0) in __hex_to_single() 130 __base_conversion_set_exception(*ps); in __hex_to_single() 136 fp_exception_field_type *ps) in __hex_to_double() argument 141 *ps = 0; in __hex_to_double() 150 __pack_double(&u, px, rd, ps); in __hex_to_double() 151 if (*ps != 0) in __hex_to_double() 152 __base_conversion_set_exception(*ps); in __hex_to_double() [all …]
|
/titanic_50/usr/src/lib/libast/common/stdio/ |
H A D | fgets.c | 31 unsigned char* ps; in _stdgets() local 43 if((p = f->endb - (ps = f->next)) <= 0 ) in _stdgets() 46 if(SFRPEEK(f,ps,p) <= 0) in _stdgets() 54 if((ps = (uchar*)memccpy((char*)is,(char*)ps,'\n',p)) != NIL(uchar*)) in _stdgets() 55 p = ps-is; in _stdgets() 57 ps = f->next+p; in _stdgets() 60 { while(p-- && (*is++ = *ps++) != '\n') in _stdgets() 62 p = ps-f->next; in _stdgets() 65 { reg int c = ps[p-1]; in _stdgets() 67 ps[p-1] = '\n'; in _stdgets() [all …]
|
/titanic_50/usr/src/cmd/bnu/ |
H A D | line.c | 121 register struct sg_spds *ps; local 142 for (ps = spds; ps->sp_val; ps++) 143 if (ps->sp_val == spwant) { 144 speed = ps->sp_name; 156 for (ps = spds; ps->sp_val; ps++) 157 if (ps->sp_name == ospeed) { 158 spwant = ps->sp_val; 399 struct sg_spds *ps; local 415 for (ps = spds; ps->sp_val >= 0; ps++) 416 if (ps->sp_val == spwant) [all …]
|
/titanic_50/usr/src/cmd/eqn/ |
H A D | size.c | 23 ps += atoi(p+1); in setsize() 25 ps -= atoi(p+1); in setsize() 27 ps = atoi(p); in setsize() 28 if (dbg) printf(".\tsetsize %s; ps = %d\n", p, ps); in setsize() 41 yyval, ps, p2, p1, ebase[yyval], eht[yyval]); in size() 42 effps = EFFPS(ps); in size() 45 ps = p1; in size() 62 ps = gsize; in globsize()
|
/titanic_50/usr/src/lib/libbc/libc/gen/common/ |
H A D | float_decim.c | 37 single_to_decimal(px, pm, pd, ps) in single_to_decimal() argument 41 fp_exception_field_type *ps; 46 *ps = 0; /* Initialize *ps - no exceptions. */ 61 _unpacked_to_decimal(&u, pm, pd, ps); 66 extended_to_decimal(px, pm, pd, ps) in extended_to_decimal() argument 70 fp_exception_field_type *ps; 75 *ps = 0; /* Initialize *ps - no exceptions. */ 92 _unpacked_to_decimal(&u, pm, pd, ps);
|