Home
last modified time | relevance | path

Searched refs:execveat (Results 1 - 8 of 8) sorted by relevance

/third_party/rust/crates/rustix/src/
H A Druntime.rs227 /// `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 Dexecveat.h11 ret = execveat(-1, "", NULL, NULL, AT_EMPTY_PATH); in check_execveat()
13 tst_brk(TCONF, "execveat() not supported"); in check_execveat()
H A Dexecveat03.c14 * 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 Dexecveat01.c7 * 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 Dexecveat02.c7 * 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 Dexecveat.h14 static inline int execveat(int dirfd, const char *pathname, in execveat() function
/third_party/rust/crates/nix/test/
H A Dtest_unistd.rs342 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 Dunistd.rs911 /// [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