Lines Matching refs:g_proc
60 static struct ps_prochandle *g_proc;
257 if (pr_fstat64(g_proc, fd, &sbuf) == -1 ||
258 sbuf.st_rdev != Ppsinfo(g_proc)->pr_ttydev)
272 flags = pr_fcntl(g_proc, fd, F_GETFL, NULL);
284 (void) pr_close(g_proc, fd);
286 tmpfd = pr_open(g_proc, file, oflags, 0);
291 Pstatus(g_proc)->pr_pid, file, strerror(errno));
297 (void) pr_fcntl(g_proc, tmpfd, F_DUP2FD,
299 (void) pr_close(g_proc, tmpfd);
304 (void) pr_fcntl(g_proc, *fdp, F_DUP2FD, (void *)(uintptr_t)fd);
314 tmpfd = pr_open(g_proc, "/dev/tty", O_RDWR, 0);
317 (void) pr_fcntl(g_proc, tmpfd, F_DUP2FD, (void *)(uintptr_t)fd);
318 (void) pr_close(g_proc, tmpfd);
367 L = Lgrab(g_proc, lsp->pr_lwpid, &err);
395 lsp->pr_lwpid, lsp->pr_syscall, Pstatus(g_proc)->pr_pid);
400 L = Lgrab(g_proc, lsp->pr_lwpid, &err);
515 g_proc = P;