Lines Matching refs:err
109 int err; in sleepMsec() local
115 err = nanosleep (&ts, &ts); in sleepMsec()
116 } while (err < 0 && errno == EINTR); in sleepMsec()
677 int err = 0; in at_send_command_full_nolock() local
681 err = AT_ERROR_COMMAND_PENDING; in at_send_command_full_nolock()
685 err = writeline (command); in at_send_command_full_nolock()
687 if (err < 0) { in at_send_command_full_nolock()
702 err = pthread_cond_timedwait(&s_commandcond, &s_commandmutex, &ts); in at_send_command_full_nolock()
704 err = pthread_cond_wait(&s_commandcond, &s_commandmutex); in at_send_command_full_nolock()
707 if (err == ETIMEDOUT) { in at_send_command_full_nolock()
708 err = AT_ERROR_TIMEOUT; in at_send_command_full_nolock()
724 err = AT_ERROR_CHANNEL_CLOSED; in at_send_command_full_nolock()
728 err = 0; in at_send_command_full_nolock()
732 return err; in at_send_command_full_nolock()
744 int err; in at_send_command_full() local
757 err = at_send_command_full_nolock(command, type, in at_send_command_full()
766 if (err == AT_ERROR_TIMEOUT && s_onTimeout != NULL) { in at_send_command_full()
770 return err; in at_send_command_full()
785 int err; in at_send_command() local
787 err = at_send_command_full (command, NO_RESULT, NULL, in at_send_command()
790 return err; in at_send_command()
798 int err; in at_send_command_singleline() local
800 err = at_send_command_full (command, SINGLELINE, responsePrefix, in at_send_command_singleline()
803 if (err == 0 && pp_outResponse != NULL in at_send_command_singleline()
813 return err; in at_send_command_singleline()
820 int err; in at_send_command_numeric() local
822 err = at_send_command_full (command, NUMERIC, NULL, in at_send_command_numeric()
825 if (err == 0 && pp_outResponse != NULL in at_send_command_numeric()
835 return err; in at_send_command_numeric()
844 int err; in at_send_command_sms() local
846 err = at_send_command_full (command, SINGLELINE, responsePrefix, in at_send_command_sms()
849 if (err == 0 && pp_outResponse != NULL in at_send_command_sms()
859 return err; in at_send_command_sms()
867 int err; in at_send_command_multiline() local
869 err = at_send_command_full (command, MULTILINE, responsePrefix, in at_send_command_multiline()
872 return err; in at_send_command_multiline()
903 int err = 0; in at_handshake() local
918 err = at_send_command_full_nolock ("ATE0Q0V1", NO_RESULT, in at_handshake()
921 if (err == 0) { in at_handshake()
926 if (err == 0) { in at_handshake()
938 return err; in at_handshake()
948 int err; in at_get_cme_error() local
962 err = at_tok_start(&p_cur); in at_get_cme_error()
964 if (err < 0) { in at_get_cme_error()
968 err = at_tok_nextint(&p_cur, &ret); in at_get_cme_error()
970 if (err < 0) { in at_get_cme_error()