# HG changeset patch # User menikon # Date 1576473508 -32400 # Node ID 86cd551e5b38974f9b6609f32b34b7b12edc2987 # Parent dec1fa96427143fd1dc44e07cef5df9797e761f1 add sys_open_impl.cbc diff -r dec1fa964271 -r 86cd551e5b38 src/sys_open_impl.cbc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/sys_open_impl.cbc Mon Dec 16 14:18:28 2019 +0900 @@ -0,0 +1,30 @@ +#include "../context.h" +#interface "SysOpen.h" + +// ---- +// typedef struct SysOpenImpl impl SysOpen { +// +// } SysOpenImpl; +// ---- + +SysOpen* createSysOpenImpl(struct Context* cbc_context) { + struct SysOpen* sys_open = new SysOpen(); + struct SysOpenImpl* sys_open_impl = new SysOpenImpl(); + sys_open->sys_open = (union Data*)sys_open_impl; + sys_open->fd = 0; + sys_open->omode = 0; + sys_open->addr = NULL; + sys_open->file = NULL; + sys_open->ip = NULL; + sys_open->open = C_openSysOpenImpl; + sys_open->next = C_nextSysOpenImpl; + return sys_open; +} +__code openSysOpenImpl(struct SysOpenImpl* sys_open, int fd, int omode, char* addr, struct file* file, struct inode* ip, __code next(...)) { + + goto next(...); +} + +__code nextSysOpenImpl(...) { + +}