mpv/options
wm4 f24b8cbd47 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.
2015-01-25 17:00:14 +09:00
..
m_config.c options: don't cut off long options in --list-options 2015-01-25 17:00:07 +09:00
m_config.h m_config: add function to copy all options 2014-10-06 21:49:26 +02:00
m_option.c m_option: never return NOPTS value as number from properties 2015-01-25 17:00:08 +09: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 options: enable --ytdl by default 2014-12-19 19:23:28 +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
parse_configfile.c Do not call strerror() 2015-01-25 17:00:14 +09:00
parse_configfile.h
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