diff options
author | crunchy <crunchy> | 2002-09-19 20:46:02 +0000 |
---|---|---|
committer | crunchy <crunchy> | 2002-09-19 20:46:02 +0000 |
commit | 7eb36f9021e86a75fd291b6aae424117a230134d (patch) | |
tree | 293f43fd20451bd1becc3a9aa84d26b3d76f0fbb /libmpio/mpio.h | |
parent | 652175f6669f3ab57a7b7b4bdf3af8e4ea29a13a (diff) | |
download | mpiosh-7eb36f9021e86a75fd291b6aae424117a230134d.tar.gz mpiosh-7eb36f9021e86a75fd291b6aae424117a230134d.tar.bz2 mpiosh-7eb36f9021e86a75fd291b6aae424117a230134d.zip |
added error handing functions
Diffstat (limited to 'libmpio/mpio.h')
-rw-r--r-- | libmpio/mpio.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/libmpio/mpio.h b/libmpio/mpio.h index b4c381c..7df2349 100644 --- a/libmpio/mpio.h +++ b/libmpio/mpio.h @@ -1,7 +1,7 @@ /* -*- linux-c -*- */ /* - * $Id: mpio.h,v 1.5 2002/09/18 22:18:29 germeier Exp $ + * $Id: mpio.h,v 1.6 2002/09/19 20:46:02 crunchy Exp $ * * Library for USB MPIO-* * @@ -95,6 +95,19 @@ int mpio_sync(mpio_t *, mpio_mem_t); int mpio_memory_debug(mpio_t *, mpio_mem_t); /* + * error handling + */ + +/* returns error code of last error */ +int mpio_errno(void); + +/* returns the description of the error <errno> */ +char * mpio_strerror(int errno); + +/* prints the error message of the last error*/ +void mpio_perror(char *prefix); + +/* * timeline: * --------- * 2004: some functions to change the order of files |