Lines Matching refs:fd
58 int fd, i, ch, se = 0, cl = 8192, sk = 0, sl = 0, p, ac = argc;
107 if ((fd = open(optarg, O_RDONLY)) == -1)
113 if (fstat(fd, &sb) == -1)
131 i = read(fd, buf, sb.st_size);
138 close(fd);
227 if ((fd = open(optarg, O_RDONLY)) == -1)
233 if (fstat(fd, &sb) == -1)
251 i = read(fd, buf, sb.st_size);
258 close(fd);
311 if ((fd = open(argv[argc], O_RDONLY)) == -1)
317 if (fstat(fd, &sb) == -1)
335 i = read(fd, buf, sb.st_size);
342 close(fd);