Searched refs:execveat (Results 1 - 8 of 8) sorted by relevance
/third_party/rust/crates/rustix/src/ |
H A D | runtime.rs | 227 /// `execveat(dirfd, path.as_c_str(), argv, envp, flags)`—Execute a new 238 /// [Linux]: https://man7.org/linux/man-pages/man2/execveat.2.html 243 pub unsafe fn execveat<Fd: AsFd>( in execveat() functions 250 backend::runtime::syscalls::execveat(dirfd.as_fd(), path, argv, envp, flags) in execveat()
|
/third_party/ltp/testcases/kernel/syscalls/execveat/ |
H A D | execveat.h | 11 ret = execveat(-1, "", NULL, NULL, AT_EMPTY_PATH); in check_execveat() 13 tst_brk(TCONF, "execveat() not supported"); in check_execveat()
|
H A D | execveat03.c | 14 * Starting with kernel 4.14, this case fails, execveat shall returns EINVAL. 33 #include "lapi/execveat.h" 35 #include "execveat.h" 52 TEST(execveat(fd, "", argv, environ, AT_EMPTY_PATH)); in do_child() 53 tst_res(TFAIL | TTERRNO, "execveat() returned unexpected errno"); in do_child()
|
H A D | execveat01.c | 7 * This case checks the basic functionality of the execveat(2): 26 #include "lapi/execveat.h" 28 #include "execveat.h" 57 TEST(execveat(*tc->fd, tc->pathname, argv, environ, tc->flag)); in verify_execveat() 58 tst_res(TFAIL | TTERRNO, "execveat() returns unexpected errno"); in verify_execveat()
|
H A D | execveat02.c | 7 * Check various errnos for execveat(2): 8 * 1) execveat() fails and returns EBADF if dirfd is a invalid file 10 * 2) execveat() fails and returns EINVAL if flag specified is invalid. 11 * 3) execveat() fails and returns ELOOP if the file identified by dirfd and 13 * 4) execveat() fails and returns ENOTDIR if pathname is relative and dirfd 24 #include "lapi/execveat.h" 26 #include "execveat.h" 57 TEST(execveat(*tc->fd, tc->pathname, argv, environ, tc->flag)); in verify_execveat() 60 "execveat() fails unexpectedly, expected: %s", in verify_execveat() 64 "execveat() fail in verify_execveat() [all...] |
/third_party/ltp/include/lapi/ |
H A D | execveat.h | 14 static inline int execveat(int dirfd, const char *pathname, in execveat() function
|
/third_party/rust/crates/nix/test/ |
H A D | test_unistd.rs | 342 if "execveat" == stringify!($syscall) { in common_test() 431 execve_test_factory!(test_execveat_empty, execveat, 434 execve_test_factory!(test_execveat_relative, execveat, 437 execve_test_factory!(test_execveat_absolute, execveat, 442 execve_test_factory!(test_execveat_empty, execveat, File::open("/bin/sh").unwrap().into_raw_fd(), 444 execve_test_factory!(test_execveat_relative, execveat, File::open("/bin/").unwrap().into_raw_fd(), 446 execve_test_factory!(test_execveat_absolute, execveat, File::open("/").unwrap().into_raw_fd(),
|
/third_party/rust/crates/nix/src/ |
H A D | unistd.rs | 911 /// [execveat(2)](https://man7.org/linux/man-pages/man2/execveat.2.html)). 913 /// The `execveat` function allows for another process to be "called" which will 922 pub fn execveat<SA: AsRef<CStr>,SE: AsRef<CStr>>(dirfd: RawFd, pathname: &CStr, args: &[SA], in execveat() functions
|
Completed in 7 milliseconds