/* this function is a POSIX compliant version, which will get file information. */
int stat(const char *file, struct stat *buf)
/* this function is a POSIX compliant version, which will get file information. */
int stat(const char *file, struct stat *buf)
{
    int result;
    result = dfs_file_stat(file, buf);
    if (result < 0)
    {
        rt_set_errno(result);
        return -1;
    }
    return result;
}