1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00
mpv/mpvcore/input
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
..
input.c Use O_CLOEXEC when creating FDs 2013-11-30 22:40:51 +01:00
input.h command: add a cycle_values input command 2013-11-30 01:08:23 +01:00
joystick.c
joystick.h
keycodes.h osx: use MP_KEY_* instead of MK_* for media keys 2013-09-01 20:57:40 +02:00
lirc.c
lirc.h