HomeSort by relevance Sort by last modified time
    Searched defs:dfd (Results 1 - 15 of 15) 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...]
  /external/ltp/testcases/kernel/syscalls/madvise/
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);
  /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 178 int dfd, fd; local
180 dfd = dirfd(d);
182 fd = openat(dfd, "uevent", O_WRONLY | O_CLOEXEC);
197 fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC);
  /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 48 private final int dfd; field in class:UnixSecureDirectoryStream
55 int dfd,
59 this.dfd = dfd;
61 if (dfd != -1) {
73 UnixNativeDispatcher.close(dfd);
126 newdfd1 = openat(dfd, file.asByteArray(), flags , 0);
166 return UnixChannelFactory.newFileChannel(dfd, file, pathToCheck, options, mode);
203 attrs = UnixFileAttributes.get(dfd, file, false);
211 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 446 int dfd; local
448 dfd = dirfd(d);
450 if (dfd < 0) return -1;
470 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC);
487 if (unlinkat(dfd, name, AT_REMOVEDIR) < 0) {
492 if (unlinkat(dfd, name, 0) < 0) {
537 int delete_dir_contents_fd(int dfd, const char *name)
542 fd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC);
    [all...]
InstalldNativeService.cpp 1230 int dfd; local
1281 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/valgrind/coregrind/m_syswrap/
syswrap-solaris.c 2317 Int dfd = (Int) ARG1; local
4134 Int dfd = (Int) ARG1; local
    [all...]

Completed in 883 milliseconds