/third_party/toybox/toys/other/ |
D | acpi.c | 46 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/ |
D | statx03.c | 39 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/ |
D | madvise08.c | 42 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/musl/src/misc/ |
D | nftw.c | 30 int dfd; in do_nftw() local 69 dfd = open(path, O_RDONLY); in do_nftw() 71 if (dfd < 0 && err == EACCES) type = FTW_DNR; in do_nftw() 72 if (!fd_limit) close(dfd); in do_nftw() 83 if (dfd < 0) { in do_nftw() 87 DIR *d = fdopendir(dfd); in do_nftw() 109 close(dfd); in do_nftw()
|
/third_party/ltp/include/lapi/ |
D | name_to_handle_at.h | 18 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()
|
D | openat2.h | 50 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/ |
D | utimensat01.c | 201 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/node/test/pseudo-tty/ |
D | pty_helper.py | 14 def pipe(sfd, dfd): argument 25 if dfd == STDOUT: 37 n = os.write(dfd, data)
|
/third_party/musl/src/linux/ |
D | fanotify.c | 10 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/ltp/testcases/kernel/syscalls/name_to_handle_at/ |
D | name_to_handle_at01.c | 28 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()
|
D | name_to_handle_at02.c | 24 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/ |
D | fanotify.h | 44 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/ltp/testcases/kernel/syscalls/openat2/ |
D | openat203.c | 17 int dfd; member 52 TEST(openat2(tc->dfd, tc->pathname, myhow, tc->size)); in run()
|
D | openat201.c | 19 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/ |
D | open_by_handle_at02.c | 28 int dfd; member 79 TEST(fd = open_by_handle_at(tc->dfd, *tc->fhp, tc->flags)); in run()
|
D | open_by_handle_at01.c | 29 int *dfd; member 91 TEST(fd = open_by_handle_at(*tc->dfd, *tc->fhp, tc->flags)); in run()
|
/third_party/FreeBSD/lib/libc/gen/ |
D | fts.c | 876 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/toybox/toys/posix/ |
D | find.c | 338 DIR *dfd = fdopendir(fd); in do_find() local 340 if (dfd) { in do_find() 341 while ((de = readdir(dfd)) && isdotdot(de->d_name)); in do_find() 342 closedir(dfd); in do_find()
|
/third_party/libbpf/ |
D | README_OH.md | 39 int BPF_KPROBE(do_unlinkat, int dfd, struct filename *name)
|
/third_party/icu/tools/release/java/ |
D | icu4c.css | 319 background-color: #dfd;
|
/third_party/vk-gl-cts/external/vulkancts/scripts/ |
D | gen_framework.py | 3124 dfd = generateDeviceFeaturesOrPropertiesDefs(api, 'Features') variable 3125 writeDeviceFeatures (api, dfd, os.path.join(outputPath, "vkDeviceFeatures.inl")) 3126 …writeDeviceFeaturesDefaultDeviceDefs (dfd, os.path.join(outputPath, "vkDeviceFeaturesForDefaultDev… 3127 …writeDeviceFeaturesContextDecl (dfd, os.path.join(outputPath, "vkDeviceFeaturesForContextDecl.in… 3128 …writeDeviceFeaturesContextDefs (dfd, os.path.join(outputPath, "vkDeviceFeaturesForContextDefs.in…
|
D | ohos_gen_framework.py | 3142 dfd = generateDeviceFeaturesOrPropertiesDefs(api, 'Features') variable 3143 writeDeviceFeatures (api, dfd, os.path.join(outputPath, "vkDeviceFeatures.inl")) 3144 …writeDeviceFeaturesDefaultDeviceDefs (dfd, os.path.join(outputPath, "vkDeviceFeaturesForDefaultDev… 3145 …writeDeviceFeaturesContextDecl (dfd, os.path.join(outputPath, "vkDeviceFeaturesForContextDecl.in… 3146 …writeDeviceFeaturesContextDefs (dfd, os.path.join(outputPath, "vkDeviceFeaturesForContextDefs.in…
|
D | gen_framework_sc.py | 3048 dfd = generateDeviceFeaturesDefs(args.api, src) variable 3049 writeDeviceFeatures (api, dfd, os.path.join(outputPath, "vkDeviceFeatures.inl")) 3050 …writeDeviceFeaturesDefaultDeviceDefs (dfd, os.path.join(outputPath, "vkDeviceFeaturesForDefaultDev… 3051 …writeDeviceFeaturesContextDecl (dfd, os.path.join(outputPath, "vkDeviceFeaturesForContextDecl.in… 3052 …writeDeviceFeaturesContextDefs (dfd, os.path.join(outputPath, "vkDeviceFeaturesForContextDefs.in…
|
/third_party/skia/third_party/externals/icu/ |
D | icu4c.css | 349 background-color: #dfd;
|
/third_party/flutter/skia/third_party/externals/icu/ |
D | icu4c.css | 349 background-color: #dfd;
|