tag | line | file | source code |
nsems | 54 | ipc/sem.c | static int newary (key_t key, int nsems, int semflg) |
nsems | 61 | ipc/sem.c | if (!nsems) |
nsems | 63 | ipc/sem.c | if (used_sems + nsems > SEMMNS) |
nsems | 72 | ipc/sem.c | size = sizeof (*sma) + nsems * sizeof (struct sem); |
nsems | 73 | ipc/sem.c | used_sems += nsems; |
nsems | 77 | ipc/sem.c | used_sems -= nsems; |
nsems | 91 | ipc/sem.c | sma->sem_nsems = nsems; |
nsems | 102 | ipc/sem.c | int sys_semget (key_t key, int nsems, int semflg) |
nsems | 107 | ipc/sem.c | if (nsems < 0 || nsems > SEMMSL) |
nsems | 110 | ipc/sem.c | return newary(key, nsems, semflg); |
nsems | 114 | ipc/sem.c | return newary(key, nsems, semflg); |
nsems | 119 | ipc/sem.c | if (nsems > sma->sem_nsems) |
nsems | 158 | ipc/sem.c | ushort nsems, *array = NULL; |
nsems | 215 | ipc/sem.c | nsems = sma->sem_nsems; |
nsems | 218 | ipc/sem.c | if (semnum >= nsems) |
nsems | 238 | ipc/sem.c | i = verify_area (VERIFY_WRITE, array, nsems*sizeof(short)); |
nsems | 261 | ipc/sem.c | memcpy_fromfs (sem_io, array, nsems*sizeof(ushort)); |
nsems | 262 | ipc/sem.c | for (i=0; i< nsems; i++) |
nsems | 292 | ipc/sem.c | memcpy_tofs (array, sem_io, nsems*sizeof(ushort)); |
nsems | 326 | ipc/sem.c | for (i=0; i<nsems; i++) |
nsems | 22 | ipc/util.c | extern int sys_semget (key_t key, int nsems, int semflg); |