summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/src/nixio.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-03-05 19:20:40 +0000
committerSteven Barth <steven@midlink.org>2009-03-05 19:20:40 +0000
commitf151bb804f558f5132a5b39feb38116ea2e95b21 (patch)
tree88760d93fbcc8bdd9efb39ae315575c129815a74 /libs/nixio/src/nixio.c
parentd6e251adbe71dfeac69290b8905f444e19feaadd (diff)
nixio: Export more constants, introduce {g,s}et{g,u}id, getpid, getppid
Diffstat (limited to 'libs/nixio/src/nixio.c')
-rw-r--r--libs/nixio/src/nixio.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/nixio/src/nixio.c b/libs/nixio/src/nixio.c
index e44f5fd470..d433ba4fd2 100644
--- a/libs/nixio/src/nixio.c
+++ b/libs/nixio/src/nixio.c
@@ -130,9 +130,10 @@ LUALIB_API int luaopen_nixio(lua_State *L) {
lua_setfield(L, -2, "version");
/* some constants */
- lua_createtable(L, 0, 11);
+ lua_createtable(L, 0, 16);
NIXIO_PUSH_CONSTANT(EACCES);
+ NIXIO_PUSH_CONSTANT(EINTR);
NIXIO_PUSH_CONSTANT(ENOSYS);
NIXIO_PUSH_CONSTANT(EINVAL);
NIXIO_PUSH_CONSTANT(EWOULDBLOCK);
@@ -143,6 +144,10 @@ LUALIB_API int luaopen_nixio(lua_State *L) {
NIXIO_PUSH_CONSTANT(SIGINT);
NIXIO_PUSH_CONSTANT(SIGTERM);
NIXIO_PUSH_CONSTANT(SIGKILL);
+ NIXIO_PUSH_CONSTANT(SIGHUP);
+ NIXIO_PUSH_CONSTANT(SIGSTOP);
+ NIXIO_PUSH_CONSTANT(SIGCONT);
+ NIXIO_PUSH_CONSTANT(SIGSEGV);
lua_setfield(L, -2, "const");