Lines Matching defs:fd
2260 int fd;
2280 fd = open(wellknown, fmode, 0644);
2281 if (fd < 0) {
2319 if (ftruncate(fd, 0) < 0)
2322 rc = write(fd, location, strlen(location));
2331 if (lseek(fd, 0, SEEK_SET) < 0)
2335 rc = read(fd, config_file, sizeof (config_file));
2342 close(fd);
3036 cfg_invalidate_hsizes(int fd, const char *loc) {
3049 if (cfg_shldskip_vtoc(fd, loc) > 0)
3054 if (lseek(fd, offset, SEEK_SET) > 0)
3055 rc = write(fd, buf, sizeof (buf));
3487 cfg_shldskip_vtoc(int fd, const char *loc)
3496 if (fstat(fd, &sb) == -1) {
3505 if ((slice = read_vtoc(fd, &vtoc)) < 0)