3 #define acess__SysSpawn _disabled_acess__SysSpawn
4 #include "../ld-acess_src/exports.c"
6 void *_crt0_exit_handler;
8 int *libc_geterrno(void)
13 void _ZN4_sys5debugEPKcz(const char *fmt, ...) __attribute__((alias("acess__SysDebug")));
15 #undef acess__SysSpawn
17 int acess__SysSpawn(const char *binary, const char **argv, const char **envp, int nfd, int fds[], struct s_sys_spawninfo *info)
23 Debug("_SysSpawn('%s', %p (%i), %p, %i, %p, %p)",
24 binary, argv, argc, envp, nfd, fds, info);
29 if( _Syscall(SYS_AN_GETPATH, "<d >s", sizeof(realpath)-1, realpath, binary) <= 0 ) {
30 Warning("No translation for path '%s'", binary);
35 Warning("TODO: Spawn '%s' = '%s'", binary, realpath);
38 int newID = _Syscall(SYS_AN_SPAWN, "<d >d >d",
39 sizeof(emulated_tid), &emulated_tid,
41 (info ? sizeof(*info) : 0), info
48 if( acessnative_spawn(realpath, newID, argv, envp) ) {
54 void ldacess_DumpLoadedLibraries(void)
56 Debug("ldacess_DumpLoadedLibraries");