Home
last modified time | relevance | path

Searched refs:dfd (Results 1 – 25 of 29) sorted by relevance

12

/third_party/toybox/toys/other/
Dacpi.c46 int dfd, fd, len, on; in acpi_callback() local
55 if (0 <= (dfd = open((TT.cpath=dirtree_path(tree, NULL)), O_RDONLY))) { in acpi_callback()
56 if ((fd = openat(dfd, "type", O_RDONLY)) < 0) goto done; in acpi_callback()
65 if ((cap = read_int_at(dfd, "capacity")) < 0) { in acpi_callback()
66 if ((max = read_int_at(dfd, "charge_full")) > 0) in acpi_callback()
67 curr = read_int_at(dfd, "charge_now"); in acpi_callback()
68 else if ((max = read_int_at(dfd, "energy_full")) > 0) in acpi_callback()
69 curr = read_int_at(dfd, "energy_now"); in acpi_callback()
75 if ((on = read_int_at(dfd, "online")) >= 0) in acpi_callback()
79 close(dfd); in acpi_callback()
[all …]
/third_party/ltp/testcases/kernel/syscalls/statx/
Dstatx03.c39 uint32_t dfd; member
45 {.dfd = -1, .filename = &test_fname, .flag = 0,
48 {.dfd = AT_FDCWD, .filename = &efault_fname, .flag = 0,
51 {.dfd = AT_FDCWD, .filename = &test_fname, .flag = -1,
54 {.dfd = AT_FDCWD, .filename = &test_fname, .flag = 0,
57 {.dfd = AT_FDCWD, .filename = &empty_fname, .flag = 0,
60 {.dfd = 1, .filename = &test_fname, .flag = 0,
63 {.dfd = AT_FDCWD, .filename = &etoolong_fname, .flag = 0,
72 TEST(statx(tc->dfd, *(tc->filename), tc->flag, in run_test()
/third_party/ltp/testcases/kernel/syscalls/madvise/
Dmadvise08.c42 static int dfd; variable
99 if (dfd > 0) in cleanup()
100 SAFE_CLOSE(dfd); in cleanup()
116 dfd = SAFE_OPEN(dumpname, O_RDONLY); in find_sequence()
118 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
138 SAFE_CLOSE(dfd); in find_sequence()
145 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
150 SAFE_CLOSE(dfd); in find_sequence()
/third_party/ltp/include/lapi/
Dname_to_handle_at.h18 static inline int name_to_handle_at(int dfd, const char *pathname, in name_to_handle_at() argument
22 return tst_syscall(__NR_name_to_handle_at, dfd, pathname, handle, in name_to_handle_at()
35 allocate_file_handle(int dfd, const char *pathname) in allocate_file_handle() argument
45 ret = name_to_handle_at(dfd, pathname, &fh, &mount_id, 0); in allocate_file_handle()
Dopenat2.h50 static inline int openat2(int dfd, const char *pathname, in openat2() argument
53 return tst_syscall(__NR_openat2, dfd, pathname, how, size); in openat2()
/third_party/ltp/testcases/kernel/syscalls/utimensat/
Dutimensat01.c201 static void reset_time(char *pathname, int dfd, int flags, int i) in reset_time() argument
207 TEST(tv->utimensat(dfd, pathname, &ts, flags)); in reset_time()
210 i, dfd, pathname, flags); in reset_time()
226 int dfd = AT_FDCWD, fd = 0, atime_change, mtime_change; in run() local
233 dfd = SAFE_OPEN(TEST_DIR, tc->oflags); in run()
239 reset_time(pathname, dfd, tc->flags, i); in run()
252 TEST(tv->utimensat(dfd, pathname, tsp, tc->flags)); in run()
291 if (dfd != AT_FDCWD) in run()
292 SAFE_CLOSE(dfd); in run()
/third_party/musl/src/linux/
Dfanotify.c10 int dfd, const char *pathname) in fanotify_mark() argument
12 return syscall(SYS_fanotify_mark, fanotify_fd, flags, __SYSCALL_LL_E(mask), dfd, pathname); in fanotify_mark()
/third_party/node/test/pseudo-tty/
Dpty_helper.py14 def pipe(sfd, dfd): argument
25 if dfd == STDOUT:
37 n = os.write(dfd, data)
/third_party/ltp/testcases/kernel/syscalls/name_to_handle_at/
Dname_to_handle_at01.c28 int *dfd; member
85 TEST(name_to_handle_at(*tc->dfd, tc->pathname, fhp, &mount_id, in run()
92 TEST(fd = open_by_handle_at(*tc->dfd, fhp, tc->flags)); in run()
Dname_to_handle_at02.c24 int dfd; member
59 TEST(name_to_handle_at(tc->dfd, *tc->pathname, *tc->fhp, *tc->mount_id, in run()
/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify.h44 int dfd, const char *pathname) in safe_fanotify_mark() argument
48 rval = fanotify_mark(fd, flags, mask, dfd, pathname); in safe_fanotify_mark()
62 #define SAFE_FANOTIFY_MARK(fd, flags, mask, dfd, pathname) \ argument
63 safe_fanotify_mark(__FILE__, __LINE__, (fd), (flags), (mask), (dfd), (pathname))
/third_party/e2fsprogs/util/
Dsymlinks.c276 DIR *dfd; in dirwalk() local
280 if ((dfd = opendir(path)) == NULL) { in dirwalk()
289 while ((dp = readdir(dfd)) != NULL ) { in dirwalk()
303 closedir(dfd); in dirwalk()
/third_party/ltp/testcases/kernel/syscalls/openat2/
Dopenat203.c17 int dfd; member
52 TEST(openat2(tc->dfd, tc->pathname, myhow, tc->size)); in run()
Dopenat201.c19 int *dfd; member
71 TEST(fd = openat2(*tc->dfd, tc->pathname, myhow, tc->size)); in run()
/third_party/ltp/testcases/kernel/syscalls/open_by_handle_at/
Dopen_by_handle_at02.c28 int dfd; member
79 TEST(fd = open_by_handle_at(tc->dfd, *tc->fhp, tc->flags)); in run()
Dopen_by_handle_at01.c29 int *dfd; member
91 TEST(fd = open_by_handle_at(*tc->dfd, *tc->fhp, tc->flags)); in run()
/third_party/FreeBSD/lib/libc/gen/
Dfts.c876 fts_stat(FTS *sp, FTSENT *p, int follow, int dfd) in fts_stat() argument
885 if (dfd == -1) in fts_stat()
886 path = p->fts_accpath, dfd = AT_FDCWD; in fts_stat()
910 if (fstatat(dfd, path, sbp, 0)) { in fts_stat()
912 if (fstatat(dfd, path, sbp, AT_SYMLINK_NOFOLLOW)) { in fts_stat()
920 } else if (fstatat(dfd, path, sbp, AT_SYMLINK_NOFOLLOW)) { in fts_stat()
/third_party/boost/tools/build/doc/src/hljs/styles/
Dgithub.min.css90 background: #dfd;
/third_party/toybox/toys/posix/
Dfind.c336 DIR *dfd = fdopendir(fd); in do_find() local
338 if (dfd) { in do_find()
339 while ((de = readdir(dfd)) && isdotdot(de->d_name)); in do_find()
340 closedir(dfd); in do_find()
/third_party/glib/gio/
Dglocalfileoutputstream.c777 gint dfd, in copy_file_data() argument
812 bytes_written = write (dfd, write_buffer, bytes_to_write); in copy_file_data()
/third_party/vk-gl-cts/external/vulkancts/scripts/
Dohos_gen_framework.py2482 dfd = generateDeviceFeaturesDefs(src) variable
2483 writeDeviceFeatures (api, dfd, os.path.join(outputPath, "vkDeviceFeatures.inl"))
2484 …writeDeviceFeaturesDefaultDeviceDefs (dfd, os.path.join(outputPath, "vkDeviceFeaturesForDefaultDev…
2485 …writeDeviceFeaturesContextDecl (dfd, os.path.join(outputPath, "vkDeviceFeaturesForContextDecl.in…
2486 …writeDeviceFeaturesContextDefs (dfd, os.path.join(outputPath, "vkDeviceFeaturesForContextDefs.in…
Dgen_framework.py2476 dfd = generateDeviceFeaturesDefs(src) variable
2477 writeDeviceFeatures (api, dfd, os.path.join(outputPath, "vkDeviceFeatures.inl"))
2478 …writeDeviceFeaturesDefaultDeviceDefs (dfd, os.path.join(outputPath, "vkDeviceFeaturesForDefaultDev…
2479 …writeDeviceFeaturesContextDecl (dfd, os.path.join(outputPath, "vkDeviceFeaturesForContextDecl.in…
2480 …writeDeviceFeaturesContextDefs (dfd, os.path.join(outputPath, "vkDeviceFeaturesForContextDefs.in…
/third_party/icu/tools/release/java/
Dicu4c.css319 background-color: #dfd;
/third_party/flutter/skia/third_party/externals/icu/
Dicu4c.css349 background-color: #dfd;
/third_party/skia/third_party/externals/icu/
Dicu4c.css349 background-color: #dfd;

12