RTEMS CPU Kit with SuperCore  4.11.2
Macros
seterr.h File Reference

Data which Ease the Burden of Consistently Setting Errno. More...

#include <errno.h>
Include dependency graph for seterr.h:

Go to the source code of this file.

Macros

#define rtems_set_errno_and_return_value(_error, _value)   do { errno = ( _error ); return ( _value ); } while ( 0 )
 This is a helper macro which will set the variable errno and return the specified value to the caller. More...
 
#define rtems_set_errno_and_return_minus_one(_error)   rtems_set_errno_and_return_value( _error, -1 )
 This is a helper macro which will set the variable errno and return -1 to the caller. More...
 

Detailed Description

Data which Ease the Burden of Consistently Setting Errno.

This file contains macros and definitions which ease the burden of consistently setting errno and returning -1.