Lines Matching refs:g_proc
58 static struct ps_prochandle *g_proc; variable
255 if (pr_fstat64(g_proc, fd, &sbuf) == -1 || in fd_cb()
256 sbuf.st_rdev != Ppsinfo(g_proc)->pr_ttydev) in fd_cb()
270 flags = pr_fcntl(g_proc, fd, F_GETFL, NULL, 0); in fd_cb()
282 (void) pr_close(g_proc, fd); in fd_cb()
284 tmpfd = pr_open(g_proc, file, oflags, 0); in fd_cb()
289 Pstatus(g_proc)->pr_pid, file, strerror(errno)); in fd_cb()
295 (void) pr_fcntl(g_proc, tmpfd, F_DUP2FD, in fd_cb()
297 (void) pr_close(g_proc, tmpfd); in fd_cb()
302 (void) pr_fcntl(g_proc, *fdp, F_DUP2FD, (void *)(uintptr_t)fd, in fd_cb()
313 tmpfd = pr_open(g_proc, "/dev/tty", O_RDWR, 0); in fd_cb()
316 (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()