mpv/stream
wm4 95cfe58e3d Use O_CLOEXEC when creating FDs
This is needed so that new processes (created with fork+exec) don't
inherit open files, which can be important for a number of reasons.

Since O_CLOEXEC is relatively new (POSIX.1-2008, before that Linux
specific), we #define it to 0 in io.h to prevent compilation errors on
older/crappy systems. At least this is the plan.

input.c creates a pipe. For that, add a mp_set_cloexec() function (which
is based on Weston's code in vo_wayland.c, but more correct). We could
use pipe2() instead, but that is Linux specific. Technically, we have a
race condition, but it won't matter.
2013-11-30 22:40:51 +01:00
..
ai_alsa1x.c ao_alsa: don't include alloca.h 2013-10-25 21:25:54 +02:00
ai_oss.c Use O_CLOEXEC when creating FDs 2013-11-30 22:40:51 +01:00
ai_sndio.c audio/out: add sndio support 2013-10-03 23:14:03 +02:00
audio_in.c configure: uniform the defines to #define HAVE_xxx (0|1) 2013-11-03 21:59:54 +01:00
audio_in.h configure: uniform the defines to #define HAVE_xxx (0|1) 2013-11-03 21:59:54 +01:00
cache.c stream: split out pthread helper function 2013-11-17 16:42:57 +01:00
cdd.h Remove some leftovers from network removal 2013-07-07 21:10:44 +02:00
cdinfo.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
cookies.c Use O_CLOEXEC when creating FDs 2013-11-30 22:40:51 +01:00
cookies.h Remove internal network support 2013-07-07 19:42:38 +02:00
dvb_tune.c Use O_CLOEXEC when creating FDs 2013-11-30 22:40:51 +01:00
dvb_tune.h Add header for exported DVB-related functions. 2010-02-21 21:00:08 +00:00
dvbin.h stream: redo URL parsing, replace m_struct usage with m_config 2013-08-02 17:02:34 +02:00
frequencies.c Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
frequencies.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
pvr.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
rar.c Enable -Wshadow 2013-11-01 13:00:15 +01:00
rar.h stream: add uncompressed rar support 2013-08-26 10:09:46 +02:00
stream.c build: make pthreads mandatory 2013-11-28 19:28:38 +01:00
stream.h timeline: add edl:// URIs 2013-11-19 22:39:04 +01:00
stream_avdevice.c stream: fix url_options field, make protocols field not fixed length 2013-08-26 10:09:45 +02:00
stream_bluray.c Reduce stheader.h includes, move stream types to mp_common.h 2013-11-23 22:08:42 +01:00
stream_cdda.c mplayer: attempt to make playback resume work with DVD/BD 2013-09-22 03:31:25 +02:00
stream_dvb.c Use O_CLOEXEC when creating FDs 2013-11-30 22:40:51 +01:00
stream_dvd.c Reduce stheader.h includes, move stream types to mp_common.h 2013-11-23 22:08:42 +01:00
stream_dvd.h core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
stream_dvd_common.c Use O_CLOEXEC when creating FDs 2013-11-30 22:40:51 +01:00
stream_dvd_common.h mplayer: attempt to make playback resume work with DVD/BD 2013-09-22 03:31:25 +02:00
stream_edl.c timeline: add edl:// URIs 2013-11-19 22:39:04 +01:00
stream_file.c Use O_CLOEXEC when creating FDs 2013-11-30 22:40:51 +01:00
stream_lavf.c stream_lavf: fix a small memory leak 2013-11-21 16:16:08 +01:00
stream_memory.c stream: fix url_options field, make protocols field not fixed length 2013-08-26 10:09:45 +02:00
stream_mf.c stream: fix url_options field, make protocols field not fixed length 2013-08-26 10:09:45 +02:00
stream_null.c stream: fix url_options field, make protocols field not fixed length 2013-08-26 10:09:45 +02:00
stream_pvr.c Use O_CLOEXEC when creating FDs 2013-11-30 22:40:51 +01:00
stream_radio.c Use O_CLOEXEC when creating FDs 2013-11-30 22:40:51 +01:00
stream_radio.h Remove BSD legacy TV/radio support (BT848 stuff) 2013-02-06 23:03:39 +01:00
stream_rar.c stream: add uncompressed rar support 2013-08-26 10:09:46 +02:00
stream_smb.c stream: fix url_options field, make protocols field not fixed length 2013-08-26 10:09:45 +02:00
stream_tv.c stream: fix url_options field, make protocols field not fixed length 2013-08-26 10:09:45 +02:00
stream_vcd.c Use O_CLOEXEC when creating FDs 2013-11-30 22:40:51 +01:00
tv.c demux: remove gsh field from sh_audio/sh_video/sh_sub 2013-11-23 21:37:56 +01:00
tv.h Remove sh_audio->samplesize 2013-11-09 23:32:58 +01:00
tvi_def.h Fix some more -Wshadow warnings 2013-11-01 17:35:38 +01:00
tvi_dummy.c Fix some more -Wshadow warnings 2013-11-01 17:35:38 +01:00
tvi_v4l2.c tvi_v4l2: remove VBI stuff 2013-11-13 21:21:00 +01:00
vcd_read.h core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vcd_read_darwin.h core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vcd_read_fbsd.h core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vcd_read_win32.h core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00