Merge pull request #89 from nniro/main

Added syscall 82 (for #88)
This commit is contained in:
ptitSeb 2021-08-13 20:17:28 +02:00 committed by GitHub
commit fd21d6a8da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,6 +116,9 @@ scwrap_t syscallwrap[] = {
{ 78, __NR_getdents, 3},
#endif
{ 79, __NR_getcwd, 2},
#ifdef __NR_rename
{ 82, __NR_rename, 2},
#endif
#ifdef __NR_mkdir
{ 83, __NR_mkdir, 2},
#endif
@ -337,6 +340,11 @@ void EXPORT x64Syscall(x64emu_t *emu)
}
break;
#endif
#ifndef __NR_rename
case 82: // sys_rename
*(int64_t*)&R_RAX = rename((void*)R_RDI, (void*)R_RSI);
break;
#endif
#ifndef __NR_mkdir
case 83: // sys_mkdir
*(int64_t*)&R_RAX = mkdir((void*)R_RDI, R_ESI);