Home
last modified time | relevance | path

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

/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dsetns.c41 int result = setns(fd, 0); in setns_0100()
59 int result = setns(fd, nstype); in setns_0200()
/third_party/ltp/testcases/kernel/containers/userns/
H A Duserns04.c12 * namespace and the setns() call fails.
28 TST_EXP_FAIL(setns(fd, CLONE_NEWUSER), EPERM); in child_fn2()
60 TST_EXP_PASS(setns(fd, CLONE_NEWUSER)); in run()
/third_party/rust/crates/rustix/src/thread/
H A Dmod.rs12 mod setns; modules
35 pub use setns::*;
H A Dsetns.rs90 /// - [`setns`]
92 /// [`setns`]: https://man7.org/linux/man-pages/man2/setns.2.html
98 syscalls::setns(fd, allowed_type).map(|_r| ()) in move_into_link_name_space()
107 /// - [`setns`]
109 /// [`setns`]: https://man7.org/linux/man-pages/man2/setns.2.html
114 syscalls::setns(fd, allowed_types.bits() as c_int).map(|_r| ()) in move_into_thread_name_spaces()
/third_party/toybox/toys/other/
H A Dnsenter.c71 #define setns(fd, nstype) syscall(SYS_setns, fd, nstype) macro
158 if (setns(fd = xopenro(filename), flags[i])) perror_exit("setns"); in unshare_main()
/third_party/musl/src/linux/
H A Dsetns.c5 int setns(int fd, int nstype) in setns() function
/third_party/ltp/include/lapi/
H A Dsetns.h14 static inline int setns(int fd, int nstype) in setns() function
/third_party/rust/crates/rustix/tests/thread/
H A Dmain.rs13 mod setns; modules
/third_party/rust/crates/nix/src/
H A Dsched.rs138 /// See also [setns(2)](https://man7.org/linux/man-pages/man2/setns.2.html)
139 pub fn setns(fd: RawFd, nstype: CloneFlags) -> Result<()> { in setns() functions
140 let res = unsafe { libc::setns(fd, nstype.bits()) }; in setns()
/third_party/ltp/testcases/kernel/syscalls/
H A DMakefile29 sched_getaffinity sched_setaffinity sendmsg setgroups setns sighold \
/third_party/rust/crates/rustix/src/backend/libc/thread/
H A Dsyscalls.rs293 pub(crate) fn setns(fd: BorrowedFd, nstype: c::c_int) -> io::Result<c::c_int> {
294 unsafe { ret_c_int(c::setns(borrowed_fd(fd), nstype)) }
/third_party/musl/porting/liteos_a/user/include/
H A Dsched.h74 int setns(int, int);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dsched.h66 int setns(int, int);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dsched.h66 int setns(int, int);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dsched.h68 int setns(int, int);
/third_party/musl/porting/uniproton/kernel/include/
H A Dsched.h66 int setns(int, int);
/third_party/musl/porting/linux/user/include/
H A Dsched.h80 int setns(int, int);
/third_party/musl/porting/liteos_m/user/include/
H A Dsched.h78 int setns(int, int);
/third_party/musl/include/
H A Dsched.h91 int setns(int, int);
/third_party/rust/crates/rustix/src/backend/linux_raw/thread/
H A Dsyscalls.rs288 pub(crate) fn setns(fd: BorrowedFd, nstype: c::c_int) -> io::Result<c::c_int> {
/third_party/ltp/lib/
H A Dtst_safe_macros.c18 #include "lapi/setns.h"
465 ret = setns(fd, nstype); in safe_setns()
468 tst_brk_(file, lineno, TBROK | TERRNO, "setns(%i, %i) failed", in safe_setns()
472 "Invalid setns(%i, %i) return value %d", fd, nstype, in safe_setns()
/third_party/mesa3d/src/mesa/x86/
H A Dassyntax.h635 #define SETNS(a) CHOICE(setns a, setns a, setna a)
1348 #define SETNS(a) setns a
/third_party/rust/crates/libc/src/unix/linux_like/android/
H A Dmod.rs3256 pub fn setns(fd: ::c_int, nstype: ::c_int) -> ::c_int; in setns() functions
/third_party/rust/crates/libc/src/unix/linux_like/linux/
H A Dmod.rs4154 pub fn setns(fd: ::c_int, nstype: ::c_int) -> ::c_int; in setns() functions
/third_party/rust/crates/bindgen/bindgen-tests/tests/
H A Dstylo.hpp17337 extern int setns (int __fd, int __nstype) throw ();
[all...]

Completed in 56 milliseconds