static long gethugepagesize(const char *path, Error **errp)

{

    struct statfs fs;

    int ret;



    do {

        ret = statfs(path, &fs);

    } while (ret != 0 && errno == EINTR);



    if (ret != 0) {

        error_setg_errno(errp, errno, "failed to get page size of file %s",

                         path);

        return 0;

    }



    return fs.f_bsize;

}

static long gethugepagesize(const char *path, Error **errp)

{

    struct statfs fs;

    int ret;



    do {

        ret = statfs(path, &fs);

    } while (ret != 0 && errno == EINTR);



    if (ret != 0) {

        error_setg_errno(errp, errno, "failed to get page size of file %s",

                         path);

        return 0;

    }



    return fs.f_bsize;

}

static long gethugepagesize(const char *path, Error **errp)         ret = statfs(path, &fs);         error_setg_errno(errp, errno, "failed to get page size of file %s",                          path);         return 0;
static long FUNC_0(const char *VAR_0, Error **VAR_1)

{

    struct statfs VAR_2;

    int VAR_3;



    do {

        VAR_3 = statfs(VAR_0, &VAR_2);

    } while (VAR_3 != 0 && errno == EINTR);



    if (VAR_3 != 0) {

        error_setg_errno(VAR_1, errno, "failed to get page size of file %s",

                         VAR_0);

        return 0;

    }



    return VAR_2.f_bsize;

}

static long FUNC_0(const char *VAR_0, Error **VAR_1)
{ struct statfs VAR_2; int VAR_3; do { VAR_3 = statfs(VAR_0, &VAR_2); } while (VAR_3 != 0 && errno == EINTR); if (VAR_3 != 0) { error_setg_errno(VAR_1, errno, "failed to get page size of file %s",
VAR_0); return 0; } return VAR_2.f_bsize; }