Home
last modified time | relevance | path

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

12

/external/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 …]
/external/ltp/testcases/kernel/syscalls/statx/
Dstatx03.c49 uint32_t dfd; member
55 {.dfd = -1, .filename = &test_fname, .flag = 0,
58 {.dfd = AT_FDCWD, .filename = &efault_fname, .flag = 0,
61 {.dfd = AT_FDCWD, .filename = &test_fname, .flag = -1,
64 {.dfd = AT_FDCWD, .filename = &test_fname, .flag = 0,
67 {.dfd = AT_FDCWD, .filename = &empty_fname, .flag = 0,
70 {.dfd = 1, .filename = &test_fname, .flag = 0,
73 {.dfd = AT_FDCWD, .filename = &etoolong_fname, .flag = 0,
82 TEST(statx(tc->dfd, *(tc->filename), tc->flag, in run_test()
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise08.c42 static int dfd; variable
104 if (dfd > 0) in cleanup()
105 SAFE_CLOSE(dfd); in cleanup()
121 dfd = SAFE_OPEN(dumpname, O_RDONLY); in find_sequence()
123 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
143 SAFE_CLOSE(dfd); in find_sequence()
150 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
155 SAFE_CLOSE(dfd); in find_sequence()
/external/minigbm/
Dminigbm_helpers.c216 int ret, fd, dfd = -1; in gbm_get_default_device_fd() local
263 if (dfd < 0) in gbm_get_default_device_fd()
264 dfd = fd; in gbm_get_default_device_fd()
269 if (dfd >= 0) { in gbm_get_default_device_fd()
270 close(dfd); in gbm_get_default_device_fd()
271 dfd = -1; in gbm_get_default_device_fd()
276 if (dfd >= 0) in gbm_get_default_device_fd()
277 return dfd; in gbm_get_default_device_fd()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h1566 #define __sanitizer_syscall_pre_mknodat(dfd, filename, mode, dev) \ argument
1567 __sanitizer_syscall_pre_impl_mknodat((long)(dfd), (long)(filename), \
1569 #define __sanitizer_syscall_post_mknodat(res, dfd, filename, mode, dev) \ argument
1570 __sanitizer_syscall_post_impl_mknodat(res, (long)(dfd), (long)(filename), \
1572 #define __sanitizer_syscall_pre_mkdirat(dfd, pathname, mode) \ argument
1573 __sanitizer_syscall_pre_impl_mkdirat((long)(dfd), (long)(pathname), \
1575 #define __sanitizer_syscall_post_mkdirat(res, dfd, pathname, mode) \ argument
1576 __sanitizer_syscall_post_impl_mkdirat(res, (long)(dfd), (long)(pathname), \
1578 #define __sanitizer_syscall_pre_unlinkat(dfd, pathname, flag) \ argument
1579 __sanitizer_syscall_pre_impl_unlinkat((long)(dfd), (long)(pathname), \
[all …]
/external/llvm-project/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h1565 #define __sanitizer_syscall_pre_mknodat(dfd, filename, mode, dev) \ argument
1566 __sanitizer_syscall_pre_impl_mknodat((long)(dfd), (long)(filename), \
1568 #define __sanitizer_syscall_post_mknodat(res, dfd, filename, mode, dev) \ argument
1569 __sanitizer_syscall_post_impl_mknodat(res, (long)(dfd), (long)(filename), \
1571 #define __sanitizer_syscall_pre_mkdirat(dfd, pathname, mode) \ argument
1572 __sanitizer_syscall_pre_impl_mkdirat((long)(dfd), (long)(pathname), \
1574 #define __sanitizer_syscall_post_mkdirat(res, dfd, pathname, mode) \ argument
1575 __sanitizer_syscall_post_impl_mkdirat(res, (long)(dfd), (long)(pathname), \
1577 #define __sanitizer_syscall_pre_unlinkat(dfd, pathname, flag) \ argument
1578 __sanitizer_syscall_pre_impl_unlinkat((long)(dfd), (long)(pathname), \
[all …]
/external/rust/crates/libsqlite3-sys/sqlite3/
Dwasm32-wasi-vfs.c460 int dfd; /* File descriptor open on directory */ in demoDelete() local
471 dfd = open(zDir, O_RDONLY, 0); in demoDelete()
472 if( dfd<0 ){ in demoDelete()
475 rc = fsync(dfd); in demoDelete()
476 close(dfd); in demoDelete()
/external/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify.h34 int dfd, const char *pathname) in fanotify_mark() argument
36 return syscall(__NR_fanotify_mark, fd, flags, mask, dfd, pathname); in fanotify_mark()
/external/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()
/external/kmod/tools/
Ddepmod.c1234 int err = 0, dfd = dirfd(d); in depmod_modules_search_dir() local
1263 if (fstatat(dfd, name, &st, 0) < 0) { in depmod_modules_search_dir()
1264 ERR("fstatat(%d, %s): %m\n", dfd, name); in depmod_modules_search_dir()
1280 fd = openat(dfd, name, O_RDONLY); in depmod_modules_search_dir()
1283 dfd, name); in depmod_modules_search_dir()
1395 int fd, dfd; in dfdopen() local
1398 dfd = open(dname, O_RDONLY); in dfdopen()
1399 if (dfd < 0) { in dfdopen()
1404 fd = openat(dfd, filename, flags); in dfdopen()
1415 close(dfd); in dfdopen()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc2473 PRE_SYSCALL(mknodat)(long dfd, const void *filename, long mode, long dev) {
2479 POST_SYSCALL(mknodat)(long res, long dfd, const void *filename, long mode,
2482 PRE_SYSCALL(mkdirat)(long dfd, const void *pathname, long mode) {
2488 POST_SYSCALL(mkdirat)(long res, long dfd, const void *pathname, long mode) {}
2490 PRE_SYSCALL(unlinkat)(long dfd, const void *pathname, long flag) {
2496 POST_SYSCALL(unlinkat)(long res, long dfd, const void *pathname, long flag) {}
2530 PRE_SYSCALL(futimesat)(long dfd, const void *filename, void *utimes) {
2536 POST_SYSCALL(futimesat)(long res, long dfd, const void *filename,
2543 PRE_SYSCALL(faccessat)(long dfd, const void *filename, long mode) {
2549 POST_SYSCALL(faccessat)(long res, long dfd, const void *filename, long mode) {}
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc2474 PRE_SYSCALL(mknodat)(long dfd, const void *filename, long mode, long dev) {
2480 POST_SYSCALL(mknodat)(long res, long dfd, const void *filename, long mode,
2483 PRE_SYSCALL(mkdirat)(long dfd, const void *pathname, long mode) {
2489 POST_SYSCALL(mkdirat)(long res, long dfd, const void *pathname, long mode) {}
2491 PRE_SYSCALL(unlinkat)(long dfd, const void *pathname, long flag) {
2497 POST_SYSCALL(unlinkat)(long res, long dfd, const void *pathname, long flag) {}
2531 PRE_SYSCALL(futimesat)(long dfd, const void *filename, void *utimes) {
2537 POST_SYSCALL(futimesat)(long res, long dfd, const void *filename,
2544 PRE_SYSCALL(faccessat)(long dfd, const void *filename, long mode) {
2550 POST_SYSCALL(faccessat)(long res, long dfd, const void *filename, long mode) {}
[all …]
/external/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()
/external/kmod/libkmod/
Dlibkmod-module.c1811 int dfd, cfd; in kmod_module_get_size() local
1821 dfd = open(line, O_RDONLY|O_CLOEXEC); in kmod_module_get_size()
1822 if (dfd < 0) in kmod_module_get_size()
1826 cfd = openat(dfd, "coresize", O_RDONLY|O_CLOEXEC); in kmod_module_get_size()
1840 close(dfd); in kmod_module_get_size()
1876 close(dfd); in kmod_module_get_size()
2013 int dfd; in kmod_module_get_sections() local
2027 dfd = dirfd(d); in kmod_module_get_sections()
2042 fd = openat(dfd, dent->d_name, O_RDONLY|O_CLOEXEC); in kmod_module_get_sections()
/external/libevent/test/
Dregress.c2960 int fd, dfd=-1; in test_dup_fd() local
2967 dfd = dup(fd); in test_dup_fd()
2968 tt_int_op(dfd, >=, 0); in test_dup_fd()
2971 ev2 = event_new(base, dfd, EV_READ|EV_PERSIST, dfd_cb, &ev2_got); in test_dup_fd()
2982 close(dfd); in test_dup_fd()
2994 tt_int_op(dup2(fd, dfd), ==, dfd); in test_dup_fd()
2996 ev2 = event_new(base, dfd, EV_WRITE|EV_PERSIST, dfd_cb, &ev2_got); in test_dup_fd()
3008 if (dfd >= 0) in test_dup_fd()
3009 close(dfd); in test_dup_fd()
/external/deqp/external/vulkancts/scripts/
Dgen_framework.py2403 dfd = generateDeviceFeaturesDefs(src) variable
2404 writeDeviceFeatures (api, dfd, os.path.join(VULKAN_DIR, "vkDeviceFeatures.inl"))
2405 …writeDeviceFeaturesDefaultDeviceDefs (dfd, os.path.join(VULKAN_DIR, "vkDeviceFeaturesForDefaultDev…
2406 …writeDeviceFeaturesContextDecl (dfd, os.path.join(VULKAN_DIR, "vkDeviceFeaturesForContextDecl.in…
2407 …writeDeviceFeaturesContextDefs (dfd, os.path.join(VULKAN_DIR, "vkDeviceFeaturesForContextDefs.in…
/external/icu/icu4c/
Dicu4c.css351 background-color: #dfd;
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/bench/
Dwikipedia.min.css1 …;background-color:#FFFFC0}.successbox{border-color:green;background-color:#dfd}.errorbox h2,.warni…
Dwikipedia.css1385 background-color: #dfd;
/external/google-breakpad/src/processor/testdata/symbols/null_read_av/7B7D1968FF0D47AE4366E9C3A7E1B6750/
Dnull_read_av.sym2685 8dfd 3 225 24
/external/google-breakpad/src/processor/testdata/symbols/overflow/B0E1FC01EF48E39CAF5C881D2DF0C3840/
Doverflow.sym2623 8dfd 1b 444 44
/external/elfutils/tests/
Dtestfile44.expect.bz21testfile44.o: elf32-elf_i386 2 3Disassembly of section .text: 4 5 0 ...
Dtestfile45.expect.bz21testfile45.o: elf64-elf_x86_64 2 3Disassembly of section .text: 4 5 0 ...
/external/google-breakpad/src/processor/testdata/symbols/kernel32.pdb/BCE8785C57B44245A669896B6A19B9542/
Dkernel32.sym4249 STACK WIN 4 38dfd 1e5 4 0 18 8 214 0 1 $T0 $ebp = $eip $T0 4 + ^ = $ebp $T0 ^ = $esp $T0 8 + = $L $…
/external/google-breakpad/src/processor/testdata/
Dmodule0.out16759 17dfd 37 2296 5771

12