mpv/options
wm4 cc54377463 Do not call strerror()
...because everything is terrible.

strerror() is not documented as having to be thread-safe by POSIX and
C11. (Which is pretty much bullshit, because both mandate threads and
some form of thread-local storage - so there's no excuse why
implementation couldn't implement this in a thread-safe way. Especially
with C11 this is ridiculous, because there is no way to use threads and
convert error numbers to strings at the same time!)

Since we heavily use threads now, we should avoid unsafe functions like
strerror().

strerror_r() is in POSIX, but GNU/glibc deliberately fucks it up and
gives the function different semantics than the POSIX one. It's a bit of
work to convince this piece of shit to expose the POSIX standard
function, and not the messed up GNU one.

strerror_l() is also in POSIX, but only since the 2008 standard, and
thus is not widespread.

The solution is using avlibc (libavutil, by its official name), which
handles the unportable details for us, mostly. We avoid some pain.
2014-11-26 21:21:56 +01:00
..
m_config.c m_config: add function to copy all options 2014-10-06 21:49:26 +02:00
m_config.h m_config: add function to copy all options 2014-10-06 21:49:26 +02:00
m_option.c Remove some unneeded NULL checks 2014-11-21 09:58:09 +01:00
m_option.h options: allow selecting track ID 0 too 2014-10-21 13:22:38 +02:00
m_property.c m_property: fix a typo 2014-11-21 10:09:38 +01:00
m_property.h command: export some option metadata 2014-11-13 18:01:27 +01:00
options.c player: add option not to use OSD/fontconfig 2014-11-25 11:08:25 +01:00
options.h player: add option not to use OSD/fontconfig 2014-11-25 11:08:25 +01:00
parse_commandline.c terminal: strictly don't read terminal input if stdout is not a terminal 2014-10-23 19:27:49 +02:00
parse_commandline.h msg: remove global state 2013-12-21 23:11:12 +01:00
parse_configfile.c Do not call strerror() 2014-11-26 21:21:56 +01:00
parse_configfile.h encode: don't apply default config options 2014-04-19 22:05:17 +02:00
path.c win32: silence some warnings 2014-11-08 10:24:49 +01:00
path.h Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00