Searched defs:dirfd (Results 1 - 25 of 43) sorted by last modified time

12

/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/net/
H A Dnetstat.c237 int pid, dirfd; local
246 if (-1==(dirfd = openat(dirtree_parentfd(node), s, O_RDONLY))) return 0;
247 if (!(dp = fdopendir(dirfd))) {
248 close(dirfd);
255 if (!readlinkat0(dirfd, entry->d_name, s, sizeof(toybuf)-256)) continue;
/external/toybox/toys/other/
H A Dacpi.c32 static int read_int_at(int dirfd, char *name) argument
37 if ((fd = openat(dirfd, name, O_RDONLY)) < 0) return -1;
H A Dlspci.c44 int dirfd; local
50 if (-1 == (dirfd = openat(dirtree_parentfd(new), new->name, O_RDONLY)))
55 readlinkat0(dirfd, "driver", driver, sizeof(driver));
61 if (-1 == (fd = openat(dirfd, *fields, O_RDONLY))) {
62 close(dirfd);
72 close(dirfd);
/external/toybox/toys/posix/
H A Dls.c289 static void listfiles(int dirfd, struct dirtree *indir) argument
297 if (-1 == dirfd) {
323 } else dirtree_recurse(indir, filter, dup(dirfd),
495 if (fstatat(dirfd, sort[next]->symlink, &st2, 0)) color = 256+31;
523 listfiles(openat(dirfd, sort[ul]->name, 0), sort[ul]);
527 if (dirfd != AT_FDCWD) close(dirfd);
564 TT.files->dirfd = AT_FDCWD;
/external/toybox/lib/
H A Ddirtree.c36 int fd = parent ? parent->dirfd : AT_FDCWD;
97 return node->parent ? node->parent->dirfd : AT_FDCWD;
128 // callback(). Uses and closes supplied ->dirfd.
131 int (*callback)(struct dirtree *node), int dirfd, int flags)
137 node->dirfd = dirfd;
138 if (node->dirfd == -1 || !(dir = fdopendir(node->dirfd))) {
144 close(node->dirfd);
171 node->dirfd
130 dirtree_recurse(struct dirtree *node, int (*callback)(struct dirtree *node), int dirfd, int flags) argument
[all...]
H A Dlib.c464 char *readfileat(int dirfd, char *name, char *ibuf, off_t *plen) argument
473 if (-1 == (fd = openat(dirfd, name, O_RDONLY))) return 0;
1173 int readlinkat0(int dirfd, char *path, char *buf, int len) argument
1177 len = readlinkat(dirfd, path, buf, len-1);
H A Dlib.h88 int dirfd; member in struct:dirtree
99 int dirfd, int symfollow);
193 char *readfileat(int dirfd, char *name, char *buf, off_t *len);
235 int readlinkat0(int dirfd, char *path, char *buf, int len);
H A Dxwrap.c474 int try = 9999, dirfd = open("/", 0);; local
506 } else len = readlinkat(dirfd, new->str, libbuf, sizeof(libbuf));
513 // For .. just move dirfd
515 // Not a symlink: add to linked list, move dirfd, fail if error
522 fd = openat(dirfd, s, 0);
524 close(dirfd);
525 dirfd = fd;
534 close(dirfd);
535 dirfd = open("/", 0);
548 close(dirfd);
[all...]
/external/tcpdump/
H A Dtcpdump.c243 int dirfd; member in struct:dump_info
1909 dumpinfo.dirfd = open(dirname(WFileName),
1911 if (dumpinfo.dirfd < 0) {
1917 if (cap_rights_limit(dumpinfo.dirfd, &rights) < 0 &&
1921 if (cap_fcntls_limit(dumpinfo.dirfd, CAP_FCNTL_GETFL) < 0 &&
2366 fd = openat(dump_info->dirfd,
2438 fd = openat(dump_info->dirfd, dump_info->CurrentFileName,
/external/syslinux/extlinux/
H A Dmain.c514 int fd = -1, dirfd = -1; local
528 dirfd = open(path, O_RDONLY | O_DIRECTORY);
529 if (dirfd < 0) {
558 close(dirfd);
589 if (dirfd >= 0)
590 close(dirfd);
673 int dirfd = -1; local
682 dirfd = open(path, O_RDONLY | O_DIRECTORY);
683 if (dirfd < 0) {
713 close(dirfd);
[all...]
/external/strace/tests/
H A Dfanotify_mark.c47 uint64_t mask, const char *mask_str, kernel_ulong_t dirfd,
65 dirfd, path);
46 do_call(kernel_ulong_t fd, kernel_ulong_t flags, const char *flags_str, uint64_t mask, const char *mask_str, kernel_ulong_t dirfd, const char *dirfd_str, kernel_ulong_t path, const char *path_str) argument
H A Dfile_handle.c77 do_name_to_handle_at(kernel_ulong_t dirfd, const char *dirfd_str, argument
87 rc = syscall(__NR_name_to_handle_at, dirfd, pathname, handle, mount_id,
H A Dfutimesat.c53 k_futimesat(const kernel_ulong_t dirfd, argument
57 long rc = syscall(__NR_futimesat, dirfd, pathname, times);
78 /* dirfd */
H A Dutimensat.c53 k_utimensat(const kernel_ulong_t dirfd, argument
58 long rc = syscall(__NR_utimensat, dirfd, pathname, times, flags);
79 /* dirfd */
/external/sqlite/dist/orig/
H A Dsqlite3.c33544 int dirfd; local
[all...]
/external/sqlite/dist/
H A Dsqlite3.c33544 int dirfd; local
[all...]
/external/strace/tests-m32/
H A Dfanotify_mark.c47 uint64_t mask, const char *mask_str, kernel_ulong_t dirfd,
65 dirfd, path);
46 do_call(kernel_ulong_t fd, kernel_ulong_t flags, const char *flags_str, uint64_t mask, const char *mask_str, kernel_ulong_t dirfd, const char *dirfd_str, kernel_ulong_t path, const char *path_str) argument
H A Dfile_handle.c77 do_name_to_handle_at(kernel_ulong_t dirfd, const char *dirfd_str, argument
87 rc = syscall(__NR_name_to_handle_at, dirfd, pathname, handle, mount_id,
H A Dfutimesat.c53 k_futimesat(const kernel_ulong_t dirfd, argument
57 long rc = syscall(__NR_futimesat, dirfd, pathname, times);
78 /* dirfd */
H A Dutimensat.c53 k_utimensat(const kernel_ulong_t dirfd, argument
58 long rc = syscall(__NR_utimensat, dirfd, pathname, times, flags);
79 /* dirfd */
/external/strace/tests-mx32/
H A Dfanotify_mark.c47 uint64_t mask, const char *mask_str, kernel_ulong_t dirfd,
65 dirfd, path);
46 do_call(kernel_ulong_t fd, kernel_ulong_t flags, const char *flags_str, uint64_t mask, const char *mask_str, kernel_ulong_t dirfd, const char *dirfd_str, kernel_ulong_t path, const char *path_str) argument
H A Dfile_handle.c77 do_name_to_handle_at(kernel_ulong_t dirfd, const char *dirfd_str, argument
87 rc = syscall(__NR_name_to_handle_at, dirfd, pathname, handle, mount_id,
H A Dfutimesat.c53 k_futimesat(const kernel_ulong_t dirfd, argument
57 long rc = syscall(__NR_futimesat, dirfd, pathname, times);
78 /* dirfd */
H A Dutimensat.c53 k_utimensat(const kernel_ulong_t dirfd, argument
58 long rc = syscall(__NR_utimensat, dirfd, pathname, times, flags);
79 /* dirfd */

Completed in 790 milliseconds

12