Usermode/ld-acess - Overhaul cleanup of ELF loader
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / lib.c
index 0672102..9b8f86a 100644 (file)
@@ -73,10 +73,9 @@ void *memcpy(void *dest, const void *src, size_t len)
 int file_exists(const char *filename)
 {
         int    fd;
-       //fd = open(filename, OPENFLAG_READ);
-       fd = open(filename, 0);
+       fd = _SysOpen(filename, 0);
        if(fd == -1)    return 0;
-       close(fd);
+       _SysClose(fd);
        return 1;
 }
 

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