• Home
  • Raw
  • Download

Lines Matching full:process

1 use rustix::process;
5 assert_eq!(process::getuid(), process::getuid()); in test_getuid()
7 assert_eq!(process::getuid().as_raw(), libc::getuid()); in test_getuid()
8 assert_eq!(process::getuid().is_root(), libc::getuid() == 0); in test_getuid()
14 assert_eq!(process::getgid(), process::getgid()); in test_getgid()
16 assert_eq!(process::getgid().as_raw(), libc::getgid()); in test_getgid()
17 assert_eq!(process::getgid().is_root(), libc::getgid() == 0); in test_getgid()
23 assert_eq!(process::geteuid(), process::geteuid()); in test_geteuid()
25 assert_eq!(process::geteuid().as_raw(), libc::geteuid()); in test_geteuid()
26 assert_eq!(process::geteuid().is_root(), libc::geteuid() == 0); in test_geteuid()
32 assert_eq!(process::getegid(), process::getegid()); in test_getegid()
34 assert_eq!(process::getegid().as_raw(), libc::getegid()); in test_getegid()
35 assert_eq!(process::getegid().is_root(), libc::getegid() == 0); in test_getegid()
41 assert_eq!(process::getpid(), process::getpid()); in test_getpid()
44 process::getpid().as_raw_nonzero().get() as libc::pid_t, in test_getpid()
47 assert_eq!(process::getpid().is_init(), libc::getpid() == 1); in test_getpid()
53 assert_eq!(process::getppid(), process::getppid()); in test_getppid()
56 process::Pid::as_raw(process::getppid()) as libc::pid_t, in test_getppid()
59 if let Some(ppid) = process::getppid() { in test_getppid()
69 assert_eq!(process::getpgid(None), process::getpgid(None)); in test_getpgid()
71 process::getpgid(Some(process::getpid())), in test_getpgid()
72 process::getpgid(Some(process::getpid())) in test_getpgid()
76 process::getpgid(None).unwrap().as_raw_nonzero().get() as libc::pid_t, in test_getpgid()
80 process::getpgid(None).unwrap().is_init(), in test_getpgid()
84 process::getpgid(Some(process::getpid())) in test_getpgid()
95 assert_eq!(process::getpgrp(), process::getpgrp()); in test_getpgrp()
98 process::getpgrp().as_raw_nonzero().get() as libc::pid_t, in test_getpgrp()