Lines Matching refs:ap

43 	mattr_t	*ap;  in pthread_mutexattr_init()  local
45 if ((ap = lmalloc(sizeof (mattr_t))) == NULL) in pthread_mutexattr_init()
47 ap->pshared = PTHREAD_PROCESS_PRIVATE; in pthread_mutexattr_init()
48 ap->type = PTHREAD_MUTEX_DEFAULT; in pthread_mutexattr_init()
49 ap->protocol = PTHREAD_PRIO_NONE; in pthread_mutexattr_init()
50 ap->robustness = PTHREAD_MUTEX_STALLED; in pthread_mutexattr_init()
51 attr->__pthread_mutexattrp = ap; in pthread_mutexattr_init()
78 mattr_t *ap; in pthread_mutexattr_setpshared() local
80 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL || in pthread_mutexattr_setpshared()
84 ap->pshared = pshared; in pthread_mutexattr_setpshared()
95 mattr_t *ap; in pthread_mutexattr_getpshared() local
97 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL || in pthread_mutexattr_getpshared()
100 *pshared = ap->pshared; in pthread_mutexattr_getpshared()
111 mattr_t *ap; in pthread_mutexattr_setprioceiling() local
113 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL || in pthread_mutexattr_setprioceiling()
116 ap->prioceiling = prioceiling; in pthread_mutexattr_setprioceiling()
128 mattr_t *ap; in pthread_mutexattr_getprioceiling() local
130 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL || in pthread_mutexattr_getprioceiling()
133 *ceiling = ap->prioceiling; in pthread_mutexattr_getprioceiling()
143 mattr_t *ap; in pthread_mutexattr_setprotocol() local
145 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL) in pthread_mutexattr_setprotocol()
151 ap->protocol = protocol; in pthread_mutexattr_setprotocol()
162 mattr_t *ap; in pthread_mutexattr_getprotocol() local
164 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL || in pthread_mutexattr_getprotocol()
167 *protocol = ap->protocol; in pthread_mutexattr_getprotocol()
179 mattr_t *ap; in pthread_mutexattr_setrobust() local
181 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL || in pthread_mutexattr_setrobust()
184 ap->robustness = robust; in pthread_mutexattr_setrobust()
196 mattr_t *ap; in pthread_mutexattr_getrobust() local
198 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL || in pthread_mutexattr_getrobust()
201 *robust = ap->robustness; in pthread_mutexattr_getrobust()
219 mattr_t *ap; in pthread_mutex_init() local
229 if ((ap = attr->__pthread_mutexattrp) == NULL) in pthread_mutex_init()
231 switch (ap->type) { in pthread_mutex_init()
251 type |= ap->pshared | ap->protocol | ap->robustness; in pthread_mutex_init()
252 if (ap->protocol == PTHREAD_PRIO_PROTECT) in pthread_mutex_init()
253 prioceiling = ap->prioceiling; in pthread_mutex_init()
340 mattr_t *ap; in pthread_mutexattr_settype() local
342 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL) in pthread_mutexattr_settype()
353 ap->type = type; in pthread_mutexattr_settype()
364 mattr_t *ap; in pthread_mutexattr_gettype() local
367 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL || in pthread_mutexattr_gettype()