]> pd.if.org Git - pdclib/blobdiff - opt/tss_errno/errno.c
Move existing errno handling to tss_errno, to allow the POSIX platform to just use...
[pdclib] / opt / tss_errno / errno.c
similarity index 84%
rename from functions/_PDCLIB/errno.c
rename to opt/tss_errno/errno.c
index 4facee58ad5ef33f7452fcceeaef956253ace0e7..6a606fc1b40752afabc267ac3610e50a08730713 100644 (file)
@@ -7,11 +7,13 @@
 */
 
 #ifndef REGTEST
-#include <_PDCLIB_int.h>
+#include <threads.h>
 
-int _PDCLIB_errno = 0;
+/* Temporary */
 
-int * _PDCLIB_errno_func()
+static int _PDCLIB_errno = 0;
+
+int * _PDCLIB_errno()
 {
     return &_PDCLIB_errno;
 }