Lines Matching refs:seek_offset
85 read_binary_file(const char *filename, int64 seek_offset, int64 bytes_to_read, in read_binary_file() argument
94 if (seek_offset < 0) in read_binary_file()
95 bytes_to_read = -seek_offset; in read_binary_file()
110 bytes_to_read = fst.st_size - seek_offset; in read_binary_file()
131 if (fseeko(file, (off_t) seek_offset, in read_binary_file()
132 (seek_offset >= 0) ? SEEK_SET : SEEK_END) != 0) in read_binary_file()
158 read_text_file(const char *filename, int64 seek_offset, int64 bytes_to_read, in read_text_file() argument
163 buf = read_binary_file(filename, seek_offset, bytes_to_read, missing_ok); in read_text_file()
184 int64 seek_offset = 0; in pg_read_file() local
198 seek_offset = PG_GETARG_INT64(1); in pg_read_file()
211 result = read_text_file(filename, seek_offset, bytes_to_read, missing_ok); in pg_read_file()
225 int64 seek_offset = 0; in pg_read_binary_file() local
239 seek_offset = PG_GETARG_INT64(1); in pg_read_binary_file()
252 result = read_binary_file(filename, seek_offset, in pg_read_binary_file()