Home
last modified time | relevance | path

Searched refs:AT_FDCWD (Results 1 – 25 of 77) sorted by relevance

1234

/external/valgrind/memcheck/tests/solaris/
Dsyscall_at.c27 linkat(AT_FDCWD, FILENAME, AT_FDCWD, FILENAME, 0); in main()
33 symlinkat(FILENAME, AT_FDCWD, FILENAME); in main()
39 readlinkat(AT_FDCWD, FILENAME, buf, 1); in main()
46 syscall(SYS_frealpathat, AT_FDCWD, FILENAME, buf, 1); in main()
52 faccessat(AT_FDCWD, FILENAME, F_OK, 0); in main()
58 fchownat(AT_FDCWD, FILENAME, -1, -1, 0); in main()
64 renameat(AT_FDCWD, FILENAME, AT_FDCWD, FILENAME); in main()
70 unlinkat(AT_FDCWD, FILENAME, 0); in main()
76 fstatat(AT_FDCWD, FILENAME, &stats, 0); in main()
82 openat(AT_FDCWD, FILENAME, O_RDONLY); in main()
[all …]
/external/ltp/testcases/kernel/syscalls/openat/
Dopenat02.c123 TEST(openat(AT_FDCWD, TEST_FILE, O_APPEND | O_RDWR, 0777)); in testfunc_append()
154 TEST(openat(AT_FDCWD, TEST_FILE, O_CLOEXEC | O_RDWR, 0777)); in testfunc_cloexec()
211 TEST(openat(AT_FDCWD, LARGE_FILE, O_LARGEFILE | O_RDONLY, 0777)); in testfunc_largefile()
246 TEST(openat(AT_FDCWD, TEST_FILE, O_NOATIME | O_RDONLY, 0777)); in testfunc_noatime()
267 TEST(openat(AT_FDCWD, SFILE, O_NOFOLLOW | O_RDONLY, 0777)); in testfunc_nofollow()
281 TEST(openat(AT_FDCWD, TEST_FILE, O_TRUNC | O_RDWR, 0777)); in testfunc_trunc()
Dopenat03.c53 int fd = openat(AT_FDCWD, ".", O_TMPFILE | O_RDWR, 0600); in setup()
67 int fd = openat(AT_FDCWD, ".", O_TMPFILE | O_RDWR, mode); in openat_tmp()
113 SAFE_LINKAT(cleanup, AT_FDCWD, path, AT_FDCWD, "tmpfile", in test01()
181 SAFE_LINKAT(cleanup, AT_FDCWD, path1, AT_FDCWD, path2, in link_tmp_file()
/external/strace/tests-m32/
Dfchownat.c34 #if defined __NR_fchownat && defined AT_FDCWD && defined AT_SYMLINK_NOFOLLOW
49 long rc = syscall(__NR_fchownat, AT_FDCWD, sample, uid, gid, 0); in main()
56 rc = syscall(__NR_fchownat, AT_FDCWD, in main()
/external/strace/tests-mx32/
Dfchownat.c34 #if defined __NR_fchownat && defined AT_FDCWD && defined AT_SYMLINK_NOFOLLOW
49 long rc = syscall(__NR_fchownat, AT_FDCWD, sample, uid, gid, 0); in main()
56 rc = syscall(__NR_fchownat, AT_FDCWD, in main()
/external/strace/tests/
Dfchownat.c34 #if defined __NR_fchownat && defined AT_FDCWD && defined AT_SYMLINK_NOFOLLOW
49 long rc = syscall(__NR_fchownat, AT_FDCWD, sample, uid, gid, 0); in main()
56 rc = syscall(__NR_fchownat, AT_FDCWD, in main()
/external/bison/lib/
Dfcntl.in.h314 #if 0 < AT_FDCWD && AT_FDCWD == 0xffd19553
315 # undef AT_FDCWD
321 #ifndef AT_FDCWD
322 # define AT_FDCWD (-3041965)
/external/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify04.c85 if (fanotify_mark(fd_notify, FAN_MARK_ADD | flag, FAN_OPEN, AT_FDCWD, in check_mark()
103 FAN_OPEN, AT_FDCWD, file) < 0) { in check_mark()
226 FAN_OPEN, AT_FDCWD, fname) < 0) { in main()
232 FAN_OPEN | FAN_ONDIR, AT_FDCWD, dir) < 0) { in main()
243 0, AT_FDCWD, ".") < 0) { in main()
Dfanotify01.c81 FAN_CLOSE | FAN_OPEN, AT_FDCWD, fname) < 0) { in main()
136 FAN_ACCESS, AT_FDCWD, fname) < 0) { in main()
186 FAN_OPEN | FAN_CLOSE, AT_FDCWD, fname) < 0) { in main()
216 FAN_OPEN | FAN_CLOSE, AT_FDCWD, fname) < 0) { in main()
317 FAN_CLOSE | FAN_OPEN, AT_FDCWD, fname) < 0) { in main()
/external/ltp/testcases/kernel/syscalls/futimesat/
Dfutimesat01.c40 #ifndef AT_FDCWD
41 #define AT_FDCWD -100 macro
120 fds[4] = AT_FDCWD; in setup()
/external/ltp/testcases/kernel/syscalls/unlinkat/
Dunlinkat01.c41 #ifndef AT_FDCWD
42 #define AT_FDCWD -100 macro
127 fds[5] = AT_FDCWD; in setup()
/external/ltp/testcases/kernel/syscalls/fchmodat/
Dfchmodat01.c49 #ifndef AT_FDCWD
50 #define AT_FDCWD -100 macro
135 fds[5] = AT_FDCWD; in setup()
/external/ltp/testcases/kernel/syscalls/faccessat/
Dfaccessat01.c49 #ifndef AT_FDCWD
50 #define AT_FDCWD -100 macro
138 fds[5] = AT_FDCWD; in setup()
/external/strace/
Dopen.c58 #ifndef AT_FDCWD
59 # define AT_FDCWD -100 macro
68 if (fd == AT_FDCWD) in print_dirfd()
/external/toybox/toys/posix/
Dcp.c128 int fdout = -1, cfd = try->parent ? try->parent->extra : AT_FDCWD, in cp_node()
242 fdout = AT_FDCWD; in cp_node()
259 fdout = AT_FDCWD; in cp_node()
317 if (fdout == AT_FDCWD) in cp_node()
333 if (fdout == AT_FDCWD) utimensat(cfd, catch, times, AT_SYMLINK_NOFOLLOW); in cp_node()
338 if (fdout != AT_FDCWD) { in cp_node()
482 if (mkpathat(AT_FDCWD, *ss, 0777, 3)) perror_msg_raw(*ss); in install_main()
491 if (mkpathat(AT_FDCWD, TT.destname, 0, 2)) in install_main()
/external/ltp/testcases/kernel/syscalls/fstatat/
Dfstatat01.c41 #ifndef AT_FDCWD
42 #define AT_FDCWD -100 macro
137 fds[5] = AT_FDCWD; in setup()
/external/ltp/testcases/kernel/syscalls/open/
Dopen14.c102 SAFE_LINKAT(cleanup, AT_FDCWD, path, AT_FDCWD, "tmpfile", in test01()
170 SAFE_LINKAT(cleanup, AT_FDCWD, path1, AT_FDCWD, path2, in link_tmp_file()
/external/ltp/include/lapi/
Dfcntl.h94 #ifndef AT_FDCWD
95 # define AT_FDCWD -100 macro
/external/bison/linux-lib/
Dfcntl.h626 #if 0 < AT_FDCWD && AT_FDCWD == 0xffd19553
627 # undef AT_FDCWD
633 #ifndef AT_FDCWD
634 # define AT_FDCWD (-3041965) macro
/external/bison/darwin-lib/
Dfcntl.h626 #if 0 < AT_FDCWD && AT_FDCWD == 0xffd19553
627 # undef AT_FDCWD
633 #ifndef AT_FDCWD
634 # define AT_FDCWD (-3041965) macro
/external/ltp/testcases/kernel/syscalls/utimensat/
Dutimensat01.c54 #ifndef AT_FDCWD
55 #define AT_FDCWD -100 macro
121 dirfd = AT_FDCWD; in main()
/external/linux-kselftest/tools/testing/selftests/exec/
Dexecveat.c254 fail += check_execveat(AT_FDCWD, fullname, 0); in run_tests()
286 fail += check_execveat(AT_FDCWD, fullname_symlink, 0); in run_tests()
299 fail += check_execveat_fail(AT_FDCWD, fullname_symlink, in run_tests()
308 fail += check_execveat(AT_FDCWD, fullname_script, 0); in run_tests()
342 fail += check_execveat_fail(AT_FDCWD, "no-such-file", 0, ENOENT); in run_tests()
/external/ltp/testcases/kernel/syscalls/symlinkat/
Dsymlinkat01.c49 #ifndef AT_FDCWD
50 #define AT_FDCWD -100 macro
67 static int olddirfd, newdirfd = -1, cwd_fd = AT_FDCWD, stdinfd = 0, crapfd =
/external/ltp/testcases/kernel/syscalls/linkat/
Dlinkat01.c62 #ifndef AT_FDCWD
63 #define AT_FDCWD -100 macro
87 static int olddirfd, newdirfd = -1, cwd_fd = AT_FDCWD, stdinfd = 0, badfd =
/external/libbrillo/brillo/
Dfile_utils.cc63 AT_FDCWD, path.value().c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW))); in RegularFileOrDelete()
116 HANDLE_EINTR(openat(AT_FDCWD, in TouchFileInternal()

1234