Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions SYSCALL_PROTOTYPES.codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
m2 = p2.match(arg)
arg_type = m2.group(1).strip()
arg_name = m2.group(2).strip()
# Workaround for pipe system call
if (call_name == 'pipe' or call_name == 'pipe2') and arg_type == "int *":
arg_type = "int[2]"
args_tuple += ((arg_type, arg_name),)
SYSCALL_PROTOTYPES[call_name] = ("long", args_tuple)

Expand Down
4 changes: 2 additions & 2 deletions ptrace/syscall/prototypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,10 +962,10 @@
("unsigned int", "personality"),
)),
"pipe": ("long", (
("int *", "fildes"),
("int[2]", "fildes"),
)),
"pipe2": ("long", (
("int *", "fildes"),
("int[2]", "fildes"),
("int", "flags"),
)),
"pivot_root": ("long", (
Expand Down