Home
last modified time | relevance | path

Searched refs:getsid (Results 1 - 25 of 32) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dgetsid.c22 * @tc.desc : Verify getsid process success
27 pid_t sid = getsid(0); in getsid_0100()
28 EXPECT_EQ("getsid_0100", sid, getsid(0)); in getsid_0100()
H A Dsetsid.c42 pid_t sid = getsid(pid); in setsid_0100()
/third_party/ltp/testcases/kernel/containers/pidns/
H A Dpidns02.c21 TST_EXP_EQ_LI(getsid(0), 0); in child_func()
27 TST_EXP_EQ_LI(getsid(0), 1); in child_func()
/third_party/ltp/testcases/kernel/syscalls/getsid/
H A Dgetsid01.c11 * Verify that session IDs returned by getsid() (with argument pid=0)
24 TEST(getsid(0)); in run()
26 tst_res(TFAIL | TTERRNO, "getsid(0) failed in parent"); in run()
35 TEST(getsid(0)); in run()
37 tst_res(TFAIL | TTERRNO, "getsid(0) failed in child"); in run()
H A Dgetsid02.c11 * Verify that getsid(2) fails with ESRCH errno when there is no
22 TST_EXP_FAIL(getsid(unused_pid), ESRCH); in run()
/third_party/python/Lib/test/
H A Dtest_ioctl.py19 if rpgrp not in (os.getpgrp(), os.getsid(0)):
33 ids = (os.getpgrp(), os.getsid(0))
42 ids = (os.getpgrp(), os.getsid(0))
/third_party/musl/src/unistd/
H A Dgetsid.c4 pid_t getsid(pid_t pid) in getsid() function
/third_party/toybox/porting/liteos_a/toys/posix/
H A Dkill.c106 sid = getsid(pid = getpid()); in kill_main()
/third_party/toybox/toys/posix/
H A Dkill.c109 sid = getsid(pid = getpid()); in kill_main()
/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl31.c116 if (pid != getsid(0)) { in setup()
/third_party/musl/porting/liteos_a/user/include/
H A Dunistd.h124 pid_t getsid(pid_t);
/third_party/musl/porting/uniproton/kernel/include/
H A Dunistd.h99 pid_t getsid(pid_t);
/third_party/musl/porting/linux/user/include/
H A Dunistd.h126 pid_t getsid(pid_t);
/third_party/musl/porting/liteos_m/user/include/
H A Dunistd.h124 pid_t getsid(pid_t);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dunistd.h99 pid_t getsid(pid_t);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dunistd.h104 pid_t getsid(pid_t);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dunistd.h99 pid_t getsid(pid_t);
/third_party/musl/include/
H A Dunistd.h163 pid_t getsid(pid_t);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DLockFileManager.cpp116 if (StoredHostID == HostID && getsid(PID) == -1 && errno == ESRCH) in processStillExecuting()
/third_party/toybox/toys/pending/
H A Dgetty.c128 if ((setsid() < 0) && (getpid() != getsid(0))) in open_tty()
/third_party/musl/libc-test/src/api/
H A Dunistd.c292 {pid_t(*p)(pid_t) = getsid;} in f()
/third_party/rust/crates/nix/test/
H A Dtest_unistd.rs217 let none_sid: ::libc::pid_t = getsid(None).unwrap().into(); in test_getsid()
218 let pid_sid: ::libc::pid_t = getsid(Some(getpid())).unwrap().into(); in test_getsid()
/third_party/mksh/
H A DBuild.sh2110 ac_test getsid <<-'EOF'
2112 int main(void) { return ((int)getsid(0)); }
H A Dfuncs.c3468 getsid(kshppid) != getsid(0)) { in c_suspend()
/third_party/rust/crates/nix/src/
H A Dunistd.rs350 /// [getsid(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsid.html).
356 pub fn getsid(pid: Option<Pid>) -> Result<Pid> { in getsid() functions
357 let res = unsafe { libc::getsid(pid.unwrap_or(Pid(0)).into()) }; in getsid()

Completed in 24 milliseconds

12