summaryrefslogtreecommitdiff
path: root/luxio.c
diff options
context:
space:
mode:
authorRob Kendrick (monotony) <rjek@rjek.com>2012-05-05 19:28:15 +0100
committerRob Kendrick (monotony) <rjek@rjek.com>2012-05-05 19:28:15 +0100
commit6f9a7d3293c12d4b3088d0203619dd6e0b0bd65b (patch)
treee77a424ee3b13f7d9ebe2bd5ab65b3942adaca86 /luxio.c
parent427eb010261a3247f93bdba2e5ab341ed83ab1e7 (diff)
downloadluxio-6f9a7d3293c12d4b3088d0203619dd6e0b0bd65b.tar.gz
Low-level POSIX message passing binding. No mq_notify, as that's message-based.
Diffstat (limited to 'luxio.c')
-rw-r--r--luxio.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/luxio.c b/luxio.c
index 393d061..35a00dc 100644
--- a/luxio.c
+++ b/luxio.c
@@ -43,6 +43,8 @@
# define lua_rawlen(L, idx) lua_objlen((L), (idx))
#endif
+#define INVALID_MODE ((mode_t) -1)
+
/* External interface to Lua *************************************************/
int luaopen_luxio(lua_State *L);
@@ -622,7 +624,6 @@ luxio_getcwd(lua_State *L) /* 5.2.2 */
/* 5.3 General file creation *************************************************/
-#define INVALID_MODE ((mode_t) -1)
static int
luxio_open(lua_State *L) /* 5.3.1 */
{
@@ -1233,7 +1234,7 @@ luxio_fdatasync(lua_State *L) /* 6.6.2 */
/* 15 Message passing ********************************************************/
-/* TODO: all of this. message queues and such would be cool to have. */
+#include "luxio_mq.c"
/* 16 Thread management ******************************************************/
@@ -2224,6 +2225,9 @@ luxio_functions[] = {
{ "time", luxio_time },
{ "times", luxio_times },
+
+ LUXIO_MQ_FUNCS
+ LUXIO_MQ_FUNCS_2001
{ NULL, NULL }
};