summaryrefslogtreecommitdiff
path: root/system/include/envlock.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-24 18:21:58 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-24 18:21:58 -0700
commit2f11f2e15392069a3c4a72fef2358fbf722b4e0e (patch)
tree7aadb70939ccfa84575b44e0ee714d891666efc7 /system/include/envlock.h
parentec318d92f2c5f645eab561efc461941405071131 (diff)
start to include system headers (tests broken)
Diffstat (limited to 'system/include/envlock.h')
-rw-r--r--system/include/envlock.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/include/envlock.h b/system/include/envlock.h
new file mode 100644
index 00000000..9bb6a813
--- /dev/null
+++ b/system/include/envlock.h
@@ -0,0 +1,15 @@
+/* envlock.h -- header file for env routines. */
+
+#ifndef _INCLUDE_ENVLOCK_H_
+#define _INCLUDE_ENVLOCK_H_
+
+#include <_ansi.h>
+#include <sys/reent.h>
+
+#define ENV_LOCK __env_lock(reent_ptr)
+#define ENV_UNLOCK __env_unlock(reent_ptr)
+
+void _EXFUN(__env_lock,(struct _reent *reent));
+void _EXFUN(__env_unlock,(struct _reent *reent));
+
+#endif /* _INCLUDE_ENVLOCK_H_ */