Searched defs:dfd (Results 1 - 5 of 5) sorted by relevance
/external/valgrind/memcheck/tests/linux/ |
H A D | sys-openat.c | 11 int dfd = open ("/tmp", O_RDONLY); local 12 __attribute__((unused)) int fd1 = openat (dfd, "abc", O_RDONLY);
|
/external/valgrind/memcheck/tests/solaris/ |
H A D | syscall_at.c | 1 /* Tests various combinations of dfd and pathname for *at syscalls. 2 In particular, dfd should not be checked when pathname is absolute. 22 int dfd = open(DIRECTORY, O_RDONLY); local 25 linkat(dfd, FILENAME, dfd, FILENAME, 0); 31 symlinkat(FILENAME, dfd, FILENAME); 37 readlinkat(dfd, FILENAME, buf, 1); 44 syscall(SYS_frealpathat, dfd, FILENAME, buf, 1); 50 faccessat(dfd, FILENAME, F_OK, 0); 56 fchownat(dfd, FILENAM [all...] |
/external/toybox/toys/other/ |
H A D | acpi.c | 46 int dfd, fd, len, on; local 55 if (0 <= (dfd = open((TT.cpath=dirtree_path(tree, NULL)), O_RDONLY))) { 56 if ((fd = openat(dfd, "type", O_RDONLY)) < 0) goto done; 65 if ((cap = read_int_at(dfd, "capacity")) < 0) { 66 if ((max = read_int_at(dfd, "charge_full")) > 0) 67 curr = read_int_at(dfd, "charge_now"); 68 else if ((max = read_int_at(dfd, "energy_full")) > 0) 69 curr = read_int_at(dfd, "energy_now"); 75 if ((on = read_int_at(dfd, "online")) >= 0) 79 close(dfd); 87 int dfd, temp; local 110 int dfd=5, cur, max; local [all...] |
/external/e2fsprogs/util/ |
H A D | symlinks.c | 272 DIR *dfd; local 276 if ((dfd = opendir(path)) == NULL) { 285 while ((dp = readdir(dfd)) != NULL ) { 299 closedir(dfd);
|
/external/valgrind/coregrind/m_syswrap/ |
H A D | syswrap-solaris.c | 2282 /* ssize_t readlinkat(int dfd, const char *path, char *buf, 2289 Int dfd = (Int) ARG1; local 2291 PRINT("sys_readlinkat ( %d, %#lx(%s), %#lx, %ld )", dfd, ARG2, 2293 PRE_REG_READ4(long, "readlinkat", int, dfd, const char *, path, 2298 /* Be strict but ignore dfd for absolute path. */ 2299 if (dfd != VKI_AT_FDCWD 2302 && !ML_(fd_allowed)(dfd, "readlinkat", tid, False)) { 2314 SET_STATUS_from_SysRes(VG_(do_syscall4)(saved, dfd, (UWord)name, ARG3, 4039 Int dfd = (Int) ARG1; local 4042 PRINT("sys_unlinkat ( %d, %#lx(%s), %ld )", dfd, ARG [all...] |
Completed in 1360 milliseconds