Searched refs:psinfo (Results 1 - 2 of 2) sorted by relevance

/pkg/src/tests/api/
H A Dt_misc.py99 """Verify that psinfo gets us some reasonable data."""
101 psinfo = misc.ProcFS.psinfo()
104 self.assertEqual(psinfo.pr_pid, os.getpid())
105 self.assertEqual(psinfo.pr_ppid, os.getppid())
108 self.assertEqual(psinfo.pr_uid, os.getuid())
109 self.assertEqual(psinfo.pr_euid, os.geteuid())
110 self.assertEqual(psinfo.pr_gid, os.getgid())
111 self.assertEqual(psinfo.pr_egid, os.getegid())
117 self.assertEqual(psinfo
[all...]
/pkg/src/modules/
H A Dmisc.py959 def psinfo(): member in class:ProcFS
960 """Read the psinfo file and return its contents."""
974 with open("/proc/self/psinfo", "rb") as f:
990 psinfo = ProcFS.psinfo()
991 if psinfo is None:
993 return psinfo.pr_size * 1024
998 psinfo = ProcFS.psinfo()
999 if psinfo i
[all...]

Completed in 26 milliseconds