Created
November 9, 2012 16:06
-
-
Save anonymous/4046520 to your computer and use it in GitHub Desktop.
stdin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static int file_check(URLContext *h, int mask) | |
{ | |
int ret = 0; | |
if(mask&AVIO_FLAG_READ) | |
if(access(h->filename, R_OK) >= 0) | |
ret |= AVIO_FLAG_READ; | |
if(mask&AVIO_FLAG_WRITE) | |
if(access(h->filename, W_OK) >= 0) | |
ret |= AVIO_FLAG_WRITE; | |
return ret; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment