From: John Hodge Date: Tue, 9 Jul 2013 04:26:52 +0000 (+0800) Subject: HOST=native - Fixes for new syscalls X-Git-Tag: rel0.15~383 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=b7a55f71ed629d076996e2373da0b32e9c61925e;p=tpg%2Facess2.git HOST=native - Fixes for new syscalls - TODO: Regression tests for this sort of stuff --- diff --git a/AcessNative/ld-acess_src/exports.c b/AcessNative/ld-acess_src/exports.c index d71476d5..d735ff8f 100644 --- a/AcessNative/ld-acess_src/exports.c +++ b/AcessNative/ld-acess_src/exports.c @@ -148,9 +148,15 @@ int acess__SysSelect(int nfds, fd_set *read, fd_set *write, fd_set *error, int64 events ); } +int acess__SysMkDir(const char *pathname) +{ + DEBUG("TODO: _SysMkDir"); + return 0; +} int acess__SysUnlink(const char *pathname) { // TODO: + DEBUG("TODO: _Unlink"); return 0; } @@ -439,6 +445,8 @@ const tSym caBuiltinSymbols[] = { DEFSYM(_SysGetACL), DEFSYM(_SysMount), DEFSYM(_SysSelect), + DEFSYM(_SysMkDir), + DEFSYM(_SysUnlink), DEFSYM(_SysClone), DEFSYM(_SysExecVE), diff --git a/Usermode/Libraries/ld-acess.so_src/Makefile b/Usermode/Libraries/ld-acess.so_src/Makefile index 5deab5fa..07bebfb8 100644 --- a/Usermode/Libraries/ld-acess.so_src/Makefile +++ b/Usermode/Libraries/ld-acess.so_src/Makefile @@ -28,10 +28,12 @@ endif include ../Makefile.tpl # create libld-acess.so +ifneq ($(ARCH),native) $(_XBIN): $(_OBJPREFIX)_stublib.o @echo [LD] -o -shared libld-acess.so $(LD) -shared -o $@ $< $(LDFLAGS) # @$(LD) $(LDFLAGS) -o $@ $(OBJ) +endif # Override .ao to look in the object prefix for the source diff --git a/Usermode/Libraries/ld-acess.so_src/include_exp/acess/_native_syscallmod.h b/Usermode/Libraries/ld-acess.so_src/include_exp/acess/_native_syscallmod.h index a12d9645..cf268eb8 100644 --- a/Usermode/Libraries/ld-acess.so_src/include_exp/acess/_native_syscallmod.h +++ b/Usermode/Libraries/ld-acess.so_src/include_exp/acess/_native_syscallmod.h @@ -42,6 +42,7 @@ #define _SysIOCtl acess__SysIOCtl #define _SysMount acess__SysMount #define _SysSelect acess__SysSelect +#define _SysMkDir acess__SysMkDir #define _SysUnlink acess__SysUnlink #define _errno acess__errno