/system/tpm/tpm_manager/server/ |
local_data_store_impl.cc | 83 int dir_fd = HANDLE_EINTR(open(dir_name.c_str(), O_RDONLY | O_DIRECTORY)); local 84 if (dir_fd < 0) { 89 int result = HANDLE_EINTR(fsync(dir_fd)); 92 close(dir_fd); 96 result = IGNORE_EINTR(close(dir_fd));
|
/external/ltp/testcases/kernel/syscalls/fchownat/ |
fchownat02.c | 44 static int dir_fd; variable 86 dir_fd = SAFE_OPEN(cleanup, "./", O_DIRECTORY); 106 TEST(fchownat(dir_fd, TESTFILE_LINK, set_uid, set_gid,
|
fchownat01.c | 46 static int dir_fd; variable 58 {0, 0, 0, &dir_fd, TESTFILE}, 61 {-1, EINVAL, 9999, &dir_fd, TESTFILE}, 99 dir_fd = SAFE_OPEN(cleanup, "./", O_DIRECTORY); 134 if (dir_fd > 0) 135 close(dir_fd);
|
/external/ltp/testcases/kernel/syscalls/readlinkat/ |
readlinkat02.c | 44 static int file_fd, dir_fd; variable 52 {&dir_fd, SYMLINK_FILE, 0, EINVAL}, 53 {&dir_fd, TEST_FILE, BUFF_SIZE, EINVAL}, 55 {&dir_fd, "test_file/test_file", BUFF_SIZE, ENOTDIR}, 90 dir_fd = SAFE_OPEN(cleanup, "./", O_RDONLY); 118 close(dir_fd);
|
readlinkat01.c | 45 static int dir_fd, fd; variable 55 int *dir_fd; member in struct:test_case 61 {&dir_fd, TEST_SYMLINK, TEST_FILE, sizeof(TEST_FILE)-1, 0}, 62 {&dir_fd, abspath, TEST_FILE, sizeof(TEST_FILE)-1, 0}, 76 TEST(readlinkat(*test->dir_fd, test->path, buf, sizeof(buf))); 129 dir_fd = SAFE_OPEN(cleanup, ".", O_DIRECTORY); 139 if (dir_fd > 0 && close(dir_fd)) 140 tst_resm(TWARN | TERRNO, "Failed to close dir_fd");
|
/bionic/libc/bionic/ |
scandir.cpp | 103 int dir_fd = openat(parent_fd, dir_name, O_CLOEXEC | O_DIRECTORY | O_RDONLY); local 104 if (dir_fd != -1) { 105 dir = fdopendir(dir_fd);
|
/external/honggfuzz/ |
input.c | 173 int dir_fd = open(hfuzz->io.inputDir, O_DIRECTORY | O_RDONLY | O_CLOEXEC); local 174 if (dir_fd == -1) { 178 if ((hfuzz->io.inputDirPtr = fdopendir(dir_fd)) == NULL) { 179 close(dir_fd);
|
/external/ltp/testcases/kernel/syscalls/mkdirat/ |
mkdirat01.c | 46 static int dir_fd, fd; variable 51 int *dir_fd; member in struct:test_case 56 {&dir_fd, relpath, 0, 0}, 57 {&dir_fd, abspath, 0, 0}, 68 TEST(mkdirat(*test->dir_fd, test->name, 0600)); 100 dir_fd = SAFE_OPEN(cleanup, testdir, O_DIRECTORY); 105 SAFE_CLOSE(cleanup, dir_fd);
|
mkdirat02.c | 44 static int dir_fd; variable 56 {&dir_fd, TEST_FILE1, EROFS}, 58 {&dir_fd, test_file2, ELOOP}, 104 dir_fd = SAFE_OPEN(cleanup, "test_dir", O_DIRECTORY);
|
/external/ltp/testcases/kernel/syscalls/mknodat/ |
mknodat01.c | 52 static int dir_fd, fd; variable 57 int *dir_fd; member in struct:test_case 62 {&dir_fd, testfile, 0, 0}, 63 {&dir_fd, testfile3, 0, 0}, 76 TEST(mknodat(*test->dir_fd, test->name, S_IFREG, dev)); 141 dir_fd = SAFE_OPEN(cleanup, PATHNAME, O_DIRECTORY); 154 if (dir_fd > 0 && close(dir_fd)) 155 tst_resm(TWARN | TERRNO, "Failed to close(dir_fd)");
|
mknodat02.c | 57 static int dir_fd; variable 64 int *dir_fd; member in struct:test_case_t 72 { &dir_fd, "tnode4", FIFOMODE, EROFS }, 73 { &dir_fd, "tnode5", FREGMODE, EROFS }, 74 { &dir_fd, "tnode6", SOCKMODE, EROFS }, 136 dir_fd = SAFE_OPEN(cleanup, MNT_POINT, O_DIRECTORY); 150 int fd = *(tc->dir_fd); 175 if (dir_fd > 0 && close(dir_fd) < 0) 176 tst_resm(TWARN | TERRNO, "close(%d) failed", dir_fd); [all...] |
/external/ltp/testcases/kernel/syscalls/openat/ |
openat01.c | 47 static int dir_fd, fd; variable 57 int *dir_fd; member in struct:test_case 62 {&dir_fd, TEST_FILE, 0, 0}, 63 {&dir_fd, glob_path, 0, 0}, 73 TEST(openat(*test->dir_fd, test->pathname, O_RDWR, 0600)); 125 dir_fd = SAFE_OPEN(cleanup, TEST_DIR, O_DIRECTORY); 141 if (dir_fd > 0 && close(dir_fd)) 142 tst_resm(TWARN | TERRNO, "close(dir_fd) failed");
|
/external/ltp/testcases/kernel/syscalls/pipe/ |
pipe07.c | 110 int dir_fd, fd; local 116 dir_fd = dirfd(dir); 118 if (dir_fd == -1) 129 if (fd == dir_fd)
|
/external/ltp/testcases/kernel/syscalls/readdir/ |
readdir21.c | 56 static unsigned int dir_fd; variable 71 {&dir_fd, (struct old_linux_dirent *)-1, 112 dir_fd = SAFE_OPEN(cleanup, TEST_DIR4, O_RDONLY | O_DIRECTORY); 140 if (dir_fd > 0) 141 close(dir_fd);
|
/system/tpm/attestation/server/ |
database_impl.cc | 130 int dir_fd = HANDLE_EINTR(open(dir_name.c_str(), O_RDONLY | O_DIRECTORY)); local 131 if (dir_fd < 0) { 136 int result = HANDLE_EINTR(fsync(dir_fd)); 139 close(dir_fd); 143 result = IGNORE_EINTR(close(dir_fd));
|
/frameworks/base/core/jni/ |
fd_utils.cpp | 441 int dir_fd = dirfd(d); local 446 const int fd = ParseFd(e, dir_fd); 484 int dir_fd = dirfd(d); local 487 const int fd = ParseFd(e, dir_fd); 608 int FileDescriptorTable::ParseFd(dirent* e, int dir_fd) { 617 if (fd <= STDERR_FILENO || fd == dir_fd) {
|
/external/libchrome/base/process/ |
launch_posix.cc | 258 const int dir_fd = fd_dir.fd(); local 280 if (fd == dir_fd)
|
/frameworks/native/cmds/installd/ |
utils.cpp | 1002 int32_t dir_fd = dirfd(d); local [all...] |
/external/minijail/ |
libminijail.c | 2203 int dir_fd = dirfd(d); local [all...] |
/external/python/cpython3/Modules/clinic/ |
posixmodule.c.h | 6 "stat($module, /, path, *, dir_fd=None, follow_symlinks=True)\n" 14 " dir_fd\n" 23 "dir_fd and follow_symlinks may not be implemented\n" 27 "It\'s an error to use dir_fd or follow_symlinks when specifying path as\n" 34 os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks); 40 static const char * const _keywords[] = {"path", "dir_fd", "follow_symlinks", NULL}; 43 int dir_fd = DEFAULT_DIR_FD; local 47 path_converter, &path, FSTATAT_DIR_FD_CONVERTER, &dir_fd, &follow_symlinks)) { 50 return_value = os_stat_impl(module, &path, dir_fd, follow_symlinks); 60 "lstat($module, /, path, *, dir_fd=None)\n 81 int dir_fd = DEFAULT_DIR_FD; local 143 int dir_fd = DEFAULT_DIR_FD; local 341 int dir_fd = DEFAULT_DIR_FD; local 697 int dir_fd = DEFAULT_DIR_FD; local 1089 int dir_fd = DEFAULT_DIR_FD; local 1320 int dir_fd = DEFAULT_DIR_FD; local 1467 int dir_fd = DEFAULT_DIR_FD; local 1506 int dir_fd = DEFAULT_DIR_FD; local 1591 int dir_fd = DEFAULT_DIR_FD; local 3100 int dir_fd = DEFAULT_DIR_FD; local 3321 int dir_fd = DEFAULT_DIR_FD; local 3940 int dir_fd = DEFAULT_DIR_FD; local 3993 int dir_fd = DEFAULT_DIR_FD; local [all...] |
/external/python/cpython3/Modules/ |
posixmodule.c | 673 * int dir_fd = DEFAULT_DIR_FD; 1070 int dir_fd; local 1071 if (!dir_fd_converter(o, &dir_fd)) 1073 if (dir_fd != DEFAULT_DIR_FD) { 1074 argument_unavailable_error(NULL, "dir_fd"); 1077 *(int *)p = dir_fd; 1102 path_and_dir_fd_invalid(const char *function_name, path_t *path, int dir_fd) 1104 if (!path->wide && (dir_fd != DEFAULT_DIR_FD) 1110 "%s: can't specify dir_fd without matching path", 1118 dir_fd_and_fd_invalid(const char *function_name, int dir_fd, int fd 7005 int dir_fd = DEFAULT_DIR_FD; local 7053 int dir_fd; local [all...] |