8 extern int giSyscall_ClientID;
9 extern void Request_Preinit(void);
10 extern int acess__SysOpen(const char *Path, unsigned int flags);
15 fprintf(stderr, "TODO: Windows libacessnative setup\n");
22 int __attribute__ ((constructor)) libacessnative_init(void);
24 int libacessnative_init(void)
28 const char *preopens = getenv("AN_PREOPEN");
33 const char *splitter = strchr(preopens, ':');
36 len = strlen(preopens);
39 len = splitter - preopens;
42 memcpy(path, preopens, len);
44 int fd = acess__SysOpen(path, 6); // WRITE,READ,no EXEC
46 fprintf(stderr, "Unable to preopen '%s'\n", path);
51 preopens = splitter + 1;
55 // if( !getenv("ACESSNATIVE_ID")
62 void Debug(const char *format, ...)
66 va_start(args, format);
67 vfprintf(stdout, format, args);
72 void Warning(const char *format, ...)
76 va_start(args, format);
77 vfprintf(stdout, format, args);
82 void __libc_csu_fini()
86 void __libc_csu_init()