Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
fail-fast: false
matrix:
#os: [windows-2019, macos-10.15, ubuntu-18.04, ubuntu-20.04]
os: [windows-latest, ubuntu-20.04]
python-version: ["3.8", "3.9", "^3"]
os: [windows-latest, ubuntu-22.04]
python-version: ["3.9", "3.11"]
include:
- os: ubuntu-22.04
python-version: 3.9
Expand Down
42 changes: 21 additions & 21 deletions qiling/os/posix/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ class macos_x86_open_flags(QlPrettyFlag):
O_EXCL = 0x000800
O_NOCTTY = 0x020000
O_DIRECTORY = 0x100000
O_BINARY = None
O_LARGEFILE = None
O_BINARY = 0x000000
O_LARGEFILE = 0x000000


class linux_x86_open_flags(QlPrettyFlag):
Expand All @@ -491,8 +491,8 @@ class linux_x86_open_flags(QlPrettyFlag):
O_EXCL = 0x000080
O_NOCTTY = 0x000100
O_DIRECTORY = 0x010000
O_BINARY = None
O_LARGEFILE = None
O_BINARY = 0x000000
O_LARGEFILE = 0x000000


class linux_arm_open_flags(QlPrettyFlag):
Expand All @@ -509,7 +509,7 @@ class linux_arm_open_flags(QlPrettyFlag):
O_EXCL = 0x000080
O_NOCTTY = 0x000100
O_DIRECTORY = 0x004000
O_BINARY = None
O_BINARY = 0x000000
O_LARGEFILE = 0x020000


Expand All @@ -527,7 +527,7 @@ class linux_mips_open_flags(QlPrettyFlag):
O_EXCL = 0x000400
O_NOCTTY = 0x000800
O_DIRECTORY = 0x010000
O_BINARY = None
O_BINARY = 0x000000
O_LARGEFILE = 0x002000


Expand All @@ -545,8 +545,8 @@ class linux_riscv_open_flags(QlPrettyFlag):
O_EXCL = 0x000080
O_NOCTTY = 0x000100
O_DIRECTORY = 0x010000
O_BINARY = None
O_LARGEFILE = None
O_BINARY = 0x000000
O_LARGEFILE = 0x000000


class linux_ppc_open_flags(QlPrettyFlag):
Expand All @@ -563,7 +563,7 @@ class linux_ppc_open_flags(QlPrettyFlag):
O_EXCL = 0x000080
O_NOCTTY = 0x000100
O_DIRECTORY = 0x004000
O_BINARY = None
O_BINARY = 0x000000
O_LARGEFILE = 0x010000


Expand All @@ -581,26 +581,26 @@ class freebsd_x86_open_flags(QlPrettyFlag):
O_EXCL = 0x000800
O_NOCTTY = 0x008000
O_DIRECTORY = 0x20000
O_BINARY = None
O_LARGEFILE = None
O_BINARY = 0x000000
O_LARGEFILE = 0x000000


class windows_x86_open_flags(QlPrettyFlag):
O_RDONLY = 0x000000
O_WRONLY = 0x000001
O_RDWR = 0x000002
O_NONBLOCK = None
O_NONBLOCK = 0x000000
O_APPEND = 0x000008
O_ASYNC = None
O_SYNC = None
O_NOFOLLOW = None
O_ASYNC = 0x000000
O_SYNC = 0x000000
O_NOFOLLOW = 0x000000
O_CREAT = 0x000100
O_TRUNC = 0x000200
O_EXCL = 0x000400
O_NOCTTY = None
O_DIRECTORY = None
O_NOCTTY = 0x000000
O_DIRECTORY = 0x000000
O_BINARY = 0x008000
O_LARGEFILE = None
O_LARGEFILE = 0x000000


class qnx_arm_open_flags(QlPrettyFlag):
Expand All @@ -611,13 +611,13 @@ class qnx_arm_open_flags(QlPrettyFlag):
O_APPEND = 0x00008
O_ASYNC = 0x10000
O_SYNC = 0x00020
O_NOFOLLOW = None
O_NOFOLLOW = 0x000000
O_CREAT = 0x00100
O_TRUNC = 0x00200
O_EXCL = 0x00400
O_NOCTTY = 0x00800
O_DIRECTORY = None
O_BINARY = None
O_DIRECTORY = 0x000000
O_BINARY = 0x000000
O_LARGEFILE = 0x08000


Expand Down
3 changes: 1 addition & 2 deletions tests/test_pe_sys.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@

from unicorn import UcError

from qiling.os.stats import QlWinNullStats

sys.path.append("..")
from qiling.os.stats import QlWinNullStats
from qiling import Qiling
from qiling.const import QL_STOP, QL_VERBOSE
from qiling.os.const import POINTER, DWORD, HANDLE
Expand Down