HOST=native - Fixes for new syscalls
authorJohn Hodge <[email protected]>
Tue, 9 Jul 2013 04:26:52 +0000 (12:26 +0800)
committerJohn Hodge <[email protected]>
Tue, 9 Jul 2013 04:26:52 +0000 (12:26 +0800)
- TODO: Regression tests for this sort of stuff

AcessNative/ld-acess_src/exports.c
Usermode/Libraries/ld-acess.so_src/Makefile
Usermode/Libraries/ld-acess.so_src/include_exp/acess/_native_syscallmod.h

index d71476d..d735ff8 100644 (file)
@@ -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),
index 5deab5f..07bebfb 100644 (file)
@@ -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
index a12d964..cf268eb 100644 (file)
@@ -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

UCC git Repository :: git.ucc.asn.au