16 #include "mysys_priv.h"
26 char * my_filename(File fd)
28 DBUG_ENTER(
"my_filename");
29 if ((uint) fd >= (uint) my_file_limit)
30 DBUG_RETURN((
char*)
"UNKNOWN");
31 if (fd >= 0 && my_file_info[fd].
type != UNOPEN)
33 DBUG_RETURN(my_file_info[fd].
name);
36 DBUG_RETURN((
char*)
"UNOPENED");