From b7a55f71ed629d076996e2373da0b32e9c61925e Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 9 Jul 2013 12:26:52 +0800 Subject: [PATCH] HOST=native - Fixes for new syscalls - TODO: Regression tests for this sort of stuff --- AcessNative/ld-acess_src/exports.c | 8 ++++++++ Usermode/Libraries/ld-acess.so_src/Makefile | 2 ++ .../include_exp/acess/_native_syscallmod.h | 1 + 3 files changed, 11 insertions(+) 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 -- 2.20.1