flinklib
flinklib: flink C library for Linux
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
error.c File Reference

Error handling. More...

#include "error.h"
#include <errno.h>
#include "log.h"
#include <string.h>
Include dependency graph for error.c:

Go to the source code of this file.

Macros

#define NOF_ERRORS   (sizeof(flinklib_error_strings) / sizeof(char*))
 

Functions

const char * flink_strerror (int e)
 
void flink_perror (const char *p)
 
void libc_error (void)
 
void flink_error (int e)
 

Variables

__thread int flink_errno = 0
 
const char * flinklib_error_strings []
 

Detailed Description

Error handling.

Author
Martin Züger

Definition in file error.c.

Macro Definition Documentation

#define NOF_ERRORS   (sizeof(flinklib_error_strings) / sizeof(char*))

Definition at line 39 of file error.c.

Function Documentation

void flink_error ( int  e)

Definition at line 64 of file error.c.

Here is the caller graph for this function:

void flink_perror ( const char *  p)

Definition at line 50 of file error.c.

Here is the caller graph for this function:

const char* flink_strerror ( int  e)

Definition at line 42 of file error.c.

Here is the caller graph for this function:

void libc_error ( void  )

Definition at line 56 of file error.c.

Here is the caller graph for this function:

Variable Documentation

__thread int flink_errno = 0

Definition at line 26 of file error.c.

const char* flinklib_error_strings[]
Initial value:
= {
"No error",
"Unknown error",
"Not supported",
"Invalid device",
"Invalid subdevice",
"Invalid channel",
"Null ptr as argument",
"Unknown ioctl command",
"Wrong subdevice type",
}

Definition at line 28 of file error.c.