Lines Matching defs:fd
568 bool dvmSetCloseOnExec(int fd)
574 * value of the fd flags is probably unnecessary.
576 flags = fcntl(fd, F_GETFD);
578 ALOGW("Unable to get fd flags for fd %d", fd);
581 if (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) {
582 ALOGW("Unable to set close-on-exec for fd %d", fd);
614 int fd, ret;
617 fd = ashmem_create_region(name, byteCount);
618 if (fd == -1) {
621 base = mmap(NULL, byteCount, prot, MAP_PRIVATE, fd, 0);
622 ret = close(fd);
670 int i, fd;
677 fd = open(nameBuf, O_RDONLY);
678 if (fd < 0) {
684 int cc = read(fd, lineBuf, sizeof(lineBuf)-1);
688 close(fd);
691 close(fd);