- int kernel_tid;
- int newID;
- newID = _Syscall(SYS_AN_SPAWN, "<d >d >d", sizeof(int), &kernel_tid,
+ char realpath[256];
+ realpath[255] = 0;
+
+ if( _Syscall(SYS_AN_GETPATH, "<d >s", sizeof(realpath)-1, realpath, binary) <= 0 ) {
+ Warning("No translation for path '%s'", binary);
+ acess__errno = -11;
+ return -1;
+ }
+
+ Warning("TODO: Spawn '%s' = '%s'", binary, realpath);
+
+ int emulated_tid;
+ int newID = _Syscall(SYS_AN_SPAWN, "<d >d >d",
+ sizeof(emulated_tid), &emulated_tid,