#ifndef REGTEST\r
#include <_PDCLIB_glue.h>\r
#include <string.h>\r
+#include <threads.h>\r
\r
extern struct _PDCLIB_file_t * _PDCLIB_filelist;\r
\r
/* no memory */\r
return NULL;\r
}\r
+\r
+ if(mtx_init(&rc->lock, mtx_recursive) != thrd_success) {\r
+ free(rc);\r
+ return NULL;\r
+ }\r
+\r
rc->status = mode;\r
rc->handle = fd;\r
/* Setting pointers into the memory block allocated above */\r