32 #if defined(_WIN32) && !defined(__MINGW32CE__) 42 static int win32_open(
const char *filename_utf8,
int oflag,
int pmode)
48 if (utf8towchar(filename_utf8, &filename_w))
53 fd = _wsopen(filename_w, oflag, SH_DENYNO, pmode);
56 if (fd != -1 || (oflag & O_CREAT))
61 return _sopen(filename_utf8, oflag, SH_DENYNO, pmode);
63 #define open win32_open 69 unsigned int mode = 0;
74 mode = va_arg(ap,
unsigned int);
81 fd = open(filename, flags, mode);
84 fcntl(fd, F_SETFD, FD_CLOEXEC);
memory handling functions
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
int avpriv_open(const char *filename, int flags,...)
A wrapper for open() setting O_CLOEXEC.
common internal API header