libosmocore/src/gsm
Jacob Erlbeck a6be224b88 ipa: Return -errno instead of -1 in ipa_send
Currently, the ipa_send function returns -1 in one execution branch
to indicate an error and -EIO in another. This is not consistent and
can lead to a misinterpretation of the error code, since -1 is -EPERM
and in general, EPERM is not returned by write(2).

This patch changes the return code to -errno instead of -1 for the
case that write(2) fails for same reason. So -rc is always a sensible
error value if there is a failure.

Sponsored-by: On-Waves ehf
2014-12-22 14:44:59 +01:00
..
milenage include: Switch to #pragma once pattern 2014-06-16 10:17:27 +02:00
Makefile.am build: remove unused all_includes and use AM_CPPFLAGS 2014-10-03 08:48:31 +02:00
a5.c fix libosmocore build for NuttX target 2014-12-04 14:15:36 +01:00
abis_nm.c abis_nm: add abis_nm_msg_disc_names[] value_string 2014-08-17 19:36:26 +02:00
auth_comp128v1.c auth_core: don't use anonymous unions to make certain gcc versions happy 2011-12-07 11:35:02 +01:00
auth_comp128v23.c Refactor COMP128v23 implementation and add test suit 2013-12-07 18:10:38 +01:00
auth_core.c misc: Doxygen tweaks: fixed some typos and minor errors 2013-02-15 13:27:59 +01:00
auth_milenage.c auth_milenage/osmo-auc-gen: compute OPC in case only OP is known 2012-03-21 09:04:14 +01:00
comp128.c comp128: mark ki and srand as 'const' input parameters 2011-12-06 21:52:09 +01:00
comp128v23.c Refactor COMP128v23 implementation and add test suit 2013-12-07 18:10:38 +01:00
gan.c Fix copyright header in gan.c 2014-09-11 13:20:33 +08:00
gprs_cipher_core.c gprs_cipher_core: Fix potential buffer overflows 2011-07-16 12:03:46 +02:00
gsm48.c gsm48: Added 'Network Daylight Saving Time' info element 2013-09-16 14:11:36 +02:00
gsm48_ie.c gsm/gsm48ie: Fix range 256 W[i] decoding 2014-01-13 15:15:11 +01:00
gsm0411_smc.c Change license of gsm0411_smc/smr to GPLv2+ 2014-10-26 20:50:31 +01:00
gsm0411_smr.c Change license of gsm0411_smc/smr to GPLv2+ 2014-10-26 20:50:31 +01:00
gsm0411_utils.c Change license of gsm0411_smc/smr to GPLv2+ 2014-10-26 20:50:31 +01:00
gsm0480.c ussd: Fix text of RELEASE COMPLETE 2013-10-15 11:50:34 +02:00
gsm0502.c import gsm0502_calc_paging_group() from openbsc 2011-06-26 14:47:16 +02:00
gsm0808.c gsm0808: Fix copy and paste pointed out by clang 2014-08-21 14:19:37 +02:00
gsm_utils.c sms: Fix gsm_7bit legacy functions return value 2014-01-09 08:22:14 +01:00
ipa.c ipa: Return -errno instead of -1 in ipa_send 2014-12-22 14:44:59 +01:00
kasumi.c gsm: Add Kasumi cipher implementation 2014-06-16 14:59:30 +02:00
lapd_core.c gsm/lapdm: Prevent LAPD tx_queue from filling up in polling mode 2014-03-26 18:11:07 +01:00
lapdm.c gsm/lapdm: Prevent LAPD tx_queue from filling up in polling mode 2014-03-26 18:11:07 +01:00
libosmogsm.map ipa: rename functions for consistency 2014-08-20 23:16:36 +02:00
rsl.c misc: Fix the spelling of frame in the RLM cause strings 2013-06-11 17:55:55 +02:00
rxlev_stat.c bitvec: add bitvec_find_first_bit_pos() from gsm/rxlev_stat.c 2011-03-28 20:00:45 +02:00
sysinfo.c sysinfo: add EXTENDED MEASUREMENT ORDER / MEASUREMENT INFO to SI types 2011-06-25 21:39:18 +02:00
tlv_parser.c add missing copyright statements to source code files 2014-09-11 13:18:08 +08:00