* OF THIS SOFTWARE.
*
* $Log: nmem.h,v $
- * Revision 1.6 2001-06-26 14:11:27 adam
+ * Revision 1.7 2002-09-10 18:41:18 adam
+ * Added yaz_errno
+ *
+ * Revision 1.6 2001/06/26 14:11:27 adam
* Added MUTEX functions for NMEM module (used by OID utility).
*
* Revision 1.5 2001/03/25 21:55:12 adam
YAZ_EXPORT void nmem_init (void);
YAZ_EXPORT void nmem_exit (void);
+YAZ_EXPORT int yaz_errno (void);
YAZ_END_CDECL
/*
- * Copyright (c) 1995-2001, Index Data.
+ * Copyright (c) 1995-2002, Index Data.
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
- * $Id: nmem.c,v 1.35 2002-06-12 19:42:38 adam Exp $
+ * $Id: nmem.c,v 1.36 2002-09-10 18:41:18 adam Exp $
*/
/*
#include <assert.h>
#include <string.h>
+#include <errno.h>
#include <yaz/xmalloc.h>
#include <yaz/nmem.h>
#include <yaz/log.h>
return TRUE;
}
#endif
+
+int yaz_errno(void)
+{
+ return errno;
+}