Skip to content

Commit

Permalink
add more syscalls for buster
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-guene committed Aug 2, 2018
1 parent b510fa3 commit 5399764
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/syscall/adapters/guest64_to_neutral64_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,9 @@ long syscall_adapter_guest64(Sysnum no, uint64_t p0, uint64_t p1, uint64_t p2, u
case PR_remap_file_pages:
res = syscall_neutral_64(PR_remap_file_pages, (uint64_t) g_2_h(p0), (size_t) p1, (int) p2, (size_t) p3, (int) p4, p5);
break;
case PR_removexattr:
res = syscall_neutral_64(PR_removexattr, (uint64_t) g_2_h(p0), (uint64_t) g_2_h(p1), p2, p3, p4, p5);
break;
case PR_renameat:
res = syscall_neutral_64(PR_renameat, (int) p0, (uint64_t) g_2_h(p1), (int) p2, (uint64_t) g_2_h(p3), p4, p5);
break;
Expand Down
6 changes: 6 additions & 0 deletions src/syscall/x86_64/syscall_neutral_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,9 @@ long syscall_neutral_64(Sysnum no, uint64_t p0, uint64_t p1, uint64_t p2, uint64
case PR_listen:
res = syscall(SYS_listen, p0, p1);
break;
case PR_llistxattr:
res = syscall(SYS_llistxattr, p0, p1, p2);
break;
case PR_lgetxattr:
res = syscall(SYS_lgetxattr, p0, p1, p2, p3);
break;
Expand Down Expand Up @@ -682,6 +685,9 @@ long syscall_neutral_64(Sysnum no, uint64_t p0, uint64_t p1, uint64_t p2, uint64
case PR_remap_file_pages:
res = syscall(SYS_remap_file_pages, p0, p1, p2, p3, p4);
break;
case PR_removexattr:
res = syscall(SYS_removexattr, p0, p1);
break;
case PR_rename:
res = syscall(SYS_rename, p0, p1);
break;
Expand Down
2 changes: 1 addition & 1 deletion src/target/arm64/syscall/hownums-arm64.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ HOW_not_yet_supported, HOW_not_yet_supported, HOW_neutral_64, HOW_custom_impleme
HOW_neutral_64, HOW_not_yet_supported, HOW_not_yet_supported, HOW_neutral_64, HOW_neutral_64, /*235..239*/
HOW_neutral_64, HOW_not_yet_supported, HOW_not_yet_supported, HOW_custom_implementation, HOW_neutral_64, /*240..244*/
HOW_not_yet_supported, HOW_not_yet_supported, HOW_neutral_64, HOW_not_yet_supported, HOW_neutral_64, /*245..249*/
HOW_neutral_64, HOW_not_yet_supported, HOW_not_yet_supported, HOW_neutral_64, HOW_not_yet_supported, /*250..254*/
HOW_neutral_64, HOW_neutral_64, HOW_not_yet_supported, HOW_neutral_64, HOW_not_yet_supported, /*250..254*/
HOW_not_yet_supported, HOW_not_yet_supported, HOW_custom_implementation, HOW_neutral_64, HOW_neutral_64, /*255..259*/
HOW_neutral_64, HOW_custom_implementation, HOW_neutral_64, HOW_neutral_64, HOW_not_yet_supported, /*260..264*/
HOW_neutral_64, HOW_neutral_64, HOW_neutral_64, HOW_neutral_64, HOW_neutral_64, /*265..269*/
Expand Down

0 comments on commit 5399764

Please sign in to comment.