Skip to content

Commit c5d7a85

Browse files
committed
Add rseq syscall dummy implementation
1 parent 44087e1 commit c5d7a85

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

qiling/os/posix/syscall/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from .ptrace import *
1515
from .random import *
1616
from .resource import *
17+
from .rseq import *
1718
from .sched import *
1819
from .select import *
1920
from .sendfile import *

qiling/os/posix/syscall/rseq.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env python3
2+
#
3+
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
4+
#
5+
6+
from qiling import Qiling
7+
8+
9+
def ql_syscall_rseq(ql: Qiling, rseq: int, rseq_len: int, flags: int, sig: int):
10+
# indicate rseq is not supported by this kernel
11+
# return -ENOSYS
12+
13+
return 0

0 commit comments

Comments
 (0)