Lines Matching refs:fd
89 int fd;
90 fd = open("/dev/urandom", O_RDONLY);
91 read(fd, uuid, 16);
92 close(fd);
260 int fd;
291 fd = open(device, O_RDWR);
292 if (fd < 0) {
296 if (ioctl(fd, BLKGETSIZE64, &sz)) {
367 write(fd, &ptbl, sizeof(ptbl));
368 fsync(fd);
370 if (ioctl(fd, BLKRRPART, 0)) {
373 close(fd);