comedilib/lib
Ian Abbott 6458b08e56 lib: remove some unnecessary setting of __comedi_errno
Since comedi_ioctl() calls libc_error() to set __comedi_errno to errno
(and possibly print an error message), there is no need for callers of
comedi_ioctl() to set __comedi_errno immediately afterwards.  But
comedi_command(), comedi_command_test(), and comedi_do_insnlist()
currently do that.  Remove the unneeded setting of __comedi_errno in
those functions.

Also, comedi_command() and comedi_command_test() check __comedi_errno
regardless of whether comedi_ioctl() returnis an error, and possibly
modify the error code to an internal comedi error.  Change them to only
do that if comedi_ioctl() returns an error, because __comedi_errno might
contain a stale value.
2016-05-12 16:12:43 +01:00
..
buffer.c Added some device and subdevice validity checks. 2008-11-05 12:52:25 +00:00
calib.c #include <sys/stat.h> needed for fstat(). 2011-01-05 15:02:44 +00:00
calib_lex.l lib/calib_lex.l: Add #define YY_NO_INPUT to C pre-amble 2013-03-21 15:49:18 +00:00
calib_yacc.y lib/calib_yacc.y: fix segfault in comedi_parse_calibration_file() 2015-08-20 13:02:53 +01:00
cmd.c lib: remove cached cmd_timed and cmd_timed_errno from subdevice 2013-05-07 12:58:30 +01:00
comedi.c lib: remove some unnecessary setting of __comedi_errno 2016-05-12 16:12:43 +01:00
data.c lib/data.c: remove unused variables 2013-05-07 13:01:08 +01:00
dio.c Updated comedi_dio_config implementation to reflect logical split 2008-02-12 18:27:00 +00:00
error.c Put __comedi_errno variable into thread-local storage if the compiler 2009-02-18 14:10:54 +00:00
filler.c Fixed do_test_for_insn_bits(), broken by validity checks added to 2008-12-18 17:23:14 +00:00
get.c Added some device and subdevice validity checks. 2008-11-05 12:52:25 +00:00
insn_config_wrappers.c Add digital trigger configuration functions 2016-03-21 11:28:29 +00:00
ioctl.c Made comedi_ioctl take its third argument as a void* instead of 2008-02-12 01:12:46 +00:00
libinternal.h lib: replace YYPARSE_PARAM and YYLEX_PARAM 2014-01-07 14:24:36 +00:00
Makefile.am lib/Makefile.am: Add 'comedi_la_LIBADD = -lm' 2014-02-13 11:39:35 +00:00
range.c lib/range.c: deal with samples > maxdata when converting to phys 2015-08-24 17:33:11 +01:00
sv.c lib: check some malloc/calloc/realloc failures 2013-05-07 12:32:26 +01:00
timed.c trying to fix undefined symbol problems people are having 2003-05-18 00:26:59 +00:00
timer.c Added some device and subdevice validity checks. 2008-11-05 12:52:25 +00:00
version_script Add digital trigger configuration functions 2016-03-21 11:28:29 +00:00