Lines Matching defs:NSEMS
68 #define NSEMS 5
77 static struct sembuf semops[NSEMS];
78 static short maxsemvals[NSEMS];
84 static unsigned short semvals[NSEMS];
172 if ((id = semget(key, NSEMS, IPC_CREAT | IPC_EXCL)) < 0) {
177 for (i = 0; i < NSEMS; i++) {
185 if (semop(id, semops, NSEMS) < 0) {
235 for (i = 0; i < NSEMS; i++) {
263 for (j = 0; j < NSEMS; j++) {
273 if (semop(id, semops, NSEMS) < 0) {
277 for (j = 0; j < NSEMS; j++) {
280 if (semop(id, semops, NSEMS) < 0) {