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