/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/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify.h | 50 int dfd, const char *pathname) 52 return syscall(__NR_fanotify_mark, fd, flags, mask, dfd, pathname); 49 fanotify_mark(int fd, unsigned int flags, uint64_t mask, int dfd, const char *pathname) argument
|
/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/ltp/testcases/kernel/syscalls/madvise/ |
H A D | madvise08.c | 53 static int dfd; variable 119 if (dfd > 0) 120 SAFE_CLOSE(dfd); 136 dfd = SAFE_OPEN(dumpname, O_RDONLY); 138 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); 158 SAFE_CLOSE(dfd); 165 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); 170 SAFE_CLOSE(dfd);
|
/external/e2fsprogs/util/ |
H A D | symlinks.c | 276 DIR *dfd; local 280 if ((dfd = opendir(path)) == NULL) { 289 while ((dp = readdir(dfd)) != NULL ) { 303 closedir(dfd);
|
/external/syslinux/extlinux/ |
H A D | main.c | 1182 static int validate_device_btrfs(int pfd, int dfd) argument 1204 if (xpread(dfd, &sb2, sizeof sb2, BTRFS_SUPER_INFO_OFFSET) != sizeof sb2) 1230 int pfd, dfd; local 1235 pfd = dfd = -1; 1257 dfd = open((const char *)devinfo.path, O_RDONLY); 1258 if (dfd < 0) 1261 if (!validate_device_btrfs(pfd, dfd)) 1267 if (dfd >= 0) 1268 close(dfd);
|
/external/kmod/libkmod/ |
H A D | libkmod-module.c | 1800 int dfd, cfd; local 1810 dfd = open(line, O_RDONLY|O_CLOEXEC); 1811 if (dfd < 0) 1815 cfd = openat(dfd, "coresize", O_RDONLY|O_CLOEXEC); 1829 close(dfd); 1865 close(dfd); 2002 int dfd; local 2016 dfd = dirfd(d); 2031 fd = openat(dfd, dent->d_name, O_RDONLY|O_CLOEXEC);
|
/external/kmod/tools/ |
H A D | depmod.c | 1114 int err = 0, dfd = dirfd(d); local 1140 if (fstatat(dfd, name, &st, 0) < 0) { 1141 ERR("fstatat(%d, %s): %m\n", dfd, name); 1161 fd = openat(dfd, name, O_RDONLY); 1164 dfd, name); 2230 int dfd, err = 0; local 2233 dfd = -1; 2235 dfd = open(dname, O_RDONLY); 2236 if (dfd < 0) { 2254 fd = openat(dfd, tm 2425 int err = 1, dfd = dirfd(d); local [all...] |
/external/valgrind/coregrind/m_syswrap/ |
H A D | syswrap-solaris.c | 2310 /* ssize_t readlinkat(int dfd, const char *path, char *buf, 2317 Int dfd = (Int) ARG1; local 2319 PRINT("sys_readlinkat ( %d, %#lx(%s), %#lx, %ld )", dfd, ARG2, 2321 PRE_REG_READ4(long, "readlinkat", int, dfd, const char *, path, 2326 /* Be strict but ignore dfd for absolute path. */ 2327 if (dfd != VKI_AT_FDCWD 2330 && !ML_(fd_allowed)(dfd, "readlinkat", tid, False)) { 2342 SET_STATUS_from_SysRes(VG_(do_syscall4)(saved, dfd, (UWord)name, ARG3, 4134 Int dfd = (Int) ARG1; local 4137 PRINT("sys_unlinkat ( %d, %#lx(%s), %ld )", dfd, ARG [all...] |