Home
last modified time | relevance | path

Searched refs:dfd (Results 1 – 25 of 34) 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/valgrind/memcheck/tests/solaris/
Dsyscall_at.c22 int dfd = open(DIRECTORY, O_RDONLY); in main() local
25 linkat(dfd, FILENAME, dfd, FILENAME, 0); in main()
31 symlinkat(FILENAME, dfd, FILENAME); in main()
37 readlinkat(dfd, FILENAME, buf, 1); in main()
44 syscall(SYS_frealpathat, dfd, FILENAME, buf, 1); in main()
50 faccessat(dfd, FILENAME, F_OK, 0); in main()
56 fchownat(dfd, FILENAME, -1, -1, 0); in main()
62 renameat(dfd, FILENAME, dfd, FILENAME); in main()
68 unlinkat(dfd, FILENAME, 0); in main()
74 fstatat(dfd, FILENAME, &stats, 0); in main()
[all …]
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise08.c53 static int dfd; variable
119 if (dfd > 0) in cleanup()
120 SAFE_CLOSE(dfd); in cleanup()
136 dfd = SAFE_OPEN(dumpname, O_RDONLY); in find_sequence()
138 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
158 SAFE_CLOSE(dfd); in find_sequence()
165 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
170 SAFE_CLOSE(dfd); in find_sequence()
/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/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify.h50 int dfd, const char *pathname) in fanotify_mark() argument
52 return syscall(__NR_fanotify_mark, fd, flags, mask, dfd, pathname); in fanotify_mark()
/external/valgrind/memcheck/tests/linux/
Dsys-openat.c11 int dfd = open ("/tmp", O_RDONLY); in main() local
12 __attribute__((unused)) int fd1 = openat (dfd, "abc", O_RDONLY); in main()
/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.c1114 int err = 0, dfd = dirfd(d); in depmod_modules_search_dir() local
1140 if (fstatat(dfd, name, &st, 0) < 0) { in depmod_modules_search_dir()
1141 ERR("fstatat(%d, %s): %m\n", dfd, name); in depmod_modules_search_dir()
1161 fd = openat(dfd, name, O_RDONLY); in depmod_modules_search_dir()
1164 dfd, name); in depmod_modules_search_dir()
2230 int dfd, err = 0; in depmod_output() local
2233 dfd = -1; in depmod_output()
2235 dfd = open(dname, O_RDONLY); in depmod_output()
2236 if (dfd < 0) { in depmod_output()
2254 fd = openat(dfd, tmp, flags, mode); in depmod_output()
[all …]
/external/syslinux/extlinux/
Dmain.c1182 static int validate_device_btrfs(int pfd, int dfd) in validate_device_btrfs() argument
1204 if (xpread(dfd, &sb2, sizeof sb2, BTRFS_SUPER_INFO_OFFSET) != sizeof sb2) in validate_device_btrfs()
1230 int pfd, dfd; in find_device_btrfs() local
1235 pfd = dfd = -1; in find_device_btrfs()
1257 dfd = open((const char *)devinfo.path, O_RDONLY); in find_device_btrfs()
1258 if (dfd < 0) in find_device_btrfs()
1261 if (!validate_device_btrfs(pfd, dfd)) in find_device_btrfs()
1267 if (dfd >= 0) in find_device_btrfs()
1268 close(dfd); in find_device_btrfs()
/external/tcpdump/tests/
Dkday7.out16 0x0010: f857 ee68 4dfd 4d5f d9bd c709 30ac 8176
33 0x0010: f857 ee68 4dfd 4d5f d9bd c709 30ac 8176
50 0x0010: f857 ee68 4dfd 4d5f d9bd c709 30ac 8176
Dkday4.out16 0x0010: f857 ee68 4dfd 4d5f d9bd c709 30ac 8176
33 0x0010: f857 ee68 4dfd 4d5f d9bd c709 30ac 8176
50 0x0010: f857 ee68 4dfd 4d5f d9bd c709 30ac 8176
Dkday3.out12 0x0010: f857 ee68 4dfd 4d5f d9bd c709 30ac 8176
27 0x0010: f857 ee68 4dfd 4d5f d9bd c709 30ac 8176
Dkday8.out23 0x0010: f857 ee68 4dfd 4d5f d9bd c709 30ac 8176
Dkday2.out23 0x0010: f857 ee68 4dfd 4d5f d9bd c709 30ac 8176
Dkday5.out23 0x0010: f857 ee68 4dfd 4d5f d9bd c709 30ac 8176
/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/kmod/libkmod/
Dlibkmod-module.c1800 int dfd, cfd; in kmod_module_get_size() local
1810 dfd = open(line, O_RDONLY|O_CLOEXEC); in kmod_module_get_size()
1811 if (dfd < 0) in kmod_module_get_size()
1815 cfd = openat(dfd, "coresize", O_RDONLY|O_CLOEXEC); in kmod_module_get_size()
1829 close(dfd); in kmod_module_get_size()
1865 close(dfd); in kmod_module_get_size()
2002 int dfd; in kmod_module_get_sections() local
2016 dfd = dirfd(d); in kmod_module_get_sections()
2031 fd = openat(dfd, dent->d_name, O_RDONLY|O_CLOEXEC); in kmod_module_get_sections()
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-linux.c2453 int, dfd, const char *, pathname); in PRE()
2462 int, dfd, const char *, pathname); in PRE()
5039 int, dfd, const char *, filename, int, flags, int, mode); in PRE()
5045 int, dfd, const char *, filename, int, flags); in PRE()
5116 int, dfd, const char *, pathname, int, mode); in PRE()
5125 int, dfd, const char *, pathname, int, mode, unsigned, dev); in PRE()
5134 int, dfd, const char *, path, in PRE()
5144 int, dfd, char *, filename, struct timeval *, tvp); in PRE()
5156 int, dfd, char *, filename, struct timespec *, utimes, int, flags); in PRE()
5169 int, dfd, char *, file_name, struct stat *, buf); in PRE()
[all …]
Dsyswrap-ppc32-linux.c319 int, dfd, char *, file_name, struct stat64 *, buf); in PRE()
Dsyswrap-solaris.c2317 Int dfd = (Int) ARG1; in PRE() local
2319 PRINT("sys_readlinkat ( %d, %#lx(%s), %#lx, %ld )", dfd, ARG2, in PRE()
2321 PRE_REG_READ4(long, "readlinkat", int, dfd, const char *, path, in PRE()
2327 if (dfd != VKI_AT_FDCWD in PRE()
2330 && !ML_(fd_allowed)(dfd, "readlinkat", tid, False)) { in PRE()
2342 SET_STATUS_from_SysRes(VG_(do_syscall4)(saved, dfd, (UWord)name, ARG3, in PRE()
4134 Int dfd = (Int) ARG1; in PRE() local
4137 PRINT("sys_unlinkat ( %d, %#lx(%s), %ld )", dfd, ARG2, (HChar *) ARG2, in PRE()
4144 if (dfd != VKI_AT_FDCWD in PRE()
4147 && !ML_(fd_allowed)(dfd, "unlinkat", tid, False)) in PRE()
Dsyswrap-arm-linux.c288 int, dfd, char *, file_name, struct stat64 *, buf); in PRE()
Dsyswrap-mips32-linux.c555 int, dfd, char *, file_name, struct stat64 *, buf, int, flags); in PRE()
Dsyswrap-x86-linux.c1036 int, dfd, char *, file_name, struct stat64 *, buf, int, flags); in PRE()
/external/icu/icu4c/
Dicu4c.css351 background-color: #dfd;
/external/google-breakpad/src/processor/testdata/symbols/null_read_av/7B7D1968FF0D47AE4366E9C3A7E1B6750/
Dnull_read_av.sym2685 8dfd 3 225 24

12