Lines Matching refs:fd
568 bool dvmSetCloseOnExec(int fd) in dvmSetCloseOnExec() argument
576 flags = fcntl(fd, F_GETFD); in dvmSetCloseOnExec()
578 ALOGW("Unable to get fd flags for fd %d", fd); in dvmSetCloseOnExec()
581 if (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) { in dvmSetCloseOnExec()
582 ALOGW("Unable to set close-on-exec for fd %d", fd); in dvmSetCloseOnExec()
614 int fd, ret; in dvmAllocRegion() local
617 fd = ashmem_create_region(name, byteCount); in dvmAllocRegion()
618 if (fd == -1) { in dvmAllocRegion()
621 base = mmap(NULL, byteCount, prot, MAP_PRIVATE, fd, 0); in dvmAllocRegion()
622 ret = close(fd); in dvmAllocRegion()
669 int i, fd; in dvmGetThreadStats() local
676 fd = open(nameBuf, O_RDONLY); in dvmGetThreadStats()
677 if (fd < 0) { in dvmGetThreadStats()
683 int cc = read(fd, lineBuf, sizeof(lineBuf)-1); in dvmGetThreadStats()
687 close(fd); in dvmGetThreadStats()
690 close(fd); in dvmGetThreadStats()