Home
last modified time | relevance | path

Searched refs:dirfd (Results 1 – 25 of 26) sorted by relevance

12

/external/valgrind/memcheck/tests/darwin/
Dpth-undocumented.c21 int __pthread_fchdir(int dirfd) in __pthread_fchdir() argument
23 return syscall(SYS___pthread_fchdir, dirfd); in __pthread_fchdir()
28 int dirfd; in main() local
30 dirfd = open("/", O_RDONLY); in main()
31 if (dirfd == -1) in main()
37 if (__pthread_fchdir(dirfd)) in main()
/external/toybox/toys/other/
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);
Dacpi.c35 int read_int_at(int dirfd, char *name)
40 if ((fd = openat(dirfd, name, O_RDONLY)) < 0) return -1;
/external/toybox/lib/
Dportability.h123 int fstatat64(int dirfd, const char *pathname, void *buf, int flags);
124 int readlinkat(int dirfd, const char *pathname, char *buf, size_t bufsiz);
127 int fchmodat(int dirfd, const char *pathname, mode_t mode, int flags);
128 int openat(int dirfd, const char *pathname, int flags, ...);
132 int fchownat(int dirfd, const char *pathname,
135 int unlinkat(int dirfd, const char *pathname, int flags);
Dxwrap.c344 int try = 9999, dirfd = open("/", 0);; in xabspath() local
376 } else len=readlinkat(dirfd, new->str, buf, 4096); in xabspath()
392 fd = openat(dirfd, s, 0); in xabspath()
394 close(dirfd); in xabspath()
395 dirfd = fd; in xabspath()
404 close(dirfd); in xabspath()
405 dirfd = open("/", 0); in xabspath()
418 close(dirfd); in xabspath()
447 close(dirfd); in xabspath()
Dlib.h150 char *readfileat(int dirfd, char *name, char *buf, off_t len);
Dlib.c355 char *readfileat(int dirfd, char *name, char *ibuf, off_t len) in readfileat() argument
360 if (-1 == (fd = openat(dirfd, name, O_RDONLY))) return 0; in readfileat()
/external/toybox/toys/posix/
Dls.c297 static void listfiles(int dirfd, struct dirtree *indir) in listfiles() argument
318 indir->data = dup(dirfd); in listfiles()
472 if (fstatat(dirfd, sort[next]->symlink, &st2, 0)) color = 256+31; in listfiles()
501 listfiles(openat(dirfd, sort[ul]->name, 0), sort[ul]); in listfiles()
504 if (dirfd != AT_FDCWD) close(dirfd); in listfiles()
/external/openssh/openbsd-compat/
Dbsd-closefrom.c84 fd >= 0 && fd < INT_MAX && fd >= lowfd && fd != dirfd(dirp)) in closefrom()
Dgetcwd.c148 if (!(dir = opendir(up)) || fstat(dirfd(dir), &s)) in getcwd()
/external/e2fsprogs/contrib/
Dspd_readdir.c451 int dirfd(DIR *dir) in dirfd() function
/external/lldb/source/Host/common/
DFileSpec.cpp913 long path_max = fpathconf (dirfd (dir_path_dir.get()), _PC_NAME_MAX); in EnumerateDirectory()
/external/ltrace/etc/
Dlibc.so.conf71 int dirfd(DIR *);
/external/compiler-rt/lib/msan/tests/
Dmsan_test.cc719 int dirfd = open(DIR_TO_READ, O_RDONLY); in TEST() local
720 ASSERT_GT(dirfd, 0); in TEST()
721 int res = fstatat(dirfd, SUBFILE_TO_READ, st, 0); in TEST()
726 close(dirfd); in TEST()
/external/bison/
Dmaint.mk682 _de1 = dirfd|(close|(fd)?open|read|rewind|seek|tell)dir(64)?(_r)?
/external/compiler-rt/lib/tsan/rtl/
Dtsan_interceptors.cc85 extern "C" int dirfd(void *dirp);
1921 int fd = dirfd(dirp); in TSAN_INTERCEPTOR()
/external/openssh/
Dconfig.h.in379 /* Define to 1 if you have the `dirfd' function. */
Dconfigure.ac1626 dirfd \
Dconfigure16470 dirfd \
/external/google-breakpad/src/third_party/lss/
Dlinux_syscall_support.h3942 LSS_INLINE _syscall4(int, newfstatat, int, dirfd, const char *, pathname,
/external/compiler-rt/lib/dfsan/
Dlibc_ubuntu1404_abilist.txt1553 fun:dirfd=uninstrumented
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-darwin.c9294 PRE_REG_READ5(int, "getattrlistbulk", int, dirfd, void*, list, in PRE()
/external/valgrind/
DNEWS846 307103 sys_openat: If pathname is absolute, then dirfd is ignored.
/external/sqlite/dist/
Dsqlite3.c29060 int dirfd;
29063 rc = osOpenDirectory(pFile->zPath, &dirfd);
29064 if( rc==SQLITE_OK && dirfd>=0 ){
29065 full_fsync(dirfd, 0, 0);
29066 robust_close(pFile, dirfd, __LINE__);
/external/sqlite/dist/orig/
Dsqlite3.c29042 int dirfd;
29045 rc = osOpenDirectory(pFile->zPath, &dirfd);
29046 if( rc==SQLITE_OK && dirfd>=0 ){
29047 full_fsync(dirfd, 0, 0);
29048 robust_close(pFile, dirfd, __LINE__);

12