libafdt
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups
Data Structures | Enumerations | Functions | Variables
Error Handling

Data Structures

struct  afdt_error_t
 Detailed information about an error. More...
 

Enumerations

enum  afdt_phase {
  AFDT_NO_PHASE,
  AFDT_CREATE_SERVER,
  AFDT_ACCEPT_CLIENT,
  AFDT_HANDLE_REQUEST,
  AFDT_CREATE_CLIENT,
  AFDT_HANDLE_RESPONSE
}
 Phase of the AFDT process during which an error occurred. More...
 
enum  afdt_operation {
  AFDT_NO_OPERATION,
  AFDT_MALLOC,
  AFDT_SOCKET,
  AFDT_PATHNAME,
  AFDT_BIND,
  AFDT_LISTEN,
  AFDT_ACCEPT,
  AFDT_CONNECT,
  AFDT_FORMAT,
  AFDT_SENDMSG,
  AFDT_RECVMSG,
  AFDT_EVENT_BASE_SET,
  AFDT_EVENT_ADD,
  AFDT_POLL,
  AFDT_TIMEOUT
}
 Operation that resulted in an error. More...
 

Functions

const char * afdt_phase_str (enum afdt_phase phase)
 Convert afdt_phase into a textual description.
 
const char * afdt_operation_str (enum afdt_operation operation)
 Convert afdt_operation into a textual description.
 

Variables

const struct afdt_error_t AFDT_ERROR_T_INIT
 Initializer for error information. More...
 

Detailed Description

Types, values, and functions used for reporting errors.

Enumeration Type Documentation

Operation that resulted in an error.

These error codes are used by the all interfaces to indicate the low-level operation that triggered an error. These are mostly system calls.

enum afdt_phase

Phase of the AFDT process during which an error occurred.

These error codes are used by the asynchronous interface to indicate the high-level operation that triggered an error.

Variable Documentation

const struct afdt_error_t AFDT_ERROR_T_INIT

Initializer for error information.

All afdt_error_t objects passed to functions in the low-level interface should be initialized with this value.