Lines Matching refs:nsems
865 int nsems = uap->nsems;
871 printf("semget(0x%x, %d, 0%o)\n", key, nsems, semflg);
873 printf("semget(IPC_PRIVATE, %d, 0%o)\n", nsems, semflg);
893 if (nsems < 0 || sema[semid].u.sem_nsems < nsems) {
920 if (nsems <= 0 || nsems > limitseminfo.semmsl) {
922 printf("nsems out of range (0<%d<=%d)\n", nsems,
928 if (nsems > seminfo.semmns - semtot) {
931 nsems, seminfo.semmns - semtot);
933 if (!grow_sem_pool(semtot + nsems)) {
969 sema[semid].u.sem_nsems = nsems;
973 semtot += nsems;
975 sizeof(sema[semid].u.sem_base[0])*nsems);