51 char index_file[FN_REFLEN];
56 DBUG_ENTER(
"readfrm");
57 DBUG_PRINT(
"enter",(
"name: '%s'",name));
63 fn_format(index_file, name,
"", reg_ext,
64 MY_UNPACK_FILENAME|MY_APPEND_EXT),
73 read_len= state.st_size;
78 if (read_string(file, &read_data, read_len))
82 *frmdata= (uchar*) read_data;
109 int writefrm(
const char *
name,
const uchar *frmdata,
size_t len)
112 char index_file[FN_REFLEN];
114 DBUG_ENTER(
"writefrm");
115 DBUG_PRINT(
"enter",(
"name: '%s' len: %lu ",name, (ulong) len));
119 fn_format(index_file, name,
"", reg_ext,
120 MY_UNPACK_FILENAME | MY_APPEND_EXT),
121 CREATE_MODE, O_RDWR | O_TRUNC,