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);
363 struct sem_undo *suptr, **supptr;
371 suptr = SEMU(semu, i);
372 if (suptr->un_proc == NULL) {
374 suptr->un_next = semu_list;
375 semu_list = suptr;
376 suptr->un_cnt = 0;
377 suptr->un_proc = p;
378 return suptr;
388 while ((suptr = *supptr) != NULL) {
389 if (suptr->un_cnt == 0) {
390 suptr->un_proc = NULL;
391 *supptr = suptr->un_next;
394 supptr = &suptr->un_next;
412 struct sem_undo *suptr;
423 suptr = *supptr;
424 if (suptr == NULL) {
425 for (suptr = semu_list; suptr != NULL; suptr = suptr->un_next)
426 if (suptr->un_proc == p)
429 if (suptr == NULL) {
430 suptr = semu_alloc(p);
431 if (suptr == NULL)
434 *supptr = suptr;
441 sunptr = &suptr->un_ent[0];
442 for (i = 0; i < suptr->un_cnt; i++, sunptr++) {
447 suptr->un_cnt--;
448 if (i < suptr->un_cnt)
449 suptr->un_ent[i] =
450 suptr->un_ent[suptr->un_cnt];
456 if (suptr->un_cnt == SEMUME)
459 sunptr = &suptr->un_ent[suptr->un_cnt];
460 suptr->un_cnt++;
470 struct sem_undo *suptr;
475 for (suptr = semu_list; suptr != NULL; suptr = suptr->un_next)
476 for (sunptr = &suptr->un_ent[0],
477 sunend = sunptr + suptr->un_cnt; sunptr < sunend;) {
480 suptr->un_cnt--;
822 struct sem_undo *suptr = NULL;
1017 error = semundo_adjust(p, &suptr, semid,
1037 if (semundo_adjust(p, &suptr, semid,
1168 struct sem_undo *suptr;
1181 for (supptr = &semu_list; (suptr = *supptr) != NULL;
1182 supptr = &suptr->un_next) {
1183 if (suptr->un_proc == p)
1191 if (suptr == NULL) {
1201 suptr->un_cnt));
1206 if (suptr->un_cnt > 0) {
1209 for (ix = 0; ix < suptr->un_cnt; ix++) {
1210 int semid = suptr->un_ent[ix].un_id;
1211 int semnum = suptr->un_ent[ix].un_num;
1212 int adjval = suptr->un_ent[ix].un_adjval;
1222 suptr->un_proc, suptr->un_ent[ix].un_id,
1223 suptr->un_ent[ix].un_num,
1224 suptr->un_ent[ix].un_adjval,
1242 suptr->un_proc = NULL;
1243 *supptr = suptr->un_next;