projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
840854a
)
Document yaz_errno utils
author
Adam Dickmeiss
<adam@indexdata.dk>
Sun, 1 Mar 2009 22:04:09 +0000
(23:04 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sun, 1 Mar 2009 22:04:09 +0000
(23:04 +0100)
include/yaz/nmem.h
patch
|
blob
|
history
diff --git
a/include/yaz/nmem.h
b/include/yaz/nmem.h
index
6f0d230
..
901b118
100644
(file)
--- a/
include/yaz/nmem.h
+++ b/
include/yaz/nmem.h
@@
-124,8
+124,20
@@
YAZ_EXPORT void nmem_destroy(NMEM n);
*/
YAZ_EXPORT void *nmem_malloc(NMEM n, int size);
+/** \brief returns errno
+ \returns errno value
+*/
YAZ_EXPORT int yaz_errno(void);
+
+/** \brief sets errno to value
+ \param v errno value
+*/
YAZ_EXPORT void yaz_set_errno (int v);
+
+/** \brief returns system error description string
+ \param buf buffer for result
+ \param max maximum number of bytes to store
+*/
YAZ_EXPORT void yaz_strerror(char *buf, int max);
YAZ_END_CDECL