asterisk/addons
Timo Teräs 939dcf66b0 addons/chan_mobile: do not use strerror_r
The two reasons why it might be used are that some systems do not
implement strerror in thread safe manner, and that strerror_r returns
the error code in the string in case there's no error message.

However, all of asterisk elsewhere uses strerror() and assumes it
to be thread safe. And in chan_mobile the errno is also explicitly
printed so neither of the above reasons are valid.

The reasoning to remove usage is that there are actually two versions
of strerror_r: XSI and GNU. They are incompatible in their return
value, and there's no easy way to figure out which one is being
used. glibc gives you the GNU version if _GNU_SOURCE is defined,
but the same feature test macro is needed for other symbols. On
all other systems you assumedly get XSI symbol, and compilation warnings
as well as non-working error printing.

Thus the easiest solution is to just remove strerror_r and use
strerror as rest of the code. Alternative is to introduce ast_strerror
in separate translation unit so it can request the XSI symbol in
glibc case, and replace all usage of strerror.

Change-Id: I84d35225b5642d85d48bc35fdf399afbae28a91d
2016-11-11 08:33:44 +02:00
..
ooh323c Merge "chan_ooh323: reset rrq count on gk registration" 2016-11-08 04:59:12 -06:00
.gitignore Add .gitignore and .gitreview files 2015-04-11 19:43:43 -06:00
app_mysql.c core: Don't allow free to mean ast_free (and malloc, etc..). 2014-09-26 14:41:38 +00:00
cdr_mysql.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
chan_mobile.c addons/chan_mobile: do not use strerror_r 2016-11-11 08:33:44 +02:00
chan_ooh323.c Refactor usage pattern of xmldoc info tag. 2016-08-16 10:42:46 -05:00
chan_ooh323.h Fixes to include signal.h 2016-06-08 20:37:08 +03:00
format_mp3.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
Makefile Build System: Create Makefile macro MOD_ADD_SOURCE. 2015-04-14 12:53:03 -04:00
ooh323cDriver.c core: Don't allow free to mean ast_free (and malloc, etc..). 2014-09-26 14:41:38 +00:00
ooh323cDriver.h media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
res_config_mysql.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00