Lines Matching refs:ap

39 	mattr_t	*ap;
41 if ((ap = lmalloc(sizeof (mattr_t))) == NULL)
43 ap->pshared = PTHREAD_PROCESS_PRIVATE;
44 ap->type = PTHREAD_MUTEX_DEFAULT;
45 ap->protocol = PTHREAD_PRIO_NONE;
46 ap->robustness = PTHREAD_MUTEX_STALLED;
47 attr->__pthread_mutexattrp = ap;
74 mattr_t *ap;
76 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL ||
80 ap->pshared = pshared;
91 mattr_t *ap;
93 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL ||
96 *pshared = ap->pshared;
107 mattr_t *ap;
109 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL ||
112 ap->prioceiling = prioceiling;
124 mattr_t *ap;
126 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL ||
129 *ceiling = ap->prioceiling;
139 mattr_t *ap;
141 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL)
147 ap->protocol = protocol;
158 mattr_t *ap;
160 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL ||
163 *protocol = ap->protocol;
175 mattr_t *ap;
177 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL ||
180 ap->robustness = robust;
192 mattr_t *ap;
194 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL ||
197 *robust = ap->robustness;
210 mattr_t *ap;
219 if ((ap = attr->__pthread_mutexattrp) == NULL)
221 type = ap->pshared | ap->type | ap->protocol | ap->robustness;
222 if (ap->protocol == PTHREAD_PRIO_PROTECT)
223 prioceiling = ap->prioceiling;
278 mattr_t *ap;
280 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL)
295 ap->type = type;
306 mattr_t *ap;
309 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL ||
312 switch (ap->type) {