Home
last modified time | relevance | path

Searched refs:openat2 (Results 1 - 12 of 12) sorted by relevance

/third_party/rust/crates/rustix/src/fs/
H A Dopenat2.rs6 /// `openat2(dirfd, path, OpenHow { oflags, mode, resolve }, sizeof(OpenHow))`
11 /// [Linux]: https://man7.org/linux/man-pages/man2/openat2.2.html
13 pub fn openat2<Fd: AsFd, P: path::Arg>( in openat2() functions
21 backend::fs::syscalls::openat2(dirfd.as_fd(), path, oflags, mode, resolve) in openat2()
H A Dmod.rs53 mod openat2; modules
207 pub use openat2::openat2;
/third_party/rust/crates/rustix/tests/fs/
H A Dopenat2.rs2 use rustix::fs::{cwd, mkdirat, openat, openat2, symlinkat, Mode, OFlags, ResolveFlags};
5 /// Like `openat2`, but keep retrying until it fails or succeeds.
15 match openat2(dirfd.as_fd(), &path, oflags, mode, resolve) { in openat2_more()
28 // Detect whether `openat2` is available. in test_openat2()
29 match openat2( in test_openat2()
H A Dmain.rs37 mod openat2; modules
/third_party/ltp/include/lapi/
H A Dopenat2.h19 * Arguments for how openat2(2) should open the target path. If only @flags and
20 * @mode are non-zero, then openat2(2) operates very similarly to openat(2).
36 /* how->resolve flags for openat2(2). */
50 static inline int openat2(int dfd, const char *pathname, in openat2() function
/third_party/libbpf/include/uapi/linux/
H A Dfcntl.h6 #include <linux/openat2.h>
/third_party/ltp/testcases/kernel/syscalls/openat2/
H A Dopenat202.c5 * openat2() tests with various resolve flags.
8 #include "lapi/openat2.h"
48 TEST(openat2(AT_FDCWD, tc->pathname, how, sizeof(*how))); in run()
52 tst_res(TFAIL | TTERRNO, "%s: openat2() failed", in run()
58 tst_res(TPASS, "%s: openat2() passed", tc->name); in run()
62 tst_res(TFAIL, "%s: openat2() passed unexpectedly", in run()
68 tst_res(TFAIL | TTERRNO, "%s: openat2() should fail with %s", in run()
73 tst_res(TPASS | TTERRNO, "%s: openat2() failed as expected", in run()
H A Dopenat201.c5 * Basic openat2() test.
8 #include "lapi/openat2.h"
71 TEST(fd = openat2(*tc->dfd, tc->pathname, myhow, tc->size)); in run()
73 tst_res(TFAIL | TTERRNO, "openat2() failed (%d)", n); in run()
80 tst_res(TPASS, "openat2() passed (%d)", n); in run()
H A Dopenat203.c5 * Basic openat2() test to check various failures.
8 #include "lapi/openat2.h"
52 TEST(openat2(tc->dfd, tc->pathname, myhow, tc->size)); in run()
56 tst_res(TFAIL, "%s: openat2() passed unexpectedly", in run()
62 tst_res(TFAIL | TTERRNO, "%s: openat2() should fail with %s", in run()
67 tst_res(TPASS | TTERRNO, "%s: openat2() failed as expected", tc->name); in run()
/third_party/libbpf/scripts/
H A Dsync-kernel.sh46 [tools/include/uapi/linux/openat2.h]=include/uapi/linux/openat2.h \
/third_party/rust/crates/linux-raw-sys/gen/modules/
H A Dgeneral.h56 #include <linux/openat2.h>
/third_party/rust/crates/rustix/src/backend/libc/fs/
H A Dsyscalls.rs1264 pub(crate) fn openat2(

Completed in 5 milliseconds