static int local_mksock(FsContext *ctx2, const char *path)

{

    struct sockaddr_un addr;

    int s;



    addr.sun_family = AF_UNIX;

    snprintf(addr.sun_path, 108, "%s", rpath(ctx2, path));



    s = socket(PF_UNIX, SOCK_STREAM, 0);

    if (s == -1) {

        return -1;

    }



    if (bind(s, (struct sockaddr *)&addr, sizeof(addr))) {

        close(s);

        return -1;

    }



    close(s);

    return 0;

}

static int local_mksock(FsContext *ctx2, const char *path)

{

    struct sockaddr_un addr;

    int s;



    addr.sun_family = AF_UNIX;

    snprintf(addr.sun_path, 108, "%s", rpath(ctx2, path));



    s = socket(PF_UNIX, SOCK_STREAM, 0);

    if (s == -1) {

        return -1;

    }



    if (bind(s, (struct sockaddr *)&addr, sizeof(addr))) {

        close(s);

        return -1;

    }



    close(s);

    return 0;

}

static int FUNC_0(FsContext *VAR_0, const char *VAR_1)

{

    struct sockaddr_un VAR_2;

    int VAR_3;



    VAR_2.sun_family = AF_UNIX;

    snprintf(VAR_2.sun_path, 108, "%VAR_3", rpath(VAR_0, VAR_1));



    VAR_3 = socket(PF_UNIX, SOCK_STREAM, 0);

    if (VAR_3 == -1) {

        return -1;

    }



    if (bind(VAR_3, (struct sockaddr *)&VAR_2, sizeof(VAR_2))) {

        close(VAR_3);

        return -1;

    }



    close(VAR_3);

    return 0;

}

static int FUNC_0(FsContext *VAR_0, const char *VAR_1)
{ struct sockaddr_un VAR_2; int VAR_3; VAR_2.sun_family = AF_UNIX; snprintf(VAR_2.sun_path, 108, "%VAR_3", rpath(VAR_0, VAR_1)); VAR_3 = socket(PF_UNIX, SOCK_STREAM, 0); if (VAR_3 == -1) { return -1; } if (bind(VAR_3, (struct sockaddr *)&VAR_2, sizeof(VAR_2))) { close(VAR_3); return -1; } close(VAR_3); return 0; }