mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 09:32:40 +00:00
cc54377463
...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. |
||
---|---|---|
.. | ||
ai_alsa1x.c | ||
ai_oss.c | ||
ai_sndio.c | ||
audio_in.c | ||
audio_in.h | ||
cache_file.c | ||
cache.c | ||
cookies.c | ||
cookies.h | ||
discnav.h | ||
dvb_tune.c | ||
dvb_tune.h | ||
dvbin.h | ||
frequencies.c | ||
frequencies.h | ||
rar.c | ||
rar.h | ||
stream_avdevice.c | ||
stream_bluray.c | ||
stream_cdda.c | ||
stream_dvb.c | ||
stream_dvd_common.c | ||
stream_dvd_common.h | ||
stream_dvd.c | ||
stream_dvdnav.c | ||
stream_edl.c | ||
stream_file.c | ||
stream_lavf.c | ||
stream_memory.c | ||
stream_mf.c | ||
stream_null.c | ||
stream_pvr.c | ||
stream_rar.c | ||
stream_smb.c | ||
stream_tv.c | ||
stream.c | ||
stream.h | ||
tv.c | ||
tv.h | ||
tvi_def.h | ||
tvi_dummy.c | ||
tvi_v4l2.c |