Home
last modified time | relevance | path

Searched refs:m2_shm_sem (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/cmd/make/bin/
H A Dparallel.cc316 static sem_t* m2_shm_sem = 0; variable
345 if ((m2_shm_id = shmget(key, sizeof(*m2_shm_sem), 0666 | (var ? 0 : IPC_CREAT|IPC_EXCL))) == -1) { in m2_init()
350 if ((m2_shm_sem = (sem_t*) shmat(m2_shm_id, 0, 0666)) == (sem_t*)-1) { in m2_init()
357 if (sem_init(m2_shm_sem, 1, pmake_max_jobs)) { in m2_init()
384 if (m2_shm_sem != 0) { in m2_fini()
385 (void) sem_destroy(m2_shm_sem); in m2_fini()
395 if (m2_shm_sem != 0) { in m2_fini()
396 (void) shmdt((char*) m2_shm_sem); in m2_fini()
402 m2_shm_sem = 0; in m2_fini()
408 if ((m2_shm_id >= 0) && (m2_shm_sem != 0)) { in m2_acquire_job()
[all …]