projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Thread-safe handling of errno variable.
[yaz-moved-to-github.git]
/
util
/
nmem.c
diff --git
a/util/nmem.c
b/util/nmem.c
index
15fe281
..
75cbd20
100644
(file)
--- a/
util/nmem.c
+++ b/
util/nmem.c
@@
-3,7
+3,7
@@
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
- * $Id: nmem.c,v 1.36 2002-09-10 18:41:18 adam Exp $
+ * $Id: nmem.c,v 1.37 2002-09-25 12:37:07 adam Exp $
*/
/*
*/
/*
@@
-435,3
+435,8
@@
int yaz_errno(void)
{
return errno;
}
{
return errno;
}
+
+void yaz_set_errno(int v)
+{
+ errno = v;
+}