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 #undef acess__SysSpawn
15 int acess__SysSpawn(const char *binary, const char **argv, const char **envp, int nfd, int fds[], struct s_sys_spawninfo *info)
21 Debug("_SysSpawn('%s', %p (%i), %p, %i, %p, %p)",
22 binary, argv, argc, envp, nfd, fds, info);
27 if( _Syscall(SYS_AN_GETPATH, "<d >s", sizeof(realpath)-1, realpath, binary) <= 0 ) {
28 Warning("No translation for path '%s'", binary);
33 Warning("TODO: Spawn '%s' = '%s'", binary, realpath);
36 int newID = _Syscall(SYS_AN_SPAWN, "<d >d >d",
37 sizeof(emulated_tid), &emulated_tid,
39 (info ? sizeof(*info) : 0), info
46 if( acessnative_spawn(realpath, newID, argv, envp) ) {
52 void ldacess_DumpLoadedLibraries(void)
54 Debug("ldacess_DumpLoadedLibraries");