static int raw_truncate(BlockDriverState *bs, int64_t offset)

{

    BDRVRawState *s = bs->opaque;

    LONG low, high;



    low = offset;

    high = offset >> 32;

    if (!SetFilePointer(s->hfile, low, &high, FILE_BEGIN))

	return -EIO;

    if (!SetEndOfFile(s->hfile))

        return -EIO;

    return 0;

}

static int raw_truncate(BlockDriverState *bs, int64_t offset)

{

    BDRVRawState *s = bs->opaque;

    LONG low, high;



    low = offset;

    high = offset >> 32;

    if (!SetFilePointer(s->hfile, low, &high, FILE_BEGIN))

	return -EIO;

    if (!SetEndOfFile(s->hfile))

        return -EIO;

    return 0;

}

static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1)

{

    BDRVRawState *s = VAR_0->opaque;

    LONG low, high;



    low = VAR_1;

    high = VAR_1 >> 32;

    if (!SetFilePointer(s->hfile, low, &high, FILE_BEGIN))

	return -EIO;

    if (!SetEndOfFile(s->hfile))

        return -EIO;

    return 0;

}

static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1)
{ BDRVRawState *s = VAR_0->opaque; LONG low, high; low = VAR_1; high = VAR_1 >> 32; if (!SetFilePointer(s->hfile, low, &high, FILE_BEGIN))
return -EIO; if (!SetEndOfFile(s->hfile))
return -EIO; return 0; }