diff options
author | RĂ©mi Denis-Courmont <remi@remlab.net> | 2013-08-06 21:19:24 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-08-07 21:12:20 +0200 |
commit | 869b04e89154cd92d2bcfdabcecbe3217864c099 (patch) | |
tree | 39518f092340f1ac4bc62f5816ffd5ba5e6ce8cd /libavutil/internal.h | |
parent | 22c879057ead189c0f59241cb9eeb926381e3299 (diff) | |
download | ffmpeg-869b04e89154cd92d2bcfdabcecbe3217864c099.tar.gz |
libavutil: add avpriv_open() to open files with close-on-exec flag
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r-- | libavutil/internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index 5a721f3a71..cb3a8f5f12 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -196,4 +196,9 @@ void avpriv_report_missing_feature(void *avc, void avpriv_request_sample(void *avc, const char *msg, ...) av_printf_format(2, 3); +/** + * A wrapper for open() setting O_CLOEXEC. + */ +int avpriv_open(const char *filename, int flags, ...); + #endif /* AVUTIL_INTERNAL_H */ |