/external/valgrind/memcheck/tests/linux/ |
sys-openat.c | 11 int dfd = open ("/tmp", O_RDONLY); local 12 __attribute__((unused)) int fd1 = openat (dfd, "abc", O_RDONLY);
|
/external/valgrind/memcheck/tests/solaris/ |
syscall_at.c | 1 /* Tests various combinations of dfd and pathname for *at syscalls. 2 In particular, dfd should not be checked when pathname is absolute. 22 int dfd = open(DIRECTORY, O_RDONLY); local 25 linkat(dfd, FILENAME, dfd, FILENAME, 0); 31 symlinkat(FILENAME, dfd, FILENAME); 37 readlinkat(dfd, FILENAME, buf, 1); 44 syscall(SYS_frealpathat, dfd, FILENAME, buf, 1); 50 faccessat(dfd, FILENAME, F_OK, 0); 56 fchownat(dfd, FILENAME, -1, -1, 0) [all...] |
/external/toybox/toys/other/ |
acpi.c | 46 int dfd, fd, len, on; local 55 if (0 <= (dfd = open((TT.cpath=dirtree_path(tree, NULL)), O_RDONLY))) { 56 if ((fd = openat(dfd, "type", O_RDONLY)) < 0) goto done; 65 if ((cap = read_int_at(dfd, "capacity")) < 0) { 66 if ((max = read_int_at(dfd, "charge_full")) > 0) 67 curr = read_int_at(dfd, "charge_now"); 68 else if ((max = read_int_at(dfd, "energy_full")) > 0) 69 curr = read_int_at(dfd, "energy_now"); 75 if ((on = read_int_at(dfd, "online")) >= 0) 79 close(dfd); 87 int dfd, temp; local 110 int dfd=5, cur, max; local [all...] |
/system/vold/ |
main.cpp | 169 int dfd, fd; local 171 dfd = dirfd(d); 173 fd = openat(dfd, "uevent", O_WRONLY | O_CLOEXEC); 188 fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY);
|
/external/e2fsprogs/util/ |
symlinks.c | 272 DIR *dfd; local 276 if ((dfd = opendir(path)) == NULL) { 285 while ((dp = readdir(dfd)) != NULL ) { 299 closedir(dfd);
|
/system/core/init/ |
devices.cpp | 936 int dfd, fd; local 938 dfd = dirfd(d); 940 fd = openat(dfd, "uevent", O_WRONLY); 953 fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY);
|
/bootable/recovery/updater/ |
blockimg.cpp | 693 int dfd = TEMP_FAILURE_RETRY(open(dname.c_str(), O_RDONLY | O_DIRECTORY)); local 694 unique_fd dfd_holder(dfd); 696 if (dfd == -1) { 702 if (ota_fsync(dfd) == -1) { [all...] |
/frameworks/native/cmds/installd/ |
utils.cpp | 319 int dfd; local 321 dfd = dirfd(d); 323 if (dfd < 0) return -1; 343 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); 360 if (unlinkat(dfd, name, AT_REMOVEDIR) < 0) { 365 if (unlinkat(dfd, name, 0) < 0) { 410 int delete_dir_contents_fd(int dfd, const char *name) 415 fd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); 679 int dfd; local 684 dfd = dirfd(dir) [all...] |
commands.cpp | 635 int dfd; local 644 dfd = dirfd(d); 649 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) { 661 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY); 686 int dfd; local 690 dfd = dirfd(d); 691 *codesize += calculate_dir_size(dfd); [all...] |
/external/valgrind/coregrind/m_syswrap/ |
syswrap-solaris.c | 2289 Int dfd = (Int) ARG1; local 4039 Int dfd = (Int) ARG1; local [all...] |