diff options
author | Alex Auvolat <alex@adnab.me> | 2017-04-19 19:34:05 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2017-04-19 19:34:05 +0200 |
commit | 59ecab36f634a00cc6e2c4194bf2d5ebc4ec70eb (patch) | |
tree | 85daa2af4ea8840c8f7fb9f6e88bc3f76a47fecf /src/syslua/lx/sysdef.lua | |
parent | e53a39d9ec28b24ea0d408f1500e987d005cd651 (diff) | |
download | kogata-59ecab36f634a00cc6e2c4194bf2d5ebc4ec70eb.tar.gz kogata-59ecab36f634a00cc6e2c4194bf2d5ebc4ec70eb.zip |
First lua app
Diffstat (limited to 'src/syslua/lx/sysdef.lua')
-rw-r--r-- | src/syslua/lx/sysdef.lua | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/src/syslua/lx/sysdef.lua b/src/syslua/lx/sysdef.lua index 7c0d14f..43015e2 100644 --- a/src/syslua/lx/sysdef.lua +++ b/src/syslua/lx/sysdef.lua @@ -1,6 +1,7 @@ --- Constant definitions based on common/include/proto/fs.h return { + -- Definitions from proto/fs.h + -- FILE TYPES FT_REGULAR = 0, FT_DIR = 0x01, @@ -33,4 +34,32 @@ return { SEL_READ = 0x01, SEL_WRITE = 0x02, SEL_ERROR = 0x04, + + + -- Definitions from proto/launch.h + + -- STANDARD FILE DESCRIPTORS + STD_FD_TTY_STDIO = 1, + STD_FD_STDIN = 2, + STD_FD_STDOUT = 3, + STD_FD_STDERR = 4, + STD_FD_GIP = 5, + STD_FD_GIOSRV = 10, + STD_FD_TTYSRV = 11, + + -- Definitions from proto/fb.h + + -- FRAMEBUFFER TYPES : TODO + + -- FRAMEBUFFER IOCTLs + IOCTL_FB_GET_INFO = 1, + IOCTL_FBDEV_GET_MODE_INFO = 10, + IOCTL_FBDEV_SET_MODE = 11, + + -- Definitions from proto/proc.h + PS_LOADING = 1, + PS_RUNNING = 2, + PS_FINISHED = 3, + PS_FAILURE = 4, + PS_KILLED = 5, } |