Lines Matching defs:suptr
141 struct sem_undo *suptr = SEMU(semu, i);
142 suptr->un_proc = NULL;
204 struct sem_undo *new_semu_list, *suptr, *nsuptr;
251 suptr = SEMU(semu, i);
252 if (suptr->un_proc == NULL)
301 for (suptr = semu_list; suptr != NULL; suptr = suptr->un_next) {
304 memcpy(nsuptr, suptr, SEMUSZ);
362 struct sem_undo *suptr, **supptr;
370 suptr = SEMU(semu, i);
371 if (suptr->un_proc == NULL) {
373 suptr->un_next = semu_list;
374 semu_list = suptr;
375 suptr->un_cnt = 0;
376 suptr->un_proc = p;
377 return suptr;
387 while ((suptr = *supptr) != NULL) {
388 if (suptr->un_cnt == 0) {
389 suptr->un_proc = NULL;
390 *supptr = suptr->un_next;
393 supptr = &suptr->un_next;
411 struct sem_undo *suptr;
422 suptr = *supptr;
423 if (suptr == NULL) {
424 for (suptr = semu_list; suptr != NULL; suptr = suptr->un_next)
425 if (suptr->un_proc == p)
428 if (suptr == NULL) {
429 suptr = semu_alloc(p);
430 if (suptr == NULL)
433 *supptr = suptr;
440 sunptr = &suptr->un_ent[0];
441 for (i = 0; i < suptr->un_cnt; i++, sunptr++) {
446 suptr->un_cnt--;
447 if (i < suptr->un_cnt)
448 suptr->un_ent[i] =
449 suptr->un_ent[suptr->un_cnt];
455 if (suptr->un_cnt == SEMUME)
458 sunptr = &suptr->un_ent[suptr->un_cnt];
459 suptr->un_cnt++;
469 struct sem_undo *suptr;
474 for (suptr = semu_list; suptr != NULL; suptr = suptr->un_next)
475 for (sunptr = &suptr->un_ent[0],
476 sunend = sunptr + suptr->un_cnt; sunptr < sunend;) {
479 suptr->un_cnt--;
814 struct sem_undo *suptr = NULL;
1035 error = semundo_adjust(p, &suptr, semid,
1055 if (semundo_adjust(p, &suptr, semid,
1136 struct sem_undo *suptr;
1149 for (supptr = &semu_list; (suptr = *supptr) != NULL;
1150 supptr = &suptr->un_next) {
1151 if (suptr->un_proc == p)
1159 if (suptr == NULL) {
1169 suptr->un_cnt));
1174 if (suptr->un_cnt > 0) {
1177 for (ix = 0; ix < suptr->un_cnt; ix++) {
1178 int semid = suptr->un_ent[ix].un_id;
1179 int semnum = suptr->un_ent[ix].un_num;
1180 int adjval = suptr->un_ent[ix].un_adjval;
1190 suptr->un_proc, suptr->un_ent[ix].un_id,
1191 suptr->un_ent[ix].un_num,
1192 suptr->un_ent[ix].un_adjval,
1210 suptr->un_proc = NULL;
1211 *supptr = suptr->un_next;