char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)

{

    snprintf(buf, buf_size, "%s%s%s%s%s",

             perms & AV_PERM_READ      ? "r" : "",

             perms & AV_PERM_WRITE     ? "w" : "",

             perms & AV_PERM_PRESERVE  ? "p" : "",

             perms & AV_PERM_REUSE     ? "u" : "",

             perms & AV_PERM_REUSE2    ? "U" : "");

    return buf;

}

char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)

{

    snprintf(buf, buf_size, "%s%s%s%s%s",

             perms & AV_PERM_READ      ? "r" : "",

             perms & AV_PERM_WRITE     ? "w" : "",

             perms & AV_PERM_PRESERVE  ? "p" : "",

             perms & AV_PERM_REUSE     ? "u" : "",

             perms & AV_PERM_REUSE2    ? "U" : "");

    return buf;

}

char *FUNC_0(char *VAR_0, size_t VAR_1, int VAR_2)

{

    snprintf(VAR_0, VAR_1, "%s%s%s%s%s",

             VAR_2 & AV_PERM_READ      ? "r" : "",

             VAR_2 & AV_PERM_WRITE     ? "w" : "",

             VAR_2 & AV_PERM_PRESERVE  ? "p" : "",

             VAR_2 & AV_PERM_REUSE     ? "u" : "",

             VAR_2 & AV_PERM_REUSE2    ? "U" : "");

    return VAR_0;

}

char *FUNC_0(char *VAR_0, size_t VAR_1, int VAR_2)
{ snprintf(VAR_0, VAR_1, "%s%s%s%s%s",
VAR_2 & AV_PERM_READ      ? "r" : "",
VAR_2 & AV_PERM_WRITE     ? "w" : "",
VAR_2 & AV_PERM_PRESERVE  ? "p" : "",
VAR_2 & AV_PERM_REUSE     ? "u" : "",
VAR_2 & AV_PERM_REUSE2    ? "U" : ""); return VAR_0; }