MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / my_fseek

Function my_fseek

mysys/my_fstream.c:173–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171/* Seek to position in file */
172
173my_off_t my_fseek(FILE *stream, my_off_t pos, int whence,
174 myf MyFlags __attribute__((unused)))
175{
176 DBUG_ENTER("my_fseek");
177 DBUG_PRINT("my",("stream: 0x%lx pos: %lu whence: %d MyFlags: %d",
178 (long) stream, (long) pos, whence, MyFlags));
179 DBUG_RETURN(fseek(stream, (off_t) pos, whence) ?
180 MY_FILEPOS_ERROR : (my_off_t) ftell(stream));
181} /* my_seek */
182
183
184/* Tell current position of file */

Callers 3

my_fwriteFunction · 0.85
create_sys_filesFunction · 0.85
inline_mysql_file_fseekFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected