Searched defs:dirfd (Results 1 - 10 of 10) sorted by relevance

/external/valgrind/memcheck/tests/darwin/
H A Dpth-undocumented.c21 int __pthread_fchdir(int dirfd) argument
23 return syscall(SYS___pthread_fchdir, dirfd);
28 int dirfd; local
30 dirfd = open("/", O_RDONLY);
31 if (dirfd == -1)
37 if (__pthread_fchdir(dirfd))
/external/toybox/toys/other/
H A Dlspci.c44 int dirfd; local
50 if (-1 == (dirfd = openat(dirtree_parentfd(new), new->name, O_RDONLY)))
56 if (readlinkat(dirfd, "driver", driver, sizeof(driver))) {};
62 if (-1 == (fd = openat(dirfd, *fields, O_RDONLY))) {
63 close(dirfd);
73 close(dirfd);
H A Dacpi.c35 int read_int_at(int dirfd, char *name) argument
40 if ((fd = openat(dirfd, name, O_RDONLY)) < 0) return -1;
/external/e2fsprogs/contrib/
H A Dspd_readdir.c135 real_dirfd = dlsym(RTLD_NEXT, "dirfd");
451 int dirfd(DIR *dir) function
456 DEBUG_DIR(printf("dirfd %d, %p\n", fd, real_dirfd));
/external/toybox/toys/posix/
H A Dls.c297 static void listfiles(int dirfd, struct dirtree *indir) argument
318 indir->data = dup(dirfd);
472 if (fstatat(dirfd, sort[next]->symlink, &st2, 0)) color = 256+31;
501 listfiles(openat(dirfd, sort[ul]->name, 0), sort[ul]);
504 if (dirfd != AT_FDCWD) close(dirfd);
/external/toybox/lib/
H A Dlib.c355 char *readfileat(int dirfd, char *name, char *ibuf, off_t len) argument
360 if (-1 == (fd = openat(dirfd, name, O_RDONLY))) return 0;
H A Dxwrap.c344 int try = 9999, dirfd = open("/", 0);; local
376 } else len=readlinkat(dirfd, new->str, buf, 4096);
383 // For .. just move dirfd
385 // Not a symlink: add to linked list, move dirfd, fail if error
392 fd = openat(dirfd, s, 0);
394 close(dirfd);
395 dirfd = fd;
404 close(dirfd);
405 dirfd = open("/", 0);
418 close(dirfd);
[all...]
/external/compiler-rt/lib/msan/tests/
H A Dmsan_test.cc719 int dirfd = open(DIR_TO_READ, O_RDONLY); local
720 ASSERT_GT(dirfd, 0);
721 int res = fstatat(dirfd, SUBFILE_TO_READ, st, 0);
726 close(dirfd);
/external/sqlite/dist/orig/
H A Dsqlite3.c29042 int dirfd; local
[all...]
/external/sqlite/dist/
H A Dsqlite3.c29060 int dirfd; local
[all...]

Completed in 726 milliseconds