static int proxy_open(FsContext *ctx, V9fsPath *fs_path,

                      int flags, V9fsFidOpenState *fs)

{

    fs->fd = v9fs_request(ctx->private, T_OPEN, NULL, "sd", fs_path, flags);

    if (fs->fd < 0) {

        errno = -fs->fd;

        fs->fd = -1;

    }

    return fs->fd;

}

static int proxy_open(FsContext *ctx, V9fsPath *fs_path,

                      int flags, V9fsFidOpenState *fs)

{

    fs->fd = v9fs_request(ctx->private, T_OPEN, NULL, "sd", fs_path, flags);

    if (fs->fd < 0) {

        errno = -fs->fd;

        fs->fd = -1;

    }

    return fs->fd;

}

static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,

                      int VAR_2, V9fsFidOpenState *VAR_3)

{

    VAR_3->fd = v9fs_request(VAR_0->private, T_OPEN, NULL, "sd", VAR_1, VAR_2);

    if (VAR_3->fd < 0) {

        errno = -VAR_3->fd;

        VAR_3->fd = -1;

    }

    return VAR_3->fd;

}

static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,
int VAR_2, V9fsFidOpenState *VAR_3)
{ VAR_3->fd = v9fs_request(VAR_0->private, T_OPEN, NULL, "sd", VAR_1, VAR_2); if (VAR_3->fd < 0) { errno = -VAR_3->fd; VAR_3->fd = -1; } return VAR_3->fd; }