Lines Matching refs:fd
469 int fd;
479 fd = open64 (buf, O_RDONLY);
480 if (fd != -1)
483 MAP_SHARED, fd, 0);
491 close (fd);
495 fd = open64 (buf, O_RDONLY);
496 if (fd != -1 && fstat64 (fd, &st) >= 0
498 MAP_SHARED, fd, 0))
506 if (fd != -1)
507 close (fd);
644 int fd, ret = 0;
647 fd = open64 (ARCHIVE_NAME, O_RDONLY);
648 if (fd < 0)
651 if (fstat64 (fd, &st) < 0 || st.st_size < sizeof (*head))
655 addr = mmap64 (NULL, len, PROT_READ, MAP_SHARED, fd, 0);
723 close (fd);