Lines Matching refs:fd
140 int fd = open(fileName, O_RDONLY | (resolveLinks ? 0 : O_NOTRAVERSE));
141 if (fd < 0)
145 if (fs_stat_attr(fd, attribute, &info) < 0) {
146 close(fd);
161 close(fd);
165 ssize_t bytesRead = fs_read_attr(fd, attribute, info.type, 0, buffer, size);
168 close(fd);
176 close(fd);
200 bytesRead = fs_read_attr(fd, attribute, info.type, pos, buffer,
218 close(fd);
284 close(fd);