Lines Matching refs:shstate
1845 } *shstate;
2021 if ((shstate = (void *)mmap(NULL, shstatelen,
2027 if (sema_init(&shstate->sem, 0, USYNC_PROCESS, NULL) != 0) {
2029 (void) munmap((char *)shstate, shstatelen);
2032 shstate->log.logfile = NULL;
2033 shstate->log.buflen = shstatelen - sizeof (*shstate);
2034 shstate->log.loglen = shstate->log.buflen;
2035 shstate->log.buf = (char *)shstate + sizeof (*shstate);
2036 shstate->log.log = shstate->log.buf;
2037 shstate->log.locale = parents_locale;
2038 shstate->status = -1;
2095 (void) sema_wait(&shstate->sem);
2096 (void) sema_destroy(&shstate->sem);
2097 if (shstate->status != 0)
2103 (void) fprintf(stderr, "%s", shstate->log.buf);
2104 _exit(shstate->status == 0 ? 0 : 1);
2122 zlogp = &shstate->log;
2220 shstate->status = 0;
2221 (void) sema_post(&shstate->sem);
2222 (void) munmap((char *)shstate, shstatelen);
2223 shstate = NULL;
2276 if (shstate != NULL) {
2277 shstate->status = -1;
2278 (void) sema_post(&shstate->sem);
2279 (void) munmap((char *)shstate, shstatelen);