HomeSort by relevance Sort by last modified time
    Searched defs:dfd (Results 1 - 16 of 16) sorted by null

  /external/valgrind/memcheck/tests/linux/
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/
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, FILENAME, -1, -1, 0)
    [all...]
  /external/toybox/toys/other/
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...]
  /system/core/init/
uevent_listener.cpp 129 int dfd = dirfd(d); local
131 int fd = openat(dfd, "uevent", O_WRONLY);
146 fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY);
  /system/vold/
main.cpp 172 int dfd, fd; local
174 dfd = dirfd(d);
176 fd = openat(dfd, "uevent", O_WRONLY | O_CLOEXEC);
191 fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC);
  /external/ltp/testcases/kernel/syscalls/madvise/
madvise08.c 54 static int dfd; variable
120 if (dfd > 0)
121 SAFE_CLOSE(dfd);
137 dfd = SAFE_OPEN(dumpname, O_RDONLY);
139 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf));
159 SAFE_CLOSE(dfd);
166 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf));
171 SAFE_CLOSE(dfd);
  /external/e2fsprogs/util/
symlinks.c 276 DIR *dfd; local
280 if ((dfd = opendir(path)) == NULL) {
289 while ((dp = readdir(dfd)) != NULL ) {
303 closedir(dfd);
  /libcore/ojluni/src/main/java/sun/nio/fs/
UnixCopyFile.java 146 int dfd = -1; local
148 dfd = open(target, O_RDONLY, 0);
162 if (dfd >= 0) {
163 fchown(dfd, attrs.uid(), attrs.gid());
164 fchmod(dfd, attrs.mode());
176 if (flags.copyNonPosixAttributes && (dfd >= 0)) {
185 source.getFileSystem().copyNonPosixAttributes(sfd, dfd);
192 if (dfd >= 0 && futimesSupported()) {
193 futimes(dfd,
209 if (dfd >= 0
    [all...]
UnixSecureDirectoryStream.java 52 private final int dfd; field in class:UnixSecureDirectoryStream
60 int dfd,
64 this.dfd = dfd;
66 if (dfd != -1) {
78 UnixNativeDispatcher.close(dfd);
131 newdfd1 = openat(dfd, file.asByteArray(), flags , 0);
171 return UnixChannelFactory.newFileChannel(dfd, file, pathToCheck, options, mode);
208 attrs = UnixFileAttributes.get(dfd, file, false);
216 unlinkat(dfd, file.asByteArray(), flags)
    [all...]
  /external/syslinux/extlinux/
main.c 1182 static int validate_device_btrfs(int pfd, int dfd)
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);
    [all...]
  /frameworks/native/cmds/installd/
utils.cpp 441 int dfd; local
443 dfd = dirfd(d);
445 if (dfd < 0) return -1;
465 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC);
482 if (unlinkat(dfd, name, AT_REMOVEDIR) < 0) {
487 if (unlinkat(dfd, name, 0) < 0) {
532 int delete_dir_contents_fd(int dfd, const char *name)
537 fd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC);
    [all...]
InstalldNativeService.cpp 1315 int dfd; local
1366 int dfd; local
    [all...]
  /external/kmod/libkmod/
libkmod-module.c 1800 int dfd, cfd; local
2002 int dfd; local
    [all...]
  /external/kmod/tools/
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
2425 int err = 1, dfd = dirfd(d); local
    [all...]
  /external/libevent/test/
regress.c 2889 int fd, dfd=-1; local
2923 tt_int_op(dup2(fd, dfd), ==, dfd); local
    [all...]
  /external/valgrind/coregrind/m_syswrap/
syswrap-solaris.c 2317 Int dfd = (Int) ARG1; local
4134 Int dfd = (Int) ARG1; local
    [all...]

Completed in 469 milliseconds