summaryrefslogtreecommitdiff
path: root/Unix/i686-elf/include/sys/lock.h
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-12-18 16:22:58 +0100
committerAlexis211 <alexis211@gmail.com>2009-12-18 16:22:58 +0100
commitd04645198d648a17ccb83e70aa5e6d60a06121aa (patch)
tree4ee3203112c2fda42a85ec00f3f78eee14689869 /Unix/i686-elf/include/sys/lock.h
parent5f87c447bdcb82beacbfb930942fe9995dcdb60f (diff)
downloadMelon-d04645198d648a17ccb83e70aa5e6d60a06121aa.tar.gz
Melon-d04645198d648a17ccb83e70aa5e6d60a06121aa.zip
[nonworking commit] Started porting newlib
Diffstat (limited to 'Unix/i686-elf/include/sys/lock.h')
-rw-r--r--Unix/i686-elf/include/sys/lock.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/Unix/i686-elf/include/sys/lock.h b/Unix/i686-elf/include/sys/lock.h
new file mode 100644
index 0000000..c05814a
--- /dev/null
+++ b/Unix/i686-elf/include/sys/lock.h
@@ -0,0 +1,22 @@
+#ifndef __SYS_LOCK_H__
+#define __SYS_LOCK_H__
+
+/* dummy lock routines for single-threaded aps */
+
+typedef int _LOCK_T;
+typedef int _LOCK_RECURSIVE_T;
+
+#define __LOCK_INIT(class,lock) static int lock = 0;
+#define __LOCK_INIT_RECURSIVE(class,lock) static int lock = 0;
+#define __lock_init(lock) (0)
+#define __lock_init_recursive(lock) (0)
+#define __lock_close(lock) (0)
+#define __lock_close_recursive(lock) (0)
+#define __lock_acquire(lock) (0)
+#define __lock_acquire_recursive(lock) (0)
+#define __lock_try_acquire(lock) (0)
+#define __lock_try_acquire_recursive(lock) (0)
+#define __lock_release(lock) (0)
+#define __lock_release_recursive(lock) (0)
+
+#endif /* __SYS_LOCK_H__ */