Lines Matching refs:fd
65 find_file_restriction(int fd)
68 if (unrestricted_fstat(fd, &st) < 0)
99 restricted_file_opened(int fd)
101 FileRestriction* restriction = find_file_restriction(fd);
105 lseek(fd, restriction->startOffset, SEEK_SET);
116 restricted_file_closed(int fd)
122 restricted_file_restrict_io(int fd, fssh_off_t& pos, fssh_off_t size)
124 FileRestriction* restriction = find_file_restriction(fd);
129 pos = lseek(fd, 0, SEEK_CUR);
179 fssh_lseek(int fd, fssh_off_t offset, int whence)
181 FileRestriction* restriction = find_file_restriction(fd);
183 return lseek(fd, offset, to_platform_seek_mode(whence));
190 pos = lseek(fd, 0, SEEK_CUR);
210 pos = lseek(fd, pos, SEEK_SET);