mirror of
https://github.com/Gallopsled/pwntools.git
synced 2026-11-12 12:50:42 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c45e92d78b | ||
|
|
a76c7b0ca1 | ||
|
|
b8fad78d3e | ||
|
|
8f42bef2b1 | ||
|
|
020143f0f9 | ||
|
|
416c33ed00 | ||
|
|
3884d606b7 | ||
|
|
4628627943 | ||
|
|
d86ae5794a | ||
|
|
67d49a693d | ||
|
|
a7cb54931c | ||
|
|
e450f6c247 | ||
|
|
493a3e3d92 | ||
|
|
3e4d4a2115 | ||
|
|
b3b6d52bdd | ||
|
|
6ba46d4eec | ||
|
|
5af2d92100 | ||
|
|
3fadc67327 | ||
|
|
91c1b20c7b | ||
|
|
0351219903 | ||
|
|
4b067d2ec5 | ||
|
|
d9f9e7ca6f | ||
|
|
9e55d8f4c8 | ||
|
|
97a760a0dd | ||
|
|
f491bc6a22 | ||
|
|
cde1b89615 | ||
|
|
17fc0aeaad | ||
|
|
c93bdfeed8 | ||
|
|
4fd08b0b00 | ||
|
|
8dd566b9e9 | ||
|
|
fca2929de0 | ||
|
|
d67bdbc550 | ||
|
|
c3894c24de | ||
|
|
208b11df69 | ||
|
|
0a860bd964 | ||
|
|
15efc3f1dc | ||
|
|
2d0f03b66c | ||
|
|
d7e9d313a2 | ||
|
|
7a246e7887 | ||
|
|
c04dbdb9e9 | ||
|
|
fc372d17a2 | ||
|
|
79986d8262 | ||
|
|
ef698d4562 | ||
|
|
1238fc359e | ||
|
|
79d150061c | ||
|
|
2198b74df9 | ||
|
|
bf37947a99 | ||
|
|
1fe9b3e693 | ||
|
|
762591bf35 | ||
|
|
04f401c70e | ||
|
|
84b51fc1a5 | ||
|
|
1573957cc8 | ||
|
|
038e50fa0c | ||
|
|
58d6aea217 | ||
|
|
4c78e188ce | ||
|
|
9d8060496c | ||
|
|
67b28491a4 | ||
|
|
7ea1f1d492 | ||
|
|
1b86e89efb | ||
|
|
0c769bdba9 | ||
|
|
e80a6978ec | ||
|
|
da8bf2667d | ||
|
|
a37bce2bdc | ||
|
|
3dd0b24cc3 | ||
|
|
a8c8c28f00 | ||
|
|
315a462603 | ||
|
|
ddeddd455e | ||
|
|
d3140ed983 | ||
|
|
fc250a33a1 | ||
|
|
92911cbabd | ||
|
|
a9715d8c74 | ||
|
|
bd12d1874f | ||
|
|
11b8537d17 | ||
|
|
f7283bf2eb | ||
|
|
d5d7b8385c | ||
|
|
d8abd074df | ||
|
|
56d43680f1 | ||
|
|
03df22a4c5 | ||
|
|
bbdb5dbb23 | ||
|
|
6b2cdbb74d | ||
|
|
90930e2bb8 | ||
|
|
35260c4c31 | ||
|
|
684f06b760 | ||
|
|
1e34fb4a4f | ||
|
|
e2ec6d0381 | ||
|
|
78c6b8c2a9 | ||
|
|
d7139997dd | ||
|
|
5b0bec0c09 | ||
|
|
e3a5ac5818 | ||
|
|
12af84f19f | ||
|
|
2d460e5738 | ||
|
|
dff64e2366 | ||
|
|
0aa1a231c3 | ||
|
|
d991c898ac | ||
|
|
ca4eeaa196 | ||
|
|
ef37e991d8 | ||
|
|
9426df0095 | ||
|
|
29fd2fe1c1 | ||
|
|
3c85afdbf5 | ||
|
|
7893e6124d | ||
|
|
fcf008b4fd | ||
|
|
b2c83a7cd0 | ||
|
|
2d1e0616a7 | ||
|
|
6b25687454 | ||
|
|
882fd6a926 | ||
|
|
cdc36a8597 | ||
|
|
f16cead9d7 | ||
|
|
d7e7ecce3f | ||
|
|
3914b212ae | ||
|
|
8af69b3261 | ||
|
|
21d1cd0519 | ||
|
|
c7119c7bc5 | ||
|
|
6780c890cd | ||
|
|
9241ea80f8 | ||
|
|
bf023053fc | ||
|
|
c8681de1ee | ||
|
|
8926425aed | ||
|
|
e27209469e | ||
|
|
797c3ee178 | ||
|
|
e3bd4212de | ||
|
|
a7b34f7d79 | ||
|
|
4b196c7d96 | ||
|
|
ad251a8285 | ||
|
|
603e5ba0f1 | ||
|
|
cb24f376ce | ||
|
|
f3b08ed289 | ||
|
|
835bc6ad56 | ||
|
|
2b71971821 | ||
|
|
084890f739 | ||
|
|
3121f68e39 | ||
|
|
9066a68879 | ||
|
|
7e03bfd5a6 | ||
|
|
cf7ee859c9 | ||
|
|
7ececc6bce | ||
|
|
b3fe1eb6ed | ||
|
|
5d54e0d66d | ||
|
|
3e0e0a5833 | ||
|
|
c6fd41b733 |
No files matched your search
@@ -0,0 +1,60 @@
|
||||
name: Android Tests
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
android-test:
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.8]
|
||||
os: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Cache for pip
|
||||
uses: actions/cache@v1
|
||||
id: cache-pip
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ matrix.os }}-cache-pip
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install Linux dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends -o Acquire::Retries=3 \
|
||||
gdb gdbserver socat \
|
||||
qemu-user-static \
|
||||
binutils-aarch64-linux-gnu \
|
||||
binutils-arm-linux-gnueabihf \
|
||||
libc6-dbg \
|
||||
openjdk-8-jre-headless
|
||||
|
||||
- name: Install Android AVD
|
||||
run: |
|
||||
USER=travis source travis/setup_avd.sh
|
||||
sed -i 's/skip_android = True/skip_android = False/' docs/source/conf.py
|
||||
set | egrep '^(ANDROID|PATH)' >.android.env
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install --upgrade pip
|
||||
python setup.py egg_info
|
||||
pip install --upgrade --editable .
|
||||
|
||||
- name: Sanity checks
|
||||
run: PWNLIB_NOTERM=1 python -c 'from pwn import *; print(pwnlib.term.term_mode)'
|
||||
|
||||
- name: Install documentation dependencies
|
||||
run: pip install -r docs/requirements.txt
|
||||
|
||||
- name: Coverage Doctests (Android Only)
|
||||
run: |
|
||||
source .android.env
|
||||
PWNLIB_NOTERM=1 coverage run -m sphinx -b doctest docs/source docs/build/doctest docs/source/adb.rst
|
||||
@@ -4,7 +4,7 @@ env:
|
||||
GITHUB_BASE: origin/${{ github.event.pull_request.base.ref }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
check:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
if git log --stat ${GITHUB_BASE}..HEAD | grep CHANGELOG.md; then
|
||||
echo 'Changelog updated :D'
|
||||
else
|
||||
if git log --stat ${GITHUB_BASE}..HEAD | grep '++\|--'; then
|
||||
if git log --stat ${GITHUB_BASE}..HEAD pwnlib pwn | grep '++\|--'; then
|
||||
echo 'Major changes detected, changelog required!'
|
||||
false
|
||||
else
|
||||
|
||||
+22
-16
@@ -27,7 +27,7 @@ jobs:
|
||||
key: ${{ matrix.os }}-cache-pip
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v1
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
@@ -59,8 +59,9 @@ jobs:
|
||||
binutils-s390x-linux-gnu \
|
||||
binutils-sparc64-linux-gnu \
|
||||
gcc-multilib \
|
||||
libc6-dbg
|
||||
|
||||
libc6-dbg \
|
||||
elfutils
|
||||
|
||||
- name: Install RPyC for GDB
|
||||
run: |
|
||||
sudo apt-get install -y python3-pip
|
||||
@@ -72,7 +73,7 @@ jobs:
|
||||
ulimit -c unlimited
|
||||
cat /proc/sys/kernel/core_pattern
|
||||
cat /proc/sys/kernel/core_uses_pid
|
||||
( cd $(mktemp -d); sh -c 'kill -11 $$' || true; ls -la ./*core* /var/crash/*.crash;) || true
|
||||
( cd $(mktemp -d); sh -c 'kill -11 $$' || true; ls -la ./*core* /var/crash/*.crash /var/lib/apport/coredump/core*) || true
|
||||
|
||||
- name: Set up SSH
|
||||
run: |
|
||||
@@ -81,42 +82,43 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install --upgrade pip
|
||||
pip install --upgrade wheel
|
||||
pip install --upgrade flake8 appdirs
|
||||
python setup.py egg_info
|
||||
pip install --upgrade --editable .
|
||||
|
||||
- name: Sanity checks
|
||||
run: PWNLIB_NOTERM=1 python -c 'from pwn import *; print(pwnlib.term.term_mode)'
|
||||
run: PWNLIB_NOTERM=1 python -bb -c 'from pwn import *; print(pwnlib.term.term_mode)'
|
||||
|
||||
- name: Install documentation dependencies
|
||||
run: pip install -r docs/requirements.txt
|
||||
run: pip install -r docs/requirements.txt
|
||||
|
||||
- name: Manually install non-broken Unicorn
|
||||
run: pip install unicorn==1.0.2rc3
|
||||
|
||||
- name: Version Check
|
||||
run: PWNLIB_NOTERM=1 pwn version
|
||||
- name: Disable yama ptrace_scope
|
||||
run: |
|
||||
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope # required by some gdb doctests
|
||||
|
||||
- name: Coverage doctests
|
||||
run: |
|
||||
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope # required by some gdb doctests
|
||||
PWNLIB_NOTERM=1 coverage run -m sphinx -b doctest docs/source docs/build/doctest
|
||||
PWNLIB_NOTERM=1 python -bb -m coverage run -m sphinx -b doctest docs/source docs/build/doctest
|
||||
|
||||
- name: Coverage running examples
|
||||
run: |
|
||||
export TERM=linux
|
||||
set -x
|
||||
python travis/coverage_chdir.py examples/fmtstr examples/fmtstr/exploit.py
|
||||
python travis/coverage_chdir.py examples/fmtstr examples/fmtstr/exploit2.py || : # can fail randomly?
|
||||
coverage run examples/asm.py
|
||||
coverage run examples/asm.py
|
||||
coverage run examples/text.py
|
||||
python -bb travis/coverage_chdir.py examples/fmtstr examples/fmtstr/exploit.py
|
||||
python -bb travis/coverage_chdir.py examples/fmtstr examples/fmtstr/exploit2.py || : # can fail randomly?
|
||||
python -bb -m coverage run examples/asm.py
|
||||
python -bb -m coverage run examples/asm.py
|
||||
python -bb -m coverage run examples/text.py
|
||||
# for f in examples/sigreturn_corefile_*.py; do coverage run "$f"; done # XXX something is wrong
|
||||
|
||||
- name: Coverage running commandline tools
|
||||
run: |
|
||||
export TERM=linux
|
||||
pwn() { ( set +x; cmd=$1; shift; PYTHONUNBUFFERED=1 exec coverage run -m pwnlib.commandline."$cmd" "$@" ) }
|
||||
pwn() { ( set +x; cmd=$1; shift; PYTHONUNBUFFERED=1 exec python -bb -m coverage run -m pwnlib.commandline."$cmd" "$@" ) }
|
||||
set -x
|
||||
|
||||
pwn cyclic 32
|
||||
@@ -156,6 +158,10 @@ jobs:
|
||||
pwn constgrep ^MAP_ 0
|
||||
pwn constgrep -e O_RDWR
|
||||
|
||||
pwn libcdb file /lib/x86_64-linux-gnu/libc.so.6
|
||||
pwn libcdb lookup puts 5f0 __libc_start_main_ret d0a
|
||||
pwn libcdb hash b229d1da1e161f95e839cf90cded5f719e5de308
|
||||
|
||||
- name: Build source and wheel distributions
|
||||
run: |
|
||||
python setup.py sdist
|
||||
|
||||
@@ -13,7 +13,11 @@ MANIFEST
|
||||
dist
|
||||
venv
|
||||
.vscode
|
||||
.idea
|
||||
*.egg-info
|
||||
*.core
|
||||
.coverage
|
||||
.coverage.*
|
||||
.idea
|
||||
__pycache__
|
||||
!.github
|
||||
@@ -25,6 +25,7 @@ addons:
|
||||
- binutils-sparc64-linux-gnu
|
||||
- bash-static
|
||||
- python3-pip
|
||||
- elfutils
|
||||
cache:
|
||||
- pip
|
||||
- directories:
|
||||
|
||||
+116
-25
@@ -9,10 +9,16 @@ The table below shows which release corresponds to each branch, and what date th
|
||||
|
||||
| Version | Branch | Release Date |
|
||||
| ---------------- | -------- | ---------------------- |
|
||||
| [4.7.0](#470) | `dev` | May 29, 2020 (planned)
|
||||
| [4.6.0](#460) | `beta` | May 29, 2020 (planned)
|
||||
| [4.5.0](#450) | `stable` | Apr 30, 2020
|
||||
| [4.4.0](#440) | | Mar 29, 2020
|
||||
| [4.11.0](#4110) | `dev` |
|
||||
| [4.10.0](#4100) | `beta` |
|
||||
| [4.9.0](#490) | `stable` | Dec 29, 2022
|
||||
| [4.8.0](#480) | | Apr 21, 2022
|
||||
| [4.7.1](#471) | | Apr 20, 2022
|
||||
| [4.7.0](#470) | | Nov 15, 2021
|
||||
| [4.6.0](#460) | | Jul 12, 2021
|
||||
| [4.5.1](#451) | | May 30, 2021
|
||||
| [4.5.0](#450) | | Apr 30, 2021
|
||||
| [4.4.0](#440) | | Mar 29, 2021
|
||||
| [4.3.1](#431) | | Nov 29, 2020
|
||||
| [4.3.0](#430) | | Oct 20, 2020
|
||||
| [4.2.0](#420) | | Jul 3, 2020
|
||||
@@ -59,7 +65,106 @@ The table below shows which release corresponds to each branch, and what date th
|
||||
| [3.0.0](#300) | | Aug 20, 2016
|
||||
| [2.2.0](#220) | | Jan 5, 2015
|
||||
|
||||
## 4.7.0 (`dev`)
|
||||
## 4.11.0 (`dev`)
|
||||
|
||||
|
||||
|
||||
## 4.10.0 (`beta`)
|
||||
|
||||
- [#2062][2062] make pwn cyclic -l work with entry larger than 4 bytes
|
||||
- [#2092][2092] shellcraft: dup() is now called dupio() consistently across all supported arches
|
||||
- [#2093][2093] setresuid() in shellcraft uses current euid by default
|
||||
- [#2125][2125] Allow tube.recvregex to return capture groups
|
||||
- [#2144][2144] Removes `p2align 2` `asm()` headers from `x86-32`, `x86-64` and `mips` architectures to avoid inconsistent instruction length when patching binaries
|
||||
|
||||
[2062]: https://github.com/Gallopsled/pwntools/pull/2062
|
||||
[2092]: https://github.com/Gallopsled/pwntools/pull/2092
|
||||
[2093]: https://github.com/Gallopsled/pwntools/pull/2093
|
||||
[2125]: https://github.com/Gallopsled/pwntools/pull/2125
|
||||
[2144]: https://github.com/Gallopsled/pwntools/pull/2144
|
||||
|
||||
## 4.9.0 (`stable`)
|
||||
|
||||
- [#1975][1975] Add libcdb commandline tool
|
||||
- [#1979][1979] Add `js_escape()` and `js_unescape()` to `util.fiddling`
|
||||
- [#2011][2011] Fix tube's debug output of same byte compression
|
||||
- [#2023][2023] Support KDE Konsole in run_in_new_terminal function
|
||||
- [#2027][2027] Fix ELF.libc_start_main_return with glibc 2.34
|
||||
- [#2033][2033] Quote file and core path in generated GDB script
|
||||
- [#2035][2035] Change Buffer's parent class to object
|
||||
- [#2037][2037] Allow SSH tunnel to be treated like a TCP socket (with 'raw=True')
|
||||
- [#2123][2123] Fix ROP without a writeable cache directory
|
||||
- [#2124][2124] Fix `tube.recvpred()` timeout argument
|
||||
|
||||
[1975]: https://github.com/Gallopsled/pwntools/pull/1975
|
||||
[1979]: https://github.com/Gallopsled/pwntools/pull/1979
|
||||
[2011]: https://github.com/Gallopsled/pwntools/pull/2011
|
||||
[2023]: https://github.com/Gallopsled/pwntools/pull/2023
|
||||
[2027]: https://github.com/Gallopsled/pwntools/pull/2027
|
||||
[2033]: https://github.com/Gallopsled/pwntools/pull/2033
|
||||
[2035]: https://github.com/Gallopsled/pwntools/pull/2035
|
||||
[2037]: https://github.com/Gallopsled/pwntools/pull/2037
|
||||
[2123]: https://github.com/Gallopsled/pwntools/pull/2123
|
||||
[2124]: https://github.com/Gallopsled/pwntools/pull/2124
|
||||
|
||||
## 4.8.0
|
||||
|
||||
- [#1922][1922] Fix logic in `wait_for_debugger`
|
||||
- [#1828][1828] libcdb: Load debug info and unstrip libc binary
|
||||
- [#1939][1939] Fix error in validating log levels
|
||||
- [#1981][1981] Fix `cyclic_find()` to make it work with large int values
|
||||
|
||||
[1922]: https://github.com/Gallopsled/pwntools/pull/1922
|
||||
[1828]: https://github.com/Gallopsled/pwntools/pull/1828
|
||||
[1939]: https://github.com/Gallopsled/pwntools/pull/1939
|
||||
[1981]: https://github.com/Gallopsled/pwntools/pull/1981
|
||||
|
||||
## 4.7.1
|
||||
|
||||
- [#1784][1784] Use temporary cache directory when persistent cache cannot be used
|
||||
- [#1973][1973] ELF symbols can be looked up by bytes values
|
||||
- several bugfixes ([#2012][2012], [#2031][2031], [#1912][1912], [#1961][1961],
|
||||
[#2007][2007], [#2040][2040], [#2051][2051])
|
||||
|
||||
[1784]: https://github.com/Gallopsled/pwntools/pull/1784
|
||||
[1912]: https://github.com/Gallopsled/pwntools/pull/1912
|
||||
[1961]: https://github.com/Gallopsled/pwntools/pull/1961
|
||||
[1973]: https://github.com/Gallopsled/pwntools/pull/1973
|
||||
[2007]: https://github.com/Gallopsled/pwntools/pull/2007
|
||||
[2012]: https://github.com/Gallopsled/pwntools/pull/2012
|
||||
[2031]: https://github.com/Gallopsled/pwntools/pull/2031
|
||||
[2040]: https://github.com/Gallopsled/pwntools/pull/2040
|
||||
[2051]: https://github.com/Gallopsled/pwntools/pull/2051
|
||||
|
||||
## 4.7.0
|
||||
|
||||
- [#1733][1733] Update libc headers -> more syscalls available!
|
||||
- [#1876][1876] add `self.message` and change `sys.exc_type` to `sys.exec_info()` in PwnlibException
|
||||
- [#1877][1877] encoders error message handles when `avoid` is bytes in python3
|
||||
- [#1891][1891] Keep ROP gadgets when setting registers via setattr/call
|
||||
- [#1892][1892] Silence SIGPIPE error for "pwn phd"
|
||||
- [#1893][1893] Fix bytes warning in "pwn cyclic"
|
||||
- [#1897][1897] Add basic support for RISC-V
|
||||
- [#1903][1903] Add zsh completion script
|
||||
- [#1904][1904] Add bash completion script
|
||||
- [#1906][1906] Defer import of several modules to save on startup time
|
||||
- [#1921][1921] Add basic support for the bare-metal ARM specific toolchain
|
||||
- [#1995][1995] Add `shellcraft.*.linux.cat2`, which uses alloc+read+write instead of sendfile
|
||||
|
||||
[1733]: https://github.com/Gallopsled/pwntools/pull/1733
|
||||
[1876]: https://github.com/Gallopsled/pwntools/pull/1876
|
||||
[1877]: https://github.com/Gallopsled/pwntools/pull/1877
|
||||
[1891]: https://github.com/Gallopsled/pwntools/pull/1891
|
||||
[1892]: https://github.com/Gallopsled/pwntools/pull/1892
|
||||
[1893]: https://github.com/Gallopsled/pwntools/pull/1893
|
||||
[1897]: https://github.com/Gallopsled/pwntools/pull/1897
|
||||
[1903]: https://github.com/Gallopsled/pwntools/pull/1903
|
||||
[1904]: https://github.com/Gallopsled/pwntools/pull/1904
|
||||
[1906]: https://github.com/Gallopsled/pwntools/pull/1906
|
||||
[1921]: https://github.com/Gallopsled/pwntools/pull/1921
|
||||
[1995]: https://github.com/Gallopsled/pwntools/pull/1995
|
||||
|
||||
## 4.6.0
|
||||
|
||||
- [#1429][1429] Add a mechanism for ret2csu (originally #1138)
|
||||
- [#1566][1566] Add `ignore_config` argument to `pwnlib.tubes.ssh` and improve `allow_agent` implementation
|
||||
@@ -81,29 +186,13 @@ The table below shows which release corresponds to each branch, and what date th
|
||||
[1776]: https://github.com/Gallopsled/pwntools/pull/1776
|
||||
[1846]: https://github.com/Gallopsled/pwntools/pull/1846
|
||||
|
||||
## 4.6.0 (`beta`)
|
||||
## 4.5.1
|
||||
|
||||
- [#1429][1429] Add a mechanism for ret2csu (originally #1138)
|
||||
- [#1566][1566] Add `ignore_config` argument to `pwnlib.tubes.ssh` and improve `allow_agent` implementation
|
||||
- [#1652][1652] Add `process.readmem` and `process.writemem`
|
||||
- [#1739][1739] Add/fix shellcraft.linux.kill() / shellcraft.linux.killparent()
|
||||
- [#1746][1746] Prefer Python3 over Python2 for spawning remote processes over SSH
|
||||
- [#1751][1751] Fix process() with executable relative to cwd
|
||||
- [#1753][1753] major change: less unconditional imports in pwnlib
|
||||
- [#1776][1776] mips: do not use $t0 temporary variable in dupio
|
||||
- [#1846][1846] support launching GDB in more different terminals
|
||||
- [#1902][1902] Always specify -F and -P for tmux in `run_in_new_terminal`
|
||||
|
||||
[1429]: https://github.com/Gallopsled/pwntools/pull/1429
|
||||
[1566]: https://github.com/Gallopsled/pwntools/pull/1566
|
||||
[1652]: https://github.com/Gallopsled/pwntools/pull/1652
|
||||
[1739]: https://github.com/Gallopsled/pwntools/pull/1739
|
||||
[1746]: https://github.com/Gallopsled/pwntools/pull/1746
|
||||
[1751]: https://github.com/Gallopsled/pwntools/pull/1751
|
||||
[1753]: https://github.com/Gallopsled/pwntools/pull/1753
|
||||
[1776]: https://github.com/Gallopsled/pwntools/pull/1776
|
||||
[1846]: https://github.com/Gallopsled/pwntools/pull/1846
|
||||
[1902]: https://github.com/Gallopsled/pwntools/pull/1902
|
||||
|
||||
## 4.5.0 (`stable`)
|
||||
## 4.5.0
|
||||
|
||||
- [#1261][1261] Misc `run_in_new_terminal` improvements (notably gdb terminated by default)
|
||||
- [#1695][1695] Allow using GDB Python API
|
||||
@@ -121,6 +210,7 @@ The table below shows which release corresponds to each branch, and what date th
|
||||
- [#1839][1839] run_in_new_terminal now creates a runner script if given a list or tuple
|
||||
- [#1833][1833] Add pwnlib.filesystem module
|
||||
- [#1852][1852] Fix `atexit` on Python 3
|
||||
- [#1883][1883] ROP gadget verifier accounts for 2 character registers
|
||||
|
||||
[1261]: https://github.com/Gallopsled/pwntools/pull/1261
|
||||
[1695]: https://github.com/Gallopsled/pwntools/pull/1695
|
||||
@@ -137,6 +227,7 @@ The table below shows which release corresponds to each branch, and what date th
|
||||
[1839]: https://github.com/Gallopsled/pwntools/pull/1839
|
||||
[1833]: https://github.com/Gallopsled/pwntools/pull/1833
|
||||
[1852]: https://github.com/Gallopsled/pwntools/pull/1852
|
||||
[1883]: https://github.com/Gallopsled/pwntools/pull/1883
|
||||
|
||||
## 4.4.0
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
[](https://github.com/Gallopsled/pwntools/actions?query=workflow%3A%22Continuous+Integration%22+branch%3Adev)
|
||||
[](https://coveralls.io/github/Gallopsled/pwntools?branch=dev)
|
||||
[](http://choosealicense.com/licenses/mit/)
|
||||
[](https://repology.org/project/python:pwntools/versions)
|
||||
[](https://discord.gg/96VA2zvjCB)
|
||||
[](https://twitter.com/pwntools)
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
capstone
|
||||
coveralls
|
||||
doc2dash
|
||||
docutils<0.18
|
||||
isort
|
||||
mako>=1.0.0
|
||||
paramiko>=1.15.2
|
||||
@@ -11,7 +12,7 @@ pypandoc
|
||||
pyserial>=2.7
|
||||
requests>=2.5.1
|
||||
ropgadget>=5.3
|
||||
sphinx<3.4
|
||||
sphinx==1.8.6; python_version<'3'
|
||||
sphinx>=4.5.0; python_version>='3'
|
||||
sphinx_rtd_theme
|
||||
sphinxcontrib-napoleon
|
||||
sphinxcontrib-autoprogram<=0.1.5
|
||||
sphinxcontrib-autoprogram<=0.1.5
|
||||
+25
-5
@@ -25,7 +25,7 @@ build_dash = tags.has('dash')
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
sys.path.insert(0, os.path.abspath('../..'))
|
||||
|
||||
import pwnlib
|
||||
import pwnlib.update
|
||||
pwnlib.update.disabled = True
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
@@ -42,8 +42,8 @@ extensions = [
|
||||
'sphinx.ext.coverage',
|
||||
'sphinx.ext.todo',
|
||||
'sphinx.ext.intersphinx',
|
||||
'sphinx.ext.napoleon',
|
||||
'sphinxcontrib.autoprogram',
|
||||
'sphinxcontrib.napoleon'
|
||||
]
|
||||
|
||||
# Disable "info" logging directly to stdout by Sphinx
|
||||
@@ -71,8 +71,9 @@ doctest_global_setup = '''
|
||||
import sys, os
|
||||
os.environ['PWNLIB_NOTERM'] = '1'
|
||||
os.environ['PWNLIB_RANDOMIZE'] = '0'
|
||||
|
||||
import pwnlib, logging
|
||||
import pwnlib.update
|
||||
import pwnlib.util.fiddling
|
||||
import logging
|
||||
pwnlib.update.disabled = True
|
||||
pwnlib.context.context.reset_local()
|
||||
pwnlib.context.ContextType.defaults['log_level'] = logging.ERROR
|
||||
@@ -412,7 +413,14 @@ class Py2OutputChecker(_DummyClass, doctest.OutputChecker):
|
||||
if sup(rly_want, got, optionflags):
|
||||
return True
|
||||
rly_want = ' '.join(x[:2].replace('b"',' "').replace("b'"," '")+x[2:] for x in want.replace('\n','\n ').split(' ')).replace('\n ','\n')
|
||||
return sup(rly_want, got, optionflags)
|
||||
if sup(rly_want, got, optionflags):
|
||||
return True
|
||||
for wantl, gotl in six.moves.zip_longest(want.splitlines(), got.splitlines(), fillvalue=''):
|
||||
rly_want1 = '['.join(x[:2].replace('b"','"').replace("b'","'")+x[2:] for x in wantl.split('['))
|
||||
rly_want2 = ' '.join(x[:2].replace('b"',' "').replace("b'"," '")+x[2:] for x in wantl.split(' '))
|
||||
if not sup(rly_want1, gotl, optionflags) and not sup(rly_want2, gotl, optionflags):
|
||||
return False
|
||||
return True
|
||||
|
||||
def py2_doctest_init(self, checker=None, verbose=None, optionflags=0):
|
||||
if checker is None:
|
||||
@@ -426,3 +434,15 @@ if 'doctest' in sys.argv:
|
||||
if sys.version_info[:1] < (3,):
|
||||
import sphinx.ext.doctest
|
||||
sphinx.ext.doctest.SphinxDocTestRunner.__init__ = py2_doctest_init
|
||||
else:
|
||||
# monkey patching paramiko due to https://github.com/paramiko/paramiko/pull/1661
|
||||
import paramiko.client
|
||||
import binascii
|
||||
paramiko.client.hexlify = lambda x: binascii.hexlify(x).decode()
|
||||
paramiko.util.safe_string = lambda x: '' # function result never *actually used*
|
||||
class EndlessLoop(Exception): pass
|
||||
def alrm_handler(sig, frame):
|
||||
signal.alarm(180) # three minutes
|
||||
raise EndlessLoop()
|
||||
signal.signal(signal.SIGALRM, alrm_handler)
|
||||
signal.alarm(600) # ten minutes
|
||||
+11
-2
@@ -52,7 +52,7 @@ Each of the ``pwntools`` modules is documented here.
|
||||
context
|
||||
dynelf
|
||||
encoders
|
||||
elf
|
||||
elf/*
|
||||
exception
|
||||
filepointer
|
||||
filesystem
|
||||
@@ -65,7 +65,6 @@ Each of the ``pwntools`` modules is documented here.
|
||||
protocols
|
||||
qemu
|
||||
replacements
|
||||
rop
|
||||
rop/*
|
||||
runner
|
||||
shellcraft
|
||||
@@ -83,6 +82,7 @@ Each of the ``pwntools`` modules is documented here.
|
||||
:hidden:
|
||||
|
||||
testexample
|
||||
rop/call
|
||||
|
||||
.. only:: not dash
|
||||
|
||||
@@ -92,3 +92,12 @@ Each of the ``pwntools`` modules is documented here.
|
||||
* :ref:`genindex`
|
||||
* :ref:`modindex`
|
||||
* :ref:`search`
|
||||
|
||||
Bytes
|
||||
-----
|
||||
|
||||
The bytes vs text distinction is so important that it even made it to this main page.
|
||||
See the pwntools-tutorial_ repo for the latest tutorial finally
|
||||
explaining the difference once and for all (hopefully).
|
||||
|
||||
.. _pwntools-tutorial: https://github.com/Gallopsled/pwntools-tutorial/blob/master/bytes.md
|
||||
File renamed without changes.
@@ -1,9 +0,0 @@
|
||||
.. testsetup:: *
|
||||
|
||||
from pwnlib.rop.call import *
|
||||
|
||||
:mod:`pwnlib.rop.call` --- Return Oriented Programming Function Calling
|
||||
=======================================================================
|
||||
|
||||
.. automodule:: pwnlib.rop.call
|
||||
:members:
|
||||
@@ -0,0 +1,12 @@
|
||||
# Bash Completion
|
||||
|
||||
To install the completion, add `. /path/to/bash_completion.d/pwn`to your e.g. `~/.bash_profile`.
|
||||
|
||||
The `./install.sh` script attempts to do this for you automatically.
|
||||
|
||||
### Shellcraft Autocomplete
|
||||
|
||||
The legacy autocompletion for `pwn shellcraft` is also available at `./shellcraft`.
|
||||
|
||||
It is unsupported, and slow (runs `pwn shellcraft -l` every time your shell starts).
|
||||
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
BASH_COMPLETION_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
|
||||
if grep "$BASH_COMPLETION_DIR" ~/.bash_profile; then
|
||||
>&2 echo "Already installed"
|
||||
exit
|
||||
fi >/dev/null
|
||||
|
||||
cat >> ~/.bash_profile <<EOF
|
||||
# Install autocompletion for Pwntools
|
||||
. "$BASH_COMPLETION_DIR/pwn"
|
||||
EOF
|
||||
@@ -0,0 +1,103 @@
|
||||
#!/usr/bin/env bash
|
||||
# AUTOMATCALLY GENERATED by `shtab`
|
||||
|
||||
_shtab_pwnlib_options_='-h --help'
|
||||
_shtab_pwnlib_commands_='asm checksec constgrep cyclic debug disablenx disasm elfdiff elfpatch errno hex phd pwnstrip scramble shellcraft template unhex update version'
|
||||
|
||||
_shtab_pwnlib_asm='-h --help -f --format -o --output -c --context -v --avoid -n --newline -z --zero -d --debug -e --encoder -i --infile -r --run'
|
||||
_shtab_pwnlib_checksec='-h --help --file'
|
||||
_shtab_pwnlib_constgrep='-h --help -e --exact -i --case-insensitive -m --mask-mode -c --context'
|
||||
_shtab_pwnlib_cyclic='-h --help -a --alphabet -n --length -c --context -l -o --offset --lookup'
|
||||
_shtab_pwnlib_debug='-h --help -x --pid -c --context --exec --process --sysroot'
|
||||
_shtab_pwnlib_disablenx='-h --help'
|
||||
_shtab_pwnlib_disasm='-h --help -c --context -a --address --color --no-color'
|
||||
_shtab_pwnlib_elfdiff='-h --help'
|
||||
_shtab_pwnlib_elfpatch='-h --help'
|
||||
_shtab_pwnlib_errno='-h --help'
|
||||
_shtab_pwnlib_hex='-h --help'
|
||||
_shtab_pwnlib_phd='-h --help -w --width -l --highlight -s --skip -c --count -o --offset --color'
|
||||
_shtab_pwnlib_pwnstrip='-h --help -b --build-id -p --patch -o --output'
|
||||
_shtab_pwnlib_scramble='-h --help -f --format -o --output -c --context -p --alphanumeric -v --avoid -n --newline -z --zero -d --debug'
|
||||
_shtab_pwnlib_shellcraft='-h --help -? --show -o --out -f --format -d --debug -b --before -a --after -v --avoid -n --newline -z --zero -r --run --color --no-color --syscalls --address -l --list -s --shared'
|
||||
_shtab_pwnlib_template='-h --help --host --port --user --pass --password --path --quiet --color'
|
||||
_shtab_pwnlib_unhex='-h --help'
|
||||
_shtab_pwnlib_update='-h --help --install --pre'
|
||||
_shtab_pwnlib_version='-h --help'
|
||||
|
||||
|
||||
# $1=COMP_WORDS[1]
|
||||
_shtab_compgen_files() {
|
||||
compgen -f -- $1 # files
|
||||
compgen -d -S '/' -- $1 # recurse into subdirs
|
||||
}
|
||||
|
||||
# $1=COMP_WORDS[1]
|
||||
_shtab_compgen_dirs() {
|
||||
compgen -d -S '/' -- $1 # recurse into subdirs
|
||||
}
|
||||
|
||||
# $1=COMP_WORDS[1]
|
||||
_shtab_replace_hyphen() {
|
||||
echo $1 | sed 's/-/_/g'
|
||||
}
|
||||
|
||||
# $1=COMP_WORDS[1]
|
||||
_shtab_replace_nonword() {
|
||||
echo "${1//[^[:word:]]/_}"
|
||||
}
|
||||
|
||||
# $1=COMP_WORDS[1]
|
||||
_shtab_pwnlib_compgen_root_() {
|
||||
local args_gen="_shtab_pwnlib_COMPGEN"
|
||||
case "$word" in
|
||||
-*) COMPREPLY=( $(compgen -W "$_shtab_pwnlib_options_" -- "$word"; [ -n "${!args_gen}" ] && ${!args_gen} "$word") ) ;;
|
||||
*) COMPREPLY=( $(compgen -W "$_shtab_pwnlib_commands_" -- "$word"; [ -n "${!args_gen}" ] && ${!args_gen} "$word") ) ;;
|
||||
esac
|
||||
}
|
||||
|
||||
# $1=COMP_WORDS[1]
|
||||
_shtab_pwnlib_compgen_command_() {
|
||||
local flags_list="_shtab_pwnlib_$(_shtab_replace_nonword $1)"
|
||||
local args_gen="${flags_list}_COMPGEN"
|
||||
COMPREPLY=( $(compgen -W "${!flags_list}" -- "$word"; [ -n "${!args_gen}" ] && ${!args_gen} "$word") )
|
||||
}
|
||||
|
||||
# $1=COMP_WORDS[1]
|
||||
# $2=COMP_WORDS[2]
|
||||
_shtab_pwnlib_compgen_subcommand_() {
|
||||
local flags_list="_shtab_pwnlib_$(_shtab_replace_nonword "${1}_${2}")"
|
||||
local args_gen="${flags_list}_COMPGEN"
|
||||
[ -n "${!args_gen}" ] && local opts_more="$(${!args_gen} "$word")"
|
||||
local opts="${!flags_list}"
|
||||
if [ -z "$opts$opts_more" ]; then
|
||||
_shtab_pwnlib_compgen_command_ $1
|
||||
else
|
||||
COMPREPLY=( $(compgen -W "$opts" -- "$word"; [ -n "$opts_more" ] && echo "$opts_more") )
|
||||
fi
|
||||
}
|
||||
|
||||
# Notes:
|
||||
# `COMPREPLY` contains what will be rendered after completion is triggered
|
||||
# `word` refers to the current typed word
|
||||
# `${!var}` is to evaluate the content of `var`
|
||||
# and expand its content as a variable
|
||||
# hello="world"
|
||||
# x="hello"
|
||||
# ${!x} -> ${hello} -> "world"
|
||||
_shtab_pwnlib() {
|
||||
local word="${COMP_WORDS[COMP_CWORD]}"
|
||||
|
||||
COMPREPLY=()
|
||||
|
||||
if [ "${COMP_CWORD}" -eq 1 ]; then
|
||||
_shtab_pwnlib_compgen_root_ ${COMP_WORDS[1]}
|
||||
elif [ "${COMP_CWORD}" -eq 2 ]; then
|
||||
_shtab_pwnlib_compgen_command_ ${COMP_WORDS[1]}
|
||||
elif [ "${COMP_CWORD}" -ge 3 ]; then
|
||||
_shtab_pwnlib_compgen_subcommand_ ${COMP_WORDS[1]} ${COMP_WORDS[2]}
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
complete -o nospace -F _shtab_pwnlib pwn
|
||||
+16
-11
@@ -1,25 +1,30 @@
|
||||
subdirs=$(shell find . -type d -depth 1 | xargs basename)
|
||||
tags=base stable beta dev
|
||||
ROOT=$(shell git rev-parse --show-toplevel)
|
||||
CMD ?= zsh
|
||||
|
||||
ifneq ($(HISTFILE),)
|
||||
MOUNT_HISTFILE=--mount type=bind,source="$(HISTFILE)",target=/home/pwntools/.history
|
||||
endif
|
||||
|
||||
all: $(subdirs) $(tags)
|
||||
|
||||
tags: $(tags)
|
||||
|
||||
base:
|
||||
$(subdirs)::
|
||||
@echo "Building $@"
|
||||
docker build -t pwntools/pwntools:$(shell basename $(@)) "$@"
|
||||
|
||||
stable beta dev: base
|
||||
@echo "Building $@"
|
||||
docker build -t pwntools/pwntools:$(shell basename $(@)) "$@"
|
||||
|
||||
develop:
|
||||
@echo "Building $@"
|
||||
docker build -t pwntools/pwntools:$(shell basename $(@)) "$@"
|
||||
docker run -it --privileged --net=host --hostname localhost \
|
||||
develop::
|
||||
docker run -it \
|
||||
--privileged \
|
||||
--net=host \
|
||||
--hostname localhost \
|
||||
--ulimit core=-1:-1 \
|
||||
--mount type=bind,source="$(shell git rev-parse --show-toplevel)",target=/home/pwntools/pwntools \
|
||||
pwntools/pwntools:$(shell basename $(@))
|
||||
$(MOUNT_HISTFILE) \
|
||||
--mount type=bind,source="$(ROOT)",target=/home/pwntools/pwntools \
|
||||
pwntools/pwntools:$(shell basename $(@)) \
|
||||
$(CMD)
|
||||
|
||||
debug:
|
||||
@echo "Subdirs $(subdirs)"
|
||||
|
||||
@@ -7,10 +7,16 @@ FROM ubuntu:bionic
|
||||
MAINTAINER Maintainer Gallopsled et al.
|
||||
|
||||
env DEBIAN_FRONTEND=noninteractive
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV LANGUAGE en_US:en
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install locales \
|
||||
&& locale-gen en_US.UTF-8 \
|
||||
&& apt-get install -y \
|
||||
build-essential \
|
||||
elfutils \
|
||||
git \
|
||||
libssl-dev \
|
||||
libffi-dev \
|
||||
@@ -28,6 +34,7 @@ RUN apt-get update \
|
||||
binutils-powerpc-linux-gnu \
|
||||
binutils-powerpc64-linux-gnu \
|
||||
binutils-sparc64-linux-gnu \
|
||||
tmux \
|
||||
&& pip install --upgrade pip \
|
||||
&& python -m pip install --upgrade pwntools \
|
||||
&& pip3 install --upgrade pip \
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
from debian:buster
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get -y dist-upgrade
|
||||
RUN apt-get -y install python3 python3-pip
|
||||
RUN apt-get -y install git wget unzip
|
||||
|
||||
RUN pip3 install --upgrade git+https://github.com/Gallopsled/pwntools@dev
|
||||
@@ -0,0 +1,5 @@
|
||||
try:
|
||||
from pwn import *
|
||||
except Exception:
|
||||
print("Could not import pwntools")
|
||||
import os, re, sys, time, random, urllib, datetime, itertools, subprocess, multiprocessing
|
||||
@@ -1,5 +1,8 @@
|
||||
FROM pwntools/pwntools:base
|
||||
|
||||
# Support sharing history with the develop Dockerfile
|
||||
ENV HISTFILE=/home/pwntools/.history
|
||||
|
||||
# Uninstall existing versions of pwntools
|
||||
USER root
|
||||
RUN python -m pip uninstall -q -y pwntools \
|
||||
@@ -23,6 +26,10 @@ RUN git clone https://github.com/Gallopsled/pwntools \
|
||||
RUN python -m pip install --upgrade --requirement pwntools/docs/requirements.txt \
|
||||
&& python3 -m pip install --upgrade --requirement pwntools/docs/requirements.txt
|
||||
|
||||
# Python niceties for debugging
|
||||
RUN python -m pip install -U ipython ipdb \
|
||||
&& python3 -m pip install -U ipython ipdb
|
||||
|
||||
# Dependencies from .travis.yml addons -> apt -> packages
|
||||
RUN sudo apt-get install -y \
|
||||
ash \
|
||||
@@ -43,6 +50,7 @@ RUN sudo apt-get install -y \
|
||||
qemu-user-static \
|
||||
socat \
|
||||
sshpass \
|
||||
vim \
|
||||
zsh
|
||||
|
||||
# Misc useful things when developing
|
||||
@@ -55,5 +63,24 @@ RUN sudo apt-get install -y \
|
||||
unzip \
|
||||
wget
|
||||
|
||||
# Use zsh by default
|
||||
RUN sudo chsh -s /bin/zsh pwntools
|
||||
|
||||
# Get and install prezto
|
||||
RUN git clone --recursive https://github.com/sorin-ionescu/prezto.git .zprezto
|
||||
RUN bash -c 'for file in .zprezto/runcoms/z*; do ln -s $file .$(basename $file); done'
|
||||
|
||||
# Get and install pwndbg
|
||||
RUN git clone --recursive https://github.com/pwndbg/pwndbg
|
||||
RUN cd pwndbg && ./setup.sh
|
||||
|
||||
# Install autocompletion
|
||||
RUN ln -s /home/pwntools/pwntools/extra/zsh_completion/_pwn /home/pwntools/.zprezto/modules/completion/external/src
|
||||
|
||||
# Install ipython profile and auto-import
|
||||
RUN mkdir -p /home/pwntools/.ipython/profile_default/startup
|
||||
ADD 10-import.py /home/pwntools/.ipython/profile_default/startup
|
||||
ADD ipython_config.py /home/pwntools/.ipython/profile_default
|
||||
|
||||
# Do not require password for sudo
|
||||
RUN echo "pwntools ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/travis
|
||||
@@ -0,0 +1,563 @@
|
||||
# Configuration file for ipython.
|
||||
|
||||
c = get_config()
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# InteractiveShellApp configuration
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# A Mixin for applications that start InteractiveShell instances.
|
||||
#
|
||||
# Provides configurables for loading extensions and executing files as part of
|
||||
# configuring a Shell environment.
|
||||
#
|
||||
# The following methods should be called by the :meth:`initialize` method of the
|
||||
# subclass:
|
||||
#
|
||||
# - :meth:`init_path`
|
||||
# - :meth:`init_shell` (to be implemented by the subclass)
|
||||
# - :meth:`init_gui_pylab`
|
||||
# - :meth:`init_extensions`
|
||||
# - :meth:`init_code`
|
||||
|
||||
# Execute the given command string.
|
||||
# c.InteractiveShellApp.code_to_run = ''
|
||||
|
||||
# Run the file referenced by the PYTHONSTARTUP environment variable at IPython
|
||||
# startup.
|
||||
# c.InteractiveShellApp.exec_PYTHONSTARTUP = True
|
||||
|
||||
# lines of code to run at IPython startup.
|
||||
c.InteractiveShell.confirm_exit = False
|
||||
c.InteractiveShell.separate_in = ''
|
||||
c.InteractiveShell.separate_out = ''
|
||||
c.InteractiveShell.separate_out2 = ''
|
||||
|
||||
# c.PromptManager.in_template = '>>> '
|
||||
# c.PromptManager.in2_template = '..: '
|
||||
# c.PromptManager.out_template = ''
|
||||
# c.PromptManager.justify = False
|
||||
|
||||
c.TerminalIPythonApp.display_banner = False
|
||||
|
||||
from IPython.terminal.prompts import Prompts, Token
|
||||
|
||||
class ClassicPrompts(Prompts):
|
||||
def in_prompt_tokens(self, cli=None):
|
||||
return [
|
||||
(Token.Prompt, '>>> '),
|
||||
]
|
||||
|
||||
def continuation_prompt_tokens(self, cli=None, width=None):
|
||||
return [
|
||||
(Token.Prompt, '... ')
|
||||
]
|
||||
|
||||
def rewrite_prompt_tokens(self):
|
||||
return []
|
||||
|
||||
def out_prompt_tokens(self):
|
||||
return []
|
||||
|
||||
c.TerminalInteractiveShell.prompts_class = ClassicPrompts
|
||||
|
||||
# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'none',
|
||||
# 'osx', 'pyglet', 'qt', 'qt4', 'tk', 'wx').
|
||||
# c.InteractiveShellApp.gui = None
|
||||
|
||||
# Pre-load matplotlib and numpy for interactive use, selecting a particular
|
||||
# matplotlib backend and loop integration.
|
||||
# c.InteractiveShellApp.pylab = None
|
||||
|
||||
# Configure matplotlib for interactive use with the default matplotlib backend.
|
||||
# c.InteractiveShellApp.matplotlib = None
|
||||
|
||||
# If true, IPython will populate the user namespace with numpy, pylab, etc. and
|
||||
# an ``import *`` is done from numpy and pylab, when using pylab mode.
|
||||
#
|
||||
# When False, pylab mode should not import any names into the user namespace.
|
||||
# c.InteractiveShellApp.pylab_import_all = True
|
||||
|
||||
# A list of dotted module names of IPython extensions to load.
|
||||
# c.InteractiveShellApp.extensions = []
|
||||
|
||||
# Run the module as a script.
|
||||
# c.InteractiveShellApp.module_to_run = ''
|
||||
|
||||
# Should variables loaded at startup (by startup files, exec_lines, etc.) be
|
||||
# hidden from tools like %who?
|
||||
# c.InteractiveShellApp.hide_initial_ns = True
|
||||
|
||||
# dotted module name of an IPython extension to load.
|
||||
# c.InteractiveShellApp.extra_extension = ''
|
||||
|
||||
# List of files to run at IPython startup.
|
||||
# c.InteractiveShellApp.exec_files = []
|
||||
|
||||
# A file to be run
|
||||
# c.InteractiveShellApp.file_to_run = ''
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# TerminalIPythonApp configuration
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# TerminalIPythonApp will inherit config from: BaseIPythonApplication,
|
||||
# Application, InteractiveShellApp
|
||||
|
||||
# Run the file referenced by the PYTHONSTARTUP environment variable at IPython
|
||||
# startup.
|
||||
# c.TerminalIPythonApp.exec_PYTHONSTARTUP = True
|
||||
|
||||
# Pre-load matplotlib and numpy for interactive use, selecting a particular
|
||||
# matplotlib backend and loop integration.
|
||||
# c.TerminalIPythonApp.pylab = None
|
||||
|
||||
# Create a massive crash report when IPython encounters what may be an internal
|
||||
# error. The default is to append a short message to the usual traceback
|
||||
# c.TerminalIPythonApp.verbose_crash = False
|
||||
|
||||
# Run the module as a script.
|
||||
# c.TerminalIPythonApp.module_to_run = ''
|
||||
|
||||
# The date format used by logging formatters for %(asctime)s
|
||||
# c.TerminalIPythonApp.log_datefmt = '%Y-%m-%d %H:%M:%S'
|
||||
|
||||
# Whether to overwrite existing config files when copying
|
||||
# c.TerminalIPythonApp.overwrite = False
|
||||
|
||||
# Execute the given command string.
|
||||
# c.TerminalIPythonApp.code_to_run = ''
|
||||
|
||||
# Set the log level by value or name.
|
||||
# c.TerminalIPythonApp.log_level = 30
|
||||
|
||||
# lines of code to run at IPython startup.
|
||||
# c.TerminalIPythonApp.exec_lines = []
|
||||
|
||||
# Suppress warning messages about legacy config files
|
||||
# c.TerminalIPythonApp.ignore_old_config = False
|
||||
|
||||
# Path to an extra config file to load.
|
||||
#
|
||||
# If specified, load this config file in addition to any other IPython config.
|
||||
# c.TerminalIPythonApp.extra_config_file = u''
|
||||
|
||||
# Should variables loaded at startup (by startup files, exec_lines, etc.) be
|
||||
# hidden from tools like %who?
|
||||
# c.TerminalIPythonApp.hide_initial_ns = True
|
||||
|
||||
# dotted module name of an IPython extension to load.
|
||||
# c.TerminalIPythonApp.extra_extension = ''
|
||||
|
||||
# A file to be run
|
||||
# c.TerminalIPythonApp.file_to_run = ''
|
||||
|
||||
# The IPython profile to use.
|
||||
# c.TerminalIPythonApp.profile = u'default'
|
||||
|
||||
# Configure matplotlib for interactive use with the default matplotlib backend.
|
||||
# c.TerminalIPythonApp.matplotlib = None
|
||||
|
||||
# If a command or file is given via the command-line, e.g. 'ipython foo.py',
|
||||
# start an interactive shell after executing the file or command.
|
||||
# c.TerminalIPythonApp.force_interact = False
|
||||
|
||||
# If true, IPython will populate the user namespace with numpy, pylab, etc. and
|
||||
# an ``import *`` is done from numpy and pylab, when using pylab mode.
|
||||
#
|
||||
# When False, pylab mode should not import any names into the user namespace.
|
||||
# c.TerminalIPythonApp.pylab_import_all = True
|
||||
|
||||
# The name of the IPython directory. This directory is used for logging
|
||||
# configuration (through profiles), history storage, etc. The default is usually
|
||||
# $HOME/.ipython. This options can also be specified through the environment
|
||||
# variable IPYTHONDIR.
|
||||
# c.TerminalIPythonApp.ipython_dir = u''
|
||||
|
||||
# Whether to display a banner upon starting IPython.
|
||||
# c.TerminalIPythonApp.display_banner = True
|
||||
|
||||
# Whether to install the default config files into the profile dir. If a new
|
||||
# profile is being created, and IPython contains config files for that profile,
|
||||
# then they will be staged into the new directory. Otherwise, default config
|
||||
# files will be automatically generated.
|
||||
# c.TerminalIPythonApp.copy_config_files = False
|
||||
|
||||
# List of files to run at IPython startup.
|
||||
# c.TerminalIPythonApp.exec_files = []
|
||||
|
||||
# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'none',
|
||||
# 'osx', 'pyglet', 'qt', 'qt4', 'tk', 'wx').
|
||||
# c.TerminalIPythonApp.gui = None
|
||||
|
||||
# A list of dotted module names of IPython extensions to load.
|
||||
# c.TerminalIPythonApp.extensions = []
|
||||
|
||||
# Start IPython quickly by skipping the loading of config files.
|
||||
# c.TerminalIPythonApp.quick = False
|
||||
|
||||
# The Logging format template
|
||||
# c.TerminalIPythonApp.log_format = '[%(name)s]%(highlevel)s %(message)s'
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# TerminalInteractiveShell configuration
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# TerminalInteractiveShell will inherit config from: InteractiveShell
|
||||
|
||||
# auto editing of files with syntax errors.
|
||||
# c.TerminalInteractiveShell.autoedit_syntax = False
|
||||
|
||||
# Use colors for displaying information about objects. Because this information
|
||||
# is passed through a pager (like 'less'), and some pagers get confused with
|
||||
# color codes, this capability can be turned off.
|
||||
# c.TerminalInteractiveShell.color_info = True
|
||||
|
||||
# A list of ast.NodeTransformer subclass instances, which will be applied to
|
||||
# user input before code is run.
|
||||
# c.TerminalInteractiveShell.ast_transformers = []
|
||||
|
||||
#
|
||||
# c.TerminalInteractiveShell.history_length = 10000
|
||||
|
||||
# Don't call post-execute functions that have failed in the past.
|
||||
# c.TerminalInteractiveShell.disable_failing_post_execute = False
|
||||
|
||||
# Show rewritten input, e.g. for autocall.
|
||||
# c.TerminalInteractiveShell.show_rewritten_input = True
|
||||
|
||||
# Set the color scheme (NoColor, Linux, or LightBG).
|
||||
# c.TerminalInteractiveShell.colors = 'Linux'
|
||||
|
||||
# Autoindent IPython code entered interactively.
|
||||
# c.TerminalInteractiveShell.autoindent = True
|
||||
|
||||
#
|
||||
# c.TerminalInteractiveShell.separate_in = '\n'
|
||||
|
||||
# Deprecated, use PromptManager.in2_template
|
||||
# c.TerminalInteractiveShell.prompt_in2 = ' .\\D.: '
|
||||
|
||||
#
|
||||
# c.TerminalInteractiveShell.separate_out = ''
|
||||
|
||||
# Deprecated, use PromptManager.in_template
|
||||
# c.TerminalInteractiveShell.prompt_in1 = 'In [\\#]: '
|
||||
|
||||
# Make IPython automatically call any callable object even if you didn't type
|
||||
# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
|
||||
# The value can be '0' to disable the feature, '1' for 'smart' autocall, where
|
||||
# it is not applied if there are no more arguments on the line, and '2' for
|
||||
# 'full' autocall, where all callable objects are automatically called (even if
|
||||
# no arguments are present).
|
||||
# c.TerminalInteractiveShell.autocall = 0
|
||||
|
||||
# Number of lines of your screen, used to control printing of very long strings.
|
||||
# Strings longer than this number of lines will be sent through a pager instead
|
||||
# of directly printed. The default value for this is 0, which means IPython
|
||||
# will auto-detect your screen size every time it needs to print certain
|
||||
# potentially long strings (this doesn't change the behavior of the 'print'
|
||||
# keyword, it's only triggered internally). If for some reason this isn't
|
||||
# working well (it needs curses support), specify it yourself. Otherwise don't
|
||||
# change the default.
|
||||
# c.TerminalInteractiveShell.screen_length = 0
|
||||
|
||||
# Set the editor used by IPython (default to $EDITOR/vi/notepad).
|
||||
# c.TerminalInteractiveShell.editor = u'nano'
|
||||
|
||||
# Deprecated, use PromptManager.justify
|
||||
# c.TerminalInteractiveShell.prompts_pad_left = True
|
||||
|
||||
# The part of the banner to be printed before the profile
|
||||
# c.TerminalInteractiveShell.banner1 = 'Python 2.7.6 (default, Apr 23 2014, 12:04:55) \nType "copyright", "credits" or "license" for more information.\n\nIPython 2.0.0 -- An enhanced Interactive Python.\n? -> Introduction and overview of IPython\'s features.\n%quickref -> Quick reference.\nhelp -> Python\'s own help system.\nobject? -> Details about \'object\', use \'object??\' for extra details.\n'
|
||||
|
||||
#
|
||||
# c.TerminalInteractiveShell.readline_parse_and_bind = ['tab: complete', '"\\C-l": clear-screen', 'set show-all-if-ambiguous on', '"\\C-o": tab-insert', '"\\C-r": reverse-search-history', '"\\C-s": forward-search-history', '"\\C-p": history-search-backward', '"\\C-n": history-search-forward', '"\\e[A": history-search-backward', '"\\e[B": history-search-forward', '"\\C-k": kill-line', '"\\C-u": unix-line-discard']
|
||||
|
||||
# The part of the banner to be printed after the profile
|
||||
# c.TerminalInteractiveShell.banner2 = ''
|
||||
|
||||
#
|
||||
# c.TerminalInteractiveShell.separate_out2 = ''
|
||||
|
||||
#
|
||||
# c.TerminalInteractiveShell.wildcards_case_sensitive = True
|
||||
|
||||
#
|
||||
# c.TerminalInteractiveShell.debug = False
|
||||
|
||||
# Set to confirm when you try to exit IPython with an EOF (Control-D in Unix,
|
||||
# Control-Z/Enter in Windows). By typing 'exit' or 'quit', you can force a
|
||||
# direct exit without any confirmation.
|
||||
# c.TerminalInteractiveShell.confirm_exit = True
|
||||
|
||||
#
|
||||
# c.TerminalInteractiveShell.ipython_dir = ''
|
||||
|
||||
#
|
||||
# c.TerminalInteractiveShell.readline_remove_delims = '-/~'
|
||||
|
||||
# Start logging to the default log file.
|
||||
# c.TerminalInteractiveShell.logstart = False
|
||||
|
||||
# The name of the logfile to use.
|
||||
# c.TerminalInteractiveShell.logfile = ''
|
||||
|
||||
# The shell program to be used for paging.
|
||||
# c.TerminalInteractiveShell.pager = 'less'
|
||||
|
||||
# Enable magic commands to be called without the leading %.
|
||||
# c.TerminalInteractiveShell.automagic = True
|
||||
|
||||
# Save multi-line entries as one entry in readline history
|
||||
# c.TerminalInteractiveShell.multiline_history = True
|
||||
|
||||
#
|
||||
# c.TerminalInteractiveShell.readline_use = True
|
||||
|
||||
# Enable deep (recursive) reloading by default. IPython can use the deep_reload
|
||||
# module which reloads changes in modules recursively (it replaces the reload()
|
||||
# function, so you don't need to change anything to use it). deep_reload()
|
||||
# forces a full reload of modules whose code may have changed, which the default
|
||||
# reload() function does not. When deep_reload is off, IPython will use the
|
||||
# normal reload(), but deep_reload will still be available as dreload().
|
||||
# c.TerminalInteractiveShell.deep_reload = False
|
||||
|
||||
# Start logging to the given file in append mode.
|
||||
# c.TerminalInteractiveShell.logappend = ''
|
||||
|
||||
#
|
||||
# c.TerminalInteractiveShell.xmode = 'Context'
|
||||
|
||||
#
|
||||
# c.TerminalInteractiveShell.quiet = False
|
||||
|
||||
# Enable auto setting the terminal title.
|
||||
# c.TerminalInteractiveShell.term_title = False
|
||||
|
||||
#
|
||||
# c.TerminalInteractiveShell.object_info_string_level = 0
|
||||
|
||||
# Deprecated, use PromptManager.out_template
|
||||
# c.TerminalInteractiveShell.prompt_out = 'Out[\\#]: '
|
||||
|
||||
# Set the size of the output cache. The default is 1000, you can change it
|
||||
# permanently in your config file. Setting it to 0 completely disables the
|
||||
# caching system, and the minimum value accepted is 20 (if you provide a value
|
||||
# less than 20, it is reset to 0 and a warning is issued). This limit is
|
||||
# defined because otherwise you'll spend more time re-flushing a too small cache
|
||||
# than working
|
||||
# c.TerminalInteractiveShell.cache_size = 1000
|
||||
|
||||
# 'all', 'last', 'last_expr' or 'none', specifying which nodes should be run
|
||||
# interactively (displaying output from expressions).
|
||||
# c.TerminalInteractiveShell.ast_node_interactivity = 'last_expr'
|
||||
|
||||
# Automatically call the pdb debugger after every exception.
|
||||
# c.TerminalInteractiveShell.pdb = False
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# PromptManager configuration
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# This is the primary interface for producing IPython's prompts.
|
||||
|
||||
# Output prompt. '\#' will be transformed to the prompt number
|
||||
# c.PromptManager.out_template = 'Out[\\#]: '
|
||||
|
||||
# Continuation prompt.
|
||||
# c.PromptManager.in2_template = ' .\\D.: '
|
||||
|
||||
# If True (default), each prompt will be right-aligned with the preceding one.
|
||||
# c.PromptManager.justify = True
|
||||
|
||||
# Input prompt. '\#' will be transformed to the prompt number
|
||||
# c.PromptManager.in_template = 'In [\\#]: '
|
||||
|
||||
#
|
||||
# c.PromptManager.color_scheme = 'Linux'
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# HistoryManager configuration
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# A class to organize all history-related functionality in one place.
|
||||
|
||||
# HistoryManager will inherit config from: HistoryAccessor
|
||||
|
||||
# Should the history database include output? (default: no)
|
||||
# c.HistoryManager.db_log_output = False
|
||||
|
||||
# Write to database every x commands (higher values save disk access & power).
|
||||
# Values of 1 or less effectively disable caching.
|
||||
# c.HistoryManager.db_cache_size = 0
|
||||
|
||||
# Path to file to use for SQLite history database.
|
||||
#
|
||||
# By default, IPython will put the history database in the IPython profile
|
||||
# directory. If you would rather share one history among profiles, you can set
|
||||
# this value in each, so that they are consistent.
|
||||
#
|
||||
# Due to an issue with fcntl, SQLite is known to misbehave on some NFS mounts.
|
||||
# If you see IPython hanging, try setting this to something on a local disk,
|
||||
# e.g::
|
||||
#
|
||||
# ipython --HistoryManager.hist_file=/tmp/ipython_hist.sqlite
|
||||
# c.HistoryManager.hist_file = u''
|
||||
|
||||
# Options for configuring the SQLite connection
|
||||
#
|
||||
# These options are passed as keyword args to sqlite3.connect when establishing
|
||||
# database conenctions.
|
||||
# c.HistoryManager.connection_options = {}
|
||||
|
||||
# enable the SQLite history
|
||||
#
|
||||
# set enabled=False to disable the SQLite history, in which case there will be
|
||||
# no stored history, no SQLite connection, and no background saving thread.
|
||||
# This may be necessary in some threaded environments where IPython is embedded.
|
||||
# c.HistoryManager.enabled = True
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# ProfileDir configuration
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# An object to manage the profile directory and its resources.
|
||||
#
|
||||
# The profile directory is used by all IPython applications, to manage
|
||||
# configuration, logging and security.
|
||||
#
|
||||
# This object knows how to find, create and manage these directories. This
|
||||
# should be used by any code that wants to handle profiles.
|
||||
|
||||
# Set the profile location directly. This overrides the logic used by the
|
||||
# `profile` option.
|
||||
# c.ProfileDir.location = u''
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# PlainTextFormatter configuration
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# The default pretty-printer.
|
||||
#
|
||||
# This uses :mod:`IPython.lib.pretty` to compute the format data of the object.
|
||||
# If the object cannot be pretty printed, :func:`repr` is used. See the
|
||||
# documentation of :mod:`IPython.lib.pretty` for details on how to write pretty
|
||||
# printers. Here is a simple example::
|
||||
#
|
||||
# def dtype_pprinter(obj, p, cycle):
|
||||
# if cycle:
|
||||
# return p.text('dtype(...)')
|
||||
# if hasattr(obj, 'fields'):
|
||||
# if obj.fields is None:
|
||||
# p.text(repr(obj))
|
||||
# else:
|
||||
# p.begin_group(7, 'dtype([')
|
||||
# for i, field in enumerate(obj.descr):
|
||||
# if i > 0:
|
||||
# p.text(',')
|
||||
# p.breakable()
|
||||
# p.pretty(field)
|
||||
# p.end_group(7, '])')
|
||||
|
||||
# PlainTextFormatter will inherit config from: BaseFormatter
|
||||
|
||||
#
|
||||
# c.PlainTextFormatter.type_printers = {}
|
||||
|
||||
#
|
||||
# c.PlainTextFormatter.newline = '\n'
|
||||
|
||||
#
|
||||
# c.PlainTextFormatter.float_precision = ''
|
||||
|
||||
#
|
||||
# c.PlainTextFormatter.verbose = False
|
||||
|
||||
#
|
||||
# c.PlainTextFormatter.deferred_printers = {}
|
||||
|
||||
#
|
||||
# c.PlainTextFormatter.pprint = True
|
||||
|
||||
#
|
||||
# c.PlainTextFormatter.max_width = 79
|
||||
|
||||
#
|
||||
# c.PlainTextFormatter.singleton_printers = {}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# IPCompleter configuration
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Extension of the completer class with IPython-specific features
|
||||
|
||||
# IPCompleter will inherit config from: Completer
|
||||
|
||||
# Instruct the completer to omit private method names
|
||||
#
|
||||
# Specifically, when completing on ``object.<tab>``.
|
||||
#
|
||||
# When 2 [default]: all names that start with '_' will be excluded.
|
||||
#
|
||||
# When 1: all 'magic' names (``__foo__``) will be excluded.
|
||||
#
|
||||
# When 0: nothing will be excluded.
|
||||
# c.IPCompleter.omit__names = 2
|
||||
|
||||
# Whether to merge completion results into a single list
|
||||
#
|
||||
# If False, only the completion results from the first non-empty completer will
|
||||
# be returned.
|
||||
# c.IPCompleter.merge_completions = True
|
||||
|
||||
# Instruct the completer to use __all__ for the completion
|
||||
#
|
||||
# Specifically, when completing on ``object.<tab>``.
|
||||
#
|
||||
# When True: only those names in obj.__all__ will be included.
|
||||
#
|
||||
# When False [default]: the __all__ attribute is ignored
|
||||
# c.IPCompleter.limit_to__all__ = False
|
||||
|
||||
# Activate greedy completion
|
||||
#
|
||||
# This will enable completion on elements of lists, results of function calls,
|
||||
# etc., but can be unsafe because the code is actually evaluated on TAB.
|
||||
# c.IPCompleter.greedy = False
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# ScriptMagics configuration
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Magics for talking to scripts
|
||||
#
|
||||
# This defines a base `%%script` cell magic for running a cell with a program in
|
||||
# a subprocess, and registers a few top-level magics that call %%script with
|
||||
# common interpreters.
|
||||
|
||||
# Extra script cell magics to define
|
||||
#
|
||||
# This generates simple wrappers of `%%script foo` as `%%foo`.
|
||||
#
|
||||
# If you want to add script magics that aren't on your path, specify them in
|
||||
# script_paths
|
||||
# c.ScriptMagics.script_magics = []
|
||||
|
||||
# Dict mapping short 'ruby' names to full paths, such as '/opt/secret/bin/ruby'
|
||||
#
|
||||
# Only necessary for items in script_magics where the default path will not find
|
||||
# the right interpreter.
|
||||
# c.ScriptMagics.script_paths = {}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# StoreMagics configuration
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Lightweight persistence for python variables.
|
||||
#
|
||||
# Provides the %store magic.
|
||||
|
||||
# If True, any %store-d variables will be automatically restored when IPython
|
||||
# starts.
|
||||
# c.StoreMagics.autorestore = False
|
||||
@@ -0,0 +1,5 @@
|
||||
# ZSH Completion
|
||||
|
||||
To install the completion, copy `_pwn` to somewhere in your `$fpath`.
|
||||
|
||||
The `./install.sh` script attempts to automate this, and advises an alternative method if that's unavailable.
|
||||
@@ -0,0 +1,197 @@
|
||||
#compdef pwn
|
||||
# ----------------------------------------------------------------------------------------
|
||||
# Zsh completion file for pwn
|
||||
#
|
||||
# Pwntools Command-line Interface
|
||||
#
|
||||
# This file was generated with help from Zargparse (https://github.com/ctil/zargparse)
|
||||
# ----------------------------------------------------------------------------------------
|
||||
|
||||
typeset -A opt_args
|
||||
|
||||
_pwn() {
|
||||
# Define the subcommands
|
||||
local -a commands
|
||||
commands=(
|
||||
'asm:Assemble shellcode into bytes'
|
||||
'checksec:Check binary security settings'
|
||||
'constgrep:Looking up constants from header files.'
|
||||
'cyclic:Cyclic pattern creator/finder'
|
||||
'debug:Debug a binary in GDB'
|
||||
'disasm:Disassemble bytes into text format'
|
||||
'disablenx:Disable NX for an ELF binary'
|
||||
'elfdiff:Compare two ELF files'
|
||||
'elfpatch:Patch an ELF file'
|
||||
'errno:Prints out error messages'
|
||||
'hex:Hex-encodes data provided on the command line or stdin'
|
||||
'phd:Pretty hex dump'
|
||||
'scramble:Strip binaries for CTF usage'
|
||||
'shellcraft:Shellcode encoder'
|
||||
'template:Microwave shellcode -- Easy, fast and delicious'
|
||||
'unhex:Generate an exploit template'
|
||||
'update:Decodes hex-encoded data provided on the command line or via stdin.'
|
||||
'version:Check for pwntools updates'
|
||||
)
|
||||
|
||||
# Global flags (i.e. ones not associated with a subcommand)
|
||||
_arguments \
|
||||
"1: :{_describe 'command' commands}" \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
'*:: :->args'
|
||||
|
||||
# Flags for each subcommand
|
||||
case $state in
|
||||
args)
|
||||
case $words[1] in
|
||||
pwnstrip)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
'(-b --build-id)'{-b,--build-id}'[Strip build ID]' \
|
||||
'(-p --patch)'{-p,--patch}'=[Patch function]:' \
|
||||
'(-o --output)'{-o,--output}'=[None]:' \
|
||||
;;
|
||||
asm)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
'(-f --format)'{-f,--format}'=[Output format (defaults to hex for ttys, otherwise raw)]:-f :(raw hex string elf)' \
|
||||
'(-o --output)'{-o,--output}'=[Output file (defaults to stdout)]:' \
|
||||
'(-c --context)'{-c,--context}'=[The os/architecture/endianness/bits the shellcode will run in (default: linux/i386), choose from: \["16", "32", "64", "android", "baremetal", "cgc", "freebsd", "linux", "windows", "powerpc64", "aarch64", "powerpc", "sparc64", "mips64", "msp430", "alpha", "amd64", "sparc", "thumb", "cris", "i386", "ia64", "m68k", "mips", "s390", "none", "avr", "arm", "vax", "little", "big", "be", "eb", "le", "el"\]]:-c :(16 32 64 android baremetal cgc freebsd linux windows powerpc64 aarch64 powerpc sparc64 mips64 msp430 alpha amd64 sparc thumb cris i386 ia64 m68k mips s390 none avr arm vax little big be eb le el)' \
|
||||
'(-v --avoid)'{-v,--avoid}'=[Encode the shellcode to avoid the listed bytes (provided as hex)]:' \
|
||||
'(-n --newline)'{-n,--newline}'[Encode the shellcode to avoid newlines]' \
|
||||
'(-z --zero)'{-z,--zero}'[Encode the shellcode to avoid NULL bytes]' \
|
||||
'(-d --debug)'{-d,--debug}'[Debug the shellcode with GDB]' \
|
||||
'(-e --encoder)'{-e,--encoder}'=[Specific encoder to use]:' \
|
||||
'(-i --infile)'{-i,--infile}'=[Specify input file]:' \
|
||||
'(-r --run)'{-r,--run}'[Run output]' \
|
||||
;;
|
||||
checksec)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
'--file=[File to check (for compatibility with checksec.sh)]:' \
|
||||
;;
|
||||
constgrep)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
'(-e --exact)'{-e,--exact}'[Do an exact match for a constant instead of searching for a regex]' \
|
||||
'(-i --case-insensitive)'{-i,--case-insensitive}'[Search case insensitive]' \
|
||||
'(-m --mask-mode)'{-m,--mask-mode}'[Instead of searching for a specific constant value, search for values not containing strictly less bits that the given value.]' \
|
||||
'(-c --context)'{-c,--context}'=[The os/architecture/endianness/bits the shellcode will run in (default: linux/i386), choose from: \["16", "32", "64", "android", "baremetal", "cgc", "freebsd", "linux", "windows", "powerpc64", "aarch64", "powerpc", "sparc64", "mips64", "msp430", "alpha", "amd64", "sparc", "thumb", "cris", "i386", "ia64", "m68k", "mips", "s390", "none", "avr", "arm", "vax", "little", "big", "be", "eb", "le", "el"\]]:-c :(16 32 64 android baremetal cgc freebsd linux windows powerpc64 aarch64 powerpc sparc64 mips64 msp430 alpha amd64 sparc thumb cris i386 ia64 m68k mips s390 none avr arm vax little big be eb le el)' \
|
||||
;;
|
||||
cyclic)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
'(-a --alphabet)'{-a,--alphabet}'=[The alphabet to use in the cyclic pattern (defaults to all lower case letters)]:' \
|
||||
'(-n --length)'{-n,--length}'=[Size of the unique subsequences (defaults to 4).]:' \
|
||||
'(-c --context)'{-c,--context}'=[The os/architecture/endianness/bits the shellcode will run in (default: linux/i386), choose from: \["16", "32", "64", "android", "baremetal", "cgc", "freebsd", "linux", "windows", "powerpc64", "aarch64", "powerpc", "sparc64", "mips64", "msp430", "alpha", "amd64", "sparc", "thumb", "cris", "i386", "ia64", "m68k", "mips", "s390", "none", "avr", "arm", "vax", "little", "big", "be", "eb", "le", "el"\]]:-c :(16 32 64 android baremetal cgc freebsd linux windows powerpc64 aarch64 powerpc sparc64 mips64 msp430 alpha amd64 sparc thumb cris i386 ia64 m68k mips s390 none avr arm vax little big be eb le el)' \
|
||||
'(-l -o --offset --lookup)'{-l,-o,--offset,--lookup}'=[Do a lookup instead printing the alphabet]:' \
|
||||
;;
|
||||
debug)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
'-x=[Execute GDB commands from this file.]:' \
|
||||
'--pid=[PID to attach to]:' \
|
||||
'(-c --context)'{-c,--context}'=[The os/architecture/endianness/bits the shellcode will run in (default: linux/i386), choose from: \["16", "32", "64", "android", "baremetal", "cgc", "freebsd", "linux", "windows", "powerpc64", "aarch64", "powerpc", "sparc64", "mips64", "msp430", "alpha", "amd64", "sparc", "thumb", "cris", "i386", "ia64", "m68k", "mips", "s390", "none", "avr", "arm", "vax", "little", "big", "be", "eb", "le", "el"\]]:-c :(16 32 64 android baremetal cgc freebsd linux windows powerpc64 aarch64 powerpc sparc64 mips64 msp430 alpha amd64 sparc thumb cris i386 ia64 m68k mips s390 none avr arm vax little big be eb le el)' \
|
||||
'--exec=[File to debug]:' \
|
||||
'--process=[Name of the process to attach to (e.g. "bash")]:' \
|
||||
'--sysroot=[GDB sysroot path]:' \
|
||||
;;
|
||||
disasm)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
'(-c --context)'{-c,--context}'=[The os/architecture/endianness/bits the shellcode will run in (default: linux/i386), choose from: \["16", "32", "64", "android", "baremetal", "cgc", "freebsd", "linux", "windows", "powerpc64", "aarch64", "powerpc", "sparc64", "mips64", "msp430", "alpha", "amd64", "sparc", "thumb", "cris", "i386", "ia64", "m68k", "mips", "s390", "none", "avr", "arm", "vax", "little", "big", "be", "eb", "le", "el"\]]:-c :(16 32 64 android baremetal cgc freebsd linux windows powerpc64 aarch64 powerpc sparc64 mips64 msp430 alpha amd64 sparc thumb cris i386 ia64 m68k mips s390 none avr arm vax little big be eb le el)' \
|
||||
'(-a --address)'{-a,--address}'=[Base address]:' \
|
||||
'--color[Color output]' \
|
||||
'--no-color[Disable color output]' \
|
||||
;;
|
||||
disablenx)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
;;
|
||||
elfdiff)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
;;
|
||||
elfpatch)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
;;
|
||||
errno)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
;;
|
||||
hex)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
;;
|
||||
phd)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
'(-w --width)'{-w,--width}'=[Number of bytes per line.]:' \
|
||||
'(-l --highlight)'{-l,--highlight}'=[Byte to highlight.]:' \
|
||||
'(-s --skip)'{-s,--skip}'=[Skip this many initial bytes.]:' \
|
||||
'(-c --count)'{-c,--count}'=[Only show this many bytes.]:' \
|
||||
'(-o --offset)'{-o,--offset}'=[Addresses in left hand column starts at this address.]:' \
|
||||
'--color=[Colorize the output. When "auto" output is colorized exactly when stdout is a TTY. Default is "auto".]:--color :(always never auto)' \
|
||||
;;
|
||||
scramble)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
'(-f --format)'{-f,--format}'=[Output format (defaults to hex for ttys, otherwise raw)]:-f :(raw hex string elf)' \
|
||||
'(-o --output)'{-o,--output}'=[Output file (defaults to stdout)]:' \
|
||||
'(-c --context)'{-c,--context}'=[The os/architecture/endianness/bits the shellcode will run in (default: linux/i386), choose from: \["16", "32", "64", "android", "baremetal", "cgc", "freebsd", "linux", "windows", "powerpc64", "aarch64", "powerpc", "sparc64", "mips64", "msp430", "alpha", "amd64", "sparc", "thumb", "cris", "i386", "ia64", "m68k", "mips", "s390", "none", "avr", "arm", "vax", "little", "big", "be", "eb", "le", "el"\]]:-c :(16 32 64 android baremetal cgc freebsd linux windows powerpc64 aarch64 powerpc sparc64 mips64 msp430 alpha amd64 sparc thumb cris i386 ia64 m68k mips s390 none avr arm vax little big be eb le el)' \
|
||||
'(-p --alphanumeric)'{-p,--alphanumeric}'[Encode the shellcode with an alphanumeric encoder]' \
|
||||
'(-v --avoid)'{-v,--avoid}'=[Encode the shellcode to avoid the listed bytes]:' \
|
||||
'(-n --newline)'{-n,--newline}'[Encode the shellcode to avoid newlines]' \
|
||||
'(-z --zero)'{-z,--zero}'[Encode the shellcode to avoid NULL bytes]' \
|
||||
'(-d --debug)'{-d,--debug}'[Debug the shellcode with GDB]' \
|
||||
;;
|
||||
shellcraft)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
'(-? --show)'{-?,--show}'[Show shellcode documentation]' \
|
||||
'(-o --out)'{-o,--out}'=[Output file (default: stdout)]:' \
|
||||
'(-f --format)'{-f,--format}'=[Output format (default: hex), choose from {e}lf, {r}aw, {s}tring, {c}-style array, {h}ex string, hex{i}i, {a}ssembly code, {p}reprocssed code, escape{d} hex string]:-f :(r raw s str string c h hex a asm assembly p i hexii e elf d escaped default)' \
|
||||
'(-d --debug)'{-d,--debug}'[Debug the shellcode with GDB]' \
|
||||
'(-b --before)'{-b,--before}'[Insert a debug trap before the code]' \
|
||||
'(-a --after)'{-a,--after}'[Insert a debug trap after the code]' \
|
||||
'(-v --avoid)'{-v,--avoid}'=[Encode the shellcode to avoid the listed bytes]:' \
|
||||
'(-n --newline)'{-n,--newline}'[Encode the shellcode to avoid newlines]' \
|
||||
'(-z --zero)'{-z,--zero}'[Encode the shellcode to avoid NULL bytes]' \
|
||||
'(-r --run)'{-r,--run}'[Run output]' \
|
||||
'--color[Color output]' \
|
||||
'--no-color[Disable color output]' \
|
||||
'--syscalls[List syscalls]' \
|
||||
'--address=[Load address]:' \
|
||||
'(-l --list)'{-l,--list}'[List available shellcodes, optionally provide a filter]' \
|
||||
'(-s --shared)'{-s,--shared}'[Generated ELF is a shared library]' \
|
||||
;;
|
||||
template)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
'--host=[Remote host / SSH server]:' \
|
||||
'--port=[Remote port / SSH port]:' \
|
||||
'--user=[SSH Username]:' \
|
||||
'(--pass --password)'{--pass,--password}'=[SSH Password]:' \
|
||||
'--path=[Remote path of file on SSH server]:' \
|
||||
'--quiet[Less verbose template comments]' \
|
||||
'--color=[Print the output in color]:--color :(never always auto)' \
|
||||
;;
|
||||
unhex)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
;;
|
||||
update)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
'--install[Install the update automatically.]' \
|
||||
'--pre[Check for pre-releases.]' \
|
||||
;;
|
||||
version)
|
||||
_arguments \
|
||||
'(-h --help)'{-h,--help}'[show this help message and exit]' \
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
}
|
||||
_pwn
|
||||
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# Try to find a writable directory first, in reverse order
|
||||
for dir in "${(Oa)fpath[@]}"; do
|
||||
if [ -w "$dir" ]; then
|
||||
cp -f ${0:h}/_pwn "$dir"
|
||||
return
|
||||
fi
|
||||
done
|
||||
|
||||
cat <<EOF
|
||||
Could not find a suitable directory to install the completion.
|
||||
|
||||
Try adding this line at the top of your ~/.zshrc, and start a new shell.
|
||||
|
||||
fpath=( ${0:A:h} \$fpath )
|
||||
|
||||
If completion does not work, add this to the bottom of your ~/.zshrc, and start a new shell.
|
||||
Users of prezto should enable the 'completion' module (enabled by default).
|
||||
|
||||
compinit -i
|
||||
|
||||
EOF
|
||||
@@ -7,7 +7,6 @@ pwnlib.args.initialize()
|
||||
pwnlib.log.install_default_handler()
|
||||
pwnlib.config.initialize()
|
||||
|
||||
log = pwnlib.log.getLogger('pwnlib.exploit')
|
||||
args = pwnlib.args.args
|
||||
|
||||
if not platform.architecture()[0].startswith('64'):
|
||||
|
||||
+1
-1
@@ -6,7 +6,6 @@ import operator
|
||||
import os
|
||||
import platform
|
||||
import re
|
||||
import requests
|
||||
import socks
|
||||
import signal
|
||||
import string
|
||||
@@ -78,6 +77,7 @@ from pwnlib.util.web import *
|
||||
from six.moves import cPickle as pickle, cStringIO as StringIO
|
||||
from six import BytesIO
|
||||
|
||||
log = getLogger("pwnlib.exploit")
|
||||
error = log.error
|
||||
warning = log.warning
|
||||
warn = log.warning
|
||||
|
||||
+4
-6
@@ -1,12 +1,11 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
import importlib
|
||||
|
||||
from pwnlib.version import __version__
|
||||
from .version import __version__
|
||||
|
||||
version = __version__
|
||||
|
||||
__all__ = [
|
||||
'adb',
|
||||
'args',
|
||||
'asm',
|
||||
'atexception',
|
||||
@@ -35,9 +34,8 @@ __all__ = [
|
||||
'ui',
|
||||
'useragents',
|
||||
'util',
|
||||
'adb',
|
||||
'update',
|
||||
'version',
|
||||
]
|
||||
|
||||
for module in __all__:
|
||||
importlib.import_module('.%s' % module, 'pwnlib')
|
||||
from . import args
|
||||
+13
-8
@@ -68,6 +68,7 @@ from pwnlib.context import context
|
||||
from pwnlib.device import Device
|
||||
from pwnlib.log import getLogger
|
||||
from pwnlib.protocols.adb import AdbClient
|
||||
from pwnlib.util.packing import _decode
|
||||
from pwnlib.util import misc
|
||||
|
||||
log = getLogger(__name__)
|
||||
@@ -120,8 +121,8 @@ def current_device(any=False):
|
||||
:skipif: skip_android
|
||||
|
||||
>>> device = adb.current_device(any=True)
|
||||
>>> device
|
||||
AdbDevice(serial='emulator-5554', type='device', port='emulator', product='sdk_google_phone_armv7', model='sdk google phone armv7', device='generic')
|
||||
>>> device # doctest: +ELLIPSIS
|
||||
AdbDevice(serial='emulator-5554', type='device', port='emulator', product='sdk_...phone_armv7', model='sdk ...phone armv7', device='generic')
|
||||
>>> device.port
|
||||
'emulator'
|
||||
"""
|
||||
@@ -256,8 +257,8 @@ class AdbDevice(Device):
|
||||
32
|
||||
>>> device.os
|
||||
'android'
|
||||
>>> device.product
|
||||
'sdk_google_phone_armv7'
|
||||
>>> device.product # doctest: +ELLIPSIS
|
||||
'sdk_...phone_armv7'
|
||||
>>> device.serial
|
||||
'emulator-5554'
|
||||
"""
|
||||
@@ -383,6 +384,9 @@ class AdbDevice(Device):
|
||||
>>> adb.getprop(property) == device.getprop(property)
|
||||
True
|
||||
"""
|
||||
if name.startswith('_'):
|
||||
raise AttributeError(name)
|
||||
|
||||
with context.local(device=self):
|
||||
g = globals()
|
||||
|
||||
@@ -895,7 +899,7 @@ def which(name, all = False, *a, **kw):
|
||||
|
||||
which_cmd = which_cmd.strip()
|
||||
data = process(['sh','-c', which_cmd], *a, **kw).recvall()
|
||||
data = context._decode(data)
|
||||
data = _decode(data)
|
||||
result = []
|
||||
|
||||
for path in data.split('\x00'):
|
||||
@@ -1012,12 +1016,12 @@ def getprop(name=None):
|
||||
with context.quiet:
|
||||
if name:
|
||||
result = process(['getprop', name]).recvall().strip()
|
||||
result = context._decode(result)
|
||||
result = _decode(result)
|
||||
return result
|
||||
|
||||
result = process(['getprop']).recvall()
|
||||
|
||||
result = context._decode(result)
|
||||
result = _decode(result)
|
||||
expr = r'\[([^\]]+)\]: \[(.*)\]'
|
||||
|
||||
props = {}
|
||||
@@ -1512,7 +1516,7 @@ class Partitions(object):
|
||||
return iter(names)
|
||||
|
||||
def __getattr__(self, attr):
|
||||
if attr.startswith("_"):
|
||||
if attr.startswith('_'):
|
||||
raise AttributeError(attr)
|
||||
|
||||
for name in self:
|
||||
@@ -1591,3 +1595,4 @@ def version():
|
||||
"""Returns rthe platform version as a tuple."""
|
||||
prop = getprop('ro.build.version.release')
|
||||
return [int(v) for v in prop.split('.')]
|
||||
|
||||
@@ -46,7 +46,7 @@ class BootImage(object):
|
||||
self.kernel = self.data[PAGE:PAGE+self.kernel_size]
|
||||
|
||||
def __getattr__(self, name):
|
||||
value = getattr(self.header, name, None)
|
||||
if value is not None:
|
||||
return value
|
||||
return getattr(super(BootImage, self), name)
|
||||
if name.startswith('_'):
|
||||
raise AttributeError(name)
|
||||
|
||||
return getattr(self.header, name)
|
||||
@@ -114,10 +114,11 @@ class BootloaderImage(object):
|
||||
return '\n'.join(rv)
|
||||
|
||||
def __getattr__(self, name):
|
||||
value = getattr(self.header, name, None)
|
||||
if value is not None:
|
||||
return value
|
||||
return getattr(super(BootImage, self), name)
|
||||
if name.startswith('_'):
|
||||
raise AttributeError(name)
|
||||
|
||||
return getattr(self.header, name)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# Easy sanity checking
|
||||
|
||||
@@ -62,6 +62,8 @@ from pwnlib.context import context
|
||||
|
||||
class PwnlibArgs(collections.defaultdict):
|
||||
def __getattr__(self, attr):
|
||||
if attr.startswith('_'):
|
||||
raise AttributeError(attr)
|
||||
return self[attr]
|
||||
|
||||
args = PwnlibArgs(str)
|
||||
|
||||
+61
-30
@@ -136,8 +136,23 @@ Try installing binutils for this architecture:
|
||||
%(instructions)s
|
||||
""".strip() % locals())
|
||||
|
||||
|
||||
def check_binutils_version(util):
|
||||
if util_versions[util]:
|
||||
return util_versions[util]
|
||||
result = subprocess.check_output([util, '--version','/dev/null'],
|
||||
stderr=subprocess.STDOUT, universal_newlines=True)
|
||||
if 'clang' in result:
|
||||
log.warn_once('Your binutils is clang-based and may not work!\n'
|
||||
'Try installing with: https://docs.pwntools.com/en/stable/install/binutils.html\n'
|
||||
'Reported version: %r', result.strip())
|
||||
version = re.search(r' (\d+\.\d+)', result).group(1)
|
||||
util_versions[util] = version = tuple(map(int, version.split('.')))
|
||||
return version
|
||||
|
||||
|
||||
@LocalContext
|
||||
def which_binutils(util):
|
||||
def which_binutils(util, check_version=False):
|
||||
"""
|
||||
Finds a binutils in the PATH somewhere.
|
||||
Expects that the utility is prefixed with the architecture name.
|
||||
@@ -198,21 +213,29 @@ def which_binutils(util):
|
||||
# e.g. aarch64-linux-gnu-objdump, avr-objdump
|
||||
else:
|
||||
patterns = ['%s*linux*-%s' % (arch, gutil),
|
||||
'%s*-elf-%s' % (arch, gutil),
|
||||
'%s-none*-%s' % (arch, gutil),
|
||||
'%s-%s' % (arch, gutil)]
|
||||
|
||||
for pattern in patterns:
|
||||
for dir in environ['PATH'].split(':'):
|
||||
res = sorted(glob(path.join(dir, pattern)))
|
||||
if res:
|
||||
return res[0]
|
||||
for res in sorted(glob(path.join(dir, pattern))):
|
||||
if check_version:
|
||||
ver = check_binutils_version(res)
|
||||
return res, ver
|
||||
return res
|
||||
|
||||
# No dice!
|
||||
print_binutils_instructions(util, context)
|
||||
|
||||
checked_assembler_version = defaultdict(lambda: False)
|
||||
util_versions = defaultdict(tuple)
|
||||
|
||||
def _assembler():
|
||||
gas = which_binutils('as')
|
||||
gas, version = which_binutils('as', check_version=True)
|
||||
if version < (2, 19):
|
||||
log.warn_once('Your binutils version is too old and may not work!\n'
|
||||
'Try updating with: https://docs.pwntools.com/en/stable/install/binutils.html\n'
|
||||
'Reported version: %r', version)
|
||||
|
||||
E = {
|
||||
'big': '-EB',
|
||||
@@ -244,21 +267,10 @@ def _assembler():
|
||||
|
||||
assembler = assemblers.get(context.arch, [gas])
|
||||
|
||||
if not checked_assembler_version[gas]:
|
||||
checked_assembler_version[gas] = True
|
||||
result = subprocess.check_output([gas, '--version','/dev/null'],
|
||||
stderr=subprocess.STDOUT, universal_newlines=True)
|
||||
version = re.search(r' (\d\.\d+)', result).group(1)
|
||||
if version < '2.19':
|
||||
log.warn_once('Your binutils version is too old and may not work!\n'
|
||||
'Try updating with: https://docs.pwntools.com/en/stable/install/binutils.html\n'
|
||||
'Reported Version: %r', result.strip())
|
||||
|
||||
|
||||
return assembler
|
||||
|
||||
def _linker():
|
||||
ld = [which_binutils('ld')]
|
||||
ld, _ = which_binutils('ld', check_version=True)
|
||||
bfd = ['--oformat=' + _bfdname()]
|
||||
|
||||
E = {
|
||||
@@ -270,7 +282,16 @@ def _linker():
|
||||
'i386': ['-m', 'elf_i386'],
|
||||
}.get(context.arch, [])
|
||||
|
||||
return ld + bfd + [E] + arguments
|
||||
return [ld] + bfd + [E] + arguments
|
||||
|
||||
|
||||
def _execstack(linker):
|
||||
ldflags = ['-z', 'execstack']
|
||||
version = util_versions[linker[0]]
|
||||
if version >= (2, 39):
|
||||
return ldflags + ['--no-warn-execstack', '--no-warn-rwx-segments']
|
||||
return ldflags
|
||||
|
||||
|
||||
def _objcopy():
|
||||
return [which_binutils('objcopy')]
|
||||
@@ -299,6 +320,7 @@ def _arch_header():
|
||||
prefix = ['.section .shellcode,"awx"',
|
||||
'.global _start',
|
||||
'.global __start',
|
||||
'.p2align 2',
|
||||
'_start:',
|
||||
'__start:']
|
||||
headers = {
|
||||
@@ -337,6 +359,7 @@ def _bfdname():
|
||||
'msp430' : 'elf32-msp430',
|
||||
'powerpc' : 'elf32-powerpc',
|
||||
'powerpc64' : 'elf64-powerpc',
|
||||
'riscv' : 'elf%d-%sriscv' % (context.bits, E),
|
||||
'vax' : 'elf32-vax',
|
||||
's390' : 'elf%d-s390' % context.bits,
|
||||
'sparc' : 'elf32-sparc',
|
||||
@@ -367,7 +390,7 @@ def _bfdarch():
|
||||
return arch
|
||||
|
||||
def _run(cmd, stdin = None):
|
||||
log.debug(subprocess.list2cmdline(cmd))
|
||||
log.debug('%s', subprocess.list2cmdline(cmd))
|
||||
try:
|
||||
proc = subprocess.Popen(
|
||||
cmd,
|
||||
@@ -380,17 +403,20 @@ def _run(cmd, stdin = None):
|
||||
exitcode = proc.wait()
|
||||
except OSError as e:
|
||||
if e.errno == errno.ENOENT:
|
||||
log.exception('Could not run %r the program' % cmd[0])
|
||||
log.exception('Could not run %r the program', cmd[0])
|
||||
else:
|
||||
raise
|
||||
|
||||
if (exitcode, stderr) != (0, ''):
|
||||
msg = 'There was an error running %s:\n' % repr(cmd)
|
||||
msg = 'There was an error running %r:\n'
|
||||
args = cmd,
|
||||
if exitcode != 0:
|
||||
msg += 'It had the exitcode %d.\n' % exitcode
|
||||
msg += 'It had the exitcode %d.\n'
|
||||
args += exitcode,
|
||||
if stderr != '':
|
||||
msg += 'It had this on stdout:\n%s\n' % stderr
|
||||
log.error(msg)
|
||||
msg += 'It had this on stdout:\n%s\n'
|
||||
args += stderr,
|
||||
log.error(msg, *args)
|
||||
|
||||
return stdout
|
||||
|
||||
@@ -584,7 +610,7 @@ def make_elf(data,
|
||||
|
||||
_run(assembler + ['-o', step2, step1])
|
||||
|
||||
linker_options = ['-z', 'execstack']
|
||||
linker_options = _execstack(linker)
|
||||
if vma is not None:
|
||||
linker_options += ['--section-start=.shellcode=%#x' % vma,
|
||||
'--entry=%#x' % vma]
|
||||
@@ -678,7 +704,7 @@ def asm(shellcode, vma = 0, extract = True, shared = False):
|
||||
shutil.copy(step2, step3)
|
||||
|
||||
if vma or not extract:
|
||||
ldflags = ['-z', 'execstack', '-o', step3, step2]
|
||||
ldflags = _execstack(linker) + ['-o', step3, step2]
|
||||
if vma:
|
||||
ldflags += ['--section-start=.shellcode=%#x' % vma,
|
||||
'--entry=%#x' % vma]
|
||||
@@ -760,7 +786,7 @@ def disasm(data, vma = 0, byte = True, offset = True, instructions = True):
|
||||
>>> print(disasm(unhex('4ff00500'), arch = 'thumb', bits=32))
|
||||
0: f04f 0005 mov.w r0, #5
|
||||
>>> print(disasm(unhex('656664676665400F18A4000000000051'), byte=0, arch='amd64'))
|
||||
0: gs data16 fs data16 rex nop/reserved BYTE PTR gs:[eax+eax*1+0x0]
|
||||
0: gs data16 fs rex nop WORD PTR gs:[eax+eax*1+0x0]
|
||||
f: push rcx
|
||||
>>> print(disasm(unhex('01000000'), arch='sparc64'))
|
||||
0: 01 00 00 00 nop
|
||||
@@ -768,6 +794,11 @@ def disasm(data, vma = 0, byte = True, offset = True, instructions = True):
|
||||
0: 60 00 00 00 nop
|
||||
>>> print(disasm(unhex('00000000'), arch='mips64'))
|
||||
0: 00000000 nop
|
||||
>>> print(disasm(unhex('48b84141414141414100c3'), arch='amd64'))
|
||||
0: 48 b8 41 41 41 41 41 41 41 00 movabs rax, 0x41414141414141
|
||||
a: c3 ret
|
||||
>>> print(disasm(unhex('00000000'), vma=0x80000000, arch='mips'))
|
||||
80000000: 00000000 nop
|
||||
"""
|
||||
result = ''
|
||||
|
||||
@@ -779,7 +810,7 @@ def disasm(data, vma = 0, byte = True, offset = True, instructions = True):
|
||||
|
||||
bfdarch = _bfdarch()
|
||||
bfdname = _bfdname()
|
||||
objdump = _objdump() + ['-d', '--adjust-vma', str(vma), '-b', bfdname]
|
||||
objdump = _objdump() + ['-w', '-d', '--adjust-vma', str(vma), '-b', bfdname]
|
||||
objcopy = _objcopy() + [
|
||||
'-I', 'binary',
|
||||
'-O', bfdname,
|
||||
@@ -804,7 +835,7 @@ def disasm(data, vma = 0, byte = True, offset = True, instructions = True):
|
||||
_run(objcopy + [step1, step2])
|
||||
|
||||
output0 = _run(objdump + [step2])
|
||||
output1 = output0.split('<.text>:\n')
|
||||
output1 = re.split(r'<\.text(?:\+0x0)?>:\n', output0, flags=re.MULTILINE)
|
||||
|
||||
if len(output1) != 2:
|
||||
log.error('Could not find .text in objdump output:\n%s' % output0)
|
||||
|
||||
@@ -5,7 +5,7 @@ from __future__ import division
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
import pwnlib
|
||||
import pwnlib.args
|
||||
pwnlib.args.free_form = False
|
||||
|
||||
from pwn import *
|
||||
|
||||
@@ -6,7 +6,7 @@ import argparse
|
||||
import functools
|
||||
import re
|
||||
|
||||
import pwnlib
|
||||
import pwnlib.args
|
||||
pwnlib.args.free_form = False
|
||||
|
||||
from pwn import *
|
||||
|
||||
@@ -7,7 +7,7 @@ import six
|
||||
import string
|
||||
import sys
|
||||
|
||||
import pwnlib
|
||||
import pwnlib.args
|
||||
pwnlib.args.free_form = False
|
||||
|
||||
from pwn import *
|
||||
@@ -23,7 +23,7 @@ parser.add_argument(
|
||||
'-a', '--alphabet',
|
||||
metavar = 'alphabet',
|
||||
default = string.ascii_lowercase.encode(),
|
||||
type = six.ensure_binary,
|
||||
type = packing._encode,
|
||||
help = 'The alphabet to use in the cyclic pattern (defaults to all lower case letters)',
|
||||
)
|
||||
|
||||
@@ -67,6 +67,9 @@ def main(args):
|
||||
if args.lookup:
|
||||
pat = args.lookup
|
||||
|
||||
if six.PY3:
|
||||
pat = bytes(pat, encoding='utf-8')
|
||||
|
||||
try:
|
||||
pat = int(pat, 0)
|
||||
except ValueError:
|
||||
|
||||
@@ -7,7 +7,7 @@ import argparse
|
||||
import string
|
||||
import sys
|
||||
|
||||
import pwnlib
|
||||
import pwnlib.args
|
||||
pwnlib.args.free_form = False
|
||||
|
||||
from pwn import *
|
||||
|
||||
@@ -8,7 +8,7 @@ from subprocess import CalledProcessError
|
||||
from subprocess import check_output
|
||||
from tempfile import NamedTemporaryFile
|
||||
|
||||
import pwnlib
|
||||
import pwnlib.args
|
||||
pwnlib.args.free_form = False
|
||||
|
||||
from pwn import *
|
||||
|
||||
@@ -4,7 +4,7 @@ from __future__ import division
|
||||
|
||||
import sys
|
||||
|
||||
import pwnlib
|
||||
import pwnlib.args
|
||||
pwnlib.args.free_form = False
|
||||
|
||||
from pwn import *
|
||||
|
||||
@@ -0,0 +1,247 @@
|
||||
#!/usr/bin/env python
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import re
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
import pwnlib.args
|
||||
pwnlib.args.free_form = False
|
||||
|
||||
from pwn import *
|
||||
from pwnlib.commandline import common
|
||||
|
||||
parser = common.parser_commands.add_parser(
|
||||
'libcdb',
|
||||
help = 'Print various information about a libc binary',
|
||||
description = 'Print various information about a libc binary'
|
||||
)
|
||||
|
||||
libc_commands = parser.add_subparsers(
|
||||
dest = 'libc_command'
|
||||
)
|
||||
|
||||
lookup_parser = libc_commands.add_parser(
|
||||
'lookup',
|
||||
help = 'Lookup a libc version by function offsets',
|
||||
description = 'Lookup a libc version by function offsets'
|
||||
)
|
||||
|
||||
lookup_parser.add_argument(
|
||||
'symbol_offset_pairs',
|
||||
metavar = 'symbol_offset_pairs',
|
||||
nargs = '+',
|
||||
help = 'Symbol and offset pairs to lookup matching libc version. Can be any number of pairs to narrow the search. Example: "read 3e0 write 520"'
|
||||
)
|
||||
|
||||
lookup_parser.add_argument(
|
||||
'--download-libc',
|
||||
action = 'store_true',
|
||||
default = False,
|
||||
help = 'Attempt to download the matching libc.so'
|
||||
)
|
||||
|
||||
lookup_parser.add_argument(
|
||||
'--unstrip',
|
||||
action = 'store_true',
|
||||
default = True,
|
||||
help = 'Attempt to unstrip the libc binary with debug symbols from a debuginfod server'
|
||||
)
|
||||
|
||||
lookup_parser.add_argument(
|
||||
'--no-unstrip',
|
||||
action = 'store_false',
|
||||
dest = 'unstrip',
|
||||
help = 'Do NOT attempt to unstrip the libc binary with debug symbols from a debuginfod server'
|
||||
)
|
||||
|
||||
hash_parser = libc_commands.add_parser(
|
||||
'hash',
|
||||
help = 'Display information of a libc version given an unique hash',
|
||||
description = 'Display information of a libc version given an unique hash'
|
||||
)
|
||||
|
||||
hash_parser.add_argument(
|
||||
'hash_value',
|
||||
metavar = 'hash_value',
|
||||
nargs = '+',
|
||||
help = 'Hex encoded hash value'
|
||||
)
|
||||
|
||||
hash_parser.add_argument(
|
||||
'-t', '--hash_type',
|
||||
nargs = '?',
|
||||
type = str,
|
||||
choices = ['id', 'buildid', 'md5', 'sha1', 'sha256'],
|
||||
default = 'buildid',
|
||||
help = 'The type of the provided hash value. Supported hashtypes: id, buildid, md5, sha1, sha256'
|
||||
)
|
||||
|
||||
hash_parser.add_argument(
|
||||
'--download-libc',
|
||||
action = 'store_true',
|
||||
default = False,
|
||||
help = 'Attempt to download the matching libc.so'
|
||||
)
|
||||
|
||||
hash_parser.add_argument(
|
||||
'--unstrip',
|
||||
action = 'store_true',
|
||||
default = True,
|
||||
help = 'Attempt to unstrip the libc binary with debug symbols from a debuginfod server'
|
||||
)
|
||||
|
||||
hash_parser.add_argument(
|
||||
'--no-unstrip',
|
||||
action = 'store_false',
|
||||
dest = 'unstrip',
|
||||
help = 'Do NOT attempt to unstrip the libc binary with debug symbols from a debuginfod server'
|
||||
)
|
||||
|
||||
file_parser = libc_commands.add_parser(
|
||||
'file',
|
||||
help = 'Dump information about a libc binary',
|
||||
description = 'Dump information about a libc binary'
|
||||
)
|
||||
|
||||
file_parser.add_argument(
|
||||
'files',
|
||||
metavar = 'files',
|
||||
nargs = '+',
|
||||
help = 'Libc binary to dump'
|
||||
)
|
||||
|
||||
file_parser.add_argument(
|
||||
'-s', '--symbols',
|
||||
metavar = 'symbols',
|
||||
nargs = '*',
|
||||
help = 'List of symbol offsets to dump in addition to the common ones'
|
||||
)
|
||||
|
||||
file_parser.add_argument(
|
||||
'-o', '--offset',
|
||||
metavar = 'offset',
|
||||
type = str,
|
||||
help = 'Display all offsets relative to this symbol'
|
||||
)
|
||||
|
||||
file_parser.add_argument(
|
||||
'--unstrip',
|
||||
action = 'store_true',
|
||||
default = False,
|
||||
help = 'Attempt to unstrip the libc binary inplace with debug symbols from a debuginfod server'
|
||||
)
|
||||
|
||||
common_symbols = ['dup2', 'printf', 'puts', 'read', 'system', 'write']
|
||||
|
||||
def find_libc(params):
|
||||
import requests
|
||||
url = "https://libc.rip/api/find"
|
||||
result = requests.post(url, json=params, timeout=20)
|
||||
log.debug('Request: %s', params)
|
||||
log.debug('Result: %s', result.json())
|
||||
if result.status_code != 200 or len(result.json()) == 0:
|
||||
log.failure("Could not find libc for %s on libc.rip", params)
|
||||
return []
|
||||
|
||||
return result.json()
|
||||
|
||||
def print_libc(libc):
|
||||
log.info('%s', text.red(libc['id']))
|
||||
log.indented('\t%-20s %s', text.green('BuildID:'), libc['buildid'])
|
||||
log.indented('\t%-20s %s', text.green('MD5:'), libc['md5'])
|
||||
log.indented('\t%-20s %s', text.green('SHA1:'), libc['sha1'])
|
||||
log.indented('\t%-20s %s', text.green('SHA256:'), libc['sha256'])
|
||||
log.indented('\t%s', text.green('Symbols:'))
|
||||
for symbol in libc['symbols'].items():
|
||||
log.indented('\t%25s = %s', symbol[0], symbol[1])
|
||||
|
||||
def handle_remote_libc(args, libc):
|
||||
print_libc(libc)
|
||||
if args.download_libc:
|
||||
path = libcdb.search_by_build_id(libc['buildid'], args.unstrip)
|
||||
if path:
|
||||
if args.unstrip:
|
||||
libcdb.unstrip_libc(path)
|
||||
shutil.copy(path, './{}.so'.format(libc['id']))
|
||||
|
||||
def translate_offset(offs, args, exe):
|
||||
if args.offset:
|
||||
if args.offset not in exe.symbols:
|
||||
log.info_once('offset symbol %s not found. ignoring.', args.offset)
|
||||
return offs
|
||||
return offs - exe.symbols[args.offset]
|
||||
return offs
|
||||
|
||||
def collect_synthetic_symbols(exe):
|
||||
available_symbols = ['str_bin_sh']
|
||||
exe.symbols['str_bin_sh'] = next(exe.search(b'/bin/sh\x00'))
|
||||
|
||||
libc_start_main_return = exe.libc_start_main_return
|
||||
if libc_start_main_return > 0:
|
||||
exe.symbols['__libc_start_main_ret'] = libc_start_main_return
|
||||
available_symbols.append('__libc_start_main_ret')
|
||||
|
||||
return available_symbols
|
||||
|
||||
def main(args):
|
||||
if len(sys.argv) < 3:
|
||||
parser.print_usage()
|
||||
sys.exit()
|
||||
|
||||
if args.libc_command == 'lookup':
|
||||
pairs = args.symbol_offset_pairs
|
||||
if len(pairs) % 2 != 0:
|
||||
log.failure('Uneven number of arguments. Please provide "symbol offset" pairs')
|
||||
return
|
||||
|
||||
symbols = {pairs[i]:pairs[i+1] for i in range(0, len(pairs), 2)}
|
||||
matched_libcs = find_libc({'symbols': symbols})
|
||||
for libc in matched_libcs:
|
||||
handle_remote_libc(args, libc)
|
||||
|
||||
elif args.libc_command == 'hash':
|
||||
for hash_value in args.hash_value:
|
||||
matched_libcs = find_libc({args.hash_type: hash_value})
|
||||
for libc in matched_libcs:
|
||||
handle_remote_libc(args, libc)
|
||||
|
||||
elif args.libc_command == 'file':
|
||||
from hashlib import md5, sha1, sha256
|
||||
for file in args.files:
|
||||
if not os.path.exists(file) or not os.path.isfile(file):
|
||||
log.failure('File does not exist %s', args.file)
|
||||
continue
|
||||
|
||||
if args.unstrip:
|
||||
libcdb.unstrip_libc(file)
|
||||
|
||||
exe = ELF(file, checksec=False)
|
||||
log.info('%s', text.red(os.path.basename(file)))
|
||||
|
||||
libc_version = re.search(b'libc[ -](\d+\.\d+)', exe.data)
|
||||
if libc_version:
|
||||
log.indented('%-20s %s', text.green('Version:'), libc_version.group(1).decode())
|
||||
|
||||
if exe.buildid:
|
||||
log.indented('%-20s %s', text.green('BuildID:'), enhex(exe.buildid))
|
||||
log.indented('%-20s %s', text.green('MD5:'), md5(exe.data).hexdigest())
|
||||
log.indented('%-20s %s', text.green('SHA1:'), sha1(exe.data).hexdigest())
|
||||
log.indented('%-20s %s', text.green('SHA256:'), sha256(exe.data).hexdigest())
|
||||
|
||||
# Always dump the basic list of common symbols
|
||||
log.indented('%s', text.green('Symbols:'))
|
||||
synthetic_symbols = collect_synthetic_symbols(exe)
|
||||
|
||||
symbols = common_symbols + (args.symbols or []) + synthetic_symbols
|
||||
symbols.sort()
|
||||
for symbol in symbols:
|
||||
if symbol not in exe.symbols:
|
||||
log.indented('%25s = %s', symbol, text.red('not found'))
|
||||
else:
|
||||
log.indented('%25s = %#x', symbol, translate_offset(exe.symbols[symbol], args, exe))
|
||||
|
||||
if __name__ == '__main__':
|
||||
pwnlib.commandline.common.main(__file__)
|
||||
@@ -14,6 +14,7 @@ from pwnlib.commandline import elfdiff
|
||||
from pwnlib.commandline import elfpatch
|
||||
from pwnlib.commandline import errno
|
||||
from pwnlib.commandline import hex
|
||||
from pwnlib.commandline import libcdb
|
||||
from pwnlib.commandline import phd
|
||||
from pwnlib.commandline import pwnstrip
|
||||
from pwnlib.commandline import scramble
|
||||
@@ -37,6 +38,7 @@ commands = {
|
||||
'elfpatch': elfpatch.main,
|
||||
'errno': errno.main,
|
||||
'hex': hex.main,
|
||||
'libcdb': libcdb.main,
|
||||
'phd': phd.main,
|
||||
'pwnstrip': pwnstrip.main,
|
||||
'scramble': scramble.main,
|
||||
|
||||
@@ -4,10 +4,11 @@ from __future__ import division
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import signal
|
||||
import sys
|
||||
import io
|
||||
|
||||
import pwnlib
|
||||
import pwnlib.args
|
||||
pwnlib.args.free_form = False
|
||||
|
||||
from pwn import *
|
||||
@@ -100,6 +101,8 @@ def main(args):
|
||||
for h in hs.split(','):
|
||||
hl.append(asint(h))
|
||||
|
||||
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
|
||||
|
||||
try:
|
||||
for line in hexdump_iter(infile, width, highlight = hl, begin = offset + skip):
|
||||
print(line)
|
||||
|
||||
@@ -3,7 +3,7 @@ from __future__ import division
|
||||
|
||||
import argparse
|
||||
|
||||
import pwnlib
|
||||
import pwnlib.args
|
||||
pwnlib.args.free_form = False
|
||||
|
||||
from pwn import *
|
||||
|
||||
@@ -4,7 +4,7 @@ from __future__ import division
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
import pwnlib
|
||||
import pwnlib.args
|
||||
pwnlib.args.free_form = False
|
||||
|
||||
from pwn import *
|
||||
|
||||
@@ -8,7 +8,7 @@ import six
|
||||
import sys
|
||||
import types
|
||||
|
||||
import pwnlib
|
||||
import pwnlib.args
|
||||
pwnlib.args.free_form = False
|
||||
|
||||
from pwn import *
|
||||
|
||||
Regular → Executable
+4
-11
@@ -2,8 +2,6 @@
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
|
||||
import re
|
||||
|
||||
from pwn import *
|
||||
from pwnlib.commandline import common
|
||||
|
||||
@@ -25,14 +23,9 @@ parser.add_argument('--quiet', help='Less verbose template comments', action='st
|
||||
parser.add_argument('--color', help='Print the output in color', choices=['never', 'always', 'auto'], default='auto')
|
||||
|
||||
def main(args):
|
||||
cache = None
|
||||
|
||||
if cache:
|
||||
cache = os.path.join(context.cache_dir, 'mako')
|
||||
|
||||
lookup = TemplateLookup(
|
||||
directories = [os.path.join(pwnlib.data.path, 'templates')],
|
||||
module_directory = cache
|
||||
module_directory = None
|
||||
)
|
||||
|
||||
# For the SSH scenario, check that the binary is at the
|
||||
@@ -44,10 +37,10 @@ def main(args):
|
||||
s = ssh(args.user, args.host, args.port or 22, args.password or None)
|
||||
|
||||
try:
|
||||
remote = args.path or args.exe
|
||||
s.download(remote)
|
||||
remote_file = args.path or args.exe
|
||||
s.download(remote_file)
|
||||
except Exception:
|
||||
log.warning("Could not download file %r, opening a shell", remote)
|
||||
log.warning("Could not download file %r, opening a shell", remote_file)
|
||||
s.interactive()
|
||||
return
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ def main(args):
|
||||
o.write(unhex(''.join(args.hex)))
|
||||
except TypeError as e:
|
||||
sys.stderr.write(str(e) + '\n')
|
||||
raise
|
||||
|
||||
if __name__ == '__main__':
|
||||
common.main(__file__)
|
||||
@@ -4,7 +4,7 @@ from __future__ import division
|
||||
|
||||
import subprocess
|
||||
|
||||
import pwnlib
|
||||
import pwnlib.args
|
||||
pwnlib.args.free_form = False
|
||||
|
||||
from pwn import *
|
||||
|
||||
@@ -5,7 +5,7 @@ from __future__ import division
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
import pwnlib
|
||||
import pwnlib.args
|
||||
pwnlib.args.free_form = False
|
||||
|
||||
from pwn import *
|
||||
|
||||
+3
-3
@@ -55,8 +55,8 @@ def initialize():
|
||||
from pwnlib.log import getLogger
|
||||
log = getLogger(__name__)
|
||||
|
||||
xdg_config_home = (os.environ.get('XDG_CONFIG_HOME') or
|
||||
os.path.expanduser("~/.config"))
|
||||
xdg_config_home = os.environ.get('XDG_CONFIG_HOME',
|
||||
os.path.expanduser("~/.config"))
|
||||
|
||||
c = configparser.ConfigParser()
|
||||
c.read(['/etc/pwn.conf',
|
||||
@@ -65,7 +65,7 @@ def initialize():
|
||||
|
||||
for section in c.sections():
|
||||
if section not in registered_configs:
|
||||
log.warn("Unknown configuration section %r" % section)
|
||||
log.warn("Unknown configuration section %r", section)
|
||||
continue
|
||||
settings = dict(c.items(section))
|
||||
registered_configs[section](settings)
|
||||
@@ -1,4 +1,9 @@
|
||||
class Constant(int):
|
||||
try:
|
||||
base = long # workaround for py2
|
||||
except NameError:
|
||||
base = int
|
||||
|
||||
class Constant(base):
|
||||
def __new__(cls, s, i):
|
||||
obj = super(Constant, cls).__new__(cls, i)
|
||||
obj.s = s
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from pwnlib.constants.constant import Constant
|
||||
|
||||
STDIN_FILENO = Constant('STDIN_FILENO',0)
|
||||
STDOUT_FILENO = Constant('STDOUT_FILENO',1)
|
||||
STDERR_FILENO = Constant('STDERR_FILENO',2)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from pwnlib.constants.constant import Constant
|
||||
_AARCH64_SYSCALL_H = Constant('_AARCH64_SYSCALL_H',1)
|
||||
__NR_io_setup = Constant('__NR_io_setup',0)
|
||||
__NR_io_destroy = Constant('__NR_io_destroy',1)
|
||||
__NR_io_submit = Constant('__NR_io_submit',2)
|
||||
@@ -78,12 +79,13 @@ __NR_vmsplice = Constant('__NR_vmsplice',75)
|
||||
__NR_splice = Constant('__NR_splice',76)
|
||||
__NR_tee = Constant('__NR_tee',77)
|
||||
__NR_readlinkat = Constant('__NR_readlinkat',78)
|
||||
__NR_fstatat64 = Constant('__NR_fstatat64',79)
|
||||
__NR_fstatat = Constant('__NR_fstatat',79)
|
||||
__NR_newfstatat = Constant('__NR_newfstatat',79)
|
||||
__NR_fstat = Constant('__NR_fstat',80)
|
||||
__NR_sync = Constant('__NR_sync',81)
|
||||
__NR_fsync = Constant('__NR_fsync',82)
|
||||
__NR_fdatasync = Constant('__NR_fdatasync',83)
|
||||
__NR_sync_file_range2 = Constant('__NR_sync_file_range2',84)
|
||||
__NR_sync_file_range = Constant('__NR_sync_file_range',84)
|
||||
__NR_timerfd_create = Constant('__NR_timerfd_create',85)
|
||||
__NR_timerfd_settime = Constant('__NR_timerfd_settime',86)
|
||||
__NR_timerfd_gettime = Constant('__NR_timerfd_gettime',87)
|
||||
@@ -258,6 +260,39 @@ __NR_process_vm_readv = Constant('__NR_process_vm_readv',270)
|
||||
__NR_process_vm_writev = Constant('__NR_process_vm_writev',271)
|
||||
__NR_kcmp = Constant('__NR_kcmp',272)
|
||||
__NR_finit_module = Constant('__NR_finit_module',273)
|
||||
__NR_sched_setattr = Constant('__NR_sched_setattr',274)
|
||||
__NR_sched_getattr = Constant('__NR_sched_getattr',275)
|
||||
__NR_renameat2 = Constant('__NR_renameat2',276)
|
||||
__NR_seccomp = Constant('__NR_seccomp',277)
|
||||
__NR_getrandom = Constant('__NR_getrandom',278)
|
||||
__NR_memfd_create = Constant('__NR_memfd_create',279)
|
||||
__NR_bpf = Constant('__NR_bpf',280)
|
||||
__NR_execveat = Constant('__NR_execveat',281)
|
||||
__NR_userfaultfd = Constant('__NR_userfaultfd',282)
|
||||
__NR_membarrier = Constant('__NR_membarrier',283)
|
||||
__NR_mlock2 = Constant('__NR_mlock2',284)
|
||||
__NR_copy_file_range = Constant('__NR_copy_file_range',285)
|
||||
__NR_preadv2 = Constant('__NR_preadv2',286)
|
||||
__NR_pwritev2 = Constant('__NR_pwritev2',287)
|
||||
__NR_pkey_mprotect = Constant('__NR_pkey_mprotect',288)
|
||||
__NR_pkey_alloc = Constant('__NR_pkey_alloc',289)
|
||||
__NR_pkey_free = Constant('__NR_pkey_free',290)
|
||||
__NR_statx = Constant('__NR_statx',291)
|
||||
__NR_io_pgetevents = Constant('__NR_io_pgetevents',292)
|
||||
__NR_rseq = Constant('__NR_rseq',293)
|
||||
__NR_kexec_file_load = Constant('__NR_kexec_file_load',294)
|
||||
__NR_pidfd_send_signal = Constant('__NR_pidfd_send_signal',424)
|
||||
__NR_io_uring_setup = Constant('__NR_io_uring_setup',425)
|
||||
__NR_io_uring_enter = Constant('__NR_io_uring_enter',426)
|
||||
__NR_io_uring_register = Constant('__NR_io_uring_register',427)
|
||||
__NR_open_tree = Constant('__NR_open_tree',428)
|
||||
__NR_move_mount = Constant('__NR_move_mount',429)
|
||||
__NR_fsopen = Constant('__NR_fsopen',430)
|
||||
__NR_fsconfig = Constant('__NR_fsconfig',431)
|
||||
__NR_fsmount = Constant('__NR_fsmount',432)
|
||||
__NR_fspick = Constant('__NR_fspick',433)
|
||||
__NR_pidfd_open = Constant('__NR_pidfd_open',434)
|
||||
__NR_clone3 = Constant('__NR_clone3',435)
|
||||
MAP_32BIT = Constant('MAP_32BIT',0x40)
|
||||
INADDR_ANY = Constant('INADDR_ANY',0)
|
||||
INADDR_BROADCAST = Constant('INADDR_BROADCAST',0xffffffff)
|
||||
@@ -393,18 +428,71 @@ ENOKEY = Constant('ENOKEY',126)
|
||||
EKEYEXPIRED = Constant('EKEYEXPIRED',127)
|
||||
EKEYREVOKED = Constant('EKEYREVOKED',128)
|
||||
EKEYREJECTED = Constant('EKEYREJECTED',129)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((129) + 1))
|
||||
EOWNERDEAD = Constant('EOWNERDEAD',130)
|
||||
ENOTRECOVERABLE = Constant('ENOTRECOVERABLE',131)
|
||||
ERFKILL = Constant('ERFKILL',132)
|
||||
EHWPOISON = Constant('EHWPOISON',133)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((133) + 1))
|
||||
__LITTLE_ENDIAN = Constant('__LITTLE_ENDIAN',1234)
|
||||
__BIG_ENDIAN = Constant('__BIG_ENDIAN',4321)
|
||||
__BYTE_ORDER = Constant('__BYTE_ORDER',1234)
|
||||
__FLOAT_WORD_ORDER = Constant('__FLOAT_WORD_ORDER',1234)
|
||||
__BYTE_ORDER = Constant('__BYTE_ORDER',1234)
|
||||
__FLOAT_WORD_ORDER = Constant('__FLOAT_WORD_ORDER',1234)
|
||||
LITTLE_ENDIAN = Constant('LITTLE_ENDIAN',1234)
|
||||
BIG_ENDIAN = Constant('BIG_ENDIAN',4321)
|
||||
BYTE_ORDER = Constant('BYTE_ORDER',1234)
|
||||
__WORDSIZE = Constant('__WORDSIZE',32)
|
||||
__WORDSIZE = Constant('__WORDSIZE',64)
|
||||
__WORDSIZE_COMPAT32 = Constant('__WORDSIZE_COMPAT32',1)
|
||||
INT8_MAX = Constant('INT8_MAX',(127))
|
||||
INT16_MAX = Constant('INT16_MAX',(32767))
|
||||
INT32_MAX = Constant('INT32_MAX',(2147483647))
|
||||
INT64_MAX = Constant('INT64_MAX',(9223372036854775807))
|
||||
INT8_MIN = Constant('INT8_MIN',(-1 - (127)))
|
||||
INT16_MIN = Constant('INT16_MIN',(-1 - (32767)))
|
||||
INT32_MIN = Constant('INT32_MIN',(-1 - (2147483647)))
|
||||
INT64_MIN = Constant('INT64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_LEAST8_MAX = Constant('INT_LEAST8_MAX',(127))
|
||||
INT_LEAST8_MIN = Constant('INT_LEAST8_MIN',(-1 - (127)))
|
||||
INT_LEAST16_MAX = Constant('INT_LEAST16_MAX',(32767))
|
||||
INT_LEAST16_MIN = Constant('INT_LEAST16_MIN',(-1 - (32767)))
|
||||
INT_LEAST32_MAX = Constant('INT_LEAST32_MAX',(2147483647))
|
||||
INT_LEAST32_MIN = Constant('INT_LEAST32_MIN',(-1 - (2147483647)))
|
||||
INT_LEAST64_MAX = Constant('INT_LEAST64_MAX',(9223372036854775807))
|
||||
INT_LEAST64_MIN = Constant('INT_LEAST64_MIN',(-1 - (9223372036854775807)))
|
||||
UINT8_MAX = Constant('UINT8_MAX',0xff)
|
||||
UINT16_MAX = Constant('UINT16_MAX',0xffff)
|
||||
UINT32_MAX = Constant('UINT32_MAX',0xffffffff)
|
||||
UINT64_MAX = Constant('UINT64_MAX',0xffffffffffffffff)
|
||||
UINT_LEAST8_MAX = Constant('UINT_LEAST8_MAX',0xff)
|
||||
UINT_LEAST16_MAX = Constant('UINT_LEAST16_MAX',0xffff)
|
||||
UINT_LEAST32_MAX = Constant('UINT_LEAST32_MAX',0xffffffff)
|
||||
UINT_LEAST64_MAX = Constant('UINT_LEAST64_MAX',0xffffffffffffffff)
|
||||
INTPTR_MIN = Constant('INTPTR_MIN',(-1 - (9223372036854775807)))
|
||||
INTPTR_MAX = Constant('INTPTR_MAX',(9223372036854775807))
|
||||
UINTPTR_MAX = Constant('UINTPTR_MAX',0xffffffffffffffff)
|
||||
SIZE_MAX = Constant('SIZE_MAX',0xffffffffffffffff)
|
||||
PTRDIFF_MIN = Constant('PTRDIFF_MIN',(-1 - (9223372036854775807)))
|
||||
PTRDIFF_MAX = Constant('PTRDIFF_MAX',(9223372036854775807))
|
||||
INTMAX_MIN = Constant('INTMAX_MIN',(-1 - (9223372036854775807)))
|
||||
INTMAX_MAX = Constant('INTMAX_MAX',(9223372036854775807))
|
||||
UINTMAX_MAX = Constant('UINTMAX_MAX',0xffffffffffffffff)
|
||||
INT_FAST8_MIN = Constant('INT_FAST8_MIN',(-1 - (127)))
|
||||
INT_FAST8_MAX = Constant('INT_FAST8_MAX',(127))
|
||||
INT_FAST64_MIN = Constant('INT_FAST64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST64_MAX = Constant('INT_FAST64_MAX',(9223372036854775807))
|
||||
UINT_FAST8_MAX = Constant('UINT_FAST8_MAX',0xff)
|
||||
UINT_FAST64_MAX = Constant('UINT_FAST64_MAX',0xffffffffffffffff)
|
||||
INT_FAST16_MIN = Constant('INT_FAST16_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST16_MAX = Constant('INT_FAST16_MAX',(9223372036854775807))
|
||||
UINT_FAST16_MAX = Constant('UINT_FAST16_MAX',0xffffffffffffffff)
|
||||
INT_FAST32_MIN = Constant('INT_FAST32_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST32_MAX = Constant('INT_FAST32_MAX',(9223372036854775807))
|
||||
UINT_FAST32_MAX = Constant('UINT_FAST32_MAX',0xffffffffffffffff)
|
||||
WINT_MIN = Constant('WINT_MIN',0)
|
||||
__FSUID_H = Constant('__FSUID_H',1)
|
||||
NSIG = Constant('NSIG',32)
|
||||
_NSIG = Constant('_NSIG',64)
|
||||
_NSIG = Constant('_NSIG',65)
|
||||
SIGHUP = Constant('SIGHUP',1)
|
||||
SIGINT = Constant('SIGINT',2)
|
||||
SIGQUIT = Constant('SIGQUIT',3)
|
||||
@@ -442,7 +530,7 @@ SIGCLD = Constant('SIGCLD',17)
|
||||
SIGPOLL = Constant('SIGPOLL',29)
|
||||
SIGLOST = Constant('SIGLOST',30)
|
||||
SIGRTMIN = Constant('SIGRTMIN',32)
|
||||
SIGRTMAX = Constant('SIGRTMAX',(64-1))
|
||||
SIGRTMAX = Constant('SIGRTMAX',(65-1))
|
||||
SA_NOCLDSTOP = Constant('SA_NOCLDSTOP',0x00000001)
|
||||
SA_NOCLDWAIT = Constant('SA_NOCLDWAIT',0x00000002)
|
||||
SA_SIGINFO = Constant('SA_SIGINFO',0x00000004)
|
||||
@@ -492,6 +580,8 @@ _SC_PAGESIZE = Constant('_SC_PAGESIZE',5)
|
||||
_SC_NPROCESSORS_ONLN = Constant('_SC_NPROCESSORS_ONLN',6)
|
||||
_SC_NPROCESSORS_CONF = Constant('_SC_NPROCESSORS_CONF',6)
|
||||
_SC_PHYS_PAGES = Constant('_SC_PHYS_PAGES',7)
|
||||
_SC_GETPW_R_SIZE_MAX = Constant('_SC_GETPW_R_SIZE_MAX',8)
|
||||
_SC_GETGR_R_SIZE_MAX = Constant('_SC_GETGR_R_SIZE_MAX',9)
|
||||
_PC_PATH_MAX = Constant('_PC_PATH_MAX',1)
|
||||
_PC_VDISABLE = Constant('_PC_VDISABLE',2)
|
||||
L_cuserid = Constant('L_cuserid',17)
|
||||
@@ -500,6 +590,7 @@ F_ULOCK = Constant('F_ULOCK',0)
|
||||
F_LOCK = Constant('F_LOCK',1)
|
||||
F_TLOCK = Constant('F_TLOCK',2)
|
||||
F_TEST = Constant('F_TEST',3)
|
||||
_POSIX_MAPPED_FILES = Constant('_POSIX_MAPPED_FILES',200809)
|
||||
STAT64_HAS_BROKEN_ST_INO = Constant('STAT64_HAS_BROKEN_ST_INO',1)
|
||||
S_IFMT = Constant('S_IFMT',0o0170000)
|
||||
S_IFSOCK = Constant('S_IFSOCK',0o140000)
|
||||
@@ -527,84 +618,7 @@ S_IXOTH = Constant('S_IXOTH',0o0001)
|
||||
S_IREAD = Constant('S_IREAD',0o0400)
|
||||
S_IWRITE = Constant('S_IWRITE',0o0200)
|
||||
S_IEXEC = Constant('S_IEXEC',0o0100)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
O_ACCMODE = Constant('O_ACCMODE',0o003)
|
||||
O_RDONLY = Constant('O_RDONLY',0o0)
|
||||
O_WRONLY = Constant('O_WRONLY',0o1)
|
||||
O_RDWR = Constant('O_RDWR',0o2)
|
||||
O_CREAT = Constant('O_CREAT',0o100)
|
||||
O_EXCL = Constant('O_EXCL',0o200)
|
||||
O_NOCTTY = Constant('O_NOCTTY',0o400)
|
||||
O_TRUNC = Constant('O_TRUNC',0o1000)
|
||||
O_APPEND = Constant('O_APPEND',0o2000)
|
||||
O_NONBLOCK = Constant('O_NONBLOCK',0o4000)
|
||||
O_NDELAY = Constant('O_NDELAY',0o4000)
|
||||
O_SYNC = Constant('O_SYNC',0o10000)
|
||||
FASYNC = Constant('FASYNC',0o20000)
|
||||
O_DIRECTORY = Constant('O_DIRECTORY',0o40000)
|
||||
O_NOFOLLOW = Constant('O_NOFOLLOW',0o100000)
|
||||
O_DIRECT = Constant('O_DIRECT',0o200000)
|
||||
O_LARGEFILE = Constant('O_LARGEFILE',0o400000)
|
||||
O_NOATIME = Constant('O_NOATIME',0o1000000)
|
||||
F_DUPFD = Constant('F_DUPFD',0)
|
||||
F_GETFD = Constant('F_GETFD',1)
|
||||
F_SETFD = Constant('F_SETFD',2)
|
||||
F_GETFL = Constant('F_GETFL',3)
|
||||
F_SETFL = Constant('F_SETFL',4)
|
||||
F_GETLK = Constant('F_GETLK',5)
|
||||
F_SETLK = Constant('F_SETLK',6)
|
||||
F_SETLKW = Constant('F_SETLKW',7)
|
||||
F_SETOWN = Constant('F_SETOWN',8)
|
||||
F_GETOWN = Constant('F_GETOWN',9)
|
||||
F_SETSIG = Constant('F_SETSIG',10)
|
||||
F_GETSIG = Constant('F_GETSIG',11)
|
||||
F_GETLK64 = Constant('F_GETLK64',12)
|
||||
F_SETLK64 = Constant('F_SETLK64',13)
|
||||
F_SETLKW64 = Constant('F_SETLKW64',14)
|
||||
FD_CLOEXEC = Constant('FD_CLOEXEC',1)
|
||||
F_RDLCK = Constant('F_RDLCK',0)
|
||||
F_WRLCK = Constant('F_WRLCK',1)
|
||||
F_UNLCK = Constant('F_UNLCK',2)
|
||||
F_EXLCK = Constant('F_EXLCK',4)
|
||||
F_SHLCK = Constant('F_SHLCK',8)
|
||||
F_INPROGRESS = Constant('F_INPROGRESS',16)
|
||||
LOCK_SH = Constant('LOCK_SH',1)
|
||||
LOCK_EX = Constant('LOCK_EX',2)
|
||||
LOCK_NB = Constant('LOCK_NB',4)
|
||||
LOCK_UN = Constant('LOCK_UN',8)
|
||||
LOCK_MAND = Constant('LOCK_MAND',32)
|
||||
LOCK_READ = Constant('LOCK_READ',64)
|
||||
LOCK_WRITE = Constant('LOCK_WRITE',128)
|
||||
LOCK_RW = Constant('LOCK_RW',192)
|
||||
O_ASYNC = Constant('O_ASYNC',0o20000)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_FIXED = Constant('MAP_FIXED',0x10)
|
||||
MAP_ANONYMOUS = Constant('MAP_ANONYMOUS',0x20)
|
||||
MAP_GROWSDOWN = Constant('MAP_GROWSDOWN',0x0100)
|
||||
MAP_DENYWRITE = Constant('MAP_DENYWRITE',0x0800)
|
||||
MAP_EXECUTABLE = Constant('MAP_EXECUTABLE',0x1000)
|
||||
MAP_LOCKED = Constant('MAP_LOCKED',0x2000)
|
||||
MAP_NORESERVE = Constant('MAP_NORESERVE',0x4000)
|
||||
MAP_POPULATE = Constant('MAP_POPULATE',0x8000)
|
||||
MS_ASYNC = Constant('MS_ASYNC',1)
|
||||
MS_INVALIDATE = Constant('MS_INVALIDATE',2)
|
||||
MS_SYNC = Constant('MS_SYNC',4)
|
||||
MCL_CURRENT = Constant('MCL_CURRENT',1)
|
||||
MCL_FUTURE = Constant('MCL_FUTURE',2)
|
||||
MADV_NORMAL = Constant('MADV_NORMAL',0x0)
|
||||
MADV_RANDOM = Constant('MADV_RANDOM',0x1)
|
||||
MADV_SEQUENTIAL = Constant('MADV_SEQUENTIAL',0x2)
|
||||
MADV_WILLNEED = Constant('MADV_WILLNEED',0x3)
|
||||
MADV_DONTNEED = Constant('MADV_DONTNEED',0x4)
|
||||
MAP_ANON = Constant('MAP_ANON',0x20)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
_SYS_UIO = Constant('_SYS_UIO',1)
|
||||
SOL_SOCKET = Constant('SOL_SOCKET',1)
|
||||
SO_DEBUG = Constant('SO_DEBUG',1)
|
||||
SO_REUSEADDR = Constant('SO_REUSEADDR',2)
|
||||
@@ -620,29 +634,64 @@ SO_NO_CHECK = Constant('SO_NO_CHECK',11)
|
||||
SO_PRIORITY = Constant('SO_PRIORITY',12)
|
||||
SO_LINGER = Constant('SO_LINGER',13)
|
||||
SO_BSDCOMPAT = Constant('SO_BSDCOMPAT',14)
|
||||
SO_REUSEPORT = Constant('SO_REUSEPORT',15)
|
||||
SO_PASSCRED = Constant('SO_PASSCRED',16)
|
||||
SO_PEERCRED = Constant('SO_PEERCRED',17)
|
||||
SO_RCVLOWAT = Constant('SO_RCVLOWAT',18)
|
||||
SO_SNDLOWAT = Constant('SO_SNDLOWAT',19)
|
||||
SO_RCVTIMEO = Constant('SO_RCVTIMEO',20)
|
||||
SO_SNDTIMEO = Constant('SO_SNDTIMEO',21)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_SECURITY_AUTHENTICATION = Constant('SO_SECURITY_AUTHENTICATION',22)
|
||||
SO_SECURITY_ENCRYPTION_TRANSPORT = Constant('SO_SECURITY_ENCRYPTION_TRANSPORT',23)
|
||||
SO_SECURITY_ENCRYPTION_NETWORK = Constant('SO_SECURITY_ENCRYPTION_NETWORK',24)
|
||||
SO_BINDTODEVICE = Constant('SO_BINDTODEVICE',25)
|
||||
SO_ATTACH_FILTER = Constant('SO_ATTACH_FILTER',26)
|
||||
SO_DETACH_FILTER = Constant('SO_DETACH_FILTER',27)
|
||||
SO_GET_FILTER = Constant('SO_GET_FILTER',26)
|
||||
SO_PEERNAME = Constant('SO_PEERNAME',28)
|
||||
SO_TIMESTAMP = Constant('SO_TIMESTAMP',29)
|
||||
SCM_TIMESTAMP = Constant('SCM_TIMESTAMP',29)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_PEERSEC = Constant('SO_PEERSEC',31)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_PASSSEC = Constant('SO_PASSSEC',34)
|
||||
SO_TIMESTAMPNS = Constant('SO_TIMESTAMPNS',35)
|
||||
SCM_TIMESTAMPNS = Constant('SCM_TIMESTAMPNS',35)
|
||||
SO_MARK = Constant('SO_MARK',36)
|
||||
SO_TIMESTAMPING = Constant('SO_TIMESTAMPING',37)
|
||||
SCM_TIMESTAMPING = Constant('SCM_TIMESTAMPING',37)
|
||||
SO_PROTOCOL = Constant('SO_PROTOCOL',38)
|
||||
SO_DOMAIN = Constant('SO_DOMAIN',39)
|
||||
SO_RXQ_OVFL = Constant('SO_RXQ_OVFL',40)
|
||||
SO_WIFI_STATUS = Constant('SO_WIFI_STATUS',41)
|
||||
SCM_WIFI_STATUS = Constant('SCM_WIFI_STATUS',41)
|
||||
SO_PEEK_OFF = Constant('SO_PEEK_OFF',42)
|
||||
SO_NOFCS = Constant('SO_NOFCS',43)
|
||||
SO_LOCK_FILTER = Constant('SO_LOCK_FILTER',44)
|
||||
SO_SELECT_ERR_QUEUE = Constant('SO_SELECT_ERR_QUEUE',45)
|
||||
SO_BUSY_POLL = Constant('SO_BUSY_POLL',46)
|
||||
SO_MAX_PACING_RATE = Constant('SO_MAX_PACING_RATE',47)
|
||||
SO_BPF_EXTENSIONS = Constant('SO_BPF_EXTENSIONS',48)
|
||||
SO_INCOMING_CPU = Constant('SO_INCOMING_CPU',49)
|
||||
SO_ATTACH_BPF = Constant('SO_ATTACH_BPF',50)
|
||||
SO_DETACH_BPF = Constant('SO_DETACH_BPF',27)
|
||||
SO_ATTACH_REUSEPORT_CBPF = Constant('SO_ATTACH_REUSEPORT_CBPF',51)
|
||||
SO_ATTACH_REUSEPORT_EBPF = Constant('SO_ATTACH_REUSEPORT_EBPF',52)
|
||||
SO_CNX_ADVICE = Constant('SO_CNX_ADVICE',53)
|
||||
SCM_TIMESTAMPING_OPT_STATS = Constant('SCM_TIMESTAMPING_OPT_STATS',54)
|
||||
SO_MEMINFO = Constant('SO_MEMINFO',55)
|
||||
SO_INCOMING_NAPI_ID = Constant('SO_INCOMING_NAPI_ID',56)
|
||||
SO_COOKIE = Constant('SO_COOKIE',57)
|
||||
SCM_TIMESTAMPING_PKTINFO = Constant('SCM_TIMESTAMPING_PKTINFO',58)
|
||||
SO_PEERGROUPS = Constant('SO_PEERGROUPS',59)
|
||||
SO_ZEROCOPY = Constant('SO_ZEROCOPY',60)
|
||||
SOCK_STREAM = Constant('SOCK_STREAM',1)
|
||||
SOCK_DGRAM = Constant('SOCK_DGRAM',2)
|
||||
SOCK_RAW = Constant('SOCK_RAW',3)
|
||||
SOCK_RDM = Constant('SOCK_RDM',4)
|
||||
SOCK_SEQPACKET = Constant('SOCK_SEQPACKET',5)
|
||||
SOCK_DCCP = Constant('SOCK_DCCP',6)
|
||||
SOCK_PACKET = Constant('SOCK_PACKET',10)
|
||||
UIO_FASTIOV = Constant('UIO_FASTIOV',8)
|
||||
UIO_MAXIOV = Constant('UIO_MAXIOV',1024)
|
||||
@@ -676,7 +725,25 @@ AF_SNA = Constant('AF_SNA',22)
|
||||
AF_IRDA = Constant('AF_IRDA',23)
|
||||
AF_PPPOX = Constant('AF_PPPOX',24)
|
||||
AF_WANPIPE = Constant('AF_WANPIPE',25)
|
||||
AF_MAX = Constant('AF_MAX',32)
|
||||
AF_LLC = Constant('AF_LLC',26)
|
||||
AF_IB = Constant('AF_IB',27)
|
||||
AF_MPLS = Constant('AF_MPLS',28)
|
||||
AF_CAN = Constant('AF_CAN',29)
|
||||
AF_TIPC = Constant('AF_TIPC',30)
|
||||
AF_BLUETOOTH = Constant('AF_BLUETOOTH',31)
|
||||
AF_IUCV = Constant('AF_IUCV',32)
|
||||
AF_RXRPC = Constant('AF_RXRPC',33)
|
||||
AF_ISDN = Constant('AF_ISDN',34)
|
||||
AF_PHONET = Constant('AF_PHONET',35)
|
||||
AF_IEEE802154 = Constant('AF_IEEE802154',36)
|
||||
AF_CAIF = Constant('AF_CAIF',37)
|
||||
AF_ALG = Constant('AF_ALG',38)
|
||||
AF_NFC = Constant('AF_NFC',39)
|
||||
AF_VSOCK = Constant('AF_VSOCK',40)
|
||||
AF_KCM = Constant('AF_KCM',41)
|
||||
AF_QIPCRTR = Constant('AF_QIPCRTR',42)
|
||||
AF_SMC = Constant('AF_SMC',43)
|
||||
AF_MAX = Constant('AF_MAX',44)
|
||||
PF_UNSPEC = Constant('PF_UNSPEC',0)
|
||||
PF_UNIX = Constant('PF_UNIX',1)
|
||||
PF_LOCAL = Constant('PF_LOCAL',1)
|
||||
@@ -704,7 +771,25 @@ PF_SNA = Constant('PF_SNA',22)
|
||||
PF_IRDA = Constant('PF_IRDA',23)
|
||||
PF_PPPOX = Constant('PF_PPPOX',24)
|
||||
PF_WANPIPE = Constant('PF_WANPIPE',25)
|
||||
PF_MAX = Constant('PF_MAX',32)
|
||||
PF_LLC = Constant('PF_LLC',26)
|
||||
PF_IB = Constant('PF_IB',27)
|
||||
PF_MPLS = Constant('PF_MPLS',28)
|
||||
PF_CAN = Constant('PF_CAN',29)
|
||||
PF_TIPC = Constant('PF_TIPC',30)
|
||||
PF_BLUETOOTH = Constant('PF_BLUETOOTH',31)
|
||||
PF_IUCV = Constant('PF_IUCV',32)
|
||||
PF_RXRPC = Constant('PF_RXRPC',33)
|
||||
PF_ISDN = Constant('PF_ISDN',34)
|
||||
PF_PHONET = Constant('PF_PHONET',35)
|
||||
PF_IEEE802154 = Constant('PF_IEEE802154',36)
|
||||
PF_CAIF = Constant('PF_CAIF',37)
|
||||
PF_ALG = Constant('PF_ALG',38)
|
||||
PF_NFC = Constant('PF_NFC',39)
|
||||
PF_VSOCK = Constant('PF_VSOCK',40)
|
||||
PF_KCM = Constant('PF_KCM',41)
|
||||
PF_QIPCRTR = Constant('PF_QIPCRTR',42)
|
||||
PF_SMC = Constant('PF_SMC',43)
|
||||
PF_MAX = Constant('PF_MAX',44)
|
||||
SOMAXCONN = Constant('SOMAXCONN',128)
|
||||
MSG_OOB = Constant('MSG_OOB',1)
|
||||
MSG_PEEK = Constant('MSG_PEEK',2)
|
||||
@@ -717,18 +802,26 @@ MSG_DONTWAIT = Constant('MSG_DONTWAIT',0x40)
|
||||
MSG_EOR = Constant('MSG_EOR',0x80)
|
||||
MSG_WAITALL = Constant('MSG_WAITALL',0x100)
|
||||
MSG_FIN = Constant('MSG_FIN',0x200)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_SYN = Constant('MSG_SYN',0x400)
|
||||
MSG_CONFIRM = Constant('MSG_CONFIRM',0x800)
|
||||
MSG_RST = Constant('MSG_RST',0x1000)
|
||||
MSG_ERRQUEUE = Constant('MSG_ERRQUEUE',0x2000)
|
||||
MSG_NOSIGNAL = Constant('MSG_NOSIGNAL',0x4000)
|
||||
MSG_MORE = Constant('MSG_MORE',0x8000)
|
||||
MSG_WAITFORONE = Constant('MSG_WAITFORONE',0x10000)
|
||||
MSG_SENDPAGE_NOTLAST = Constant('MSG_SENDPAGE_NOTLAST',0x20000)
|
||||
MSG_BATCH = Constant('MSG_BATCH',0x40000)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_ZEROCOPY = Constant('MSG_ZEROCOPY',0x4000000)
|
||||
MSG_FASTOPEN = Constant('MSG_FASTOPEN',0x20000000)
|
||||
MSG_CMSG_CLOEXEC = Constant('MSG_CMSG_CLOEXEC',0x40000000)
|
||||
SOL_IP = Constant('SOL_IP',0)
|
||||
SOL_TCP = Constant('SOL_TCP',6)
|
||||
SOL_UDP = Constant('SOL_UDP',17)
|
||||
SOL_IPV6 = Constant('SOL_IPV6',41)
|
||||
SOL_ICMPV6 = Constant('SOL_ICMPV6',58)
|
||||
SOL_SCTP = Constant('SOL_SCTP',132)
|
||||
SOL_UDPLITE = Constant('SOL_UDPLITE',136)
|
||||
SOL_RAW = Constant('SOL_RAW',255)
|
||||
SOL_IPX = Constant('SOL_IPX',256)
|
||||
SOL_AX25 = Constant('SOL_AX25',257)
|
||||
@@ -741,6 +834,22 @@ SOL_PACKET = Constant('SOL_PACKET',263)
|
||||
SOL_ATM = Constant('SOL_ATM',264)
|
||||
SOL_AAL = Constant('SOL_AAL',265)
|
||||
SOL_IRDA = Constant('SOL_IRDA',266)
|
||||
SOL_NETBEUI = Constant('SOL_NETBEUI',267)
|
||||
SOL_LLC = Constant('SOL_LLC',268)
|
||||
SOL_DCCP = Constant('SOL_DCCP',269)
|
||||
SOL_NETLINK = Constant('SOL_NETLINK',270)
|
||||
SOL_TIPC = Constant('SOL_TIPC',271)
|
||||
SOL_RXRPC = Constant('SOL_RXRPC',272)
|
||||
SOL_PPPOL2TP = Constant('SOL_PPPOL2TP',273)
|
||||
SOL_BLUETOOTH = Constant('SOL_BLUETOOTH',274)
|
||||
SOL_PNPIPE = Constant('SOL_PNPIPE',275)
|
||||
SOL_RDS = Constant('SOL_RDS',276)
|
||||
SOL_IUCV = Constant('SOL_IUCV',277)
|
||||
SOL_CAIF = Constant('SOL_CAIF',278)
|
||||
SOL_ALG = Constant('SOL_ALG',279)
|
||||
SOL_NFC = Constant('SOL_NFC',280)
|
||||
SOL_KCM = Constant('SOL_KCM',281)
|
||||
SOL_TLS = Constant('SOL_TLS',282)
|
||||
IPX_TYPE = Constant('IPX_TYPE',1)
|
||||
SHUT_RD = Constant('SHUT_RD',0)
|
||||
SHUT_WR = Constant('SHUT_WR',1)
|
||||
@@ -764,6 +873,10 @@ EAI_SYSTEM = Constant('EAI_SYSTEM',-11)
|
||||
AI_NUMERICHOST = Constant('AI_NUMERICHOST',1)
|
||||
AI_CANONNAME = Constant('AI_CANONNAME',2)
|
||||
AI_PASSIVE = Constant('AI_PASSIVE',4)
|
||||
AI_NUMERICSERV = Constant('AI_NUMERICSERV',8)
|
||||
AI_ADDRCONFIG = Constant('AI_ADDRCONFIG',16)
|
||||
AI_V4MAPPED = Constant('AI_V4MAPPED',32)
|
||||
AI_ALL = Constant('AI_ALL',64)
|
||||
SIOCADDRT = Constant('SIOCADDRT',0x890B)
|
||||
SIOCDELRT = Constant('SIOCDELRT',0x890C)
|
||||
SIOCRTMSG = Constant('SIOCRTMSG',0x890D)
|
||||
@@ -820,6 +933,130 @@ SIOCSIFMAP = Constant('SIOCSIFMAP',0x8971)
|
||||
SIOCADDDLCI = Constant('SIOCADDDLCI',0x8980)
|
||||
SIOCDELDLCI = Constant('SIOCDELDLCI',0x8981)
|
||||
SIOCDEVPRIVATE = Constant('SIOCDEVPRIVATE',0x89F0)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
O_ACCMODE = Constant('O_ACCMODE',0o003)
|
||||
O_RDONLY = Constant('O_RDONLY',0o0)
|
||||
O_WRONLY = Constant('O_WRONLY',0o1)
|
||||
O_RDWR = Constant('O_RDWR',0o2)
|
||||
O_CREAT = Constant('O_CREAT',0o100)
|
||||
O_EXCL = Constant('O_EXCL',0o200)
|
||||
O_NOCTTY = Constant('O_NOCTTY',0o400)
|
||||
O_TRUNC = Constant('O_TRUNC',0o1000)
|
||||
O_APPEND = Constant('O_APPEND',0o2000)
|
||||
O_NONBLOCK = Constant('O_NONBLOCK',0o4000)
|
||||
O_NDELAY = Constant('O_NDELAY',0o4000)
|
||||
O_DSYNC = Constant('O_DSYNC',0o10000)
|
||||
FASYNC = Constant('FASYNC',0o20000)
|
||||
O_DIRECTORY = Constant('O_DIRECTORY',0o40000)
|
||||
O_NOFOLLOW = Constant('O_NOFOLLOW',0o100000)
|
||||
O_DIRECT = Constant('O_DIRECT',0o200000)
|
||||
O_LARGEFILE = Constant('O_LARGEFILE',0)
|
||||
O_NOATIME = Constant('O_NOATIME',0o1000000)
|
||||
O_CLOEXEC = Constant('O_CLOEXEC',0o2000000)
|
||||
O_SYNC = Constant('O_SYNC',(0o10000|0o4000000))
|
||||
O_PATH = Constant('O_PATH',0o10000000)
|
||||
__O_TMPFILE = Constant('__O_TMPFILE',0o20000000)
|
||||
F_DUPFD = Constant('F_DUPFD',0)
|
||||
F_GETFD = Constant('F_GETFD',1)
|
||||
F_SETFD = Constant('F_SETFD',2)
|
||||
F_GETFL = Constant('F_GETFL',3)
|
||||
F_SETFL = Constant('F_SETFL',4)
|
||||
F_GETLK = Constant('F_GETLK',5)
|
||||
F_SETLK = Constant('F_SETLK',6)
|
||||
F_SETLKW = Constant('F_SETLKW',7)
|
||||
F_SETOWN = Constant('F_SETOWN',8)
|
||||
F_GETOWN = Constant('F_GETOWN',9)
|
||||
F_SETSIG = Constant('F_SETSIG',10)
|
||||
F_GETSIG = Constant('F_GETSIG',11)
|
||||
F_GETLK64 = Constant('F_GETLK64',12)
|
||||
F_SETLK64 = Constant('F_SETLK64',13)
|
||||
F_SETLKW64 = Constant('F_SETLKW64',14)
|
||||
FD_CLOEXEC = Constant('FD_CLOEXEC',1)
|
||||
F_RDLCK = Constant('F_RDLCK',0)
|
||||
F_WRLCK = Constant('F_WRLCK',1)
|
||||
F_UNLCK = Constant('F_UNLCK',2)
|
||||
F_EXLCK = Constant('F_EXLCK',4)
|
||||
F_SHLCK = Constant('F_SHLCK',8)
|
||||
F_INPROGRESS = Constant('F_INPROGRESS',16)
|
||||
LOCK_SH = Constant('LOCK_SH',1)
|
||||
LOCK_EX = Constant('LOCK_EX',2)
|
||||
LOCK_NB = Constant('LOCK_NB',4)
|
||||
LOCK_UN = Constant('LOCK_UN',8)
|
||||
LOCK_MAND = Constant('LOCK_MAND',32)
|
||||
LOCK_READ = Constant('LOCK_READ',64)
|
||||
LOCK_WRITE = Constant('LOCK_WRITE',128)
|
||||
LOCK_RW = Constant('LOCK_RW',192)
|
||||
O_TMPFILE = Constant('O_TMPFILE',(0o20000000 | 0o40000))
|
||||
O_ASYNC = Constant('O_ASYNC',0o20000)
|
||||
F_SETOWN_EX = Constant('F_SETOWN_EX',15)
|
||||
F_GETOWN_EX = Constant('F_GETOWN_EX',16)
|
||||
F_GETOWNER_UIDS = Constant('F_GETOWNER_UIDS',17)
|
||||
F_OFD_GETLK = Constant('F_OFD_GETLK',36)
|
||||
F_OFD_SETLK = Constant('F_OFD_SETLK',37)
|
||||
F_OFD_SETLKW = Constant('F_OFD_SETLKW',38)
|
||||
F_OWNER_TID = Constant('F_OWNER_TID',0)
|
||||
F_OWNER_PID = Constant('F_OWNER_PID',1)
|
||||
F_OWNER_PGRP = Constant('F_OWNER_PGRP',2)
|
||||
AT_FDCWD = Constant('AT_FDCWD',-100)
|
||||
AT_SYMLINK_NOFOLLOW = Constant('AT_SYMLINK_NOFOLLOW',0x100)
|
||||
AT_REMOVEDIR = Constant('AT_REMOVEDIR',0x200)
|
||||
AT_SYMLINK_FOLLOW = Constant('AT_SYMLINK_FOLLOW',0x400)
|
||||
AT_NO_AUTOMOUNT = Constant('AT_NO_AUTOMOUNT',0x800)
|
||||
AT_EMPTY_PATH = Constant('AT_EMPTY_PATH',0x1000)
|
||||
AT_EACCESS = Constant('AT_EACCESS',0x200)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_SEM = Constant('PROT_SEM',0x8)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
PROT_GROWSDOWN = Constant('PROT_GROWSDOWN',0x01000000)
|
||||
PROT_GROWSUP = Constant('PROT_GROWSUP',0x02000000)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_TYPE = Constant('MAP_TYPE',0xf)
|
||||
MADV_REMOVE = Constant('MADV_REMOVE',9)
|
||||
MADV_DONTFORK = Constant('MADV_DONTFORK',10)
|
||||
MADV_DOFORK = Constant('MADV_DOFORK',11)
|
||||
MADV_MERGEABLE = Constant('MADV_MERGEABLE',12)
|
||||
MADV_UNMERGEABLE = Constant('MADV_UNMERGEABLE',13)
|
||||
MADV_HUGEPAGE = Constant('MADV_HUGEPAGE',14)
|
||||
MADV_NOHUGEPAGE = Constant('MADV_NOHUGEPAGE',15)
|
||||
MADV_DONTDUMP = Constant('MADV_DONTDUMP',16)
|
||||
MADV_DODUMP = Constant('MADV_DODUMP',17)
|
||||
MADV_HWPOISON = Constant('MADV_HWPOISON',100)
|
||||
MADV_SOFT_OFFLINE = Constant('MADV_SOFT_OFFLINE',101)
|
||||
MLOCK_ONFAULT = Constant('MLOCK_ONFAULT',1)
|
||||
MAP_FIXED = Constant('MAP_FIXED',0x10)
|
||||
MAP_ANONYMOUS = Constant('MAP_ANONYMOUS',0x20)
|
||||
MAP_GROWSDOWN = Constant('MAP_GROWSDOWN',0x0100)
|
||||
MAP_DENYWRITE = Constant('MAP_DENYWRITE',0x0800)
|
||||
MAP_EXECUTABLE = Constant('MAP_EXECUTABLE',0x1000)
|
||||
MAP_LOCKED = Constant('MAP_LOCKED',0x2000)
|
||||
MAP_NORESERVE = Constant('MAP_NORESERVE',0x4000)
|
||||
MAP_POPULATE = Constant('MAP_POPULATE',0x8000)
|
||||
MAP_NONBLOCK = Constant('MAP_NONBLOCK',0x10000)
|
||||
MAP_STACK = Constant('MAP_STACK',0x20000)
|
||||
MAP_HUGETLB = Constant('MAP_HUGETLB',0x40000)
|
||||
MS_ASYNC = Constant('MS_ASYNC',1)
|
||||
MS_INVALIDATE = Constant('MS_INVALIDATE',2)
|
||||
MS_SYNC = Constant('MS_SYNC',4)
|
||||
MCL_CURRENT = Constant('MCL_CURRENT',1)
|
||||
MCL_FUTURE = Constant('MCL_FUTURE',2)
|
||||
MCL_ONFAULT = Constant('MCL_ONFAULT',4)
|
||||
MADV_NORMAL = Constant('MADV_NORMAL',0x0)
|
||||
MADV_RANDOM = Constant('MADV_RANDOM',0x1)
|
||||
MADV_SEQUENTIAL = Constant('MADV_SEQUENTIAL',0x2)
|
||||
MADV_WILLNEED = Constant('MADV_WILLNEED',0x3)
|
||||
MADV_DONTNEED = Constant('MADV_DONTNEED',0x4)
|
||||
MAP_ANON = Constant('MAP_ANON',0x20)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
POSIX_MADV_NORMAL = Constant('POSIX_MADV_NORMAL',0x0)
|
||||
POSIX_MADV_SEQUENTIAL = Constant('POSIX_MADV_SEQUENTIAL',0x2)
|
||||
POSIX_MADV_RANDOM = Constant('POSIX_MADV_RANDOM',0x1)
|
||||
POSIX_MADV_WILLNEED = Constant('POSIX_MADV_WILLNEED',0x3)
|
||||
POSIX_MADV_DONTNEED = Constant('POSIX_MADV_DONTNEED',0x4)
|
||||
PTRACE_TRACEME = Constant('PTRACE_TRACEME',0)
|
||||
PTRACE_PEEKTEXT = Constant('PTRACE_PEEKTEXT',1)
|
||||
PTRACE_PEEKDATA = Constant('PTRACE_PEEKDATA',2)
|
||||
@@ -889,19 +1126,24 @@ SYS_accept4 = Constant('SYS_accept4',242)
|
||||
SYS_acct = Constant('SYS_acct',89)
|
||||
SYS_add_key = Constant('SYS_add_key',217)
|
||||
SYS_adjtimex = Constant('SYS_adjtimex',171)
|
||||
SYS_arch_specific_syscall = Constant('SYS_arch_specific_syscall',244)
|
||||
SYS_bind = Constant('SYS_bind',200)
|
||||
SYS_bpf = Constant('SYS_bpf',280)
|
||||
SYS_brk = Constant('SYS_brk',214)
|
||||
SYS_capget = Constant('SYS_capget',90)
|
||||
SYS_capset = Constant('SYS_capset',91)
|
||||
SYS_chdir = Constant('SYS_chdir',49)
|
||||
SYS_chroot = Constant('SYS_chroot',51)
|
||||
SYS_clock_adjtime = Constant('SYS_clock_adjtime',266)
|
||||
SYS_clock_getres = Constant('SYS_clock_getres',114)
|
||||
SYS_clock_gettime = Constant('SYS_clock_gettime',113)
|
||||
SYS_clock_nanosleep = Constant('SYS_clock_nanosleep',115)
|
||||
SYS_clock_settime = Constant('SYS_clock_settime',112)
|
||||
SYS_clone = Constant('SYS_clone',220)
|
||||
SYS_clone3 = Constant('SYS_clone3',435)
|
||||
SYS_close = Constant('SYS_close',57)
|
||||
SYS_connect = Constant('SYS_connect',203)
|
||||
SYS_copy_file_range = Constant('SYS_copy_file_range',285)
|
||||
SYS_delete_module = Constant('SYS_delete_module',106)
|
||||
SYS_dup = Constant('SYS_dup',23)
|
||||
SYS_dup3 = Constant('SYS_dup3',24)
|
||||
@@ -910,6 +1152,7 @@ SYS_epoll_ctl = Constant('SYS_epoll_ctl',21)
|
||||
SYS_epoll_pwait = Constant('SYS_epoll_pwait',22)
|
||||
SYS_eventfd2 = Constant('SYS_eventfd2',19)
|
||||
SYS_execve = Constant('SYS_execve',221)
|
||||
SYS_execveat = Constant('SYS_execveat',281)
|
||||
SYS_exit = Constant('SYS_exit',93)
|
||||
SYS_exit_group = Constant('SYS_exit_group',94)
|
||||
SYS_faccessat = Constant('SYS_faccessat',48)
|
||||
@@ -925,12 +1168,17 @@ SYS_fchownat = Constant('SYS_fchownat',54)
|
||||
SYS_fcntl = Constant('SYS_fcntl',25)
|
||||
SYS_fdatasync = Constant('SYS_fdatasync',83)
|
||||
SYS_fgetxattr = Constant('SYS_fgetxattr',10)
|
||||
SYS_finit_module = Constant('SYS_finit_module',273)
|
||||
SYS_flistxattr = Constant('SYS_flistxattr',13)
|
||||
SYS_flock = Constant('SYS_flock',32)
|
||||
SYS_fremovexattr = Constant('SYS_fremovexattr',16)
|
||||
SYS_fsconfig = Constant('SYS_fsconfig',431)
|
||||
SYS_fsetxattr = Constant('SYS_fsetxattr',7)
|
||||
SYS_fsmount = Constant('SYS_fsmount',432)
|
||||
SYS_fsopen = Constant('SYS_fsopen',430)
|
||||
SYS_fspick = Constant('SYS_fspick',433)
|
||||
SYS_fstat = Constant('SYS_fstat',80)
|
||||
SYS_fstatat64 = Constant('SYS_fstatat64',79)
|
||||
SYS_fstatat = Constant('SYS_fstatat',79)
|
||||
SYS_fstatfs = Constant('SYS_fstatfs',44)
|
||||
SYS_fsync = Constant('SYS_fsync',82)
|
||||
SYS_ftruncate = Constant('SYS_ftruncate',46)
|
||||
@@ -949,6 +1197,7 @@ SYS_getpgid = Constant('SYS_getpgid',155)
|
||||
SYS_getpid = Constant('SYS_getpid',172)
|
||||
SYS_getppid = Constant('SYS_getppid',173)
|
||||
SYS_getpriority = Constant('SYS_getpriority',141)
|
||||
SYS_getrandom = Constant('SYS_getrandom',278)
|
||||
SYS_getresgid = Constant('SYS_getresgid',150)
|
||||
SYS_getresuid = Constant('SYS_getresuid',148)
|
||||
SYS_getrlimit = Constant('SYS_getrlimit',163)
|
||||
@@ -969,10 +1218,16 @@ SYS_io_cancel = Constant('SYS_io_cancel',3)
|
||||
SYS_ioctl = Constant('SYS_ioctl',29)
|
||||
SYS_io_destroy = Constant('SYS_io_destroy',1)
|
||||
SYS_io_getevents = Constant('SYS_io_getevents',4)
|
||||
SYS_io_pgetevents = Constant('SYS_io_pgetevents',292)
|
||||
SYS_ioprio_get = Constant('SYS_ioprio_get',31)
|
||||
SYS_ioprio_set = Constant('SYS_ioprio_set',30)
|
||||
SYS_io_setup = Constant('SYS_io_setup',0)
|
||||
SYS_io_submit = Constant('SYS_io_submit',2)
|
||||
SYS_io_uring_enter = Constant('SYS_io_uring_enter',426)
|
||||
SYS_io_uring_register = Constant('SYS_io_uring_register',427)
|
||||
SYS_io_uring_setup = Constant('SYS_io_uring_setup',425)
|
||||
SYS_kcmp = Constant('SYS_kcmp',272)
|
||||
SYS_kexec_file_load = Constant('SYS_kexec_file_load',294)
|
||||
SYS_kexec_load = Constant('SYS_kexec_load',104)
|
||||
SYS_keyctl = Constant('SYS_keyctl',219)
|
||||
SYS_kill = Constant('SYS_kill',129)
|
||||
@@ -987,14 +1242,18 @@ SYS_lseek = Constant('SYS_lseek',62)
|
||||
SYS_lsetxattr = Constant('SYS_lsetxattr',6)
|
||||
SYS_madvise = Constant('SYS_madvise',233)
|
||||
SYS_mbind = Constant('SYS_mbind',235)
|
||||
SYS_membarrier = Constant('SYS_membarrier',283)
|
||||
SYS_memfd_create = Constant('SYS_memfd_create',279)
|
||||
SYS_migrate_pages = Constant('SYS_migrate_pages',238)
|
||||
SYS_mincore = Constant('SYS_mincore',232)
|
||||
SYS_mkdirat = Constant('SYS_mkdirat',34)
|
||||
SYS_mknodat = Constant('SYS_mknodat',33)
|
||||
SYS_mlock = Constant('SYS_mlock',228)
|
||||
SYS_mlock2 = Constant('SYS_mlock2',284)
|
||||
SYS_mlockall = Constant('SYS_mlockall',230)
|
||||
SYS_mmap = Constant('SYS_mmap',222)
|
||||
SYS_mount = Constant('SYS_mount',40)
|
||||
SYS_move_mount = Constant('SYS_move_mount',429)
|
||||
SYS_move_pages = Constant('SYS_move_pages',239)
|
||||
SYS_mprotect = Constant('SYS_mprotect',226)
|
||||
SYS_mq_getsetattr = Constant('SYS_mq_getsetattr',185)
|
||||
@@ -1012,22 +1271,35 @@ SYS_msync = Constant('SYS_msync',227)
|
||||
SYS_munlock = Constant('SYS_munlock',229)
|
||||
SYS_munlockall = Constant('SYS_munlockall',231)
|
||||
SYS_munmap = Constant('SYS_munmap',215)
|
||||
SYS_name_to_handle_at = Constant('SYS_name_to_handle_at',264)
|
||||
SYS_nanosleep = Constant('SYS_nanosleep',101)
|
||||
SYS_newfstatat = Constant('SYS_newfstatat',79)
|
||||
SYS_nfsservctl = Constant('SYS_nfsservctl',42)
|
||||
SYS_openat = Constant('SYS_openat',56)
|
||||
SYS_open_by_handle_at = Constant('SYS_open_by_handle_at',265)
|
||||
SYS_open_tree = Constant('SYS_open_tree',428)
|
||||
SYS_perf_event_open = Constant('SYS_perf_event_open',241)
|
||||
SYS_personality = Constant('SYS_personality',92)
|
||||
SYS_pidfd_open = Constant('SYS_pidfd_open',434)
|
||||
SYS_pidfd_send_signal = Constant('SYS_pidfd_send_signal',424)
|
||||
SYS_pipe2 = Constant('SYS_pipe2',59)
|
||||
SYS_pivot_root = Constant('SYS_pivot_root',41)
|
||||
SYS_pkey_alloc = Constant('SYS_pkey_alloc',289)
|
||||
SYS_pkey_free = Constant('SYS_pkey_free',290)
|
||||
SYS_pkey_mprotect = Constant('SYS_pkey_mprotect',288)
|
||||
SYS_ppoll = Constant('SYS_ppoll',73)
|
||||
SYS_prctl = Constant('SYS_prctl',167)
|
||||
SYS_pread64 = Constant('SYS_pread64',67)
|
||||
SYS_preadv = Constant('SYS_preadv',69)
|
||||
SYS_preadv2 = Constant('SYS_preadv2',286)
|
||||
SYS_prlimit64 = Constant('SYS_prlimit64',261)
|
||||
SYS_process_vm_readv = Constant('SYS_process_vm_readv',270)
|
||||
SYS_process_vm_writev = Constant('SYS_process_vm_writev',271)
|
||||
SYS_pselect6 = Constant('SYS_pselect6',72)
|
||||
SYS_ptrace = Constant('SYS_ptrace',117)
|
||||
SYS_pwrite64 = Constant('SYS_pwrite64',68)
|
||||
SYS_pwritev = Constant('SYS_pwritev',70)
|
||||
SYS_pwritev2 = Constant('SYS_pwritev2',287)
|
||||
SYS_quotactl = Constant('SYS_quotactl',60)
|
||||
SYS_read = Constant('SYS_read',63)
|
||||
SYS_readahead = Constant('SYS_readahead',213)
|
||||
@@ -1040,8 +1312,10 @@ SYS_recvmsg = Constant('SYS_recvmsg',212)
|
||||
SYS_remap_file_pages = Constant('SYS_remap_file_pages',234)
|
||||
SYS_removexattr = Constant('SYS_removexattr',14)
|
||||
SYS_renameat = Constant('SYS_renameat',38)
|
||||
SYS_renameat2 = Constant('SYS_renameat2',276)
|
||||
SYS_request_key = Constant('SYS_request_key',218)
|
||||
SYS_restart_syscall = Constant('SYS_restart_syscall',128)
|
||||
SYS_rseq = Constant('SYS_rseq',293)
|
||||
SYS_rt_sigaction = Constant('SYS_rt_sigaction',134)
|
||||
SYS_rt_sigpending = Constant('SYS_rt_sigpending',136)
|
||||
SYS_rt_sigprocmask = Constant('SYS_rt_sigprocmask',135)
|
||||
@@ -1051,20 +1325,24 @@ SYS_rt_sigsuspend = Constant('SYS_rt_sigsuspend',133)
|
||||
SYS_rt_sigtimedwait = Constant('SYS_rt_sigtimedwait',137)
|
||||
SYS_rt_tgsigqueueinfo = Constant('SYS_rt_tgsigqueueinfo',240)
|
||||
SYS_sched_getaffinity = Constant('SYS_sched_getaffinity',123)
|
||||
SYS_sched_getattr = Constant('SYS_sched_getattr',275)
|
||||
SYS_sched_getparam = Constant('SYS_sched_getparam',121)
|
||||
SYS_sched_get_priority_max = Constant('SYS_sched_get_priority_max',125)
|
||||
SYS_sched_get_priority_min = Constant('SYS_sched_get_priority_min',126)
|
||||
SYS_sched_getscheduler = Constant('SYS_sched_getscheduler',120)
|
||||
SYS_sched_rr_get_interval = Constant('SYS_sched_rr_get_interval',127)
|
||||
SYS_sched_setaffinity = Constant('SYS_sched_setaffinity',122)
|
||||
SYS_sched_setattr = Constant('SYS_sched_setattr',274)
|
||||
SYS_sched_setparam = Constant('SYS_sched_setparam',118)
|
||||
SYS_sched_setscheduler = Constant('SYS_sched_setscheduler',119)
|
||||
SYS_sched_yield = Constant('SYS_sched_yield',124)
|
||||
SYS_seccomp = Constant('SYS_seccomp',277)
|
||||
SYS_semctl = Constant('SYS_semctl',191)
|
||||
SYS_semget = Constant('SYS_semget',190)
|
||||
SYS_semop = Constant('SYS_semop',193)
|
||||
SYS_semtimedop = Constant('SYS_semtimedop',192)
|
||||
SYS_sendfile = Constant('SYS_sendfile',71)
|
||||
SYS_sendmmsg = Constant('SYS_sendmmsg',269)
|
||||
SYS_sendmsg = Constant('SYS_sendmsg',211)
|
||||
SYS_sendto = Constant('SYS_sendto',206)
|
||||
SYS_setdomainname = Constant('SYS_setdomainname',162)
|
||||
@@ -1075,6 +1353,7 @@ SYS_setgroups = Constant('SYS_setgroups',159)
|
||||
SYS_sethostname = Constant('SYS_sethostname',161)
|
||||
SYS_setitimer = Constant('SYS_setitimer',103)
|
||||
SYS_set_mempolicy = Constant('SYS_set_mempolicy',237)
|
||||
SYS_setns = Constant('SYS_setns',268)
|
||||
SYS_setpgid = Constant('SYS_setpgid',154)
|
||||
SYS_setpriority = Constant('SYS_setpriority',140)
|
||||
SYS_setregid = Constant('SYS_setregid',143)
|
||||
@@ -1100,11 +1379,13 @@ SYS_socket = Constant('SYS_socket',198)
|
||||
SYS_socketpair = Constant('SYS_socketpair',199)
|
||||
SYS_splice = Constant('SYS_splice',76)
|
||||
SYS_statfs = Constant('SYS_statfs',43)
|
||||
SYS_statx = Constant('SYS_statx',291)
|
||||
SYS_swapoff = Constant('SYS_swapoff',225)
|
||||
SYS_swapon = Constant('SYS_swapon',224)
|
||||
SYS_symlinkat = Constant('SYS_symlinkat',36)
|
||||
SYS_sync = Constant('SYS_sync',81)
|
||||
SYS_sync_file_range2 = Constant('SYS_sync_file_range2',84)
|
||||
SYS_sync_file_range = Constant('SYS_sync_file_range',84)
|
||||
SYS_syncfs = Constant('SYS_syncfs',267)
|
||||
SYS_sysinfo = Constant('SYS_sysinfo',179)
|
||||
SYS_syslog = Constant('SYS_syslog',116)
|
||||
SYS_tee = Constant('SYS_tee',77)
|
||||
@@ -1125,6 +1406,7 @@ SYS_umount2 = Constant('SYS_umount2',39)
|
||||
SYS_uname = Constant('SYS_uname',160)
|
||||
SYS_unlinkat = Constant('SYS_unlinkat',35)
|
||||
SYS_unshare = Constant('SYS_unshare',97)
|
||||
SYS_userfaultfd = Constant('SYS_userfaultfd',282)
|
||||
SYS_utimensat = Constant('SYS_utimensat',88)
|
||||
SYS_vhangup = Constant('SYS_vhangup',58)
|
||||
SYS_vmsplice = Constant('SYS_vmsplice',75)
|
||||
|
||||
+435
-99
@@ -1,5 +1,4 @@
|
||||
from pwnlib.constants.constant import Constant
|
||||
|
||||
__NR_osf_syscall = Constant('__NR_osf_syscall',0)
|
||||
__NR_exit = Constant('__NR_exit',1)
|
||||
__NR_fork = Constant('__NR_fork',2)
|
||||
@@ -218,6 +217,7 @@ __NR_osf_afs_syscall = Constant('__NR_osf_afs_syscall',258)
|
||||
__NR_osf_swapctl = Constant('__NR_osf_swapctl',259)
|
||||
__NR_osf_memcntl = Constant('__NR_osf_memcntl',260)
|
||||
__NR_osf_fdatasync = Constant('__NR_osf_fdatasync',261)
|
||||
__NR_umount_with_flags = Constant('__NR_umount_with_flags',22)
|
||||
__NR_bdflush = Constant('__NR_bdflush',300)
|
||||
__NR_sethae = Constant('__NR_sethae',301)
|
||||
__NR_mount = Constant('__NR_mount',302)
|
||||
@@ -393,6 +393,73 @@ __NR_utimensat = Constant('__NR_utimensat',475)
|
||||
__NR_signalfd = Constant('__NR_signalfd',476)
|
||||
__NR_timerfd = Constant('__NR_timerfd',477)
|
||||
__NR_eventfd = Constant('__NR_eventfd',478)
|
||||
__NR_recvmmsg = Constant('__NR_recvmmsg',479)
|
||||
__NR_fallocate = Constant('__NR_fallocate',480)
|
||||
__NR_timerfd_create = Constant('__NR_timerfd_create',481)
|
||||
__NR_timerfd_settime = Constant('__NR_timerfd_settime',482)
|
||||
__NR_timerfd_gettime = Constant('__NR_timerfd_gettime',483)
|
||||
__NR_signalfd4 = Constant('__NR_signalfd4',484)
|
||||
__NR_eventfd2 = Constant('__NR_eventfd2',485)
|
||||
__NR_epoll_create1 = Constant('__NR_epoll_create1',486)
|
||||
__NR_dup3 = Constant('__NR_dup3',487)
|
||||
__NR_pipe2 = Constant('__NR_pipe2',488)
|
||||
__NR_inotify_init1 = Constant('__NR_inotify_init1',489)
|
||||
__NR_preadv = Constant('__NR_preadv',490)
|
||||
__NR_pwritev = Constant('__NR_pwritev',491)
|
||||
__NR_rt_tgsigqueueinfo = Constant('__NR_rt_tgsigqueueinfo',492)
|
||||
__NR_perf_event_open = Constant('__NR_perf_event_open',493)
|
||||
__NR_fanotify_init = Constant('__NR_fanotify_init',494)
|
||||
__NR_fanotify_mark = Constant('__NR_fanotify_mark',495)
|
||||
__NR_prlimit64 = Constant('__NR_prlimit64',496)
|
||||
__NR_name_to_handle_at = Constant('__NR_name_to_handle_at',497)
|
||||
__NR_open_by_handle_at = Constant('__NR_open_by_handle_at',498)
|
||||
__NR_clock_adjtime = Constant('__NR_clock_adjtime',499)
|
||||
__NR_syncfs = Constant('__NR_syncfs',500)
|
||||
__NR_setns = Constant('__NR_setns',501)
|
||||
__NR_accept4 = Constant('__NR_accept4',502)
|
||||
__NR_sendmmsg = Constant('__NR_sendmmsg',503)
|
||||
__NR_process_vm_readv = Constant('__NR_process_vm_readv',504)
|
||||
__NR_process_vm_writev = Constant('__NR_process_vm_writev',505)
|
||||
__NR_kcmp = Constant('__NR_kcmp',506)
|
||||
__NR_finit_module = Constant('__NR_finit_module',507)
|
||||
__NR_sched_setattr = Constant('__NR_sched_setattr',508)
|
||||
__NR_sched_getattr = Constant('__NR_sched_getattr',509)
|
||||
__NR_renameat2 = Constant('__NR_renameat2',510)
|
||||
__NR_getrandom = Constant('__NR_getrandom',511)
|
||||
__NR_memfd_create = Constant('__NR_memfd_create',512)
|
||||
__NR_execveat = Constant('__NR_execveat',513)
|
||||
__NR_seccomp = Constant('__NR_seccomp',514)
|
||||
__NR_bpf = Constant('__NR_bpf',515)
|
||||
__NR_userfaultfd = Constant('__NR_userfaultfd',516)
|
||||
__NR_membarrier = Constant('__NR_membarrier',517)
|
||||
__NR_mlock2 = Constant('__NR_mlock2',518)
|
||||
__NR_copy_file_range = Constant('__NR_copy_file_range',519)
|
||||
__NR_preadv2 = Constant('__NR_preadv2',520)
|
||||
__NR_pwritev2 = Constant('__NR_pwritev2',521)
|
||||
__NR_statx = Constant('__NR_statx',522)
|
||||
__NR_io_pgetevents = Constant('__NR_io_pgetevents',523)
|
||||
__NR_pkey_mprotect = Constant('__NR_pkey_mprotect',524)
|
||||
__NR_pkey_alloc = Constant('__NR_pkey_alloc',525)
|
||||
__NR_pkey_free = Constant('__NR_pkey_free',526)
|
||||
__NR_rseq = Constant('__NR_rseq',527)
|
||||
__NR_statfs64 = Constant('__NR_statfs64',528)
|
||||
__NR_fstatfs64 = Constant('__NR_fstatfs64',529)
|
||||
__NR_getegid = Constant('__NR_getegid',530)
|
||||
__NR_geteuid = Constant('__NR_geteuid',531)
|
||||
__NR_getppid = Constant('__NR_getppid',532)
|
||||
__NR_pidfd_send_signal = Constant('__NR_pidfd_send_signal',534)
|
||||
__NR_io_uring_setup = Constant('__NR_io_uring_setup',535)
|
||||
__NR_io_uring_enter = Constant('__NR_io_uring_enter',536)
|
||||
__NR_io_uring_register = Constant('__NR_io_uring_register',537)
|
||||
__NR_open_tree = Constant('__NR_open_tree',538)
|
||||
__NR_move_mount = Constant('__NR_move_mount',539)
|
||||
__NR_fsopen = Constant('__NR_fsopen',540)
|
||||
__NR_fsconfig = Constant('__NR_fsconfig',541)
|
||||
__NR_fsmount = Constant('__NR_fsmount',542)
|
||||
__NR_fspick = Constant('__NR_fspick',543)
|
||||
__NR_pidfd_open = Constant('__NR_pidfd_open',544)
|
||||
__NR_openat2 = Constant('__NR_openat2',547)
|
||||
__NR_pidfd_getfd = Constant('__NR_pidfd_getfd',548)
|
||||
MAP_32BIT = Constant('MAP_32BIT',0x40)
|
||||
INADDR_ANY = Constant('INADDR_ANY',0)
|
||||
INADDR_BROADCAST = Constant('INADDR_BROADCAST',0xffffffff)
|
||||
@@ -528,7 +595,11 @@ ENOKEY = Constant('ENOKEY',132)
|
||||
EKEYEXPIRED = Constant('EKEYEXPIRED',133)
|
||||
EKEYREVOKED = Constant('EKEYREVOKED',134)
|
||||
EKEYREJECTED = Constant('EKEYREJECTED',135)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((135) + 1))
|
||||
EOWNERDEAD = Constant('EOWNERDEAD',136)
|
||||
ENOTRECOVERABLE = Constant('ENOTRECOVERABLE',137)
|
||||
ERFKILL = Constant('ERFKILL',138)
|
||||
EHWPOISON = Constant('EHWPOISON',139)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((139) + 1))
|
||||
__LITTLE_ENDIAN = Constant('__LITTLE_ENDIAN',1234)
|
||||
__BIG_ENDIAN = Constant('__BIG_ENDIAN',4321)
|
||||
__BYTE_ORDER = Constant('__BYTE_ORDER',1234)
|
||||
@@ -537,9 +608,55 @@ LITTLE_ENDIAN = Constant('LITTLE_ENDIAN',1234)
|
||||
BIG_ENDIAN = Constant('BIG_ENDIAN',4321)
|
||||
BYTE_ORDER = Constant('BYTE_ORDER',1234)
|
||||
__WORDSIZE = Constant('__WORDSIZE',64)
|
||||
INT8_MAX = Constant('INT8_MAX',(127))
|
||||
INT16_MAX = Constant('INT16_MAX',(32767))
|
||||
INT32_MAX = Constant('INT32_MAX',(2147483647))
|
||||
INT64_MAX = Constant('INT64_MAX',(9223372036854775807))
|
||||
INT8_MIN = Constant('INT8_MIN',(-1 - (127)))
|
||||
INT16_MIN = Constant('INT16_MIN',(-1 - (32767)))
|
||||
INT32_MIN = Constant('INT32_MIN',(-1 - (2147483647)))
|
||||
INT64_MIN = Constant('INT64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_LEAST8_MAX = Constant('INT_LEAST8_MAX',(127))
|
||||
INT_LEAST8_MIN = Constant('INT_LEAST8_MIN',(-1 - (127)))
|
||||
INT_LEAST16_MAX = Constant('INT_LEAST16_MAX',(32767))
|
||||
INT_LEAST16_MIN = Constant('INT_LEAST16_MIN',(-1 - (32767)))
|
||||
INT_LEAST32_MAX = Constant('INT_LEAST32_MAX',(2147483647))
|
||||
INT_LEAST32_MIN = Constant('INT_LEAST32_MIN',(-1 - (2147483647)))
|
||||
INT_LEAST64_MAX = Constant('INT_LEAST64_MAX',(9223372036854775807))
|
||||
INT_LEAST64_MIN = Constant('INT_LEAST64_MIN',(-1 - (9223372036854775807)))
|
||||
UINT8_MAX = Constant('UINT8_MAX',0xff)
|
||||
UINT16_MAX = Constant('UINT16_MAX',0xffff)
|
||||
UINT32_MAX = Constant('UINT32_MAX',0xffffffff)
|
||||
UINT64_MAX = Constant('UINT64_MAX',0xffffffffffffffff)
|
||||
UINT_LEAST8_MAX = Constant('UINT_LEAST8_MAX',0xff)
|
||||
UINT_LEAST16_MAX = Constant('UINT_LEAST16_MAX',0xffff)
|
||||
UINT_LEAST32_MAX = Constant('UINT_LEAST32_MAX',0xffffffff)
|
||||
UINT_LEAST64_MAX = Constant('UINT_LEAST64_MAX',0xffffffffffffffff)
|
||||
INTPTR_MIN = Constant('INTPTR_MIN',(-1 - (9223372036854775807)))
|
||||
INTPTR_MAX = Constant('INTPTR_MAX',(9223372036854775807))
|
||||
UINTPTR_MAX = Constant('UINTPTR_MAX',0xffffffffffffffff)
|
||||
SIZE_MAX = Constant('SIZE_MAX',0xffffffffffffffff)
|
||||
PTRDIFF_MIN = Constant('PTRDIFF_MIN',(-1 - (9223372036854775807)))
|
||||
PTRDIFF_MAX = Constant('PTRDIFF_MAX',(9223372036854775807))
|
||||
INTMAX_MIN = Constant('INTMAX_MIN',(-1 - (9223372036854775807)))
|
||||
INTMAX_MAX = Constant('INTMAX_MAX',(9223372036854775807))
|
||||
UINTMAX_MAX = Constant('UINTMAX_MAX',0xffffffffffffffff)
|
||||
INT_FAST8_MIN = Constant('INT_FAST8_MIN',(-1 - (127)))
|
||||
INT_FAST8_MAX = Constant('INT_FAST8_MAX',(127))
|
||||
INT_FAST64_MIN = Constant('INT_FAST64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST64_MAX = Constant('INT_FAST64_MAX',(9223372036854775807))
|
||||
UINT_FAST8_MAX = Constant('UINT_FAST8_MAX',0xff)
|
||||
UINT_FAST64_MAX = Constant('UINT_FAST64_MAX',0xffffffffffffffff)
|
||||
INT_FAST16_MIN = Constant('INT_FAST16_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST16_MAX = Constant('INT_FAST16_MAX',(9223372036854775807))
|
||||
UINT_FAST16_MAX = Constant('UINT_FAST16_MAX',0xffffffffffffffff)
|
||||
INT_FAST32_MIN = Constant('INT_FAST32_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST32_MAX = Constant('INT_FAST32_MAX',(9223372036854775807))
|
||||
UINT_FAST32_MAX = Constant('UINT_FAST32_MAX',0xffffffffffffffff)
|
||||
WINT_MIN = Constant('WINT_MIN',0)
|
||||
__FSUID_H = Constant('__FSUID_H',1)
|
||||
NSIG = Constant('NSIG',32)
|
||||
_NSIG = Constant('_NSIG',64)
|
||||
_NSIG = Constant('_NSIG',65)
|
||||
SIGHUP = Constant('SIGHUP',1)
|
||||
SIGINT = Constant('SIGINT',2)
|
||||
SIGQUIT = Constant('SIGQUIT',3)
|
||||
@@ -578,7 +695,7 @@ SIGCLD = Constant('SIGCLD',20)
|
||||
SIGPOLL = Constant('SIGPOLL',23)
|
||||
SIGLOST = Constant('SIGLOST',29)
|
||||
SIGRTMIN = Constant('SIGRTMIN',32)
|
||||
SIGRTMAX = Constant('SIGRTMAX',(64-1))
|
||||
SIGRTMAX = Constant('SIGRTMAX',(65-1))
|
||||
SA_ONSTACK = Constant('SA_ONSTACK',0x00000001)
|
||||
SA_RESTART = Constant('SA_RESTART',0x00000002)
|
||||
SA_NOCLDSTOP = Constant('SA_NOCLDSTOP',0x00000004)
|
||||
@@ -626,6 +743,8 @@ _SC_PAGESIZE = Constant('_SC_PAGESIZE',5)
|
||||
_SC_NPROCESSORS_ONLN = Constant('_SC_NPROCESSORS_ONLN',6)
|
||||
_SC_NPROCESSORS_CONF = Constant('_SC_NPROCESSORS_CONF',6)
|
||||
_SC_PHYS_PAGES = Constant('_SC_PHYS_PAGES',7)
|
||||
_SC_GETPW_R_SIZE_MAX = Constant('_SC_GETPW_R_SIZE_MAX',8)
|
||||
_SC_GETGR_R_SIZE_MAX = Constant('_SC_GETGR_R_SIZE_MAX',9)
|
||||
_PC_PATH_MAX = Constant('_PC_PATH_MAX',1)
|
||||
_PC_VDISABLE = Constant('_PC_VDISABLE',2)
|
||||
L_cuserid = Constant('L_cuserid',17)
|
||||
@@ -634,6 +753,7 @@ F_ULOCK = Constant('F_ULOCK',0)
|
||||
F_LOCK = Constant('F_LOCK',1)
|
||||
F_TLOCK = Constant('F_TLOCK',2)
|
||||
F_TEST = Constant('F_TEST',3)
|
||||
_POSIX_MAPPED_FILES = Constant('_POSIX_MAPPED_FILES',200809)
|
||||
S_IFMT = Constant('S_IFMT',0o0170000)
|
||||
S_IFSOCK = Constant('S_IFSOCK',0o140000)
|
||||
S_IFLNK = Constant('S_IFLNK',0o120000)
|
||||
@@ -660,121 +780,82 @@ S_IXOTH = Constant('S_IXOTH',0o0001)
|
||||
S_IREAD = Constant('S_IREAD',0o0400)
|
||||
S_IWRITE = Constant('S_IWRITE',0o0200)
|
||||
S_IEXEC = Constant('S_IEXEC',0o0100)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
O_ACCMODE = Constant('O_ACCMODE',0o003)
|
||||
O_RDONLY = Constant('O_RDONLY',0o0)
|
||||
O_WRONLY = Constant('O_WRONLY',0o1)
|
||||
O_RDWR = Constant('O_RDWR',0o2)
|
||||
O_CREAT = Constant('O_CREAT',0o1000)
|
||||
O_TRUNC = Constant('O_TRUNC',0o2000)
|
||||
O_EXCL = Constant('O_EXCL',0o4000)
|
||||
O_NOCTTY = Constant('O_NOCTTY',0o10000)
|
||||
O_NONBLOCK = Constant('O_NONBLOCK',0o0004)
|
||||
O_APPEND = Constant('O_APPEND',0o0010)
|
||||
O_NDELAY = Constant('O_NDELAY',0o0004)
|
||||
O_SYNC = Constant('O_SYNC',0o40000)
|
||||
FASYNC = Constant('FASYNC',0o20000)
|
||||
O_DIRECTORY = Constant('O_DIRECTORY',0o100000)
|
||||
O_NOFOLLOW = Constant('O_NOFOLLOW',0o200000)
|
||||
O_LARGEFILE = Constant('O_LARGEFILE',0o400000)
|
||||
O_DIRECT = Constant('O_DIRECT',0o2000000)
|
||||
O_NOATIME = Constant('O_NOATIME',0o4000000)
|
||||
F_DUPFD = Constant('F_DUPFD',0)
|
||||
F_GETFD = Constant('F_GETFD',1)
|
||||
F_SETFD = Constant('F_SETFD',2)
|
||||
F_GETFL = Constant('F_GETFL',3)
|
||||
F_SETFL = Constant('F_SETFL',4)
|
||||
F_GETLK = Constant('F_GETLK',7)
|
||||
F_SETLK = Constant('F_SETLK',8)
|
||||
F_SETLKW = Constant('F_SETLKW',9)
|
||||
F_SETOWN = Constant('F_SETOWN',5)
|
||||
F_GETOWN = Constant('F_GETOWN',6)
|
||||
F_SETSIG = Constant('F_SETSIG',10)
|
||||
F_GETSIG = Constant('F_GETSIG',11)
|
||||
FD_CLOEXEC = Constant('FD_CLOEXEC',1)
|
||||
F_RDLCK = Constant('F_RDLCK',1)
|
||||
F_WRLCK = Constant('F_WRLCK',2)
|
||||
F_UNLCK = Constant('F_UNLCK',8)
|
||||
F_EXLCK = Constant('F_EXLCK',16)
|
||||
F_SHLCK = Constant('F_SHLCK',32)
|
||||
F_INPROGRESS = Constant('F_INPROGRESS',64)
|
||||
LOCK_SH = Constant('LOCK_SH',1)
|
||||
LOCK_EX = Constant('LOCK_EX',2)
|
||||
LOCK_NB = Constant('LOCK_NB',4)
|
||||
LOCK_UN = Constant('LOCK_UN',8)
|
||||
LOCK_MAND = Constant('LOCK_MAND',32)
|
||||
LOCK_READ = Constant('LOCK_READ',64)
|
||||
LOCK_WRITE = Constant('LOCK_WRITE',128)
|
||||
LOCK_RW = Constant('LOCK_RW',192)
|
||||
O_ASYNC = Constant('O_ASYNC',0o20000)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_FIXED = Constant('MAP_FIXED',0x100)
|
||||
MAP_ANONYMOUS = Constant('MAP_ANONYMOUS',0x10)
|
||||
MAP_GROWSDOWN = Constant('MAP_GROWSDOWN',0x1000)
|
||||
MAP_DENYWRITE = Constant('MAP_DENYWRITE',0x2000)
|
||||
MAP_EXECUTABLE = Constant('MAP_EXECUTABLE',0x4000)
|
||||
MAP_LOCKED = Constant('MAP_LOCKED',0x8000)
|
||||
MAP_NORESERVE = Constant('MAP_NORESERVE',0x10000)
|
||||
MAP_POPULATE = Constant('MAP_POPULATE',0x20000)
|
||||
MS_ASYNC = Constant('MS_ASYNC',1)
|
||||
MS_SYNC = Constant('MS_SYNC',2)
|
||||
MS_INVALIDATE = Constant('MS_INVALIDATE',4)
|
||||
MCL_CURRENT = Constant('MCL_CURRENT',8192)
|
||||
MCL_FUTURE = Constant('MCL_FUTURE',16384)
|
||||
MADV_NORMAL = Constant('MADV_NORMAL',0)
|
||||
MADV_RANDOM = Constant('MADV_RANDOM',1)
|
||||
MADV_SEQUENTIAL = Constant('MADV_SEQUENTIAL',2)
|
||||
MADV_WILLNEED = Constant('MADV_WILLNEED',3)
|
||||
MADV_SPACEAVAIL = Constant('MADV_SPACEAVAIL',5)
|
||||
MADV_DONTNEED = Constant('MADV_DONTNEED',6)
|
||||
MAP_ANON = Constant('MAP_ANON',0x10)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
_SYS_UIO = Constant('_SYS_UIO',1)
|
||||
SOL_SOCKET = Constant('SOL_SOCKET',0xffff)
|
||||
SO_DEBUG = Constant('SO_DEBUG',0x0001)
|
||||
SO_REUSEADDR = Constant('SO_REUSEADDR',0x0004)
|
||||
SO_TYPE = Constant('SO_TYPE',0x1008)
|
||||
SO_ERROR = Constant('SO_ERROR',0x1007)
|
||||
SO_KEEPALIVE = Constant('SO_KEEPALIVE',0x0008)
|
||||
SO_DONTROUTE = Constant('SO_DONTROUTE',0x0010)
|
||||
SO_BROADCAST = Constant('SO_BROADCAST',0x0020)
|
||||
SO_LINGER = Constant('SO_LINGER',0x0080)
|
||||
SO_OOBINLINE = Constant('SO_OOBINLINE',0x0100)
|
||||
SO_REUSEPORT = Constant('SO_REUSEPORT',0x0200)
|
||||
SO_TYPE = Constant('SO_TYPE',0x1008)
|
||||
SO_ERROR = Constant('SO_ERROR',0x1007)
|
||||
SO_SNDBUF = Constant('SO_SNDBUF',0x1001)
|
||||
SO_RCVBUF = Constant('SO_RCVBUF',0x1002)
|
||||
SO_KEEPALIVE = Constant('SO_KEEPALIVE',0x0008)
|
||||
SO_OOBINLINE = Constant('SO_OOBINLINE',0x0100)
|
||||
SO_NO_CHECK = Constant('SO_NO_CHECK',11)
|
||||
SO_PRIORITY = Constant('SO_PRIORITY',12)
|
||||
SO_LINGER = Constant('SO_LINGER',0x0080)
|
||||
SO_BSDCOMPAT = Constant('SO_BSDCOMPAT',14)
|
||||
SO_PASSCRED = Constant('SO_PASSCRED',17)
|
||||
SO_PEERCRED = Constant('SO_PEERCRED',18)
|
||||
SO_RCVLOWAT = Constant('SO_RCVLOWAT',0x1004)
|
||||
SO_SNDLOWAT = Constant('SO_SNDLOWAT',0x1003)
|
||||
SO_RCVTIMEO = Constant('SO_RCVTIMEO',0x1006)
|
||||
SO_SNDTIMEO = Constant('SO_SNDTIMEO',0x1005)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',0x1009)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',0x100a)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',0x100b)
|
||||
SO_STYLE = Constant('SO_STYLE',0x1008)
|
||||
SO_SECURITY_AUTHENTICATION = Constant('SO_SECURITY_AUTHENTICATION',22)
|
||||
SO_SECURITY_ENCRYPTION_TRANSPORT = Constant('SO_SECURITY_ENCRYPTION_TRANSPORT',23)
|
||||
SO_SECURITY_ENCRYPTION_NETWORK = Constant('SO_SECURITY_ENCRYPTION_NETWORK',24)
|
||||
SO_SECURITY_AUTHENTICATION = Constant('SO_SECURITY_AUTHENTICATION',19)
|
||||
SO_SECURITY_ENCRYPTION_TRANSPORT = Constant('SO_SECURITY_ENCRYPTION_TRANSPORT',20)
|
||||
SO_SECURITY_ENCRYPTION_NETWORK = Constant('SO_SECURITY_ENCRYPTION_NETWORK',21)
|
||||
SO_BINDTODEVICE = Constant('SO_BINDTODEVICE',25)
|
||||
SO_ATTACH_FILTER = Constant('SO_ATTACH_FILTER',26)
|
||||
SO_DETACH_FILTER = Constant('SO_DETACH_FILTER',27)
|
||||
SO_GET_FILTER = Constant('SO_GET_FILTER',26)
|
||||
SO_PEERNAME = Constant('SO_PEERNAME',28)
|
||||
SO_TIMESTAMP = Constant('SO_TIMESTAMP',29)
|
||||
SCM_TIMESTAMP = Constant('SCM_TIMESTAMP',29)
|
||||
SO_PEERSEC = Constant('SO_PEERSEC',30)
|
||||
SO_PASSSEC = Constant('SO_PASSSEC',34)
|
||||
SO_TIMESTAMPNS = Constant('SO_TIMESTAMPNS',35)
|
||||
SCM_TIMESTAMPNS = Constant('SCM_TIMESTAMPNS',35)
|
||||
SO_MARK = Constant('SO_MARK',36)
|
||||
SO_TIMESTAMPING = Constant('SO_TIMESTAMPING',37)
|
||||
SCM_TIMESTAMPING = Constant('SCM_TIMESTAMPING',37)
|
||||
SO_RXQ_OVFL = Constant('SO_RXQ_OVFL',40)
|
||||
SO_WIFI_STATUS = Constant('SO_WIFI_STATUS',41)
|
||||
SCM_WIFI_STATUS = Constant('SCM_WIFI_STATUS',41)
|
||||
SO_PEEK_OFF = Constant('SO_PEEK_OFF',42)
|
||||
SO_NOFCS = Constant('SO_NOFCS',43)
|
||||
SO_LOCK_FILTER = Constant('SO_LOCK_FILTER',44)
|
||||
SO_SELECT_ERR_QUEUE = Constant('SO_SELECT_ERR_QUEUE',45)
|
||||
SO_BUSY_POLL = Constant('SO_BUSY_POLL',46)
|
||||
SO_MAX_PACING_RATE = Constant('SO_MAX_PACING_RATE',47)
|
||||
SO_BPF_EXTENSIONS = Constant('SO_BPF_EXTENSIONS',48)
|
||||
SO_INCOMING_CPU = Constant('SO_INCOMING_CPU',49)
|
||||
SO_ATTACH_BPF = Constant('SO_ATTACH_BPF',50)
|
||||
SO_DETACH_BPF = Constant('SO_DETACH_BPF',27)
|
||||
SO_ATTACH_REUSEPORT_CBPF = Constant('SO_ATTACH_REUSEPORT_CBPF',51)
|
||||
SO_ATTACH_REUSEPORT_EBPF = Constant('SO_ATTACH_REUSEPORT_EBPF',52)
|
||||
SO_CNX_ADVICE = Constant('SO_CNX_ADVICE',53)
|
||||
SCM_TIMESTAMPING_OPT_STATS = Constant('SCM_TIMESTAMPING_OPT_STATS',54)
|
||||
SO_MEMINFO = Constant('SO_MEMINFO',55)
|
||||
SO_INCOMING_NAPI_ID = Constant('SO_INCOMING_NAPI_ID',56)
|
||||
SO_COOKIE = Constant('SO_COOKIE',57)
|
||||
SCM_TIMESTAMPING_PKTINFO = Constant('SCM_TIMESTAMPING_PKTINFO',58)
|
||||
SO_PEERGROUPS = Constant('SO_PEERGROUPS',59)
|
||||
SO_ZEROCOPY = Constant('SO_ZEROCOPY',60)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',0x100a)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',0x100b)
|
||||
SO_RCVLOWAT = Constant('SO_RCVLOWAT',0x1010)
|
||||
SO_SNDLOWAT = Constant('SO_SNDLOWAT',0x1011)
|
||||
SO_RCVTIMEO = Constant('SO_RCVTIMEO',0x1012)
|
||||
SO_SNDTIMEO = Constant('SO_SNDTIMEO',0x1013)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',0x1014)
|
||||
SO_PROTOCOL = Constant('SO_PROTOCOL',0x1028)
|
||||
SO_DOMAIN = Constant('SO_DOMAIN',0x1029)
|
||||
SO_STYLE = Constant('SO_STYLE',0x1008)
|
||||
SOCK_NONBLOCK = Constant('SOCK_NONBLOCK',0x40000000)
|
||||
SOCK_STREAM = Constant('SOCK_STREAM',1)
|
||||
SOCK_DGRAM = Constant('SOCK_DGRAM',2)
|
||||
SOCK_RAW = Constant('SOCK_RAW',3)
|
||||
SOCK_RDM = Constant('SOCK_RDM',4)
|
||||
SOCK_SEQPACKET = Constant('SOCK_SEQPACKET',5)
|
||||
SOCK_DCCP = Constant('SOCK_DCCP',6)
|
||||
SOCK_PACKET = Constant('SOCK_PACKET',10)
|
||||
UIO_FASTIOV = Constant('UIO_FASTIOV',8)
|
||||
UIO_MAXIOV = Constant('UIO_MAXIOV',1024)
|
||||
@@ -808,7 +889,25 @@ AF_SNA = Constant('AF_SNA',22)
|
||||
AF_IRDA = Constant('AF_IRDA',23)
|
||||
AF_PPPOX = Constant('AF_PPPOX',24)
|
||||
AF_WANPIPE = Constant('AF_WANPIPE',25)
|
||||
AF_MAX = Constant('AF_MAX',32)
|
||||
AF_LLC = Constant('AF_LLC',26)
|
||||
AF_IB = Constant('AF_IB',27)
|
||||
AF_MPLS = Constant('AF_MPLS',28)
|
||||
AF_CAN = Constant('AF_CAN',29)
|
||||
AF_TIPC = Constant('AF_TIPC',30)
|
||||
AF_BLUETOOTH = Constant('AF_BLUETOOTH',31)
|
||||
AF_IUCV = Constant('AF_IUCV',32)
|
||||
AF_RXRPC = Constant('AF_RXRPC',33)
|
||||
AF_ISDN = Constant('AF_ISDN',34)
|
||||
AF_PHONET = Constant('AF_PHONET',35)
|
||||
AF_IEEE802154 = Constant('AF_IEEE802154',36)
|
||||
AF_CAIF = Constant('AF_CAIF',37)
|
||||
AF_ALG = Constant('AF_ALG',38)
|
||||
AF_NFC = Constant('AF_NFC',39)
|
||||
AF_VSOCK = Constant('AF_VSOCK',40)
|
||||
AF_KCM = Constant('AF_KCM',41)
|
||||
AF_QIPCRTR = Constant('AF_QIPCRTR',42)
|
||||
AF_SMC = Constant('AF_SMC',43)
|
||||
AF_MAX = Constant('AF_MAX',44)
|
||||
PF_UNSPEC = Constant('PF_UNSPEC',0)
|
||||
PF_UNIX = Constant('PF_UNIX',1)
|
||||
PF_LOCAL = Constant('PF_LOCAL',1)
|
||||
@@ -836,7 +935,25 @@ PF_SNA = Constant('PF_SNA',22)
|
||||
PF_IRDA = Constant('PF_IRDA',23)
|
||||
PF_PPPOX = Constant('PF_PPPOX',24)
|
||||
PF_WANPIPE = Constant('PF_WANPIPE',25)
|
||||
PF_MAX = Constant('PF_MAX',32)
|
||||
PF_LLC = Constant('PF_LLC',26)
|
||||
PF_IB = Constant('PF_IB',27)
|
||||
PF_MPLS = Constant('PF_MPLS',28)
|
||||
PF_CAN = Constant('PF_CAN',29)
|
||||
PF_TIPC = Constant('PF_TIPC',30)
|
||||
PF_BLUETOOTH = Constant('PF_BLUETOOTH',31)
|
||||
PF_IUCV = Constant('PF_IUCV',32)
|
||||
PF_RXRPC = Constant('PF_RXRPC',33)
|
||||
PF_ISDN = Constant('PF_ISDN',34)
|
||||
PF_PHONET = Constant('PF_PHONET',35)
|
||||
PF_IEEE802154 = Constant('PF_IEEE802154',36)
|
||||
PF_CAIF = Constant('PF_CAIF',37)
|
||||
PF_ALG = Constant('PF_ALG',38)
|
||||
PF_NFC = Constant('PF_NFC',39)
|
||||
PF_VSOCK = Constant('PF_VSOCK',40)
|
||||
PF_KCM = Constant('PF_KCM',41)
|
||||
PF_QIPCRTR = Constant('PF_QIPCRTR',42)
|
||||
PF_SMC = Constant('PF_SMC',43)
|
||||
PF_MAX = Constant('PF_MAX',44)
|
||||
SOMAXCONN = Constant('SOMAXCONN',128)
|
||||
MSG_OOB = Constant('MSG_OOB',1)
|
||||
MSG_PEEK = Constant('MSG_PEEK',2)
|
||||
@@ -849,18 +966,26 @@ MSG_DONTWAIT = Constant('MSG_DONTWAIT',0x40)
|
||||
MSG_EOR = Constant('MSG_EOR',0x80)
|
||||
MSG_WAITALL = Constant('MSG_WAITALL',0x100)
|
||||
MSG_FIN = Constant('MSG_FIN',0x200)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_SYN = Constant('MSG_SYN',0x400)
|
||||
MSG_CONFIRM = Constant('MSG_CONFIRM',0x800)
|
||||
MSG_RST = Constant('MSG_RST',0x1000)
|
||||
MSG_ERRQUEUE = Constant('MSG_ERRQUEUE',0x2000)
|
||||
MSG_NOSIGNAL = Constant('MSG_NOSIGNAL',0x4000)
|
||||
MSG_MORE = Constant('MSG_MORE',0x8000)
|
||||
MSG_WAITFORONE = Constant('MSG_WAITFORONE',0x10000)
|
||||
MSG_SENDPAGE_NOTLAST = Constant('MSG_SENDPAGE_NOTLAST',0x20000)
|
||||
MSG_BATCH = Constant('MSG_BATCH',0x40000)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_ZEROCOPY = Constant('MSG_ZEROCOPY',0x4000000)
|
||||
MSG_FASTOPEN = Constant('MSG_FASTOPEN',0x20000000)
|
||||
MSG_CMSG_CLOEXEC = Constant('MSG_CMSG_CLOEXEC',0x40000000)
|
||||
SOL_IP = Constant('SOL_IP',0)
|
||||
SOL_TCP = Constant('SOL_TCP',6)
|
||||
SOL_UDP = Constant('SOL_UDP',17)
|
||||
SOL_IPV6 = Constant('SOL_IPV6',41)
|
||||
SOL_ICMPV6 = Constant('SOL_ICMPV6',58)
|
||||
SOL_SCTP = Constant('SOL_SCTP',132)
|
||||
SOL_UDPLITE = Constant('SOL_UDPLITE',136)
|
||||
SOL_RAW = Constant('SOL_RAW',255)
|
||||
SOL_IPX = Constant('SOL_IPX',256)
|
||||
SOL_AX25 = Constant('SOL_AX25',257)
|
||||
@@ -873,6 +998,22 @@ SOL_PACKET = Constant('SOL_PACKET',263)
|
||||
SOL_ATM = Constant('SOL_ATM',264)
|
||||
SOL_AAL = Constant('SOL_AAL',265)
|
||||
SOL_IRDA = Constant('SOL_IRDA',266)
|
||||
SOL_NETBEUI = Constant('SOL_NETBEUI',267)
|
||||
SOL_LLC = Constant('SOL_LLC',268)
|
||||
SOL_DCCP = Constant('SOL_DCCP',269)
|
||||
SOL_NETLINK = Constant('SOL_NETLINK',270)
|
||||
SOL_TIPC = Constant('SOL_TIPC',271)
|
||||
SOL_RXRPC = Constant('SOL_RXRPC',272)
|
||||
SOL_PPPOL2TP = Constant('SOL_PPPOL2TP',273)
|
||||
SOL_BLUETOOTH = Constant('SOL_BLUETOOTH',274)
|
||||
SOL_PNPIPE = Constant('SOL_PNPIPE',275)
|
||||
SOL_RDS = Constant('SOL_RDS',276)
|
||||
SOL_IUCV = Constant('SOL_IUCV',277)
|
||||
SOL_CAIF = Constant('SOL_CAIF',278)
|
||||
SOL_ALG = Constant('SOL_ALG',279)
|
||||
SOL_NFC = Constant('SOL_NFC',280)
|
||||
SOL_KCM = Constant('SOL_KCM',281)
|
||||
SOL_TLS = Constant('SOL_TLS',282)
|
||||
IPX_TYPE = Constant('IPX_TYPE',1)
|
||||
SHUT_RD = Constant('SHUT_RD',0)
|
||||
SHUT_WR = Constant('SHUT_WR',1)
|
||||
@@ -896,6 +1037,10 @@ EAI_SYSTEM = Constant('EAI_SYSTEM',-11)
|
||||
AI_NUMERICHOST = Constant('AI_NUMERICHOST',1)
|
||||
AI_CANONNAME = Constant('AI_CANONNAME',2)
|
||||
AI_PASSIVE = Constant('AI_PASSIVE',4)
|
||||
AI_NUMERICSERV = Constant('AI_NUMERICSERV',8)
|
||||
AI_ADDRCONFIG = Constant('AI_ADDRCONFIG',16)
|
||||
AI_V4MAPPED = Constant('AI_V4MAPPED',32)
|
||||
AI_ALL = Constant('AI_ALL',64)
|
||||
SIOCADDRT = Constant('SIOCADDRT',0x890B)
|
||||
SIOCDELRT = Constant('SIOCDELRT',0x890C)
|
||||
SIOCRTMSG = Constant('SIOCRTMSG',0x890D)
|
||||
@@ -952,6 +1097,128 @@ SIOCSIFMAP = Constant('SIOCSIFMAP',0x8971)
|
||||
SIOCADDDLCI = Constant('SIOCADDDLCI',0x8980)
|
||||
SIOCDELDLCI = Constant('SIOCDELDLCI',0x8981)
|
||||
SIOCDEVPRIVATE = Constant('SIOCDEVPRIVATE',0x89F0)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
O_ACCMODE = Constant('O_ACCMODE',0o003)
|
||||
O_RDONLY = Constant('O_RDONLY',0o0)
|
||||
O_WRONLY = Constant('O_WRONLY',0o1)
|
||||
O_RDWR = Constant('O_RDWR',0o2)
|
||||
O_CREAT = Constant('O_CREAT',0o1000)
|
||||
O_TRUNC = Constant('O_TRUNC',0o2000)
|
||||
O_EXCL = Constant('O_EXCL',0o4000)
|
||||
O_NOCTTY = Constant('O_NOCTTY',0o10000)
|
||||
O_NONBLOCK = Constant('O_NONBLOCK',0o0004)
|
||||
O_APPEND = Constant('O_APPEND',0o0010)
|
||||
O_NDELAY = Constant('O_NDELAY',0o0004)
|
||||
O_DSYNC = Constant('O_DSYNC',0o40000)
|
||||
FASYNC = Constant('FASYNC',0o20000)
|
||||
O_DIRECTORY = Constant('O_DIRECTORY',0o100000)
|
||||
O_NOFOLLOW = Constant('O_NOFOLLOW',0o200000)
|
||||
O_LARGEFILE = Constant('O_LARGEFILE',0o400000)
|
||||
O_DIRECT = Constant('O_DIRECT',0o2000000)
|
||||
O_NOATIME = Constant('O_NOATIME',0o4000000)
|
||||
O_CLOEXEC = Constant('O_CLOEXEC',0o10000000)
|
||||
O_SYNC = Constant('O_SYNC',(0o20000000|0o40000))
|
||||
O_PATH = Constant('O_PATH',0o40000000)
|
||||
__O_TMPFILE = Constant('__O_TMPFILE',0o100000000)
|
||||
F_DUPFD = Constant('F_DUPFD',0)
|
||||
F_GETFD = Constant('F_GETFD',1)
|
||||
F_SETFD = Constant('F_SETFD',2)
|
||||
F_GETFL = Constant('F_GETFL',3)
|
||||
F_SETFL = Constant('F_SETFL',4)
|
||||
F_GETLK = Constant('F_GETLK',7)
|
||||
F_SETLK = Constant('F_SETLK',8)
|
||||
F_SETLKW = Constant('F_SETLKW',9)
|
||||
F_SETOWN = Constant('F_SETOWN',5)
|
||||
F_GETOWN = Constant('F_GETOWN',6)
|
||||
F_SETSIG = Constant('F_SETSIG',10)
|
||||
F_GETSIG = Constant('F_GETSIG',11)
|
||||
FD_CLOEXEC = Constant('FD_CLOEXEC',1)
|
||||
F_RDLCK = Constant('F_RDLCK',1)
|
||||
F_WRLCK = Constant('F_WRLCK',2)
|
||||
F_UNLCK = Constant('F_UNLCK',8)
|
||||
F_EXLCK = Constant('F_EXLCK',16)
|
||||
F_SHLCK = Constant('F_SHLCK',32)
|
||||
F_INPROGRESS = Constant('F_INPROGRESS',64)
|
||||
LOCK_SH = Constant('LOCK_SH',1)
|
||||
LOCK_EX = Constant('LOCK_EX',2)
|
||||
LOCK_NB = Constant('LOCK_NB',4)
|
||||
LOCK_UN = Constant('LOCK_UN',8)
|
||||
LOCK_MAND = Constant('LOCK_MAND',32)
|
||||
LOCK_READ = Constant('LOCK_READ',64)
|
||||
LOCK_WRITE = Constant('LOCK_WRITE',128)
|
||||
LOCK_RW = Constant('LOCK_RW',192)
|
||||
O_TMPFILE = Constant('O_TMPFILE',(0o100000000 | 0o100000))
|
||||
O_ASYNC = Constant('O_ASYNC',0o20000)
|
||||
F_SETOWN_EX = Constant('F_SETOWN_EX',15)
|
||||
F_GETOWN_EX = Constant('F_GETOWN_EX',16)
|
||||
F_GETOWNER_UIDS = Constant('F_GETOWNER_UIDS',17)
|
||||
F_OFD_GETLK = Constant('F_OFD_GETLK',36)
|
||||
F_OFD_SETLK = Constant('F_OFD_SETLK',37)
|
||||
F_OFD_SETLKW = Constant('F_OFD_SETLKW',38)
|
||||
F_OWNER_TID = Constant('F_OWNER_TID',0)
|
||||
F_OWNER_PID = Constant('F_OWNER_PID',1)
|
||||
F_OWNER_PGRP = Constant('F_OWNER_PGRP',2)
|
||||
AT_FDCWD = Constant('AT_FDCWD',-100)
|
||||
AT_SYMLINK_NOFOLLOW = Constant('AT_SYMLINK_NOFOLLOW',0x100)
|
||||
AT_REMOVEDIR = Constant('AT_REMOVEDIR',0x200)
|
||||
AT_SYMLINK_FOLLOW = Constant('AT_SYMLINK_FOLLOW',0x400)
|
||||
AT_NO_AUTOMOUNT = Constant('AT_NO_AUTOMOUNT',0x800)
|
||||
AT_EMPTY_PATH = Constant('AT_EMPTY_PATH',0x1000)
|
||||
AT_EACCESS = Constant('AT_EACCESS',0x200)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_SEM = Constant('PROT_SEM',0x8)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
PROT_GROWSDOWN = Constant('PROT_GROWSDOWN',0x01000000)
|
||||
PROT_GROWSUP = Constant('PROT_GROWSUP',0x02000000)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_TYPE = Constant('MAP_TYPE',0xf)
|
||||
MADV_REMOVE = Constant('MADV_REMOVE',9)
|
||||
MADV_DONTFORK = Constant('MADV_DONTFORK',10)
|
||||
MADV_DOFORK = Constant('MADV_DOFORK',11)
|
||||
MADV_MERGEABLE = Constant('MADV_MERGEABLE',12)
|
||||
MADV_UNMERGEABLE = Constant('MADV_UNMERGEABLE',13)
|
||||
MADV_HUGEPAGE = Constant('MADV_HUGEPAGE',14)
|
||||
MADV_NOHUGEPAGE = Constant('MADV_NOHUGEPAGE',15)
|
||||
MADV_DONTDUMP = Constant('MADV_DONTDUMP',16)
|
||||
MADV_DODUMP = Constant('MADV_DODUMP',17)
|
||||
MADV_HWPOISON = Constant('MADV_HWPOISON',100)
|
||||
MADV_SOFT_OFFLINE = Constant('MADV_SOFT_OFFLINE',101)
|
||||
MLOCK_ONFAULT = Constant('MLOCK_ONFAULT',1)
|
||||
MAP_FIXED = Constant('MAP_FIXED',0x100)
|
||||
MAP_ANONYMOUS = Constant('MAP_ANONYMOUS',0x10)
|
||||
MAP_GROWSDOWN = Constant('MAP_GROWSDOWN',0x1000)
|
||||
MAP_DENYWRITE = Constant('MAP_DENYWRITE',0x2000)
|
||||
MAP_EXECUTABLE = Constant('MAP_EXECUTABLE',0x4000)
|
||||
MAP_LOCKED = Constant('MAP_LOCKED',0x8000)
|
||||
MAP_NORESERVE = Constant('MAP_NORESERVE',0x10000)
|
||||
MAP_POPULATE = Constant('MAP_POPULATE',0x20000)
|
||||
MAP_NONBLOCK = Constant('MAP_NONBLOCK',0x40000)
|
||||
MAP_STACK = Constant('MAP_STACK',0x80000)
|
||||
MAP_HUGETLB = Constant('MAP_HUGETLB',0x100000)
|
||||
MS_ASYNC = Constant('MS_ASYNC',1)
|
||||
MS_SYNC = Constant('MS_SYNC',2)
|
||||
MS_INVALIDATE = Constant('MS_INVALIDATE',4)
|
||||
MCL_CURRENT = Constant('MCL_CURRENT',8192)
|
||||
MCL_FUTURE = Constant('MCL_FUTURE',16384)
|
||||
MCL_ONFAULT = Constant('MCL_ONFAULT',32768)
|
||||
MADV_NORMAL = Constant('MADV_NORMAL',0)
|
||||
MADV_RANDOM = Constant('MADV_RANDOM',1)
|
||||
MADV_SEQUENTIAL = Constant('MADV_SEQUENTIAL',2)
|
||||
MADV_WILLNEED = Constant('MADV_WILLNEED',3)
|
||||
MADV_SPACEAVAIL = Constant('MADV_SPACEAVAIL',5)
|
||||
MADV_DONTNEED = Constant('MADV_DONTNEED',6)
|
||||
MAP_ANON = Constant('MAP_ANON',0x10)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
POSIX_MADV_NORMAL = Constant('POSIX_MADV_NORMAL',0)
|
||||
POSIX_MADV_SEQUENTIAL = Constant('POSIX_MADV_SEQUENTIAL',2)
|
||||
POSIX_MADV_RANDOM = Constant('POSIX_MADV_RANDOM',1)
|
||||
POSIX_MADV_WILLNEED = Constant('POSIX_MADV_WILLNEED',3)
|
||||
POSIX_MADV_DONTNEED = Constant('POSIX_MADV_DONTNEED',6)
|
||||
PTRACE_TRACEME = Constant('PTRACE_TRACEME',0)
|
||||
PTRACE_PEEKTEXT = Constant('PTRACE_PEEKTEXT',1)
|
||||
PTRACE_PEEKDATA = Constant('PTRACE_PEEKDATA',2)
|
||||
@@ -997,6 +1264,7 @@ PT_STEP = Constant('PT_STEP',9)
|
||||
PT_ATTACH = Constant('PT_ATTACH',0x10)
|
||||
PT_DETACH = Constant('PT_DETACH',0x11)
|
||||
SYS_accept = Constant('SYS_accept',99)
|
||||
SYS_accept4 = Constant('SYS_accept4',502)
|
||||
SYS_access = Constant('SYS_access',33)
|
||||
SYS_acct = Constant('SYS_acct',51)
|
||||
SYS_add_key = Constant('SYS_add_key',439)
|
||||
@@ -1004,6 +1272,7 @@ SYS_adjtimex = Constant('SYS_adjtimex',366)
|
||||
SYS_afs_syscall = Constant('SYS_afs_syscall',338)
|
||||
SYS_bdflush = Constant('SYS_bdflush',300)
|
||||
SYS_bind = Constant('SYS_bind',104)
|
||||
SYS_bpf = Constant('SYS_bpf',515)
|
||||
SYS_brk = Constant('SYS_brk',17)
|
||||
SYS_capget = Constant('SYS_capget',368)
|
||||
SYS_capset = Constant('SYS_capset',369)
|
||||
@@ -1011,6 +1280,7 @@ SYS_chdir = Constant('SYS_chdir',12)
|
||||
SYS_chmod = Constant('SYS_chmod',15)
|
||||
SYS_chown = Constant('SYS_chown',16)
|
||||
SYS_chroot = Constant('SYS_chroot',61)
|
||||
SYS_clock_adjtime = Constant('SYS_clock_adjtime',499)
|
||||
SYS_clock_getres = Constant('SYS_clock_getres',421)
|
||||
SYS_clock_gettime = Constant('SYS_clock_gettime',420)
|
||||
SYS_clock_nanosleep = Constant('SYS_clock_nanosleep',422)
|
||||
@@ -1018,19 +1288,27 @@ SYS_clock_settime = Constant('SYS_clock_settime',419)
|
||||
SYS_clone = Constant('SYS_clone',312)
|
||||
SYS_close = Constant('SYS_close',6)
|
||||
SYS_connect = Constant('SYS_connect',98)
|
||||
SYS_copy_file_range = Constant('SYS_copy_file_range',519)
|
||||
SYS_create_module = Constant('SYS_create_module',306)
|
||||
SYS_delete_module = Constant('SYS_delete_module',308)
|
||||
SYS_dipc = Constant('SYS_dipc',373)
|
||||
SYS_dup = Constant('SYS_dup',41)
|
||||
SYS_dup2 = Constant('SYS_dup2',90)
|
||||
SYS_dup3 = Constant('SYS_dup3',487)
|
||||
SYS_epoll_create1 = Constant('SYS_epoll_create1',486)
|
||||
SYS_epoll_pwait = Constant('SYS_epoll_pwait',474)
|
||||
SYS_eventfd = Constant('SYS_eventfd',478)
|
||||
SYS_eventfd2 = Constant('SYS_eventfd2',485)
|
||||
SYS_execve = Constant('SYS_execve',59)
|
||||
SYS_execveat = Constant('SYS_execveat',513)
|
||||
SYS_exec_with_loader = Constant('SYS_exec_with_loader',25)
|
||||
SYS_exit = Constant('SYS_exit',1)
|
||||
SYS_exit_group = Constant('SYS_exit_group',405)
|
||||
SYS_faccessat = Constant('SYS_faccessat',462)
|
||||
SYS_fadvise64 = Constant('SYS_fadvise64',413)
|
||||
SYS_fallocate = Constant('SYS_fallocate',480)
|
||||
SYS_fanotify_init = Constant('SYS_fanotify_init',494)
|
||||
SYS_fanotify_mark = Constant('SYS_fanotify_mark',495)
|
||||
SYS_fchdir = Constant('SYS_fchdir',13)
|
||||
SYS_fchmod = Constant('SYS_fchmod',124)
|
||||
SYS_fchmodat = Constant('SYS_fchmodat',461)
|
||||
@@ -1039,15 +1317,21 @@ SYS_fchownat = Constant('SYS_fchownat',453)
|
||||
SYS_fcntl = Constant('SYS_fcntl',92)
|
||||
SYS_fdatasync = Constant('SYS_fdatasync',447)
|
||||
SYS_fgetxattr = Constant('SYS_fgetxattr',387)
|
||||
SYS_finit_module = Constant('SYS_finit_module',507)
|
||||
SYS_flistxattr = Constant('SYS_flistxattr',390)
|
||||
SYS_flock = Constant('SYS_flock',131)
|
||||
SYS_fork = Constant('SYS_fork',2)
|
||||
SYS_fremovexattr = Constant('SYS_fremovexattr',393)
|
||||
SYS_fsconfig = Constant('SYS_fsconfig',541)
|
||||
SYS_fsetxattr = Constant('SYS_fsetxattr',384)
|
||||
SYS_fsmount = Constant('SYS_fsmount',542)
|
||||
SYS_fsopen = Constant('SYS_fsopen',540)
|
||||
SYS_fspick = Constant('SYS_fspick',543)
|
||||
SYS_fstat = Constant('SYS_fstat',91)
|
||||
SYS_fstat64 = Constant('SYS_fstat64',427)
|
||||
SYS_fstatat64 = Constant('SYS_fstatat64',455)
|
||||
SYS_fstatfs = Constant('SYS_fstatfs',329)
|
||||
SYS_fstatfs64 = Constant('SYS_fstatfs64',529)
|
||||
SYS_fsync = Constant('SYS_fsync',95)
|
||||
SYS_ftruncate = Constant('SYS_ftruncate',130)
|
||||
SYS_futex = Constant('SYS_futex',394)
|
||||
@@ -1057,6 +1341,8 @@ SYS_getcwd = Constant('SYS_getcwd',367)
|
||||
SYS_getdents = Constant('SYS_getdents',305)
|
||||
SYS_getdents64 = Constant('SYS_getdents64',377)
|
||||
SYS_getdtablesize = Constant('SYS_getdtablesize',89)
|
||||
SYS_getegid = Constant('SYS_getegid',530)
|
||||
SYS_geteuid = Constant('SYS_geteuid',531)
|
||||
SYS_getgroups = Constant('SYS_getgroups',79)
|
||||
SYS_gethostname = Constant('SYS_gethostname',87)
|
||||
SYS_getitimer = Constant('SYS_getitimer',361)
|
||||
@@ -1066,7 +1352,9 @@ SYS_getpagesize = Constant('SYS_getpagesize',64)
|
||||
SYS_getpeername = Constant('SYS_getpeername',141)
|
||||
SYS_getpgid = Constant('SYS_getpgid',233)
|
||||
SYS_getpgrp = Constant('SYS_getpgrp',63)
|
||||
SYS_getppid = Constant('SYS_getppid',532)
|
||||
SYS_getpriority = Constant('SYS_getpriority',100)
|
||||
SYS_getrandom = Constant('SYS_getrandom',511)
|
||||
SYS_getresgid = Constant('SYS_getresgid',372)
|
||||
SYS_getresuid = Constant('SYS_getresuid',344)
|
||||
SYS_getrlimit = Constant('SYS_getrlimit',144)
|
||||
@@ -1084,15 +1372,21 @@ SYS_getxuid = Constant('SYS_getxuid',24)
|
||||
SYS_init_module = Constant('SYS_init_module',307)
|
||||
SYS_inotify_add_watch = Constant('SYS_inotify_add_watch',445)
|
||||
SYS_inotify_init = Constant('SYS_inotify_init',444)
|
||||
SYS_inotify_init1 = Constant('SYS_inotify_init1',489)
|
||||
SYS_inotify_rm_watch = Constant('SYS_inotify_rm_watch',446)
|
||||
SYS_io_cancel = Constant('SYS_io_cancel',402)
|
||||
SYS_ioctl = Constant('SYS_ioctl',54)
|
||||
SYS_io_destroy = Constant('SYS_io_destroy',399)
|
||||
SYS_io_getevents = Constant('SYS_io_getevents',400)
|
||||
SYS_io_pgetevents = Constant('SYS_io_pgetevents',523)
|
||||
SYS_ioprio_get = Constant('SYS_ioprio_get',443)
|
||||
SYS_ioprio_set = Constant('SYS_ioprio_set',442)
|
||||
SYS_io_setup = Constant('SYS_io_setup',398)
|
||||
SYS_io_submit = Constant('SYS_io_submit',401)
|
||||
SYS_io_uring_enter = Constant('SYS_io_uring_enter',536)
|
||||
SYS_io_uring_register = Constant('SYS_io_uring_register',537)
|
||||
SYS_io_uring_setup = Constant('SYS_io_uring_setup',535)
|
||||
SYS_kcmp = Constant('SYS_kcmp',506)
|
||||
SYS_kexec_load = Constant('SYS_kexec_load',448)
|
||||
SYS_keyctl = Constant('SYS_keyctl',441)
|
||||
SYS_kill = Constant('SYS_kill',37)
|
||||
@@ -1111,6 +1405,8 @@ SYS_lstat = Constant('SYS_lstat',68)
|
||||
SYS_lstat64 = Constant('SYS_lstat64',426)
|
||||
SYS_madvise = Constant('SYS_madvise',75)
|
||||
SYS_mbind = Constant('SYS_mbind',429)
|
||||
SYS_membarrier = Constant('SYS_membarrier',517)
|
||||
SYS_memfd_create = Constant('SYS_memfd_create',512)
|
||||
SYS_migrate_pages = Constant('SYS_migrate_pages',449)
|
||||
SYS_mincore = Constant('SYS_mincore',375)
|
||||
SYS_mkdir = Constant('SYS_mkdir',136)
|
||||
@@ -1118,9 +1414,11 @@ SYS_mkdirat = Constant('SYS_mkdirat',451)
|
||||
SYS_mknod = Constant('SYS_mknod',14)
|
||||
SYS_mknodat = Constant('SYS_mknodat',452)
|
||||
SYS_mlock = Constant('SYS_mlock',314)
|
||||
SYS_mlock2 = Constant('SYS_mlock2',518)
|
||||
SYS_mlockall = Constant('SYS_mlockall',316)
|
||||
SYS_mmap = Constant('SYS_mmap',71)
|
||||
SYS_mount = Constant('SYS_mount',302)
|
||||
SYS_move_mount = Constant('SYS_move_mount',539)
|
||||
SYS_move_pages = Constant('SYS_move_pages',472)
|
||||
SYS_mprotect = Constant('SYS_mprotect',74)
|
||||
SYS_mq_getsetattr = Constant('SYS_mq_getsetattr',437)
|
||||
@@ -1138,12 +1436,16 @@ SYS_msync = Constant('SYS_msync',217)
|
||||
SYS_munlock = Constant('SYS_munlock',315)
|
||||
SYS_munlockall = Constant('SYS_munlockall',317)
|
||||
SYS_munmap = Constant('SYS_munmap',73)
|
||||
SYS_name_to_handle_at = Constant('SYS_name_to_handle_at',497)
|
||||
SYS_nanosleep = Constant('SYS_nanosleep',340)
|
||||
SYS_nfsservctl = Constant('SYS_nfsservctl',342)
|
||||
SYS_old_adjtimex = Constant('SYS_old_adjtimex',303)
|
||||
SYS_oldumount = Constant('SYS_oldumount',321)
|
||||
SYS_open = Constant('SYS_open',45)
|
||||
SYS_openat = Constant('SYS_openat',450)
|
||||
SYS_openat2 = Constant('SYS_openat2',547)
|
||||
SYS_open_by_handle_at = Constant('SYS_open_by_handle_at',498)
|
||||
SYS_open_tree = Constant('SYS_open_tree',538)
|
||||
SYS_osf_adjtime = Constant('SYS_osf_adjtime',140)
|
||||
SYS_osf_afs_syscall = Constant('SYS_osf_afs_syscall',258)
|
||||
SYS_osf_alt_plock = Constant('SYS_osf_alt_plock',181)
|
||||
@@ -1252,16 +1554,31 @@ SYS_osf_waitid = Constant('SYS_osf_waitid',236)
|
||||
SYS_pciconfig_iobase = Constant('SYS_pciconfig_iobase',376)
|
||||
SYS_pciconfig_read = Constant('SYS_pciconfig_read',345)
|
||||
SYS_pciconfig_write = Constant('SYS_pciconfig_write',346)
|
||||
SYS_perf_event_open = Constant('SYS_perf_event_open',493)
|
||||
SYS_personality = Constant('SYS_personality',324)
|
||||
SYS_pidfd_getfd = Constant('SYS_pidfd_getfd',548)
|
||||
SYS_pidfd_open = Constant('SYS_pidfd_open',544)
|
||||
SYS_pidfd_send_signal = Constant('SYS_pidfd_send_signal',534)
|
||||
SYS_pipe = Constant('SYS_pipe',42)
|
||||
SYS_pipe2 = Constant('SYS_pipe2',488)
|
||||
SYS_pivot_root = Constant('SYS_pivot_root',374)
|
||||
SYS_pkey_alloc = Constant('SYS_pkey_alloc',525)
|
||||
SYS_pkey_free = Constant('SYS_pkey_free',526)
|
||||
SYS_pkey_mprotect = Constant('SYS_pkey_mprotect',524)
|
||||
SYS_poll = Constant('SYS_poll',94)
|
||||
SYS_ppoll = Constant('SYS_ppoll',464)
|
||||
SYS_prctl = Constant('SYS_prctl',348)
|
||||
SYS_pread = Constant('SYS_pread',349)
|
||||
SYS_preadv = Constant('SYS_preadv',490)
|
||||
SYS_preadv2 = Constant('SYS_preadv2',520)
|
||||
SYS_prlimit64 = Constant('SYS_prlimit64',496)
|
||||
SYS_process_vm_readv = Constant('SYS_process_vm_readv',504)
|
||||
SYS_process_vm_writev = Constant('SYS_process_vm_writev',505)
|
||||
SYS_pselect6 = Constant('SYS_pselect6',463)
|
||||
SYS_ptrace = Constant('SYS_ptrace',26)
|
||||
SYS_pwrite = Constant('SYS_pwrite',350)
|
||||
SYS_pwritev = Constant('SYS_pwritev',491)
|
||||
SYS_pwritev2 = Constant('SYS_pwritev2',521)
|
||||
SYS_query_module = Constant('SYS_query_module',347)
|
||||
SYS_quotactl = Constant('SYS_quotactl',148)
|
||||
SYS_read = Constant('SYS_read',3)
|
||||
@@ -1272,14 +1589,17 @@ SYS_readv = Constant('SYS_readv',120)
|
||||
SYS_reboot = Constant('SYS_reboot',311)
|
||||
SYS_recv = Constant('SYS_recv',102)
|
||||
SYS_recvfrom = Constant('SYS_recvfrom',125)
|
||||
SYS_recvmmsg = Constant('SYS_recvmmsg',479)
|
||||
SYS_recvmsg = Constant('SYS_recvmsg',113)
|
||||
SYS_remap_file_pages = Constant('SYS_remap_file_pages',410)
|
||||
SYS_removexattr = Constant('SYS_removexattr',391)
|
||||
SYS_rename = Constant('SYS_rename',128)
|
||||
SYS_renameat = Constant('SYS_renameat',457)
|
||||
SYS_renameat2 = Constant('SYS_renameat2',510)
|
||||
SYS_request_key = Constant('SYS_request_key',440)
|
||||
SYS_restart_syscall = Constant('SYS_restart_syscall',412)
|
||||
SYS_rmdir = Constant('SYS_rmdir',137)
|
||||
SYS_rseq = Constant('SYS_rseq',527)
|
||||
SYS_rt_sigaction = Constant('SYS_rt_sigaction',352)
|
||||
SYS_rt_sigpending = Constant('SYS_rt_sigpending',354)
|
||||
SYS_rt_sigprocmask = Constant('SYS_rt_sigprocmask',353)
|
||||
@@ -1287,16 +1607,20 @@ SYS_rt_sigqueueinfo = Constant('SYS_rt_sigqueueinfo',356)
|
||||
SYS_rt_sigreturn = Constant('SYS_rt_sigreturn',351)
|
||||
SYS_rt_sigsuspend = Constant('SYS_rt_sigsuspend',357)
|
||||
SYS_rt_sigtimedwait = Constant('SYS_rt_sigtimedwait',355)
|
||||
SYS_rt_tgsigqueueinfo = Constant('SYS_rt_tgsigqueueinfo',492)
|
||||
SYS_sched_getaffinity = Constant('SYS_sched_getaffinity',396)
|
||||
SYS_sched_getattr = Constant('SYS_sched_getattr',509)
|
||||
SYS_sched_getparam = Constant('SYS_sched_getparam',331)
|
||||
SYS_sched_get_priority_max = Constant('SYS_sched_get_priority_max',335)
|
||||
SYS_sched_get_priority_min = Constant('SYS_sched_get_priority_min',336)
|
||||
SYS_sched_getscheduler = Constant('SYS_sched_getscheduler',333)
|
||||
SYS_sched_rr_get_interval = Constant('SYS_sched_rr_get_interval',337)
|
||||
SYS_sched_setaffinity = Constant('SYS_sched_setaffinity',395)
|
||||
SYS_sched_setattr = Constant('SYS_sched_setattr',508)
|
||||
SYS_sched_setparam = Constant('SYS_sched_setparam',330)
|
||||
SYS_sched_setscheduler = Constant('SYS_sched_setscheduler',332)
|
||||
SYS_sched_yield = Constant('SYS_sched_yield',334)
|
||||
SYS_seccomp = Constant('SYS_seccomp',514)
|
||||
SYS_select = Constant('SYS_select',358)
|
||||
SYS_semctl = Constant('SYS_semctl',204)
|
||||
SYS_semget = Constant('SYS_semget',205)
|
||||
@@ -1304,6 +1628,7 @@ SYS_semop = Constant('SYS_semop',206)
|
||||
SYS_semtimedop = Constant('SYS_semtimedop',423)
|
||||
SYS_send = Constant('SYS_send',101)
|
||||
SYS_sendfile = Constant('SYS_sendfile',370)
|
||||
SYS_sendmmsg = Constant('SYS_sendmmsg',503)
|
||||
SYS_sendmsg = Constant('SYS_sendmsg',114)
|
||||
SYS_sendto = Constant('SYS_sendto',133)
|
||||
SYS_setdomainname = Constant('SYS_setdomainname',166)
|
||||
@@ -1315,6 +1640,7 @@ SYS_sethae = Constant('SYS_sethae',301)
|
||||
SYS_sethostname = Constant('SYS_sethostname',88)
|
||||
SYS_setitimer = Constant('SYS_setitimer',362)
|
||||
SYS_set_mempolicy = Constant('SYS_set_mempolicy',431)
|
||||
SYS_setns = Constant('SYS_setns',501)
|
||||
SYS_setpgid = Constant('SYS_setpgid',39)
|
||||
SYS_setpgrp = Constant('SYS_setpgrp',82)
|
||||
SYS_setpriority = Constant('SYS_setpriority',96)
|
||||
@@ -1337,6 +1663,7 @@ SYS_shutdown = Constant('SYS_shutdown',134)
|
||||
SYS_sigaction = Constant('SYS_sigaction',156)
|
||||
SYS_sigaltstack = Constant('SYS_sigaltstack',235)
|
||||
SYS_signalfd = Constant('SYS_signalfd',476)
|
||||
SYS_signalfd4 = Constant('SYS_signalfd4',484)
|
||||
SYS_sigpending = Constant('SYS_sigpending',52)
|
||||
SYS_sigreturn = Constant('SYS_sigreturn',103)
|
||||
SYS_sigsuspend = Constant('SYS_sigsuspend',111)
|
||||
@@ -1346,12 +1673,15 @@ SYS_splice = Constant('SYS_splice',468)
|
||||
SYS_stat = Constant('SYS_stat',67)
|
||||
SYS_stat64 = Constant('SYS_stat64',425)
|
||||
SYS_statfs = Constant('SYS_statfs',328)
|
||||
SYS_statfs64 = Constant('SYS_statfs64',528)
|
||||
SYS_statx = Constant('SYS_statx',522)
|
||||
SYS_swapoff = Constant('SYS_swapoff',304)
|
||||
SYS_swapon = Constant('SYS_swapon',322)
|
||||
SYS_symlink = Constant('SYS_symlink',57)
|
||||
SYS_symlinkat = Constant('SYS_symlinkat',459)
|
||||
SYS_sync = Constant('SYS_sync',36)
|
||||
SYS_sync_file_range = Constant('SYS_sync_file_range',469)
|
||||
SYS_syncfs = Constant('SYS_syncfs',500)
|
||||
SYS__sysctl = Constant('SYS__sysctl',319)
|
||||
SYS_sys_epoll_create = Constant('SYS_sys_epoll_create',407)
|
||||
SYS_sys_epoll_ctl = Constant('SYS_sys_epoll_ctl',408)
|
||||
@@ -1364,6 +1694,9 @@ SYS_tgkill = Constant('SYS_tgkill',424)
|
||||
SYS_timer_create = Constant('SYS_timer_create',414)
|
||||
SYS_timer_delete = Constant('SYS_timer_delete',418)
|
||||
SYS_timerfd = Constant('SYS_timerfd',477)
|
||||
SYS_timerfd_create = Constant('SYS_timerfd_create',481)
|
||||
SYS_timerfd_gettime = Constant('SYS_timerfd_gettime',483)
|
||||
SYS_timerfd_settime = Constant('SYS_timerfd_settime',482)
|
||||
SYS_timer_getoverrun = Constant('SYS_timer_getoverrun',417)
|
||||
SYS_timer_gettime = Constant('SYS_timer_gettime',416)
|
||||
SYS_timer_settime = Constant('SYS_timer_settime',415)
|
||||
@@ -1373,11 +1706,14 @@ SYS_truncate = Constant('SYS_truncate',129)
|
||||
SYS_tuxcall = Constant('SYS_tuxcall',397)
|
||||
SYS_umask = Constant('SYS_umask',60)
|
||||
SYS_umount = Constant('SYS_umount',22)
|
||||
SYS_umount_with_flags = Constant('SYS_umount_with_flags',22)
|
||||
SYS_umount_without_flags = Constant('SYS_umount_without_flags',321)
|
||||
SYS_uname = Constant('SYS_uname',339)
|
||||
SYS_unlink = Constant('SYS_unlink',10)
|
||||
SYS_unlinkat = Constant('SYS_unlinkat',456)
|
||||
SYS_unshare = Constant('SYS_unshare',465)
|
||||
SYS_uselib = Constant('SYS_uselib',313)
|
||||
SYS_userfaultfd = Constant('SYS_userfaultfd',516)
|
||||
SYS_ustat = Constant('SYS_ustat',327)
|
||||
SYS_utimensat = Constant('SYS_utimensat',475)
|
||||
SYS_utimes = Constant('SYS_utimes',363)
|
||||
|
||||
+379
-88
@@ -1,5 +1,4 @@
|
||||
from pwnlib.constants.constant import Constant
|
||||
|
||||
__NR_read = Constant('__NR_read',0)
|
||||
__NR_write = Constant('__NR_write',1)
|
||||
__NR_open = Constant('__NR_open',2)
|
||||
@@ -304,6 +303,52 @@ __NR_recvmmsg = Constant('__NR_recvmmsg',299)
|
||||
__NR_fanotify_init = Constant('__NR_fanotify_init',300)
|
||||
__NR_fanotify_mark = Constant('__NR_fanotify_mark',301)
|
||||
__NR_prlimit64 = Constant('__NR_prlimit64',302)
|
||||
__NR_name_to_handle_at = Constant('__NR_name_to_handle_at',303)
|
||||
__NR_open_by_handle_at = Constant('__NR_open_by_handle_at',304)
|
||||
__NR_clock_adjtime = Constant('__NR_clock_adjtime',305)
|
||||
__NR_syncfs = Constant('__NR_syncfs',306)
|
||||
__NR_sendmmsg = Constant('__NR_sendmmsg',307)
|
||||
__NR_setns = Constant('__NR_setns',308)
|
||||
__NR_getcpu = Constant('__NR_getcpu',309)
|
||||
__NR_process_vm_readv = Constant('__NR_process_vm_readv',310)
|
||||
__NR_process_vm_writev = Constant('__NR_process_vm_writev',311)
|
||||
__NR_kcmp = Constant('__NR_kcmp',312)
|
||||
__NR_finit_module = Constant('__NR_finit_module',313)
|
||||
__NR_sched_setattr = Constant('__NR_sched_setattr',314)
|
||||
__NR_sched_getattr = Constant('__NR_sched_getattr',315)
|
||||
__NR_renameat2 = Constant('__NR_renameat2',316)
|
||||
__NR_seccomp = Constant('__NR_seccomp',317)
|
||||
__NR_getrandom = Constant('__NR_getrandom',318)
|
||||
__NR_memfd_create = Constant('__NR_memfd_create',319)
|
||||
__NR_kexec_file_load = Constant('__NR_kexec_file_load',320)
|
||||
__NR_bpf = Constant('__NR_bpf',321)
|
||||
__NR_execveat = Constant('__NR_execveat',322)
|
||||
__NR_userfaultfd = Constant('__NR_userfaultfd',323)
|
||||
__NR_membarrier = Constant('__NR_membarrier',324)
|
||||
__NR_mlock2 = Constant('__NR_mlock2',325)
|
||||
__NR_copy_file_range = Constant('__NR_copy_file_range',326)
|
||||
__NR_preadv2 = Constant('__NR_preadv2',327)
|
||||
__NR_pwritev2 = Constant('__NR_pwritev2',328)
|
||||
__NR_pkey_mprotect = Constant('__NR_pkey_mprotect',329)
|
||||
__NR_pkey_alloc = Constant('__NR_pkey_alloc',330)
|
||||
__NR_pkey_free = Constant('__NR_pkey_free',331)
|
||||
__NR_statx = Constant('__NR_statx',332)
|
||||
__NR_io_pgetevents = Constant('__NR_io_pgetevents',333)
|
||||
__NR_rseq = Constant('__NR_rseq',334)
|
||||
__NR_pidfd_send_signal = Constant('__NR_pidfd_send_signal',424)
|
||||
__NR_io_uring_setup = Constant('__NR_io_uring_setup',425)
|
||||
__NR_io_uring_enter = Constant('__NR_io_uring_enter',426)
|
||||
__NR_io_uring_register = Constant('__NR_io_uring_register',427)
|
||||
__NR_open_tree = Constant('__NR_open_tree',428)
|
||||
__NR_move_mount = Constant('__NR_move_mount',429)
|
||||
__NR_fsopen = Constant('__NR_fsopen',430)
|
||||
__NR_fsconfig = Constant('__NR_fsconfig',431)
|
||||
__NR_fsmount = Constant('__NR_fsmount',432)
|
||||
__NR_fspick = Constant('__NR_fspick',433)
|
||||
__NR_pidfd_open = Constant('__NR_pidfd_open',434)
|
||||
__NR_clone3 = Constant('__NR_clone3',435)
|
||||
__NR_openat2 = Constant('__NR_openat2',437)
|
||||
__NR_pidfd_getfd = Constant('__NR_pidfd_getfd',438)
|
||||
SYS32_restart_syscall = Constant('SYS32_restart_syscall',0)
|
||||
SYS32_exit = Constant('SYS32_exit',1)
|
||||
SYS32_fork = Constant('SYS32_fork',2)
|
||||
@@ -785,7 +830,11 @@ ENOKEY = Constant('ENOKEY',126)
|
||||
EKEYEXPIRED = Constant('EKEYEXPIRED',127)
|
||||
EKEYREVOKED = Constant('EKEYREVOKED',128)
|
||||
EKEYREJECTED = Constant('EKEYREJECTED',129)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((129) + 1))
|
||||
EOWNERDEAD = Constant('EOWNERDEAD',130)
|
||||
ENOTRECOVERABLE = Constant('ENOTRECOVERABLE',131)
|
||||
ERFKILL = Constant('ERFKILL',132)
|
||||
EHWPOISON = Constant('EHWPOISON',133)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((133) + 1))
|
||||
__LITTLE_ENDIAN = Constant('__LITTLE_ENDIAN',1234)
|
||||
__BIG_ENDIAN = Constant('__BIG_ENDIAN',4321)
|
||||
__BYTE_ORDER = Constant('__BYTE_ORDER',1234)
|
||||
@@ -795,9 +844,56 @@ BIG_ENDIAN = Constant('BIG_ENDIAN',4321)
|
||||
BYTE_ORDER = Constant('BYTE_ORDER',1234)
|
||||
__WORDSIZE = Constant('__WORDSIZE',64)
|
||||
__WORDSIZE_COMPAT32 = Constant('__WORDSIZE_COMPAT32',1)
|
||||
__UNALIGNED_MEMORY_ACCESS_OK = Constant('__UNALIGNED_MEMORY_ACCESS_OK',1)
|
||||
INT8_MAX = Constant('INT8_MAX',(127))
|
||||
INT16_MAX = Constant('INT16_MAX',(32767))
|
||||
INT32_MAX = Constant('INT32_MAX',(2147483647))
|
||||
INT64_MAX = Constant('INT64_MAX',(9223372036854775807))
|
||||
INT8_MIN = Constant('INT8_MIN',(-1 - (127)))
|
||||
INT16_MIN = Constant('INT16_MIN',(-1 - (32767)))
|
||||
INT32_MIN = Constant('INT32_MIN',(-1 - (2147483647)))
|
||||
INT64_MIN = Constant('INT64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_LEAST8_MAX = Constant('INT_LEAST8_MAX',(127))
|
||||
INT_LEAST8_MIN = Constant('INT_LEAST8_MIN',(-1 - (127)))
|
||||
INT_LEAST16_MAX = Constant('INT_LEAST16_MAX',(32767))
|
||||
INT_LEAST16_MIN = Constant('INT_LEAST16_MIN',(-1 - (32767)))
|
||||
INT_LEAST32_MAX = Constant('INT_LEAST32_MAX',(2147483647))
|
||||
INT_LEAST32_MIN = Constant('INT_LEAST32_MIN',(-1 - (2147483647)))
|
||||
INT_LEAST64_MAX = Constant('INT_LEAST64_MAX',(9223372036854775807))
|
||||
INT_LEAST64_MIN = Constant('INT_LEAST64_MIN',(-1 - (9223372036854775807)))
|
||||
UINT8_MAX = Constant('UINT8_MAX',0xff)
|
||||
UINT16_MAX = Constant('UINT16_MAX',0xffff)
|
||||
UINT32_MAX = Constant('UINT32_MAX',0xffffffff)
|
||||
UINT64_MAX = Constant('UINT64_MAX',0xffffffffffffffff)
|
||||
UINT_LEAST8_MAX = Constant('UINT_LEAST8_MAX',0xff)
|
||||
UINT_LEAST16_MAX = Constant('UINT_LEAST16_MAX',0xffff)
|
||||
UINT_LEAST32_MAX = Constant('UINT_LEAST32_MAX',0xffffffff)
|
||||
UINT_LEAST64_MAX = Constant('UINT_LEAST64_MAX',0xffffffffffffffff)
|
||||
INTPTR_MIN = Constant('INTPTR_MIN',(-1 - (9223372036854775807)))
|
||||
INTPTR_MAX = Constant('INTPTR_MAX',(9223372036854775807))
|
||||
UINTPTR_MAX = Constant('UINTPTR_MAX',0xffffffffffffffff)
|
||||
SIZE_MAX = Constant('SIZE_MAX',0xffffffffffffffff)
|
||||
PTRDIFF_MIN = Constant('PTRDIFF_MIN',(-1 - (9223372036854775807)))
|
||||
PTRDIFF_MAX = Constant('PTRDIFF_MAX',(9223372036854775807))
|
||||
INTMAX_MIN = Constant('INTMAX_MIN',(-1 - (9223372036854775807)))
|
||||
INTMAX_MAX = Constant('INTMAX_MAX',(9223372036854775807))
|
||||
UINTMAX_MAX = Constant('UINTMAX_MAX',0xffffffffffffffff)
|
||||
INT_FAST8_MIN = Constant('INT_FAST8_MIN',(-1 - (127)))
|
||||
INT_FAST8_MAX = Constant('INT_FAST8_MAX',(127))
|
||||
INT_FAST64_MIN = Constant('INT_FAST64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST64_MAX = Constant('INT_FAST64_MAX',(9223372036854775807))
|
||||
UINT_FAST8_MAX = Constant('UINT_FAST8_MAX',0xff)
|
||||
UINT_FAST64_MAX = Constant('UINT_FAST64_MAX',0xffffffffffffffff)
|
||||
INT_FAST16_MIN = Constant('INT_FAST16_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST16_MAX = Constant('INT_FAST16_MAX',(9223372036854775807))
|
||||
UINT_FAST16_MAX = Constant('UINT_FAST16_MAX',0xffffffffffffffff)
|
||||
INT_FAST32_MIN = Constant('INT_FAST32_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST32_MAX = Constant('INT_FAST32_MAX',(9223372036854775807))
|
||||
UINT_FAST32_MAX = Constant('UINT_FAST32_MAX',0xffffffffffffffff)
|
||||
WINT_MIN = Constant('WINT_MIN',0)
|
||||
__FSUID_H = Constant('__FSUID_H',1)
|
||||
NSIG = Constant('NSIG',32)
|
||||
_NSIG = Constant('_NSIG',64)
|
||||
_NSIG = Constant('_NSIG',65)
|
||||
SIGHUP = Constant('SIGHUP',1)
|
||||
SIGINT = Constant('SIGINT',2)
|
||||
SIGQUIT = Constant('SIGQUIT',3)
|
||||
@@ -835,7 +931,7 @@ SIGCLD = Constant('SIGCLD',17)
|
||||
SIGPOLL = Constant('SIGPOLL',29)
|
||||
SIGLOST = Constant('SIGLOST',30)
|
||||
SIGRTMIN = Constant('SIGRTMIN',32)
|
||||
SIGRTMAX = Constant('SIGRTMAX',(64-1))
|
||||
SIGRTMAX = Constant('SIGRTMAX',(65-1))
|
||||
SA_NOCLDSTOP = Constant('SA_NOCLDSTOP',0x00000001)
|
||||
SA_NOCLDWAIT = Constant('SA_NOCLDWAIT',0x00000002)
|
||||
SA_SIGINFO = Constant('SA_SIGINFO',0x00000004)
|
||||
@@ -884,6 +980,8 @@ _SC_PAGESIZE = Constant('_SC_PAGESIZE',5)
|
||||
_SC_NPROCESSORS_ONLN = Constant('_SC_NPROCESSORS_ONLN',6)
|
||||
_SC_NPROCESSORS_CONF = Constant('_SC_NPROCESSORS_CONF',6)
|
||||
_SC_PHYS_PAGES = Constant('_SC_PHYS_PAGES',7)
|
||||
_SC_GETPW_R_SIZE_MAX = Constant('_SC_GETPW_R_SIZE_MAX',8)
|
||||
_SC_GETGR_R_SIZE_MAX = Constant('_SC_GETGR_R_SIZE_MAX',9)
|
||||
_PC_PATH_MAX = Constant('_PC_PATH_MAX',1)
|
||||
_PC_VDISABLE = Constant('_PC_VDISABLE',2)
|
||||
L_cuserid = Constant('L_cuserid',17)
|
||||
@@ -892,6 +990,7 @@ F_ULOCK = Constant('F_ULOCK',0)
|
||||
F_LOCK = Constant('F_LOCK',1)
|
||||
F_TLOCK = Constant('F_TLOCK',2)
|
||||
F_TEST = Constant('F_TEST',3)
|
||||
_POSIX_MAPPED_FILES = Constant('_POSIX_MAPPED_FILES',200809)
|
||||
S_IFMT = Constant('S_IFMT',0o0170000)
|
||||
S_IFSOCK = Constant('S_IFSOCK',0o140000)
|
||||
S_IFLNK = Constant('S_IFLNK',0o120000)
|
||||
@@ -918,84 +1017,7 @@ S_IXOTH = Constant('S_IXOTH',0o0001)
|
||||
S_IREAD = Constant('S_IREAD',0o0400)
|
||||
S_IWRITE = Constant('S_IWRITE',0o0200)
|
||||
S_IEXEC = Constant('S_IEXEC',0o0100)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
O_ACCMODE = Constant('O_ACCMODE',0o003)
|
||||
O_RDONLY = Constant('O_RDONLY',0o0)
|
||||
O_WRONLY = Constant('O_WRONLY',0o1)
|
||||
O_RDWR = Constant('O_RDWR',0o2)
|
||||
O_CREAT = Constant('O_CREAT',0o100)
|
||||
O_EXCL = Constant('O_EXCL',0o200)
|
||||
O_NOCTTY = Constant('O_NOCTTY',0o400)
|
||||
O_TRUNC = Constant('O_TRUNC',0o1000)
|
||||
O_APPEND = Constant('O_APPEND',0o2000)
|
||||
O_NONBLOCK = Constant('O_NONBLOCK',0o4000)
|
||||
O_NDELAY = Constant('O_NDELAY',0o4000)
|
||||
O_SYNC = Constant('O_SYNC',0o10000)
|
||||
FASYNC = Constant('FASYNC',0o20000)
|
||||
O_DIRECT = Constant('O_DIRECT',0o40000)
|
||||
O_LARGEFILE = Constant('O_LARGEFILE',0o100000)
|
||||
O_DIRECTORY = Constant('O_DIRECTORY',0o200000)
|
||||
O_NOFOLLOW = Constant('O_NOFOLLOW',0o400000)
|
||||
O_NOATIME = Constant('O_NOATIME',0o1000000)
|
||||
F_DUPFD = Constant('F_DUPFD',0)
|
||||
F_GETFD = Constant('F_GETFD',1)
|
||||
F_SETFD = Constant('F_SETFD',2)
|
||||
F_GETFL = Constant('F_GETFL',3)
|
||||
F_SETFL = Constant('F_SETFL',4)
|
||||
F_GETLK = Constant('F_GETLK',5)
|
||||
F_SETLK = Constant('F_SETLK',6)
|
||||
F_SETLKW = Constant('F_SETLKW',7)
|
||||
F_SETOWN = Constant('F_SETOWN',8)
|
||||
F_GETOWN = Constant('F_GETOWN',9)
|
||||
F_SETSIG = Constant('F_SETSIG',10)
|
||||
F_GETSIG = Constant('F_GETSIG',11)
|
||||
F_GETLK64 = Constant('F_GETLK64',12)
|
||||
F_SETLK64 = Constant('F_SETLK64',13)
|
||||
F_SETLKW64 = Constant('F_SETLKW64',14)
|
||||
FD_CLOEXEC = Constant('FD_CLOEXEC',1)
|
||||
F_RDLCK = Constant('F_RDLCK',0)
|
||||
F_WRLCK = Constant('F_WRLCK',1)
|
||||
F_UNLCK = Constant('F_UNLCK',2)
|
||||
F_EXLCK = Constant('F_EXLCK',4)
|
||||
F_SHLCK = Constant('F_SHLCK',8)
|
||||
F_INPROGRESS = Constant('F_INPROGRESS',16)
|
||||
LOCK_SH = Constant('LOCK_SH',1)
|
||||
LOCK_EX = Constant('LOCK_EX',2)
|
||||
LOCK_NB = Constant('LOCK_NB',4)
|
||||
LOCK_UN = Constant('LOCK_UN',8)
|
||||
LOCK_MAND = Constant('LOCK_MAND',32)
|
||||
LOCK_READ = Constant('LOCK_READ',64)
|
||||
LOCK_WRITE = Constant('LOCK_WRITE',128)
|
||||
LOCK_RW = Constant('LOCK_RW',192)
|
||||
O_ASYNC = Constant('O_ASYNC',0o20000)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_FIXED = Constant('MAP_FIXED',0x10)
|
||||
MAP_ANONYMOUS = Constant('MAP_ANONYMOUS',0x20)
|
||||
MAP_GROWSDOWN = Constant('MAP_GROWSDOWN',0x0100)
|
||||
MAP_DENYWRITE = Constant('MAP_DENYWRITE',0x0800)
|
||||
MAP_EXECUTABLE = Constant('MAP_EXECUTABLE',0x1000)
|
||||
MAP_LOCKED = Constant('MAP_LOCKED',0x2000)
|
||||
MAP_NORESERVE = Constant('MAP_NORESERVE',0x4000)
|
||||
MAP_POPULATE = Constant('MAP_POPULATE',0x8000)
|
||||
MS_ASYNC = Constant('MS_ASYNC',1)
|
||||
MS_INVALIDATE = Constant('MS_INVALIDATE',2)
|
||||
MS_SYNC = Constant('MS_SYNC',4)
|
||||
MCL_CURRENT = Constant('MCL_CURRENT',1)
|
||||
MCL_FUTURE = Constant('MCL_FUTURE',2)
|
||||
MADV_NORMAL = Constant('MADV_NORMAL',0x0)
|
||||
MADV_RANDOM = Constant('MADV_RANDOM',0x1)
|
||||
MADV_SEQUENTIAL = Constant('MADV_SEQUENTIAL',0x2)
|
||||
MADV_WILLNEED = Constant('MADV_WILLNEED',0x3)
|
||||
MADV_DONTNEED = Constant('MADV_DONTNEED',0x4)
|
||||
MAP_ANON = Constant('MAP_ANON',0x20)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
_SYS_UIO = Constant('_SYS_UIO',1)
|
||||
SOL_SOCKET = Constant('SOL_SOCKET',1)
|
||||
SO_DEBUG = Constant('SO_DEBUG',1)
|
||||
SO_REUSEADDR = Constant('SO_REUSEADDR',2)
|
||||
@@ -1011,29 +1033,64 @@ SO_NO_CHECK = Constant('SO_NO_CHECK',11)
|
||||
SO_PRIORITY = Constant('SO_PRIORITY',12)
|
||||
SO_LINGER = Constant('SO_LINGER',13)
|
||||
SO_BSDCOMPAT = Constant('SO_BSDCOMPAT',14)
|
||||
SO_REUSEPORT = Constant('SO_REUSEPORT',15)
|
||||
SO_PASSCRED = Constant('SO_PASSCRED',16)
|
||||
SO_PEERCRED = Constant('SO_PEERCRED',17)
|
||||
SO_RCVLOWAT = Constant('SO_RCVLOWAT',18)
|
||||
SO_SNDLOWAT = Constant('SO_SNDLOWAT',19)
|
||||
SO_RCVTIMEO = Constant('SO_RCVTIMEO',20)
|
||||
SO_SNDTIMEO = Constant('SO_SNDTIMEO',21)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_SECURITY_AUTHENTICATION = Constant('SO_SECURITY_AUTHENTICATION',22)
|
||||
SO_SECURITY_ENCRYPTION_TRANSPORT = Constant('SO_SECURITY_ENCRYPTION_TRANSPORT',23)
|
||||
SO_SECURITY_ENCRYPTION_NETWORK = Constant('SO_SECURITY_ENCRYPTION_NETWORK',24)
|
||||
SO_BINDTODEVICE = Constant('SO_BINDTODEVICE',25)
|
||||
SO_ATTACH_FILTER = Constant('SO_ATTACH_FILTER',26)
|
||||
SO_DETACH_FILTER = Constant('SO_DETACH_FILTER',27)
|
||||
SO_GET_FILTER = Constant('SO_GET_FILTER',26)
|
||||
SO_PEERNAME = Constant('SO_PEERNAME',28)
|
||||
SO_TIMESTAMP = Constant('SO_TIMESTAMP',29)
|
||||
SCM_TIMESTAMP = Constant('SCM_TIMESTAMP',29)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_PEERSEC = Constant('SO_PEERSEC',31)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_PASSSEC = Constant('SO_PASSSEC',34)
|
||||
SO_TIMESTAMPNS = Constant('SO_TIMESTAMPNS',35)
|
||||
SCM_TIMESTAMPNS = Constant('SCM_TIMESTAMPNS',35)
|
||||
SO_MARK = Constant('SO_MARK',36)
|
||||
SO_TIMESTAMPING = Constant('SO_TIMESTAMPING',37)
|
||||
SCM_TIMESTAMPING = Constant('SCM_TIMESTAMPING',37)
|
||||
SO_PROTOCOL = Constant('SO_PROTOCOL',38)
|
||||
SO_DOMAIN = Constant('SO_DOMAIN',39)
|
||||
SO_RXQ_OVFL = Constant('SO_RXQ_OVFL',40)
|
||||
SO_WIFI_STATUS = Constant('SO_WIFI_STATUS',41)
|
||||
SCM_WIFI_STATUS = Constant('SCM_WIFI_STATUS',41)
|
||||
SO_PEEK_OFF = Constant('SO_PEEK_OFF',42)
|
||||
SO_NOFCS = Constant('SO_NOFCS',43)
|
||||
SO_LOCK_FILTER = Constant('SO_LOCK_FILTER',44)
|
||||
SO_SELECT_ERR_QUEUE = Constant('SO_SELECT_ERR_QUEUE',45)
|
||||
SO_BUSY_POLL = Constant('SO_BUSY_POLL',46)
|
||||
SO_MAX_PACING_RATE = Constant('SO_MAX_PACING_RATE',47)
|
||||
SO_BPF_EXTENSIONS = Constant('SO_BPF_EXTENSIONS',48)
|
||||
SO_INCOMING_CPU = Constant('SO_INCOMING_CPU',49)
|
||||
SO_ATTACH_BPF = Constant('SO_ATTACH_BPF',50)
|
||||
SO_DETACH_BPF = Constant('SO_DETACH_BPF',27)
|
||||
SO_ATTACH_REUSEPORT_CBPF = Constant('SO_ATTACH_REUSEPORT_CBPF',51)
|
||||
SO_ATTACH_REUSEPORT_EBPF = Constant('SO_ATTACH_REUSEPORT_EBPF',52)
|
||||
SO_CNX_ADVICE = Constant('SO_CNX_ADVICE',53)
|
||||
SCM_TIMESTAMPING_OPT_STATS = Constant('SCM_TIMESTAMPING_OPT_STATS',54)
|
||||
SO_MEMINFO = Constant('SO_MEMINFO',55)
|
||||
SO_INCOMING_NAPI_ID = Constant('SO_INCOMING_NAPI_ID',56)
|
||||
SO_COOKIE = Constant('SO_COOKIE',57)
|
||||
SCM_TIMESTAMPING_PKTINFO = Constant('SCM_TIMESTAMPING_PKTINFO',58)
|
||||
SO_PEERGROUPS = Constant('SO_PEERGROUPS',59)
|
||||
SO_ZEROCOPY = Constant('SO_ZEROCOPY',60)
|
||||
SOCK_STREAM = Constant('SOCK_STREAM',1)
|
||||
SOCK_DGRAM = Constant('SOCK_DGRAM',2)
|
||||
SOCK_RAW = Constant('SOCK_RAW',3)
|
||||
SOCK_RDM = Constant('SOCK_RDM',4)
|
||||
SOCK_SEQPACKET = Constant('SOCK_SEQPACKET',5)
|
||||
SOCK_DCCP = Constant('SOCK_DCCP',6)
|
||||
SOCK_PACKET = Constant('SOCK_PACKET',10)
|
||||
UIO_FASTIOV = Constant('UIO_FASTIOV',8)
|
||||
UIO_MAXIOV = Constant('UIO_MAXIOV',1024)
|
||||
@@ -1067,7 +1124,25 @@ AF_SNA = Constant('AF_SNA',22)
|
||||
AF_IRDA = Constant('AF_IRDA',23)
|
||||
AF_PPPOX = Constant('AF_PPPOX',24)
|
||||
AF_WANPIPE = Constant('AF_WANPIPE',25)
|
||||
AF_MAX = Constant('AF_MAX',32)
|
||||
AF_LLC = Constant('AF_LLC',26)
|
||||
AF_IB = Constant('AF_IB',27)
|
||||
AF_MPLS = Constant('AF_MPLS',28)
|
||||
AF_CAN = Constant('AF_CAN',29)
|
||||
AF_TIPC = Constant('AF_TIPC',30)
|
||||
AF_BLUETOOTH = Constant('AF_BLUETOOTH',31)
|
||||
AF_IUCV = Constant('AF_IUCV',32)
|
||||
AF_RXRPC = Constant('AF_RXRPC',33)
|
||||
AF_ISDN = Constant('AF_ISDN',34)
|
||||
AF_PHONET = Constant('AF_PHONET',35)
|
||||
AF_IEEE802154 = Constant('AF_IEEE802154',36)
|
||||
AF_CAIF = Constant('AF_CAIF',37)
|
||||
AF_ALG = Constant('AF_ALG',38)
|
||||
AF_NFC = Constant('AF_NFC',39)
|
||||
AF_VSOCK = Constant('AF_VSOCK',40)
|
||||
AF_KCM = Constant('AF_KCM',41)
|
||||
AF_QIPCRTR = Constant('AF_QIPCRTR',42)
|
||||
AF_SMC = Constant('AF_SMC',43)
|
||||
AF_MAX = Constant('AF_MAX',44)
|
||||
PF_UNSPEC = Constant('PF_UNSPEC',0)
|
||||
PF_UNIX = Constant('PF_UNIX',1)
|
||||
PF_LOCAL = Constant('PF_LOCAL',1)
|
||||
@@ -1095,7 +1170,25 @@ PF_SNA = Constant('PF_SNA',22)
|
||||
PF_IRDA = Constant('PF_IRDA',23)
|
||||
PF_PPPOX = Constant('PF_PPPOX',24)
|
||||
PF_WANPIPE = Constant('PF_WANPIPE',25)
|
||||
PF_MAX = Constant('PF_MAX',32)
|
||||
PF_LLC = Constant('PF_LLC',26)
|
||||
PF_IB = Constant('PF_IB',27)
|
||||
PF_MPLS = Constant('PF_MPLS',28)
|
||||
PF_CAN = Constant('PF_CAN',29)
|
||||
PF_TIPC = Constant('PF_TIPC',30)
|
||||
PF_BLUETOOTH = Constant('PF_BLUETOOTH',31)
|
||||
PF_IUCV = Constant('PF_IUCV',32)
|
||||
PF_RXRPC = Constant('PF_RXRPC',33)
|
||||
PF_ISDN = Constant('PF_ISDN',34)
|
||||
PF_PHONET = Constant('PF_PHONET',35)
|
||||
PF_IEEE802154 = Constant('PF_IEEE802154',36)
|
||||
PF_CAIF = Constant('PF_CAIF',37)
|
||||
PF_ALG = Constant('PF_ALG',38)
|
||||
PF_NFC = Constant('PF_NFC',39)
|
||||
PF_VSOCK = Constant('PF_VSOCK',40)
|
||||
PF_KCM = Constant('PF_KCM',41)
|
||||
PF_QIPCRTR = Constant('PF_QIPCRTR',42)
|
||||
PF_SMC = Constant('PF_SMC',43)
|
||||
PF_MAX = Constant('PF_MAX',44)
|
||||
SOMAXCONN = Constant('SOMAXCONN',128)
|
||||
MSG_OOB = Constant('MSG_OOB',1)
|
||||
MSG_PEEK = Constant('MSG_PEEK',2)
|
||||
@@ -1108,18 +1201,26 @@ MSG_DONTWAIT = Constant('MSG_DONTWAIT',0x40)
|
||||
MSG_EOR = Constant('MSG_EOR',0x80)
|
||||
MSG_WAITALL = Constant('MSG_WAITALL',0x100)
|
||||
MSG_FIN = Constant('MSG_FIN',0x200)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_SYN = Constant('MSG_SYN',0x400)
|
||||
MSG_CONFIRM = Constant('MSG_CONFIRM',0x800)
|
||||
MSG_RST = Constant('MSG_RST',0x1000)
|
||||
MSG_ERRQUEUE = Constant('MSG_ERRQUEUE',0x2000)
|
||||
MSG_NOSIGNAL = Constant('MSG_NOSIGNAL',0x4000)
|
||||
MSG_MORE = Constant('MSG_MORE',0x8000)
|
||||
MSG_WAITFORONE = Constant('MSG_WAITFORONE',0x10000)
|
||||
MSG_SENDPAGE_NOTLAST = Constant('MSG_SENDPAGE_NOTLAST',0x20000)
|
||||
MSG_BATCH = Constant('MSG_BATCH',0x40000)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_ZEROCOPY = Constant('MSG_ZEROCOPY',0x4000000)
|
||||
MSG_FASTOPEN = Constant('MSG_FASTOPEN',0x20000000)
|
||||
MSG_CMSG_CLOEXEC = Constant('MSG_CMSG_CLOEXEC',0x40000000)
|
||||
SOL_IP = Constant('SOL_IP',0)
|
||||
SOL_TCP = Constant('SOL_TCP',6)
|
||||
SOL_UDP = Constant('SOL_UDP',17)
|
||||
SOL_IPV6 = Constant('SOL_IPV6',41)
|
||||
SOL_ICMPV6 = Constant('SOL_ICMPV6',58)
|
||||
SOL_SCTP = Constant('SOL_SCTP',132)
|
||||
SOL_UDPLITE = Constant('SOL_UDPLITE',136)
|
||||
SOL_RAW = Constant('SOL_RAW',255)
|
||||
SOL_IPX = Constant('SOL_IPX',256)
|
||||
SOL_AX25 = Constant('SOL_AX25',257)
|
||||
@@ -1132,6 +1233,22 @@ SOL_PACKET = Constant('SOL_PACKET',263)
|
||||
SOL_ATM = Constant('SOL_ATM',264)
|
||||
SOL_AAL = Constant('SOL_AAL',265)
|
||||
SOL_IRDA = Constant('SOL_IRDA',266)
|
||||
SOL_NETBEUI = Constant('SOL_NETBEUI',267)
|
||||
SOL_LLC = Constant('SOL_LLC',268)
|
||||
SOL_DCCP = Constant('SOL_DCCP',269)
|
||||
SOL_NETLINK = Constant('SOL_NETLINK',270)
|
||||
SOL_TIPC = Constant('SOL_TIPC',271)
|
||||
SOL_RXRPC = Constant('SOL_RXRPC',272)
|
||||
SOL_PPPOL2TP = Constant('SOL_PPPOL2TP',273)
|
||||
SOL_BLUETOOTH = Constant('SOL_BLUETOOTH',274)
|
||||
SOL_PNPIPE = Constant('SOL_PNPIPE',275)
|
||||
SOL_RDS = Constant('SOL_RDS',276)
|
||||
SOL_IUCV = Constant('SOL_IUCV',277)
|
||||
SOL_CAIF = Constant('SOL_CAIF',278)
|
||||
SOL_ALG = Constant('SOL_ALG',279)
|
||||
SOL_NFC = Constant('SOL_NFC',280)
|
||||
SOL_KCM = Constant('SOL_KCM',281)
|
||||
SOL_TLS = Constant('SOL_TLS',282)
|
||||
IPX_TYPE = Constant('IPX_TYPE',1)
|
||||
SHUT_RD = Constant('SHUT_RD',0)
|
||||
SHUT_WR = Constant('SHUT_WR',1)
|
||||
@@ -1155,6 +1272,10 @@ EAI_SYSTEM = Constant('EAI_SYSTEM',-11)
|
||||
AI_NUMERICHOST = Constant('AI_NUMERICHOST',1)
|
||||
AI_CANONNAME = Constant('AI_CANONNAME',2)
|
||||
AI_PASSIVE = Constant('AI_PASSIVE',4)
|
||||
AI_NUMERICSERV = Constant('AI_NUMERICSERV',8)
|
||||
AI_ADDRCONFIG = Constant('AI_ADDRCONFIG',16)
|
||||
AI_V4MAPPED = Constant('AI_V4MAPPED',32)
|
||||
AI_ALL = Constant('AI_ALL',64)
|
||||
SIOCADDRT = Constant('SIOCADDRT',0x890B)
|
||||
SIOCDELRT = Constant('SIOCDELRT',0x890C)
|
||||
SIOCRTMSG = Constant('SIOCRTMSG',0x890D)
|
||||
@@ -1211,6 +1332,130 @@ SIOCSIFMAP = Constant('SIOCSIFMAP',0x8971)
|
||||
SIOCADDDLCI = Constant('SIOCADDDLCI',0x8980)
|
||||
SIOCDELDLCI = Constant('SIOCDELDLCI',0x8981)
|
||||
SIOCDEVPRIVATE = Constant('SIOCDEVPRIVATE',0x89F0)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
O_ACCMODE = Constant('O_ACCMODE',0o003)
|
||||
O_RDONLY = Constant('O_RDONLY',0o0)
|
||||
O_WRONLY = Constant('O_WRONLY',0o1)
|
||||
O_RDWR = Constant('O_RDWR',0o2)
|
||||
O_CREAT = Constant('O_CREAT',0o100)
|
||||
O_EXCL = Constant('O_EXCL',0o200)
|
||||
O_NOCTTY = Constant('O_NOCTTY',0o400)
|
||||
O_TRUNC = Constant('O_TRUNC',0o1000)
|
||||
O_APPEND = Constant('O_APPEND',0o2000)
|
||||
O_NONBLOCK = Constant('O_NONBLOCK',0o4000)
|
||||
O_NDELAY = Constant('O_NDELAY',0o4000)
|
||||
O_DSYNC = Constant('O_DSYNC',0o10000)
|
||||
FASYNC = Constant('FASYNC',0o20000)
|
||||
O_DIRECT = Constant('O_DIRECT',0o40000)
|
||||
O_LARGEFILE = Constant('O_LARGEFILE',0o100000)
|
||||
O_DIRECTORY = Constant('O_DIRECTORY',0o200000)
|
||||
O_NOFOLLOW = Constant('O_NOFOLLOW',0o400000)
|
||||
O_NOATIME = Constant('O_NOATIME',0o1000000)
|
||||
O_CLOEXEC = Constant('O_CLOEXEC',0o2000000)
|
||||
O_SYNC = Constant('O_SYNC',(0o10000|0o4000000))
|
||||
O_PATH = Constant('O_PATH',0o10000000)
|
||||
__O_TMPFILE = Constant('__O_TMPFILE',0o20000000)
|
||||
F_DUPFD = Constant('F_DUPFD',0)
|
||||
F_GETFD = Constant('F_GETFD',1)
|
||||
F_SETFD = Constant('F_SETFD',2)
|
||||
F_GETFL = Constant('F_GETFL',3)
|
||||
F_SETFL = Constant('F_SETFL',4)
|
||||
F_GETLK = Constant('F_GETLK',5)
|
||||
F_SETLK = Constant('F_SETLK',6)
|
||||
F_SETLKW = Constant('F_SETLKW',7)
|
||||
F_SETOWN = Constant('F_SETOWN',8)
|
||||
F_GETOWN = Constant('F_GETOWN',9)
|
||||
F_SETSIG = Constant('F_SETSIG',10)
|
||||
F_GETSIG = Constant('F_GETSIG',11)
|
||||
F_GETLK64 = Constant('F_GETLK64',12)
|
||||
F_SETLK64 = Constant('F_SETLK64',13)
|
||||
F_SETLKW64 = Constant('F_SETLKW64',14)
|
||||
FD_CLOEXEC = Constant('FD_CLOEXEC',1)
|
||||
F_RDLCK = Constant('F_RDLCK',0)
|
||||
F_WRLCK = Constant('F_WRLCK',1)
|
||||
F_UNLCK = Constant('F_UNLCK',2)
|
||||
F_EXLCK = Constant('F_EXLCK',4)
|
||||
F_SHLCK = Constant('F_SHLCK',8)
|
||||
F_INPROGRESS = Constant('F_INPROGRESS',16)
|
||||
LOCK_SH = Constant('LOCK_SH',1)
|
||||
LOCK_EX = Constant('LOCK_EX',2)
|
||||
LOCK_NB = Constant('LOCK_NB',4)
|
||||
LOCK_UN = Constant('LOCK_UN',8)
|
||||
LOCK_MAND = Constant('LOCK_MAND',32)
|
||||
LOCK_READ = Constant('LOCK_READ',64)
|
||||
LOCK_WRITE = Constant('LOCK_WRITE',128)
|
||||
LOCK_RW = Constant('LOCK_RW',192)
|
||||
O_TMPFILE = Constant('O_TMPFILE',(0o20000000 | 0o200000))
|
||||
O_ASYNC = Constant('O_ASYNC',0o20000)
|
||||
F_SETOWN_EX = Constant('F_SETOWN_EX',15)
|
||||
F_GETOWN_EX = Constant('F_GETOWN_EX',16)
|
||||
F_GETOWNER_UIDS = Constant('F_GETOWNER_UIDS',17)
|
||||
F_OFD_GETLK = Constant('F_OFD_GETLK',36)
|
||||
F_OFD_SETLK = Constant('F_OFD_SETLK',37)
|
||||
F_OFD_SETLKW = Constant('F_OFD_SETLKW',38)
|
||||
F_OWNER_TID = Constant('F_OWNER_TID',0)
|
||||
F_OWNER_PID = Constant('F_OWNER_PID',1)
|
||||
F_OWNER_PGRP = Constant('F_OWNER_PGRP',2)
|
||||
AT_FDCWD = Constant('AT_FDCWD',-100)
|
||||
AT_SYMLINK_NOFOLLOW = Constant('AT_SYMLINK_NOFOLLOW',0x100)
|
||||
AT_REMOVEDIR = Constant('AT_REMOVEDIR',0x200)
|
||||
AT_SYMLINK_FOLLOW = Constant('AT_SYMLINK_FOLLOW',0x400)
|
||||
AT_NO_AUTOMOUNT = Constant('AT_NO_AUTOMOUNT',0x800)
|
||||
AT_EMPTY_PATH = Constant('AT_EMPTY_PATH',0x1000)
|
||||
AT_EACCESS = Constant('AT_EACCESS',0x200)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_SEM = Constant('PROT_SEM',0x8)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
PROT_GROWSDOWN = Constant('PROT_GROWSDOWN',0x01000000)
|
||||
PROT_GROWSUP = Constant('PROT_GROWSUP',0x02000000)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_TYPE = Constant('MAP_TYPE',0xf)
|
||||
MADV_REMOVE = Constant('MADV_REMOVE',9)
|
||||
MADV_DONTFORK = Constant('MADV_DONTFORK',10)
|
||||
MADV_DOFORK = Constant('MADV_DOFORK',11)
|
||||
MADV_MERGEABLE = Constant('MADV_MERGEABLE',12)
|
||||
MADV_UNMERGEABLE = Constant('MADV_UNMERGEABLE',13)
|
||||
MADV_HUGEPAGE = Constant('MADV_HUGEPAGE',14)
|
||||
MADV_NOHUGEPAGE = Constant('MADV_NOHUGEPAGE',15)
|
||||
MADV_DONTDUMP = Constant('MADV_DONTDUMP',16)
|
||||
MADV_DODUMP = Constant('MADV_DODUMP',17)
|
||||
MADV_HWPOISON = Constant('MADV_HWPOISON',100)
|
||||
MADV_SOFT_OFFLINE = Constant('MADV_SOFT_OFFLINE',101)
|
||||
MLOCK_ONFAULT = Constant('MLOCK_ONFAULT',1)
|
||||
MAP_FIXED = Constant('MAP_FIXED',0x10)
|
||||
MAP_ANONYMOUS = Constant('MAP_ANONYMOUS',0x20)
|
||||
MAP_GROWSDOWN = Constant('MAP_GROWSDOWN',0x0100)
|
||||
MAP_DENYWRITE = Constant('MAP_DENYWRITE',0x0800)
|
||||
MAP_EXECUTABLE = Constant('MAP_EXECUTABLE',0x1000)
|
||||
MAP_LOCKED = Constant('MAP_LOCKED',0x2000)
|
||||
MAP_NORESERVE = Constant('MAP_NORESERVE',0x4000)
|
||||
MAP_POPULATE = Constant('MAP_POPULATE',0x8000)
|
||||
MAP_NONBLOCK = Constant('MAP_NONBLOCK',0x10000)
|
||||
MAP_STACK = Constant('MAP_STACK',0x20000)
|
||||
MAP_HUGETLB = Constant('MAP_HUGETLB',0x40000)
|
||||
MS_ASYNC = Constant('MS_ASYNC',1)
|
||||
MS_INVALIDATE = Constant('MS_INVALIDATE',2)
|
||||
MS_SYNC = Constant('MS_SYNC',4)
|
||||
MCL_CURRENT = Constant('MCL_CURRENT',1)
|
||||
MCL_FUTURE = Constant('MCL_FUTURE',2)
|
||||
MCL_ONFAULT = Constant('MCL_ONFAULT',4)
|
||||
MADV_NORMAL = Constant('MADV_NORMAL',0x0)
|
||||
MADV_RANDOM = Constant('MADV_RANDOM',0x1)
|
||||
MADV_SEQUENTIAL = Constant('MADV_SEQUENTIAL',0x2)
|
||||
MADV_WILLNEED = Constant('MADV_WILLNEED',0x3)
|
||||
MADV_DONTNEED = Constant('MADV_DONTNEED',0x4)
|
||||
MAP_ANON = Constant('MAP_ANON',0x20)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
POSIX_MADV_NORMAL = Constant('POSIX_MADV_NORMAL',0x0)
|
||||
POSIX_MADV_SEQUENTIAL = Constant('POSIX_MADV_SEQUENTIAL',0x2)
|
||||
POSIX_MADV_RANDOM = Constant('POSIX_MADV_RANDOM',0x1)
|
||||
POSIX_MADV_WILLNEED = Constant('POSIX_MADV_WILLNEED',0x3)
|
||||
POSIX_MADV_DONTNEED = Constant('POSIX_MADV_DONTNEED',0x4)
|
||||
PTRACE_TRACEME = Constant('PTRACE_TRACEME',0)
|
||||
PTRACE_PEEKTEXT = Constant('PTRACE_PEEKTEXT',1)
|
||||
PTRACE_PEEKDATA = Constant('PTRACE_PEEKDATA',2)
|
||||
@@ -1265,6 +1510,7 @@ SYS_afs_syscall = Constant('SYS_afs_syscall',183)
|
||||
SYS_alarm = Constant('SYS_alarm',37)
|
||||
SYS_arch_prctl = Constant('SYS_arch_prctl',158)
|
||||
SYS_bind = Constant('SYS_bind',49)
|
||||
SYS_bpf = Constant('SYS_bpf',321)
|
||||
SYS_brk = Constant('SYS_brk',12)
|
||||
SYS_capget = Constant('SYS_capget',125)
|
||||
SYS_capset = Constant('SYS_capset',126)
|
||||
@@ -1272,13 +1518,16 @@ SYS_chdir = Constant('SYS_chdir',80)
|
||||
SYS_chmod = Constant('SYS_chmod',90)
|
||||
SYS_chown = Constant('SYS_chown',92)
|
||||
SYS_chroot = Constant('SYS_chroot',161)
|
||||
SYS_clock_adjtime = Constant('SYS_clock_adjtime',305)
|
||||
SYS_clock_getres = Constant('SYS_clock_getres',229)
|
||||
SYS_clock_gettime = Constant('SYS_clock_gettime',228)
|
||||
SYS_clock_nanosleep = Constant('SYS_clock_nanosleep',230)
|
||||
SYS_clock_settime = Constant('SYS_clock_settime',227)
|
||||
SYS_clone = Constant('SYS_clone',56)
|
||||
SYS_clone3 = Constant('SYS_clone3',435)
|
||||
SYS_close = Constant('SYS_close',3)
|
||||
SYS_connect = Constant('SYS_connect',42)
|
||||
SYS_copy_file_range = Constant('SYS_copy_file_range',326)
|
||||
SYS_creat = Constant('SYS_creat',85)
|
||||
SYS_create_module = Constant('SYS_create_module',174)
|
||||
SYS_delete_module = Constant('SYS_delete_module',176)
|
||||
@@ -1295,6 +1544,7 @@ SYS_epoll_wait_old = Constant('SYS_epoll_wait_old',215)
|
||||
SYS_eventfd = Constant('SYS_eventfd',284)
|
||||
SYS_eventfd2 = Constant('SYS_eventfd2',290)
|
||||
SYS_execve = Constant('SYS_execve',59)
|
||||
SYS_execveat = Constant('SYS_execveat',322)
|
||||
SYS_exit = Constant('SYS_exit',60)
|
||||
SYS_exit_group = Constant('SYS_exit_group',231)
|
||||
SYS_faccessat = Constant('SYS_faccessat',269)
|
||||
@@ -1310,17 +1560,23 @@ SYS_fchownat = Constant('SYS_fchownat',260)
|
||||
SYS_fcntl = Constant('SYS_fcntl',72)
|
||||
SYS_fdatasync = Constant('SYS_fdatasync',75)
|
||||
SYS_fgetxattr = Constant('SYS_fgetxattr',193)
|
||||
SYS_finit_module = Constant('SYS_finit_module',313)
|
||||
SYS_flistxattr = Constant('SYS_flistxattr',196)
|
||||
SYS_flock = Constant('SYS_flock',73)
|
||||
SYS_fork = Constant('SYS_fork',57)
|
||||
SYS_fremovexattr = Constant('SYS_fremovexattr',199)
|
||||
SYS_fsconfig = Constant('SYS_fsconfig',431)
|
||||
SYS_fsetxattr = Constant('SYS_fsetxattr',190)
|
||||
SYS_fsmount = Constant('SYS_fsmount',432)
|
||||
SYS_fsopen = Constant('SYS_fsopen',430)
|
||||
SYS_fspick = Constant('SYS_fspick',433)
|
||||
SYS_fstat = Constant('SYS_fstat',5)
|
||||
SYS_fstatfs = Constant('SYS_fstatfs',138)
|
||||
SYS_fsync = Constant('SYS_fsync',74)
|
||||
SYS_ftruncate = Constant('SYS_ftruncate',77)
|
||||
SYS_futex = Constant('SYS_futex',202)
|
||||
SYS_futimesat = Constant('SYS_futimesat',261)
|
||||
SYS_getcpu = Constant('SYS_getcpu',309)
|
||||
SYS_getcwd = Constant('SYS_getcwd',79)
|
||||
SYS_getdents = Constant('SYS_getdents',78)
|
||||
SYS_getdents64 = Constant('SYS_getdents64',217)
|
||||
@@ -1338,6 +1594,7 @@ SYS_getpid = Constant('SYS_getpid',39)
|
||||
SYS_getpmsg = Constant('SYS_getpmsg',181)
|
||||
SYS_getppid = Constant('SYS_getppid',110)
|
||||
SYS_getpriority = Constant('SYS_getpriority',140)
|
||||
SYS_getrandom = Constant('SYS_getrandom',318)
|
||||
SYS_getresgid = Constant('SYS_getresgid',120)
|
||||
SYS_getresuid = Constant('SYS_getresuid',118)
|
||||
SYS_getrlimit = Constant('SYS_getrlimit',97)
|
||||
@@ -1361,11 +1618,17 @@ SYS_ioctl = Constant('SYS_ioctl',16)
|
||||
SYS_io_destroy = Constant('SYS_io_destroy',207)
|
||||
SYS_io_getevents = Constant('SYS_io_getevents',208)
|
||||
SYS_ioperm = Constant('SYS_ioperm',173)
|
||||
SYS_io_pgetevents = Constant('SYS_io_pgetevents',333)
|
||||
SYS_iopl = Constant('SYS_iopl',172)
|
||||
SYS_ioprio_get = Constant('SYS_ioprio_get',252)
|
||||
SYS_ioprio_set = Constant('SYS_ioprio_set',251)
|
||||
SYS_io_setup = Constant('SYS_io_setup',206)
|
||||
SYS_io_submit = Constant('SYS_io_submit',209)
|
||||
SYS_io_uring_enter = Constant('SYS_io_uring_enter',426)
|
||||
SYS_io_uring_register = Constant('SYS_io_uring_register',427)
|
||||
SYS_io_uring_setup = Constant('SYS_io_uring_setup',425)
|
||||
SYS_kcmp = Constant('SYS_kcmp',312)
|
||||
SYS_kexec_file_load = Constant('SYS_kexec_file_load',320)
|
||||
SYS_kexec_load = Constant('SYS_kexec_load',246)
|
||||
SYS_keyctl = Constant('SYS_keyctl',250)
|
||||
SYS_kill = Constant('SYS_kill',62)
|
||||
@@ -1383,6 +1646,8 @@ SYS_lsetxattr = Constant('SYS_lsetxattr',189)
|
||||
SYS_lstat = Constant('SYS_lstat',6)
|
||||
SYS_madvise = Constant('SYS_madvise',28)
|
||||
SYS_mbind = Constant('SYS_mbind',237)
|
||||
SYS_membarrier = Constant('SYS_membarrier',324)
|
||||
SYS_memfd_create = Constant('SYS_memfd_create',319)
|
||||
SYS_migrate_pages = Constant('SYS_migrate_pages',256)
|
||||
SYS_mincore = Constant('SYS_mincore',27)
|
||||
SYS_mkdir = Constant('SYS_mkdir',83)
|
||||
@@ -1390,10 +1655,12 @@ SYS_mkdirat = Constant('SYS_mkdirat',258)
|
||||
SYS_mknod = Constant('SYS_mknod',133)
|
||||
SYS_mknodat = Constant('SYS_mknodat',259)
|
||||
SYS_mlock = Constant('SYS_mlock',149)
|
||||
SYS_mlock2 = Constant('SYS_mlock2',325)
|
||||
SYS_mlockall = Constant('SYS_mlockall',151)
|
||||
SYS_mmap = Constant('SYS_mmap',9)
|
||||
SYS_modify_ldt = Constant('SYS_modify_ldt',154)
|
||||
SYS_mount = Constant('SYS_mount',165)
|
||||
SYS_move_mount = Constant('SYS_move_mount',429)
|
||||
SYS_move_pages = Constant('SYS_move_pages',279)
|
||||
SYS_mprotect = Constant('SYS_mprotect',10)
|
||||
SYS_mq_getsetattr = Constant('SYS_mq_getsetattr',245)
|
||||
@@ -1411,28 +1678,42 @@ SYS_msync = Constant('SYS_msync',26)
|
||||
SYS_munlock = Constant('SYS_munlock',150)
|
||||
SYS_munlockall = Constant('SYS_munlockall',152)
|
||||
SYS_munmap = Constant('SYS_munmap',11)
|
||||
SYS_name_to_handle_at = Constant('SYS_name_to_handle_at',303)
|
||||
SYS_nanosleep = Constant('SYS_nanosleep',35)
|
||||
SYS_newfstatat = Constant('SYS_newfstatat',262)
|
||||
SYS_nfsservctl = Constant('SYS_nfsservctl',180)
|
||||
SYS_open = Constant('SYS_open',2)
|
||||
SYS_openat = Constant('SYS_openat',257)
|
||||
SYS_openat2 = Constant('SYS_openat2',437)
|
||||
SYS_open_by_handle_at = Constant('SYS_open_by_handle_at',304)
|
||||
SYS_open_tree = Constant('SYS_open_tree',428)
|
||||
SYS_pause = Constant('SYS_pause',34)
|
||||
SYS_perf_event_open = Constant('SYS_perf_event_open',298)
|
||||
SYS_personality = Constant('SYS_personality',135)
|
||||
SYS_pidfd_getfd = Constant('SYS_pidfd_getfd',438)
|
||||
SYS_pidfd_open = Constant('SYS_pidfd_open',434)
|
||||
SYS_pidfd_send_signal = Constant('SYS_pidfd_send_signal',424)
|
||||
SYS_pipe = Constant('SYS_pipe',22)
|
||||
SYS_pipe2 = Constant('SYS_pipe2',293)
|
||||
SYS_pivot_root = Constant('SYS_pivot_root',155)
|
||||
SYS_pkey_alloc = Constant('SYS_pkey_alloc',330)
|
||||
SYS_pkey_free = Constant('SYS_pkey_free',331)
|
||||
SYS_pkey_mprotect = Constant('SYS_pkey_mprotect',329)
|
||||
SYS_poll = Constant('SYS_poll',7)
|
||||
SYS_ppoll = Constant('SYS_ppoll',271)
|
||||
SYS_prctl = Constant('SYS_prctl',157)
|
||||
SYS_pread = Constant('SYS_pread',17)
|
||||
SYS_preadv = Constant('SYS_preadv',295)
|
||||
SYS_preadv2 = Constant('SYS_preadv2',327)
|
||||
SYS_prlimit64 = Constant('SYS_prlimit64',302)
|
||||
SYS_process_vm_readv = Constant('SYS_process_vm_readv',310)
|
||||
SYS_process_vm_writev = Constant('SYS_process_vm_writev',311)
|
||||
SYS_pselect6 = Constant('SYS_pselect6',270)
|
||||
SYS_ptrace = Constant('SYS_ptrace',101)
|
||||
SYS_putpmsg = Constant('SYS_putpmsg',182)
|
||||
SYS_pwrite = Constant('SYS_pwrite',18)
|
||||
SYS_pwritev = Constant('SYS_pwritev',296)
|
||||
SYS_pwritev2 = Constant('SYS_pwritev2',328)
|
||||
SYS_query_module = Constant('SYS_query_module',178)
|
||||
SYS_quotactl = Constant('SYS_quotactl',179)
|
||||
SYS_read = Constant('SYS_read',0)
|
||||
@@ -1448,9 +1729,11 @@ SYS_remap_file_pages = Constant('SYS_remap_file_pages',216)
|
||||
SYS_removexattr = Constant('SYS_removexattr',197)
|
||||
SYS_rename = Constant('SYS_rename',82)
|
||||
SYS_renameat = Constant('SYS_renameat',264)
|
||||
SYS_renameat2 = Constant('SYS_renameat2',316)
|
||||
SYS_request_key = Constant('SYS_request_key',249)
|
||||
SYS_restart_syscall = Constant('SYS_restart_syscall',219)
|
||||
SYS_rmdir = Constant('SYS_rmdir',84)
|
||||
SYS_rseq = Constant('SYS_rseq',334)
|
||||
SYS_rt_sigaction = Constant('SYS_rt_sigaction',13)
|
||||
SYS_rt_sigpending = Constant('SYS_rt_sigpending',127)
|
||||
SYS_rt_sigprocmask = Constant('SYS_rt_sigprocmask',14)
|
||||
@@ -1460,15 +1743,18 @@ SYS_rt_sigsuspend = Constant('SYS_rt_sigsuspend',130)
|
||||
SYS_rt_sigtimedwait = Constant('SYS_rt_sigtimedwait',128)
|
||||
SYS_rt_tgsigqueueinfo = Constant('SYS_rt_tgsigqueueinfo',297)
|
||||
SYS_sched_getaffinity = Constant('SYS_sched_getaffinity',204)
|
||||
SYS_sched_getattr = Constant('SYS_sched_getattr',315)
|
||||
SYS_sched_getparam = Constant('SYS_sched_getparam',143)
|
||||
SYS_sched_get_priority_max = Constant('SYS_sched_get_priority_max',146)
|
||||
SYS_sched_get_priority_min = Constant('SYS_sched_get_priority_min',147)
|
||||
SYS_sched_getscheduler = Constant('SYS_sched_getscheduler',145)
|
||||
SYS_sched_rr_get_interval = Constant('SYS_sched_rr_get_interval',148)
|
||||
SYS_sched_setaffinity = Constant('SYS_sched_setaffinity',203)
|
||||
SYS_sched_setattr = Constant('SYS_sched_setattr',314)
|
||||
SYS_sched_setparam = Constant('SYS_sched_setparam',142)
|
||||
SYS_sched_setscheduler = Constant('SYS_sched_setscheduler',144)
|
||||
SYS_sched_yield = Constant('SYS_sched_yield',24)
|
||||
SYS_seccomp = Constant('SYS_seccomp',317)
|
||||
SYS_security = Constant('SYS_security',185)
|
||||
SYS_select = Constant('SYS_select',23)
|
||||
SYS_semctl = Constant('SYS_semctl',66)
|
||||
@@ -1476,6 +1762,7 @@ SYS_semget = Constant('SYS_semget',64)
|
||||
SYS_semop = Constant('SYS_semop',65)
|
||||
SYS_semtimedop = Constant('SYS_semtimedop',220)
|
||||
SYS_sendfile = Constant('SYS_sendfile',40)
|
||||
SYS_sendmmsg = Constant('SYS_sendmmsg',307)
|
||||
SYS_sendmsg = Constant('SYS_sendmsg',46)
|
||||
SYS_sendto = Constant('SYS_sendto',44)
|
||||
SYS_setdomainname = Constant('SYS_setdomainname',171)
|
||||
@@ -1486,6 +1773,7 @@ SYS_setgroups = Constant('SYS_setgroups',116)
|
||||
SYS_sethostname = Constant('SYS_sethostname',170)
|
||||
SYS_setitimer = Constant('SYS_setitimer',38)
|
||||
SYS_set_mempolicy = Constant('SYS_set_mempolicy',238)
|
||||
SYS_setns = Constant('SYS_setns',308)
|
||||
SYS_setpgid = Constant('SYS_setpgid',109)
|
||||
SYS_setpriority = Constant('SYS_setpriority',141)
|
||||
SYS_setregid = Constant('SYS_setregid',114)
|
||||
@@ -1514,12 +1802,14 @@ SYS_socketpair = Constant('SYS_socketpair',53)
|
||||
SYS_splice = Constant('SYS_splice',275)
|
||||
SYS_stat = Constant('SYS_stat',4)
|
||||
SYS_statfs = Constant('SYS_statfs',137)
|
||||
SYS_statx = Constant('SYS_statx',332)
|
||||
SYS_swapoff = Constant('SYS_swapoff',168)
|
||||
SYS_swapon = Constant('SYS_swapon',167)
|
||||
SYS_symlink = Constant('SYS_symlink',88)
|
||||
SYS_symlinkat = Constant('SYS_symlinkat',266)
|
||||
SYS_sync = Constant('SYS_sync',162)
|
||||
SYS_sync_file_range = Constant('SYS_sync_file_range',277)
|
||||
SYS_syncfs = Constant('SYS_syncfs',306)
|
||||
SYS__sysctl = Constant('SYS__sysctl',156)
|
||||
SYS_sysfs = Constant('SYS_sysfs',139)
|
||||
SYS_sysinfo = Constant('SYS_sysinfo',99)
|
||||
@@ -1546,6 +1836,7 @@ SYS_unlink = Constant('SYS_unlink',87)
|
||||
SYS_unlinkat = Constant('SYS_unlinkat',263)
|
||||
SYS_unshare = Constant('SYS_unshare',272)
|
||||
SYS_uselib = Constant('SYS_uselib',134)
|
||||
SYS_userfaultfd = Constant('SYS_userfaultfd',323)
|
||||
SYS_ustat = Constant('SYS_ustat',136)
|
||||
SYS_utime = Constant('SYS_utime',132)
|
||||
SYS_utimensat = Constant('SYS_utimensat',280)
|
||||
|
||||
+475
-90
@@ -1,5 +1,4 @@
|
||||
from pwnlib.constants.constant import Constant
|
||||
|
||||
__ARM_EABI__ = Constant('__ARM_EABI__',1)
|
||||
__KERNEL__ = Constant('__KERNEL__',1)
|
||||
_ARM_SYSCALL_H = Constant('_ARM_SYSCALL_H',1)
|
||||
@@ -324,6 +323,87 @@ __NR_eventfd = Constant('__NR_eventfd',(0+351))
|
||||
__NR_fallocate = Constant('__NR_fallocate',(0+352))
|
||||
__NR_timerfd_settime = Constant('__NR_timerfd_settime',(0+353))
|
||||
__NR_timerfd_gettime = Constant('__NR_timerfd_gettime',(0+354))
|
||||
__NR_signalfd4 = Constant('__NR_signalfd4',(0+355))
|
||||
__NR_eventfd2 = Constant('__NR_eventfd2',(0+356))
|
||||
__NR_epoll_create1 = Constant('__NR_epoll_create1',(0+357))
|
||||
__NR_dup3 = Constant('__NR_dup3',(0+358))
|
||||
__NR_pipe2 = Constant('__NR_pipe2',(0+359))
|
||||
__NR_inotify_init1 = Constant('__NR_inotify_init1',(0+360))
|
||||
__NR_preadv = Constant('__NR_preadv',(0+361))
|
||||
__NR_pwritev = Constant('__NR_pwritev',(0+362))
|
||||
__NR_rt_tgsigqueueinfo = Constant('__NR_rt_tgsigqueueinfo',(0+363))
|
||||
__NR_perf_event_open = Constant('__NR_perf_event_open',(0+364))
|
||||
__NR_recvmmsg = Constant('__NR_recvmmsg',(0+365))
|
||||
__NR_accept4 = Constant('__NR_accept4',(0+366))
|
||||
__NR_fanotify_init = Constant('__NR_fanotify_init',(0+367))
|
||||
__NR_fanotify_mark = Constant('__NR_fanotify_mark',(0+368))
|
||||
__NR_prlimit64 = Constant('__NR_prlimit64',(0+369))
|
||||
__NR_name_to_handle_at = Constant('__NR_name_to_handle_at',(0+370))
|
||||
__NR_open_by_handle_at = Constant('__NR_open_by_handle_at',(0+371))
|
||||
__NR_clock_adjtime = Constant('__NR_clock_adjtime',(0+372))
|
||||
__NR_syncfs = Constant('__NR_syncfs',(0+373))
|
||||
__NR_sendmmsg = Constant('__NR_sendmmsg',(0+374))
|
||||
__NR_setns = Constant('__NR_setns',(0+375))
|
||||
__NR_process_vm_readv = Constant('__NR_process_vm_readv',(0+376))
|
||||
__NR_process_vm_writev = Constant('__NR_process_vm_writev',(0+377))
|
||||
__NR_kcmp = Constant('__NR_kcmp',(0+378))
|
||||
__NR_finit_module = Constant('__NR_finit_module',(0+379))
|
||||
__NR_sched_setattr = Constant('__NR_sched_setattr',(0+380))
|
||||
__NR_sched_getattr = Constant('__NR_sched_getattr',(0+381))
|
||||
__NR_renameat2 = Constant('__NR_renameat2',(0+382))
|
||||
__NR_seccomp = Constant('__NR_seccomp',(0+383))
|
||||
__NR_getrandom = Constant('__NR_getrandom',(0+384))
|
||||
__NR_memfd_create = Constant('__NR_memfd_create',(0+385))
|
||||
__NR_bpf = Constant('__NR_bpf',(0+386))
|
||||
__NR_execveat = Constant('__NR_execveat',(0+387))
|
||||
__NR_userfaultfd = Constant('__NR_userfaultfd',(0+388))
|
||||
__NR_membarrier = Constant('__NR_membarrier',(0+389))
|
||||
__NR_mlock2 = Constant('__NR_mlock2',(0+390))
|
||||
__NR_copy_file_range = Constant('__NR_copy_file_range',(0+391))
|
||||
__NR_preadv2 = Constant('__NR_preadv2',(0+392))
|
||||
__NR_pwritev2 = Constant('__NR_pwritev2',(0+393))
|
||||
__NR_pkey_mprotect = Constant('__NR_pkey_mprotect',(0 + 394))
|
||||
__NR_pkey_alloc = Constant('__NR_pkey_alloc',(0 + 395))
|
||||
__NR_pkey_free = Constant('__NR_pkey_free',(0 + 396))
|
||||
__NR_statx = Constant('__NR_statx',(0 + 397))
|
||||
__NR_rseq = Constant('__NR_rseq',(0 + 398))
|
||||
__NR_io_pgetevents = Constant('__NR_io_pgetevents',(0 + 399))
|
||||
__NR_migrate_pages = Constant('__NR_migrate_pages',(0 + 400))
|
||||
__NR_kexec_file_load = Constant('__NR_kexec_file_load',(0 + 401))
|
||||
__NR_clock_gettime64 = Constant('__NR_clock_gettime64',(0 + 403))
|
||||
__NR_clock_settime64 = Constant('__NR_clock_settime64',(0 + 404))
|
||||
__NR_clock_adjtime64 = Constant('__NR_clock_adjtime64',(0 + 405))
|
||||
__NR_clock_getres_time64 = Constant('__NR_clock_getres_time64',(0 + 406))
|
||||
__NR_clock_nanosleep_time64 = Constant('__NR_clock_nanosleep_time64',(0 + 407))
|
||||
__NR_timer_gettime64 = Constant('__NR_timer_gettime64',(0 + 408))
|
||||
__NR_timer_settime64 = Constant('__NR_timer_settime64',(0 + 409))
|
||||
__NR_timerfd_gettime64 = Constant('__NR_timerfd_gettime64',(0 + 410))
|
||||
__NR_timerfd_settime64 = Constant('__NR_timerfd_settime64',(0 + 411))
|
||||
__NR_utimensat_time64 = Constant('__NR_utimensat_time64',(0 + 412))
|
||||
__NR_pselect6_time64 = Constant('__NR_pselect6_time64',(0 + 413))
|
||||
__NR_ppoll_time64 = Constant('__NR_ppoll_time64',(0 + 414))
|
||||
__NR_io_pgetevents_time64 = Constant('__NR_io_pgetevents_time64',(0 + 416))
|
||||
__NR_recvmmsg_time64 = Constant('__NR_recvmmsg_time64',(0 + 417))
|
||||
__NR_mq_timedsend_time64 = Constant('__NR_mq_timedsend_time64',(0 + 418))
|
||||
__NR_mq_timedreceive_time64 = Constant('__NR_mq_timedreceive_time64',(0 + 419))
|
||||
__NR_semtimedop_time64 = Constant('__NR_semtimedop_time64',(0 + 420))
|
||||
__NR_rt_sigtimedwait_time64 = Constant('__NR_rt_sigtimedwait_time64',(0 + 421))
|
||||
__NR_futex_time64 = Constant('__NR_futex_time64',(0 + 422))
|
||||
__NR_sched_rr_get_interval_time64 = Constant('__NR_sched_rr_get_interval_time64',(0 + 423))
|
||||
__NR_pidfd_send_signal = Constant('__NR_pidfd_send_signal',(0 + 424))
|
||||
__NR_io_uring_setup = Constant('__NR_io_uring_setup',(0 + 425))
|
||||
__NR_io_uring_enter = Constant('__NR_io_uring_enter',(0 + 426))
|
||||
__NR_io_uring_register = Constant('__NR_io_uring_register',(0 + 427))
|
||||
__NR_open_tree = Constant('__NR_open_tree',(0 + 428))
|
||||
__NR_move_mount = Constant('__NR_move_mount',(0 + 429))
|
||||
__NR_fsopen = Constant('__NR_fsopen',(0 + 430))
|
||||
__NR_fsconfig = Constant('__NR_fsconfig',(0 + 431))
|
||||
__NR_fsmount = Constant('__NR_fsmount',(0 + 432))
|
||||
__NR_fspick = Constant('__NR_fspick',(0 + 433))
|
||||
__NR_pidfd_open = Constant('__NR_pidfd_open',(0 + 434))
|
||||
__NR_clone3 = Constant('__NR_clone3',(0 + 435))
|
||||
__NR_openat2 = Constant('__NR_openat2',(0 + 437))
|
||||
__NR_pidfd_getfd = Constant('__NR_pidfd_getfd',(0 + 438))
|
||||
__ARM_NR_BASE = Constant('__ARM_NR_BASE',(0+0x0f0000))
|
||||
__ARM_NR_breakpoint = Constant('__ARM_NR_breakpoint',((0+0x0f0000)+1))
|
||||
__ARM_NR_cacheflush = Constant('__ARM_NR_cacheflush',((0+0x0f0000)+2))
|
||||
@@ -614,9 +694,9 @@ __ARGS_getsockname = Constant('__ARGS_getsockname',0)
|
||||
__ARGS_getpeername = Constant('__ARGS_getpeername',0)
|
||||
__ARGS_socketpair = Constant('__ARGS_socketpair',0)
|
||||
__ARGS_send = Constant('__ARGS_send',0)
|
||||
__ARGS_sendto = Constant('__ARGS_sendto',0)
|
||||
__ARGS_sendto = Constant('__ARGS_sendto',1)
|
||||
__ARGS_recv = Constant('__ARGS_recv',0)
|
||||
__ARGS_recvfrom = Constant('__ARGS_recvfrom',0)
|
||||
__ARGS_recvfrom = Constant('__ARGS_recvfrom',1)
|
||||
__ARGS_shutdown = Constant('__ARGS_shutdown',0)
|
||||
__ARGS_setsockopt = Constant('__ARGS_setsockopt',0)
|
||||
__ARGS_getsockopt = Constant('__ARGS_getsockopt',0)
|
||||
@@ -676,6 +756,31 @@ __ARGS_eventfd = Constant('__ARGS_eventfd',0)
|
||||
__ARGS_fallocate = Constant('__ARGS_fallocate',0)
|
||||
__ARGS_timerfd_settime = Constant('__ARGS_timerfd_settime',0)
|
||||
__ARGS_timerfd_gettime = Constant('__ARGS_timerfd_gettime',0)
|
||||
__ARGS_signalfd4 = Constant('__ARGS_signalfd4',0)
|
||||
__ARGS_eventfd2 = Constant('__ARGS_eventfd2',0)
|
||||
__ARGS_epoll_create1 = Constant('__ARGS_epoll_create1',0)
|
||||
__ARGS_dup3 = Constant('__ARGS_dup3',0)
|
||||
__ARGS_pipe2 = Constant('__ARGS_pipe2',0)
|
||||
__ARGS_inotify_init1 = Constant('__ARGS_inotify_init1',0)
|
||||
__ARGS_preadv = Constant('__ARGS_preadv',0)
|
||||
__ARGS_pwritev = Constant('__ARGS_pwritev',0)
|
||||
__ARGS_rt_tgsigqueueinfo = Constant('__ARGS_rt_tgsigqueueinfo',0)
|
||||
__ARGS_perf_event_open = Constant('__ARGS_perf_event_open',1)
|
||||
__ARGS_recvmmsg = Constant('__ARGS_recvmmsg',1)
|
||||
__ARGS_accept4 = Constant('__ARGS_accept4',0)
|
||||
__ARGS_fanotify_init = Constant('__ARGS_fanotify_init',0)
|
||||
__ARGS_fanotify_mark = Constant('__ARGS_fanotify_mark',1)
|
||||
__ARGS_prlimit64 = Constant('__ARGS_prlimit64',0)
|
||||
__ARGS_name_to_handle_at = Constant('__ARGS_name_to_handle_at',1)
|
||||
__ARGS_open_by_handle_at = Constant('__ARGS_open_by_handle_at',0)
|
||||
__ARGS_clock_adjtime = Constant('__ARGS_clock_adjtime',0)
|
||||
__ARGS_syncfs = Constant('__ARGS_syncfs',0)
|
||||
__ARGS_sendmmsg = Constant('__ARGS_sendmmsg',0)
|
||||
__ARGS_setns = Constant('__ARGS_setns',0)
|
||||
__ARGS_process_vm_readv = Constant('__ARGS_process_vm_readv',1)
|
||||
__ARGS_process_vm_writev = Constant('__ARGS_process_vm_writev',1)
|
||||
__ARGS_kcmp = Constant('__ARGS_kcmp',1)
|
||||
__ARGS_finit_module = Constant('__ARGS_finit_module',0)
|
||||
MAP_32BIT = Constant('MAP_32BIT',0x40)
|
||||
INADDR_ANY = Constant('INADDR_ANY',0)
|
||||
INADDR_BROADCAST = Constant('INADDR_BROADCAST',0xffffffff)
|
||||
@@ -811,7 +916,11 @@ ENOKEY = Constant('ENOKEY',126)
|
||||
EKEYEXPIRED = Constant('EKEYEXPIRED',127)
|
||||
EKEYREVOKED = Constant('EKEYREVOKED',128)
|
||||
EKEYREJECTED = Constant('EKEYREJECTED',129)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((129) + 1))
|
||||
EOWNERDEAD = Constant('EOWNERDEAD',130)
|
||||
ENOTRECOVERABLE = Constant('ENOTRECOVERABLE',131)
|
||||
ERFKILL = Constant('ERFKILL',132)
|
||||
EHWPOISON = Constant('EHWPOISON',133)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((133) + 1))
|
||||
__LITTLE_ENDIAN = Constant('__LITTLE_ENDIAN',1234)
|
||||
__BIG_ENDIAN = Constant('__BIG_ENDIAN',4321)
|
||||
__BYTE_ORDER = Constant('__BYTE_ORDER',1234)
|
||||
@@ -820,9 +929,55 @@ LITTLE_ENDIAN = Constant('LITTLE_ENDIAN',1234)
|
||||
BIG_ENDIAN = Constant('BIG_ENDIAN',4321)
|
||||
BYTE_ORDER = Constant('BYTE_ORDER',1234)
|
||||
__WORDSIZE = Constant('__WORDSIZE',32)
|
||||
INT8_MAX = Constant('INT8_MAX',(127))
|
||||
INT16_MAX = Constant('INT16_MAX',(32767))
|
||||
INT32_MAX = Constant('INT32_MAX',(2147483647))
|
||||
INT64_MAX = Constant('INT64_MAX',(9223372036854775807))
|
||||
INT8_MIN = Constant('INT8_MIN',(-1 - (127)))
|
||||
INT16_MIN = Constant('INT16_MIN',(-1 - (32767)))
|
||||
INT32_MIN = Constant('INT32_MIN',(-1 - (2147483647)))
|
||||
INT64_MIN = Constant('INT64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_LEAST8_MAX = Constant('INT_LEAST8_MAX',(127))
|
||||
INT_LEAST8_MIN = Constant('INT_LEAST8_MIN',(-1 - (127)))
|
||||
INT_LEAST16_MAX = Constant('INT_LEAST16_MAX',(32767))
|
||||
INT_LEAST16_MIN = Constant('INT_LEAST16_MIN',(-1 - (32767)))
|
||||
INT_LEAST32_MAX = Constant('INT_LEAST32_MAX',(2147483647))
|
||||
INT_LEAST32_MIN = Constant('INT_LEAST32_MIN',(-1 - (2147483647)))
|
||||
INT_LEAST64_MAX = Constant('INT_LEAST64_MAX',(9223372036854775807))
|
||||
INT_LEAST64_MIN = Constant('INT_LEAST64_MIN',(-1 - (9223372036854775807)))
|
||||
UINT8_MAX = Constant('UINT8_MAX',0xff)
|
||||
UINT16_MAX = Constant('UINT16_MAX',0xffff)
|
||||
UINT32_MAX = Constant('UINT32_MAX',0xffffffff)
|
||||
UINT64_MAX = Constant('UINT64_MAX',0xffffffffffffffff)
|
||||
UINT_LEAST8_MAX = Constant('UINT_LEAST8_MAX',0xff)
|
||||
UINT_LEAST16_MAX = Constant('UINT_LEAST16_MAX',0xffff)
|
||||
UINT_LEAST32_MAX = Constant('UINT_LEAST32_MAX',0xffffffff)
|
||||
UINT_LEAST64_MAX = Constant('UINT_LEAST64_MAX',0xffffffffffffffff)
|
||||
INTPTR_MIN = Constant('INTPTR_MIN',(-1 - (2147483647)))
|
||||
INTPTR_MAX = Constant('INTPTR_MAX',(2147483647))
|
||||
UINTPTR_MAX = Constant('UINTPTR_MAX',0xffffffff)
|
||||
SIZE_MAX = Constant('SIZE_MAX',0xffffffff)
|
||||
PTRDIFF_MIN = Constant('PTRDIFF_MIN',(-1 - (2147483647)))
|
||||
PTRDIFF_MAX = Constant('PTRDIFF_MAX',(2147483647))
|
||||
INTMAX_MIN = Constant('INTMAX_MIN',(-1 - (9223372036854775807)))
|
||||
INTMAX_MAX = Constant('INTMAX_MAX',(9223372036854775807))
|
||||
UINTMAX_MAX = Constant('UINTMAX_MAX',0xffffffffffffffff)
|
||||
INT_FAST8_MIN = Constant('INT_FAST8_MIN',(-1 - (127)))
|
||||
INT_FAST8_MAX = Constant('INT_FAST8_MAX',(127))
|
||||
INT_FAST64_MIN = Constant('INT_FAST64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST64_MAX = Constant('INT_FAST64_MAX',(9223372036854775807))
|
||||
UINT_FAST8_MAX = Constant('UINT_FAST8_MAX',0xff)
|
||||
UINT_FAST64_MAX = Constant('UINT_FAST64_MAX',0xffffffffffffffff)
|
||||
INT_FAST16_MIN = Constant('INT_FAST16_MIN',(-1 - (2147483647)))
|
||||
INT_FAST16_MAX = Constant('INT_FAST16_MAX',(2147483647))
|
||||
UINT_FAST16_MAX = Constant('UINT_FAST16_MAX',0xffffffff)
|
||||
INT_FAST32_MIN = Constant('INT_FAST32_MIN',(-1 - (2147483647)))
|
||||
INT_FAST32_MAX = Constant('INT_FAST32_MAX',(2147483647))
|
||||
UINT_FAST32_MAX = Constant('UINT_FAST32_MAX',0xffffffff)
|
||||
WINT_MIN = Constant('WINT_MIN',0)
|
||||
__FSUID_H = Constant('__FSUID_H',1)
|
||||
NSIG = Constant('NSIG',32)
|
||||
_NSIG = Constant('_NSIG',64)
|
||||
_NSIG = Constant('_NSIG',65)
|
||||
SIGHUP = Constant('SIGHUP',1)
|
||||
SIGINT = Constant('SIGINT',2)
|
||||
SIGQUIT = Constant('SIGQUIT',3)
|
||||
@@ -860,7 +1015,7 @@ SIGCLD = Constant('SIGCLD',17)
|
||||
SIGPOLL = Constant('SIGPOLL',29)
|
||||
SIGLOST = Constant('SIGLOST',30)
|
||||
SIGRTMIN = Constant('SIGRTMIN',32)
|
||||
SIGRTMAX = Constant('SIGRTMAX',(64-1))
|
||||
SIGRTMAX = Constant('SIGRTMAX',(65-1))
|
||||
SA_NOCLDSTOP = Constant('SA_NOCLDSTOP',0x00000001)
|
||||
SA_NOCLDWAIT = Constant('SA_NOCLDWAIT',0x00000002)
|
||||
SA_SIGINFO = Constant('SA_SIGINFO',0x00000004)
|
||||
@@ -910,6 +1065,8 @@ _SC_PAGESIZE = Constant('_SC_PAGESIZE',5)
|
||||
_SC_NPROCESSORS_ONLN = Constant('_SC_NPROCESSORS_ONLN',6)
|
||||
_SC_NPROCESSORS_CONF = Constant('_SC_NPROCESSORS_CONF',6)
|
||||
_SC_PHYS_PAGES = Constant('_SC_PHYS_PAGES',7)
|
||||
_SC_GETPW_R_SIZE_MAX = Constant('_SC_GETPW_R_SIZE_MAX',8)
|
||||
_SC_GETGR_R_SIZE_MAX = Constant('_SC_GETGR_R_SIZE_MAX',9)
|
||||
_PC_PATH_MAX = Constant('_PC_PATH_MAX',1)
|
||||
_PC_VDISABLE = Constant('_PC_VDISABLE',2)
|
||||
L_cuserid = Constant('L_cuserid',17)
|
||||
@@ -918,6 +1075,7 @@ F_ULOCK = Constant('F_ULOCK',0)
|
||||
F_LOCK = Constant('F_LOCK',1)
|
||||
F_TLOCK = Constant('F_TLOCK',2)
|
||||
F_TEST = Constant('F_TEST',3)
|
||||
_POSIX_MAPPED_FILES = Constant('_POSIX_MAPPED_FILES',200809)
|
||||
STAT64_HAS_BROKEN_ST_INO = Constant('STAT64_HAS_BROKEN_ST_INO',1)
|
||||
S_IFMT = Constant('S_IFMT',0o0170000)
|
||||
S_IFSOCK = Constant('S_IFSOCK',0o140000)
|
||||
@@ -945,84 +1103,7 @@ S_IXOTH = Constant('S_IXOTH',0o0001)
|
||||
S_IREAD = Constant('S_IREAD',0o0400)
|
||||
S_IWRITE = Constant('S_IWRITE',0o0200)
|
||||
S_IEXEC = Constant('S_IEXEC',0o0100)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
O_ACCMODE = Constant('O_ACCMODE',0o003)
|
||||
O_RDONLY = Constant('O_RDONLY',0o0)
|
||||
O_WRONLY = Constant('O_WRONLY',0o1)
|
||||
O_RDWR = Constant('O_RDWR',0o2)
|
||||
O_CREAT = Constant('O_CREAT',0o100)
|
||||
O_EXCL = Constant('O_EXCL',0o200)
|
||||
O_NOCTTY = Constant('O_NOCTTY',0o400)
|
||||
O_TRUNC = Constant('O_TRUNC',0o1000)
|
||||
O_APPEND = Constant('O_APPEND',0o2000)
|
||||
O_NONBLOCK = Constant('O_NONBLOCK',0o4000)
|
||||
O_NDELAY = Constant('O_NDELAY',0o4000)
|
||||
O_SYNC = Constant('O_SYNC',0o10000)
|
||||
FASYNC = Constant('FASYNC',0o20000)
|
||||
O_DIRECTORY = Constant('O_DIRECTORY',0o40000)
|
||||
O_NOFOLLOW = Constant('O_NOFOLLOW',0o100000)
|
||||
O_DIRECT = Constant('O_DIRECT',0o200000)
|
||||
O_LARGEFILE = Constant('O_LARGEFILE',0o400000)
|
||||
O_NOATIME = Constant('O_NOATIME',0o1000000)
|
||||
F_DUPFD = Constant('F_DUPFD',0)
|
||||
F_GETFD = Constant('F_GETFD',1)
|
||||
F_SETFD = Constant('F_SETFD',2)
|
||||
F_GETFL = Constant('F_GETFL',3)
|
||||
F_SETFL = Constant('F_SETFL',4)
|
||||
F_GETLK = Constant('F_GETLK',5)
|
||||
F_SETLK = Constant('F_SETLK',6)
|
||||
F_SETLKW = Constant('F_SETLKW',7)
|
||||
F_SETOWN = Constant('F_SETOWN',8)
|
||||
F_GETOWN = Constant('F_GETOWN',9)
|
||||
F_SETSIG = Constant('F_SETSIG',10)
|
||||
F_GETSIG = Constant('F_GETSIG',11)
|
||||
F_GETLK64 = Constant('F_GETLK64',12)
|
||||
F_SETLK64 = Constant('F_SETLK64',13)
|
||||
F_SETLKW64 = Constant('F_SETLKW64',14)
|
||||
FD_CLOEXEC = Constant('FD_CLOEXEC',1)
|
||||
F_RDLCK = Constant('F_RDLCK',0)
|
||||
F_WRLCK = Constant('F_WRLCK',1)
|
||||
F_UNLCK = Constant('F_UNLCK',2)
|
||||
F_EXLCK = Constant('F_EXLCK',4)
|
||||
F_SHLCK = Constant('F_SHLCK',8)
|
||||
F_INPROGRESS = Constant('F_INPROGRESS',16)
|
||||
LOCK_SH = Constant('LOCK_SH',1)
|
||||
LOCK_EX = Constant('LOCK_EX',2)
|
||||
LOCK_NB = Constant('LOCK_NB',4)
|
||||
LOCK_UN = Constant('LOCK_UN',8)
|
||||
LOCK_MAND = Constant('LOCK_MAND',32)
|
||||
LOCK_READ = Constant('LOCK_READ',64)
|
||||
LOCK_WRITE = Constant('LOCK_WRITE',128)
|
||||
LOCK_RW = Constant('LOCK_RW',192)
|
||||
O_ASYNC = Constant('O_ASYNC',0o20000)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_FIXED = Constant('MAP_FIXED',0x10)
|
||||
MAP_ANONYMOUS = Constant('MAP_ANONYMOUS',0x20)
|
||||
MAP_GROWSDOWN = Constant('MAP_GROWSDOWN',0x0100)
|
||||
MAP_DENYWRITE = Constant('MAP_DENYWRITE',0x0800)
|
||||
MAP_EXECUTABLE = Constant('MAP_EXECUTABLE',0x1000)
|
||||
MAP_LOCKED = Constant('MAP_LOCKED',0x2000)
|
||||
MAP_NORESERVE = Constant('MAP_NORESERVE',0x4000)
|
||||
MAP_POPULATE = Constant('MAP_POPULATE',0x8000)
|
||||
MS_ASYNC = Constant('MS_ASYNC',1)
|
||||
MS_INVALIDATE = Constant('MS_INVALIDATE',2)
|
||||
MS_SYNC = Constant('MS_SYNC',4)
|
||||
MCL_CURRENT = Constant('MCL_CURRENT',1)
|
||||
MCL_FUTURE = Constant('MCL_FUTURE',2)
|
||||
MADV_NORMAL = Constant('MADV_NORMAL',0x0)
|
||||
MADV_RANDOM = Constant('MADV_RANDOM',0x1)
|
||||
MADV_SEQUENTIAL = Constant('MADV_SEQUENTIAL',0x2)
|
||||
MADV_WILLNEED = Constant('MADV_WILLNEED',0x3)
|
||||
MADV_DONTNEED = Constant('MADV_DONTNEED',0x4)
|
||||
MAP_ANON = Constant('MAP_ANON',0x20)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
_SYS_UIO = Constant('_SYS_UIO',1)
|
||||
SOL_SOCKET = Constant('SOL_SOCKET',1)
|
||||
SO_DEBUG = Constant('SO_DEBUG',1)
|
||||
SO_REUSEADDR = Constant('SO_REUSEADDR',2)
|
||||
@@ -1038,29 +1119,64 @@ SO_NO_CHECK = Constant('SO_NO_CHECK',11)
|
||||
SO_PRIORITY = Constant('SO_PRIORITY',12)
|
||||
SO_LINGER = Constant('SO_LINGER',13)
|
||||
SO_BSDCOMPAT = Constant('SO_BSDCOMPAT',14)
|
||||
SO_REUSEPORT = Constant('SO_REUSEPORT',15)
|
||||
SO_PASSCRED = Constant('SO_PASSCRED',16)
|
||||
SO_PEERCRED = Constant('SO_PEERCRED',17)
|
||||
SO_RCVLOWAT = Constant('SO_RCVLOWAT',18)
|
||||
SO_SNDLOWAT = Constant('SO_SNDLOWAT',19)
|
||||
SO_RCVTIMEO = Constant('SO_RCVTIMEO',20)
|
||||
SO_SNDTIMEO = Constant('SO_SNDTIMEO',21)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_SECURITY_AUTHENTICATION = Constant('SO_SECURITY_AUTHENTICATION',22)
|
||||
SO_SECURITY_ENCRYPTION_TRANSPORT = Constant('SO_SECURITY_ENCRYPTION_TRANSPORT',23)
|
||||
SO_SECURITY_ENCRYPTION_NETWORK = Constant('SO_SECURITY_ENCRYPTION_NETWORK',24)
|
||||
SO_BINDTODEVICE = Constant('SO_BINDTODEVICE',25)
|
||||
SO_ATTACH_FILTER = Constant('SO_ATTACH_FILTER',26)
|
||||
SO_DETACH_FILTER = Constant('SO_DETACH_FILTER',27)
|
||||
SO_GET_FILTER = Constant('SO_GET_FILTER',26)
|
||||
SO_PEERNAME = Constant('SO_PEERNAME',28)
|
||||
SO_TIMESTAMP = Constant('SO_TIMESTAMP',29)
|
||||
SCM_TIMESTAMP = Constant('SCM_TIMESTAMP',29)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_PEERSEC = Constant('SO_PEERSEC',31)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_PASSSEC = Constant('SO_PASSSEC',34)
|
||||
SO_TIMESTAMPNS = Constant('SO_TIMESTAMPNS',35)
|
||||
SCM_TIMESTAMPNS = Constant('SCM_TIMESTAMPNS',35)
|
||||
SO_MARK = Constant('SO_MARK',36)
|
||||
SO_TIMESTAMPING = Constant('SO_TIMESTAMPING',37)
|
||||
SCM_TIMESTAMPING = Constant('SCM_TIMESTAMPING',37)
|
||||
SO_PROTOCOL = Constant('SO_PROTOCOL',38)
|
||||
SO_DOMAIN = Constant('SO_DOMAIN',39)
|
||||
SO_RXQ_OVFL = Constant('SO_RXQ_OVFL',40)
|
||||
SO_WIFI_STATUS = Constant('SO_WIFI_STATUS',41)
|
||||
SCM_WIFI_STATUS = Constant('SCM_WIFI_STATUS',41)
|
||||
SO_PEEK_OFF = Constant('SO_PEEK_OFF',42)
|
||||
SO_NOFCS = Constant('SO_NOFCS',43)
|
||||
SO_LOCK_FILTER = Constant('SO_LOCK_FILTER',44)
|
||||
SO_SELECT_ERR_QUEUE = Constant('SO_SELECT_ERR_QUEUE',45)
|
||||
SO_BUSY_POLL = Constant('SO_BUSY_POLL',46)
|
||||
SO_MAX_PACING_RATE = Constant('SO_MAX_PACING_RATE',47)
|
||||
SO_BPF_EXTENSIONS = Constant('SO_BPF_EXTENSIONS',48)
|
||||
SO_INCOMING_CPU = Constant('SO_INCOMING_CPU',49)
|
||||
SO_ATTACH_BPF = Constant('SO_ATTACH_BPF',50)
|
||||
SO_DETACH_BPF = Constant('SO_DETACH_BPF',27)
|
||||
SO_ATTACH_REUSEPORT_CBPF = Constant('SO_ATTACH_REUSEPORT_CBPF',51)
|
||||
SO_ATTACH_REUSEPORT_EBPF = Constant('SO_ATTACH_REUSEPORT_EBPF',52)
|
||||
SO_CNX_ADVICE = Constant('SO_CNX_ADVICE',53)
|
||||
SCM_TIMESTAMPING_OPT_STATS = Constant('SCM_TIMESTAMPING_OPT_STATS',54)
|
||||
SO_MEMINFO = Constant('SO_MEMINFO',55)
|
||||
SO_INCOMING_NAPI_ID = Constant('SO_INCOMING_NAPI_ID',56)
|
||||
SO_COOKIE = Constant('SO_COOKIE',57)
|
||||
SCM_TIMESTAMPING_PKTINFO = Constant('SCM_TIMESTAMPING_PKTINFO',58)
|
||||
SO_PEERGROUPS = Constant('SO_PEERGROUPS',59)
|
||||
SO_ZEROCOPY = Constant('SO_ZEROCOPY',60)
|
||||
SOCK_STREAM = Constant('SOCK_STREAM',1)
|
||||
SOCK_DGRAM = Constant('SOCK_DGRAM',2)
|
||||
SOCK_RAW = Constant('SOCK_RAW',3)
|
||||
SOCK_RDM = Constant('SOCK_RDM',4)
|
||||
SOCK_SEQPACKET = Constant('SOCK_SEQPACKET',5)
|
||||
SOCK_DCCP = Constant('SOCK_DCCP',6)
|
||||
SOCK_PACKET = Constant('SOCK_PACKET',10)
|
||||
UIO_FASTIOV = Constant('UIO_FASTIOV',8)
|
||||
UIO_MAXIOV = Constant('UIO_MAXIOV',1024)
|
||||
@@ -1094,7 +1210,25 @@ AF_SNA = Constant('AF_SNA',22)
|
||||
AF_IRDA = Constant('AF_IRDA',23)
|
||||
AF_PPPOX = Constant('AF_PPPOX',24)
|
||||
AF_WANPIPE = Constant('AF_WANPIPE',25)
|
||||
AF_MAX = Constant('AF_MAX',32)
|
||||
AF_LLC = Constant('AF_LLC',26)
|
||||
AF_IB = Constant('AF_IB',27)
|
||||
AF_MPLS = Constant('AF_MPLS',28)
|
||||
AF_CAN = Constant('AF_CAN',29)
|
||||
AF_TIPC = Constant('AF_TIPC',30)
|
||||
AF_BLUETOOTH = Constant('AF_BLUETOOTH',31)
|
||||
AF_IUCV = Constant('AF_IUCV',32)
|
||||
AF_RXRPC = Constant('AF_RXRPC',33)
|
||||
AF_ISDN = Constant('AF_ISDN',34)
|
||||
AF_PHONET = Constant('AF_PHONET',35)
|
||||
AF_IEEE802154 = Constant('AF_IEEE802154',36)
|
||||
AF_CAIF = Constant('AF_CAIF',37)
|
||||
AF_ALG = Constant('AF_ALG',38)
|
||||
AF_NFC = Constant('AF_NFC',39)
|
||||
AF_VSOCK = Constant('AF_VSOCK',40)
|
||||
AF_KCM = Constant('AF_KCM',41)
|
||||
AF_QIPCRTR = Constant('AF_QIPCRTR',42)
|
||||
AF_SMC = Constant('AF_SMC',43)
|
||||
AF_MAX = Constant('AF_MAX',44)
|
||||
PF_UNSPEC = Constant('PF_UNSPEC',0)
|
||||
PF_UNIX = Constant('PF_UNIX',1)
|
||||
PF_LOCAL = Constant('PF_LOCAL',1)
|
||||
@@ -1122,7 +1256,25 @@ PF_SNA = Constant('PF_SNA',22)
|
||||
PF_IRDA = Constant('PF_IRDA',23)
|
||||
PF_PPPOX = Constant('PF_PPPOX',24)
|
||||
PF_WANPIPE = Constant('PF_WANPIPE',25)
|
||||
PF_MAX = Constant('PF_MAX',32)
|
||||
PF_LLC = Constant('PF_LLC',26)
|
||||
PF_IB = Constant('PF_IB',27)
|
||||
PF_MPLS = Constant('PF_MPLS',28)
|
||||
PF_CAN = Constant('PF_CAN',29)
|
||||
PF_TIPC = Constant('PF_TIPC',30)
|
||||
PF_BLUETOOTH = Constant('PF_BLUETOOTH',31)
|
||||
PF_IUCV = Constant('PF_IUCV',32)
|
||||
PF_RXRPC = Constant('PF_RXRPC',33)
|
||||
PF_ISDN = Constant('PF_ISDN',34)
|
||||
PF_PHONET = Constant('PF_PHONET',35)
|
||||
PF_IEEE802154 = Constant('PF_IEEE802154',36)
|
||||
PF_CAIF = Constant('PF_CAIF',37)
|
||||
PF_ALG = Constant('PF_ALG',38)
|
||||
PF_NFC = Constant('PF_NFC',39)
|
||||
PF_VSOCK = Constant('PF_VSOCK',40)
|
||||
PF_KCM = Constant('PF_KCM',41)
|
||||
PF_QIPCRTR = Constant('PF_QIPCRTR',42)
|
||||
PF_SMC = Constant('PF_SMC',43)
|
||||
PF_MAX = Constant('PF_MAX',44)
|
||||
SOMAXCONN = Constant('SOMAXCONN',128)
|
||||
MSG_OOB = Constant('MSG_OOB',1)
|
||||
MSG_PEEK = Constant('MSG_PEEK',2)
|
||||
@@ -1135,18 +1287,26 @@ MSG_DONTWAIT = Constant('MSG_DONTWAIT',0x40)
|
||||
MSG_EOR = Constant('MSG_EOR',0x80)
|
||||
MSG_WAITALL = Constant('MSG_WAITALL',0x100)
|
||||
MSG_FIN = Constant('MSG_FIN',0x200)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_SYN = Constant('MSG_SYN',0x400)
|
||||
MSG_CONFIRM = Constant('MSG_CONFIRM',0x800)
|
||||
MSG_RST = Constant('MSG_RST',0x1000)
|
||||
MSG_ERRQUEUE = Constant('MSG_ERRQUEUE',0x2000)
|
||||
MSG_NOSIGNAL = Constant('MSG_NOSIGNAL',0x4000)
|
||||
MSG_MORE = Constant('MSG_MORE',0x8000)
|
||||
MSG_WAITFORONE = Constant('MSG_WAITFORONE',0x10000)
|
||||
MSG_SENDPAGE_NOTLAST = Constant('MSG_SENDPAGE_NOTLAST',0x20000)
|
||||
MSG_BATCH = Constant('MSG_BATCH',0x40000)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_ZEROCOPY = Constant('MSG_ZEROCOPY',0x4000000)
|
||||
MSG_FASTOPEN = Constant('MSG_FASTOPEN',0x20000000)
|
||||
MSG_CMSG_CLOEXEC = Constant('MSG_CMSG_CLOEXEC',0x40000000)
|
||||
SOL_IP = Constant('SOL_IP',0)
|
||||
SOL_TCP = Constant('SOL_TCP',6)
|
||||
SOL_UDP = Constant('SOL_UDP',17)
|
||||
SOL_IPV6 = Constant('SOL_IPV6',41)
|
||||
SOL_ICMPV6 = Constant('SOL_ICMPV6',58)
|
||||
SOL_SCTP = Constant('SOL_SCTP',132)
|
||||
SOL_UDPLITE = Constant('SOL_UDPLITE',136)
|
||||
SOL_RAW = Constant('SOL_RAW',255)
|
||||
SOL_IPX = Constant('SOL_IPX',256)
|
||||
SOL_AX25 = Constant('SOL_AX25',257)
|
||||
@@ -1159,6 +1319,22 @@ SOL_PACKET = Constant('SOL_PACKET',263)
|
||||
SOL_ATM = Constant('SOL_ATM',264)
|
||||
SOL_AAL = Constant('SOL_AAL',265)
|
||||
SOL_IRDA = Constant('SOL_IRDA',266)
|
||||
SOL_NETBEUI = Constant('SOL_NETBEUI',267)
|
||||
SOL_LLC = Constant('SOL_LLC',268)
|
||||
SOL_DCCP = Constant('SOL_DCCP',269)
|
||||
SOL_NETLINK = Constant('SOL_NETLINK',270)
|
||||
SOL_TIPC = Constant('SOL_TIPC',271)
|
||||
SOL_RXRPC = Constant('SOL_RXRPC',272)
|
||||
SOL_PPPOL2TP = Constant('SOL_PPPOL2TP',273)
|
||||
SOL_BLUETOOTH = Constant('SOL_BLUETOOTH',274)
|
||||
SOL_PNPIPE = Constant('SOL_PNPIPE',275)
|
||||
SOL_RDS = Constant('SOL_RDS',276)
|
||||
SOL_IUCV = Constant('SOL_IUCV',277)
|
||||
SOL_CAIF = Constant('SOL_CAIF',278)
|
||||
SOL_ALG = Constant('SOL_ALG',279)
|
||||
SOL_NFC = Constant('SOL_NFC',280)
|
||||
SOL_KCM = Constant('SOL_KCM',281)
|
||||
SOL_TLS = Constant('SOL_TLS',282)
|
||||
IPX_TYPE = Constant('IPX_TYPE',1)
|
||||
SHUT_RD = Constant('SHUT_RD',0)
|
||||
SHUT_WR = Constant('SHUT_WR',1)
|
||||
@@ -1182,6 +1358,10 @@ EAI_SYSTEM = Constant('EAI_SYSTEM',-11)
|
||||
AI_NUMERICHOST = Constant('AI_NUMERICHOST',1)
|
||||
AI_CANONNAME = Constant('AI_CANONNAME',2)
|
||||
AI_PASSIVE = Constant('AI_PASSIVE',4)
|
||||
AI_NUMERICSERV = Constant('AI_NUMERICSERV',8)
|
||||
AI_ADDRCONFIG = Constant('AI_ADDRCONFIG',16)
|
||||
AI_V4MAPPED = Constant('AI_V4MAPPED',32)
|
||||
AI_ALL = Constant('AI_ALL',64)
|
||||
SIOCADDRT = Constant('SIOCADDRT',0x890B)
|
||||
SIOCDELRT = Constant('SIOCDELRT',0x890C)
|
||||
SIOCRTMSG = Constant('SIOCRTMSG',0x890D)
|
||||
@@ -1238,6 +1418,130 @@ SIOCSIFMAP = Constant('SIOCSIFMAP',0x8971)
|
||||
SIOCADDDLCI = Constant('SIOCADDDLCI',0x8980)
|
||||
SIOCDELDLCI = Constant('SIOCDELDLCI',0x8981)
|
||||
SIOCDEVPRIVATE = Constant('SIOCDEVPRIVATE',0x89F0)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
O_ACCMODE = Constant('O_ACCMODE',0o003)
|
||||
O_RDONLY = Constant('O_RDONLY',0o0)
|
||||
O_WRONLY = Constant('O_WRONLY',0o1)
|
||||
O_RDWR = Constant('O_RDWR',0o2)
|
||||
O_CREAT = Constant('O_CREAT',0o100)
|
||||
O_EXCL = Constant('O_EXCL',0o200)
|
||||
O_NOCTTY = Constant('O_NOCTTY',0o400)
|
||||
O_TRUNC = Constant('O_TRUNC',0o1000)
|
||||
O_APPEND = Constant('O_APPEND',0o2000)
|
||||
O_NONBLOCK = Constant('O_NONBLOCK',0o4000)
|
||||
O_NDELAY = Constant('O_NDELAY',0o4000)
|
||||
O_DSYNC = Constant('O_DSYNC',0o10000)
|
||||
FASYNC = Constant('FASYNC',0o20000)
|
||||
O_DIRECTORY = Constant('O_DIRECTORY',0o40000)
|
||||
O_NOFOLLOW = Constant('O_NOFOLLOW',0o100000)
|
||||
O_DIRECT = Constant('O_DIRECT',0o200000)
|
||||
O_LARGEFILE = Constant('O_LARGEFILE',0o400000)
|
||||
O_NOATIME = Constant('O_NOATIME',0o1000000)
|
||||
O_CLOEXEC = Constant('O_CLOEXEC',0o2000000)
|
||||
O_SYNC = Constant('O_SYNC',(0o10000|0o4000000))
|
||||
O_PATH = Constant('O_PATH',0o10000000)
|
||||
__O_TMPFILE = Constant('__O_TMPFILE',0o20000000)
|
||||
F_DUPFD = Constant('F_DUPFD',0)
|
||||
F_GETFD = Constant('F_GETFD',1)
|
||||
F_SETFD = Constant('F_SETFD',2)
|
||||
F_GETFL = Constant('F_GETFL',3)
|
||||
F_SETFL = Constant('F_SETFL',4)
|
||||
F_GETLK = Constant('F_GETLK',5)
|
||||
F_SETLK = Constant('F_SETLK',6)
|
||||
F_SETLKW = Constant('F_SETLKW',7)
|
||||
F_SETOWN = Constant('F_SETOWN',8)
|
||||
F_GETOWN = Constant('F_GETOWN',9)
|
||||
F_SETSIG = Constant('F_SETSIG',10)
|
||||
F_GETSIG = Constant('F_GETSIG',11)
|
||||
F_GETLK64 = Constant('F_GETLK64',12)
|
||||
F_SETLK64 = Constant('F_SETLK64',13)
|
||||
F_SETLKW64 = Constant('F_SETLKW64',14)
|
||||
FD_CLOEXEC = Constant('FD_CLOEXEC',1)
|
||||
F_RDLCK = Constant('F_RDLCK',0)
|
||||
F_WRLCK = Constant('F_WRLCK',1)
|
||||
F_UNLCK = Constant('F_UNLCK',2)
|
||||
F_EXLCK = Constant('F_EXLCK',4)
|
||||
F_SHLCK = Constant('F_SHLCK',8)
|
||||
F_INPROGRESS = Constant('F_INPROGRESS',16)
|
||||
LOCK_SH = Constant('LOCK_SH',1)
|
||||
LOCK_EX = Constant('LOCK_EX',2)
|
||||
LOCK_NB = Constant('LOCK_NB',4)
|
||||
LOCK_UN = Constant('LOCK_UN',8)
|
||||
LOCK_MAND = Constant('LOCK_MAND',32)
|
||||
LOCK_READ = Constant('LOCK_READ',64)
|
||||
LOCK_WRITE = Constant('LOCK_WRITE',128)
|
||||
LOCK_RW = Constant('LOCK_RW',192)
|
||||
O_TMPFILE = Constant('O_TMPFILE',(0o20000000 | 0o40000))
|
||||
O_ASYNC = Constant('O_ASYNC',0o20000)
|
||||
F_SETOWN_EX = Constant('F_SETOWN_EX',15)
|
||||
F_GETOWN_EX = Constant('F_GETOWN_EX',16)
|
||||
F_GETOWNER_UIDS = Constant('F_GETOWNER_UIDS',17)
|
||||
F_OFD_GETLK = Constant('F_OFD_GETLK',36)
|
||||
F_OFD_SETLK = Constant('F_OFD_SETLK',37)
|
||||
F_OFD_SETLKW = Constant('F_OFD_SETLKW',38)
|
||||
F_OWNER_TID = Constant('F_OWNER_TID',0)
|
||||
F_OWNER_PID = Constant('F_OWNER_PID',1)
|
||||
F_OWNER_PGRP = Constant('F_OWNER_PGRP',2)
|
||||
AT_FDCWD = Constant('AT_FDCWD',-100)
|
||||
AT_SYMLINK_NOFOLLOW = Constant('AT_SYMLINK_NOFOLLOW',0x100)
|
||||
AT_REMOVEDIR = Constant('AT_REMOVEDIR',0x200)
|
||||
AT_SYMLINK_FOLLOW = Constant('AT_SYMLINK_FOLLOW',0x400)
|
||||
AT_NO_AUTOMOUNT = Constant('AT_NO_AUTOMOUNT',0x800)
|
||||
AT_EMPTY_PATH = Constant('AT_EMPTY_PATH',0x1000)
|
||||
AT_EACCESS = Constant('AT_EACCESS',0x200)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_SEM = Constant('PROT_SEM',0x8)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
PROT_GROWSDOWN = Constant('PROT_GROWSDOWN',0x01000000)
|
||||
PROT_GROWSUP = Constant('PROT_GROWSUP',0x02000000)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_TYPE = Constant('MAP_TYPE',0xf)
|
||||
MADV_REMOVE = Constant('MADV_REMOVE',9)
|
||||
MADV_DONTFORK = Constant('MADV_DONTFORK',10)
|
||||
MADV_DOFORK = Constant('MADV_DOFORK',11)
|
||||
MADV_MERGEABLE = Constant('MADV_MERGEABLE',12)
|
||||
MADV_UNMERGEABLE = Constant('MADV_UNMERGEABLE',13)
|
||||
MADV_HUGEPAGE = Constant('MADV_HUGEPAGE',14)
|
||||
MADV_NOHUGEPAGE = Constant('MADV_NOHUGEPAGE',15)
|
||||
MADV_DONTDUMP = Constant('MADV_DONTDUMP',16)
|
||||
MADV_DODUMP = Constant('MADV_DODUMP',17)
|
||||
MADV_HWPOISON = Constant('MADV_HWPOISON',100)
|
||||
MADV_SOFT_OFFLINE = Constant('MADV_SOFT_OFFLINE',101)
|
||||
MLOCK_ONFAULT = Constant('MLOCK_ONFAULT',1)
|
||||
MAP_FIXED = Constant('MAP_FIXED',0x10)
|
||||
MAP_ANONYMOUS = Constant('MAP_ANONYMOUS',0x20)
|
||||
MAP_GROWSDOWN = Constant('MAP_GROWSDOWN',0x0100)
|
||||
MAP_DENYWRITE = Constant('MAP_DENYWRITE',0x0800)
|
||||
MAP_EXECUTABLE = Constant('MAP_EXECUTABLE',0x1000)
|
||||
MAP_LOCKED = Constant('MAP_LOCKED',0x2000)
|
||||
MAP_NORESERVE = Constant('MAP_NORESERVE',0x4000)
|
||||
MAP_POPULATE = Constant('MAP_POPULATE',0x8000)
|
||||
MAP_NONBLOCK = Constant('MAP_NONBLOCK',0x10000)
|
||||
MAP_STACK = Constant('MAP_STACK',0x20000)
|
||||
MAP_HUGETLB = Constant('MAP_HUGETLB',0x40000)
|
||||
MS_ASYNC = Constant('MS_ASYNC',1)
|
||||
MS_INVALIDATE = Constant('MS_INVALIDATE',2)
|
||||
MS_SYNC = Constant('MS_SYNC',4)
|
||||
MCL_CURRENT = Constant('MCL_CURRENT',1)
|
||||
MCL_FUTURE = Constant('MCL_FUTURE',2)
|
||||
MCL_ONFAULT = Constant('MCL_ONFAULT',4)
|
||||
MADV_NORMAL = Constant('MADV_NORMAL',0x0)
|
||||
MADV_RANDOM = Constant('MADV_RANDOM',0x1)
|
||||
MADV_SEQUENTIAL = Constant('MADV_SEQUENTIAL',0x2)
|
||||
MADV_WILLNEED = Constant('MADV_WILLNEED',0x3)
|
||||
MADV_DONTNEED = Constant('MADV_DONTNEED',0x4)
|
||||
MAP_ANON = Constant('MAP_ANON',0x20)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
POSIX_MADV_NORMAL = Constant('POSIX_MADV_NORMAL',0x0)
|
||||
POSIX_MADV_SEQUENTIAL = Constant('POSIX_MADV_SEQUENTIAL',0x2)
|
||||
POSIX_MADV_RANDOM = Constant('POSIX_MADV_RANDOM',0x1)
|
||||
POSIX_MADV_WILLNEED = Constant('POSIX_MADV_WILLNEED',0x3)
|
||||
POSIX_MADV_DONTNEED = Constant('POSIX_MADV_DONTNEED',0x4)
|
||||
PTRACE_TRACEME = Constant('PTRACE_TRACEME',0)
|
||||
PTRACE_PEEKTEXT = Constant('PTRACE_PEEKTEXT',1)
|
||||
PTRACE_PEEKDATA = Constant('PTRACE_PEEKDATA',2)
|
||||
@@ -1303,6 +1607,7 @@ CC_Z_BIT = Constant('CC_Z_BIT',(1 << 30))
|
||||
CC_N_BIT = Constant('CC_N_BIT',(1 << 31))
|
||||
PCMASK = Constant('PCMASK',0)
|
||||
SYS_accept = Constant('SYS_accept',(0+285))
|
||||
SYS_accept4 = Constant('SYS_accept4',(0+366))
|
||||
SYS_access = Constant('SYS_access',(0+ 33))
|
||||
SYS_acct = Constant('SYS_acct',(0+ 51))
|
||||
SYS_add_key = Constant('SYS_add_key',(0+309))
|
||||
@@ -1312,6 +1617,7 @@ SYS_arm_fadvise64_64 = Constant('SYS_arm_fadvise64_64',(0+270))
|
||||
SYS_arm_sync_file_range = Constant('SYS_arm_sync_file_range',(0+341))
|
||||
SYS_bdflush = Constant('SYS_bdflush',(0+134))
|
||||
SYS_bind = Constant('SYS_bind',(0+282))
|
||||
SYS_bpf = Constant('SYS_bpf',(0+386))
|
||||
SYS_brk = Constant('SYS_brk',(0+ 45))
|
||||
SYS_capget = Constant('SYS_capget',(0+184))
|
||||
SYS_capset = Constant('SYS_capset',(0+185))
|
||||
@@ -1320,26 +1626,40 @@ SYS_chmod = Constant('SYS_chmod',(0+ 15))
|
||||
SYS_chown = Constant('SYS_chown',(0+182))
|
||||
SYS_chown32 = Constant('SYS_chown32',(0+212))
|
||||
SYS_chroot = Constant('SYS_chroot',(0+ 61))
|
||||
SYS_clock_adjtime = Constant('SYS_clock_adjtime',(0+372))
|
||||
SYS_clock_adjtime64 = Constant('SYS_clock_adjtime64',(0 + 405))
|
||||
SYS_clock_getres = Constant('SYS_clock_getres',(0+264))
|
||||
SYS_clock_getres_time64 = Constant('SYS_clock_getres_time64',(0 + 406))
|
||||
SYS_clock_gettime = Constant('SYS_clock_gettime',(0+263))
|
||||
SYS_clock_gettime64 = Constant('SYS_clock_gettime64',(0 + 403))
|
||||
SYS_clock_nanosleep = Constant('SYS_clock_nanosleep',(0+265))
|
||||
SYS_clock_nanosleep_time64 = Constant('SYS_clock_nanosleep_time64',(0 + 407))
|
||||
SYS_clock_settime = Constant('SYS_clock_settime',(0+262))
|
||||
SYS_clock_settime64 = Constant('SYS_clock_settime64',(0 + 404))
|
||||
SYS_clone = Constant('SYS_clone',(0+120))
|
||||
SYS_clone3 = Constant('SYS_clone3',(0 + 435))
|
||||
SYS_close = Constant('SYS_close',(0+ 6))
|
||||
SYS_connect = Constant('SYS_connect',(0+283))
|
||||
SYS_copy_file_range = Constant('SYS_copy_file_range',(0+391))
|
||||
SYS_creat = Constant('SYS_creat',(0+ 8))
|
||||
SYS_delete_module = Constant('SYS_delete_module',(0+129))
|
||||
SYS_dup = Constant('SYS_dup',(0+ 41))
|
||||
SYS_dup2 = Constant('SYS_dup2',(0+ 63))
|
||||
SYS_dup3 = Constant('SYS_dup3',(0+358))
|
||||
SYS_epoll_create = Constant('SYS_epoll_create',(0+250))
|
||||
SYS_epoll_create1 = Constant('SYS_epoll_create1',(0+357))
|
||||
SYS_epoll_ctl = Constant('SYS_epoll_ctl',(0+251))
|
||||
SYS_epoll_wait = Constant('SYS_epoll_wait',(0+252))
|
||||
SYS_eventfd = Constant('SYS_eventfd',(0+351))
|
||||
SYS_eventfd2 = Constant('SYS_eventfd2',(0+356))
|
||||
SYS_execve = Constant('SYS_execve',(0+ 11))
|
||||
SYS_execveat = Constant('SYS_execveat',(0+387))
|
||||
SYS_exit = Constant('SYS_exit',(0+ 1))
|
||||
SYS_exit_group = Constant('SYS_exit_group',(0+248))
|
||||
SYS_faccessat = Constant('SYS_faccessat',(0+334))
|
||||
SYS_fallocate = Constant('SYS_fallocate',(0+352))
|
||||
SYS_fanotify_init = Constant('SYS_fanotify_init',(0+367))
|
||||
SYS_fanotify_mark = Constant('SYS_fanotify_mark',(0+368))
|
||||
SYS_fchdir = Constant('SYS_fchdir',(0+133))
|
||||
SYS_fchmod = Constant('SYS_fchmod',(0+ 94))
|
||||
SYS_fchmodat = Constant('SYS_fchmodat',(0+333))
|
||||
@@ -1350,11 +1670,16 @@ SYS_fcntl = Constant('SYS_fcntl',(0+ 55))
|
||||
SYS_fcntl64 = Constant('SYS_fcntl64',(0+221))
|
||||
SYS_fdatasync = Constant('SYS_fdatasync',(0+148))
|
||||
SYS_fgetxattr = Constant('SYS_fgetxattr',(0+231))
|
||||
SYS_finit_module = Constant('SYS_finit_module',(0+379))
|
||||
SYS_flistxattr = Constant('SYS_flistxattr',(0+234))
|
||||
SYS_flock = Constant('SYS_flock',(0+143))
|
||||
SYS_fork = Constant('SYS_fork',(0+ 2))
|
||||
SYS_fremovexattr = Constant('SYS_fremovexattr',(0+237))
|
||||
SYS_fsconfig = Constant('SYS_fsconfig',(0 + 431))
|
||||
SYS_fsetxattr = Constant('SYS_fsetxattr',(0+228))
|
||||
SYS_fsmount = Constant('SYS_fsmount',(0 + 432))
|
||||
SYS_fsopen = Constant('SYS_fsopen',(0 + 430))
|
||||
SYS_fspick = Constant('SYS_fspick',(0 + 433))
|
||||
SYS_fstat = Constant('SYS_fstat',(0+108))
|
||||
SYS_fstat64 = Constant('SYS_fstat64',(0+197))
|
||||
SYS_fstatat64 = Constant('SYS_fstatat64',(0+327))
|
||||
@@ -1364,6 +1689,7 @@ SYS_fsync = Constant('SYS_fsync',(0+118))
|
||||
SYS_ftruncate = Constant('SYS_ftruncate',(0+ 93))
|
||||
SYS_ftruncate64 = Constant('SYS_ftruncate64',(0+194))
|
||||
SYS_futex = Constant('SYS_futex',(0+240))
|
||||
SYS_futex_time64 = Constant('SYS_futex_time64',(0 + 422))
|
||||
SYS_futimesat = Constant('SYS_futimesat',(0+326))
|
||||
SYS_getcpu = Constant('SYS_getcpu',(0+345))
|
||||
SYS_getcwd = Constant('SYS_getcwd',(0+183))
|
||||
@@ -1385,6 +1711,7 @@ SYS_getpgrp = Constant('SYS_getpgrp',(0+ 65))
|
||||
SYS_getpid = Constant('SYS_getpid',(0+ 20))
|
||||
SYS_getppid = Constant('SYS_getppid',(0+ 64))
|
||||
SYS_getpriority = Constant('SYS_getpriority',(0+ 96))
|
||||
SYS_getrandom = Constant('SYS_getrandom',(0+384))
|
||||
SYS_getresgid = Constant('SYS_getresgid',(0+171))
|
||||
SYS_getresgid32 = Constant('SYS_getresgid32',(0+211))
|
||||
SYS_getresuid = Constant('SYS_getresuid',(0+165))
|
||||
@@ -1403,16 +1730,24 @@ SYS_getxattr = Constant('SYS_getxattr',(0+229))
|
||||
SYS_init_module = Constant('SYS_init_module',(0+128))
|
||||
SYS_inotify_add_watch = Constant('SYS_inotify_add_watch',(0+317))
|
||||
SYS_inotify_init = Constant('SYS_inotify_init',(0+316))
|
||||
SYS_inotify_init1 = Constant('SYS_inotify_init1',(0+360))
|
||||
SYS_inotify_rm_watch = Constant('SYS_inotify_rm_watch',(0+318))
|
||||
SYS_io_cancel = Constant('SYS_io_cancel',(0+247))
|
||||
SYS_ioctl = Constant('SYS_ioctl',(0+ 54))
|
||||
SYS_io_destroy = Constant('SYS_io_destroy',(0+244))
|
||||
SYS_io_getevents = Constant('SYS_io_getevents',(0+245))
|
||||
SYS_io_pgetevents = Constant('SYS_io_pgetevents',(0 + 399))
|
||||
SYS_io_pgetevents_time64 = Constant('SYS_io_pgetevents_time64',(0 + 416))
|
||||
SYS_ioprio_get = Constant('SYS_ioprio_get',(0+315))
|
||||
SYS_ioprio_set = Constant('SYS_ioprio_set',(0+314))
|
||||
SYS_io_setup = Constant('SYS_io_setup',(0+243))
|
||||
SYS_io_submit = Constant('SYS_io_submit',(0+246))
|
||||
SYS_io_uring_enter = Constant('SYS_io_uring_enter',(0 + 426))
|
||||
SYS_io_uring_register = Constant('SYS_io_uring_register',(0 + 427))
|
||||
SYS_io_uring_setup = Constant('SYS_io_uring_setup',(0 + 425))
|
||||
SYS_ipc = Constant('SYS_ipc',(0+117))
|
||||
SYS_kcmp = Constant('SYS_kcmp',(0+378))
|
||||
SYS_kexec_file_load = Constant('SYS_kexec_file_load',(0 + 401))
|
||||
SYS_kexec_load = Constant('SYS_kexec_load',(0+347))
|
||||
SYS_keyctl = Constant('SYS_keyctl',(0+311))
|
||||
SYS_kill = Constant('SYS_kill',(0+ 37))
|
||||
@@ -1433,23 +1768,30 @@ SYS_lstat = Constant('SYS_lstat',(0+107))
|
||||
SYS_lstat64 = Constant('SYS_lstat64',(0+196))
|
||||
SYS_madvise = Constant('SYS_madvise',(0+220))
|
||||
SYS_mbind = Constant('SYS_mbind',(0+319))
|
||||
SYS_membarrier = Constant('SYS_membarrier',(0+389))
|
||||
SYS_memfd_create = Constant('SYS_memfd_create',(0+385))
|
||||
SYS_migrate_pages = Constant('SYS_migrate_pages',(0 + 400))
|
||||
SYS_mincore = Constant('SYS_mincore',(0+219))
|
||||
SYS_mkdir = Constant('SYS_mkdir',(0+ 39))
|
||||
SYS_mkdirat = Constant('SYS_mkdirat',(0+323))
|
||||
SYS_mknod = Constant('SYS_mknod',(0+ 14))
|
||||
SYS_mknodat = Constant('SYS_mknodat',(0+324))
|
||||
SYS_mlock = Constant('SYS_mlock',(0+150))
|
||||
SYS_mlock2 = Constant('SYS_mlock2',(0+390))
|
||||
SYS_mlockall = Constant('SYS_mlockall',(0+152))
|
||||
SYS_mmap = Constant('SYS_mmap',(0+ 90))
|
||||
SYS_mmap2 = Constant('SYS_mmap2',(0+192))
|
||||
SYS_mount = Constant('SYS_mount',(0+ 21))
|
||||
SYS_move_mount = Constant('SYS_move_mount',(0 + 429))
|
||||
SYS_move_pages = Constant('SYS_move_pages',(0+344))
|
||||
SYS_mprotect = Constant('SYS_mprotect',(0+125))
|
||||
SYS_mq_getsetattr = Constant('SYS_mq_getsetattr',(0+279))
|
||||
SYS_mq_notify = Constant('SYS_mq_notify',(0+278))
|
||||
SYS_mq_open = Constant('SYS_mq_open',(0+274))
|
||||
SYS_mq_timedreceive = Constant('SYS_mq_timedreceive',(0+277))
|
||||
SYS_mq_timedreceive_time64 = Constant('SYS_mq_timedreceive_time64',(0 + 419))
|
||||
SYS_mq_timedsend = Constant('SYS_mq_timedsend',(0+276))
|
||||
SYS_mq_timedsend_time64 = Constant('SYS_mq_timedsend_time64',(0 + 418))
|
||||
SYS_mq_unlink = Constant('SYS_mq_unlink',(0+275))
|
||||
SYS_mremap = Constant('SYS_mremap',(0+163))
|
||||
SYS_msgctl = Constant('SYS_msgctl',(0+304))
|
||||
@@ -1460,6 +1802,7 @@ SYS_msync = Constant('SYS_msync',(0+144))
|
||||
SYS_munlock = Constant('SYS_munlock',(0+151))
|
||||
SYS_munlockall = Constant('SYS_munlockall',(0+153))
|
||||
SYS_munmap = Constant('SYS_munmap',(0+ 91))
|
||||
SYS_name_to_handle_at = Constant('SYS_name_to_handle_at',(0+370))
|
||||
SYS_nanosleep = Constant('SYS_nanosleep',(0+162))
|
||||
SYS__newselect = Constant('SYS__newselect',(0+142))
|
||||
SYS_nfsservctl = Constant('SYS_nfsservctl',(0+169))
|
||||
@@ -1467,18 +1810,38 @@ SYS_nice = Constant('SYS_nice',(0+ 34))
|
||||
SYS_OABI_SYSCALL_BASE = Constant('SYS_OABI_SYSCALL_BASE',0x900000)
|
||||
SYS_open = Constant('SYS_open',(0+ 5))
|
||||
SYS_openat = Constant('SYS_openat',(0+322))
|
||||
SYS_openat2 = Constant('SYS_openat2',(0 + 437))
|
||||
SYS_open_by_handle_at = Constant('SYS_open_by_handle_at',(0+371))
|
||||
SYS_open_tree = Constant('SYS_open_tree',(0 + 428))
|
||||
SYS_pause = Constant('SYS_pause',(0+ 29))
|
||||
SYS_pciconfig_iobase = Constant('SYS_pciconfig_iobase',(0+271))
|
||||
SYS_pciconfig_read = Constant('SYS_pciconfig_read',(0+272))
|
||||
SYS_pciconfig_write = Constant('SYS_pciconfig_write',(0+273))
|
||||
SYS_perf_event_open = Constant('SYS_perf_event_open',(0+364))
|
||||
SYS_personality = Constant('SYS_personality',(0+136))
|
||||
SYS_pidfd_getfd = Constant('SYS_pidfd_getfd',(0 + 438))
|
||||
SYS_pidfd_open = Constant('SYS_pidfd_open',(0 + 434))
|
||||
SYS_pidfd_send_signal = Constant('SYS_pidfd_send_signal',(0 + 424))
|
||||
SYS_pipe = Constant('SYS_pipe',(0+ 42))
|
||||
SYS_pipe2 = Constant('SYS_pipe2',(0+359))
|
||||
SYS_pivot_root = Constant('SYS_pivot_root',(0+218))
|
||||
SYS_pkey_alloc = Constant('SYS_pkey_alloc',(0 + 395))
|
||||
SYS_pkey_free = Constant('SYS_pkey_free',(0 + 396))
|
||||
SYS_pkey_mprotect = Constant('SYS_pkey_mprotect',(0 + 394))
|
||||
SYS_poll = Constant('SYS_poll',(0+168))
|
||||
SYS_ppoll_time64 = Constant('SYS_ppoll_time64',(0 + 414))
|
||||
SYS_prctl = Constant('SYS_prctl',(0+172))
|
||||
SYS_pread64 = Constant('SYS_pread64',(0+180))
|
||||
SYS_preadv = Constant('SYS_preadv',(0+361))
|
||||
SYS_preadv2 = Constant('SYS_preadv2',(0+392))
|
||||
SYS_prlimit64 = Constant('SYS_prlimit64',(0+369))
|
||||
SYS_process_vm_readv = Constant('SYS_process_vm_readv',(0+376))
|
||||
SYS_process_vm_writev = Constant('SYS_process_vm_writev',(0+377))
|
||||
SYS_pselect6_time64 = Constant('SYS_pselect6_time64',(0 + 413))
|
||||
SYS_ptrace = Constant('SYS_ptrace',(0+ 26))
|
||||
SYS_pwrite64 = Constant('SYS_pwrite64',(0+181))
|
||||
SYS_pwritev = Constant('SYS_pwritev',(0+362))
|
||||
SYS_pwritev2 = Constant('SYS_pwritev2',(0+393))
|
||||
SYS_quotactl = Constant('SYS_quotactl',(0+131))
|
||||
SYS_read = Constant('SYS_read',(0+ 3))
|
||||
SYS_readahead = Constant('SYS_readahead',(0+225))
|
||||
@@ -1489,14 +1852,18 @@ SYS_readv = Constant('SYS_readv',(0+145))
|
||||
SYS_reboot = Constant('SYS_reboot',(0+ 88))
|
||||
SYS_recv = Constant('SYS_recv',(0+291))
|
||||
SYS_recvfrom = Constant('SYS_recvfrom',(0+292))
|
||||
SYS_recvmmsg = Constant('SYS_recvmmsg',(0+365))
|
||||
SYS_recvmmsg_time64 = Constant('SYS_recvmmsg_time64',(0 + 417))
|
||||
SYS_recvmsg = Constant('SYS_recvmsg',(0+297))
|
||||
SYS_remap_file_pages = Constant('SYS_remap_file_pages',(0+253))
|
||||
SYS_removexattr = Constant('SYS_removexattr',(0+235))
|
||||
SYS_rename = Constant('SYS_rename',(0+ 38))
|
||||
SYS_renameat = Constant('SYS_renameat',(0+329))
|
||||
SYS_renameat2 = Constant('SYS_renameat2',(0+382))
|
||||
SYS_request_key = Constant('SYS_request_key',(0+310))
|
||||
SYS_restart_syscall = Constant('SYS_restart_syscall',(0+ 0))
|
||||
SYS_rmdir = Constant('SYS_rmdir',(0+ 40))
|
||||
SYS_rseq = Constant('SYS_rseq',(0 + 398))
|
||||
SYS_rt_sigaction = Constant('SYS_rt_sigaction',(0+174))
|
||||
SYS_rt_sigpending = Constant('SYS_rt_sigpending',(0+176))
|
||||
SYS_rt_sigprocmask = Constant('SYS_rt_sigprocmask',(0+175))
|
||||
@@ -1504,24 +1871,32 @@ SYS_rt_sigqueueinfo = Constant('SYS_rt_sigqueueinfo',(0+178))
|
||||
SYS_rt_sigreturn = Constant('SYS_rt_sigreturn',(0+173))
|
||||
SYS_rt_sigsuspend = Constant('SYS_rt_sigsuspend',(0+179))
|
||||
SYS_rt_sigtimedwait = Constant('SYS_rt_sigtimedwait',(0+177))
|
||||
SYS_rt_sigtimedwait_time64 = Constant('SYS_rt_sigtimedwait_time64',(0 + 421))
|
||||
SYS_rt_tgsigqueueinfo = Constant('SYS_rt_tgsigqueueinfo',(0+363))
|
||||
SYS_sched_getaffinity = Constant('SYS_sched_getaffinity',(0+242))
|
||||
SYS_sched_getattr = Constant('SYS_sched_getattr',(0+381))
|
||||
SYS_sched_getparam = Constant('SYS_sched_getparam',(0+155))
|
||||
SYS_sched_get_priority_max = Constant('SYS_sched_get_priority_max',(0+159))
|
||||
SYS_sched_get_priority_min = Constant('SYS_sched_get_priority_min',(0+160))
|
||||
SYS_sched_getscheduler = Constant('SYS_sched_getscheduler',(0+157))
|
||||
SYS_sched_rr_get_interval = Constant('SYS_sched_rr_get_interval',(0+161))
|
||||
SYS_sched_rr_get_interval_time64 = Constant('SYS_sched_rr_get_interval_time64',(0 + 423))
|
||||
SYS_sched_setaffinity = Constant('SYS_sched_setaffinity',(0+241))
|
||||
SYS_sched_setattr = Constant('SYS_sched_setattr',(0+380))
|
||||
SYS_sched_setparam = Constant('SYS_sched_setparam',(0+154))
|
||||
SYS_sched_setscheduler = Constant('SYS_sched_setscheduler',(0+156))
|
||||
SYS_sched_yield = Constant('SYS_sched_yield',(0+158))
|
||||
SYS_seccomp = Constant('SYS_seccomp',(0+383))
|
||||
SYS_select = Constant('SYS_select',(0+ 82))
|
||||
SYS_semctl = Constant('SYS_semctl',(0+300))
|
||||
SYS_semget = Constant('SYS_semget',(0+299))
|
||||
SYS_semop = Constant('SYS_semop',(0+298))
|
||||
SYS_semtimedop = Constant('SYS_semtimedop',(0+312))
|
||||
SYS_semtimedop_time64 = Constant('SYS_semtimedop_time64',(0 + 420))
|
||||
SYS_send = Constant('SYS_send',(0+289))
|
||||
SYS_sendfile = Constant('SYS_sendfile',(0+187))
|
||||
SYS_sendfile64 = Constant('SYS_sendfile64',(0+239))
|
||||
SYS_sendmmsg = Constant('SYS_sendmmsg',(0+374))
|
||||
SYS_sendmsg = Constant('SYS_sendmsg',(0+296))
|
||||
SYS_sendto = Constant('SYS_sendto',(0+290))
|
||||
SYS_setdomainname = Constant('SYS_setdomainname',(0+121))
|
||||
@@ -1536,6 +1911,7 @@ SYS_setgroups32 = Constant('SYS_setgroups32',(0+206))
|
||||
SYS_sethostname = Constant('SYS_sethostname',(0+ 74))
|
||||
SYS_setitimer = Constant('SYS_setitimer',(0+104))
|
||||
SYS_set_mempolicy = Constant('SYS_set_mempolicy',(0+321))
|
||||
SYS_setns = Constant('SYS_setns',(0+375))
|
||||
SYS_setpgid = Constant('SYS_setpgid',(0+ 57))
|
||||
SYS_setpriority = Constant('SYS_setpriority',(0+ 97))
|
||||
SYS_setregid = Constant('SYS_setregid',(0+ 71))
|
||||
@@ -1563,6 +1939,7 @@ SYS_shutdown = Constant('SYS_shutdown',(0+293))
|
||||
SYS_sigaction = Constant('SYS_sigaction',(0+ 67))
|
||||
SYS_sigaltstack = Constant('SYS_sigaltstack',(0+186))
|
||||
SYS_signalfd = Constant('SYS_signalfd',(0+349))
|
||||
SYS_signalfd4 = Constant('SYS_signalfd4',(0+355))
|
||||
SYS_sigpending = Constant('SYS_sigpending',(0+ 73))
|
||||
SYS_sigprocmask = Constant('SYS_sigprocmask',(0+126))
|
||||
SYS_sigreturn = Constant('SYS_sigreturn',(0+119))
|
||||
@@ -1575,12 +1952,14 @@ SYS_stat = Constant('SYS_stat',(0+106))
|
||||
SYS_stat64 = Constant('SYS_stat64',(0+195))
|
||||
SYS_statfs = Constant('SYS_statfs',(0+ 99))
|
||||
SYS_statfs64 = Constant('SYS_statfs64',(0+266))
|
||||
SYS_statx = Constant('SYS_statx',(0 + 397))
|
||||
SYS_stime = Constant('SYS_stime',(0+ 25))
|
||||
SYS_swapoff = Constant('SYS_swapoff',(0+115))
|
||||
SYS_swapon = Constant('SYS_swapon',(0+ 87))
|
||||
SYS_symlink = Constant('SYS_symlink',(0+ 83))
|
||||
SYS_symlinkat = Constant('SYS_symlinkat',(0+331))
|
||||
SYS_sync = Constant('SYS_sync',(0+ 36))
|
||||
SYS_syncfs = Constant('SYS_syncfs',(0+373))
|
||||
SYS_syscall = Constant('SYS_syscall',(0+113))
|
||||
SYS_SYSCALL_BASE = Constant('SYS_SYSCALL_BASE',0)
|
||||
SYS__sysctl = Constant('SYS__sysctl',(0+149))
|
||||
@@ -1594,10 +1973,14 @@ SYS_timer_create = Constant('SYS_timer_create',(0+257))
|
||||
SYS_timer_delete = Constant('SYS_timer_delete',(0+261))
|
||||
SYS_timerfd = Constant('SYS_timerfd',(0+350))
|
||||
SYS_timerfd_gettime = Constant('SYS_timerfd_gettime',(0+354))
|
||||
SYS_timerfd_gettime64 = Constant('SYS_timerfd_gettime64',(0 + 410))
|
||||
SYS_timerfd_settime = Constant('SYS_timerfd_settime',(0+353))
|
||||
SYS_timerfd_settime64 = Constant('SYS_timerfd_settime64',(0 + 411))
|
||||
SYS_timer_getoverrun = Constant('SYS_timer_getoverrun',(0+260))
|
||||
SYS_timer_gettime = Constant('SYS_timer_gettime',(0+259))
|
||||
SYS_timer_gettime64 = Constant('SYS_timer_gettime64',(0 + 408))
|
||||
SYS_timer_settime = Constant('SYS_timer_settime',(0+258))
|
||||
SYS_timer_settime64 = Constant('SYS_timer_settime64',(0 + 409))
|
||||
SYS_times = Constant('SYS_times',(0+ 43))
|
||||
SYS_tkill = Constant('SYS_tkill',(0+238))
|
||||
SYS_truncate = Constant('SYS_truncate',(0+ 92))
|
||||
@@ -1611,9 +1994,11 @@ SYS_unlink = Constant('SYS_unlink',(0+ 10))
|
||||
SYS_unlinkat = Constant('SYS_unlinkat',(0+328))
|
||||
SYS_unshare = Constant('SYS_unshare',(0+337))
|
||||
SYS_uselib = Constant('SYS_uselib',(0+ 86))
|
||||
SYS_userfaultfd = Constant('SYS_userfaultfd',(0+388))
|
||||
SYS_ustat = Constant('SYS_ustat',(0+ 62))
|
||||
SYS_utime = Constant('SYS_utime',(0+ 30))
|
||||
SYS_utimensat = Constant('SYS_utimensat',(0+348))
|
||||
SYS_utimensat_time64 = Constant('SYS_utimensat_time64',(0 + 412))
|
||||
SYS_utimes = Constant('SYS_utimes',(0+269))
|
||||
SYS_vfork = Constant('SYS_vfork',(0+190))
|
||||
SYS_vhangup = Constant('SYS_vhangup',(0+111))
|
||||
|
||||
+467
-88
@@ -1,5 +1,4 @@
|
||||
from pwnlib.constants.constant import Constant
|
||||
|
||||
__NR_exit = Constant('__NR_exit',1)
|
||||
__NR_fork = Constant('__NR_fork',2)
|
||||
__NR_read = Constant('__NR_read',3)
|
||||
@@ -337,6 +336,96 @@ __NR_recvmmsg = Constant('__NR_recvmmsg',337)
|
||||
__NR_fanotify_init = Constant('__NR_fanotify_init',338)
|
||||
__NR_fanotify_mark = Constant('__NR_fanotify_mark',339)
|
||||
__NR_prlimit64 = Constant('__NR_prlimit64',340)
|
||||
__NR_name_to_handle_at = Constant('__NR_name_to_handle_at',341)
|
||||
__NR_open_by_handle_at = Constant('__NR_open_by_handle_at',342)
|
||||
__NR_clock_adjtime = Constant('__NR_clock_adjtime',343)
|
||||
__NR_syncfs = Constant('__NR_syncfs',344)
|
||||
__NR_sendmmsg = Constant('__NR_sendmmsg',345)
|
||||
__NR_setns = Constant('__NR_setns',346)
|
||||
__NR_process_vm_readv = Constant('__NR_process_vm_readv',347)
|
||||
__NR_process_vm_writev = Constant('__NR_process_vm_writev',348)
|
||||
__NR_kcmp = Constant('__NR_kcmp',349)
|
||||
__NR_finit_module = Constant('__NR_finit_module',350)
|
||||
__NR_sched_setattr = Constant('__NR_sched_setattr',351)
|
||||
__NR_sched_getattr = Constant('__NR_sched_getattr',352)
|
||||
__NR_renameat2 = Constant('__NR_renameat2',353)
|
||||
__NR_seccomp = Constant('__NR_seccomp',354)
|
||||
__NR_getrandom = Constant('__NR_getrandom',355)
|
||||
__NR_memfd_create = Constant('__NR_memfd_create',356)
|
||||
__NR_bpf = Constant('__NR_bpf',357)
|
||||
__NR_execveat = Constant('__NR_execveat',358)
|
||||
__NR_socket = Constant('__NR_socket',359)
|
||||
__NR_socketpair = Constant('__NR_socketpair',360)
|
||||
__NR_bind = Constant('__NR_bind',361)
|
||||
__NR_connect = Constant('__NR_connect',362)
|
||||
__NR_listen = Constant('__NR_listen',363)
|
||||
__NR_accept4 = Constant('__NR_accept4',364)
|
||||
__NR_getsockopt = Constant('__NR_getsockopt',365)
|
||||
__NR_setsockopt = Constant('__NR_setsockopt',366)
|
||||
__NR_getsockname = Constant('__NR_getsockname',367)
|
||||
__NR_getpeername = Constant('__NR_getpeername',368)
|
||||
__NR_sendto = Constant('__NR_sendto',369)
|
||||
__NR_sendmsg = Constant('__NR_sendmsg',370)
|
||||
__NR_recvfrom = Constant('__NR_recvfrom',371)
|
||||
__NR_recvmsg = Constant('__NR_recvmsg',372)
|
||||
__NR_shutdown = Constant('__NR_shutdown',373)
|
||||
__NR_userfaultfd = Constant('__NR_userfaultfd',374)
|
||||
__NR_membarrier = Constant('__NR_membarrier',375)
|
||||
__NR_mlock2 = Constant('__NR_mlock2',376)
|
||||
__NR_copy_file_range = Constant('__NR_copy_file_range',377)
|
||||
__NR_preadv2 = Constant('__NR_preadv2',378)
|
||||
__NR_pwritev2 = Constant('__NR_pwritev2',379)
|
||||
__NR_pkey_mprotect = Constant('__NR_pkey_mprotect',380)
|
||||
__NR_pkey_alloc = Constant('__NR_pkey_alloc',381)
|
||||
__NR_pkey_free = Constant('__NR_pkey_free',382)
|
||||
__NR_ia32_statx = Constant('__NR_ia32_statx',383)
|
||||
__NR_ia32_arch_prctl = Constant('__NR_ia32_arch_prctl',384)
|
||||
__NR_ia32_io_pgetevents = Constant('__NR_ia32_io_pgetevents',385)
|
||||
__NR_ia32_rseq = Constant('__NR_ia32_rseq',386)
|
||||
__NR_semget = Constant('__NR_semget',393)
|
||||
__NR_semctl = Constant('__NR_semctl',394)
|
||||
__NR_shmget = Constant('__NR_shmget',395)
|
||||
__NR_shmctl = Constant('__NR_shmctl',396)
|
||||
__NR_shmat = Constant('__NR_shmat',397)
|
||||
__NR_shmdt = Constant('__NR_shmdt',398)
|
||||
__NR_msgget = Constant('__NR_msgget',399)
|
||||
__NR_msgsnd = Constant('__NR_msgsnd',400)
|
||||
__NR_msgrcv = Constant('__NR_msgrcv',401)
|
||||
__NR_msgctl = Constant('__NR_msgctl',402)
|
||||
__NR_clock_gettime64 = Constant('__NR_clock_gettime64',403)
|
||||
__NR_clock_settime64 = Constant('__NR_clock_settime64',404)
|
||||
__NR_clock_adjtime64 = Constant('__NR_clock_adjtime64',405)
|
||||
__NR_clock_getres_time64 = Constant('__NR_clock_getres_time64',406)
|
||||
__NR_clock_nanosleep_time64 = Constant('__NR_clock_nanosleep_time64',407)
|
||||
__NR_timer_gettime64 = Constant('__NR_timer_gettime64',408)
|
||||
__NR_timer_settime64 = Constant('__NR_timer_settime64',409)
|
||||
__NR_timerfd_gettime64 = Constant('__NR_timerfd_gettime64',410)
|
||||
__NR_timerfd_settime64 = Constant('__NR_timerfd_settime64',411)
|
||||
__NR_utimensat_time64 = Constant('__NR_utimensat_time64',412)
|
||||
__NR_pselect6_time64 = Constant('__NR_pselect6_time64',413)
|
||||
__NR_ppoll_time64 = Constant('__NR_ppoll_time64',414)
|
||||
__NR_io_pgetevents_time64 = Constant('__NR_io_pgetevents_time64',416)
|
||||
__NR_recvmmsg_time64 = Constant('__NR_recvmmsg_time64',417)
|
||||
__NR_mq_timedsend_time64 = Constant('__NR_mq_timedsend_time64',418)
|
||||
__NR_mq_timedreceive_time64 = Constant('__NR_mq_timedreceive_time64',419)
|
||||
__NR_semtimedop_time64 = Constant('__NR_semtimedop_time64',420)
|
||||
__NR_rt_sigtimedwait_time64 = Constant('__NR_rt_sigtimedwait_time64',421)
|
||||
__NR_futex_time64 = Constant('__NR_futex_time64',422)
|
||||
__NR_sched_rr_get_interval_time64 = Constant('__NR_sched_rr_get_interval_time64',423)
|
||||
__NR_pidfd_send_signal = Constant('__NR_pidfd_send_signal',424)
|
||||
__NR_io_uring_setup = Constant('__NR_io_uring_setup',425)
|
||||
__NR_io_uring_enter = Constant('__NR_io_uring_enter',426)
|
||||
__NR_io_uring_register = Constant('__NR_io_uring_register',427)
|
||||
__NR_open_tree = Constant('__NR_open_tree',428)
|
||||
__NR_move_mount = Constant('__NR_move_mount',429)
|
||||
__NR_fsopen = Constant('__NR_fsopen',430)
|
||||
__NR_fsconfig = Constant('__NR_fsconfig',431)
|
||||
__NR_fsmount = Constant('__NR_fsmount',432)
|
||||
__NR_fspick = Constant('__NR_fspick',433)
|
||||
__NR_pidfd_open = Constant('__NR_pidfd_open',434)
|
||||
__NR_clone3 = Constant('__NR_clone3',435)
|
||||
__NR_openat2 = Constant('__NR_openat2',437)
|
||||
__NR_pidfd_getfd = Constant('__NR_pidfd_getfd',438)
|
||||
SYS_SOCKET = Constant('SYS_SOCKET',1)
|
||||
SYS_BIND = Constant('SYS_BIND',2)
|
||||
SYS_CONNECT = Constant('SYS_CONNECT',3)
|
||||
@@ -489,7 +578,11 @@ ENOKEY = Constant('ENOKEY',126)
|
||||
EKEYEXPIRED = Constant('EKEYEXPIRED',127)
|
||||
EKEYREVOKED = Constant('EKEYREVOKED',128)
|
||||
EKEYREJECTED = Constant('EKEYREJECTED',129)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((129) + 1))
|
||||
EOWNERDEAD = Constant('EOWNERDEAD',130)
|
||||
ENOTRECOVERABLE = Constant('ENOTRECOVERABLE',131)
|
||||
ERFKILL = Constant('ERFKILL',132)
|
||||
EHWPOISON = Constant('EHWPOISON',133)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((133) + 1))
|
||||
__LITTLE_ENDIAN = Constant('__LITTLE_ENDIAN',1234)
|
||||
__BIG_ENDIAN = Constant('__BIG_ENDIAN',4321)
|
||||
__BYTE_ORDER = Constant('__BYTE_ORDER',1234)
|
||||
@@ -498,9 +591,56 @@ LITTLE_ENDIAN = Constant('LITTLE_ENDIAN',1234)
|
||||
BIG_ENDIAN = Constant('BIG_ENDIAN',4321)
|
||||
BYTE_ORDER = Constant('BYTE_ORDER',1234)
|
||||
__WORDSIZE = Constant('__WORDSIZE',32)
|
||||
__UNALIGNED_MEMORY_ACCESS_OK = Constant('__UNALIGNED_MEMORY_ACCESS_OK',1)
|
||||
INT8_MAX = Constant('INT8_MAX',(127))
|
||||
INT16_MAX = Constant('INT16_MAX',(32767))
|
||||
INT32_MAX = Constant('INT32_MAX',(2147483647))
|
||||
INT64_MAX = Constant('INT64_MAX',(9223372036854775807))
|
||||
INT8_MIN = Constant('INT8_MIN',(-1 - (127)))
|
||||
INT16_MIN = Constant('INT16_MIN',(-1 - (32767)))
|
||||
INT32_MIN = Constant('INT32_MIN',(-1 - (2147483647)))
|
||||
INT64_MIN = Constant('INT64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_LEAST8_MAX = Constant('INT_LEAST8_MAX',(127))
|
||||
INT_LEAST8_MIN = Constant('INT_LEAST8_MIN',(-1 - (127)))
|
||||
INT_LEAST16_MAX = Constant('INT_LEAST16_MAX',(32767))
|
||||
INT_LEAST16_MIN = Constant('INT_LEAST16_MIN',(-1 - (32767)))
|
||||
INT_LEAST32_MAX = Constant('INT_LEAST32_MAX',(2147483647))
|
||||
INT_LEAST32_MIN = Constant('INT_LEAST32_MIN',(-1 - (2147483647)))
|
||||
INT_LEAST64_MAX = Constant('INT_LEAST64_MAX',(9223372036854775807))
|
||||
INT_LEAST64_MIN = Constant('INT_LEAST64_MIN',(-1 - (9223372036854775807)))
|
||||
UINT8_MAX = Constant('UINT8_MAX',0xff)
|
||||
UINT16_MAX = Constant('UINT16_MAX',0xffff)
|
||||
UINT32_MAX = Constant('UINT32_MAX',0xffffffff)
|
||||
UINT64_MAX = Constant('UINT64_MAX',0xffffffffffffffff)
|
||||
UINT_LEAST8_MAX = Constant('UINT_LEAST8_MAX',0xff)
|
||||
UINT_LEAST16_MAX = Constant('UINT_LEAST16_MAX',0xffff)
|
||||
UINT_LEAST32_MAX = Constant('UINT_LEAST32_MAX',0xffffffff)
|
||||
UINT_LEAST64_MAX = Constant('UINT_LEAST64_MAX',0xffffffffffffffff)
|
||||
INTPTR_MIN = Constant('INTPTR_MIN',(-1 - (2147483647)))
|
||||
INTPTR_MAX = Constant('INTPTR_MAX',(2147483647))
|
||||
UINTPTR_MAX = Constant('UINTPTR_MAX',0xffffffff)
|
||||
SIZE_MAX = Constant('SIZE_MAX',0xffffffff)
|
||||
PTRDIFF_MIN = Constant('PTRDIFF_MIN',(-1 - (2147483647)))
|
||||
PTRDIFF_MAX = Constant('PTRDIFF_MAX',(2147483647))
|
||||
INTMAX_MIN = Constant('INTMAX_MIN',(-1 - (9223372036854775807)))
|
||||
INTMAX_MAX = Constant('INTMAX_MAX',(9223372036854775807))
|
||||
UINTMAX_MAX = Constant('UINTMAX_MAX',0xffffffffffffffff)
|
||||
INT_FAST8_MIN = Constant('INT_FAST8_MIN',(-1 - (127)))
|
||||
INT_FAST8_MAX = Constant('INT_FAST8_MAX',(127))
|
||||
INT_FAST64_MIN = Constant('INT_FAST64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST64_MAX = Constant('INT_FAST64_MAX',(9223372036854775807))
|
||||
UINT_FAST8_MAX = Constant('UINT_FAST8_MAX',0xff)
|
||||
UINT_FAST64_MAX = Constant('UINT_FAST64_MAX',0xffffffffffffffff)
|
||||
INT_FAST16_MIN = Constant('INT_FAST16_MIN',(-1 - (2147483647)))
|
||||
INT_FAST16_MAX = Constant('INT_FAST16_MAX',(2147483647))
|
||||
UINT_FAST16_MAX = Constant('UINT_FAST16_MAX',0xffffffff)
|
||||
INT_FAST32_MIN = Constant('INT_FAST32_MIN',(-1 - (2147483647)))
|
||||
INT_FAST32_MAX = Constant('INT_FAST32_MAX',(2147483647))
|
||||
UINT_FAST32_MAX = Constant('UINT_FAST32_MAX',0xffffffff)
|
||||
WINT_MIN = Constant('WINT_MIN',0)
|
||||
__FSUID_H = Constant('__FSUID_H',1)
|
||||
NSIG = Constant('NSIG',32)
|
||||
_NSIG = Constant('_NSIG',64)
|
||||
_NSIG = Constant('_NSIG',65)
|
||||
SIGHUP = Constant('SIGHUP',1)
|
||||
SIGINT = Constant('SIGINT',2)
|
||||
SIGQUIT = Constant('SIGQUIT',3)
|
||||
@@ -538,7 +678,7 @@ SIGCLD = Constant('SIGCLD',17)
|
||||
SIGPOLL = Constant('SIGPOLL',29)
|
||||
SIGLOST = Constant('SIGLOST',30)
|
||||
SIGRTMIN = Constant('SIGRTMIN',32)
|
||||
SIGRTMAX = Constant('SIGRTMAX',(64-1))
|
||||
SIGRTMAX = Constant('SIGRTMAX',(65-1))
|
||||
SA_NOCLDSTOP = Constant('SA_NOCLDSTOP',0x00000001)
|
||||
SA_NOCLDWAIT = Constant('SA_NOCLDWAIT',0x00000002)
|
||||
SA_SIGINFO = Constant('SA_SIGINFO',0x00000004)
|
||||
@@ -588,6 +728,8 @@ _SC_PAGESIZE = Constant('_SC_PAGESIZE',5)
|
||||
_SC_NPROCESSORS_ONLN = Constant('_SC_NPROCESSORS_ONLN',6)
|
||||
_SC_NPROCESSORS_CONF = Constant('_SC_NPROCESSORS_CONF',6)
|
||||
_SC_PHYS_PAGES = Constant('_SC_PHYS_PAGES',7)
|
||||
_SC_GETPW_R_SIZE_MAX = Constant('_SC_GETPW_R_SIZE_MAX',8)
|
||||
_SC_GETGR_R_SIZE_MAX = Constant('_SC_GETGR_R_SIZE_MAX',9)
|
||||
_PC_PATH_MAX = Constant('_PC_PATH_MAX',1)
|
||||
_PC_VDISABLE = Constant('_PC_VDISABLE',2)
|
||||
L_cuserid = Constant('L_cuserid',17)
|
||||
@@ -596,6 +738,7 @@ F_ULOCK = Constant('F_ULOCK',0)
|
||||
F_LOCK = Constant('F_LOCK',1)
|
||||
F_TLOCK = Constant('F_TLOCK',2)
|
||||
F_TEST = Constant('F_TEST',3)
|
||||
_POSIX_MAPPED_FILES = Constant('_POSIX_MAPPED_FILES',200809)
|
||||
STAT64_HAS_BROKEN_ST_INO = Constant('STAT64_HAS_BROKEN_ST_INO',1)
|
||||
S_IFMT = Constant('S_IFMT',0o0170000)
|
||||
S_IFSOCK = Constant('S_IFSOCK',0o140000)
|
||||
@@ -623,84 +766,7 @@ S_IXOTH = Constant('S_IXOTH',0o0001)
|
||||
S_IREAD = Constant('S_IREAD',0o0400)
|
||||
S_IWRITE = Constant('S_IWRITE',0o0200)
|
||||
S_IEXEC = Constant('S_IEXEC',0o0100)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
O_ACCMODE = Constant('O_ACCMODE',0o003)
|
||||
O_RDONLY = Constant('O_RDONLY',0o0)
|
||||
O_WRONLY = Constant('O_WRONLY',0o1)
|
||||
O_RDWR = Constant('O_RDWR',0o2)
|
||||
O_CREAT = Constant('O_CREAT',0o100)
|
||||
O_EXCL = Constant('O_EXCL',0o200)
|
||||
O_NOCTTY = Constant('O_NOCTTY',0o400)
|
||||
O_TRUNC = Constant('O_TRUNC',0o1000)
|
||||
O_APPEND = Constant('O_APPEND',0o2000)
|
||||
O_NONBLOCK = Constant('O_NONBLOCK',0o4000)
|
||||
O_NDELAY = Constant('O_NDELAY',0o4000)
|
||||
O_SYNC = Constant('O_SYNC',0o10000)
|
||||
FASYNC = Constant('FASYNC',0o20000)
|
||||
O_DIRECT = Constant('O_DIRECT',0o40000)
|
||||
O_LARGEFILE = Constant('O_LARGEFILE',0o100000)
|
||||
O_DIRECTORY = Constant('O_DIRECTORY',0o200000)
|
||||
O_NOFOLLOW = Constant('O_NOFOLLOW',0o400000)
|
||||
O_NOATIME = Constant('O_NOATIME',0o1000000)
|
||||
F_DUPFD = Constant('F_DUPFD',0)
|
||||
F_GETFD = Constant('F_GETFD',1)
|
||||
F_SETFD = Constant('F_SETFD',2)
|
||||
F_GETFL = Constant('F_GETFL',3)
|
||||
F_SETFL = Constant('F_SETFL',4)
|
||||
F_GETLK = Constant('F_GETLK',5)
|
||||
F_SETLK = Constant('F_SETLK',6)
|
||||
F_SETLKW = Constant('F_SETLKW',7)
|
||||
F_SETOWN = Constant('F_SETOWN',8)
|
||||
F_GETOWN = Constant('F_GETOWN',9)
|
||||
F_SETSIG = Constant('F_SETSIG',10)
|
||||
F_GETSIG = Constant('F_GETSIG',11)
|
||||
F_GETLK64 = Constant('F_GETLK64',12)
|
||||
F_SETLK64 = Constant('F_SETLK64',13)
|
||||
F_SETLKW64 = Constant('F_SETLKW64',14)
|
||||
FD_CLOEXEC = Constant('FD_CLOEXEC',1)
|
||||
F_RDLCK = Constant('F_RDLCK',0)
|
||||
F_WRLCK = Constant('F_WRLCK',1)
|
||||
F_UNLCK = Constant('F_UNLCK',2)
|
||||
F_EXLCK = Constant('F_EXLCK',4)
|
||||
F_SHLCK = Constant('F_SHLCK',8)
|
||||
F_INPROGRESS = Constant('F_INPROGRESS',16)
|
||||
LOCK_SH = Constant('LOCK_SH',1)
|
||||
LOCK_EX = Constant('LOCK_EX',2)
|
||||
LOCK_NB = Constant('LOCK_NB',4)
|
||||
LOCK_UN = Constant('LOCK_UN',8)
|
||||
LOCK_MAND = Constant('LOCK_MAND',32)
|
||||
LOCK_READ = Constant('LOCK_READ',64)
|
||||
LOCK_WRITE = Constant('LOCK_WRITE',128)
|
||||
LOCK_RW = Constant('LOCK_RW',192)
|
||||
O_ASYNC = Constant('O_ASYNC',0o20000)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_FIXED = Constant('MAP_FIXED',0x10)
|
||||
MAP_ANONYMOUS = Constant('MAP_ANONYMOUS',0x20)
|
||||
MAP_GROWSDOWN = Constant('MAP_GROWSDOWN',0x0100)
|
||||
MAP_DENYWRITE = Constant('MAP_DENYWRITE',0x0800)
|
||||
MAP_EXECUTABLE = Constant('MAP_EXECUTABLE',0x1000)
|
||||
MAP_LOCKED = Constant('MAP_LOCKED',0x2000)
|
||||
MAP_NORESERVE = Constant('MAP_NORESERVE',0x4000)
|
||||
MAP_POPULATE = Constant('MAP_POPULATE',0x8000)
|
||||
MS_ASYNC = Constant('MS_ASYNC',1)
|
||||
MS_INVALIDATE = Constant('MS_INVALIDATE',2)
|
||||
MS_SYNC = Constant('MS_SYNC',4)
|
||||
MCL_CURRENT = Constant('MCL_CURRENT',1)
|
||||
MCL_FUTURE = Constant('MCL_FUTURE',2)
|
||||
MADV_NORMAL = Constant('MADV_NORMAL',0x0)
|
||||
MADV_RANDOM = Constant('MADV_RANDOM',0x1)
|
||||
MADV_SEQUENTIAL = Constant('MADV_SEQUENTIAL',0x2)
|
||||
MADV_WILLNEED = Constant('MADV_WILLNEED',0x3)
|
||||
MADV_DONTNEED = Constant('MADV_DONTNEED',0x4)
|
||||
MAP_ANON = Constant('MAP_ANON',0x20)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
_SYS_UIO = Constant('_SYS_UIO',1)
|
||||
SOL_SOCKET = Constant('SOL_SOCKET',1)
|
||||
SO_DEBUG = Constant('SO_DEBUG',1)
|
||||
SO_REUSEADDR = Constant('SO_REUSEADDR',2)
|
||||
@@ -716,29 +782,64 @@ SO_NO_CHECK = Constant('SO_NO_CHECK',11)
|
||||
SO_PRIORITY = Constant('SO_PRIORITY',12)
|
||||
SO_LINGER = Constant('SO_LINGER',13)
|
||||
SO_BSDCOMPAT = Constant('SO_BSDCOMPAT',14)
|
||||
SO_REUSEPORT = Constant('SO_REUSEPORT',15)
|
||||
SO_PASSCRED = Constant('SO_PASSCRED',16)
|
||||
SO_PEERCRED = Constant('SO_PEERCRED',17)
|
||||
SO_RCVLOWAT = Constant('SO_RCVLOWAT',18)
|
||||
SO_SNDLOWAT = Constant('SO_SNDLOWAT',19)
|
||||
SO_RCVTIMEO = Constant('SO_RCVTIMEO',20)
|
||||
SO_SNDTIMEO = Constant('SO_SNDTIMEO',21)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_SECURITY_AUTHENTICATION = Constant('SO_SECURITY_AUTHENTICATION',22)
|
||||
SO_SECURITY_ENCRYPTION_TRANSPORT = Constant('SO_SECURITY_ENCRYPTION_TRANSPORT',23)
|
||||
SO_SECURITY_ENCRYPTION_NETWORK = Constant('SO_SECURITY_ENCRYPTION_NETWORK',24)
|
||||
SO_BINDTODEVICE = Constant('SO_BINDTODEVICE',25)
|
||||
SO_ATTACH_FILTER = Constant('SO_ATTACH_FILTER',26)
|
||||
SO_DETACH_FILTER = Constant('SO_DETACH_FILTER',27)
|
||||
SO_GET_FILTER = Constant('SO_GET_FILTER',26)
|
||||
SO_PEERNAME = Constant('SO_PEERNAME',28)
|
||||
SO_TIMESTAMP = Constant('SO_TIMESTAMP',29)
|
||||
SCM_TIMESTAMP = Constant('SCM_TIMESTAMP',29)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_PEERSEC = Constant('SO_PEERSEC',31)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_PASSSEC = Constant('SO_PASSSEC',34)
|
||||
SO_TIMESTAMPNS = Constant('SO_TIMESTAMPNS',35)
|
||||
SCM_TIMESTAMPNS = Constant('SCM_TIMESTAMPNS',35)
|
||||
SO_MARK = Constant('SO_MARK',36)
|
||||
SO_TIMESTAMPING = Constant('SO_TIMESTAMPING',37)
|
||||
SCM_TIMESTAMPING = Constant('SCM_TIMESTAMPING',37)
|
||||
SO_PROTOCOL = Constant('SO_PROTOCOL',38)
|
||||
SO_DOMAIN = Constant('SO_DOMAIN',39)
|
||||
SO_RXQ_OVFL = Constant('SO_RXQ_OVFL',40)
|
||||
SO_WIFI_STATUS = Constant('SO_WIFI_STATUS',41)
|
||||
SCM_WIFI_STATUS = Constant('SCM_WIFI_STATUS',41)
|
||||
SO_PEEK_OFF = Constant('SO_PEEK_OFF',42)
|
||||
SO_NOFCS = Constant('SO_NOFCS',43)
|
||||
SO_LOCK_FILTER = Constant('SO_LOCK_FILTER',44)
|
||||
SO_SELECT_ERR_QUEUE = Constant('SO_SELECT_ERR_QUEUE',45)
|
||||
SO_BUSY_POLL = Constant('SO_BUSY_POLL',46)
|
||||
SO_MAX_PACING_RATE = Constant('SO_MAX_PACING_RATE',47)
|
||||
SO_BPF_EXTENSIONS = Constant('SO_BPF_EXTENSIONS',48)
|
||||
SO_INCOMING_CPU = Constant('SO_INCOMING_CPU',49)
|
||||
SO_ATTACH_BPF = Constant('SO_ATTACH_BPF',50)
|
||||
SO_DETACH_BPF = Constant('SO_DETACH_BPF',27)
|
||||
SO_ATTACH_REUSEPORT_CBPF = Constant('SO_ATTACH_REUSEPORT_CBPF',51)
|
||||
SO_ATTACH_REUSEPORT_EBPF = Constant('SO_ATTACH_REUSEPORT_EBPF',52)
|
||||
SO_CNX_ADVICE = Constant('SO_CNX_ADVICE',53)
|
||||
SCM_TIMESTAMPING_OPT_STATS = Constant('SCM_TIMESTAMPING_OPT_STATS',54)
|
||||
SO_MEMINFO = Constant('SO_MEMINFO',55)
|
||||
SO_INCOMING_NAPI_ID = Constant('SO_INCOMING_NAPI_ID',56)
|
||||
SO_COOKIE = Constant('SO_COOKIE',57)
|
||||
SCM_TIMESTAMPING_PKTINFO = Constant('SCM_TIMESTAMPING_PKTINFO',58)
|
||||
SO_PEERGROUPS = Constant('SO_PEERGROUPS',59)
|
||||
SO_ZEROCOPY = Constant('SO_ZEROCOPY',60)
|
||||
SOCK_STREAM = Constant('SOCK_STREAM',1)
|
||||
SOCK_DGRAM = Constant('SOCK_DGRAM',2)
|
||||
SOCK_RAW = Constant('SOCK_RAW',3)
|
||||
SOCK_RDM = Constant('SOCK_RDM',4)
|
||||
SOCK_SEQPACKET = Constant('SOCK_SEQPACKET',5)
|
||||
SOCK_DCCP = Constant('SOCK_DCCP',6)
|
||||
SOCK_PACKET = Constant('SOCK_PACKET',10)
|
||||
UIO_FASTIOV = Constant('UIO_FASTIOV',8)
|
||||
UIO_MAXIOV = Constant('UIO_MAXIOV',1024)
|
||||
@@ -772,7 +873,25 @@ AF_SNA = Constant('AF_SNA',22)
|
||||
AF_IRDA = Constant('AF_IRDA',23)
|
||||
AF_PPPOX = Constant('AF_PPPOX',24)
|
||||
AF_WANPIPE = Constant('AF_WANPIPE',25)
|
||||
AF_MAX = Constant('AF_MAX',32)
|
||||
AF_LLC = Constant('AF_LLC',26)
|
||||
AF_IB = Constant('AF_IB',27)
|
||||
AF_MPLS = Constant('AF_MPLS',28)
|
||||
AF_CAN = Constant('AF_CAN',29)
|
||||
AF_TIPC = Constant('AF_TIPC',30)
|
||||
AF_BLUETOOTH = Constant('AF_BLUETOOTH',31)
|
||||
AF_IUCV = Constant('AF_IUCV',32)
|
||||
AF_RXRPC = Constant('AF_RXRPC',33)
|
||||
AF_ISDN = Constant('AF_ISDN',34)
|
||||
AF_PHONET = Constant('AF_PHONET',35)
|
||||
AF_IEEE802154 = Constant('AF_IEEE802154',36)
|
||||
AF_CAIF = Constant('AF_CAIF',37)
|
||||
AF_ALG = Constant('AF_ALG',38)
|
||||
AF_NFC = Constant('AF_NFC',39)
|
||||
AF_VSOCK = Constant('AF_VSOCK',40)
|
||||
AF_KCM = Constant('AF_KCM',41)
|
||||
AF_QIPCRTR = Constant('AF_QIPCRTR',42)
|
||||
AF_SMC = Constant('AF_SMC',43)
|
||||
AF_MAX = Constant('AF_MAX',44)
|
||||
PF_UNSPEC = Constant('PF_UNSPEC',0)
|
||||
PF_UNIX = Constant('PF_UNIX',1)
|
||||
PF_LOCAL = Constant('PF_LOCAL',1)
|
||||
@@ -800,7 +919,25 @@ PF_SNA = Constant('PF_SNA',22)
|
||||
PF_IRDA = Constant('PF_IRDA',23)
|
||||
PF_PPPOX = Constant('PF_PPPOX',24)
|
||||
PF_WANPIPE = Constant('PF_WANPIPE',25)
|
||||
PF_MAX = Constant('PF_MAX',32)
|
||||
PF_LLC = Constant('PF_LLC',26)
|
||||
PF_IB = Constant('PF_IB',27)
|
||||
PF_MPLS = Constant('PF_MPLS',28)
|
||||
PF_CAN = Constant('PF_CAN',29)
|
||||
PF_TIPC = Constant('PF_TIPC',30)
|
||||
PF_BLUETOOTH = Constant('PF_BLUETOOTH',31)
|
||||
PF_IUCV = Constant('PF_IUCV',32)
|
||||
PF_RXRPC = Constant('PF_RXRPC',33)
|
||||
PF_ISDN = Constant('PF_ISDN',34)
|
||||
PF_PHONET = Constant('PF_PHONET',35)
|
||||
PF_IEEE802154 = Constant('PF_IEEE802154',36)
|
||||
PF_CAIF = Constant('PF_CAIF',37)
|
||||
PF_ALG = Constant('PF_ALG',38)
|
||||
PF_NFC = Constant('PF_NFC',39)
|
||||
PF_VSOCK = Constant('PF_VSOCK',40)
|
||||
PF_KCM = Constant('PF_KCM',41)
|
||||
PF_QIPCRTR = Constant('PF_QIPCRTR',42)
|
||||
PF_SMC = Constant('PF_SMC',43)
|
||||
PF_MAX = Constant('PF_MAX',44)
|
||||
SOMAXCONN = Constant('SOMAXCONN',128)
|
||||
MSG_OOB = Constant('MSG_OOB',1)
|
||||
MSG_PEEK = Constant('MSG_PEEK',2)
|
||||
@@ -813,18 +950,26 @@ MSG_DONTWAIT = Constant('MSG_DONTWAIT',0x40)
|
||||
MSG_EOR = Constant('MSG_EOR',0x80)
|
||||
MSG_WAITALL = Constant('MSG_WAITALL',0x100)
|
||||
MSG_FIN = Constant('MSG_FIN',0x200)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_SYN = Constant('MSG_SYN',0x400)
|
||||
MSG_CONFIRM = Constant('MSG_CONFIRM',0x800)
|
||||
MSG_RST = Constant('MSG_RST',0x1000)
|
||||
MSG_ERRQUEUE = Constant('MSG_ERRQUEUE',0x2000)
|
||||
MSG_NOSIGNAL = Constant('MSG_NOSIGNAL',0x4000)
|
||||
MSG_MORE = Constant('MSG_MORE',0x8000)
|
||||
MSG_WAITFORONE = Constant('MSG_WAITFORONE',0x10000)
|
||||
MSG_SENDPAGE_NOTLAST = Constant('MSG_SENDPAGE_NOTLAST',0x20000)
|
||||
MSG_BATCH = Constant('MSG_BATCH',0x40000)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_ZEROCOPY = Constant('MSG_ZEROCOPY',0x4000000)
|
||||
MSG_FASTOPEN = Constant('MSG_FASTOPEN',0x20000000)
|
||||
MSG_CMSG_CLOEXEC = Constant('MSG_CMSG_CLOEXEC',0x40000000)
|
||||
SOL_IP = Constant('SOL_IP',0)
|
||||
SOL_TCP = Constant('SOL_TCP',6)
|
||||
SOL_UDP = Constant('SOL_UDP',17)
|
||||
SOL_IPV6 = Constant('SOL_IPV6',41)
|
||||
SOL_ICMPV6 = Constant('SOL_ICMPV6',58)
|
||||
SOL_SCTP = Constant('SOL_SCTP',132)
|
||||
SOL_UDPLITE = Constant('SOL_UDPLITE',136)
|
||||
SOL_RAW = Constant('SOL_RAW',255)
|
||||
SOL_IPX = Constant('SOL_IPX',256)
|
||||
SOL_AX25 = Constant('SOL_AX25',257)
|
||||
@@ -837,6 +982,22 @@ SOL_PACKET = Constant('SOL_PACKET',263)
|
||||
SOL_ATM = Constant('SOL_ATM',264)
|
||||
SOL_AAL = Constant('SOL_AAL',265)
|
||||
SOL_IRDA = Constant('SOL_IRDA',266)
|
||||
SOL_NETBEUI = Constant('SOL_NETBEUI',267)
|
||||
SOL_LLC = Constant('SOL_LLC',268)
|
||||
SOL_DCCP = Constant('SOL_DCCP',269)
|
||||
SOL_NETLINK = Constant('SOL_NETLINK',270)
|
||||
SOL_TIPC = Constant('SOL_TIPC',271)
|
||||
SOL_RXRPC = Constant('SOL_RXRPC',272)
|
||||
SOL_PPPOL2TP = Constant('SOL_PPPOL2TP',273)
|
||||
SOL_BLUETOOTH = Constant('SOL_BLUETOOTH',274)
|
||||
SOL_PNPIPE = Constant('SOL_PNPIPE',275)
|
||||
SOL_RDS = Constant('SOL_RDS',276)
|
||||
SOL_IUCV = Constant('SOL_IUCV',277)
|
||||
SOL_CAIF = Constant('SOL_CAIF',278)
|
||||
SOL_ALG = Constant('SOL_ALG',279)
|
||||
SOL_NFC = Constant('SOL_NFC',280)
|
||||
SOL_KCM = Constant('SOL_KCM',281)
|
||||
SOL_TLS = Constant('SOL_TLS',282)
|
||||
IPX_TYPE = Constant('IPX_TYPE',1)
|
||||
SHUT_RD = Constant('SHUT_RD',0)
|
||||
SHUT_WR = Constant('SHUT_WR',1)
|
||||
@@ -860,6 +1021,10 @@ EAI_SYSTEM = Constant('EAI_SYSTEM',-11)
|
||||
AI_NUMERICHOST = Constant('AI_NUMERICHOST',1)
|
||||
AI_CANONNAME = Constant('AI_CANONNAME',2)
|
||||
AI_PASSIVE = Constant('AI_PASSIVE',4)
|
||||
AI_NUMERICSERV = Constant('AI_NUMERICSERV',8)
|
||||
AI_ADDRCONFIG = Constant('AI_ADDRCONFIG',16)
|
||||
AI_V4MAPPED = Constant('AI_V4MAPPED',32)
|
||||
AI_ALL = Constant('AI_ALL',64)
|
||||
SIOCADDRT = Constant('SIOCADDRT',0x890B)
|
||||
SIOCDELRT = Constant('SIOCDELRT',0x890C)
|
||||
SIOCRTMSG = Constant('SIOCRTMSG',0x890D)
|
||||
@@ -916,6 +1081,130 @@ SIOCSIFMAP = Constant('SIOCSIFMAP',0x8971)
|
||||
SIOCADDDLCI = Constant('SIOCADDDLCI',0x8980)
|
||||
SIOCDELDLCI = Constant('SIOCDELDLCI',0x8981)
|
||||
SIOCDEVPRIVATE = Constant('SIOCDEVPRIVATE',0x89F0)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
O_ACCMODE = Constant('O_ACCMODE',0o003)
|
||||
O_RDONLY = Constant('O_RDONLY',0o0)
|
||||
O_WRONLY = Constant('O_WRONLY',0o1)
|
||||
O_RDWR = Constant('O_RDWR',0o2)
|
||||
O_CREAT = Constant('O_CREAT',0o100)
|
||||
O_EXCL = Constant('O_EXCL',0o200)
|
||||
O_NOCTTY = Constant('O_NOCTTY',0o400)
|
||||
O_TRUNC = Constant('O_TRUNC',0o1000)
|
||||
O_APPEND = Constant('O_APPEND',0o2000)
|
||||
O_NONBLOCK = Constant('O_NONBLOCK',0o4000)
|
||||
O_NDELAY = Constant('O_NDELAY',0o4000)
|
||||
O_DSYNC = Constant('O_DSYNC',0o10000)
|
||||
FASYNC = Constant('FASYNC',0o20000)
|
||||
O_DIRECT = Constant('O_DIRECT',0o40000)
|
||||
O_LARGEFILE = Constant('O_LARGEFILE',0o100000)
|
||||
O_DIRECTORY = Constant('O_DIRECTORY',0o200000)
|
||||
O_NOFOLLOW = Constant('O_NOFOLLOW',0o400000)
|
||||
O_NOATIME = Constant('O_NOATIME',0o1000000)
|
||||
O_CLOEXEC = Constant('O_CLOEXEC',0o2000000)
|
||||
O_SYNC = Constant('O_SYNC',(0o10000|0o4000000))
|
||||
O_PATH = Constant('O_PATH',0o10000000)
|
||||
__O_TMPFILE = Constant('__O_TMPFILE',0o20000000)
|
||||
F_DUPFD = Constant('F_DUPFD',0)
|
||||
F_GETFD = Constant('F_GETFD',1)
|
||||
F_SETFD = Constant('F_SETFD',2)
|
||||
F_GETFL = Constant('F_GETFL',3)
|
||||
F_SETFL = Constant('F_SETFL',4)
|
||||
F_GETLK = Constant('F_GETLK',5)
|
||||
F_SETLK = Constant('F_SETLK',6)
|
||||
F_SETLKW = Constant('F_SETLKW',7)
|
||||
F_SETOWN = Constant('F_SETOWN',8)
|
||||
F_GETOWN = Constant('F_GETOWN',9)
|
||||
F_SETSIG = Constant('F_SETSIG',10)
|
||||
F_GETSIG = Constant('F_GETSIG',11)
|
||||
F_GETLK64 = Constant('F_GETLK64',12)
|
||||
F_SETLK64 = Constant('F_SETLK64',13)
|
||||
F_SETLKW64 = Constant('F_SETLKW64',14)
|
||||
FD_CLOEXEC = Constant('FD_CLOEXEC',1)
|
||||
F_RDLCK = Constant('F_RDLCK',0)
|
||||
F_WRLCK = Constant('F_WRLCK',1)
|
||||
F_UNLCK = Constant('F_UNLCK',2)
|
||||
F_EXLCK = Constant('F_EXLCK',4)
|
||||
F_SHLCK = Constant('F_SHLCK',8)
|
||||
F_INPROGRESS = Constant('F_INPROGRESS',16)
|
||||
LOCK_SH = Constant('LOCK_SH',1)
|
||||
LOCK_EX = Constant('LOCK_EX',2)
|
||||
LOCK_NB = Constant('LOCK_NB',4)
|
||||
LOCK_UN = Constant('LOCK_UN',8)
|
||||
LOCK_MAND = Constant('LOCK_MAND',32)
|
||||
LOCK_READ = Constant('LOCK_READ',64)
|
||||
LOCK_WRITE = Constant('LOCK_WRITE',128)
|
||||
LOCK_RW = Constant('LOCK_RW',192)
|
||||
O_TMPFILE = Constant('O_TMPFILE',(0o20000000 | 0o200000))
|
||||
O_ASYNC = Constant('O_ASYNC',0o20000)
|
||||
F_SETOWN_EX = Constant('F_SETOWN_EX',15)
|
||||
F_GETOWN_EX = Constant('F_GETOWN_EX',16)
|
||||
F_GETOWNER_UIDS = Constant('F_GETOWNER_UIDS',17)
|
||||
F_OFD_GETLK = Constant('F_OFD_GETLK',36)
|
||||
F_OFD_SETLK = Constant('F_OFD_SETLK',37)
|
||||
F_OFD_SETLKW = Constant('F_OFD_SETLKW',38)
|
||||
F_OWNER_TID = Constant('F_OWNER_TID',0)
|
||||
F_OWNER_PID = Constant('F_OWNER_PID',1)
|
||||
F_OWNER_PGRP = Constant('F_OWNER_PGRP',2)
|
||||
AT_FDCWD = Constant('AT_FDCWD',-100)
|
||||
AT_SYMLINK_NOFOLLOW = Constant('AT_SYMLINK_NOFOLLOW',0x100)
|
||||
AT_REMOVEDIR = Constant('AT_REMOVEDIR',0x200)
|
||||
AT_SYMLINK_FOLLOW = Constant('AT_SYMLINK_FOLLOW',0x400)
|
||||
AT_NO_AUTOMOUNT = Constant('AT_NO_AUTOMOUNT',0x800)
|
||||
AT_EMPTY_PATH = Constant('AT_EMPTY_PATH',0x1000)
|
||||
AT_EACCESS = Constant('AT_EACCESS',0x200)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_SEM = Constant('PROT_SEM',0x8)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
PROT_GROWSDOWN = Constant('PROT_GROWSDOWN',0x01000000)
|
||||
PROT_GROWSUP = Constant('PROT_GROWSUP',0x02000000)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_TYPE = Constant('MAP_TYPE',0xf)
|
||||
MADV_REMOVE = Constant('MADV_REMOVE',9)
|
||||
MADV_DONTFORK = Constant('MADV_DONTFORK',10)
|
||||
MADV_DOFORK = Constant('MADV_DOFORK',11)
|
||||
MADV_MERGEABLE = Constant('MADV_MERGEABLE',12)
|
||||
MADV_UNMERGEABLE = Constant('MADV_UNMERGEABLE',13)
|
||||
MADV_HUGEPAGE = Constant('MADV_HUGEPAGE',14)
|
||||
MADV_NOHUGEPAGE = Constant('MADV_NOHUGEPAGE',15)
|
||||
MADV_DONTDUMP = Constant('MADV_DONTDUMP',16)
|
||||
MADV_DODUMP = Constant('MADV_DODUMP',17)
|
||||
MADV_HWPOISON = Constant('MADV_HWPOISON',100)
|
||||
MADV_SOFT_OFFLINE = Constant('MADV_SOFT_OFFLINE',101)
|
||||
MLOCK_ONFAULT = Constant('MLOCK_ONFAULT',1)
|
||||
MAP_FIXED = Constant('MAP_FIXED',0x10)
|
||||
MAP_ANONYMOUS = Constant('MAP_ANONYMOUS',0x20)
|
||||
MAP_GROWSDOWN = Constant('MAP_GROWSDOWN',0x0100)
|
||||
MAP_DENYWRITE = Constant('MAP_DENYWRITE',0x0800)
|
||||
MAP_EXECUTABLE = Constant('MAP_EXECUTABLE',0x1000)
|
||||
MAP_LOCKED = Constant('MAP_LOCKED',0x2000)
|
||||
MAP_NORESERVE = Constant('MAP_NORESERVE',0x4000)
|
||||
MAP_POPULATE = Constant('MAP_POPULATE',0x8000)
|
||||
MAP_NONBLOCK = Constant('MAP_NONBLOCK',0x10000)
|
||||
MAP_STACK = Constant('MAP_STACK',0x20000)
|
||||
MAP_HUGETLB = Constant('MAP_HUGETLB',0x40000)
|
||||
MS_ASYNC = Constant('MS_ASYNC',1)
|
||||
MS_INVALIDATE = Constant('MS_INVALIDATE',2)
|
||||
MS_SYNC = Constant('MS_SYNC',4)
|
||||
MCL_CURRENT = Constant('MCL_CURRENT',1)
|
||||
MCL_FUTURE = Constant('MCL_FUTURE',2)
|
||||
MCL_ONFAULT = Constant('MCL_ONFAULT',4)
|
||||
MADV_NORMAL = Constant('MADV_NORMAL',0x0)
|
||||
MADV_RANDOM = Constant('MADV_RANDOM',0x1)
|
||||
MADV_SEQUENTIAL = Constant('MADV_SEQUENTIAL',0x2)
|
||||
MADV_WILLNEED = Constant('MADV_WILLNEED',0x3)
|
||||
MADV_DONTNEED = Constant('MADV_DONTNEED',0x4)
|
||||
MAP_ANON = Constant('MAP_ANON',0x20)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
POSIX_MADV_NORMAL = Constant('POSIX_MADV_NORMAL',0x0)
|
||||
POSIX_MADV_SEQUENTIAL = Constant('POSIX_MADV_SEQUENTIAL',0x2)
|
||||
POSIX_MADV_RANDOM = Constant('POSIX_MADV_RANDOM',0x1)
|
||||
POSIX_MADV_WILLNEED = Constant('POSIX_MADV_WILLNEED',0x3)
|
||||
POSIX_MADV_DONTNEED = Constant('POSIX_MADV_DONTNEED',0x4)
|
||||
PTRACE_TRACEME = Constant('PTRACE_TRACEME',0)
|
||||
PTRACE_PEEKTEXT = Constant('PTRACE_PEEKTEXT',1)
|
||||
PTRACE_PEEKDATA = Constant('PTRACE_PEEKDATA',2)
|
||||
@@ -986,6 +1275,7 @@ PTRACE_GETFPXREGS = Constant('PTRACE_GETFPXREGS',18)
|
||||
PTRACE_SETFPXREGS = Constant('PTRACE_SETFPXREGS',19)
|
||||
PTRACE_SETOPTIONS = Constant('PTRACE_SETOPTIONS',21)
|
||||
PTRACE_O_TRACESYSGOOD = Constant('PTRACE_O_TRACESYSGOOD',0x00000001)
|
||||
SYS_accept4 = Constant('SYS_accept4',364)
|
||||
SYS_access = Constant('SYS_access',33)
|
||||
SYS_acct = Constant('SYS_acct',51)
|
||||
SYS_add_key = Constant('SYS_add_key',286)
|
||||
@@ -993,6 +1283,8 @@ SYS_adjtimex = Constant('SYS_adjtimex',124)
|
||||
SYS_afs_syscall = Constant('SYS_afs_syscall',137)
|
||||
SYS_alarm = Constant('SYS_alarm',27)
|
||||
SYS_bdflush = Constant('SYS_bdflush',134)
|
||||
SYS_bind = Constant('SYS_bind',361)
|
||||
SYS_bpf = Constant('SYS_bpf',357)
|
||||
SYS_break = Constant('SYS_break',17)
|
||||
SYS_brk = Constant('SYS_brk',45)
|
||||
SYS_capget = Constant('SYS_capget',184)
|
||||
@@ -1002,12 +1294,21 @@ SYS_chmod = Constant('SYS_chmod',15)
|
||||
SYS_chown = Constant('SYS_chown',182)
|
||||
SYS_chown32 = Constant('SYS_chown32',212)
|
||||
SYS_chroot = Constant('SYS_chroot',61)
|
||||
SYS_clock_adjtime = Constant('SYS_clock_adjtime',343)
|
||||
SYS_clock_adjtime64 = Constant('SYS_clock_adjtime64',405)
|
||||
SYS_clock_getres = Constant('SYS_clock_getres',(259+7))
|
||||
SYS_clock_getres_time64 = Constant('SYS_clock_getres_time64',406)
|
||||
SYS_clock_gettime = Constant('SYS_clock_gettime',(259+6))
|
||||
SYS_clock_gettime64 = Constant('SYS_clock_gettime64',403)
|
||||
SYS_clock_nanosleep = Constant('SYS_clock_nanosleep',(259+8))
|
||||
SYS_clock_nanosleep_time64 = Constant('SYS_clock_nanosleep_time64',407)
|
||||
SYS_clock_settime = Constant('SYS_clock_settime',(259+5))
|
||||
SYS_clock_settime64 = Constant('SYS_clock_settime64',404)
|
||||
SYS_clone = Constant('SYS_clone',120)
|
||||
SYS_clone3 = Constant('SYS_clone3',435)
|
||||
SYS_close = Constant('SYS_close',6)
|
||||
SYS_connect = Constant('SYS_connect',362)
|
||||
SYS_copy_file_range = Constant('SYS_copy_file_range',377)
|
||||
SYS_creat = Constant('SYS_creat',8)
|
||||
SYS_create_module = Constant('SYS_create_module',127)
|
||||
SYS_delete_module = Constant('SYS_delete_module',129)
|
||||
@@ -1022,6 +1323,7 @@ SYS_epoll_wait = Constant('SYS_epoll_wait',256)
|
||||
SYS_eventfd = Constant('SYS_eventfd',323)
|
||||
SYS_eventfd2 = Constant('SYS_eventfd2',328)
|
||||
SYS_execve = Constant('SYS_execve',11)
|
||||
SYS_execveat = Constant('SYS_execveat',358)
|
||||
SYS_exit = Constant('SYS_exit',1)
|
||||
SYS_exit_group = Constant('SYS_exit_group',252)
|
||||
SYS_faccessat = Constant('SYS_faccessat',307)
|
||||
@@ -1040,11 +1342,16 @@ SYS_fcntl = Constant('SYS_fcntl',55)
|
||||
SYS_fcntl64 = Constant('SYS_fcntl64',221)
|
||||
SYS_fdatasync = Constant('SYS_fdatasync',148)
|
||||
SYS_fgetxattr = Constant('SYS_fgetxattr',231)
|
||||
SYS_finit_module = Constant('SYS_finit_module',350)
|
||||
SYS_flistxattr = Constant('SYS_flistxattr',234)
|
||||
SYS_flock = Constant('SYS_flock',143)
|
||||
SYS_fork = Constant('SYS_fork',2)
|
||||
SYS_fremovexattr = Constant('SYS_fremovexattr',237)
|
||||
SYS_fsconfig = Constant('SYS_fsconfig',431)
|
||||
SYS_fsetxattr = Constant('SYS_fsetxattr',228)
|
||||
SYS_fsmount = Constant('SYS_fsmount',432)
|
||||
SYS_fsopen = Constant('SYS_fsopen',430)
|
||||
SYS_fspick = Constant('SYS_fspick',433)
|
||||
SYS_fstat = Constant('SYS_fstat',108)
|
||||
SYS_fstat64 = Constant('SYS_fstat64',197)
|
||||
SYS_fstatat64 = Constant('SYS_fstatat64',300)
|
||||
@@ -1055,6 +1362,7 @@ SYS_ftime = Constant('SYS_ftime',35)
|
||||
SYS_ftruncate = Constant('SYS_ftruncate',93)
|
||||
SYS_ftruncate64 = Constant('SYS_ftruncate64',194)
|
||||
SYS_futex = Constant('SYS_futex',240)
|
||||
SYS_futex_time64 = Constant('SYS_futex_time64',422)
|
||||
SYS_futimesat = Constant('SYS_futimesat',299)
|
||||
SYS_getcpu = Constant('SYS_getcpu',318)
|
||||
SYS_getcwd = Constant('SYS_getcwd',183)
|
||||
@@ -1071,12 +1379,14 @@ SYS_getgroups32 = Constant('SYS_getgroups32',205)
|
||||
SYS_getitimer = Constant('SYS_getitimer',105)
|
||||
SYS_get_kernel_syms = Constant('SYS_get_kernel_syms',130)
|
||||
SYS_get_mempolicy = Constant('SYS_get_mempolicy',275)
|
||||
SYS_getpeername = Constant('SYS_getpeername',368)
|
||||
SYS_getpgid = Constant('SYS_getpgid',132)
|
||||
SYS_getpgrp = Constant('SYS_getpgrp',65)
|
||||
SYS_getpid = Constant('SYS_getpid',20)
|
||||
SYS_getpmsg = Constant('SYS_getpmsg',188)
|
||||
SYS_getppid = Constant('SYS_getppid',64)
|
||||
SYS_getpriority = Constant('SYS_getpriority',96)
|
||||
SYS_getrandom = Constant('SYS_getrandom',355)
|
||||
SYS_getresgid = Constant('SYS_getresgid',171)
|
||||
SYS_getresgid32 = Constant('SYS_getresgid32',211)
|
||||
SYS_getresuid = Constant('SYS_getresuid',165)
|
||||
@@ -1085,6 +1395,8 @@ SYS_getrlimit = Constant('SYS_getrlimit',76)
|
||||
SYS_get_robust_list = Constant('SYS_get_robust_list',312)
|
||||
SYS_getrusage = Constant('SYS_getrusage',77)
|
||||
SYS_getsid = Constant('SYS_getsid',147)
|
||||
SYS_getsockname = Constant('SYS_getsockname',367)
|
||||
SYS_getsockopt = Constant('SYS_getsockopt',365)
|
||||
SYS_get_thread_area = Constant('SYS_get_thread_area',244)
|
||||
SYS_gettid = Constant('SYS_gettid',224)
|
||||
SYS_gettimeofday = Constant('SYS_gettimeofday',78)
|
||||
@@ -1092,6 +1404,10 @@ SYS_getuid = Constant('SYS_getuid',24)
|
||||
SYS_getuid32 = Constant('SYS_getuid32',199)
|
||||
SYS_getxattr = Constant('SYS_getxattr',229)
|
||||
SYS_gtty = Constant('SYS_gtty',32)
|
||||
SYS_ia32_arch_prctl = Constant('SYS_ia32_arch_prctl',384)
|
||||
SYS_ia32_io_pgetevents = Constant('SYS_ia32_io_pgetevents',385)
|
||||
SYS_ia32_rseq = Constant('SYS_ia32_rseq',386)
|
||||
SYS_ia32_statx = Constant('SYS_ia32_statx',383)
|
||||
SYS_idle = Constant('SYS_idle',112)
|
||||
SYS_init_module = Constant('SYS_init_module',128)
|
||||
SYS_inotify_add_watch = Constant('SYS_inotify_add_watch',292)
|
||||
@@ -1103,12 +1419,17 @@ SYS_ioctl = Constant('SYS_ioctl',54)
|
||||
SYS_io_destroy = Constant('SYS_io_destroy',246)
|
||||
SYS_io_getevents = Constant('SYS_io_getevents',247)
|
||||
SYS_ioperm = Constant('SYS_ioperm',101)
|
||||
SYS_io_pgetevents_time64 = Constant('SYS_io_pgetevents_time64',416)
|
||||
SYS_iopl = Constant('SYS_iopl',110)
|
||||
SYS_ioprio_get = Constant('SYS_ioprio_get',290)
|
||||
SYS_ioprio_set = Constant('SYS_ioprio_set',289)
|
||||
SYS_io_setup = Constant('SYS_io_setup',245)
|
||||
SYS_io_submit = Constant('SYS_io_submit',248)
|
||||
SYS_io_uring_enter = Constant('SYS_io_uring_enter',426)
|
||||
SYS_io_uring_register = Constant('SYS_io_uring_register',427)
|
||||
SYS_io_uring_setup = Constant('SYS_io_uring_setup',425)
|
||||
SYS_ipc = Constant('SYS_ipc',117)
|
||||
SYS_kcmp = Constant('SYS_kcmp',349)
|
||||
SYS_keyctl = Constant('SYS_keyctl',288)
|
||||
SYS_kill = Constant('SYS_kill',37)
|
||||
SYS_lchown = Constant('SYS_lchown',16)
|
||||
@@ -1116,6 +1437,7 @@ SYS_lchown32 = Constant('SYS_lchown32',198)
|
||||
SYS_lgetxattr = Constant('SYS_lgetxattr',230)
|
||||
SYS_link = Constant('SYS_link',9)
|
||||
SYS_linkat = Constant('SYS_linkat',303)
|
||||
SYS_listen = Constant('SYS_listen',363)
|
||||
SYS_listxattr = Constant('SYS_listxattr',232)
|
||||
SYS_llistxattr = Constant('SYS_llistxattr',233)
|
||||
SYS__llseek = Constant('SYS__llseek',140)
|
||||
@@ -1129,6 +1451,8 @@ SYS_lstat64 = Constant('SYS_lstat64',196)
|
||||
SYS_madvise = Constant('SYS_madvise',219)
|
||||
SYS_madvise1 = Constant('SYS_madvise1',219)
|
||||
SYS_mbind = Constant('SYS_mbind',274)
|
||||
SYS_membarrier = Constant('SYS_membarrier',375)
|
||||
SYS_memfd_create = Constant('SYS_memfd_create',356)
|
||||
SYS_migrate_pages = Constant('SYS_migrate_pages',294)
|
||||
SYS_mincore = Constant('SYS_mincore',218)
|
||||
SYS_mkdir = Constant('SYS_mkdir',39)
|
||||
@@ -1136,11 +1460,13 @@ SYS_mkdirat = Constant('SYS_mkdirat',296)
|
||||
SYS_mknod = Constant('SYS_mknod',14)
|
||||
SYS_mknodat = Constant('SYS_mknodat',297)
|
||||
SYS_mlock = Constant('SYS_mlock',150)
|
||||
SYS_mlock2 = Constant('SYS_mlock2',376)
|
||||
SYS_mlockall = Constant('SYS_mlockall',152)
|
||||
SYS_mmap = Constant('SYS_mmap',90)
|
||||
SYS_mmap2 = Constant('SYS_mmap2',192)
|
||||
SYS_modify_ldt = Constant('SYS_modify_ldt',123)
|
||||
SYS_mount = Constant('SYS_mount',21)
|
||||
SYS_move_mount = Constant('SYS_move_mount',429)
|
||||
SYS_move_pages = Constant('SYS_move_pages',317)
|
||||
SYS_mprotect = Constant('SYS_mprotect',125)
|
||||
SYS_mpx = Constant('SYS_mpx',56)
|
||||
@@ -1148,13 +1474,20 @@ SYS_mq_getsetattr = Constant('SYS_mq_getsetattr',(277+5))
|
||||
SYS_mq_notify = Constant('SYS_mq_notify',(277+4))
|
||||
SYS_mq_open = Constant('SYS_mq_open',277)
|
||||
SYS_mq_timedreceive = Constant('SYS_mq_timedreceive',(277+3))
|
||||
SYS_mq_timedreceive_time64 = Constant('SYS_mq_timedreceive_time64',419)
|
||||
SYS_mq_timedsend = Constant('SYS_mq_timedsend',(277+2))
|
||||
SYS_mq_timedsend_time64 = Constant('SYS_mq_timedsend_time64',418)
|
||||
SYS_mq_unlink = Constant('SYS_mq_unlink',(277+1))
|
||||
SYS_mremap = Constant('SYS_mremap',163)
|
||||
SYS_msgctl = Constant('SYS_msgctl',402)
|
||||
SYS_msgget = Constant('SYS_msgget',399)
|
||||
SYS_msgrcv = Constant('SYS_msgrcv',401)
|
||||
SYS_msgsnd = Constant('SYS_msgsnd',400)
|
||||
SYS_msync = Constant('SYS_msync',144)
|
||||
SYS_munlock = Constant('SYS_munlock',151)
|
||||
SYS_munlockall = Constant('SYS_munlockall',153)
|
||||
SYS_munmap = Constant('SYS_munmap',91)
|
||||
SYS_name_to_handle_at = Constant('SYS_name_to_handle_at',341)
|
||||
SYS_nanosleep = Constant('SYS_nanosleep',162)
|
||||
SYS__newselect = Constant('SYS__newselect',142)
|
||||
SYS_nfsservctl = Constant('SYS_nfsservctl',169)
|
||||
@@ -1166,25 +1499,40 @@ SYS_oldstat = Constant('SYS_oldstat',18)
|
||||
SYS_olduname = Constant('SYS_olduname',109)
|
||||
SYS_open = Constant('SYS_open',5)
|
||||
SYS_openat = Constant('SYS_openat',295)
|
||||
SYS_openat2 = Constant('SYS_openat2',437)
|
||||
SYS_open_by_handle_at = Constant('SYS_open_by_handle_at',342)
|
||||
SYS_open_tree = Constant('SYS_open_tree',428)
|
||||
SYS_pause = Constant('SYS_pause',29)
|
||||
SYS_perf_event_open = Constant('SYS_perf_event_open',336)
|
||||
SYS_personality = Constant('SYS_personality',136)
|
||||
SYS_pidfd_getfd = Constant('SYS_pidfd_getfd',438)
|
||||
SYS_pidfd_open = Constant('SYS_pidfd_open',434)
|
||||
SYS_pidfd_send_signal = Constant('SYS_pidfd_send_signal',424)
|
||||
SYS_pipe = Constant('SYS_pipe',42)
|
||||
SYS_pipe2 = Constant('SYS_pipe2',331)
|
||||
SYS_pivot_root = Constant('SYS_pivot_root',217)
|
||||
SYS_pkey_alloc = Constant('SYS_pkey_alloc',381)
|
||||
SYS_pkey_free = Constant('SYS_pkey_free',382)
|
||||
SYS_pkey_mprotect = Constant('SYS_pkey_mprotect',380)
|
||||
SYS_poll = Constant('SYS_poll',168)
|
||||
SYS_ppoll = Constant('SYS_ppoll',309)
|
||||
SYS_ppoll_time64 = Constant('SYS_ppoll_time64',414)
|
||||
SYS_prctl = Constant('SYS_prctl',172)
|
||||
SYS_pread = Constant('SYS_pread',180)
|
||||
SYS_preadv = Constant('SYS_preadv',333)
|
||||
SYS_preadv2 = Constant('SYS_preadv2',378)
|
||||
SYS_prlimit64 = Constant('SYS_prlimit64',340)
|
||||
SYS_process_vm_readv = Constant('SYS_process_vm_readv',347)
|
||||
SYS_process_vm_writev = Constant('SYS_process_vm_writev',348)
|
||||
SYS_prof = Constant('SYS_prof',44)
|
||||
SYS_profil = Constant('SYS_profil',98)
|
||||
SYS_pselect6 = Constant('SYS_pselect6',308)
|
||||
SYS_pselect6_time64 = Constant('SYS_pselect6_time64',413)
|
||||
SYS_ptrace = Constant('SYS_ptrace',26)
|
||||
SYS_putpmsg = Constant('SYS_putpmsg',189)
|
||||
SYS_pwrite = Constant('SYS_pwrite',181)
|
||||
SYS_pwritev = Constant('SYS_pwritev',334)
|
||||
SYS_pwritev2 = Constant('SYS_pwritev2',379)
|
||||
SYS_query_module = Constant('SYS_query_module',167)
|
||||
SYS_quotactl = Constant('SYS_quotactl',131)
|
||||
SYS_read = Constant('SYS_read',3)
|
||||
@@ -1194,11 +1542,15 @@ SYS_readlink = Constant('SYS_readlink',85)
|
||||
SYS_readlinkat = Constant('SYS_readlinkat',305)
|
||||
SYS_readv = Constant('SYS_readv',145)
|
||||
SYS_reboot = Constant('SYS_reboot',88)
|
||||
SYS_recvfrom = Constant('SYS_recvfrom',371)
|
||||
SYS_recvmmsg = Constant('SYS_recvmmsg',337)
|
||||
SYS_recvmmsg_time64 = Constant('SYS_recvmmsg_time64',417)
|
||||
SYS_recvmsg = Constant('SYS_recvmsg',372)
|
||||
SYS_remap_file_pages = Constant('SYS_remap_file_pages',257)
|
||||
SYS_removexattr = Constant('SYS_removexattr',235)
|
||||
SYS_rename = Constant('SYS_rename',38)
|
||||
SYS_renameat = Constant('SYS_renameat',302)
|
||||
SYS_renameat2 = Constant('SYS_renameat2',353)
|
||||
SYS_request_key = Constant('SYS_request_key',287)
|
||||
SYS_rmdir = Constant('SYS_rmdir',40)
|
||||
SYS_rt_sigaction = Constant('SYS_rt_sigaction',174)
|
||||
@@ -1208,20 +1560,31 @@ SYS_rt_sigqueueinfo = Constant('SYS_rt_sigqueueinfo',178)
|
||||
SYS_rt_sigreturn = Constant('SYS_rt_sigreturn',173)
|
||||
SYS_rt_sigsuspend = Constant('SYS_rt_sigsuspend',179)
|
||||
SYS_rt_sigtimedwait = Constant('SYS_rt_sigtimedwait',177)
|
||||
SYS_rt_sigtimedwait_time64 = Constant('SYS_rt_sigtimedwait_time64',421)
|
||||
SYS_rt_tgsigqueueinfo = Constant('SYS_rt_tgsigqueueinfo',335)
|
||||
SYS_sched_getaffinity = Constant('SYS_sched_getaffinity',242)
|
||||
SYS_sched_getattr = Constant('SYS_sched_getattr',352)
|
||||
SYS_sched_getparam = Constant('SYS_sched_getparam',155)
|
||||
SYS_sched_get_priority_max = Constant('SYS_sched_get_priority_max',159)
|
||||
SYS_sched_get_priority_min = Constant('SYS_sched_get_priority_min',160)
|
||||
SYS_sched_getscheduler = Constant('SYS_sched_getscheduler',157)
|
||||
SYS_sched_rr_get_interval = Constant('SYS_sched_rr_get_interval',161)
|
||||
SYS_sched_rr_get_interval_time64 = Constant('SYS_sched_rr_get_interval_time64',423)
|
||||
SYS_sched_setaffinity = Constant('SYS_sched_setaffinity',241)
|
||||
SYS_sched_setattr = Constant('SYS_sched_setattr',351)
|
||||
SYS_sched_setparam = Constant('SYS_sched_setparam',154)
|
||||
SYS_sched_setscheduler = Constant('SYS_sched_setscheduler',156)
|
||||
SYS_sched_yield = Constant('SYS_sched_yield',158)
|
||||
SYS_seccomp = Constant('SYS_seccomp',354)
|
||||
SYS_select = Constant('SYS_select',82)
|
||||
SYS_semctl = Constant('SYS_semctl',394)
|
||||
SYS_semget = Constant('SYS_semget',393)
|
||||
SYS_semtimedop_time64 = Constant('SYS_semtimedop_time64',420)
|
||||
SYS_sendfile = Constant('SYS_sendfile',187)
|
||||
SYS_sendfile64 = Constant('SYS_sendfile64',239)
|
||||
SYS_sendmmsg = Constant('SYS_sendmmsg',345)
|
||||
SYS_sendmsg = Constant('SYS_sendmsg',370)
|
||||
SYS_sendto = Constant('SYS_sendto',369)
|
||||
SYS_setdomainname = Constant('SYS_setdomainname',121)
|
||||
SYS_setfsgid = Constant('SYS_setfsgid',139)
|
||||
SYS_setfsgid32 = Constant('SYS_setfsgid32',216)
|
||||
@@ -1234,6 +1597,7 @@ SYS_setgroups32 = Constant('SYS_setgroups32',206)
|
||||
SYS_sethostname = Constant('SYS_sethostname',74)
|
||||
SYS_setitimer = Constant('SYS_setitimer',104)
|
||||
SYS_set_mempolicy = Constant('SYS_set_mempolicy',276)
|
||||
SYS_setns = Constant('SYS_setns',346)
|
||||
SYS_setpgid = Constant('SYS_setpgid',57)
|
||||
SYS_setpriority = Constant('SYS_setpriority',97)
|
||||
SYS_setregid = Constant('SYS_setregid',71)
|
||||
@@ -1247,6 +1611,7 @@ SYS_setreuid32 = Constant('SYS_setreuid32',203)
|
||||
SYS_setrlimit = Constant('SYS_setrlimit',75)
|
||||
SYS_set_robust_list = Constant('SYS_set_robust_list',311)
|
||||
SYS_setsid = Constant('SYS_setsid',66)
|
||||
SYS_setsockopt = Constant('SYS_setsockopt',366)
|
||||
SYS_set_thread_area = Constant('SYS_set_thread_area',243)
|
||||
SYS_set_tid_address = Constant('SYS_set_tid_address',258)
|
||||
SYS_settimeofday = Constant('SYS_settimeofday',79)
|
||||
@@ -1254,6 +1619,11 @@ SYS_setuid = Constant('SYS_setuid',23)
|
||||
SYS_setuid32 = Constant('SYS_setuid32',213)
|
||||
SYS_setxattr = Constant('SYS_setxattr',226)
|
||||
SYS_sgetmask = Constant('SYS_sgetmask',68)
|
||||
SYS_shmat = Constant('SYS_shmat',397)
|
||||
SYS_shmctl = Constant('SYS_shmctl',396)
|
||||
SYS_shmdt = Constant('SYS_shmdt',398)
|
||||
SYS_shmget = Constant('SYS_shmget',395)
|
||||
SYS_shutdown = Constant('SYS_shutdown',373)
|
||||
SYS_sigaction = Constant('SYS_sigaction',67)
|
||||
SYS_sigaltstack = Constant('SYS_sigaltstack',186)
|
||||
SYS_signal = Constant('SYS_signal',48)
|
||||
@@ -1263,7 +1633,9 @@ SYS_sigpending = Constant('SYS_sigpending',73)
|
||||
SYS_sigprocmask = Constant('SYS_sigprocmask',126)
|
||||
SYS_sigreturn = Constant('SYS_sigreturn',119)
|
||||
SYS_sigsuspend = Constant('SYS_sigsuspend',72)
|
||||
SYS_socket = Constant('SYS_socket',359)
|
||||
SYS_socketcall = Constant('SYS_socketcall',102)
|
||||
SYS_socketpair = Constant('SYS_socketpair',360)
|
||||
SYS_splice = Constant('SYS_splice',313)
|
||||
SYS_ssetmask = Constant('SYS_ssetmask',69)
|
||||
SYS_stat = Constant('SYS_stat',106)
|
||||
@@ -1278,6 +1650,7 @@ SYS_symlink = Constant('SYS_symlink',83)
|
||||
SYS_symlinkat = Constant('SYS_symlinkat',304)
|
||||
SYS_sync = Constant('SYS_sync',36)
|
||||
SYS_sync_file_range = Constant('SYS_sync_file_range',314)
|
||||
SYS_syncfs = Constant('SYS_syncfs',344)
|
||||
SYS__sysctl = Constant('SYS__sysctl',149)
|
||||
SYS_sysfs = Constant('SYS_sysfs',135)
|
||||
SYS_sysinfo = Constant('SYS_sysinfo',116)
|
||||
@@ -1290,10 +1663,14 @@ SYS_timer_create = Constant('SYS_timer_create',259)
|
||||
SYS_timer_delete = Constant('SYS_timer_delete',(259+4))
|
||||
SYS_timerfd = Constant('SYS_timerfd',322)
|
||||
SYS_timerfd_gettime = Constant('SYS_timerfd_gettime',326)
|
||||
SYS_timerfd_gettime64 = Constant('SYS_timerfd_gettime64',410)
|
||||
SYS_timerfd_settime = Constant('SYS_timerfd_settime',325)
|
||||
SYS_timerfd_settime64 = Constant('SYS_timerfd_settime64',411)
|
||||
SYS_timer_getoverrun = Constant('SYS_timer_getoverrun',(259+3))
|
||||
SYS_timer_gettime = Constant('SYS_timer_gettime',(259+2))
|
||||
SYS_timer_gettime64 = Constant('SYS_timer_gettime64',408)
|
||||
SYS_timer_settime = Constant('SYS_timer_settime',(259+1))
|
||||
SYS_timer_settime64 = Constant('SYS_timer_settime64',409)
|
||||
SYS_times = Constant('SYS_times',43)
|
||||
SYS_tkill = Constant('SYS_tkill',238)
|
||||
SYS_truncate = Constant('SYS_truncate',92)
|
||||
@@ -1308,9 +1685,11 @@ SYS_unlink = Constant('SYS_unlink',10)
|
||||
SYS_unlinkat = Constant('SYS_unlinkat',301)
|
||||
SYS_unshare = Constant('SYS_unshare',310)
|
||||
SYS_uselib = Constant('SYS_uselib',86)
|
||||
SYS_userfaultfd = Constant('SYS_userfaultfd',374)
|
||||
SYS_ustat = Constant('SYS_ustat',62)
|
||||
SYS_utime = Constant('SYS_utime',30)
|
||||
SYS_utimensat = Constant('SYS_utimensat',320)
|
||||
SYS_utimensat_time64 = Constant('SYS_utimensat_time64',412)
|
||||
SYS_utimes = Constant('SYS_utimes',271)
|
||||
SYS_vfork = Constant('SYS_vfork',190)
|
||||
SYS_vhangup = Constant('SYS_vhangup',111)
|
||||
|
||||
+968
-656
File diff suppressed because it is too large.
Load diff
+528
-149
File diff suppressed because it is too large.
Load diff
@@ -1,5 +1,4 @@
|
||||
from pwnlib.constants.constant import Constant
|
||||
|
||||
__NR_exit = Constant('__NR_exit',1)
|
||||
__NR_fork = Constant('__NR_fork',2)
|
||||
__NR_read = Constant('__NR_read',3)
|
||||
@@ -306,6 +305,114 @@ __NR_fallocate = Constant('__NR_fallocate',309)
|
||||
__NR_subpage_prot = Constant('__NR_subpage_prot',310)
|
||||
__NR_timerfd_settime = Constant('__NR_timerfd_settime',311)
|
||||
__NR_timerfd_gettime = Constant('__NR_timerfd_gettime',312)
|
||||
__NR_signalfd4 = Constant('__NR_signalfd4',313)
|
||||
__NR_eventfd2 = Constant('__NR_eventfd2',314)
|
||||
__NR_epoll_create1 = Constant('__NR_epoll_create1',315)
|
||||
__NR_dup3 = Constant('__NR_dup3',316)
|
||||
__NR_pipe2 = Constant('__NR_pipe2',317)
|
||||
__NR_inotify_init1 = Constant('__NR_inotify_init1',318)
|
||||
__NR_perf_event_open = Constant('__NR_perf_event_open',319)
|
||||
__NR_preadv = Constant('__NR_preadv',320)
|
||||
__NR_pwritev = Constant('__NR_pwritev',321)
|
||||
__NR_rt_tgsigqueueinfo = Constant('__NR_rt_tgsigqueueinfo',322)
|
||||
__NR_fanotify_init = Constant('__NR_fanotify_init',323)
|
||||
__NR_fanotify_mark = Constant('__NR_fanotify_mark',324)
|
||||
__NR_prlimit64 = Constant('__NR_prlimit64',325)
|
||||
__NR_socket = Constant('__NR_socket',326)
|
||||
__NR_bind = Constant('__NR_bind',327)
|
||||
__NR_connect = Constant('__NR_connect',328)
|
||||
__NR_listen = Constant('__NR_listen',329)
|
||||
__NR_accept = Constant('__NR_accept',330)
|
||||
__NR_getsockname = Constant('__NR_getsockname',331)
|
||||
__NR_getpeername = Constant('__NR_getpeername',332)
|
||||
__NR_socketpair = Constant('__NR_socketpair',333)
|
||||
__NR_send = Constant('__NR_send',334)
|
||||
__NR_sendto = Constant('__NR_sendto',335)
|
||||
__NR_recv = Constant('__NR_recv',336)
|
||||
__NR_recvfrom = Constant('__NR_recvfrom',337)
|
||||
__NR_shutdown = Constant('__NR_shutdown',338)
|
||||
__NR_setsockopt = Constant('__NR_setsockopt',339)
|
||||
__NR_getsockopt = Constant('__NR_getsockopt',340)
|
||||
__NR_sendmsg = Constant('__NR_sendmsg',341)
|
||||
__NR_recvmsg = Constant('__NR_recvmsg',342)
|
||||
__NR_recvmmsg = Constant('__NR_recvmmsg',343)
|
||||
__NR_accept4 = Constant('__NR_accept4',344)
|
||||
__NR_name_to_handle_at = Constant('__NR_name_to_handle_at',345)
|
||||
__NR_open_by_handle_at = Constant('__NR_open_by_handle_at',346)
|
||||
__NR_clock_adjtime = Constant('__NR_clock_adjtime',347)
|
||||
__NR_syncfs = Constant('__NR_syncfs',348)
|
||||
__NR_sendmmsg = Constant('__NR_sendmmsg',349)
|
||||
__NR_setns = Constant('__NR_setns',350)
|
||||
__NR_process_vm_readv = Constant('__NR_process_vm_readv',351)
|
||||
__NR_process_vm_writev = Constant('__NR_process_vm_writev',352)
|
||||
__NR_finit_module = Constant('__NR_finit_module',353)
|
||||
__NR_kcmp = Constant('__NR_kcmp',354)
|
||||
__NR_sched_setattr = Constant('__NR_sched_setattr',355)
|
||||
__NR_sched_getattr = Constant('__NR_sched_getattr',356)
|
||||
__NR_renameat2 = Constant('__NR_renameat2',357)
|
||||
__NR_seccomp = Constant('__NR_seccomp',358)
|
||||
__NR_getrandom = Constant('__NR_getrandom',359)
|
||||
__NR_memfd_create = Constant('__NR_memfd_create',360)
|
||||
__NR_bpf = Constant('__NR_bpf',361)
|
||||
__NR_execveat = Constant('__NR_execveat',362)
|
||||
__NR_switch_endian = Constant('__NR_switch_endian',363)
|
||||
__NR_userfaultfd = Constant('__NR_userfaultfd',364)
|
||||
__NR_membarrier = Constant('__NR_membarrier',365)
|
||||
__NR_mlock2 = Constant('__NR_mlock2',378)
|
||||
__NR_copy_file_range = Constant('__NR_copy_file_range',379)
|
||||
__NR_preadv2 = Constant('__NR_preadv2',380)
|
||||
__NR_pwritev2 = Constant('__NR_pwritev2',381)
|
||||
__NR_kexec_file_load = Constant('__NR_kexec_file_load',382)
|
||||
__NR_statx = Constant('__NR_statx',383)
|
||||
__NR_pkey_alloc = Constant('__NR_pkey_alloc',384)
|
||||
__NR_pkey_free = Constant('__NR_pkey_free',385)
|
||||
__NR_pkey_mprotect = Constant('__NR_pkey_mprotect',386)
|
||||
__NR_rseq = Constant('__NR_rseq',387)
|
||||
__NR_io_pgetevents = Constant('__NR_io_pgetevents',388)
|
||||
__NR_semget = Constant('__NR_semget',393)
|
||||
__NR_semctl = Constant('__NR_semctl',394)
|
||||
__NR_shmget = Constant('__NR_shmget',395)
|
||||
__NR_shmctl = Constant('__NR_shmctl',396)
|
||||
__NR_shmat = Constant('__NR_shmat',397)
|
||||
__NR_shmdt = Constant('__NR_shmdt',398)
|
||||
__NR_msgget = Constant('__NR_msgget',399)
|
||||
__NR_msgsnd = Constant('__NR_msgsnd',400)
|
||||
__NR_msgrcv = Constant('__NR_msgrcv',401)
|
||||
__NR_msgctl = Constant('__NR_msgctl',402)
|
||||
__NR_clock_gettime64 = Constant('__NR_clock_gettime64',403)
|
||||
__NR_clock_settime64 = Constant('__NR_clock_settime64',404)
|
||||
__NR_clock_adjtime64 = Constant('__NR_clock_adjtime64',405)
|
||||
__NR_clock_getres_time64 = Constant('__NR_clock_getres_time64',406)
|
||||
__NR_clock_nanosleep_time64 = Constant('__NR_clock_nanosleep_time64',407)
|
||||
__NR_timer_gettime64 = Constant('__NR_timer_gettime64',408)
|
||||
__NR_timer_settime64 = Constant('__NR_timer_settime64',409)
|
||||
__NR_timerfd_gettime64 = Constant('__NR_timerfd_gettime64',410)
|
||||
__NR_timerfd_settime64 = Constant('__NR_timerfd_settime64',411)
|
||||
__NR_utimensat_time64 = Constant('__NR_utimensat_time64',412)
|
||||
__NR_pselect6_time64 = Constant('__NR_pselect6_time64',413)
|
||||
__NR_ppoll_time64 = Constant('__NR_ppoll_time64',414)
|
||||
__NR_io_pgetevents_time64 = Constant('__NR_io_pgetevents_time64',416)
|
||||
__NR_recvmmsg_time64 = Constant('__NR_recvmmsg_time64',417)
|
||||
__NR_mq_timedsend_time64 = Constant('__NR_mq_timedsend_time64',418)
|
||||
__NR_mq_timedreceive_time64 = Constant('__NR_mq_timedreceive_time64',419)
|
||||
__NR_semtimedop_time64 = Constant('__NR_semtimedop_time64',420)
|
||||
__NR_rt_sigtimedwait_time64 = Constant('__NR_rt_sigtimedwait_time64',421)
|
||||
__NR_futex_time64 = Constant('__NR_futex_time64',422)
|
||||
__NR_sched_rr_get_interval_time64 = Constant('__NR_sched_rr_get_interval_time64',423)
|
||||
__NR_pidfd_send_signal = Constant('__NR_pidfd_send_signal',424)
|
||||
__NR_io_uring_setup = Constant('__NR_io_uring_setup',425)
|
||||
__NR_io_uring_enter = Constant('__NR_io_uring_enter',426)
|
||||
__NR_io_uring_register = Constant('__NR_io_uring_register',427)
|
||||
__NR_open_tree = Constant('__NR_open_tree',428)
|
||||
__NR_move_mount = Constant('__NR_move_mount',429)
|
||||
__NR_fsopen = Constant('__NR_fsopen',430)
|
||||
__NR_fsconfig = Constant('__NR_fsconfig',431)
|
||||
__NR_fsmount = Constant('__NR_fsmount',432)
|
||||
__NR_fspick = Constant('__NR_fspick',433)
|
||||
__NR_pidfd_open = Constant('__NR_pidfd_open',434)
|
||||
__NR_clone3 = Constant('__NR_clone3',435)
|
||||
__NR_openat2 = Constant('__NR_openat2',437)
|
||||
__NR_pidfd_getfd = Constant('__NR_pidfd_getfd',438)
|
||||
MAP_32BIT = Constant('MAP_32BIT',0x40)
|
||||
INADDR_ANY = Constant('INADDR_ANY',0)
|
||||
INADDR_BROADCAST = Constant('INADDR_BROADCAST',0xffffffff)
|
||||
@@ -441,7 +548,11 @@ ENOKEY = Constant('ENOKEY',126)
|
||||
EKEYEXPIRED = Constant('EKEYEXPIRED',127)
|
||||
EKEYREVOKED = Constant('EKEYREVOKED',128)
|
||||
EKEYREJECTED = Constant('EKEYREJECTED',129)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((129) + 1))
|
||||
EOWNERDEAD = Constant('EOWNERDEAD',130)
|
||||
ENOTRECOVERABLE = Constant('ENOTRECOVERABLE',131)
|
||||
ERFKILL = Constant('ERFKILL',132)
|
||||
EHWPOISON = Constant('EHWPOISON',133)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((133) + 1))
|
||||
__LITTLE_ENDIAN = Constant('__LITTLE_ENDIAN',1234)
|
||||
__BIG_ENDIAN = Constant('__BIG_ENDIAN',4321)
|
||||
__BYTE_ORDER = Constant('__BYTE_ORDER',4321)
|
||||
@@ -450,9 +561,55 @@ LITTLE_ENDIAN = Constant('LITTLE_ENDIAN',1234)
|
||||
BIG_ENDIAN = Constant('BIG_ENDIAN',4321)
|
||||
BYTE_ORDER = Constant('BYTE_ORDER',4321)
|
||||
__WORDSIZE = Constant('__WORDSIZE',32)
|
||||
INT8_MAX = Constant('INT8_MAX',(127))
|
||||
INT16_MAX = Constant('INT16_MAX',(32767))
|
||||
INT32_MAX = Constant('INT32_MAX',(2147483647))
|
||||
INT64_MAX = Constant('INT64_MAX',(9223372036854775807))
|
||||
INT8_MIN = Constant('INT8_MIN',(-1 - (127)))
|
||||
INT16_MIN = Constant('INT16_MIN',(-1 - (32767)))
|
||||
INT32_MIN = Constant('INT32_MIN',(-1 - (2147483647)))
|
||||
INT64_MIN = Constant('INT64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_LEAST8_MAX = Constant('INT_LEAST8_MAX',(127))
|
||||
INT_LEAST8_MIN = Constant('INT_LEAST8_MIN',(-1 - (127)))
|
||||
INT_LEAST16_MAX = Constant('INT_LEAST16_MAX',(32767))
|
||||
INT_LEAST16_MIN = Constant('INT_LEAST16_MIN',(-1 - (32767)))
|
||||
INT_LEAST32_MAX = Constant('INT_LEAST32_MAX',(2147483647))
|
||||
INT_LEAST32_MIN = Constant('INT_LEAST32_MIN',(-1 - (2147483647)))
|
||||
INT_LEAST64_MAX = Constant('INT_LEAST64_MAX',(9223372036854775807))
|
||||
INT_LEAST64_MIN = Constant('INT_LEAST64_MIN',(-1 - (9223372036854775807)))
|
||||
UINT8_MAX = Constant('UINT8_MAX',0xff)
|
||||
UINT16_MAX = Constant('UINT16_MAX',0xffff)
|
||||
UINT32_MAX = Constant('UINT32_MAX',0xffffffff)
|
||||
UINT64_MAX = Constant('UINT64_MAX',0xffffffffffffffff)
|
||||
UINT_LEAST8_MAX = Constant('UINT_LEAST8_MAX',0xff)
|
||||
UINT_LEAST16_MAX = Constant('UINT_LEAST16_MAX',0xffff)
|
||||
UINT_LEAST32_MAX = Constant('UINT_LEAST32_MAX',0xffffffff)
|
||||
UINT_LEAST64_MAX = Constant('UINT_LEAST64_MAX',0xffffffffffffffff)
|
||||
INTPTR_MIN = Constant('INTPTR_MIN',(-1 - (2147483647)))
|
||||
INTPTR_MAX = Constant('INTPTR_MAX',(2147483647))
|
||||
UINTPTR_MAX = Constant('UINTPTR_MAX',0xffffffff)
|
||||
SIZE_MAX = Constant('SIZE_MAX',0xffffffff)
|
||||
PTRDIFF_MIN = Constant('PTRDIFF_MIN',(-1 - (2147483647)))
|
||||
PTRDIFF_MAX = Constant('PTRDIFF_MAX',(2147483647))
|
||||
INTMAX_MIN = Constant('INTMAX_MIN',(-1 - (9223372036854775807)))
|
||||
INTMAX_MAX = Constant('INTMAX_MAX',(9223372036854775807))
|
||||
UINTMAX_MAX = Constant('UINTMAX_MAX',0xffffffffffffffff)
|
||||
INT_FAST8_MIN = Constant('INT_FAST8_MIN',(-1 - (127)))
|
||||
INT_FAST8_MAX = Constant('INT_FAST8_MAX',(127))
|
||||
INT_FAST64_MIN = Constant('INT_FAST64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST64_MAX = Constant('INT_FAST64_MAX',(9223372036854775807))
|
||||
UINT_FAST8_MAX = Constant('UINT_FAST8_MAX',0xff)
|
||||
UINT_FAST64_MAX = Constant('UINT_FAST64_MAX',0xffffffffffffffff)
|
||||
INT_FAST16_MIN = Constant('INT_FAST16_MIN',(-1 - (2147483647)))
|
||||
INT_FAST16_MAX = Constant('INT_FAST16_MAX',(2147483647))
|
||||
UINT_FAST16_MAX = Constant('UINT_FAST16_MAX',0xffffffff)
|
||||
INT_FAST32_MIN = Constant('INT_FAST32_MIN',(-1 - (2147483647)))
|
||||
INT_FAST32_MAX = Constant('INT_FAST32_MAX',(2147483647))
|
||||
UINT_FAST32_MAX = Constant('UINT_FAST32_MAX',0xffffffff)
|
||||
WINT_MIN = Constant('WINT_MIN',0)
|
||||
__FSUID_H = Constant('__FSUID_H',1)
|
||||
NSIG = Constant('NSIG',32)
|
||||
_NSIG = Constant('_NSIG',64)
|
||||
_NSIG = Constant('_NSIG',65)
|
||||
SIGHUP = Constant('SIGHUP',1)
|
||||
SIGINT = Constant('SIGINT',2)
|
||||
SIGQUIT = Constant('SIGQUIT',3)
|
||||
@@ -468,7 +625,7 @@ SIGALRM = Constant('SIGALRM',14)
|
||||
SIGTERM = Constant('SIGTERM',15)
|
||||
SIGUNUSED = Constant('SIGUNUSED',31)
|
||||
SIGRTMIN = Constant('SIGRTMIN',32)
|
||||
SIGRTMAX = Constant('SIGRTMAX',(64-1))
|
||||
SIGRTMAX = Constant('SIGRTMAX',(65-1))
|
||||
SA_NOCLDSTOP = Constant('SA_NOCLDSTOP',0x00000001)
|
||||
SA_NOCLDWAIT = Constant('SA_NOCLDWAIT',0x00000002)
|
||||
SA_SIGINFO = Constant('SA_SIGINFO',0x00000004)
|
||||
@@ -517,6 +674,8 @@ _SC_PAGESIZE = Constant('_SC_PAGESIZE',5)
|
||||
_SC_NPROCESSORS_ONLN = Constant('_SC_NPROCESSORS_ONLN',6)
|
||||
_SC_NPROCESSORS_CONF = Constant('_SC_NPROCESSORS_CONF',6)
|
||||
_SC_PHYS_PAGES = Constant('_SC_PHYS_PAGES',7)
|
||||
_SC_GETPW_R_SIZE_MAX = Constant('_SC_GETPW_R_SIZE_MAX',8)
|
||||
_SC_GETGR_R_SIZE_MAX = Constant('_SC_GETGR_R_SIZE_MAX',9)
|
||||
_PC_PATH_MAX = Constant('_PC_PATH_MAX',1)
|
||||
_PC_VDISABLE = Constant('_PC_VDISABLE',2)
|
||||
L_cuserid = Constant('L_cuserid',17)
|
||||
@@ -525,6 +684,7 @@ F_ULOCK = Constant('F_ULOCK',0)
|
||||
F_LOCK = Constant('F_LOCK',1)
|
||||
F_TLOCK = Constant('F_TLOCK',2)
|
||||
F_TEST = Constant('F_TEST',3)
|
||||
_POSIX_MAPPED_FILES = Constant('_POSIX_MAPPED_FILES',200809)
|
||||
S_IFMT = Constant('S_IFMT',0o0170000)
|
||||
S_IFSOCK = Constant('S_IFSOCK',0o140000)
|
||||
S_IFLNK = Constant('S_IFLNK',0o120000)
|
||||
@@ -551,16 +711,7 @@ S_IXOTH = Constant('S_IXOTH',0o0001)
|
||||
S_IREAD = Constant('S_IREAD',0o0400)
|
||||
S_IWRITE = Constant('S_IWRITE',0o0200)
|
||||
S_IEXEC = Constant('S_IEXEC',0o0100)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
_SYS_UIO = Constant('_SYS_UIO',1)
|
||||
SOL_SOCKET = Constant('SOL_SOCKET',1)
|
||||
SO_DEBUG = Constant('SO_DEBUG',1)
|
||||
SO_REUSEADDR = Constant('SO_REUSEADDR',2)
|
||||
@@ -576,29 +727,64 @@ SO_NO_CHECK = Constant('SO_NO_CHECK',11)
|
||||
SO_PRIORITY = Constant('SO_PRIORITY',12)
|
||||
SO_LINGER = Constant('SO_LINGER',13)
|
||||
SO_BSDCOMPAT = Constant('SO_BSDCOMPAT',14)
|
||||
SO_REUSEPORT = Constant('SO_REUSEPORT',15)
|
||||
SO_PASSCRED = Constant('SO_PASSCRED',16)
|
||||
SO_PEERCRED = Constant('SO_PEERCRED',17)
|
||||
SO_RCVLOWAT = Constant('SO_RCVLOWAT',18)
|
||||
SO_SNDLOWAT = Constant('SO_SNDLOWAT',19)
|
||||
SO_RCVTIMEO = Constant('SO_RCVTIMEO',20)
|
||||
SO_SNDTIMEO = Constant('SO_SNDTIMEO',21)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_SECURITY_AUTHENTICATION = Constant('SO_SECURITY_AUTHENTICATION',22)
|
||||
SO_SECURITY_ENCRYPTION_TRANSPORT = Constant('SO_SECURITY_ENCRYPTION_TRANSPORT',23)
|
||||
SO_SECURITY_ENCRYPTION_NETWORK = Constant('SO_SECURITY_ENCRYPTION_NETWORK',24)
|
||||
SO_BINDTODEVICE = Constant('SO_BINDTODEVICE',25)
|
||||
SO_ATTACH_FILTER = Constant('SO_ATTACH_FILTER',26)
|
||||
SO_DETACH_FILTER = Constant('SO_DETACH_FILTER',27)
|
||||
SO_GET_FILTER = Constant('SO_GET_FILTER',26)
|
||||
SO_PEERNAME = Constant('SO_PEERNAME',28)
|
||||
SO_TIMESTAMP = Constant('SO_TIMESTAMP',29)
|
||||
SCM_TIMESTAMP = Constant('SCM_TIMESTAMP',29)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_PEERSEC = Constant('SO_PEERSEC',31)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_PASSSEC = Constant('SO_PASSSEC',34)
|
||||
SO_TIMESTAMPNS = Constant('SO_TIMESTAMPNS',35)
|
||||
SCM_TIMESTAMPNS = Constant('SCM_TIMESTAMPNS',35)
|
||||
SO_MARK = Constant('SO_MARK',36)
|
||||
SO_TIMESTAMPING = Constant('SO_TIMESTAMPING',37)
|
||||
SCM_TIMESTAMPING = Constant('SCM_TIMESTAMPING',37)
|
||||
SO_PROTOCOL = Constant('SO_PROTOCOL',38)
|
||||
SO_DOMAIN = Constant('SO_DOMAIN',39)
|
||||
SO_RXQ_OVFL = Constant('SO_RXQ_OVFL',40)
|
||||
SO_WIFI_STATUS = Constant('SO_WIFI_STATUS',41)
|
||||
SCM_WIFI_STATUS = Constant('SCM_WIFI_STATUS',41)
|
||||
SO_PEEK_OFF = Constant('SO_PEEK_OFF',42)
|
||||
SO_NOFCS = Constant('SO_NOFCS',43)
|
||||
SO_LOCK_FILTER = Constant('SO_LOCK_FILTER',44)
|
||||
SO_SELECT_ERR_QUEUE = Constant('SO_SELECT_ERR_QUEUE',45)
|
||||
SO_BUSY_POLL = Constant('SO_BUSY_POLL',46)
|
||||
SO_MAX_PACING_RATE = Constant('SO_MAX_PACING_RATE',47)
|
||||
SO_BPF_EXTENSIONS = Constant('SO_BPF_EXTENSIONS',48)
|
||||
SO_INCOMING_CPU = Constant('SO_INCOMING_CPU',49)
|
||||
SO_ATTACH_BPF = Constant('SO_ATTACH_BPF',50)
|
||||
SO_DETACH_BPF = Constant('SO_DETACH_BPF',27)
|
||||
SO_ATTACH_REUSEPORT_CBPF = Constant('SO_ATTACH_REUSEPORT_CBPF',51)
|
||||
SO_ATTACH_REUSEPORT_EBPF = Constant('SO_ATTACH_REUSEPORT_EBPF',52)
|
||||
SO_CNX_ADVICE = Constant('SO_CNX_ADVICE',53)
|
||||
SCM_TIMESTAMPING_OPT_STATS = Constant('SCM_TIMESTAMPING_OPT_STATS',54)
|
||||
SO_MEMINFO = Constant('SO_MEMINFO',55)
|
||||
SO_INCOMING_NAPI_ID = Constant('SO_INCOMING_NAPI_ID',56)
|
||||
SO_COOKIE = Constant('SO_COOKIE',57)
|
||||
SCM_TIMESTAMPING_PKTINFO = Constant('SCM_TIMESTAMPING_PKTINFO',58)
|
||||
SO_PEERGROUPS = Constant('SO_PEERGROUPS',59)
|
||||
SO_ZEROCOPY = Constant('SO_ZEROCOPY',60)
|
||||
SOCK_STREAM = Constant('SOCK_STREAM',1)
|
||||
SOCK_DGRAM = Constant('SOCK_DGRAM',2)
|
||||
SOCK_RAW = Constant('SOCK_RAW',3)
|
||||
SOCK_RDM = Constant('SOCK_RDM',4)
|
||||
SOCK_SEQPACKET = Constant('SOCK_SEQPACKET',5)
|
||||
SOCK_DCCP = Constant('SOCK_DCCP',6)
|
||||
SOCK_PACKET = Constant('SOCK_PACKET',10)
|
||||
UIO_FASTIOV = Constant('UIO_FASTIOV',8)
|
||||
UIO_MAXIOV = Constant('UIO_MAXIOV',1024)
|
||||
@@ -632,7 +818,25 @@ AF_SNA = Constant('AF_SNA',22)
|
||||
AF_IRDA = Constant('AF_IRDA',23)
|
||||
AF_PPPOX = Constant('AF_PPPOX',24)
|
||||
AF_WANPIPE = Constant('AF_WANPIPE',25)
|
||||
AF_MAX = Constant('AF_MAX',32)
|
||||
AF_LLC = Constant('AF_LLC',26)
|
||||
AF_IB = Constant('AF_IB',27)
|
||||
AF_MPLS = Constant('AF_MPLS',28)
|
||||
AF_CAN = Constant('AF_CAN',29)
|
||||
AF_TIPC = Constant('AF_TIPC',30)
|
||||
AF_BLUETOOTH = Constant('AF_BLUETOOTH',31)
|
||||
AF_IUCV = Constant('AF_IUCV',32)
|
||||
AF_RXRPC = Constant('AF_RXRPC',33)
|
||||
AF_ISDN = Constant('AF_ISDN',34)
|
||||
AF_PHONET = Constant('AF_PHONET',35)
|
||||
AF_IEEE802154 = Constant('AF_IEEE802154',36)
|
||||
AF_CAIF = Constant('AF_CAIF',37)
|
||||
AF_ALG = Constant('AF_ALG',38)
|
||||
AF_NFC = Constant('AF_NFC',39)
|
||||
AF_VSOCK = Constant('AF_VSOCK',40)
|
||||
AF_KCM = Constant('AF_KCM',41)
|
||||
AF_QIPCRTR = Constant('AF_QIPCRTR',42)
|
||||
AF_SMC = Constant('AF_SMC',43)
|
||||
AF_MAX = Constant('AF_MAX',44)
|
||||
PF_UNSPEC = Constant('PF_UNSPEC',0)
|
||||
PF_UNIX = Constant('PF_UNIX',1)
|
||||
PF_LOCAL = Constant('PF_LOCAL',1)
|
||||
@@ -660,7 +864,25 @@ PF_SNA = Constant('PF_SNA',22)
|
||||
PF_IRDA = Constant('PF_IRDA',23)
|
||||
PF_PPPOX = Constant('PF_PPPOX',24)
|
||||
PF_WANPIPE = Constant('PF_WANPIPE',25)
|
||||
PF_MAX = Constant('PF_MAX',32)
|
||||
PF_LLC = Constant('PF_LLC',26)
|
||||
PF_IB = Constant('PF_IB',27)
|
||||
PF_MPLS = Constant('PF_MPLS',28)
|
||||
PF_CAN = Constant('PF_CAN',29)
|
||||
PF_TIPC = Constant('PF_TIPC',30)
|
||||
PF_BLUETOOTH = Constant('PF_BLUETOOTH',31)
|
||||
PF_IUCV = Constant('PF_IUCV',32)
|
||||
PF_RXRPC = Constant('PF_RXRPC',33)
|
||||
PF_ISDN = Constant('PF_ISDN',34)
|
||||
PF_PHONET = Constant('PF_PHONET',35)
|
||||
PF_IEEE802154 = Constant('PF_IEEE802154',36)
|
||||
PF_CAIF = Constant('PF_CAIF',37)
|
||||
PF_ALG = Constant('PF_ALG',38)
|
||||
PF_NFC = Constant('PF_NFC',39)
|
||||
PF_VSOCK = Constant('PF_VSOCK',40)
|
||||
PF_KCM = Constant('PF_KCM',41)
|
||||
PF_QIPCRTR = Constant('PF_QIPCRTR',42)
|
||||
PF_SMC = Constant('PF_SMC',43)
|
||||
PF_MAX = Constant('PF_MAX',44)
|
||||
SOMAXCONN = Constant('SOMAXCONN',128)
|
||||
MSG_OOB = Constant('MSG_OOB',1)
|
||||
MSG_PEEK = Constant('MSG_PEEK',2)
|
||||
@@ -673,18 +895,26 @@ MSG_DONTWAIT = Constant('MSG_DONTWAIT',0x40)
|
||||
MSG_EOR = Constant('MSG_EOR',0x80)
|
||||
MSG_WAITALL = Constant('MSG_WAITALL',0x100)
|
||||
MSG_FIN = Constant('MSG_FIN',0x200)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_SYN = Constant('MSG_SYN',0x400)
|
||||
MSG_CONFIRM = Constant('MSG_CONFIRM',0x800)
|
||||
MSG_RST = Constant('MSG_RST',0x1000)
|
||||
MSG_ERRQUEUE = Constant('MSG_ERRQUEUE',0x2000)
|
||||
MSG_NOSIGNAL = Constant('MSG_NOSIGNAL',0x4000)
|
||||
MSG_MORE = Constant('MSG_MORE',0x8000)
|
||||
MSG_WAITFORONE = Constant('MSG_WAITFORONE',0x10000)
|
||||
MSG_SENDPAGE_NOTLAST = Constant('MSG_SENDPAGE_NOTLAST',0x20000)
|
||||
MSG_BATCH = Constant('MSG_BATCH',0x40000)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_ZEROCOPY = Constant('MSG_ZEROCOPY',0x4000000)
|
||||
MSG_FASTOPEN = Constant('MSG_FASTOPEN',0x20000000)
|
||||
MSG_CMSG_CLOEXEC = Constant('MSG_CMSG_CLOEXEC',0x40000000)
|
||||
SOL_IP = Constant('SOL_IP',0)
|
||||
SOL_TCP = Constant('SOL_TCP',6)
|
||||
SOL_UDP = Constant('SOL_UDP',17)
|
||||
SOL_IPV6 = Constant('SOL_IPV6',41)
|
||||
SOL_ICMPV6 = Constant('SOL_ICMPV6',58)
|
||||
SOL_SCTP = Constant('SOL_SCTP',132)
|
||||
SOL_UDPLITE = Constant('SOL_UDPLITE',136)
|
||||
SOL_RAW = Constant('SOL_RAW',255)
|
||||
SOL_IPX = Constant('SOL_IPX',256)
|
||||
SOL_AX25 = Constant('SOL_AX25',257)
|
||||
@@ -697,6 +927,22 @@ SOL_PACKET = Constant('SOL_PACKET',263)
|
||||
SOL_ATM = Constant('SOL_ATM',264)
|
||||
SOL_AAL = Constant('SOL_AAL',265)
|
||||
SOL_IRDA = Constant('SOL_IRDA',266)
|
||||
SOL_NETBEUI = Constant('SOL_NETBEUI',267)
|
||||
SOL_LLC = Constant('SOL_LLC',268)
|
||||
SOL_DCCP = Constant('SOL_DCCP',269)
|
||||
SOL_NETLINK = Constant('SOL_NETLINK',270)
|
||||
SOL_TIPC = Constant('SOL_TIPC',271)
|
||||
SOL_RXRPC = Constant('SOL_RXRPC',272)
|
||||
SOL_PPPOL2TP = Constant('SOL_PPPOL2TP',273)
|
||||
SOL_BLUETOOTH = Constant('SOL_BLUETOOTH',274)
|
||||
SOL_PNPIPE = Constant('SOL_PNPIPE',275)
|
||||
SOL_RDS = Constant('SOL_RDS',276)
|
||||
SOL_IUCV = Constant('SOL_IUCV',277)
|
||||
SOL_CAIF = Constant('SOL_CAIF',278)
|
||||
SOL_ALG = Constant('SOL_ALG',279)
|
||||
SOL_NFC = Constant('SOL_NFC',280)
|
||||
SOL_KCM = Constant('SOL_KCM',281)
|
||||
SOL_TLS = Constant('SOL_TLS',282)
|
||||
IPX_TYPE = Constant('IPX_TYPE',1)
|
||||
SHUT_RD = Constant('SHUT_RD',0)
|
||||
SHUT_WR = Constant('SHUT_WR',1)
|
||||
@@ -720,6 +966,10 @@ EAI_SYSTEM = Constant('EAI_SYSTEM',-11)
|
||||
AI_NUMERICHOST = Constant('AI_NUMERICHOST',1)
|
||||
AI_CANONNAME = Constant('AI_CANONNAME',2)
|
||||
AI_PASSIVE = Constant('AI_PASSIVE',4)
|
||||
AI_NUMERICSERV = Constant('AI_NUMERICSERV',8)
|
||||
AI_ADDRCONFIG = Constant('AI_ADDRCONFIG',16)
|
||||
AI_V4MAPPED = Constant('AI_V4MAPPED',32)
|
||||
AI_ALL = Constant('AI_ALL',64)
|
||||
SIOCADDRT = Constant('SIOCADDRT',0x890B)
|
||||
SIOCDELRT = Constant('SIOCDELRT',0x890C)
|
||||
SIOCRTMSG = Constant('SIOCRTMSG',0x890D)
|
||||
@@ -776,6 +1026,48 @@ SIOCSIFMAP = Constant('SIOCSIFMAP',0x8971)
|
||||
SIOCADDDLCI = Constant('SIOCADDDLCI',0x8980)
|
||||
SIOCDELDLCI = Constant('SIOCDELDLCI',0x8981)
|
||||
SIOCDEVPRIVATE = Constant('SIOCDEVPRIVATE',0x89F0)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
F_SETOWN_EX = Constant('F_SETOWN_EX',15)
|
||||
F_GETOWN_EX = Constant('F_GETOWN_EX',16)
|
||||
F_GETOWNER_UIDS = Constant('F_GETOWNER_UIDS',17)
|
||||
F_OFD_GETLK = Constant('F_OFD_GETLK',36)
|
||||
F_OFD_SETLK = Constant('F_OFD_SETLK',37)
|
||||
F_OFD_SETLKW = Constant('F_OFD_SETLKW',38)
|
||||
F_OWNER_TID = Constant('F_OWNER_TID',0)
|
||||
F_OWNER_PID = Constant('F_OWNER_PID',1)
|
||||
F_OWNER_PGRP = Constant('F_OWNER_PGRP',2)
|
||||
AT_FDCWD = Constant('AT_FDCWD',-100)
|
||||
AT_SYMLINK_NOFOLLOW = Constant('AT_SYMLINK_NOFOLLOW',0x100)
|
||||
AT_REMOVEDIR = Constant('AT_REMOVEDIR',0x200)
|
||||
AT_SYMLINK_FOLLOW = Constant('AT_SYMLINK_FOLLOW',0x400)
|
||||
AT_NO_AUTOMOUNT = Constant('AT_NO_AUTOMOUNT',0x800)
|
||||
AT_EMPTY_PATH = Constant('AT_EMPTY_PATH',0x1000)
|
||||
AT_EACCESS = Constant('AT_EACCESS',0x200)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_SEM = Constant('PROT_SEM',0x8)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
PROT_GROWSDOWN = Constant('PROT_GROWSDOWN',0x01000000)
|
||||
PROT_GROWSUP = Constant('PROT_GROWSUP',0x02000000)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_TYPE = Constant('MAP_TYPE',0xf)
|
||||
MADV_REMOVE = Constant('MADV_REMOVE',9)
|
||||
MADV_DONTFORK = Constant('MADV_DONTFORK',10)
|
||||
MADV_DOFORK = Constant('MADV_DOFORK',11)
|
||||
MADV_MERGEABLE = Constant('MADV_MERGEABLE',12)
|
||||
MADV_UNMERGEABLE = Constant('MADV_UNMERGEABLE',13)
|
||||
MADV_HUGEPAGE = Constant('MADV_HUGEPAGE',14)
|
||||
MADV_NOHUGEPAGE = Constant('MADV_NOHUGEPAGE',15)
|
||||
MADV_DONTDUMP = Constant('MADV_DONTDUMP',16)
|
||||
MADV_DODUMP = Constant('MADV_DODUMP',17)
|
||||
MADV_HWPOISON = Constant('MADV_HWPOISON',100)
|
||||
MADV_SOFT_OFFLINE = Constant('MADV_SOFT_OFFLINE',101)
|
||||
MLOCK_ONFAULT = Constant('MLOCK_ONFAULT',1)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
PTRACE_TRACEME = Constant('PTRACE_TRACEME',0)
|
||||
PTRACE_PEEKTEXT = Constant('PTRACE_PEEKTEXT',1)
|
||||
PTRACE_PEEKDATA = Constant('PTRACE_PEEKDATA',2)
|
||||
@@ -820,6 +1112,8 @@ PT_KILL = Constant('PT_KILL',8)
|
||||
PT_STEP = Constant('PT_STEP',9)
|
||||
PT_ATTACH = Constant('PT_ATTACH',0x10)
|
||||
PT_DETACH = Constant('PT_DETACH',0x11)
|
||||
SYS_accept = Constant('SYS_accept',330)
|
||||
SYS_accept4 = Constant('SYS_accept4',344)
|
||||
SYS_access = Constant('SYS_access',33)
|
||||
SYS_acct = Constant('SYS_acct',51)
|
||||
SYS_add_key = Constant('SYS_add_key',269)
|
||||
@@ -827,6 +1121,8 @@ SYS_adjtimex = Constant('SYS_adjtimex',124)
|
||||
SYS_afs_syscall = Constant('SYS_afs_syscall',137)
|
||||
SYS_alarm = Constant('SYS_alarm',27)
|
||||
SYS_bdflush = Constant('SYS_bdflush',134)
|
||||
SYS_bind = Constant('SYS_bind',327)
|
||||
SYS_bpf = Constant('SYS_bpf',361)
|
||||
SYS_break = Constant('SYS_break',17)
|
||||
SYS_brk = Constant('SYS_brk',45)
|
||||
SYS_capget = Constant('SYS_capget',183)
|
||||
@@ -835,29 +1131,44 @@ SYS_chdir = Constant('SYS_chdir',12)
|
||||
SYS_chmod = Constant('SYS_chmod',15)
|
||||
SYS_chown = Constant('SYS_chown',181)
|
||||
SYS_chroot = Constant('SYS_chroot',61)
|
||||
SYS_clock_adjtime = Constant('SYS_clock_adjtime',347)
|
||||
SYS_clock_adjtime64 = Constant('SYS_clock_adjtime64',405)
|
||||
SYS_clock_getres = Constant('SYS_clock_getres',247)
|
||||
SYS_clock_getres_time64 = Constant('SYS_clock_getres_time64',406)
|
||||
SYS_clock_gettime = Constant('SYS_clock_gettime',246)
|
||||
SYS_clock_gettime64 = Constant('SYS_clock_gettime64',403)
|
||||
SYS_clock_nanosleep = Constant('SYS_clock_nanosleep',248)
|
||||
SYS_clock_nanosleep_time64 = Constant('SYS_clock_nanosleep_time64',407)
|
||||
SYS_clock_settime = Constant('SYS_clock_settime',245)
|
||||
SYS_clock_settime64 = Constant('SYS_clock_settime64',404)
|
||||
SYS_clone = Constant('SYS_clone',120)
|
||||
SYS_clone3 = Constant('SYS_clone3',435)
|
||||
SYS_close = Constant('SYS_close',6)
|
||||
SYS_connect = Constant('SYS_connect',328)
|
||||
SYS_copy_file_range = Constant('SYS_copy_file_range',379)
|
||||
SYS_creat = Constant('SYS_creat',8)
|
||||
SYS_create_module = Constant('SYS_create_module',127)
|
||||
SYS_delete_module = Constant('SYS_delete_module',129)
|
||||
SYS_dup = Constant('SYS_dup',41)
|
||||
SYS_dup2 = Constant('SYS_dup2',63)
|
||||
SYS_dup3 = Constant('SYS_dup3',316)
|
||||
SYS_epoll_create = Constant('SYS_epoll_create',236)
|
||||
SYS_epoll_create1 = Constant('SYS_epoll_create1',315)
|
||||
SYS_epoll_ctl = Constant('SYS_epoll_ctl',237)
|
||||
SYS_epoll_pwait = Constant('SYS_epoll_pwait',303)
|
||||
SYS_epoll_wait = Constant('SYS_epoll_wait',238)
|
||||
SYS_eventfd = Constant('SYS_eventfd',307)
|
||||
SYS_eventfd2 = Constant('SYS_eventfd2',314)
|
||||
SYS_execve = Constant('SYS_execve',11)
|
||||
SYS_execveat = Constant('SYS_execveat',362)
|
||||
SYS_exit = Constant('SYS_exit',1)
|
||||
SYS_exit_group = Constant('SYS_exit_group',234)
|
||||
SYS_faccessat = Constant('SYS_faccessat',298)
|
||||
SYS_fadvise64 = Constant('SYS_fadvise64',233)
|
||||
SYS_fadvise64_64 = Constant('SYS_fadvise64_64',254)
|
||||
SYS_fallocate = Constant('SYS_fallocate',309)
|
||||
SYS_fanotify_init = Constant('SYS_fanotify_init',323)
|
||||
SYS_fanotify_mark = Constant('SYS_fanotify_mark',324)
|
||||
SYS_fchdir = Constant('SYS_fchdir',133)
|
||||
SYS_fchmod = Constant('SYS_fchmod',94)
|
||||
SYS_fchmodat = Constant('SYS_fchmodat',297)
|
||||
@@ -867,11 +1178,16 @@ SYS_fcntl = Constant('SYS_fcntl',55)
|
||||
SYS_fcntl64 = Constant('SYS_fcntl64',204)
|
||||
SYS_fdatasync = Constant('SYS_fdatasync',148)
|
||||
SYS_fgetxattr = Constant('SYS_fgetxattr',214)
|
||||
SYS_finit_module = Constant('SYS_finit_module',353)
|
||||
SYS_flistxattr = Constant('SYS_flistxattr',217)
|
||||
SYS_flock = Constant('SYS_flock',143)
|
||||
SYS_fork = Constant('SYS_fork',2)
|
||||
SYS_fremovexattr = Constant('SYS_fremovexattr',220)
|
||||
SYS_fsconfig = Constant('SYS_fsconfig',431)
|
||||
SYS_fsetxattr = Constant('SYS_fsetxattr',211)
|
||||
SYS_fsmount = Constant('SYS_fsmount',432)
|
||||
SYS_fsopen = Constant('SYS_fsopen',430)
|
||||
SYS_fspick = Constant('SYS_fspick',433)
|
||||
SYS_fstat = Constant('SYS_fstat',108)
|
||||
SYS_fstat64 = Constant('SYS_fstat64',197)
|
||||
SYS_fstatat64 = Constant('SYS_fstatat64',291)
|
||||
@@ -882,6 +1198,7 @@ SYS_ftime = Constant('SYS_ftime',35)
|
||||
SYS_ftruncate = Constant('SYS_ftruncate',93)
|
||||
SYS_ftruncate64 = Constant('SYS_ftruncate64',194)
|
||||
SYS_futex = Constant('SYS_futex',221)
|
||||
SYS_futex_time64 = Constant('SYS_futex_time64',422)
|
||||
SYS_futimesat = Constant('SYS_futimesat',290)
|
||||
SYS_getcpu = Constant('SYS_getcpu',302)
|
||||
SYS_getcwd = Constant('SYS_getcwd',182)
|
||||
@@ -893,18 +1210,22 @@ SYS_getgid = Constant('SYS_getgid',47)
|
||||
SYS_getgroups = Constant('SYS_getgroups',80)
|
||||
SYS_getitimer = Constant('SYS_getitimer',105)
|
||||
SYS_get_kernel_syms = Constant('SYS_get_kernel_syms',130)
|
||||
SYS_getpeername = Constant('SYS_getpeername',332)
|
||||
SYS_getpgid = Constant('SYS_getpgid',132)
|
||||
SYS_getpgrp = Constant('SYS_getpgrp',65)
|
||||
SYS_getpid = Constant('SYS_getpid',20)
|
||||
SYS_getpmsg = Constant('SYS_getpmsg',187)
|
||||
SYS_getppid = Constant('SYS_getppid',64)
|
||||
SYS_getpriority = Constant('SYS_getpriority',96)
|
||||
SYS_getrandom = Constant('SYS_getrandom',359)
|
||||
SYS_getresgid = Constant('SYS_getresgid',170)
|
||||
SYS_getresuid = Constant('SYS_getresuid',165)
|
||||
SYS_getrlimit = Constant('SYS_getrlimit',76)
|
||||
SYS_get_robust_list = Constant('SYS_get_robust_list',299)
|
||||
SYS_getrusage = Constant('SYS_getrusage',77)
|
||||
SYS_getsid = Constant('SYS_getsid',147)
|
||||
SYS_getsockname = Constant('SYS_getsockname',331)
|
||||
SYS_getsockopt = Constant('SYS_getsockopt',340)
|
||||
SYS_gettid = Constant('SYS_gettid',207)
|
||||
SYS_gettimeofday = Constant('SYS_gettimeofday',78)
|
||||
SYS_getuid = Constant('SYS_getuid',24)
|
||||
@@ -914,18 +1235,26 @@ SYS_idle = Constant('SYS_idle',112)
|
||||
SYS_init_module = Constant('SYS_init_module',128)
|
||||
SYS_inotify_add_watch = Constant('SYS_inotify_add_watch',276)
|
||||
SYS_inotify_init = Constant('SYS_inotify_init',275)
|
||||
SYS_inotify_init1 = Constant('SYS_inotify_init1',318)
|
||||
SYS_inotify_rm_watch = Constant('SYS_inotify_rm_watch',277)
|
||||
SYS_io_cancel = Constant('SYS_io_cancel',231)
|
||||
SYS_ioctl = Constant('SYS_ioctl',54)
|
||||
SYS_io_destroy = Constant('SYS_io_destroy',228)
|
||||
SYS_io_getevents = Constant('SYS_io_getevents',229)
|
||||
SYS_ioperm = Constant('SYS_ioperm',101)
|
||||
SYS_io_pgetevents = Constant('SYS_io_pgetevents',388)
|
||||
SYS_io_pgetevents_time64 = Constant('SYS_io_pgetevents_time64',416)
|
||||
SYS_iopl = Constant('SYS_iopl',110)
|
||||
SYS_ioprio_get = Constant('SYS_ioprio_get',274)
|
||||
SYS_ioprio_set = Constant('SYS_ioprio_set',273)
|
||||
SYS_io_setup = Constant('SYS_io_setup',227)
|
||||
SYS_io_submit = Constant('SYS_io_submit',230)
|
||||
SYS_io_uring_enter = Constant('SYS_io_uring_enter',426)
|
||||
SYS_io_uring_register = Constant('SYS_io_uring_register',427)
|
||||
SYS_io_uring_setup = Constant('SYS_io_uring_setup',425)
|
||||
SYS_ipc = Constant('SYS_ipc',117)
|
||||
SYS_kcmp = Constant('SYS_kcmp',354)
|
||||
SYS_kexec_file_load = Constant('SYS_kexec_file_load',382)
|
||||
SYS_kexec_load = Constant('SYS_kexec_load',268)
|
||||
SYS_keyctl = Constant('SYS_keyctl',271)
|
||||
SYS_kill = Constant('SYS_kill',37)
|
||||
@@ -933,6 +1262,7 @@ SYS_lchown = Constant('SYS_lchown',16)
|
||||
SYS_lgetxattr = Constant('SYS_lgetxattr',213)
|
||||
SYS_link = Constant('SYS_link',9)
|
||||
SYS_linkat = Constant('SYS_linkat',294)
|
||||
SYS_listen = Constant('SYS_listen',329)
|
||||
SYS_listxattr = Constant('SYS_listxattr',215)
|
||||
SYS_llistxattr = Constant('SYS_llistxattr',216)
|
||||
SYS__llseek = Constant('SYS__llseek',140)
|
||||
@@ -944,17 +1274,21 @@ SYS_lsetxattr = Constant('SYS_lsetxattr',210)
|
||||
SYS_lstat = Constant('SYS_lstat',107)
|
||||
SYS_lstat64 = Constant('SYS_lstat64',196)
|
||||
SYS_madvise = Constant('SYS_madvise',205)
|
||||
SYS_membarrier = Constant('SYS_membarrier',365)
|
||||
SYS_memfd_create = Constant('SYS_memfd_create',360)
|
||||
SYS_mincore = Constant('SYS_mincore',206)
|
||||
SYS_mkdir = Constant('SYS_mkdir',39)
|
||||
SYS_mkdirat = Constant('SYS_mkdirat',287)
|
||||
SYS_mknod = Constant('SYS_mknod',14)
|
||||
SYS_mknodat = Constant('SYS_mknodat',288)
|
||||
SYS_mlock = Constant('SYS_mlock',150)
|
||||
SYS_mlock2 = Constant('SYS_mlock2',378)
|
||||
SYS_mlockall = Constant('SYS_mlockall',152)
|
||||
SYS_mmap = Constant('SYS_mmap',90)
|
||||
SYS_mmap2 = Constant('SYS_mmap2',192)
|
||||
SYS_modify_ldt = Constant('SYS_modify_ldt',123)
|
||||
SYS_mount = Constant('SYS_mount',21)
|
||||
SYS_move_mount = Constant('SYS_move_mount',429)
|
||||
SYS_move_pages = Constant('SYS_move_pages',301)
|
||||
SYS_mprotect = Constant('SYS_mprotect',125)
|
||||
SYS_mpx = Constant('SYS_mpx',56)
|
||||
@@ -962,14 +1296,21 @@ SYS_mq_getsetattr = Constant('SYS_mq_getsetattr',267)
|
||||
SYS_mq_notify = Constant('SYS_mq_notify',266)
|
||||
SYS_mq_open = Constant('SYS_mq_open',262)
|
||||
SYS_mq_timedreceive = Constant('SYS_mq_timedreceive',265)
|
||||
SYS_mq_timedreceive_time64 = Constant('SYS_mq_timedreceive_time64',419)
|
||||
SYS_mq_timedsend = Constant('SYS_mq_timedsend',264)
|
||||
SYS_mq_timedsend_time64 = Constant('SYS_mq_timedsend_time64',418)
|
||||
SYS_mq_unlink = Constant('SYS_mq_unlink',263)
|
||||
SYS_mremap = Constant('SYS_mremap',163)
|
||||
SYS_msgctl = Constant('SYS_msgctl',402)
|
||||
SYS_msgget = Constant('SYS_msgget',399)
|
||||
SYS_msgrcv = Constant('SYS_msgrcv',401)
|
||||
SYS_msgsnd = Constant('SYS_msgsnd',400)
|
||||
SYS_msync = Constant('SYS_msync',144)
|
||||
SYS_multiplexer = Constant('SYS_multiplexer',201)
|
||||
SYS_munlock = Constant('SYS_munlock',151)
|
||||
SYS_munlockall = Constant('SYS_munlockall',153)
|
||||
SYS_munmap = Constant('SYS_munmap',91)
|
||||
SYS_name_to_handle_at = Constant('SYS_name_to_handle_at',345)
|
||||
SYS_nanosleep = Constant('SYS_nanosleep',162)
|
||||
SYS__newselect = Constant('SYS__newselect',142)
|
||||
SYS_nfsservctl = Constant('SYS_nfsservctl',168)
|
||||
@@ -981,23 +1322,43 @@ SYS_oldstat = Constant('SYS_oldstat',18)
|
||||
SYS_olduname = Constant('SYS_olduname',109)
|
||||
SYS_open = Constant('SYS_open',5)
|
||||
SYS_openat = Constant('SYS_openat',286)
|
||||
SYS_openat2 = Constant('SYS_openat2',437)
|
||||
SYS_open_by_handle_at = Constant('SYS_open_by_handle_at',346)
|
||||
SYS_open_tree = Constant('SYS_open_tree',428)
|
||||
SYS_pause = Constant('SYS_pause',29)
|
||||
SYS_pciconfig_iobase = Constant('SYS_pciconfig_iobase',200)
|
||||
SYS_pciconfig_read = Constant('SYS_pciconfig_read',198)
|
||||
SYS_pciconfig_write = Constant('SYS_pciconfig_write',199)
|
||||
SYS_perf_event_open = Constant('SYS_perf_event_open',319)
|
||||
SYS_personality = Constant('SYS_personality',136)
|
||||
SYS_pidfd_getfd = Constant('SYS_pidfd_getfd',438)
|
||||
SYS_pidfd_open = Constant('SYS_pidfd_open',434)
|
||||
SYS_pidfd_send_signal = Constant('SYS_pidfd_send_signal',424)
|
||||
SYS_pipe = Constant('SYS_pipe',42)
|
||||
SYS_pipe2 = Constant('SYS_pipe2',317)
|
||||
SYS_pivot_root = Constant('SYS_pivot_root',203)
|
||||
SYS_pkey_alloc = Constant('SYS_pkey_alloc',384)
|
||||
SYS_pkey_free = Constant('SYS_pkey_free',385)
|
||||
SYS_pkey_mprotect = Constant('SYS_pkey_mprotect',386)
|
||||
SYS_poll = Constant('SYS_poll',167)
|
||||
SYS_ppoll = Constant('SYS_ppoll',281)
|
||||
SYS_ppoll_time64 = Constant('SYS_ppoll_time64',414)
|
||||
SYS_prctl = Constant('SYS_prctl',171)
|
||||
SYS_pread = Constant('SYS_pread',179)
|
||||
SYS_preadv = Constant('SYS_preadv',320)
|
||||
SYS_preadv2 = Constant('SYS_preadv2',380)
|
||||
SYS_prlimit64 = Constant('SYS_prlimit64',325)
|
||||
SYS_process_vm_readv = Constant('SYS_process_vm_readv',351)
|
||||
SYS_process_vm_writev = Constant('SYS_process_vm_writev',352)
|
||||
SYS_prof = Constant('SYS_prof',44)
|
||||
SYS_profil = Constant('SYS_profil',98)
|
||||
SYS_pselect6 = Constant('SYS_pselect6',280)
|
||||
SYS_pselect6_time64 = Constant('SYS_pselect6_time64',413)
|
||||
SYS_ptrace = Constant('SYS_ptrace',26)
|
||||
SYS_putpmsg = Constant('SYS_putpmsg',188)
|
||||
SYS_pwrite = Constant('SYS_pwrite',180)
|
||||
SYS_pwritev = Constant('SYS_pwritev',321)
|
||||
SYS_pwritev2 = Constant('SYS_pwritev2',381)
|
||||
SYS_query_module = Constant('SYS_query_module',166)
|
||||
SYS_quotactl = Constant('SYS_quotactl',131)
|
||||
SYS_read = Constant('SYS_read',3)
|
||||
@@ -1007,12 +1368,19 @@ SYS_readlink = Constant('SYS_readlink',85)
|
||||
SYS_readlinkat = Constant('SYS_readlinkat',296)
|
||||
SYS_readv = Constant('SYS_readv',145)
|
||||
SYS_reboot = Constant('SYS_reboot',88)
|
||||
SYS_recv = Constant('SYS_recv',336)
|
||||
SYS_recvfrom = Constant('SYS_recvfrom',337)
|
||||
SYS_recvmmsg = Constant('SYS_recvmmsg',343)
|
||||
SYS_recvmmsg_time64 = Constant('SYS_recvmmsg_time64',417)
|
||||
SYS_recvmsg = Constant('SYS_recvmsg',342)
|
||||
SYS_remap_file_pages = Constant('SYS_remap_file_pages',239)
|
||||
SYS_removexattr = Constant('SYS_removexattr',218)
|
||||
SYS_rename = Constant('SYS_rename',38)
|
||||
SYS_renameat = Constant('SYS_renameat',293)
|
||||
SYS_renameat2 = Constant('SYS_renameat2',357)
|
||||
SYS_request_key = Constant('SYS_request_key',270)
|
||||
SYS_rmdir = Constant('SYS_rmdir',40)
|
||||
SYS_rseq = Constant('SYS_rseq',387)
|
||||
SYS_rtas = Constant('SYS_rtas',255)
|
||||
SYS_rt_sigaction = Constant('SYS_rt_sigaction',173)
|
||||
SYS_rt_sigpending = Constant('SYS_rt_sigpending',175)
|
||||
@@ -1021,19 +1389,32 @@ SYS_rt_sigqueueinfo = Constant('SYS_rt_sigqueueinfo',177)
|
||||
SYS_rt_sigreturn = Constant('SYS_rt_sigreturn',172)
|
||||
SYS_rt_sigsuspend = Constant('SYS_rt_sigsuspend',178)
|
||||
SYS_rt_sigtimedwait = Constant('SYS_rt_sigtimedwait',176)
|
||||
SYS_rt_sigtimedwait_time64 = Constant('SYS_rt_sigtimedwait_time64',421)
|
||||
SYS_rt_tgsigqueueinfo = Constant('SYS_rt_tgsigqueueinfo',322)
|
||||
SYS_sched_getaffinity = Constant('SYS_sched_getaffinity',223)
|
||||
SYS_sched_getattr = Constant('SYS_sched_getattr',356)
|
||||
SYS_sched_getparam = Constant('SYS_sched_getparam',155)
|
||||
SYS_sched_get_priority_max = Constant('SYS_sched_get_priority_max',159)
|
||||
SYS_sched_get_priority_min = Constant('SYS_sched_get_priority_min',160)
|
||||
SYS_sched_getscheduler = Constant('SYS_sched_getscheduler',157)
|
||||
SYS_sched_rr_get_interval = Constant('SYS_sched_rr_get_interval',161)
|
||||
SYS_sched_rr_get_interval_time64 = Constant('SYS_sched_rr_get_interval_time64',423)
|
||||
SYS_sched_setaffinity = Constant('SYS_sched_setaffinity',222)
|
||||
SYS_sched_setattr = Constant('SYS_sched_setattr',355)
|
||||
SYS_sched_setparam = Constant('SYS_sched_setparam',154)
|
||||
SYS_sched_setscheduler = Constant('SYS_sched_setscheduler',156)
|
||||
SYS_sched_yield = Constant('SYS_sched_yield',158)
|
||||
SYS_seccomp = Constant('SYS_seccomp',358)
|
||||
SYS_select = Constant('SYS_select',82)
|
||||
SYS_semctl = Constant('SYS_semctl',394)
|
||||
SYS_semget = Constant('SYS_semget',393)
|
||||
SYS_semtimedop_time64 = Constant('SYS_semtimedop_time64',420)
|
||||
SYS_send = Constant('SYS_send',334)
|
||||
SYS_sendfile = Constant('SYS_sendfile',186)
|
||||
SYS_sendfile64 = Constant('SYS_sendfile64',226)
|
||||
SYS_sendmmsg = Constant('SYS_sendmmsg',349)
|
||||
SYS_sendmsg = Constant('SYS_sendmsg',341)
|
||||
SYS_sendto = Constant('SYS_sendto',335)
|
||||
SYS_setdomainname = Constant('SYS_setdomainname',121)
|
||||
SYS_setfsgid = Constant('SYS_setfsgid',139)
|
||||
SYS_setfsuid = Constant('SYS_setfsuid',138)
|
||||
@@ -1041,6 +1422,7 @@ SYS_setgid = Constant('SYS_setgid',46)
|
||||
SYS_setgroups = Constant('SYS_setgroups',81)
|
||||
SYS_sethostname = Constant('SYS_sethostname',74)
|
||||
SYS_setitimer = Constant('SYS_setitimer',104)
|
||||
SYS_setns = Constant('SYS_setns',350)
|
||||
SYS_setpgid = Constant('SYS_setpgid',57)
|
||||
SYS_setpriority = Constant('SYS_setpriority',97)
|
||||
SYS_setregid = Constant('SYS_setregid',71)
|
||||
@@ -1050,20 +1432,29 @@ SYS_setreuid = Constant('SYS_setreuid',70)
|
||||
SYS_setrlimit = Constant('SYS_setrlimit',75)
|
||||
SYS_set_robust_list = Constant('SYS_set_robust_list',300)
|
||||
SYS_setsid = Constant('SYS_setsid',66)
|
||||
SYS_setsockopt = Constant('SYS_setsockopt',339)
|
||||
SYS_set_tid_address = Constant('SYS_set_tid_address',232)
|
||||
SYS_settimeofday = Constant('SYS_settimeofday',79)
|
||||
SYS_setuid = Constant('SYS_setuid',23)
|
||||
SYS_setxattr = Constant('SYS_setxattr',209)
|
||||
SYS_sgetmask = Constant('SYS_sgetmask',68)
|
||||
SYS_shmat = Constant('SYS_shmat',397)
|
||||
SYS_shmctl = Constant('SYS_shmctl',396)
|
||||
SYS_shmdt = Constant('SYS_shmdt',398)
|
||||
SYS_shmget = Constant('SYS_shmget',395)
|
||||
SYS_shutdown = Constant('SYS_shutdown',338)
|
||||
SYS_sigaction = Constant('SYS_sigaction',67)
|
||||
SYS_sigaltstack = Constant('SYS_sigaltstack',185)
|
||||
SYS_signal = Constant('SYS_signal',48)
|
||||
SYS_signalfd = Constant('SYS_signalfd',305)
|
||||
SYS_signalfd4 = Constant('SYS_signalfd4',313)
|
||||
SYS_sigpending = Constant('SYS_sigpending',73)
|
||||
SYS_sigprocmask = Constant('SYS_sigprocmask',126)
|
||||
SYS_sigreturn = Constant('SYS_sigreturn',119)
|
||||
SYS_sigsuspend = Constant('SYS_sigsuspend',72)
|
||||
SYS_socket = Constant('SYS_socket',326)
|
||||
SYS_socketcall = Constant('SYS_socketcall',102)
|
||||
SYS_socketpair = Constant('SYS_socketpair',333)
|
||||
SYS_splice = Constant('SYS_splice',283)
|
||||
SYS_spu_create = Constant('SYS_spu_create',279)
|
||||
SYS_spu_run = Constant('SYS_spu_run',278)
|
||||
@@ -1072,16 +1463,19 @@ SYS_stat = Constant('SYS_stat',106)
|
||||
SYS_stat64 = Constant('SYS_stat64',195)
|
||||
SYS_statfs = Constant('SYS_statfs',99)
|
||||
SYS_statfs64 = Constant('SYS_statfs64',252)
|
||||
SYS_statx = Constant('SYS_statx',383)
|
||||
SYS_stime = Constant('SYS_stime',25)
|
||||
SYS_stty = Constant('SYS_stty',31)
|
||||
SYS_subpage_prot = Constant('SYS_subpage_prot',310)
|
||||
SYS_swapcontext = Constant('SYS_swapcontext',249)
|
||||
SYS_swapoff = Constant('SYS_swapoff',115)
|
||||
SYS_swapon = Constant('SYS_swapon',87)
|
||||
SYS_switch_endian = Constant('SYS_switch_endian',363)
|
||||
SYS_symlink = Constant('SYS_symlink',83)
|
||||
SYS_symlinkat = Constant('SYS_symlinkat',295)
|
||||
SYS_sync = Constant('SYS_sync',36)
|
||||
SYS_sync_file_range2 = Constant('SYS_sync_file_range2',308)
|
||||
SYS_syncfs = Constant('SYS_syncfs',348)
|
||||
SYS__sysctl = Constant('SYS__sysctl',149)
|
||||
SYS_sys_debug_setcontext = Constant('SYS_sys_debug_setcontext',256)
|
||||
SYS_sysfs = Constant('SYS_sysfs',135)
|
||||
@@ -1094,10 +1488,14 @@ SYS_timer_create = Constant('SYS_timer_create',240)
|
||||
SYS_timer_delete = Constant('SYS_timer_delete',244)
|
||||
SYS_timerfd = Constant('SYS_timerfd',306)
|
||||
SYS_timerfd_gettime = Constant('SYS_timerfd_gettime',312)
|
||||
SYS_timerfd_gettime64 = Constant('SYS_timerfd_gettime64',410)
|
||||
SYS_timerfd_settime = Constant('SYS_timerfd_settime',311)
|
||||
SYS_timerfd_settime64 = Constant('SYS_timerfd_settime64',411)
|
||||
SYS_timer_getoverrun = Constant('SYS_timer_getoverrun',243)
|
||||
SYS_timer_gettime = Constant('SYS_timer_gettime',242)
|
||||
SYS_timer_gettime64 = Constant('SYS_timer_gettime64',408)
|
||||
SYS_timer_settime = Constant('SYS_timer_settime',241)
|
||||
SYS_timer_settime64 = Constant('SYS_timer_settime64',409)
|
||||
SYS_times = Constant('SYS_times',43)
|
||||
SYS_tkill = Constant('SYS_tkill',208)
|
||||
SYS_truncate = Constant('SYS_truncate',92)
|
||||
@@ -1113,9 +1511,11 @@ SYS_unlink = Constant('SYS_unlink',10)
|
||||
SYS_unlinkat = Constant('SYS_unlinkat',292)
|
||||
SYS_unshare = Constant('SYS_unshare',282)
|
||||
SYS_uselib = Constant('SYS_uselib',86)
|
||||
SYS_userfaultfd = Constant('SYS_userfaultfd',364)
|
||||
SYS_ustat = Constant('SYS_ustat',62)
|
||||
SYS_utime = Constant('SYS_utime',30)
|
||||
SYS_utimensat = Constant('SYS_utimensat',304)
|
||||
SYS_utimensat_time64 = Constant('SYS_utimensat_time64',412)
|
||||
SYS_utimes = Constant('SYS_utimes',251)
|
||||
SYS_vfork = Constant('SYS_vfork',189)
|
||||
SYS_vhangup = Constant('SYS_vhangup',111)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from pwnlib.constants.constant import Constant
|
||||
|
||||
__NR_exit = Constant('__NR_exit',1)
|
||||
__NR_fork = Constant('__NR_fork',2)
|
||||
__NR_read = Constant('__NR_read',3)
|
||||
@@ -299,6 +298,95 @@ __NR_fallocate = Constant('__NR_fallocate',309)
|
||||
__NR_subpage_prot = Constant('__NR_subpage_prot',310)
|
||||
__NR_timerfd_settime = Constant('__NR_timerfd_settime',311)
|
||||
__NR_timerfd_gettime = Constant('__NR_timerfd_gettime',312)
|
||||
__NR_signalfd4 = Constant('__NR_signalfd4',313)
|
||||
__NR_eventfd2 = Constant('__NR_eventfd2',314)
|
||||
__NR_epoll_create1 = Constant('__NR_epoll_create1',315)
|
||||
__NR_dup3 = Constant('__NR_dup3',316)
|
||||
__NR_pipe2 = Constant('__NR_pipe2',317)
|
||||
__NR_inotify_init1 = Constant('__NR_inotify_init1',318)
|
||||
__NR_perf_event_open = Constant('__NR_perf_event_open',319)
|
||||
__NR_preadv = Constant('__NR_preadv',320)
|
||||
__NR_pwritev = Constant('__NR_pwritev',321)
|
||||
__NR_rt_tgsigqueueinfo = Constant('__NR_rt_tgsigqueueinfo',322)
|
||||
__NR_fanotify_init = Constant('__NR_fanotify_init',323)
|
||||
__NR_fanotify_mark = Constant('__NR_fanotify_mark',324)
|
||||
__NR_prlimit64 = Constant('__NR_prlimit64',325)
|
||||
__NR_socket = Constant('__NR_socket',326)
|
||||
__NR_bind = Constant('__NR_bind',327)
|
||||
__NR_connect = Constant('__NR_connect',328)
|
||||
__NR_listen = Constant('__NR_listen',329)
|
||||
__NR_accept = Constant('__NR_accept',330)
|
||||
__NR_getsockname = Constant('__NR_getsockname',331)
|
||||
__NR_getpeername = Constant('__NR_getpeername',332)
|
||||
__NR_socketpair = Constant('__NR_socketpair',333)
|
||||
__NR_send = Constant('__NR_send',334)
|
||||
__NR_sendto = Constant('__NR_sendto',335)
|
||||
__NR_recv = Constant('__NR_recv',336)
|
||||
__NR_recvfrom = Constant('__NR_recvfrom',337)
|
||||
__NR_shutdown = Constant('__NR_shutdown',338)
|
||||
__NR_setsockopt = Constant('__NR_setsockopt',339)
|
||||
__NR_getsockopt = Constant('__NR_getsockopt',340)
|
||||
__NR_sendmsg = Constant('__NR_sendmsg',341)
|
||||
__NR_recvmsg = Constant('__NR_recvmsg',342)
|
||||
__NR_recvmmsg = Constant('__NR_recvmmsg',343)
|
||||
__NR_accept4 = Constant('__NR_accept4',344)
|
||||
__NR_name_to_handle_at = Constant('__NR_name_to_handle_at',345)
|
||||
__NR_open_by_handle_at = Constant('__NR_open_by_handle_at',346)
|
||||
__NR_clock_adjtime = Constant('__NR_clock_adjtime',347)
|
||||
__NR_syncfs = Constant('__NR_syncfs',348)
|
||||
__NR_sendmmsg = Constant('__NR_sendmmsg',349)
|
||||
__NR_setns = Constant('__NR_setns',350)
|
||||
__NR_process_vm_readv = Constant('__NR_process_vm_readv',351)
|
||||
__NR_process_vm_writev = Constant('__NR_process_vm_writev',352)
|
||||
__NR_finit_module = Constant('__NR_finit_module',353)
|
||||
__NR_kcmp = Constant('__NR_kcmp',354)
|
||||
__NR_sched_setattr = Constant('__NR_sched_setattr',355)
|
||||
__NR_sched_getattr = Constant('__NR_sched_getattr',356)
|
||||
__NR_renameat2 = Constant('__NR_renameat2',357)
|
||||
__NR_seccomp = Constant('__NR_seccomp',358)
|
||||
__NR_getrandom = Constant('__NR_getrandom',359)
|
||||
__NR_memfd_create = Constant('__NR_memfd_create',360)
|
||||
__NR_bpf = Constant('__NR_bpf',361)
|
||||
__NR_execveat = Constant('__NR_execveat',362)
|
||||
__NR_switch_endian = Constant('__NR_switch_endian',363)
|
||||
__NR_userfaultfd = Constant('__NR_userfaultfd',364)
|
||||
__NR_membarrier = Constant('__NR_membarrier',365)
|
||||
__NR_mlock2 = Constant('__NR_mlock2',378)
|
||||
__NR_copy_file_range = Constant('__NR_copy_file_range',379)
|
||||
__NR_preadv2 = Constant('__NR_preadv2',380)
|
||||
__NR_pwritev2 = Constant('__NR_pwritev2',381)
|
||||
__NR_kexec_file_load = Constant('__NR_kexec_file_load',382)
|
||||
__NR_statx = Constant('__NR_statx',383)
|
||||
__NR_pkey_alloc = Constant('__NR_pkey_alloc',384)
|
||||
__NR_pkey_free = Constant('__NR_pkey_free',385)
|
||||
__NR_pkey_mprotect = Constant('__NR_pkey_mprotect',386)
|
||||
__NR_rseq = Constant('__NR_rseq',387)
|
||||
__NR_io_pgetevents = Constant('__NR_io_pgetevents',388)
|
||||
__NR_semtimedop = Constant('__NR_semtimedop',392)
|
||||
__NR_semget = Constant('__NR_semget',393)
|
||||
__NR_semctl = Constant('__NR_semctl',394)
|
||||
__NR_shmget = Constant('__NR_shmget',395)
|
||||
__NR_shmctl = Constant('__NR_shmctl',396)
|
||||
__NR_shmat = Constant('__NR_shmat',397)
|
||||
__NR_shmdt = Constant('__NR_shmdt',398)
|
||||
__NR_msgget = Constant('__NR_msgget',399)
|
||||
__NR_msgsnd = Constant('__NR_msgsnd',400)
|
||||
__NR_msgrcv = Constant('__NR_msgrcv',401)
|
||||
__NR_msgctl = Constant('__NR_msgctl',402)
|
||||
__NR_pidfd_send_signal = Constant('__NR_pidfd_send_signal',424)
|
||||
__NR_io_uring_setup = Constant('__NR_io_uring_setup',425)
|
||||
__NR_io_uring_enter = Constant('__NR_io_uring_enter',426)
|
||||
__NR_io_uring_register = Constant('__NR_io_uring_register',427)
|
||||
__NR_open_tree = Constant('__NR_open_tree',428)
|
||||
__NR_move_mount = Constant('__NR_move_mount',429)
|
||||
__NR_fsopen = Constant('__NR_fsopen',430)
|
||||
__NR_fsconfig = Constant('__NR_fsconfig',431)
|
||||
__NR_fsmount = Constant('__NR_fsmount',432)
|
||||
__NR_fspick = Constant('__NR_fspick',433)
|
||||
__NR_pidfd_open = Constant('__NR_pidfd_open',434)
|
||||
__NR_clone3 = Constant('__NR_clone3',435)
|
||||
__NR_openat2 = Constant('__NR_openat2',437)
|
||||
__NR_pidfd_getfd = Constant('__NR_pidfd_getfd',438)
|
||||
MAP_32BIT = Constant('MAP_32BIT',0x40)
|
||||
INADDR_ANY = Constant('INADDR_ANY',0)
|
||||
INADDR_BROADCAST = Constant('INADDR_BROADCAST',0xffffffff)
|
||||
@@ -434,7 +522,11 @@ ENOKEY = Constant('ENOKEY',126)
|
||||
EKEYEXPIRED = Constant('EKEYEXPIRED',127)
|
||||
EKEYREVOKED = Constant('EKEYREVOKED',128)
|
||||
EKEYREJECTED = Constant('EKEYREJECTED',129)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((129) + 1))
|
||||
EOWNERDEAD = Constant('EOWNERDEAD',130)
|
||||
ENOTRECOVERABLE = Constant('ENOTRECOVERABLE',131)
|
||||
ERFKILL = Constant('ERFKILL',132)
|
||||
EHWPOISON = Constant('EHWPOISON',133)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((133) + 1))
|
||||
__LITTLE_ENDIAN = Constant('__LITTLE_ENDIAN',1234)
|
||||
__BIG_ENDIAN = Constant('__BIG_ENDIAN',4321)
|
||||
__BYTE_ORDER = Constant('__BYTE_ORDER',4321)
|
||||
@@ -443,9 +535,55 @@ LITTLE_ENDIAN = Constant('LITTLE_ENDIAN',1234)
|
||||
BIG_ENDIAN = Constant('BIG_ENDIAN',4321)
|
||||
BYTE_ORDER = Constant('BYTE_ORDER',4321)
|
||||
__WORDSIZE = Constant('__WORDSIZE',32)
|
||||
INT8_MAX = Constant('INT8_MAX',(127))
|
||||
INT16_MAX = Constant('INT16_MAX',(32767))
|
||||
INT32_MAX = Constant('INT32_MAX',(2147483647))
|
||||
INT64_MAX = Constant('INT64_MAX',(9223372036854775807))
|
||||
INT8_MIN = Constant('INT8_MIN',(-1 - (127)))
|
||||
INT16_MIN = Constant('INT16_MIN',(-1 - (32767)))
|
||||
INT32_MIN = Constant('INT32_MIN',(-1 - (2147483647)))
|
||||
INT64_MIN = Constant('INT64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_LEAST8_MAX = Constant('INT_LEAST8_MAX',(127))
|
||||
INT_LEAST8_MIN = Constant('INT_LEAST8_MIN',(-1 - (127)))
|
||||
INT_LEAST16_MAX = Constant('INT_LEAST16_MAX',(32767))
|
||||
INT_LEAST16_MIN = Constant('INT_LEAST16_MIN',(-1 - (32767)))
|
||||
INT_LEAST32_MAX = Constant('INT_LEAST32_MAX',(2147483647))
|
||||
INT_LEAST32_MIN = Constant('INT_LEAST32_MIN',(-1 - (2147483647)))
|
||||
INT_LEAST64_MAX = Constant('INT_LEAST64_MAX',(9223372036854775807))
|
||||
INT_LEAST64_MIN = Constant('INT_LEAST64_MIN',(-1 - (9223372036854775807)))
|
||||
UINT8_MAX = Constant('UINT8_MAX',0xff)
|
||||
UINT16_MAX = Constant('UINT16_MAX',0xffff)
|
||||
UINT32_MAX = Constant('UINT32_MAX',0xffffffff)
|
||||
UINT64_MAX = Constant('UINT64_MAX',0xffffffffffffffff)
|
||||
UINT_LEAST8_MAX = Constant('UINT_LEAST8_MAX',0xff)
|
||||
UINT_LEAST16_MAX = Constant('UINT_LEAST16_MAX',0xffff)
|
||||
UINT_LEAST32_MAX = Constant('UINT_LEAST32_MAX',0xffffffff)
|
||||
UINT_LEAST64_MAX = Constant('UINT_LEAST64_MAX',0xffffffffffffffff)
|
||||
INTPTR_MIN = Constant('INTPTR_MIN',(-1 - (2147483647)))
|
||||
INTPTR_MAX = Constant('INTPTR_MAX',(2147483647))
|
||||
UINTPTR_MAX = Constant('UINTPTR_MAX',0xffffffff)
|
||||
SIZE_MAX = Constant('SIZE_MAX',0xffffffff)
|
||||
PTRDIFF_MIN = Constant('PTRDIFF_MIN',(-1 - (2147483647)))
|
||||
PTRDIFF_MAX = Constant('PTRDIFF_MAX',(2147483647))
|
||||
INTMAX_MIN = Constant('INTMAX_MIN',(-1 - (9223372036854775807)))
|
||||
INTMAX_MAX = Constant('INTMAX_MAX',(9223372036854775807))
|
||||
UINTMAX_MAX = Constant('UINTMAX_MAX',0xffffffffffffffff)
|
||||
INT_FAST8_MIN = Constant('INT_FAST8_MIN',(-1 - (127)))
|
||||
INT_FAST8_MAX = Constant('INT_FAST8_MAX',(127))
|
||||
INT_FAST64_MIN = Constant('INT_FAST64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST64_MAX = Constant('INT_FAST64_MAX',(9223372036854775807))
|
||||
UINT_FAST8_MAX = Constant('UINT_FAST8_MAX',0xff)
|
||||
UINT_FAST64_MAX = Constant('UINT_FAST64_MAX',0xffffffffffffffff)
|
||||
INT_FAST16_MIN = Constant('INT_FAST16_MIN',(-1 - (2147483647)))
|
||||
INT_FAST16_MAX = Constant('INT_FAST16_MAX',(2147483647))
|
||||
UINT_FAST16_MAX = Constant('UINT_FAST16_MAX',0xffffffff)
|
||||
INT_FAST32_MIN = Constant('INT_FAST32_MIN',(-1 - (2147483647)))
|
||||
INT_FAST32_MAX = Constant('INT_FAST32_MAX',(2147483647))
|
||||
UINT_FAST32_MAX = Constant('UINT_FAST32_MAX',0xffffffff)
|
||||
WINT_MIN = Constant('WINT_MIN',0)
|
||||
__FSUID_H = Constant('__FSUID_H',1)
|
||||
NSIG = Constant('NSIG',32)
|
||||
_NSIG = Constant('_NSIG',64)
|
||||
_NSIG = Constant('_NSIG',65)
|
||||
SIGHUP = Constant('SIGHUP',1)
|
||||
SIGINT = Constant('SIGINT',2)
|
||||
SIGQUIT = Constant('SIGQUIT',3)
|
||||
@@ -461,7 +599,7 @@ SIGALRM = Constant('SIGALRM',14)
|
||||
SIGTERM = Constant('SIGTERM',15)
|
||||
SIGUNUSED = Constant('SIGUNUSED',31)
|
||||
SIGRTMIN = Constant('SIGRTMIN',32)
|
||||
SIGRTMAX = Constant('SIGRTMAX',(64-1))
|
||||
SIGRTMAX = Constant('SIGRTMAX',(65-1))
|
||||
SA_NOCLDSTOP = Constant('SA_NOCLDSTOP',0x00000001)
|
||||
SA_NOCLDWAIT = Constant('SA_NOCLDWAIT',0x00000002)
|
||||
SA_SIGINFO = Constant('SA_SIGINFO',0x00000004)
|
||||
@@ -510,6 +648,8 @@ _SC_PAGESIZE = Constant('_SC_PAGESIZE',5)
|
||||
_SC_NPROCESSORS_ONLN = Constant('_SC_NPROCESSORS_ONLN',6)
|
||||
_SC_NPROCESSORS_CONF = Constant('_SC_NPROCESSORS_CONF',6)
|
||||
_SC_PHYS_PAGES = Constant('_SC_PHYS_PAGES',7)
|
||||
_SC_GETPW_R_SIZE_MAX = Constant('_SC_GETPW_R_SIZE_MAX',8)
|
||||
_SC_GETGR_R_SIZE_MAX = Constant('_SC_GETGR_R_SIZE_MAX',9)
|
||||
_PC_PATH_MAX = Constant('_PC_PATH_MAX',1)
|
||||
_PC_VDISABLE = Constant('_PC_VDISABLE',2)
|
||||
L_cuserid = Constant('L_cuserid',17)
|
||||
@@ -518,6 +658,7 @@ F_ULOCK = Constant('F_ULOCK',0)
|
||||
F_LOCK = Constant('F_LOCK',1)
|
||||
F_TLOCK = Constant('F_TLOCK',2)
|
||||
F_TEST = Constant('F_TEST',3)
|
||||
_POSIX_MAPPED_FILES = Constant('_POSIX_MAPPED_FILES',200809)
|
||||
S_IFMT = Constant('S_IFMT',0o0170000)
|
||||
S_IFSOCK = Constant('S_IFSOCK',0o140000)
|
||||
S_IFLNK = Constant('S_IFLNK',0o120000)
|
||||
@@ -544,16 +685,7 @@ S_IXOTH = Constant('S_IXOTH',0o0001)
|
||||
S_IREAD = Constant('S_IREAD',0o0400)
|
||||
S_IWRITE = Constant('S_IWRITE',0o0200)
|
||||
S_IEXEC = Constant('S_IEXEC',0o0100)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
_SYS_UIO = Constant('_SYS_UIO',1)
|
||||
SOL_SOCKET = Constant('SOL_SOCKET',1)
|
||||
SO_DEBUG = Constant('SO_DEBUG',1)
|
||||
SO_REUSEADDR = Constant('SO_REUSEADDR',2)
|
||||
@@ -569,29 +701,64 @@ SO_NO_CHECK = Constant('SO_NO_CHECK',11)
|
||||
SO_PRIORITY = Constant('SO_PRIORITY',12)
|
||||
SO_LINGER = Constant('SO_LINGER',13)
|
||||
SO_BSDCOMPAT = Constant('SO_BSDCOMPAT',14)
|
||||
SO_REUSEPORT = Constant('SO_REUSEPORT',15)
|
||||
SO_PASSCRED = Constant('SO_PASSCRED',16)
|
||||
SO_PEERCRED = Constant('SO_PEERCRED',17)
|
||||
SO_RCVLOWAT = Constant('SO_RCVLOWAT',18)
|
||||
SO_SNDLOWAT = Constant('SO_SNDLOWAT',19)
|
||||
SO_RCVTIMEO = Constant('SO_RCVTIMEO',20)
|
||||
SO_SNDTIMEO = Constant('SO_SNDTIMEO',21)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_SECURITY_AUTHENTICATION = Constant('SO_SECURITY_AUTHENTICATION',22)
|
||||
SO_SECURITY_ENCRYPTION_TRANSPORT = Constant('SO_SECURITY_ENCRYPTION_TRANSPORT',23)
|
||||
SO_SECURITY_ENCRYPTION_NETWORK = Constant('SO_SECURITY_ENCRYPTION_NETWORK',24)
|
||||
SO_BINDTODEVICE = Constant('SO_BINDTODEVICE',25)
|
||||
SO_ATTACH_FILTER = Constant('SO_ATTACH_FILTER',26)
|
||||
SO_DETACH_FILTER = Constant('SO_DETACH_FILTER',27)
|
||||
SO_GET_FILTER = Constant('SO_GET_FILTER',26)
|
||||
SO_PEERNAME = Constant('SO_PEERNAME',28)
|
||||
SO_TIMESTAMP = Constant('SO_TIMESTAMP',29)
|
||||
SCM_TIMESTAMP = Constant('SCM_TIMESTAMP',29)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_PEERSEC = Constant('SO_PEERSEC',31)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_PASSSEC = Constant('SO_PASSSEC',34)
|
||||
SO_TIMESTAMPNS = Constant('SO_TIMESTAMPNS',35)
|
||||
SCM_TIMESTAMPNS = Constant('SCM_TIMESTAMPNS',35)
|
||||
SO_MARK = Constant('SO_MARK',36)
|
||||
SO_TIMESTAMPING = Constant('SO_TIMESTAMPING',37)
|
||||
SCM_TIMESTAMPING = Constant('SCM_TIMESTAMPING',37)
|
||||
SO_PROTOCOL = Constant('SO_PROTOCOL',38)
|
||||
SO_DOMAIN = Constant('SO_DOMAIN',39)
|
||||
SO_RXQ_OVFL = Constant('SO_RXQ_OVFL',40)
|
||||
SO_WIFI_STATUS = Constant('SO_WIFI_STATUS',41)
|
||||
SCM_WIFI_STATUS = Constant('SCM_WIFI_STATUS',41)
|
||||
SO_PEEK_OFF = Constant('SO_PEEK_OFF',42)
|
||||
SO_NOFCS = Constant('SO_NOFCS',43)
|
||||
SO_LOCK_FILTER = Constant('SO_LOCK_FILTER',44)
|
||||
SO_SELECT_ERR_QUEUE = Constant('SO_SELECT_ERR_QUEUE',45)
|
||||
SO_BUSY_POLL = Constant('SO_BUSY_POLL',46)
|
||||
SO_MAX_PACING_RATE = Constant('SO_MAX_PACING_RATE',47)
|
||||
SO_BPF_EXTENSIONS = Constant('SO_BPF_EXTENSIONS',48)
|
||||
SO_INCOMING_CPU = Constant('SO_INCOMING_CPU',49)
|
||||
SO_ATTACH_BPF = Constant('SO_ATTACH_BPF',50)
|
||||
SO_DETACH_BPF = Constant('SO_DETACH_BPF',27)
|
||||
SO_ATTACH_REUSEPORT_CBPF = Constant('SO_ATTACH_REUSEPORT_CBPF',51)
|
||||
SO_ATTACH_REUSEPORT_EBPF = Constant('SO_ATTACH_REUSEPORT_EBPF',52)
|
||||
SO_CNX_ADVICE = Constant('SO_CNX_ADVICE',53)
|
||||
SCM_TIMESTAMPING_OPT_STATS = Constant('SCM_TIMESTAMPING_OPT_STATS',54)
|
||||
SO_MEMINFO = Constant('SO_MEMINFO',55)
|
||||
SO_INCOMING_NAPI_ID = Constant('SO_INCOMING_NAPI_ID',56)
|
||||
SO_COOKIE = Constant('SO_COOKIE',57)
|
||||
SCM_TIMESTAMPING_PKTINFO = Constant('SCM_TIMESTAMPING_PKTINFO',58)
|
||||
SO_PEERGROUPS = Constant('SO_PEERGROUPS',59)
|
||||
SO_ZEROCOPY = Constant('SO_ZEROCOPY',60)
|
||||
SOCK_STREAM = Constant('SOCK_STREAM',1)
|
||||
SOCK_DGRAM = Constant('SOCK_DGRAM',2)
|
||||
SOCK_RAW = Constant('SOCK_RAW',3)
|
||||
SOCK_RDM = Constant('SOCK_RDM',4)
|
||||
SOCK_SEQPACKET = Constant('SOCK_SEQPACKET',5)
|
||||
SOCK_DCCP = Constant('SOCK_DCCP',6)
|
||||
SOCK_PACKET = Constant('SOCK_PACKET',10)
|
||||
UIO_FASTIOV = Constant('UIO_FASTIOV',8)
|
||||
UIO_MAXIOV = Constant('UIO_MAXIOV',1024)
|
||||
@@ -625,7 +792,25 @@ AF_SNA = Constant('AF_SNA',22)
|
||||
AF_IRDA = Constant('AF_IRDA',23)
|
||||
AF_PPPOX = Constant('AF_PPPOX',24)
|
||||
AF_WANPIPE = Constant('AF_WANPIPE',25)
|
||||
AF_MAX = Constant('AF_MAX',32)
|
||||
AF_LLC = Constant('AF_LLC',26)
|
||||
AF_IB = Constant('AF_IB',27)
|
||||
AF_MPLS = Constant('AF_MPLS',28)
|
||||
AF_CAN = Constant('AF_CAN',29)
|
||||
AF_TIPC = Constant('AF_TIPC',30)
|
||||
AF_BLUETOOTH = Constant('AF_BLUETOOTH',31)
|
||||
AF_IUCV = Constant('AF_IUCV',32)
|
||||
AF_RXRPC = Constant('AF_RXRPC',33)
|
||||
AF_ISDN = Constant('AF_ISDN',34)
|
||||
AF_PHONET = Constant('AF_PHONET',35)
|
||||
AF_IEEE802154 = Constant('AF_IEEE802154',36)
|
||||
AF_CAIF = Constant('AF_CAIF',37)
|
||||
AF_ALG = Constant('AF_ALG',38)
|
||||
AF_NFC = Constant('AF_NFC',39)
|
||||
AF_VSOCK = Constant('AF_VSOCK',40)
|
||||
AF_KCM = Constant('AF_KCM',41)
|
||||
AF_QIPCRTR = Constant('AF_QIPCRTR',42)
|
||||
AF_SMC = Constant('AF_SMC',43)
|
||||
AF_MAX = Constant('AF_MAX',44)
|
||||
PF_UNSPEC = Constant('PF_UNSPEC',0)
|
||||
PF_UNIX = Constant('PF_UNIX',1)
|
||||
PF_LOCAL = Constant('PF_LOCAL',1)
|
||||
@@ -653,7 +838,25 @@ PF_SNA = Constant('PF_SNA',22)
|
||||
PF_IRDA = Constant('PF_IRDA',23)
|
||||
PF_PPPOX = Constant('PF_PPPOX',24)
|
||||
PF_WANPIPE = Constant('PF_WANPIPE',25)
|
||||
PF_MAX = Constant('PF_MAX',32)
|
||||
PF_LLC = Constant('PF_LLC',26)
|
||||
PF_IB = Constant('PF_IB',27)
|
||||
PF_MPLS = Constant('PF_MPLS',28)
|
||||
PF_CAN = Constant('PF_CAN',29)
|
||||
PF_TIPC = Constant('PF_TIPC',30)
|
||||
PF_BLUETOOTH = Constant('PF_BLUETOOTH',31)
|
||||
PF_IUCV = Constant('PF_IUCV',32)
|
||||
PF_RXRPC = Constant('PF_RXRPC',33)
|
||||
PF_ISDN = Constant('PF_ISDN',34)
|
||||
PF_PHONET = Constant('PF_PHONET',35)
|
||||
PF_IEEE802154 = Constant('PF_IEEE802154',36)
|
||||
PF_CAIF = Constant('PF_CAIF',37)
|
||||
PF_ALG = Constant('PF_ALG',38)
|
||||
PF_NFC = Constant('PF_NFC',39)
|
||||
PF_VSOCK = Constant('PF_VSOCK',40)
|
||||
PF_KCM = Constant('PF_KCM',41)
|
||||
PF_QIPCRTR = Constant('PF_QIPCRTR',42)
|
||||
PF_SMC = Constant('PF_SMC',43)
|
||||
PF_MAX = Constant('PF_MAX',44)
|
||||
SOMAXCONN = Constant('SOMAXCONN',128)
|
||||
MSG_OOB = Constant('MSG_OOB',1)
|
||||
MSG_PEEK = Constant('MSG_PEEK',2)
|
||||
@@ -666,18 +869,26 @@ MSG_DONTWAIT = Constant('MSG_DONTWAIT',0x40)
|
||||
MSG_EOR = Constant('MSG_EOR',0x80)
|
||||
MSG_WAITALL = Constant('MSG_WAITALL',0x100)
|
||||
MSG_FIN = Constant('MSG_FIN',0x200)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_SYN = Constant('MSG_SYN',0x400)
|
||||
MSG_CONFIRM = Constant('MSG_CONFIRM',0x800)
|
||||
MSG_RST = Constant('MSG_RST',0x1000)
|
||||
MSG_ERRQUEUE = Constant('MSG_ERRQUEUE',0x2000)
|
||||
MSG_NOSIGNAL = Constant('MSG_NOSIGNAL',0x4000)
|
||||
MSG_MORE = Constant('MSG_MORE',0x8000)
|
||||
MSG_WAITFORONE = Constant('MSG_WAITFORONE',0x10000)
|
||||
MSG_SENDPAGE_NOTLAST = Constant('MSG_SENDPAGE_NOTLAST',0x20000)
|
||||
MSG_BATCH = Constant('MSG_BATCH',0x40000)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_ZEROCOPY = Constant('MSG_ZEROCOPY',0x4000000)
|
||||
MSG_FASTOPEN = Constant('MSG_FASTOPEN',0x20000000)
|
||||
MSG_CMSG_CLOEXEC = Constant('MSG_CMSG_CLOEXEC',0x40000000)
|
||||
SOL_IP = Constant('SOL_IP',0)
|
||||
SOL_TCP = Constant('SOL_TCP',6)
|
||||
SOL_UDP = Constant('SOL_UDP',17)
|
||||
SOL_IPV6 = Constant('SOL_IPV6',41)
|
||||
SOL_ICMPV6 = Constant('SOL_ICMPV6',58)
|
||||
SOL_SCTP = Constant('SOL_SCTP',132)
|
||||
SOL_UDPLITE = Constant('SOL_UDPLITE',136)
|
||||
SOL_RAW = Constant('SOL_RAW',255)
|
||||
SOL_IPX = Constant('SOL_IPX',256)
|
||||
SOL_AX25 = Constant('SOL_AX25',257)
|
||||
@@ -690,6 +901,22 @@ SOL_PACKET = Constant('SOL_PACKET',263)
|
||||
SOL_ATM = Constant('SOL_ATM',264)
|
||||
SOL_AAL = Constant('SOL_AAL',265)
|
||||
SOL_IRDA = Constant('SOL_IRDA',266)
|
||||
SOL_NETBEUI = Constant('SOL_NETBEUI',267)
|
||||
SOL_LLC = Constant('SOL_LLC',268)
|
||||
SOL_DCCP = Constant('SOL_DCCP',269)
|
||||
SOL_NETLINK = Constant('SOL_NETLINK',270)
|
||||
SOL_TIPC = Constant('SOL_TIPC',271)
|
||||
SOL_RXRPC = Constant('SOL_RXRPC',272)
|
||||
SOL_PPPOL2TP = Constant('SOL_PPPOL2TP',273)
|
||||
SOL_BLUETOOTH = Constant('SOL_BLUETOOTH',274)
|
||||
SOL_PNPIPE = Constant('SOL_PNPIPE',275)
|
||||
SOL_RDS = Constant('SOL_RDS',276)
|
||||
SOL_IUCV = Constant('SOL_IUCV',277)
|
||||
SOL_CAIF = Constant('SOL_CAIF',278)
|
||||
SOL_ALG = Constant('SOL_ALG',279)
|
||||
SOL_NFC = Constant('SOL_NFC',280)
|
||||
SOL_KCM = Constant('SOL_KCM',281)
|
||||
SOL_TLS = Constant('SOL_TLS',282)
|
||||
IPX_TYPE = Constant('IPX_TYPE',1)
|
||||
SHUT_RD = Constant('SHUT_RD',0)
|
||||
SHUT_WR = Constant('SHUT_WR',1)
|
||||
@@ -713,6 +940,10 @@ EAI_SYSTEM = Constant('EAI_SYSTEM',-11)
|
||||
AI_NUMERICHOST = Constant('AI_NUMERICHOST',1)
|
||||
AI_CANONNAME = Constant('AI_CANONNAME',2)
|
||||
AI_PASSIVE = Constant('AI_PASSIVE',4)
|
||||
AI_NUMERICSERV = Constant('AI_NUMERICSERV',8)
|
||||
AI_ADDRCONFIG = Constant('AI_ADDRCONFIG',16)
|
||||
AI_V4MAPPED = Constant('AI_V4MAPPED',32)
|
||||
AI_ALL = Constant('AI_ALL',64)
|
||||
SIOCADDRT = Constant('SIOCADDRT',0x890B)
|
||||
SIOCDELRT = Constant('SIOCDELRT',0x890C)
|
||||
SIOCRTMSG = Constant('SIOCRTMSG',0x890D)
|
||||
@@ -769,6 +1000,48 @@ SIOCSIFMAP = Constant('SIOCSIFMAP',0x8971)
|
||||
SIOCADDDLCI = Constant('SIOCADDDLCI',0x8980)
|
||||
SIOCDELDLCI = Constant('SIOCDELDLCI',0x8981)
|
||||
SIOCDEVPRIVATE = Constant('SIOCDEVPRIVATE',0x89F0)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
F_SETOWN_EX = Constant('F_SETOWN_EX',15)
|
||||
F_GETOWN_EX = Constant('F_GETOWN_EX',16)
|
||||
F_GETOWNER_UIDS = Constant('F_GETOWNER_UIDS',17)
|
||||
F_OFD_GETLK = Constant('F_OFD_GETLK',36)
|
||||
F_OFD_SETLK = Constant('F_OFD_SETLK',37)
|
||||
F_OFD_SETLKW = Constant('F_OFD_SETLKW',38)
|
||||
F_OWNER_TID = Constant('F_OWNER_TID',0)
|
||||
F_OWNER_PID = Constant('F_OWNER_PID',1)
|
||||
F_OWNER_PGRP = Constant('F_OWNER_PGRP',2)
|
||||
AT_FDCWD = Constant('AT_FDCWD',-100)
|
||||
AT_SYMLINK_NOFOLLOW = Constant('AT_SYMLINK_NOFOLLOW',0x100)
|
||||
AT_REMOVEDIR = Constant('AT_REMOVEDIR',0x200)
|
||||
AT_SYMLINK_FOLLOW = Constant('AT_SYMLINK_FOLLOW',0x400)
|
||||
AT_NO_AUTOMOUNT = Constant('AT_NO_AUTOMOUNT',0x800)
|
||||
AT_EMPTY_PATH = Constant('AT_EMPTY_PATH',0x1000)
|
||||
AT_EACCESS = Constant('AT_EACCESS',0x200)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_SEM = Constant('PROT_SEM',0x8)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
PROT_GROWSDOWN = Constant('PROT_GROWSDOWN',0x01000000)
|
||||
PROT_GROWSUP = Constant('PROT_GROWSUP',0x02000000)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_TYPE = Constant('MAP_TYPE',0xf)
|
||||
MADV_REMOVE = Constant('MADV_REMOVE',9)
|
||||
MADV_DONTFORK = Constant('MADV_DONTFORK',10)
|
||||
MADV_DOFORK = Constant('MADV_DOFORK',11)
|
||||
MADV_MERGEABLE = Constant('MADV_MERGEABLE',12)
|
||||
MADV_UNMERGEABLE = Constant('MADV_UNMERGEABLE',13)
|
||||
MADV_HUGEPAGE = Constant('MADV_HUGEPAGE',14)
|
||||
MADV_NOHUGEPAGE = Constant('MADV_NOHUGEPAGE',15)
|
||||
MADV_DONTDUMP = Constant('MADV_DONTDUMP',16)
|
||||
MADV_DODUMP = Constant('MADV_DODUMP',17)
|
||||
MADV_HWPOISON = Constant('MADV_HWPOISON',100)
|
||||
MADV_SOFT_OFFLINE = Constant('MADV_SOFT_OFFLINE',101)
|
||||
MLOCK_ONFAULT = Constant('MLOCK_ONFAULT',1)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
PTRACE_TRACEME = Constant('PTRACE_TRACEME',0)
|
||||
PTRACE_PEEKTEXT = Constant('PTRACE_PEEKTEXT',1)
|
||||
PTRACE_PEEKDATA = Constant('PTRACE_PEEKDATA',2)
|
||||
@@ -813,6 +1086,8 @@ PT_KILL = Constant('PT_KILL',8)
|
||||
PT_STEP = Constant('PT_STEP',9)
|
||||
PT_ATTACH = Constant('PT_ATTACH',0x10)
|
||||
PT_DETACH = Constant('PT_DETACH',0x11)
|
||||
SYS_accept = Constant('SYS_accept',330)
|
||||
SYS_accept4 = Constant('SYS_accept4',344)
|
||||
SYS_access = Constant('SYS_access',33)
|
||||
SYS_acct = Constant('SYS_acct',51)
|
||||
SYS_add_key = Constant('SYS_add_key',269)
|
||||
@@ -820,6 +1095,8 @@ SYS_adjtimex = Constant('SYS_adjtimex',124)
|
||||
SYS_afs_syscall = Constant('SYS_afs_syscall',137)
|
||||
SYS_alarm = Constant('SYS_alarm',27)
|
||||
SYS_bdflush = Constant('SYS_bdflush',134)
|
||||
SYS_bind = Constant('SYS_bind',327)
|
||||
SYS_bpf = Constant('SYS_bpf',361)
|
||||
SYS_break = Constant('SYS_break',17)
|
||||
SYS_brk = Constant('SYS_brk',45)
|
||||
SYS_capget = Constant('SYS_capget',183)
|
||||
@@ -828,28 +1105,38 @@ SYS_chdir = Constant('SYS_chdir',12)
|
||||
SYS_chmod = Constant('SYS_chmod',15)
|
||||
SYS_chown = Constant('SYS_chown',181)
|
||||
SYS_chroot = Constant('SYS_chroot',61)
|
||||
SYS_clock_adjtime = Constant('SYS_clock_adjtime',347)
|
||||
SYS_clock_getres = Constant('SYS_clock_getres',247)
|
||||
SYS_clock_gettime = Constant('SYS_clock_gettime',246)
|
||||
SYS_clock_nanosleep = Constant('SYS_clock_nanosleep',248)
|
||||
SYS_clock_settime = Constant('SYS_clock_settime',245)
|
||||
SYS_clone = Constant('SYS_clone',120)
|
||||
SYS_clone3 = Constant('SYS_clone3',435)
|
||||
SYS_close = Constant('SYS_close',6)
|
||||
SYS_connect = Constant('SYS_connect',328)
|
||||
SYS_copy_file_range = Constant('SYS_copy_file_range',379)
|
||||
SYS_creat = Constant('SYS_creat',8)
|
||||
SYS_create_module = Constant('SYS_create_module',127)
|
||||
SYS_delete_module = Constant('SYS_delete_module',129)
|
||||
SYS_dup = Constant('SYS_dup',41)
|
||||
SYS_dup2 = Constant('SYS_dup2',63)
|
||||
SYS_dup3 = Constant('SYS_dup3',316)
|
||||
SYS_epoll_create = Constant('SYS_epoll_create',236)
|
||||
SYS_epoll_create1 = Constant('SYS_epoll_create1',315)
|
||||
SYS_epoll_ctl = Constant('SYS_epoll_ctl',237)
|
||||
SYS_epoll_pwait = Constant('SYS_epoll_pwait',303)
|
||||
SYS_epoll_wait = Constant('SYS_epoll_wait',238)
|
||||
SYS_eventfd = Constant('SYS_eventfd',307)
|
||||
SYS_eventfd2 = Constant('SYS_eventfd2',314)
|
||||
SYS_execve = Constant('SYS_execve',11)
|
||||
SYS_execveat = Constant('SYS_execveat',362)
|
||||
SYS_exit = Constant('SYS_exit',1)
|
||||
SYS_exit_group = Constant('SYS_exit_group',234)
|
||||
SYS_faccessat = Constant('SYS_faccessat',298)
|
||||
SYS_fadvise64 = Constant('SYS_fadvise64',233)
|
||||
SYS_fallocate = Constant('SYS_fallocate',309)
|
||||
SYS_fanotify_init = Constant('SYS_fanotify_init',323)
|
||||
SYS_fanotify_mark = Constant('SYS_fanotify_mark',324)
|
||||
SYS_fchdir = Constant('SYS_fchdir',133)
|
||||
SYS_fchmod = Constant('SYS_fchmod',94)
|
||||
SYS_fchmodat = Constant('SYS_fchmodat',297)
|
||||
@@ -858,11 +1145,16 @@ SYS_fchownat = Constant('SYS_fchownat',289)
|
||||
SYS_fcntl = Constant('SYS_fcntl',55)
|
||||
SYS_fdatasync = Constant('SYS_fdatasync',148)
|
||||
SYS_fgetxattr = Constant('SYS_fgetxattr',214)
|
||||
SYS_finit_module = Constant('SYS_finit_module',353)
|
||||
SYS_flistxattr = Constant('SYS_flistxattr',217)
|
||||
SYS_flock = Constant('SYS_flock',143)
|
||||
SYS_fork = Constant('SYS_fork',2)
|
||||
SYS_fremovexattr = Constant('SYS_fremovexattr',220)
|
||||
SYS_fsconfig = Constant('SYS_fsconfig',431)
|
||||
SYS_fsetxattr = Constant('SYS_fsetxattr',211)
|
||||
SYS_fsmount = Constant('SYS_fsmount',432)
|
||||
SYS_fsopen = Constant('SYS_fsopen',430)
|
||||
SYS_fspick = Constant('SYS_fspick',433)
|
||||
SYS_fstat = Constant('SYS_fstat',108)
|
||||
SYS_fstatfs = Constant('SYS_fstatfs',100)
|
||||
SYS_fstatfs64 = Constant('SYS_fstatfs64',253)
|
||||
@@ -882,18 +1174,22 @@ SYS_getgroups = Constant('SYS_getgroups',80)
|
||||
SYS_getitimer = Constant('SYS_getitimer',105)
|
||||
SYS_get_kernel_syms = Constant('SYS_get_kernel_syms',130)
|
||||
SYS_get_mempolicy = Constant('SYS_get_mempolicy',260)
|
||||
SYS_getpeername = Constant('SYS_getpeername',332)
|
||||
SYS_getpgid = Constant('SYS_getpgid',132)
|
||||
SYS_getpgrp = Constant('SYS_getpgrp',65)
|
||||
SYS_getpid = Constant('SYS_getpid',20)
|
||||
SYS_getpmsg = Constant('SYS_getpmsg',187)
|
||||
SYS_getppid = Constant('SYS_getppid',64)
|
||||
SYS_getpriority = Constant('SYS_getpriority',96)
|
||||
SYS_getrandom = Constant('SYS_getrandom',359)
|
||||
SYS_getresgid = Constant('SYS_getresgid',170)
|
||||
SYS_getresuid = Constant('SYS_getresuid',165)
|
||||
SYS_getrlimit = Constant('SYS_getrlimit',76)
|
||||
SYS_get_robust_list = Constant('SYS_get_robust_list',299)
|
||||
SYS_getrusage = Constant('SYS_getrusage',77)
|
||||
SYS_getsid = Constant('SYS_getsid',147)
|
||||
SYS_getsockname = Constant('SYS_getsockname',331)
|
||||
SYS_getsockopt = Constant('SYS_getsockopt',340)
|
||||
SYS_gettid = Constant('SYS_gettid',207)
|
||||
SYS_gettimeofday = Constant('SYS_gettimeofday',78)
|
||||
SYS_getuid = Constant('SYS_getuid',24)
|
||||
@@ -903,18 +1199,25 @@ SYS_idle = Constant('SYS_idle',112)
|
||||
SYS_init_module = Constant('SYS_init_module',128)
|
||||
SYS_inotify_add_watch = Constant('SYS_inotify_add_watch',276)
|
||||
SYS_inotify_init = Constant('SYS_inotify_init',275)
|
||||
SYS_inotify_init1 = Constant('SYS_inotify_init1',318)
|
||||
SYS_inotify_rm_watch = Constant('SYS_inotify_rm_watch',277)
|
||||
SYS_io_cancel = Constant('SYS_io_cancel',231)
|
||||
SYS_ioctl = Constant('SYS_ioctl',54)
|
||||
SYS_io_destroy = Constant('SYS_io_destroy',228)
|
||||
SYS_io_getevents = Constant('SYS_io_getevents',229)
|
||||
SYS_ioperm = Constant('SYS_ioperm',101)
|
||||
SYS_io_pgetevents = Constant('SYS_io_pgetevents',388)
|
||||
SYS_iopl = Constant('SYS_iopl',110)
|
||||
SYS_ioprio_get = Constant('SYS_ioprio_get',274)
|
||||
SYS_ioprio_set = Constant('SYS_ioprio_set',273)
|
||||
SYS_io_setup = Constant('SYS_io_setup',227)
|
||||
SYS_io_submit = Constant('SYS_io_submit',230)
|
||||
SYS_io_uring_enter = Constant('SYS_io_uring_enter',426)
|
||||
SYS_io_uring_register = Constant('SYS_io_uring_register',427)
|
||||
SYS_io_uring_setup = Constant('SYS_io_uring_setup',425)
|
||||
SYS_ipc = Constant('SYS_ipc',117)
|
||||
SYS_kcmp = Constant('SYS_kcmp',354)
|
||||
SYS_kexec_file_load = Constant('SYS_kexec_file_load',382)
|
||||
SYS_kexec_load = Constant('SYS_kexec_load',268)
|
||||
SYS_keyctl = Constant('SYS_keyctl',271)
|
||||
SYS_kill = Constant('SYS_kill',37)
|
||||
@@ -922,6 +1225,7 @@ SYS_lchown = Constant('SYS_lchown',16)
|
||||
SYS_lgetxattr = Constant('SYS_lgetxattr',213)
|
||||
SYS_link = Constant('SYS_link',9)
|
||||
SYS_linkat = Constant('SYS_linkat',294)
|
||||
SYS_listen = Constant('SYS_listen',329)
|
||||
SYS_listxattr = Constant('SYS_listxattr',215)
|
||||
SYS_llistxattr = Constant('SYS_llistxattr',216)
|
||||
SYS__llseek = Constant('SYS__llseek',140)
|
||||
@@ -933,16 +1237,20 @@ SYS_lsetxattr = Constant('SYS_lsetxattr',210)
|
||||
SYS_lstat = Constant('SYS_lstat',107)
|
||||
SYS_madvise = Constant('SYS_madvise',205)
|
||||
SYS_mbind = Constant('SYS_mbind',259)
|
||||
SYS_membarrier = Constant('SYS_membarrier',365)
|
||||
SYS_memfd_create = Constant('SYS_memfd_create',360)
|
||||
SYS_mincore = Constant('SYS_mincore',206)
|
||||
SYS_mkdir = Constant('SYS_mkdir',39)
|
||||
SYS_mkdirat = Constant('SYS_mkdirat',287)
|
||||
SYS_mknod = Constant('SYS_mknod',14)
|
||||
SYS_mknodat = Constant('SYS_mknodat',288)
|
||||
SYS_mlock = Constant('SYS_mlock',150)
|
||||
SYS_mlock2 = Constant('SYS_mlock2',378)
|
||||
SYS_mlockall = Constant('SYS_mlockall',152)
|
||||
SYS_mmap = Constant('SYS_mmap',90)
|
||||
SYS_modify_ldt = Constant('SYS_modify_ldt',123)
|
||||
SYS_mount = Constant('SYS_mount',21)
|
||||
SYS_move_mount = Constant('SYS_move_mount',429)
|
||||
SYS_move_pages = Constant('SYS_move_pages',301)
|
||||
SYS_mprotect = Constant('SYS_mprotect',125)
|
||||
SYS_mpx = Constant('SYS_mpx',56)
|
||||
@@ -953,11 +1261,16 @@ SYS_mq_timedreceive = Constant('SYS_mq_timedreceive',265)
|
||||
SYS_mq_timedsend = Constant('SYS_mq_timedsend',264)
|
||||
SYS_mq_unlink = Constant('SYS_mq_unlink',263)
|
||||
SYS_mremap = Constant('SYS_mremap',163)
|
||||
SYS_msgctl = Constant('SYS_msgctl',402)
|
||||
SYS_msgget = Constant('SYS_msgget',399)
|
||||
SYS_msgrcv = Constant('SYS_msgrcv',401)
|
||||
SYS_msgsnd = Constant('SYS_msgsnd',400)
|
||||
SYS_msync = Constant('SYS_msync',144)
|
||||
SYS_multiplexer = Constant('SYS_multiplexer',201)
|
||||
SYS_munlock = Constant('SYS_munlock',151)
|
||||
SYS_munlockall = Constant('SYS_munlockall',153)
|
||||
SYS_munmap = Constant('SYS_munmap',91)
|
||||
SYS_name_to_handle_at = Constant('SYS_name_to_handle_at',345)
|
||||
SYS_nanosleep = Constant('SYS_nanosleep',162)
|
||||
SYS_newfstatat = Constant('SYS_newfstatat',291)
|
||||
SYS__newselect = Constant('SYS__newselect',142)
|
||||
@@ -970,23 +1283,41 @@ SYS_oldstat = Constant('SYS_oldstat',18)
|
||||
SYS_olduname = Constant('SYS_olduname',109)
|
||||
SYS_open = Constant('SYS_open',5)
|
||||
SYS_openat = Constant('SYS_openat',286)
|
||||
SYS_openat2 = Constant('SYS_openat2',437)
|
||||
SYS_open_by_handle_at = Constant('SYS_open_by_handle_at',346)
|
||||
SYS_open_tree = Constant('SYS_open_tree',428)
|
||||
SYS_pause = Constant('SYS_pause',29)
|
||||
SYS_pciconfig_iobase = Constant('SYS_pciconfig_iobase',200)
|
||||
SYS_pciconfig_read = Constant('SYS_pciconfig_read',198)
|
||||
SYS_pciconfig_write = Constant('SYS_pciconfig_write',199)
|
||||
SYS_perf_event_open = Constant('SYS_perf_event_open',319)
|
||||
SYS_personality = Constant('SYS_personality',136)
|
||||
SYS_pidfd_getfd = Constant('SYS_pidfd_getfd',438)
|
||||
SYS_pidfd_open = Constant('SYS_pidfd_open',434)
|
||||
SYS_pidfd_send_signal = Constant('SYS_pidfd_send_signal',424)
|
||||
SYS_pipe = Constant('SYS_pipe',42)
|
||||
SYS_pipe2 = Constant('SYS_pipe2',317)
|
||||
SYS_pivot_root = Constant('SYS_pivot_root',203)
|
||||
SYS_pkey_alloc = Constant('SYS_pkey_alloc',384)
|
||||
SYS_pkey_free = Constant('SYS_pkey_free',385)
|
||||
SYS_pkey_mprotect = Constant('SYS_pkey_mprotect',386)
|
||||
SYS_poll = Constant('SYS_poll',167)
|
||||
SYS_ppoll = Constant('SYS_ppoll',281)
|
||||
SYS_prctl = Constant('SYS_prctl',171)
|
||||
SYS_pread = Constant('SYS_pread',179)
|
||||
SYS_preadv = Constant('SYS_preadv',320)
|
||||
SYS_preadv2 = Constant('SYS_preadv2',380)
|
||||
SYS_prlimit64 = Constant('SYS_prlimit64',325)
|
||||
SYS_process_vm_readv = Constant('SYS_process_vm_readv',351)
|
||||
SYS_process_vm_writev = Constant('SYS_process_vm_writev',352)
|
||||
SYS_prof = Constant('SYS_prof',44)
|
||||
SYS_profil = Constant('SYS_profil',98)
|
||||
SYS_pselect6 = Constant('SYS_pselect6',280)
|
||||
SYS_ptrace = Constant('SYS_ptrace',26)
|
||||
SYS_putpmsg = Constant('SYS_putpmsg',188)
|
||||
SYS_pwrite = Constant('SYS_pwrite',180)
|
||||
SYS_pwritev = Constant('SYS_pwritev',321)
|
||||
SYS_pwritev2 = Constant('SYS_pwritev2',381)
|
||||
SYS_query_module = Constant('SYS_query_module',166)
|
||||
SYS_quotactl = Constant('SYS_quotactl',131)
|
||||
SYS_read = Constant('SYS_read',3)
|
||||
@@ -996,12 +1327,18 @@ SYS_readlink = Constant('SYS_readlink',85)
|
||||
SYS_readlinkat = Constant('SYS_readlinkat',296)
|
||||
SYS_readv = Constant('SYS_readv',145)
|
||||
SYS_reboot = Constant('SYS_reboot',88)
|
||||
SYS_recv = Constant('SYS_recv',336)
|
||||
SYS_recvfrom = Constant('SYS_recvfrom',337)
|
||||
SYS_recvmmsg = Constant('SYS_recvmmsg',343)
|
||||
SYS_recvmsg = Constant('SYS_recvmsg',342)
|
||||
SYS_remap_file_pages = Constant('SYS_remap_file_pages',239)
|
||||
SYS_removexattr = Constant('SYS_removexattr',218)
|
||||
SYS_rename = Constant('SYS_rename',38)
|
||||
SYS_renameat = Constant('SYS_renameat',293)
|
||||
SYS_renameat2 = Constant('SYS_renameat2',357)
|
||||
SYS_request_key = Constant('SYS_request_key',270)
|
||||
SYS_rmdir = Constant('SYS_rmdir',40)
|
||||
SYS_rseq = Constant('SYS_rseq',387)
|
||||
SYS_rtas = Constant('SYS_rtas',255)
|
||||
SYS_rt_sigaction = Constant('SYS_rt_sigaction',173)
|
||||
SYS_rt_sigpending = Constant('SYS_rt_sigpending',175)
|
||||
@@ -1010,18 +1347,29 @@ SYS_rt_sigqueueinfo = Constant('SYS_rt_sigqueueinfo',177)
|
||||
SYS_rt_sigreturn = Constant('SYS_rt_sigreturn',172)
|
||||
SYS_rt_sigsuspend = Constant('SYS_rt_sigsuspend',178)
|
||||
SYS_rt_sigtimedwait = Constant('SYS_rt_sigtimedwait',176)
|
||||
SYS_rt_tgsigqueueinfo = Constant('SYS_rt_tgsigqueueinfo',322)
|
||||
SYS_sched_getaffinity = Constant('SYS_sched_getaffinity',223)
|
||||
SYS_sched_getattr = Constant('SYS_sched_getattr',356)
|
||||
SYS_sched_getparam = Constant('SYS_sched_getparam',155)
|
||||
SYS_sched_get_priority_max = Constant('SYS_sched_get_priority_max',159)
|
||||
SYS_sched_get_priority_min = Constant('SYS_sched_get_priority_min',160)
|
||||
SYS_sched_getscheduler = Constant('SYS_sched_getscheduler',157)
|
||||
SYS_sched_rr_get_interval = Constant('SYS_sched_rr_get_interval',161)
|
||||
SYS_sched_setaffinity = Constant('SYS_sched_setaffinity',222)
|
||||
SYS_sched_setattr = Constant('SYS_sched_setattr',355)
|
||||
SYS_sched_setparam = Constant('SYS_sched_setparam',154)
|
||||
SYS_sched_setscheduler = Constant('SYS_sched_setscheduler',156)
|
||||
SYS_sched_yield = Constant('SYS_sched_yield',158)
|
||||
SYS_seccomp = Constant('SYS_seccomp',358)
|
||||
SYS_select = Constant('SYS_select',82)
|
||||
SYS_semctl = Constant('SYS_semctl',394)
|
||||
SYS_semget = Constant('SYS_semget',393)
|
||||
SYS_semtimedop = Constant('SYS_semtimedop',392)
|
||||
SYS_send = Constant('SYS_send',334)
|
||||
SYS_sendfile = Constant('SYS_sendfile',186)
|
||||
SYS_sendmmsg = Constant('SYS_sendmmsg',349)
|
||||
SYS_sendmsg = Constant('SYS_sendmsg',341)
|
||||
SYS_sendto = Constant('SYS_sendto',335)
|
||||
SYS_setdomainname = Constant('SYS_setdomainname',121)
|
||||
SYS_setfsgid = Constant('SYS_setfsgid',139)
|
||||
SYS_setfsuid = Constant('SYS_setfsuid',138)
|
||||
@@ -1030,6 +1378,7 @@ SYS_setgroups = Constant('SYS_setgroups',81)
|
||||
SYS_sethostname = Constant('SYS_sethostname',74)
|
||||
SYS_setitimer = Constant('SYS_setitimer',104)
|
||||
SYS_set_mempolicy = Constant('SYS_set_mempolicy',261)
|
||||
SYS_setns = Constant('SYS_setns',350)
|
||||
SYS_setpgid = Constant('SYS_setpgid',57)
|
||||
SYS_setpriority = Constant('SYS_setpriority',97)
|
||||
SYS_setregid = Constant('SYS_setregid',71)
|
||||
@@ -1039,20 +1388,29 @@ SYS_setreuid = Constant('SYS_setreuid',70)
|
||||
SYS_setrlimit = Constant('SYS_setrlimit',75)
|
||||
SYS_set_robust_list = Constant('SYS_set_robust_list',300)
|
||||
SYS_setsid = Constant('SYS_setsid',66)
|
||||
SYS_setsockopt = Constant('SYS_setsockopt',339)
|
||||
SYS_set_tid_address = Constant('SYS_set_tid_address',232)
|
||||
SYS_settimeofday = Constant('SYS_settimeofday',79)
|
||||
SYS_setuid = Constant('SYS_setuid',23)
|
||||
SYS_setxattr = Constant('SYS_setxattr',209)
|
||||
SYS_sgetmask = Constant('SYS_sgetmask',68)
|
||||
SYS_shmat = Constant('SYS_shmat',397)
|
||||
SYS_shmctl = Constant('SYS_shmctl',396)
|
||||
SYS_shmdt = Constant('SYS_shmdt',398)
|
||||
SYS_shmget = Constant('SYS_shmget',395)
|
||||
SYS_shutdown = Constant('SYS_shutdown',338)
|
||||
SYS_sigaction = Constant('SYS_sigaction',67)
|
||||
SYS_sigaltstack = Constant('SYS_sigaltstack',185)
|
||||
SYS_signal = Constant('SYS_signal',48)
|
||||
SYS_signalfd = Constant('SYS_signalfd',305)
|
||||
SYS_signalfd4 = Constant('SYS_signalfd4',313)
|
||||
SYS_sigpending = Constant('SYS_sigpending',73)
|
||||
SYS_sigprocmask = Constant('SYS_sigprocmask',126)
|
||||
SYS_sigreturn = Constant('SYS_sigreturn',119)
|
||||
SYS_sigsuspend = Constant('SYS_sigsuspend',72)
|
||||
SYS_socket = Constant('SYS_socket',326)
|
||||
SYS_socketcall = Constant('SYS_socketcall',102)
|
||||
SYS_socketpair = Constant('SYS_socketpair',333)
|
||||
SYS_splice = Constant('SYS_splice',283)
|
||||
SYS_spu_create = Constant('SYS_spu_create',279)
|
||||
SYS_spu_run = Constant('SYS_spu_run',278)
|
||||
@@ -1060,16 +1418,19 @@ SYS_ssetmask = Constant('SYS_ssetmask',69)
|
||||
SYS_stat = Constant('SYS_stat',106)
|
||||
SYS_statfs = Constant('SYS_statfs',99)
|
||||
SYS_statfs64 = Constant('SYS_statfs64',252)
|
||||
SYS_statx = Constant('SYS_statx',383)
|
||||
SYS_stime = Constant('SYS_stime',25)
|
||||
SYS_stty = Constant('SYS_stty',31)
|
||||
SYS_subpage_prot = Constant('SYS_subpage_prot',310)
|
||||
SYS_swapcontext = Constant('SYS_swapcontext',249)
|
||||
SYS_swapoff = Constant('SYS_swapoff',115)
|
||||
SYS_swapon = Constant('SYS_swapon',87)
|
||||
SYS_switch_endian = Constant('SYS_switch_endian',363)
|
||||
SYS_symlink = Constant('SYS_symlink',83)
|
||||
SYS_symlinkat = Constant('SYS_symlinkat',295)
|
||||
SYS_sync = Constant('SYS_sync',36)
|
||||
SYS_sync_file_range2 = Constant('SYS_sync_file_range2',308)
|
||||
SYS_syncfs = Constant('SYS_syncfs',348)
|
||||
SYS__sysctl = Constant('SYS__sysctl',149)
|
||||
SYS_sysfs = Constant('SYS_sysfs',135)
|
||||
SYS_sysinfo = Constant('SYS_sysinfo',116)
|
||||
@@ -1099,6 +1460,7 @@ SYS_unlink = Constant('SYS_unlink',10)
|
||||
SYS_unlinkat = Constant('SYS_unlinkat',292)
|
||||
SYS_unshare = Constant('SYS_unshare',282)
|
||||
SYS_uselib = Constant('SYS_uselib',86)
|
||||
SYS_userfaultfd = Constant('SYS_userfaultfd',364)
|
||||
SYS_ustat = Constant('SYS_ustat',62)
|
||||
SYS_utime = Constant('SYS_utime',30)
|
||||
SYS_utimensat = Constant('SYS_utimensat',304)
|
||||
|
||||
+522
-92
File diff suppressed because it is too large.
Load diff
+423
-100
@@ -1,27 +1,22 @@
|
||||
from pwnlib.constants.constant import Constant
|
||||
|
||||
__NR_exit = Constant('__NR_exit',1)
|
||||
__NR_fork = Constant('__NR_fork',2)
|
||||
__NR_read = Constant('__NR_read',3)
|
||||
__NR_write = Constant('__NR_write',4)
|
||||
__NR_open = Constant('__NR_open',5)
|
||||
__NR_close = Constant('__NR_close',6)
|
||||
__NR_restart_syscall = Constant('__NR_restart_syscall',7)
|
||||
__NR_creat = Constant('__NR_creat',8)
|
||||
__NR_link = Constant('__NR_link',9)
|
||||
__NR_unlink = Constant('__NR_unlink',10)
|
||||
__NR_execve = Constant('__NR_execve',11)
|
||||
__NR_chdir = Constant('__NR_chdir',12)
|
||||
__NR_time = Constant('__NR_time',13)
|
||||
__NR_mknod = Constant('__NR_mknod',14)
|
||||
__NR_chmod = Constant('__NR_chmod',15)
|
||||
__NR_lchown = Constant('__NR_lchown',16)
|
||||
__NR_lseek = Constant('__NR_lseek',19)
|
||||
__NR_getpid = Constant('__NR_getpid',20)
|
||||
__NR_mount = Constant('__NR_mount',21)
|
||||
__NR_umount = Constant('__NR_umount',22)
|
||||
__NR_setuid = Constant('__NR_setuid',23)
|
||||
__NR_getuid = Constant('__NR_getuid',24)
|
||||
__NR_stime = Constant('__NR_stime',25)
|
||||
__NR_ptrace = Constant('__NR_ptrace',26)
|
||||
__NR_alarm = Constant('__NR_alarm',27)
|
||||
__NR_pause = Constant('__NR_pause',29)
|
||||
@@ -37,11 +32,7 @@ __NR_dup = Constant('__NR_dup',41)
|
||||
__NR_pipe = Constant('__NR_pipe',42)
|
||||
__NR_times = Constant('__NR_times',43)
|
||||
__NR_brk = Constant('__NR_brk',45)
|
||||
__NR_setgid = Constant('__NR_setgid',46)
|
||||
__NR_getgid = Constant('__NR_getgid',47)
|
||||
__NR_signal = Constant('__NR_signal',48)
|
||||
__NR_geteuid = Constant('__NR_geteuid',49)
|
||||
__NR_getegid = Constant('__NR_getegid',50)
|
||||
__NR_acct = Constant('__NR_acct',51)
|
||||
__NR_umount2 = Constant('__NR_umount2',52)
|
||||
__NR_ioctl = Constant('__NR_ioctl',54)
|
||||
@@ -55,18 +46,13 @@ __NR_getppid = Constant('__NR_getppid',64)
|
||||
__NR_getpgrp = Constant('__NR_getpgrp',65)
|
||||
__NR_setsid = Constant('__NR_setsid',66)
|
||||
__NR_sigaction = Constant('__NR_sigaction',67)
|
||||
__NR_setreuid = Constant('__NR_setreuid',70)
|
||||
__NR_setregid = Constant('__NR_setregid',71)
|
||||
__NR_sigsuspend = Constant('__NR_sigsuspend',72)
|
||||
__NR_sigpending = Constant('__NR_sigpending',73)
|
||||
__NR_sethostname = Constant('__NR_sethostname',74)
|
||||
__NR_setrlimit = Constant('__NR_setrlimit',75)
|
||||
__NR_getrlimit = Constant('__NR_getrlimit',76)
|
||||
__NR_getrusage = Constant('__NR_getrusage',77)
|
||||
__NR_gettimeofday = Constant('__NR_gettimeofday',78)
|
||||
__NR_settimeofday = Constant('__NR_settimeofday',79)
|
||||
__NR_getgroups = Constant('__NR_getgroups',80)
|
||||
__NR_setgroups = Constant('__NR_setgroups',81)
|
||||
__NR_symlink = Constant('__NR_symlink',83)
|
||||
__NR_readlink = Constant('__NR_readlink',85)
|
||||
__NR_uselib = Constant('__NR_uselib',86)
|
||||
@@ -78,12 +64,10 @@ __NR_munmap = Constant('__NR_munmap',91)
|
||||
__NR_truncate = Constant('__NR_truncate',92)
|
||||
__NR_ftruncate = Constant('__NR_ftruncate',93)
|
||||
__NR_fchmod = Constant('__NR_fchmod',94)
|
||||
__NR_fchown = Constant('__NR_fchown',95)
|
||||
__NR_getpriority = Constant('__NR_getpriority',96)
|
||||
__NR_setpriority = Constant('__NR_setpriority',97)
|
||||
__NR_statfs = Constant('__NR_statfs',99)
|
||||
__NR_fstatfs = Constant('__NR_fstatfs',100)
|
||||
__NR_ioperm = Constant('__NR_ioperm',101)
|
||||
__NR_socketcall = Constant('__NR_socketcall',102)
|
||||
__NR_syslog = Constant('__NR_syslog',103)
|
||||
__NR_setitimer = Constant('__NR_setitimer',104)
|
||||
@@ -117,11 +101,8 @@ __NR_bdflush = Constant('__NR_bdflush',134)
|
||||
__NR_sysfs = Constant('__NR_sysfs',135)
|
||||
__NR_personality = Constant('__NR_personality',136)
|
||||
__NR_afs_syscall = Constant('__NR_afs_syscall',137)
|
||||
__NR_setfsuid = Constant('__NR_setfsuid',138)
|
||||
__NR_setfsgid = Constant('__NR_setfsgid',139)
|
||||
__NR__llseek = Constant('__NR__llseek',140)
|
||||
__NR_getdents = Constant('__NR_getdents',141)
|
||||
__NR__newselect = Constant('__NR__newselect',142)
|
||||
__NR_select = Constant('__NR_select',142)
|
||||
__NR_flock = Constant('__NR_flock',143)
|
||||
__NR_msync = Constant('__NR_msync',144)
|
||||
__NR_readv = Constant('__NR_readv',145)
|
||||
@@ -143,13 +124,9 @@ __NR_sched_get_priority_min = Constant('__NR_sched_get_priority_min',160)
|
||||
__NR_sched_rr_get_interval = Constant('__NR_sched_rr_get_interval',161)
|
||||
__NR_nanosleep = Constant('__NR_nanosleep',162)
|
||||
__NR_mremap = Constant('__NR_mremap',163)
|
||||
__NR_setresuid = Constant('__NR_setresuid',164)
|
||||
__NR_getresuid = Constant('__NR_getresuid',165)
|
||||
__NR_query_module = Constant('__NR_query_module',167)
|
||||
__NR_poll = Constant('__NR_poll',168)
|
||||
__NR_nfsservctl = Constant('__NR_nfsservctl',169)
|
||||
__NR_setresgid = Constant('__NR_setresgid',170)
|
||||
__NR_getresgid = Constant('__NR_getresgid',171)
|
||||
__NR_prctl = Constant('__NR_prctl',172)
|
||||
__NR_rt_sigreturn = Constant('__NR_rt_sigreturn',173)
|
||||
__NR_rt_sigaction = Constant('__NR_rt_sigaction',174)
|
||||
@@ -158,9 +135,8 @@ __NR_rt_sigpending = Constant('__NR_rt_sigpending',176)
|
||||
__NR_rt_sigtimedwait = Constant('__NR_rt_sigtimedwait',177)
|
||||
__NR_rt_sigqueueinfo = Constant('__NR_rt_sigqueueinfo',178)
|
||||
__NR_rt_sigsuspend = Constant('__NR_rt_sigsuspend',179)
|
||||
__NR_pread = Constant('__NR_pread',180)
|
||||
__NR_pwrite = Constant('__NR_pwrite',181)
|
||||
__NR_chown = Constant('__NR_chown',182)
|
||||
__NR_pread64 = Constant('__NR_pread64',180)
|
||||
__NR_pwrite64 = Constant('__NR_pwrite64',181)
|
||||
__NR_getcwd = Constant('__NR_getcwd',183)
|
||||
__NR_capget = Constant('__NR_capget',184)
|
||||
__NR_capset = Constant('__NR_capset',185)
|
||||
@@ -169,39 +145,31 @@ __NR_sendfile = Constant('__NR_sendfile',187)
|
||||
__NR_getpmsg = Constant('__NR_getpmsg',188)
|
||||
__NR_putpmsg = Constant('__NR_putpmsg',189)
|
||||
__NR_vfork = Constant('__NR_vfork',190)
|
||||
__NR_ugetrlimit = Constant('__NR_ugetrlimit',191)
|
||||
__NR_mmap2 = Constant('__NR_mmap2',192)
|
||||
__NR_truncate64 = Constant('__NR_truncate64',193)
|
||||
__NR_ftruncate64 = Constant('__NR_ftruncate64',194)
|
||||
__NR_stat64 = Constant('__NR_stat64',195)
|
||||
__NR_lstat64 = Constant('__NR_lstat64',196)
|
||||
__NR_fstat64 = Constant('__NR_fstat64',197)
|
||||
__NR_lchown32 = Constant('__NR_lchown32',198)
|
||||
__NR_getuid32 = Constant('__NR_getuid32',199)
|
||||
__NR_getgid32 = Constant('__NR_getgid32',200)
|
||||
__NR_geteuid32 = Constant('__NR_geteuid32',201)
|
||||
__NR_getegid32 = Constant('__NR_getegid32',202)
|
||||
__NR_setreuid32 = Constant('__NR_setreuid32',203)
|
||||
__NR_setregid32 = Constant('__NR_setregid32',204)
|
||||
__NR_getgroups32 = Constant('__NR_getgroups32',205)
|
||||
__NR_setgroups32 = Constant('__NR_setgroups32',206)
|
||||
__NR_fchown32 = Constant('__NR_fchown32',207)
|
||||
__NR_setresuid32 = Constant('__NR_setresuid32',208)
|
||||
__NR_getresuid32 = Constant('__NR_getresuid32',209)
|
||||
__NR_setresgid32 = Constant('__NR_setresgid32',210)
|
||||
__NR_getresgid32 = Constant('__NR_getresgid32',211)
|
||||
__NR_chown32 = Constant('__NR_chown32',212)
|
||||
__NR_setuid32 = Constant('__NR_setuid32',213)
|
||||
__NR_setgid32 = Constant('__NR_setgid32',214)
|
||||
__NR_setfsuid32 = Constant('__NR_setfsuid32',215)
|
||||
__NR_setfsgid32 = Constant('__NR_setfsgid32',216)
|
||||
__NR_getrlimit = Constant('__NR_getrlimit',191)
|
||||
__NR_lchown = Constant('__NR_lchown',198)
|
||||
__NR_getuid = Constant('__NR_getuid',199)
|
||||
__NR_getgid = Constant('__NR_getgid',200)
|
||||
__NR_geteuid = Constant('__NR_geteuid',201)
|
||||
__NR_getegid = Constant('__NR_getegid',202)
|
||||
__NR_setreuid = Constant('__NR_setreuid',203)
|
||||
__NR_setregid = Constant('__NR_setregid',204)
|
||||
__NR_getgroups = Constant('__NR_getgroups',205)
|
||||
__NR_setgroups = Constant('__NR_setgroups',206)
|
||||
__NR_fchown = Constant('__NR_fchown',207)
|
||||
__NR_setresuid = Constant('__NR_setresuid',208)
|
||||
__NR_getresuid = Constant('__NR_getresuid',209)
|
||||
__NR_setresgid = Constant('__NR_setresgid',210)
|
||||
__NR_getresgid = Constant('__NR_getresgid',211)
|
||||
__NR_chown = Constant('__NR_chown',212)
|
||||
__NR_setuid = Constant('__NR_setuid',213)
|
||||
__NR_setgid = Constant('__NR_setgid',214)
|
||||
__NR_setfsuid = Constant('__NR_setfsuid',215)
|
||||
__NR_setfsgid = Constant('__NR_setfsgid',216)
|
||||
__NR_pivot_root = Constant('__NR_pivot_root',217)
|
||||
__NR_mincore = Constant('__NR_mincore',218)
|
||||
__NR_madvise = Constant('__NR_madvise',219)
|
||||
__NR_getdents64 = Constant('__NR_getdents64',220)
|
||||
__NR_fcntl64 = Constant('__NR_fcntl64',221)
|
||||
__NR_readahead = Constant('__NR_readahead',222)
|
||||
__NR_sendfile64 = Constant('__NR_sendfile64',223)
|
||||
__NR_setxattr = Constant('__NR_setxattr',224)
|
||||
__NR_lsetxattr = Constant('__NR_lsetxattr',225)
|
||||
__NR_fsetxattr = Constant('__NR_fsetxattr',226)
|
||||
@@ -240,10 +208,12 @@ __NR_clock_settime = Constant('__NR_clock_settime',(254+5))
|
||||
__NR_clock_gettime = Constant('__NR_clock_gettime',(254+6))
|
||||
__NR_clock_getres = Constant('__NR_clock_getres',(254+7))
|
||||
__NR_clock_nanosleep = Constant('__NR_clock_nanosleep',(254+8))
|
||||
__NR_fadvise64_64 = Constant('__NR_fadvise64_64',264)
|
||||
__NR_statfs64 = Constant('__NR_statfs64',265)
|
||||
__NR_fstatfs64 = Constant('__NR_fstatfs64',266)
|
||||
__NR_remap_file_pages = Constant('__NR_remap_file_pages',267)
|
||||
__NR_mbind = Constant('__NR_mbind',268)
|
||||
__NR_get_mempolicy = Constant('__NR_get_mempolicy',269)
|
||||
__NR_set_mempolicy = Constant('__NR_set_mempolicy',270)
|
||||
__NR_mq_open = Constant('__NR_mq_open',271)
|
||||
__NR_mq_unlink = Constant('__NR_mq_unlink',272)
|
||||
__NR_mq_timedsend = Constant('__NR_mq_timedsend',273)
|
||||
@@ -260,11 +230,13 @@ __NR_ioprio_get = Constant('__NR_ioprio_get',283)
|
||||
__NR_inotify_init = Constant('__NR_inotify_init',284)
|
||||
__NR_inotify_add_watch = Constant('__NR_inotify_add_watch',285)
|
||||
__NR_inotify_rm_watch = Constant('__NR_inotify_rm_watch',286)
|
||||
__NR_migrate_pages = Constant('__NR_migrate_pages',287)
|
||||
__NR_openat = Constant('__NR_openat',288)
|
||||
__NR_mkdirat = Constant('__NR_mkdirat',289)
|
||||
__NR_mknodat = Constant('__NR_mknodat',290)
|
||||
__NR_fchownat = Constant('__NR_fchownat',291)
|
||||
__NR_futimesat = Constant('__NR_futimesat',292)
|
||||
__NR_newfstatat = Constant('__NR_newfstatat',293)
|
||||
__NR_unlinkat = Constant('__NR_unlinkat',294)
|
||||
__NR_renameat = Constant('__NR_renameat',295)
|
||||
__NR_linkat = Constant('__NR_linkat',296)
|
||||
@@ -281,6 +253,7 @@ __NR_splice = Constant('__NR_splice',306)
|
||||
__NR_sync_file_range = Constant('__NR_sync_file_range',307)
|
||||
__NR_tee = Constant('__NR_tee',308)
|
||||
__NR_vmsplice = Constant('__NR_vmsplice',309)
|
||||
__NR_move_pages = Constant('__NR_move_pages',310)
|
||||
__NR_getcpu = Constant('__NR_getcpu',311)
|
||||
__NR_epoll_pwait = Constant('__NR_epoll_pwait',312)
|
||||
__NR_utimes = Constant('__NR_utimes',313)
|
||||
@@ -292,28 +265,96 @@ __NR_eventfd = Constant('__NR_eventfd',318)
|
||||
__NR_timerfd_create = Constant('__NR_timerfd_create',319)
|
||||
__NR_timerfd_settime = Constant('__NR_timerfd_settime',320)
|
||||
__NR_timerfd_gettime = Constant('__NR_timerfd_gettime',321)
|
||||
__NR_select = Constant('__NR_select',142)
|
||||
__NR_getrlimit = Constant('__NR_getrlimit',191)
|
||||
__NR_lchown = Constant('__NR_lchown',198)
|
||||
__NR_getuid = Constant('__NR_getuid',199)
|
||||
__NR_getgid = Constant('__NR_getgid',200)
|
||||
__NR_geteuid = Constant('__NR_geteuid',201)
|
||||
__NR_getegid = Constant('__NR_getegid',202)
|
||||
__NR_setreuid = Constant('__NR_setreuid',203)
|
||||
__NR_setregid = Constant('__NR_setregid',204)
|
||||
__NR_getgroups = Constant('__NR_getgroups',205)
|
||||
__NR_setgroups = Constant('__NR_setgroups',206)
|
||||
__NR_fchown = Constant('__NR_fchown',207)
|
||||
__NR_setresuid = Constant('__NR_setresuid',208)
|
||||
__NR_getresuid = Constant('__NR_getresuid',209)
|
||||
__NR_setresgid = Constant('__NR_setresgid',210)
|
||||
__NR_getresgid = Constant('__NR_getresgid',211)
|
||||
__NR_chown = Constant('__NR_chown',212)
|
||||
__NR_setuid = Constant('__NR_setuid',213)
|
||||
__NR_setgid = Constant('__NR_setgid',214)
|
||||
__NR_setfsuid = Constant('__NR_setfsuid',215)
|
||||
__NR_setfsgid = Constant('__NR_setfsgid',216)
|
||||
__NR_newfstatat = Constant('__NR_newfstatat',293)
|
||||
__NR_signalfd4 = Constant('__NR_signalfd4',322)
|
||||
__NR_eventfd2 = Constant('__NR_eventfd2',323)
|
||||
__NR_inotify_init1 = Constant('__NR_inotify_init1',324)
|
||||
__NR_pipe2 = Constant('__NR_pipe2',325)
|
||||
__NR_dup3 = Constant('__NR_dup3',326)
|
||||
__NR_epoll_create1 = Constant('__NR_epoll_create1',327)
|
||||
__NR_preadv = Constant('__NR_preadv',328)
|
||||
__NR_pwritev = Constant('__NR_pwritev',329)
|
||||
__NR_rt_tgsigqueueinfo = Constant('__NR_rt_tgsigqueueinfo',330)
|
||||
__NR_perf_event_open = Constant('__NR_perf_event_open',331)
|
||||
__NR_fanotify_init = Constant('__NR_fanotify_init',332)
|
||||
__NR_fanotify_mark = Constant('__NR_fanotify_mark',333)
|
||||
__NR_prlimit64 = Constant('__NR_prlimit64',334)
|
||||
__NR_name_to_handle_at = Constant('__NR_name_to_handle_at',335)
|
||||
__NR_open_by_handle_at = Constant('__NR_open_by_handle_at',336)
|
||||
__NR_clock_adjtime = Constant('__NR_clock_adjtime',337)
|
||||
__NR_syncfs = Constant('__NR_syncfs',338)
|
||||
__NR_setns = Constant('__NR_setns',339)
|
||||
__NR_process_vm_readv = Constant('__NR_process_vm_readv',340)
|
||||
__NR_process_vm_writev = Constant('__NR_process_vm_writev',341)
|
||||
__NR_s390_runtime_instr = Constant('__NR_s390_runtime_instr',342)
|
||||
__NR_kcmp = Constant('__NR_kcmp',343)
|
||||
__NR_finit_module = Constant('__NR_finit_module',344)
|
||||
__NR_sched_setattr = Constant('__NR_sched_setattr',345)
|
||||
__NR_sched_getattr = Constant('__NR_sched_getattr',346)
|
||||
__NR_renameat2 = Constant('__NR_renameat2',347)
|
||||
__NR_seccomp = Constant('__NR_seccomp',348)
|
||||
__NR_getrandom = Constant('__NR_getrandom',349)
|
||||
__NR_memfd_create = Constant('__NR_memfd_create',350)
|
||||
__NR_bpf = Constant('__NR_bpf',351)
|
||||
__NR_s390_pci_mmio_write = Constant('__NR_s390_pci_mmio_write',352)
|
||||
__NR_s390_pci_mmio_read = Constant('__NR_s390_pci_mmio_read',353)
|
||||
__NR_execveat = Constant('__NR_execveat',354)
|
||||
__NR_userfaultfd = Constant('__NR_userfaultfd',355)
|
||||
__NR_membarrier = Constant('__NR_membarrier',356)
|
||||
__NR_recvmmsg = Constant('__NR_recvmmsg',357)
|
||||
__NR_sendmmsg = Constant('__NR_sendmmsg',358)
|
||||
__NR_socket = Constant('__NR_socket',359)
|
||||
__NR_socketpair = Constant('__NR_socketpair',360)
|
||||
__NR_bind = Constant('__NR_bind',361)
|
||||
__NR_connect = Constant('__NR_connect',362)
|
||||
__NR_listen = Constant('__NR_listen',363)
|
||||
__NR_accept4 = Constant('__NR_accept4',364)
|
||||
__NR_getsockopt = Constant('__NR_getsockopt',365)
|
||||
__NR_setsockopt = Constant('__NR_setsockopt',366)
|
||||
__NR_getsockname = Constant('__NR_getsockname',367)
|
||||
__NR_getpeername = Constant('__NR_getpeername',368)
|
||||
__NR_sendto = Constant('__NR_sendto',369)
|
||||
__NR_sendmsg = Constant('__NR_sendmsg',370)
|
||||
__NR_recvfrom = Constant('__NR_recvfrom',371)
|
||||
__NR_recvmsg = Constant('__NR_recvmsg',372)
|
||||
__NR_shutdown = Constant('__NR_shutdown',373)
|
||||
__NR_mlock2 = Constant('__NR_mlock2',374)
|
||||
__NR_copy_file_range = Constant('__NR_copy_file_range',375)
|
||||
__NR_preadv2 = Constant('__NR_preadv2',376)
|
||||
__NR_pwritev2 = Constant('__NR_pwritev2',377)
|
||||
__NR_s390_guarded_storage = Constant('__NR_s390_guarded_storage',378)
|
||||
__NR_statx = Constant('__NR_statx',379)
|
||||
__NR_s390_sthyi = Constant('__NR_s390_sthyi',380)
|
||||
__NR_kexec_file_load = Constant('__NR_kexec_file_load',381)
|
||||
__NR_io_pgetevents = Constant('__NR_io_pgetevents',382)
|
||||
__NR_rseq = Constant('__NR_rseq',383)
|
||||
__NR_pkey_mprotect = Constant('__NR_pkey_mprotect',384)
|
||||
__NR_pkey_alloc = Constant('__NR_pkey_alloc',385)
|
||||
__NR_pkey_free = Constant('__NR_pkey_free',386)
|
||||
__NR_semtimedop = Constant('__NR_semtimedop',392)
|
||||
__NR_semget = Constant('__NR_semget',393)
|
||||
__NR_semctl = Constant('__NR_semctl',394)
|
||||
__NR_shmget = Constant('__NR_shmget',395)
|
||||
__NR_shmctl = Constant('__NR_shmctl',396)
|
||||
__NR_shmat = Constant('__NR_shmat',397)
|
||||
__NR_shmdt = Constant('__NR_shmdt',398)
|
||||
__NR_msgget = Constant('__NR_msgget',399)
|
||||
__NR_msgsnd = Constant('__NR_msgsnd',400)
|
||||
__NR_msgrcv = Constant('__NR_msgrcv',401)
|
||||
__NR_msgctl = Constant('__NR_msgctl',402)
|
||||
__NR_pidfd_send_signal = Constant('__NR_pidfd_send_signal',424)
|
||||
__NR_io_uring_setup = Constant('__NR_io_uring_setup',425)
|
||||
__NR_io_uring_enter = Constant('__NR_io_uring_enter',426)
|
||||
__NR_io_uring_register = Constant('__NR_io_uring_register',427)
|
||||
__NR_open_tree = Constant('__NR_open_tree',428)
|
||||
__NR_move_mount = Constant('__NR_move_mount',429)
|
||||
__NR_fsopen = Constant('__NR_fsopen',430)
|
||||
__NR_fsconfig = Constant('__NR_fsconfig',431)
|
||||
__NR_fsmount = Constant('__NR_fsmount',432)
|
||||
__NR_fspick = Constant('__NR_fspick',433)
|
||||
__NR_pidfd_open = Constant('__NR_pidfd_open',434)
|
||||
__NR_clone3 = Constant('__NR_clone3',435)
|
||||
__NR_openat2 = Constant('__NR_openat2',437)
|
||||
__NR_pidfd_getfd = Constant('__NR_pidfd_getfd',438)
|
||||
MAP_32BIT = Constant('MAP_32BIT',0x40)
|
||||
INADDR_ANY = Constant('INADDR_ANY',0)
|
||||
INADDR_BROADCAST = Constant('INADDR_BROADCAST',0xffffffff)
|
||||
@@ -449,7 +490,11 @@ ENOKEY = Constant('ENOKEY',126)
|
||||
EKEYEXPIRED = Constant('EKEYEXPIRED',127)
|
||||
EKEYREVOKED = Constant('EKEYREVOKED',128)
|
||||
EKEYREJECTED = Constant('EKEYREJECTED',129)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((129) + 1))
|
||||
EOWNERDEAD = Constant('EOWNERDEAD',130)
|
||||
ENOTRECOVERABLE = Constant('ENOTRECOVERABLE',131)
|
||||
ERFKILL = Constant('ERFKILL',132)
|
||||
EHWPOISON = Constant('EHWPOISON',133)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((133) + 1))
|
||||
__LITTLE_ENDIAN = Constant('__LITTLE_ENDIAN',1234)
|
||||
__BIG_ENDIAN = Constant('__BIG_ENDIAN',4321)
|
||||
__BYTE_ORDER = Constant('__BYTE_ORDER',4321)
|
||||
@@ -458,9 +503,55 @@ LITTLE_ENDIAN = Constant('LITTLE_ENDIAN',1234)
|
||||
BIG_ENDIAN = Constant('BIG_ENDIAN',4321)
|
||||
BYTE_ORDER = Constant('BYTE_ORDER',4321)
|
||||
__WORDSIZE = Constant('__WORDSIZE',64)
|
||||
INT8_MAX = Constant('INT8_MAX',(127))
|
||||
INT16_MAX = Constant('INT16_MAX',(32767))
|
||||
INT32_MAX = Constant('INT32_MAX',(2147483647))
|
||||
INT64_MAX = Constant('INT64_MAX',(9223372036854775807))
|
||||
INT8_MIN = Constant('INT8_MIN',(-1 - (127)))
|
||||
INT16_MIN = Constant('INT16_MIN',(-1 - (32767)))
|
||||
INT32_MIN = Constant('INT32_MIN',(-1 - (2147483647)))
|
||||
INT64_MIN = Constant('INT64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_LEAST8_MAX = Constant('INT_LEAST8_MAX',(127))
|
||||
INT_LEAST8_MIN = Constant('INT_LEAST8_MIN',(-1 - (127)))
|
||||
INT_LEAST16_MAX = Constant('INT_LEAST16_MAX',(32767))
|
||||
INT_LEAST16_MIN = Constant('INT_LEAST16_MIN',(-1 - (32767)))
|
||||
INT_LEAST32_MAX = Constant('INT_LEAST32_MAX',(2147483647))
|
||||
INT_LEAST32_MIN = Constant('INT_LEAST32_MIN',(-1 - (2147483647)))
|
||||
INT_LEAST64_MAX = Constant('INT_LEAST64_MAX',(9223372036854775807))
|
||||
INT_LEAST64_MIN = Constant('INT_LEAST64_MIN',(-1 - (9223372036854775807)))
|
||||
UINT8_MAX = Constant('UINT8_MAX',0xff)
|
||||
UINT16_MAX = Constant('UINT16_MAX',0xffff)
|
||||
UINT32_MAX = Constant('UINT32_MAX',0xffffffff)
|
||||
UINT64_MAX = Constant('UINT64_MAX',0xffffffffffffffff)
|
||||
UINT_LEAST8_MAX = Constant('UINT_LEAST8_MAX',0xff)
|
||||
UINT_LEAST16_MAX = Constant('UINT_LEAST16_MAX',0xffff)
|
||||
UINT_LEAST32_MAX = Constant('UINT_LEAST32_MAX',0xffffffff)
|
||||
UINT_LEAST64_MAX = Constant('UINT_LEAST64_MAX',0xffffffffffffffff)
|
||||
INTPTR_MIN = Constant('INTPTR_MIN',(-1 - (9223372036854775807)))
|
||||
INTPTR_MAX = Constant('INTPTR_MAX',(9223372036854775807))
|
||||
UINTPTR_MAX = Constant('UINTPTR_MAX',0xffffffffffffffff)
|
||||
SIZE_MAX = Constant('SIZE_MAX',0xffffffffffffffff)
|
||||
PTRDIFF_MIN = Constant('PTRDIFF_MIN',(-1 - (9223372036854775807)))
|
||||
PTRDIFF_MAX = Constant('PTRDIFF_MAX',(9223372036854775807))
|
||||
INTMAX_MIN = Constant('INTMAX_MIN',(-1 - (9223372036854775807)))
|
||||
INTMAX_MAX = Constant('INTMAX_MAX',(9223372036854775807))
|
||||
UINTMAX_MAX = Constant('UINTMAX_MAX',0xffffffffffffffff)
|
||||
INT_FAST8_MIN = Constant('INT_FAST8_MIN',(-1 - (127)))
|
||||
INT_FAST8_MAX = Constant('INT_FAST8_MAX',(127))
|
||||
INT_FAST64_MIN = Constant('INT_FAST64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST64_MAX = Constant('INT_FAST64_MAX',(9223372036854775807))
|
||||
UINT_FAST8_MAX = Constant('UINT_FAST8_MAX',0xff)
|
||||
UINT_FAST64_MAX = Constant('UINT_FAST64_MAX',0xffffffffffffffff)
|
||||
INT_FAST16_MIN = Constant('INT_FAST16_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST16_MAX = Constant('INT_FAST16_MAX',(9223372036854775807))
|
||||
UINT_FAST16_MAX = Constant('UINT_FAST16_MAX',0xffffffffffffffff)
|
||||
INT_FAST32_MIN = Constant('INT_FAST32_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST32_MAX = Constant('INT_FAST32_MAX',(9223372036854775807))
|
||||
UINT_FAST32_MAX = Constant('UINT_FAST32_MAX',0xffffffffffffffff)
|
||||
WINT_MIN = Constant('WINT_MIN',0)
|
||||
__FSUID_H = Constant('__FSUID_H',1)
|
||||
NSIG = Constant('NSIG',32)
|
||||
_NSIG = Constant('_NSIG',64)
|
||||
_NSIG = Constant('_NSIG',65)
|
||||
SIGHUP = Constant('SIGHUP',1)
|
||||
SIGINT = Constant('SIGINT',2)
|
||||
SIGQUIT = Constant('SIGQUIT',3)
|
||||
@@ -476,7 +567,7 @@ SIGALRM = Constant('SIGALRM',14)
|
||||
SIGTERM = Constant('SIGTERM',15)
|
||||
SIGUNUSED = Constant('SIGUNUSED',31)
|
||||
SIGRTMIN = Constant('SIGRTMIN',32)
|
||||
SIGRTMAX = Constant('SIGRTMAX',(64-1))
|
||||
SIGRTMAX = Constant('SIGRTMAX',(65-1))
|
||||
SA_NOCLDSTOP = Constant('SA_NOCLDSTOP',0x00000001)
|
||||
SA_NOCLDWAIT = Constant('SA_NOCLDWAIT',0x00000002)
|
||||
SA_SIGINFO = Constant('SA_SIGINFO',0x00000004)
|
||||
@@ -525,6 +616,8 @@ _SC_PAGESIZE = Constant('_SC_PAGESIZE',5)
|
||||
_SC_NPROCESSORS_ONLN = Constant('_SC_NPROCESSORS_ONLN',6)
|
||||
_SC_NPROCESSORS_CONF = Constant('_SC_NPROCESSORS_CONF',6)
|
||||
_SC_PHYS_PAGES = Constant('_SC_PHYS_PAGES',7)
|
||||
_SC_GETPW_R_SIZE_MAX = Constant('_SC_GETPW_R_SIZE_MAX',8)
|
||||
_SC_GETGR_R_SIZE_MAX = Constant('_SC_GETGR_R_SIZE_MAX',9)
|
||||
_PC_PATH_MAX = Constant('_PC_PATH_MAX',1)
|
||||
_PC_VDISABLE = Constant('_PC_VDISABLE',2)
|
||||
L_cuserid = Constant('L_cuserid',17)
|
||||
@@ -533,6 +626,7 @@ F_ULOCK = Constant('F_ULOCK',0)
|
||||
F_LOCK = Constant('F_LOCK',1)
|
||||
F_TLOCK = Constant('F_TLOCK',2)
|
||||
F_TEST = Constant('F_TEST',3)
|
||||
_POSIX_MAPPED_FILES = Constant('_POSIX_MAPPED_FILES',200809)
|
||||
S_IFMT = Constant('S_IFMT',0o0170000)
|
||||
S_IFSOCK = Constant('S_IFSOCK',0o140000)
|
||||
S_IFLNK = Constant('S_IFLNK',0o120000)
|
||||
@@ -559,16 +653,7 @@ S_IXOTH = Constant('S_IXOTH',0o0001)
|
||||
S_IREAD = Constant('S_IREAD',0o0400)
|
||||
S_IWRITE = Constant('S_IWRITE',0o0200)
|
||||
S_IEXEC = Constant('S_IEXEC',0o0100)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
_SYS_UIO = Constant('_SYS_UIO',1)
|
||||
SOL_SOCKET = Constant('SOL_SOCKET',1)
|
||||
SO_DEBUG = Constant('SO_DEBUG',1)
|
||||
SO_REUSEADDR = Constant('SO_REUSEADDR',2)
|
||||
@@ -584,29 +669,64 @@ SO_NO_CHECK = Constant('SO_NO_CHECK',11)
|
||||
SO_PRIORITY = Constant('SO_PRIORITY',12)
|
||||
SO_LINGER = Constant('SO_LINGER',13)
|
||||
SO_BSDCOMPAT = Constant('SO_BSDCOMPAT',14)
|
||||
SO_REUSEPORT = Constant('SO_REUSEPORT',15)
|
||||
SO_PASSCRED = Constant('SO_PASSCRED',16)
|
||||
SO_PEERCRED = Constant('SO_PEERCRED',17)
|
||||
SO_RCVLOWAT = Constant('SO_RCVLOWAT',18)
|
||||
SO_SNDLOWAT = Constant('SO_SNDLOWAT',19)
|
||||
SO_RCVTIMEO = Constant('SO_RCVTIMEO',20)
|
||||
SO_SNDTIMEO = Constant('SO_SNDTIMEO',21)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_SECURITY_AUTHENTICATION = Constant('SO_SECURITY_AUTHENTICATION',22)
|
||||
SO_SECURITY_ENCRYPTION_TRANSPORT = Constant('SO_SECURITY_ENCRYPTION_TRANSPORT',23)
|
||||
SO_SECURITY_ENCRYPTION_NETWORK = Constant('SO_SECURITY_ENCRYPTION_NETWORK',24)
|
||||
SO_BINDTODEVICE = Constant('SO_BINDTODEVICE',25)
|
||||
SO_ATTACH_FILTER = Constant('SO_ATTACH_FILTER',26)
|
||||
SO_DETACH_FILTER = Constant('SO_DETACH_FILTER',27)
|
||||
SO_GET_FILTER = Constant('SO_GET_FILTER',26)
|
||||
SO_PEERNAME = Constant('SO_PEERNAME',28)
|
||||
SO_TIMESTAMP = Constant('SO_TIMESTAMP',29)
|
||||
SCM_TIMESTAMP = Constant('SCM_TIMESTAMP',29)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_PEERSEC = Constant('SO_PEERSEC',31)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_PASSSEC = Constant('SO_PASSSEC',34)
|
||||
SO_TIMESTAMPNS = Constant('SO_TIMESTAMPNS',35)
|
||||
SCM_TIMESTAMPNS = Constant('SCM_TIMESTAMPNS',35)
|
||||
SO_MARK = Constant('SO_MARK',36)
|
||||
SO_TIMESTAMPING = Constant('SO_TIMESTAMPING',37)
|
||||
SCM_TIMESTAMPING = Constant('SCM_TIMESTAMPING',37)
|
||||
SO_PROTOCOL = Constant('SO_PROTOCOL',38)
|
||||
SO_DOMAIN = Constant('SO_DOMAIN',39)
|
||||
SO_RXQ_OVFL = Constant('SO_RXQ_OVFL',40)
|
||||
SO_WIFI_STATUS = Constant('SO_WIFI_STATUS',41)
|
||||
SCM_WIFI_STATUS = Constant('SCM_WIFI_STATUS',41)
|
||||
SO_PEEK_OFF = Constant('SO_PEEK_OFF',42)
|
||||
SO_NOFCS = Constant('SO_NOFCS',43)
|
||||
SO_LOCK_FILTER = Constant('SO_LOCK_FILTER',44)
|
||||
SO_SELECT_ERR_QUEUE = Constant('SO_SELECT_ERR_QUEUE',45)
|
||||
SO_BUSY_POLL = Constant('SO_BUSY_POLL',46)
|
||||
SO_MAX_PACING_RATE = Constant('SO_MAX_PACING_RATE',47)
|
||||
SO_BPF_EXTENSIONS = Constant('SO_BPF_EXTENSIONS',48)
|
||||
SO_INCOMING_CPU = Constant('SO_INCOMING_CPU',49)
|
||||
SO_ATTACH_BPF = Constant('SO_ATTACH_BPF',50)
|
||||
SO_DETACH_BPF = Constant('SO_DETACH_BPF',27)
|
||||
SO_ATTACH_REUSEPORT_CBPF = Constant('SO_ATTACH_REUSEPORT_CBPF',51)
|
||||
SO_ATTACH_REUSEPORT_EBPF = Constant('SO_ATTACH_REUSEPORT_EBPF',52)
|
||||
SO_CNX_ADVICE = Constant('SO_CNX_ADVICE',53)
|
||||
SCM_TIMESTAMPING_OPT_STATS = Constant('SCM_TIMESTAMPING_OPT_STATS',54)
|
||||
SO_MEMINFO = Constant('SO_MEMINFO',55)
|
||||
SO_INCOMING_NAPI_ID = Constant('SO_INCOMING_NAPI_ID',56)
|
||||
SO_COOKIE = Constant('SO_COOKIE',57)
|
||||
SCM_TIMESTAMPING_PKTINFO = Constant('SCM_TIMESTAMPING_PKTINFO',58)
|
||||
SO_PEERGROUPS = Constant('SO_PEERGROUPS',59)
|
||||
SO_ZEROCOPY = Constant('SO_ZEROCOPY',60)
|
||||
SOCK_STREAM = Constant('SOCK_STREAM',1)
|
||||
SOCK_DGRAM = Constant('SOCK_DGRAM',2)
|
||||
SOCK_RAW = Constant('SOCK_RAW',3)
|
||||
SOCK_RDM = Constant('SOCK_RDM',4)
|
||||
SOCK_SEQPACKET = Constant('SOCK_SEQPACKET',5)
|
||||
SOCK_DCCP = Constant('SOCK_DCCP',6)
|
||||
SOCK_PACKET = Constant('SOCK_PACKET',10)
|
||||
UIO_FASTIOV = Constant('UIO_FASTIOV',8)
|
||||
UIO_MAXIOV = Constant('UIO_MAXIOV',1024)
|
||||
@@ -640,7 +760,25 @@ AF_SNA = Constant('AF_SNA',22)
|
||||
AF_IRDA = Constant('AF_IRDA',23)
|
||||
AF_PPPOX = Constant('AF_PPPOX',24)
|
||||
AF_WANPIPE = Constant('AF_WANPIPE',25)
|
||||
AF_MAX = Constant('AF_MAX',32)
|
||||
AF_LLC = Constant('AF_LLC',26)
|
||||
AF_IB = Constant('AF_IB',27)
|
||||
AF_MPLS = Constant('AF_MPLS',28)
|
||||
AF_CAN = Constant('AF_CAN',29)
|
||||
AF_TIPC = Constant('AF_TIPC',30)
|
||||
AF_BLUETOOTH = Constant('AF_BLUETOOTH',31)
|
||||
AF_IUCV = Constant('AF_IUCV',32)
|
||||
AF_RXRPC = Constant('AF_RXRPC',33)
|
||||
AF_ISDN = Constant('AF_ISDN',34)
|
||||
AF_PHONET = Constant('AF_PHONET',35)
|
||||
AF_IEEE802154 = Constant('AF_IEEE802154',36)
|
||||
AF_CAIF = Constant('AF_CAIF',37)
|
||||
AF_ALG = Constant('AF_ALG',38)
|
||||
AF_NFC = Constant('AF_NFC',39)
|
||||
AF_VSOCK = Constant('AF_VSOCK',40)
|
||||
AF_KCM = Constant('AF_KCM',41)
|
||||
AF_QIPCRTR = Constant('AF_QIPCRTR',42)
|
||||
AF_SMC = Constant('AF_SMC',43)
|
||||
AF_MAX = Constant('AF_MAX',44)
|
||||
PF_UNSPEC = Constant('PF_UNSPEC',0)
|
||||
PF_UNIX = Constant('PF_UNIX',1)
|
||||
PF_LOCAL = Constant('PF_LOCAL',1)
|
||||
@@ -668,7 +806,25 @@ PF_SNA = Constant('PF_SNA',22)
|
||||
PF_IRDA = Constant('PF_IRDA',23)
|
||||
PF_PPPOX = Constant('PF_PPPOX',24)
|
||||
PF_WANPIPE = Constant('PF_WANPIPE',25)
|
||||
PF_MAX = Constant('PF_MAX',32)
|
||||
PF_LLC = Constant('PF_LLC',26)
|
||||
PF_IB = Constant('PF_IB',27)
|
||||
PF_MPLS = Constant('PF_MPLS',28)
|
||||
PF_CAN = Constant('PF_CAN',29)
|
||||
PF_TIPC = Constant('PF_TIPC',30)
|
||||
PF_BLUETOOTH = Constant('PF_BLUETOOTH',31)
|
||||
PF_IUCV = Constant('PF_IUCV',32)
|
||||
PF_RXRPC = Constant('PF_RXRPC',33)
|
||||
PF_ISDN = Constant('PF_ISDN',34)
|
||||
PF_PHONET = Constant('PF_PHONET',35)
|
||||
PF_IEEE802154 = Constant('PF_IEEE802154',36)
|
||||
PF_CAIF = Constant('PF_CAIF',37)
|
||||
PF_ALG = Constant('PF_ALG',38)
|
||||
PF_NFC = Constant('PF_NFC',39)
|
||||
PF_VSOCK = Constant('PF_VSOCK',40)
|
||||
PF_KCM = Constant('PF_KCM',41)
|
||||
PF_QIPCRTR = Constant('PF_QIPCRTR',42)
|
||||
PF_SMC = Constant('PF_SMC',43)
|
||||
PF_MAX = Constant('PF_MAX',44)
|
||||
SOMAXCONN = Constant('SOMAXCONN',128)
|
||||
MSG_OOB = Constant('MSG_OOB',1)
|
||||
MSG_PEEK = Constant('MSG_PEEK',2)
|
||||
@@ -681,18 +837,26 @@ MSG_DONTWAIT = Constant('MSG_DONTWAIT',0x40)
|
||||
MSG_EOR = Constant('MSG_EOR',0x80)
|
||||
MSG_WAITALL = Constant('MSG_WAITALL',0x100)
|
||||
MSG_FIN = Constant('MSG_FIN',0x200)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_SYN = Constant('MSG_SYN',0x400)
|
||||
MSG_CONFIRM = Constant('MSG_CONFIRM',0x800)
|
||||
MSG_RST = Constant('MSG_RST',0x1000)
|
||||
MSG_ERRQUEUE = Constant('MSG_ERRQUEUE',0x2000)
|
||||
MSG_NOSIGNAL = Constant('MSG_NOSIGNAL',0x4000)
|
||||
MSG_MORE = Constant('MSG_MORE',0x8000)
|
||||
MSG_WAITFORONE = Constant('MSG_WAITFORONE',0x10000)
|
||||
MSG_SENDPAGE_NOTLAST = Constant('MSG_SENDPAGE_NOTLAST',0x20000)
|
||||
MSG_BATCH = Constant('MSG_BATCH',0x40000)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_ZEROCOPY = Constant('MSG_ZEROCOPY',0x4000000)
|
||||
MSG_FASTOPEN = Constant('MSG_FASTOPEN',0x20000000)
|
||||
MSG_CMSG_CLOEXEC = Constant('MSG_CMSG_CLOEXEC',0x40000000)
|
||||
SOL_IP = Constant('SOL_IP',0)
|
||||
SOL_TCP = Constant('SOL_TCP',6)
|
||||
SOL_UDP = Constant('SOL_UDP',17)
|
||||
SOL_IPV6 = Constant('SOL_IPV6',41)
|
||||
SOL_ICMPV6 = Constant('SOL_ICMPV6',58)
|
||||
SOL_SCTP = Constant('SOL_SCTP',132)
|
||||
SOL_UDPLITE = Constant('SOL_UDPLITE',136)
|
||||
SOL_RAW = Constant('SOL_RAW',255)
|
||||
SOL_IPX = Constant('SOL_IPX',256)
|
||||
SOL_AX25 = Constant('SOL_AX25',257)
|
||||
@@ -705,6 +869,22 @@ SOL_PACKET = Constant('SOL_PACKET',263)
|
||||
SOL_ATM = Constant('SOL_ATM',264)
|
||||
SOL_AAL = Constant('SOL_AAL',265)
|
||||
SOL_IRDA = Constant('SOL_IRDA',266)
|
||||
SOL_NETBEUI = Constant('SOL_NETBEUI',267)
|
||||
SOL_LLC = Constant('SOL_LLC',268)
|
||||
SOL_DCCP = Constant('SOL_DCCP',269)
|
||||
SOL_NETLINK = Constant('SOL_NETLINK',270)
|
||||
SOL_TIPC = Constant('SOL_TIPC',271)
|
||||
SOL_RXRPC = Constant('SOL_RXRPC',272)
|
||||
SOL_PPPOL2TP = Constant('SOL_PPPOL2TP',273)
|
||||
SOL_BLUETOOTH = Constant('SOL_BLUETOOTH',274)
|
||||
SOL_PNPIPE = Constant('SOL_PNPIPE',275)
|
||||
SOL_RDS = Constant('SOL_RDS',276)
|
||||
SOL_IUCV = Constant('SOL_IUCV',277)
|
||||
SOL_CAIF = Constant('SOL_CAIF',278)
|
||||
SOL_ALG = Constant('SOL_ALG',279)
|
||||
SOL_NFC = Constant('SOL_NFC',280)
|
||||
SOL_KCM = Constant('SOL_KCM',281)
|
||||
SOL_TLS = Constant('SOL_TLS',282)
|
||||
IPX_TYPE = Constant('IPX_TYPE',1)
|
||||
SHUT_RD = Constant('SHUT_RD',0)
|
||||
SHUT_WR = Constant('SHUT_WR',1)
|
||||
@@ -728,6 +908,10 @@ EAI_SYSTEM = Constant('EAI_SYSTEM',-11)
|
||||
AI_NUMERICHOST = Constant('AI_NUMERICHOST',1)
|
||||
AI_CANONNAME = Constant('AI_CANONNAME',2)
|
||||
AI_PASSIVE = Constant('AI_PASSIVE',4)
|
||||
AI_NUMERICSERV = Constant('AI_NUMERICSERV',8)
|
||||
AI_ADDRCONFIG = Constant('AI_ADDRCONFIG',16)
|
||||
AI_V4MAPPED = Constant('AI_V4MAPPED',32)
|
||||
AI_ALL = Constant('AI_ALL',64)
|
||||
SIOCADDRT = Constant('SIOCADDRT',0x890B)
|
||||
SIOCDELRT = Constant('SIOCDELRT',0x890C)
|
||||
SIOCRTMSG = Constant('SIOCRTMSG',0x890D)
|
||||
@@ -784,6 +968,48 @@ SIOCSIFMAP = Constant('SIOCSIFMAP',0x8971)
|
||||
SIOCADDDLCI = Constant('SIOCADDDLCI',0x8980)
|
||||
SIOCDELDLCI = Constant('SIOCDELDLCI',0x8981)
|
||||
SIOCDEVPRIVATE = Constant('SIOCDEVPRIVATE',0x89F0)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
F_SETOWN_EX = Constant('F_SETOWN_EX',15)
|
||||
F_GETOWN_EX = Constant('F_GETOWN_EX',16)
|
||||
F_GETOWNER_UIDS = Constant('F_GETOWNER_UIDS',17)
|
||||
F_OFD_GETLK = Constant('F_OFD_GETLK',36)
|
||||
F_OFD_SETLK = Constant('F_OFD_SETLK',37)
|
||||
F_OFD_SETLKW = Constant('F_OFD_SETLKW',38)
|
||||
F_OWNER_TID = Constant('F_OWNER_TID',0)
|
||||
F_OWNER_PID = Constant('F_OWNER_PID',1)
|
||||
F_OWNER_PGRP = Constant('F_OWNER_PGRP',2)
|
||||
AT_FDCWD = Constant('AT_FDCWD',-100)
|
||||
AT_SYMLINK_NOFOLLOW = Constant('AT_SYMLINK_NOFOLLOW',0x100)
|
||||
AT_REMOVEDIR = Constant('AT_REMOVEDIR',0x200)
|
||||
AT_SYMLINK_FOLLOW = Constant('AT_SYMLINK_FOLLOW',0x400)
|
||||
AT_NO_AUTOMOUNT = Constant('AT_NO_AUTOMOUNT',0x800)
|
||||
AT_EMPTY_PATH = Constant('AT_EMPTY_PATH',0x1000)
|
||||
AT_EACCESS = Constant('AT_EACCESS',0x200)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_SEM = Constant('PROT_SEM',0x8)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
PROT_GROWSDOWN = Constant('PROT_GROWSDOWN',0x01000000)
|
||||
PROT_GROWSUP = Constant('PROT_GROWSUP',0x02000000)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_TYPE = Constant('MAP_TYPE',0xf)
|
||||
MADV_REMOVE = Constant('MADV_REMOVE',9)
|
||||
MADV_DONTFORK = Constant('MADV_DONTFORK',10)
|
||||
MADV_DOFORK = Constant('MADV_DOFORK',11)
|
||||
MADV_MERGEABLE = Constant('MADV_MERGEABLE',12)
|
||||
MADV_UNMERGEABLE = Constant('MADV_UNMERGEABLE',13)
|
||||
MADV_HUGEPAGE = Constant('MADV_HUGEPAGE',14)
|
||||
MADV_NOHUGEPAGE = Constant('MADV_NOHUGEPAGE',15)
|
||||
MADV_DONTDUMP = Constant('MADV_DONTDUMP',16)
|
||||
MADV_DODUMP = Constant('MADV_DODUMP',17)
|
||||
MADV_HWPOISON = Constant('MADV_HWPOISON',100)
|
||||
MADV_SOFT_OFFLINE = Constant('MADV_SOFT_OFFLINE',101)
|
||||
MLOCK_ONFAULT = Constant('MLOCK_ONFAULT',1)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
PTRACE_TRACEME = Constant('PTRACE_TRACEME',0)
|
||||
PTRACE_PEEKTEXT = Constant('PTRACE_PEEKTEXT',1)
|
||||
PTRACE_PEEKDATA = Constant('PTRACE_PEEKDATA',2)
|
||||
@@ -828,6 +1054,7 @@ PT_KILL = Constant('PT_KILL',8)
|
||||
PT_STEP = Constant('PT_STEP',9)
|
||||
PT_ATTACH = Constant('PT_ATTACH',0x10)
|
||||
PT_DETACH = Constant('PT_DETACH',0x11)
|
||||
SYS_accept4 = Constant('SYS_accept4',364)
|
||||
SYS_access = Constant('SYS_access',33)
|
||||
SYS_acct = Constant('SYS_acct',51)
|
||||
SYS_add_key = Constant('SYS_add_key',278)
|
||||
@@ -835,6 +1062,8 @@ SYS_adjtimex = Constant('SYS_adjtimex',124)
|
||||
SYS_afs_syscall = Constant('SYS_afs_syscall',137)
|
||||
SYS_alarm = Constant('SYS_alarm',27)
|
||||
SYS_bdflush = Constant('SYS_bdflush',134)
|
||||
SYS_bind = Constant('SYS_bind',361)
|
||||
SYS_bpf = Constant('SYS_bpf',351)
|
||||
SYS_brk = Constant('SYS_brk',45)
|
||||
SYS_capget = Constant('SYS_capget',184)
|
||||
SYS_capset = Constant('SYS_capset',185)
|
||||
@@ -842,28 +1071,38 @@ SYS_chdir = Constant('SYS_chdir',12)
|
||||
SYS_chmod = Constant('SYS_chmod',15)
|
||||
SYS_chown = Constant('SYS_chown',212)
|
||||
SYS_chroot = Constant('SYS_chroot',61)
|
||||
SYS_clock_adjtime = Constant('SYS_clock_adjtime',337)
|
||||
SYS_clock_getres = Constant('SYS_clock_getres',(254+7))
|
||||
SYS_clock_gettime = Constant('SYS_clock_gettime',(254+6))
|
||||
SYS_clock_nanosleep = Constant('SYS_clock_nanosleep',(254+8))
|
||||
SYS_clock_settime = Constant('SYS_clock_settime',(254+5))
|
||||
SYS_clone = Constant('SYS_clone',120)
|
||||
SYS_clone3 = Constant('SYS_clone3',435)
|
||||
SYS_close = Constant('SYS_close',6)
|
||||
SYS_connect = Constant('SYS_connect',362)
|
||||
SYS_copy_file_range = Constant('SYS_copy_file_range',375)
|
||||
SYS_creat = Constant('SYS_creat',8)
|
||||
SYS_create_module = Constant('SYS_create_module',127)
|
||||
SYS_delete_module = Constant('SYS_delete_module',129)
|
||||
SYS_dup = Constant('SYS_dup',41)
|
||||
SYS_dup2 = Constant('SYS_dup2',63)
|
||||
SYS_dup3 = Constant('SYS_dup3',326)
|
||||
SYS_epoll_create = Constant('SYS_epoll_create',249)
|
||||
SYS_epoll_create1 = Constant('SYS_epoll_create1',327)
|
||||
SYS_epoll_ctl = Constant('SYS_epoll_ctl',250)
|
||||
SYS_epoll_pwait = Constant('SYS_epoll_pwait',312)
|
||||
SYS_epoll_wait = Constant('SYS_epoll_wait',251)
|
||||
SYS_eventfd = Constant('SYS_eventfd',318)
|
||||
SYS_eventfd2 = Constant('SYS_eventfd2',323)
|
||||
SYS_execve = Constant('SYS_execve',11)
|
||||
SYS_execveat = Constant('SYS_execveat',354)
|
||||
SYS_exit = Constant('SYS_exit',1)
|
||||
SYS_exit_group = Constant('SYS_exit_group',248)
|
||||
SYS_faccessat = Constant('SYS_faccessat',300)
|
||||
SYS_fadvise64 = Constant('SYS_fadvise64',253)
|
||||
SYS_fallocate = Constant('SYS_fallocate',314)
|
||||
SYS_fanotify_init = Constant('SYS_fanotify_init',332)
|
||||
SYS_fanotify_mark = Constant('SYS_fanotify_mark',333)
|
||||
SYS_fchdir = Constant('SYS_fchdir',133)
|
||||
SYS_fchmod = Constant('SYS_fchmod',94)
|
||||
SYS_fchmodat = Constant('SYS_fchmodat',299)
|
||||
@@ -872,11 +1111,16 @@ SYS_fchownat = Constant('SYS_fchownat',291)
|
||||
SYS_fcntl = Constant('SYS_fcntl',55)
|
||||
SYS_fdatasync = Constant('SYS_fdatasync',148)
|
||||
SYS_fgetxattr = Constant('SYS_fgetxattr',229)
|
||||
SYS_finit_module = Constant('SYS_finit_module',344)
|
||||
SYS_flistxattr = Constant('SYS_flistxattr',232)
|
||||
SYS_flock = Constant('SYS_flock',143)
|
||||
SYS_fork = Constant('SYS_fork',2)
|
||||
SYS_fremovexattr = Constant('SYS_fremovexattr',235)
|
||||
SYS_fsconfig = Constant('SYS_fsconfig',431)
|
||||
SYS_fsetxattr = Constant('SYS_fsetxattr',226)
|
||||
SYS_fsmount = Constant('SYS_fsmount',432)
|
||||
SYS_fsopen = Constant('SYS_fsopen',430)
|
||||
SYS_fspick = Constant('SYS_fspick',433)
|
||||
SYS_fstat = Constant('SYS_fstat',108)
|
||||
SYS_fstatfs = Constant('SYS_fstatfs',100)
|
||||
SYS_fstatfs64 = Constant('SYS_fstatfs64',266)
|
||||
@@ -887,24 +1131,30 @@ SYS_futimesat = Constant('SYS_futimesat',292)
|
||||
SYS_getcpu = Constant('SYS_getcpu',311)
|
||||
SYS_getcwd = Constant('SYS_getcwd',183)
|
||||
SYS_getdents = Constant('SYS_getdents',141)
|
||||
SYS_getdents64 = Constant('SYS_getdents64',220)
|
||||
SYS_getegid = Constant('SYS_getegid',202)
|
||||
SYS_geteuid = Constant('SYS_geteuid',201)
|
||||
SYS_getgid = Constant('SYS_getgid',200)
|
||||
SYS_getgroups = Constant('SYS_getgroups',205)
|
||||
SYS_getitimer = Constant('SYS_getitimer',105)
|
||||
SYS_get_kernel_syms = Constant('SYS_get_kernel_syms',130)
|
||||
SYS_get_mempolicy = Constant('SYS_get_mempolicy',269)
|
||||
SYS_getpeername = Constant('SYS_getpeername',368)
|
||||
SYS_getpgid = Constant('SYS_getpgid',132)
|
||||
SYS_getpgrp = Constant('SYS_getpgrp',65)
|
||||
SYS_getpid = Constant('SYS_getpid',20)
|
||||
SYS_getpmsg = Constant('SYS_getpmsg',188)
|
||||
SYS_getppid = Constant('SYS_getppid',64)
|
||||
SYS_getpriority = Constant('SYS_getpriority',96)
|
||||
SYS_getrandom = Constant('SYS_getrandom',349)
|
||||
SYS_getresgid = Constant('SYS_getresgid',211)
|
||||
SYS_getresuid = Constant('SYS_getresuid',209)
|
||||
SYS_getrlimit = Constant('SYS_getrlimit',191)
|
||||
SYS_get_robust_list = Constant('SYS_get_robust_list',305)
|
||||
SYS_getrusage = Constant('SYS_getrusage',77)
|
||||
SYS_getsid = Constant('SYS_getsid',147)
|
||||
SYS_getsockname = Constant('SYS_getsockname',367)
|
||||
SYS_getsockopt = Constant('SYS_getsockopt',365)
|
||||
SYS_gettid = Constant('SYS_gettid',236)
|
||||
SYS_gettimeofday = Constant('SYS_gettimeofday',78)
|
||||
SYS_getuid = Constant('SYS_getuid',199)
|
||||
@@ -913,16 +1163,23 @@ SYS_idle = Constant('SYS_idle',112)
|
||||
SYS_init_module = Constant('SYS_init_module',128)
|
||||
SYS_inotify_add_watch = Constant('SYS_inotify_add_watch',285)
|
||||
SYS_inotify_init = Constant('SYS_inotify_init',284)
|
||||
SYS_inotify_init1 = Constant('SYS_inotify_init1',324)
|
||||
SYS_inotify_rm_watch = Constant('SYS_inotify_rm_watch',286)
|
||||
SYS_io_cancel = Constant('SYS_io_cancel',247)
|
||||
SYS_ioctl = Constant('SYS_ioctl',54)
|
||||
SYS_io_destroy = Constant('SYS_io_destroy',244)
|
||||
SYS_io_getevents = Constant('SYS_io_getevents',245)
|
||||
SYS_io_pgetevents = Constant('SYS_io_pgetevents',382)
|
||||
SYS_ioprio_get = Constant('SYS_ioprio_get',283)
|
||||
SYS_ioprio_set = Constant('SYS_ioprio_set',282)
|
||||
SYS_io_setup = Constant('SYS_io_setup',243)
|
||||
SYS_io_submit = Constant('SYS_io_submit',246)
|
||||
SYS_io_uring_enter = Constant('SYS_io_uring_enter',426)
|
||||
SYS_io_uring_register = Constant('SYS_io_uring_register',427)
|
||||
SYS_io_uring_setup = Constant('SYS_io_uring_setup',425)
|
||||
SYS_ipc = Constant('SYS_ipc',117)
|
||||
SYS_kcmp = Constant('SYS_kcmp',343)
|
||||
SYS_kexec_file_load = Constant('SYS_kexec_file_load',381)
|
||||
SYS_kexec_load = Constant('SYS_kexec_load',277)
|
||||
SYS_keyctl = Constant('SYS_keyctl',280)
|
||||
SYS_kill = Constant('SYS_kill',37)
|
||||
@@ -930,6 +1187,7 @@ SYS_lchown = Constant('SYS_lchown',198)
|
||||
SYS_lgetxattr = Constant('SYS_lgetxattr',228)
|
||||
SYS_link = Constant('SYS_link',9)
|
||||
SYS_linkat = Constant('SYS_linkat',296)
|
||||
SYS_listen = Constant('SYS_listen',363)
|
||||
SYS_listxattr = Constant('SYS_listxattr',230)
|
||||
SYS_llistxattr = Constant('SYS_llistxattr',231)
|
||||
SYS_lookup_dcookie = Constant('SYS_lookup_dcookie',110)
|
||||
@@ -938,15 +1196,22 @@ SYS_lseek = Constant('SYS_lseek',19)
|
||||
SYS_lsetxattr = Constant('SYS_lsetxattr',225)
|
||||
SYS_lstat = Constant('SYS_lstat',107)
|
||||
SYS_madvise = Constant('SYS_madvise',219)
|
||||
SYS_mbind = Constant('SYS_mbind',268)
|
||||
SYS_membarrier = Constant('SYS_membarrier',356)
|
||||
SYS_memfd_create = Constant('SYS_memfd_create',350)
|
||||
SYS_migrate_pages = Constant('SYS_migrate_pages',287)
|
||||
SYS_mincore = Constant('SYS_mincore',218)
|
||||
SYS_mkdir = Constant('SYS_mkdir',39)
|
||||
SYS_mkdirat = Constant('SYS_mkdirat',289)
|
||||
SYS_mknod = Constant('SYS_mknod',14)
|
||||
SYS_mknodat = Constant('SYS_mknodat',290)
|
||||
SYS_mlock = Constant('SYS_mlock',150)
|
||||
SYS_mlock2 = Constant('SYS_mlock2',374)
|
||||
SYS_mlockall = Constant('SYS_mlockall',152)
|
||||
SYS_mmap = Constant('SYS_mmap',90)
|
||||
SYS_mount = Constant('SYS_mount',21)
|
||||
SYS_move_mount = Constant('SYS_move_mount',429)
|
||||
SYS_move_pages = Constant('SYS_move_pages',310)
|
||||
SYS_mprotect = Constant('SYS_mprotect',125)
|
||||
SYS_mq_getsetattr = Constant('SYS_mq_getsetattr',276)
|
||||
SYS_mq_notify = Constant('SYS_mq_notify',275)
|
||||
@@ -955,28 +1220,51 @@ SYS_mq_timedreceive = Constant('SYS_mq_timedreceive',274)
|
||||
SYS_mq_timedsend = Constant('SYS_mq_timedsend',273)
|
||||
SYS_mq_unlink = Constant('SYS_mq_unlink',272)
|
||||
SYS_mremap = Constant('SYS_mremap',163)
|
||||
SYS_msgctl = Constant('SYS_msgctl',402)
|
||||
SYS_msgget = Constant('SYS_msgget',399)
|
||||
SYS_msgrcv = Constant('SYS_msgrcv',401)
|
||||
SYS_msgsnd = Constant('SYS_msgsnd',400)
|
||||
SYS_msync = Constant('SYS_msync',144)
|
||||
SYS_munlock = Constant('SYS_munlock',151)
|
||||
SYS_munlockall = Constant('SYS_munlockall',153)
|
||||
SYS_munmap = Constant('SYS_munmap',91)
|
||||
SYS_name_to_handle_at = Constant('SYS_name_to_handle_at',335)
|
||||
SYS_nanosleep = Constant('SYS_nanosleep',162)
|
||||
SYS_newfstatat = Constant('SYS_newfstatat',293)
|
||||
SYS_nfsservctl = Constant('SYS_nfsservctl',169)
|
||||
SYS_nice = Constant('SYS_nice',34)
|
||||
SYS_open = Constant('SYS_open',5)
|
||||
SYS_openat = Constant('SYS_openat',288)
|
||||
SYS_openat2 = Constant('SYS_openat2',437)
|
||||
SYS_open_by_handle_at = Constant('SYS_open_by_handle_at',336)
|
||||
SYS_open_tree = Constant('SYS_open_tree',428)
|
||||
SYS_pause = Constant('SYS_pause',29)
|
||||
SYS_perf_event_open = Constant('SYS_perf_event_open',331)
|
||||
SYS_personality = Constant('SYS_personality',136)
|
||||
SYS_pidfd_getfd = Constant('SYS_pidfd_getfd',438)
|
||||
SYS_pidfd_open = Constant('SYS_pidfd_open',434)
|
||||
SYS_pidfd_send_signal = Constant('SYS_pidfd_send_signal',424)
|
||||
SYS_pipe = Constant('SYS_pipe',42)
|
||||
SYS_pipe2 = Constant('SYS_pipe2',325)
|
||||
SYS_pivot_root = Constant('SYS_pivot_root',217)
|
||||
SYS_pkey_alloc = Constant('SYS_pkey_alloc',385)
|
||||
SYS_pkey_free = Constant('SYS_pkey_free',386)
|
||||
SYS_pkey_mprotect = Constant('SYS_pkey_mprotect',384)
|
||||
SYS_poll = Constant('SYS_poll',168)
|
||||
SYS_ppoll = Constant('SYS_ppoll',302)
|
||||
SYS_prctl = Constant('SYS_prctl',172)
|
||||
SYS_pread = Constant('SYS_pread',180)
|
||||
SYS_pread64 = Constant('SYS_pread64',180)
|
||||
SYS_preadv = Constant('SYS_preadv',328)
|
||||
SYS_preadv2 = Constant('SYS_preadv2',376)
|
||||
SYS_prlimit64 = Constant('SYS_prlimit64',334)
|
||||
SYS_process_vm_readv = Constant('SYS_process_vm_readv',340)
|
||||
SYS_process_vm_writev = Constant('SYS_process_vm_writev',341)
|
||||
SYS_pselect6 = Constant('SYS_pselect6',301)
|
||||
SYS_ptrace = Constant('SYS_ptrace',26)
|
||||
SYS_putpmsg = Constant('SYS_putpmsg',189)
|
||||
SYS_pwrite = Constant('SYS_pwrite',181)
|
||||
SYS_pwrite64 = Constant('SYS_pwrite64',181)
|
||||
SYS_pwritev = Constant('SYS_pwritev',329)
|
||||
SYS_pwritev2 = Constant('SYS_pwritev2',377)
|
||||
SYS_query_module = Constant('SYS_query_module',167)
|
||||
SYS_quotactl = Constant('SYS_quotactl',131)
|
||||
SYS_read = Constant('SYS_read',3)
|
||||
@@ -986,12 +1274,18 @@ SYS_readlink = Constant('SYS_readlink',85)
|
||||
SYS_readlinkat = Constant('SYS_readlinkat',298)
|
||||
SYS_readv = Constant('SYS_readv',145)
|
||||
SYS_reboot = Constant('SYS_reboot',88)
|
||||
SYS_recvfrom = Constant('SYS_recvfrom',371)
|
||||
SYS_recvmmsg = Constant('SYS_recvmmsg',357)
|
||||
SYS_recvmsg = Constant('SYS_recvmsg',372)
|
||||
SYS_remap_file_pages = Constant('SYS_remap_file_pages',267)
|
||||
SYS_removexattr = Constant('SYS_removexattr',233)
|
||||
SYS_rename = Constant('SYS_rename',38)
|
||||
SYS_renameat = Constant('SYS_renameat',295)
|
||||
SYS_renameat2 = Constant('SYS_renameat2',347)
|
||||
SYS_request_key = Constant('SYS_request_key',279)
|
||||
SYS_restart_syscall = Constant('SYS_restart_syscall',7)
|
||||
SYS_rmdir = Constant('SYS_rmdir',40)
|
||||
SYS_rseq = Constant('SYS_rseq',383)
|
||||
SYS_rt_sigaction = Constant('SYS_rt_sigaction',174)
|
||||
SYS_rt_sigpending = Constant('SYS_rt_sigpending',176)
|
||||
SYS_rt_sigprocmask = Constant('SYS_rt_sigprocmask',175)
|
||||
@@ -999,18 +1293,33 @@ SYS_rt_sigqueueinfo = Constant('SYS_rt_sigqueueinfo',178)
|
||||
SYS_rt_sigreturn = Constant('SYS_rt_sigreturn',173)
|
||||
SYS_rt_sigsuspend = Constant('SYS_rt_sigsuspend',179)
|
||||
SYS_rt_sigtimedwait = Constant('SYS_rt_sigtimedwait',177)
|
||||
SYS_rt_tgsigqueueinfo = Constant('SYS_rt_tgsigqueueinfo',330)
|
||||
SYS_s390_guarded_storage = Constant('SYS_s390_guarded_storage',378)
|
||||
SYS_s390_pci_mmio_read = Constant('SYS_s390_pci_mmio_read',353)
|
||||
SYS_s390_pci_mmio_write = Constant('SYS_s390_pci_mmio_write',352)
|
||||
SYS_s390_runtime_instr = Constant('SYS_s390_runtime_instr',342)
|
||||
SYS_s390_sthyi = Constant('SYS_s390_sthyi',380)
|
||||
SYS_sched_getaffinity = Constant('SYS_sched_getaffinity',240)
|
||||
SYS_sched_getattr = Constant('SYS_sched_getattr',346)
|
||||
SYS_sched_getparam = Constant('SYS_sched_getparam',155)
|
||||
SYS_sched_get_priority_max = Constant('SYS_sched_get_priority_max',159)
|
||||
SYS_sched_get_priority_min = Constant('SYS_sched_get_priority_min',160)
|
||||
SYS_sched_getscheduler = Constant('SYS_sched_getscheduler',157)
|
||||
SYS_sched_rr_get_interval = Constant('SYS_sched_rr_get_interval',161)
|
||||
SYS_sched_setaffinity = Constant('SYS_sched_setaffinity',239)
|
||||
SYS_sched_setattr = Constant('SYS_sched_setattr',345)
|
||||
SYS_sched_setparam = Constant('SYS_sched_setparam',154)
|
||||
SYS_sched_setscheduler = Constant('SYS_sched_setscheduler',156)
|
||||
SYS_sched_yield = Constant('SYS_sched_yield',158)
|
||||
SYS_seccomp = Constant('SYS_seccomp',348)
|
||||
SYS_select = Constant('SYS_select',142)
|
||||
SYS_semctl = Constant('SYS_semctl',394)
|
||||
SYS_semget = Constant('SYS_semget',393)
|
||||
SYS_semtimedop = Constant('SYS_semtimedop',392)
|
||||
SYS_sendfile = Constant('SYS_sendfile',187)
|
||||
SYS_sendmmsg = Constant('SYS_sendmmsg',358)
|
||||
SYS_sendmsg = Constant('SYS_sendmsg',370)
|
||||
SYS_sendto = Constant('SYS_sendto',369)
|
||||
SYS_setdomainname = Constant('SYS_setdomainname',121)
|
||||
SYS_setfsgid = Constant('SYS_setfsgid',216)
|
||||
SYS_setfsuid = Constant('SYS_setfsuid',215)
|
||||
@@ -1018,6 +1327,8 @@ SYS_setgid = Constant('SYS_setgid',214)
|
||||
SYS_setgroups = Constant('SYS_setgroups',206)
|
||||
SYS_sethostname = Constant('SYS_sethostname',74)
|
||||
SYS_setitimer = Constant('SYS_setitimer',104)
|
||||
SYS_set_mempolicy = Constant('SYS_set_mempolicy',270)
|
||||
SYS_setns = Constant('SYS_setns',339)
|
||||
SYS_setpgid = Constant('SYS_setpgid',57)
|
||||
SYS_setpriority = Constant('SYS_setpriority',97)
|
||||
SYS_setregid = Constant('SYS_setregid',204)
|
||||
@@ -1027,29 +1338,40 @@ SYS_setreuid = Constant('SYS_setreuid',203)
|
||||
SYS_setrlimit = Constant('SYS_setrlimit',75)
|
||||
SYS_set_robust_list = Constant('SYS_set_robust_list',304)
|
||||
SYS_setsid = Constant('SYS_setsid',66)
|
||||
SYS_setsockopt = Constant('SYS_setsockopt',366)
|
||||
SYS_set_tid_address = Constant('SYS_set_tid_address',252)
|
||||
SYS_settimeofday = Constant('SYS_settimeofday',79)
|
||||
SYS_setuid = Constant('SYS_setuid',213)
|
||||
SYS_setxattr = Constant('SYS_setxattr',224)
|
||||
SYS_shmat = Constant('SYS_shmat',397)
|
||||
SYS_shmctl = Constant('SYS_shmctl',396)
|
||||
SYS_shmdt = Constant('SYS_shmdt',398)
|
||||
SYS_shmget = Constant('SYS_shmget',395)
|
||||
SYS_shutdown = Constant('SYS_shutdown',373)
|
||||
SYS_sigaction = Constant('SYS_sigaction',67)
|
||||
SYS_sigaltstack = Constant('SYS_sigaltstack',186)
|
||||
SYS_signal = Constant('SYS_signal',48)
|
||||
SYS_signalfd = Constant('SYS_signalfd',316)
|
||||
SYS_signalfd4 = Constant('SYS_signalfd4',322)
|
||||
SYS_sigpending = Constant('SYS_sigpending',73)
|
||||
SYS_sigprocmask = Constant('SYS_sigprocmask',126)
|
||||
SYS_sigreturn = Constant('SYS_sigreturn',119)
|
||||
SYS_sigsuspend = Constant('SYS_sigsuspend',72)
|
||||
SYS_socket = Constant('SYS_socket',359)
|
||||
SYS_socketcall = Constant('SYS_socketcall',102)
|
||||
SYS_socketpair = Constant('SYS_socketpair',360)
|
||||
SYS_splice = Constant('SYS_splice',306)
|
||||
SYS_stat = Constant('SYS_stat',106)
|
||||
SYS_statfs = Constant('SYS_statfs',99)
|
||||
SYS_statfs64 = Constant('SYS_statfs64',265)
|
||||
SYS_statx = Constant('SYS_statx',379)
|
||||
SYS_swapoff = Constant('SYS_swapoff',115)
|
||||
SYS_swapon = Constant('SYS_swapon',87)
|
||||
SYS_symlink = Constant('SYS_symlink',83)
|
||||
SYS_symlinkat = Constant('SYS_symlinkat',297)
|
||||
SYS_sync = Constant('SYS_sync',36)
|
||||
SYS_sync_file_range = Constant('SYS_sync_file_range',307)
|
||||
SYS_syncfs = Constant('SYS_syncfs',338)
|
||||
SYS__sysctl = Constant('SYS__sysctl',149)
|
||||
SYS_sysfs = Constant('SYS_sysfs',135)
|
||||
SYS_sysinfo = Constant('SYS_sysinfo',116)
|
||||
@@ -1076,6 +1398,7 @@ SYS_unlink = Constant('SYS_unlink',10)
|
||||
SYS_unlinkat = Constant('SYS_unlinkat',294)
|
||||
SYS_unshare = Constant('SYS_unshare',303)
|
||||
SYS_uselib = Constant('SYS_uselib',86)
|
||||
SYS_userfaultfd = Constant('SYS_userfaultfd',355)
|
||||
SYS_ustat = Constant('SYS_ustat',62)
|
||||
SYS_utime = Constant('SYS_utime',30)
|
||||
SYS_utimensat = Constant('SYS_utimensat',315)
|
||||
|
||||
+469
-91
@@ -1,5 +1,4 @@
|
||||
from pwnlib.constants.constant import Constant
|
||||
|
||||
__NR_exit = Constant('__NR_exit',1)
|
||||
__NR_fork = Constant('__NR_fork',2)
|
||||
__NR_read = Constant('__NR_read',3)
|
||||
@@ -306,6 +305,98 @@ __NR_eventfd = Constant('__NR_eventfd',313)
|
||||
__NR_fallocate = Constant('__NR_fallocate',314)
|
||||
__NR_timerfd_settime = Constant('__NR_timerfd_settime',315)
|
||||
__NR_timerfd_gettime = Constant('__NR_timerfd_gettime',316)
|
||||
__NR_signalfd4 = Constant('__NR_signalfd4',317)
|
||||
__NR_eventfd2 = Constant('__NR_eventfd2',318)
|
||||
__NR_epoll_create1 = Constant('__NR_epoll_create1',319)
|
||||
__NR_dup3 = Constant('__NR_dup3',320)
|
||||
__NR_pipe2 = Constant('__NR_pipe2',321)
|
||||
__NR_inotify_init1 = Constant('__NR_inotify_init1',322)
|
||||
__NR_accept4 = Constant('__NR_accept4',323)
|
||||
__NR_preadv = Constant('__NR_preadv',324)
|
||||
__NR_pwritev = Constant('__NR_pwritev',325)
|
||||
__NR_rt_tgsigqueueinfo = Constant('__NR_rt_tgsigqueueinfo',326)
|
||||
__NR_perf_event_open = Constant('__NR_perf_event_open',327)
|
||||
__NR_recvmmsg = Constant('__NR_recvmmsg',328)
|
||||
__NR_fanotify_init = Constant('__NR_fanotify_init',329)
|
||||
__NR_fanotify_mark = Constant('__NR_fanotify_mark',330)
|
||||
__NR_prlimit64 = Constant('__NR_prlimit64',331)
|
||||
__NR_name_to_handle_at = Constant('__NR_name_to_handle_at',332)
|
||||
__NR_open_by_handle_at = Constant('__NR_open_by_handle_at',333)
|
||||
__NR_clock_adjtime = Constant('__NR_clock_adjtime',334)
|
||||
__NR_syncfs = Constant('__NR_syncfs',335)
|
||||
__NR_sendmmsg = Constant('__NR_sendmmsg',336)
|
||||
__NR_setns = Constant('__NR_setns',337)
|
||||
__NR_process_vm_readv = Constant('__NR_process_vm_readv',338)
|
||||
__NR_process_vm_writev = Constant('__NR_process_vm_writev',339)
|
||||
__NR_kern_features = Constant('__NR_kern_features',340)
|
||||
__NR_kcmp = Constant('__NR_kcmp',341)
|
||||
__NR_finit_module = Constant('__NR_finit_module',342)
|
||||
__NR_sched_setattr = Constant('__NR_sched_setattr',343)
|
||||
__NR_sched_getattr = Constant('__NR_sched_getattr',344)
|
||||
__NR_renameat2 = Constant('__NR_renameat2',345)
|
||||
__NR_seccomp = Constant('__NR_seccomp',346)
|
||||
__NR_getrandom = Constant('__NR_getrandom',347)
|
||||
__NR_memfd_create = Constant('__NR_memfd_create',348)
|
||||
__NR_bpf = Constant('__NR_bpf',349)
|
||||
__NR_execveat = Constant('__NR_execveat',350)
|
||||
__NR_membarrier = Constant('__NR_membarrier',351)
|
||||
__NR_userfaultfd = Constant('__NR_userfaultfd',352)
|
||||
__NR_bind = Constant('__NR_bind',353)
|
||||
__NR_listen = Constant('__NR_listen',354)
|
||||
__NR_setsockopt = Constant('__NR_setsockopt',355)
|
||||
__NR_mlock2 = Constant('__NR_mlock2',356)
|
||||
__NR_copy_file_range = Constant('__NR_copy_file_range',357)
|
||||
__NR_preadv2 = Constant('__NR_preadv2',358)
|
||||
__NR_pwritev2 = Constant('__NR_pwritev2',359)
|
||||
__NR_statx = Constant('__NR_statx',360)
|
||||
__NR_io_pgetevents = Constant('__NR_io_pgetevents',361)
|
||||
__NR_pkey_mprotect = Constant('__NR_pkey_mprotect',362)
|
||||
__NR_pkey_alloc = Constant('__NR_pkey_alloc',363)
|
||||
__NR_pkey_free = Constant('__NR_pkey_free',364)
|
||||
__NR_rseq = Constant('__NR_rseq',365)
|
||||
__NR_semget = Constant('__NR_semget',393)
|
||||
__NR_semctl = Constant('__NR_semctl',394)
|
||||
__NR_shmget = Constant('__NR_shmget',395)
|
||||
__NR_shmctl = Constant('__NR_shmctl',396)
|
||||
__NR_shmat = Constant('__NR_shmat',397)
|
||||
__NR_shmdt = Constant('__NR_shmdt',398)
|
||||
__NR_msgget = Constant('__NR_msgget',399)
|
||||
__NR_msgsnd = Constant('__NR_msgsnd',400)
|
||||
__NR_msgrcv = Constant('__NR_msgrcv',401)
|
||||
__NR_msgctl = Constant('__NR_msgctl',402)
|
||||
__NR_clock_gettime64 = Constant('__NR_clock_gettime64',403)
|
||||
__NR_clock_settime64 = Constant('__NR_clock_settime64',404)
|
||||
__NR_clock_adjtime64 = Constant('__NR_clock_adjtime64',405)
|
||||
__NR_clock_getres_time64 = Constant('__NR_clock_getres_time64',406)
|
||||
__NR_clock_nanosleep_time64 = Constant('__NR_clock_nanosleep_time64',407)
|
||||
__NR_timer_gettime64 = Constant('__NR_timer_gettime64',408)
|
||||
__NR_timer_settime64 = Constant('__NR_timer_settime64',409)
|
||||
__NR_timerfd_gettime64 = Constant('__NR_timerfd_gettime64',410)
|
||||
__NR_timerfd_settime64 = Constant('__NR_timerfd_settime64',411)
|
||||
__NR_utimensat_time64 = Constant('__NR_utimensat_time64',412)
|
||||
__NR_pselect6_time64 = Constant('__NR_pselect6_time64',413)
|
||||
__NR_ppoll_time64 = Constant('__NR_ppoll_time64',414)
|
||||
__NR_io_pgetevents_time64 = Constant('__NR_io_pgetevents_time64',416)
|
||||
__NR_recvmmsg_time64 = Constant('__NR_recvmmsg_time64',417)
|
||||
__NR_mq_timedsend_time64 = Constant('__NR_mq_timedsend_time64',418)
|
||||
__NR_mq_timedreceive_time64 = Constant('__NR_mq_timedreceive_time64',419)
|
||||
__NR_semtimedop_time64 = Constant('__NR_semtimedop_time64',420)
|
||||
__NR_rt_sigtimedwait_time64 = Constant('__NR_rt_sigtimedwait_time64',421)
|
||||
__NR_futex_time64 = Constant('__NR_futex_time64',422)
|
||||
__NR_sched_rr_get_interval_time64 = Constant('__NR_sched_rr_get_interval_time64',423)
|
||||
__NR_pidfd_send_signal = Constant('__NR_pidfd_send_signal',424)
|
||||
__NR_io_uring_setup = Constant('__NR_io_uring_setup',425)
|
||||
__NR_io_uring_enter = Constant('__NR_io_uring_enter',426)
|
||||
__NR_io_uring_register = Constant('__NR_io_uring_register',427)
|
||||
__NR_open_tree = Constant('__NR_open_tree',428)
|
||||
__NR_move_mount = Constant('__NR_move_mount',429)
|
||||
__NR_fsopen = Constant('__NR_fsopen',430)
|
||||
__NR_fsconfig = Constant('__NR_fsconfig',431)
|
||||
__NR_fsmount = Constant('__NR_fsmount',432)
|
||||
__NR_fspick = Constant('__NR_fspick',433)
|
||||
__NR_pidfd_open = Constant('__NR_pidfd_open',434)
|
||||
__NR_openat2 = Constant('__NR_openat2',437)
|
||||
__NR_pidfd_getfd = Constant('__NR_pidfd_getfd',438)
|
||||
MAP_32BIT = Constant('MAP_32BIT',0x40)
|
||||
INADDR_ANY = Constant('INADDR_ANY',0)
|
||||
INADDR_BROADCAST = Constant('INADDR_BROADCAST',0xffffffff)
|
||||
@@ -443,7 +534,11 @@ ENOKEY = Constant('ENOKEY',128)
|
||||
EKEYEXPIRED = Constant('EKEYEXPIRED',129)
|
||||
EKEYREVOKED = Constant('EKEYREVOKED',130)
|
||||
EKEYREJECTED = Constant('EKEYREJECTED',131)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((131) + 1))
|
||||
EOWNERDEAD = Constant('EOWNERDEAD',132)
|
||||
ENOTRECOVERABLE = Constant('ENOTRECOVERABLE',133)
|
||||
ERFKILL = Constant('ERFKILL',134)
|
||||
EHWPOISON = Constant('EHWPOISON',135)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((135) + 1))
|
||||
__LITTLE_ENDIAN = Constant('__LITTLE_ENDIAN',1234)
|
||||
__BIG_ENDIAN = Constant('__BIG_ENDIAN',4321)
|
||||
__BYTE_ORDER = Constant('__BYTE_ORDER',4321)
|
||||
@@ -452,9 +547,55 @@ LITTLE_ENDIAN = Constant('LITTLE_ENDIAN',1234)
|
||||
BIG_ENDIAN = Constant('BIG_ENDIAN',4321)
|
||||
BYTE_ORDER = Constant('BYTE_ORDER',4321)
|
||||
__WORDSIZE = Constant('__WORDSIZE',32)
|
||||
INT8_MAX = Constant('INT8_MAX',(127))
|
||||
INT16_MAX = Constant('INT16_MAX',(32767))
|
||||
INT32_MAX = Constant('INT32_MAX',(2147483647))
|
||||
INT64_MAX = Constant('INT64_MAX',(9223372036854775807))
|
||||
INT8_MIN = Constant('INT8_MIN',(-1 - (127)))
|
||||
INT16_MIN = Constant('INT16_MIN',(-1 - (32767)))
|
||||
INT32_MIN = Constant('INT32_MIN',(-1 - (2147483647)))
|
||||
INT64_MIN = Constant('INT64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_LEAST8_MAX = Constant('INT_LEAST8_MAX',(127))
|
||||
INT_LEAST8_MIN = Constant('INT_LEAST8_MIN',(-1 - (127)))
|
||||
INT_LEAST16_MAX = Constant('INT_LEAST16_MAX',(32767))
|
||||
INT_LEAST16_MIN = Constant('INT_LEAST16_MIN',(-1 - (32767)))
|
||||
INT_LEAST32_MAX = Constant('INT_LEAST32_MAX',(2147483647))
|
||||
INT_LEAST32_MIN = Constant('INT_LEAST32_MIN',(-1 - (2147483647)))
|
||||
INT_LEAST64_MAX = Constant('INT_LEAST64_MAX',(9223372036854775807))
|
||||
INT_LEAST64_MIN = Constant('INT_LEAST64_MIN',(-1 - (9223372036854775807)))
|
||||
UINT8_MAX = Constant('UINT8_MAX',0xff)
|
||||
UINT16_MAX = Constant('UINT16_MAX',0xffff)
|
||||
UINT32_MAX = Constant('UINT32_MAX',0xffffffff)
|
||||
UINT64_MAX = Constant('UINT64_MAX',0xffffffffffffffff)
|
||||
UINT_LEAST8_MAX = Constant('UINT_LEAST8_MAX',0xff)
|
||||
UINT_LEAST16_MAX = Constant('UINT_LEAST16_MAX',0xffff)
|
||||
UINT_LEAST32_MAX = Constant('UINT_LEAST32_MAX',0xffffffff)
|
||||
UINT_LEAST64_MAX = Constant('UINT_LEAST64_MAX',0xffffffffffffffff)
|
||||
INTPTR_MIN = Constant('INTPTR_MIN',(-1 - (2147483647)))
|
||||
INTPTR_MAX = Constant('INTPTR_MAX',(2147483647))
|
||||
UINTPTR_MAX = Constant('UINTPTR_MAX',0xffffffff)
|
||||
SIZE_MAX = Constant('SIZE_MAX',0xffffffff)
|
||||
PTRDIFF_MIN = Constant('PTRDIFF_MIN',(-1 - (2147483647)))
|
||||
PTRDIFF_MAX = Constant('PTRDIFF_MAX',(2147483647))
|
||||
INTMAX_MIN = Constant('INTMAX_MIN',(-1 - (9223372036854775807)))
|
||||
INTMAX_MAX = Constant('INTMAX_MAX',(9223372036854775807))
|
||||
UINTMAX_MAX = Constant('UINTMAX_MAX',0xffffffffffffffff)
|
||||
INT_FAST8_MIN = Constant('INT_FAST8_MIN',(-1 - (127)))
|
||||
INT_FAST8_MAX = Constant('INT_FAST8_MAX',(127))
|
||||
INT_FAST64_MIN = Constant('INT_FAST64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST64_MAX = Constant('INT_FAST64_MAX',(9223372036854775807))
|
||||
UINT_FAST8_MAX = Constant('UINT_FAST8_MAX',0xff)
|
||||
UINT_FAST64_MAX = Constant('UINT_FAST64_MAX',0xffffffffffffffff)
|
||||
INT_FAST16_MIN = Constant('INT_FAST16_MIN',(-1 - (2147483647)))
|
||||
INT_FAST16_MAX = Constant('INT_FAST16_MAX',(2147483647))
|
||||
UINT_FAST16_MAX = Constant('UINT_FAST16_MAX',0xffffffff)
|
||||
INT_FAST32_MIN = Constant('INT_FAST32_MIN',(-1 - (2147483647)))
|
||||
INT_FAST32_MAX = Constant('INT_FAST32_MAX',(2147483647))
|
||||
UINT_FAST32_MAX = Constant('UINT_FAST32_MAX',0xffffffff)
|
||||
WINT_MIN = Constant('WINT_MIN',0)
|
||||
__FSUID_H = Constant('__FSUID_H',1)
|
||||
NSIG = Constant('NSIG',32)
|
||||
_NSIG = Constant('_NSIG',64)
|
||||
_NSIG = Constant('_NSIG',65)
|
||||
SIGHUP = Constant('SIGHUP',1)
|
||||
SIGINT = Constant('SIGINT',2)
|
||||
SIGQUIT = Constant('SIGQUIT',3)
|
||||
@@ -492,7 +633,7 @@ SIGCLD = Constant('SIGCLD',20)
|
||||
SIGPOLL = Constant('SIGPOLL',23)
|
||||
SIGLOST = Constant('SIGLOST',29)
|
||||
SIGRTMIN = Constant('SIGRTMIN',32)
|
||||
SIGRTMAX = Constant('SIGRTMAX',(64-1))
|
||||
SIGRTMAX = Constant('SIGRTMAX',(65-1))
|
||||
SV_SSTACK = Constant('SV_SSTACK',1)
|
||||
SV_INTR = Constant('SV_INTR',2)
|
||||
SV_RESET = Constant('SV_RESET',4)
|
||||
@@ -568,6 +709,8 @@ _SC_PAGESIZE = Constant('_SC_PAGESIZE',5)
|
||||
_SC_NPROCESSORS_ONLN = Constant('_SC_NPROCESSORS_ONLN',6)
|
||||
_SC_NPROCESSORS_CONF = Constant('_SC_NPROCESSORS_CONF',6)
|
||||
_SC_PHYS_PAGES = Constant('_SC_PHYS_PAGES',7)
|
||||
_SC_GETPW_R_SIZE_MAX = Constant('_SC_GETPW_R_SIZE_MAX',8)
|
||||
_SC_GETGR_R_SIZE_MAX = Constant('_SC_GETGR_R_SIZE_MAX',9)
|
||||
_PC_PATH_MAX = Constant('_PC_PATH_MAX',1)
|
||||
_PC_VDISABLE = Constant('_PC_VDISABLE',2)
|
||||
L_cuserid = Constant('L_cuserid',17)
|
||||
@@ -576,6 +719,7 @@ F_ULOCK = Constant('F_ULOCK',0)
|
||||
F_LOCK = Constant('F_LOCK',1)
|
||||
F_TLOCK = Constant('F_TLOCK',2)
|
||||
F_TEST = Constant('F_TEST',3)
|
||||
_POSIX_MAPPED_FILES = Constant('_POSIX_MAPPED_FILES',200809)
|
||||
S_IFMT = Constant('S_IFMT',0o0170000)
|
||||
S_IFSOCK = Constant('S_IFSOCK',0o140000)
|
||||
S_IFLNK = Constant('S_IFLNK',0o120000)
|
||||
@@ -602,88 +746,7 @@ S_IXOTH = Constant('S_IXOTH',0o0001)
|
||||
S_IREAD = Constant('S_IREAD',0o0400)
|
||||
S_IWRITE = Constant('S_IWRITE',0o0200)
|
||||
S_IEXEC = Constant('S_IEXEC',0o0100)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
O_RDONLY = Constant('O_RDONLY',0x0000)
|
||||
O_WRONLY = Constant('O_WRONLY',0x0001)
|
||||
O_RDWR = Constant('O_RDWR',0x0002)
|
||||
O_ACCMODE = Constant('O_ACCMODE',0x0003)
|
||||
O_APPEND = Constant('O_APPEND',0x0008)
|
||||
FASYNC = Constant('FASYNC',0x0040)
|
||||
O_CREAT = Constant('O_CREAT',0x0200)
|
||||
O_TRUNC = Constant('O_TRUNC',0x0400)
|
||||
O_EXCL = Constant('O_EXCL',0x0800)
|
||||
O_SYNC = Constant('O_SYNC',0x2000)
|
||||
O_NONBLOCK = Constant('O_NONBLOCK',0x4000)
|
||||
O_NDELAY = Constant('O_NDELAY',(0x0004 | 0x4000))
|
||||
O_NOCTTY = Constant('O_NOCTTY',0x8000)
|
||||
O_DIRECTORY = Constant('O_DIRECTORY',0x10000)
|
||||
O_NOFOLLOW = Constant('O_NOFOLLOW',0x20000)
|
||||
O_LARGEFILE = Constant('O_LARGEFILE',0x40000)
|
||||
O_DIRECT = Constant('O_DIRECT',0x100000)
|
||||
O_NOATIME = Constant('O_NOATIME',0x200000)
|
||||
F_DUPFD = Constant('F_DUPFD',0)
|
||||
F_GETFD = Constant('F_GETFD',1)
|
||||
F_SETFD = Constant('F_SETFD',2)
|
||||
F_GETFL = Constant('F_GETFL',3)
|
||||
F_SETFL = Constant('F_SETFL',4)
|
||||
F_GETOWN = Constant('F_GETOWN',5)
|
||||
F_SETOWN = Constant('F_SETOWN',6)
|
||||
F_GETLK = Constant('F_GETLK',7)
|
||||
F_SETLK = Constant('F_SETLK',8)
|
||||
F_SETLKW = Constant('F_SETLKW',9)
|
||||
F_SETSIG = Constant('F_SETSIG',10)
|
||||
F_GETSIG = Constant('F_GETSIG',11)
|
||||
F_GETLK64 = Constant('F_GETLK64',12)
|
||||
F_SETLK64 = Constant('F_SETLK64',13)
|
||||
F_SETLKW64 = Constant('F_SETLKW64',14)
|
||||
FD_CLOEXEC = Constant('FD_CLOEXEC',1)
|
||||
F_RDLCK = Constant('F_RDLCK',1)
|
||||
F_WRLCK = Constant('F_WRLCK',2)
|
||||
F_UNLCK = Constant('F_UNLCK',3)
|
||||
F_EXLCK = Constant('F_EXLCK',4)
|
||||
F_SHLCK = Constant('F_SHLCK',8)
|
||||
F_INPROGRESS = Constant('F_INPROGRESS',16)
|
||||
LOCK_SH = Constant('LOCK_SH',1)
|
||||
LOCK_EX = Constant('LOCK_EX',2)
|
||||
LOCK_NB = Constant('LOCK_NB',4)
|
||||
LOCK_UN = Constant('LOCK_UN',8)
|
||||
LOCK_MAND = Constant('LOCK_MAND',32)
|
||||
LOCK_READ = Constant('LOCK_READ',64)
|
||||
LOCK_WRITE = Constant('LOCK_WRITE',128)
|
||||
LOCK_RW = Constant('LOCK_RW',192)
|
||||
O_ASYNC = Constant('O_ASYNC',0x0040)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_FIXED = Constant('MAP_FIXED',0x10)
|
||||
MAP_ANONYMOUS = Constant('MAP_ANONYMOUS',0x20)
|
||||
MAP_RENAME = Constant('MAP_RENAME',0x20)
|
||||
MAP_NORESERVE = Constant('MAP_NORESERVE',0x40)
|
||||
MAP_INHERIT = Constant('MAP_INHERIT',0x80)
|
||||
MAP_LOCKED = Constant('MAP_LOCKED',0x100)
|
||||
_MAP_NEW = Constant('_MAP_NEW',0x80000000)
|
||||
MAP_GROWSDOWN = Constant('MAP_GROWSDOWN',0x0100)
|
||||
MAP_DENYWRITE = Constant('MAP_DENYWRITE',0x0800)
|
||||
MAP_EXECUTABLE = Constant('MAP_EXECUTABLE',0x1000)
|
||||
MAP_POPULATE = Constant('MAP_POPULATE',0x8000)
|
||||
MS_ASYNC = Constant('MS_ASYNC',1)
|
||||
MS_INVALIDATE = Constant('MS_INVALIDATE',2)
|
||||
MS_SYNC = Constant('MS_SYNC',4)
|
||||
MCL_CURRENT = Constant('MCL_CURRENT',0x2000)
|
||||
MCL_FUTURE = Constant('MCL_FUTURE',0x4000)
|
||||
MADV_NORMAL = Constant('MADV_NORMAL',0x0)
|
||||
MADV_RANDOM = Constant('MADV_RANDOM',0x1)
|
||||
MADV_SEQUENTIAL = Constant('MADV_SEQUENTIAL',0x2)
|
||||
MADV_WILLNEED = Constant('MADV_WILLNEED',0x3)
|
||||
MADV_DONTNEED = Constant('MADV_DONTNEED',0x4)
|
||||
MADV_FREE = Constant('MADV_FREE',0x5)
|
||||
MAP_ANON = Constant('MAP_ANON',0x20)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
_SYS_UIO = Constant('_SYS_UIO',1)
|
||||
SOL_SOCKET = Constant('SOL_SOCKET',0xffff)
|
||||
SO_DEBUG = Constant('SO_DEBUG',0x0001)
|
||||
SO_PASSCRED = Constant('SO_PASSCRED',0x0002)
|
||||
@@ -694,6 +757,7 @@ SO_BROADCAST = Constant('SO_BROADCAST',0x0020)
|
||||
SO_PEERCRED = Constant('SO_PEERCRED',0x0040)
|
||||
SO_LINGER = Constant('SO_LINGER',0x0080)
|
||||
SO_OOBINLINE = Constant('SO_OOBINLINE',0x0100)
|
||||
SO_REUSEPORT = Constant('SO_REUSEPORT',0x0200)
|
||||
SO_BSDCOMPAT = Constant('SO_BSDCOMPAT',0x0400)
|
||||
SO_RCVLOWAT = Constant('SO_RCVLOWAT',0x0800)
|
||||
SO_SNDLOWAT = Constant('SO_SNDLOWAT',0x1000)
|
||||
@@ -709,9 +773,40 @@ SO_ERROR = Constant('SO_ERROR',0x1007)
|
||||
SO_TYPE = Constant('SO_TYPE',0x1008)
|
||||
SO_ATTACH_FILTER = Constant('SO_ATTACH_FILTER',0x001a)
|
||||
SO_DETACH_FILTER = Constant('SO_DETACH_FILTER',0x001b)
|
||||
SO_GET_FILTER = Constant('SO_GET_FILTER',0x001a)
|
||||
SO_PEERNAME = Constant('SO_PEERNAME',0x001c)
|
||||
SO_TIMESTAMP = Constant('SO_TIMESTAMP',0x001d)
|
||||
SCM_TIMESTAMP = Constant('SCM_TIMESTAMP',0x001d)
|
||||
SO_PEERSEC = Constant('SO_PEERSEC',0x001e)
|
||||
SO_PASSSEC = Constant('SO_PASSSEC',0x001f)
|
||||
SO_TIMESTAMPNS = Constant('SO_TIMESTAMPNS',0x0021)
|
||||
SCM_TIMESTAMPNS = Constant('SCM_TIMESTAMPNS',0x0021)
|
||||
SO_MARK = Constant('SO_MARK',0x0022)
|
||||
SO_TIMESTAMPING = Constant('SO_TIMESTAMPING',0x0023)
|
||||
SCM_TIMESTAMPING = Constant('SCM_TIMESTAMPING',0x0023)
|
||||
SO_RXQ_OVFL = Constant('SO_RXQ_OVFL',0x0024)
|
||||
SO_WIFI_STATUS = Constant('SO_WIFI_STATUS',0x0025)
|
||||
SCM_WIFI_STATUS = Constant('SCM_WIFI_STATUS',0x0025)
|
||||
SO_PEEK_OFF = Constant('SO_PEEK_OFF',0x0026)
|
||||
SO_NOFCS = Constant('SO_NOFCS',0x0027)
|
||||
SO_LOCK_FILTER = Constant('SO_LOCK_FILTER',0x0028)
|
||||
SO_SELECT_ERR_QUEUE = Constant('SO_SELECT_ERR_QUEUE',0x0029)
|
||||
SO_BUSY_POLL = Constant('SO_BUSY_POLL',0x0030)
|
||||
SO_MAX_PACING_RATE = Constant('SO_MAX_PACING_RATE',0x0031)
|
||||
SO_BPF_EXTENSIONS = Constant('SO_BPF_EXTENSIONS',0x0032)
|
||||
SO_INCOMING_CPU = Constant('SO_INCOMING_CPU',0x0033)
|
||||
SO_ATTACH_BPF = Constant('SO_ATTACH_BPF',0x0034)
|
||||
SO_DETACH_BPF = Constant('SO_DETACH_BPF',0x001b)
|
||||
SO_ATTACH_REUSEPORT_CBPF = Constant('SO_ATTACH_REUSEPORT_CBPF',0x0035)
|
||||
SO_ATTACH_REUSEPORT_EBPF = Constant('SO_ATTACH_REUSEPORT_EBPF',0x0036)
|
||||
SO_CNX_ADVICE = Constant('SO_CNX_ADVICE',0x0037)
|
||||
SCM_TIMESTAMPING_OPT_STATS = Constant('SCM_TIMESTAMPING_OPT_STATS',0x0038)
|
||||
SO_MEMINFO = Constant('SO_MEMINFO',0x0039)
|
||||
SO_INCOMING_NAPI_ID = Constant('SO_INCOMING_NAPI_ID',0x003a)
|
||||
SO_COOKIE = Constant('SO_COOKIE',0x003b)
|
||||
SCM_TIMESTAMPING_PKTINFO = Constant('SCM_TIMESTAMPING_PKTINFO',0x003c)
|
||||
SO_PEERGROUPS = Constant('SO_PEERGROUPS',0x003d)
|
||||
SO_ZEROCOPY = Constant('SO_ZEROCOPY',0x003e)
|
||||
SO_SECURITY_AUTHENTICATION = Constant('SO_SECURITY_AUTHENTICATION',0x5001)
|
||||
SO_SECURITY_ENCRYPTION_TRANSPORT = Constant('SO_SECURITY_ENCRYPTION_TRANSPORT',0x5002)
|
||||
SO_SECURITY_ENCRYPTION_NETWORK = Constant('SO_SECURITY_ENCRYPTION_NETWORK',0x5004)
|
||||
@@ -720,6 +815,7 @@ SOCK_DGRAM = Constant('SOCK_DGRAM',2)
|
||||
SOCK_RAW = Constant('SOCK_RAW',3)
|
||||
SOCK_RDM = Constant('SOCK_RDM',4)
|
||||
SOCK_SEQPACKET = Constant('SOCK_SEQPACKET',5)
|
||||
SOCK_DCCP = Constant('SOCK_DCCP',6)
|
||||
SOCK_PACKET = Constant('SOCK_PACKET',10)
|
||||
UIO_FASTIOV = Constant('UIO_FASTIOV',8)
|
||||
UIO_MAXIOV = Constant('UIO_MAXIOV',1024)
|
||||
@@ -753,7 +849,25 @@ AF_SNA = Constant('AF_SNA',22)
|
||||
AF_IRDA = Constant('AF_IRDA',23)
|
||||
AF_PPPOX = Constant('AF_PPPOX',24)
|
||||
AF_WANPIPE = Constant('AF_WANPIPE',25)
|
||||
AF_MAX = Constant('AF_MAX',32)
|
||||
AF_LLC = Constant('AF_LLC',26)
|
||||
AF_IB = Constant('AF_IB',27)
|
||||
AF_MPLS = Constant('AF_MPLS',28)
|
||||
AF_CAN = Constant('AF_CAN',29)
|
||||
AF_TIPC = Constant('AF_TIPC',30)
|
||||
AF_BLUETOOTH = Constant('AF_BLUETOOTH',31)
|
||||
AF_IUCV = Constant('AF_IUCV',32)
|
||||
AF_RXRPC = Constant('AF_RXRPC',33)
|
||||
AF_ISDN = Constant('AF_ISDN',34)
|
||||
AF_PHONET = Constant('AF_PHONET',35)
|
||||
AF_IEEE802154 = Constant('AF_IEEE802154',36)
|
||||
AF_CAIF = Constant('AF_CAIF',37)
|
||||
AF_ALG = Constant('AF_ALG',38)
|
||||
AF_NFC = Constant('AF_NFC',39)
|
||||
AF_VSOCK = Constant('AF_VSOCK',40)
|
||||
AF_KCM = Constant('AF_KCM',41)
|
||||
AF_QIPCRTR = Constant('AF_QIPCRTR',42)
|
||||
AF_SMC = Constant('AF_SMC',43)
|
||||
AF_MAX = Constant('AF_MAX',44)
|
||||
PF_UNSPEC = Constant('PF_UNSPEC',0)
|
||||
PF_UNIX = Constant('PF_UNIX',1)
|
||||
PF_LOCAL = Constant('PF_LOCAL',1)
|
||||
@@ -781,7 +895,25 @@ PF_SNA = Constant('PF_SNA',22)
|
||||
PF_IRDA = Constant('PF_IRDA',23)
|
||||
PF_PPPOX = Constant('PF_PPPOX',24)
|
||||
PF_WANPIPE = Constant('PF_WANPIPE',25)
|
||||
PF_MAX = Constant('PF_MAX',32)
|
||||
PF_LLC = Constant('PF_LLC',26)
|
||||
PF_IB = Constant('PF_IB',27)
|
||||
PF_MPLS = Constant('PF_MPLS',28)
|
||||
PF_CAN = Constant('PF_CAN',29)
|
||||
PF_TIPC = Constant('PF_TIPC',30)
|
||||
PF_BLUETOOTH = Constant('PF_BLUETOOTH',31)
|
||||
PF_IUCV = Constant('PF_IUCV',32)
|
||||
PF_RXRPC = Constant('PF_RXRPC',33)
|
||||
PF_ISDN = Constant('PF_ISDN',34)
|
||||
PF_PHONET = Constant('PF_PHONET',35)
|
||||
PF_IEEE802154 = Constant('PF_IEEE802154',36)
|
||||
PF_CAIF = Constant('PF_CAIF',37)
|
||||
PF_ALG = Constant('PF_ALG',38)
|
||||
PF_NFC = Constant('PF_NFC',39)
|
||||
PF_VSOCK = Constant('PF_VSOCK',40)
|
||||
PF_KCM = Constant('PF_KCM',41)
|
||||
PF_QIPCRTR = Constant('PF_QIPCRTR',42)
|
||||
PF_SMC = Constant('PF_SMC',43)
|
||||
PF_MAX = Constant('PF_MAX',44)
|
||||
SOMAXCONN = Constant('SOMAXCONN',128)
|
||||
MSG_OOB = Constant('MSG_OOB',1)
|
||||
MSG_PEEK = Constant('MSG_PEEK',2)
|
||||
@@ -794,18 +926,26 @@ MSG_DONTWAIT = Constant('MSG_DONTWAIT',0x40)
|
||||
MSG_EOR = Constant('MSG_EOR',0x80)
|
||||
MSG_WAITALL = Constant('MSG_WAITALL',0x100)
|
||||
MSG_FIN = Constant('MSG_FIN',0x200)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_SYN = Constant('MSG_SYN',0x400)
|
||||
MSG_CONFIRM = Constant('MSG_CONFIRM',0x800)
|
||||
MSG_RST = Constant('MSG_RST',0x1000)
|
||||
MSG_ERRQUEUE = Constant('MSG_ERRQUEUE',0x2000)
|
||||
MSG_NOSIGNAL = Constant('MSG_NOSIGNAL',0x4000)
|
||||
MSG_MORE = Constant('MSG_MORE',0x8000)
|
||||
MSG_WAITFORONE = Constant('MSG_WAITFORONE',0x10000)
|
||||
MSG_SENDPAGE_NOTLAST = Constant('MSG_SENDPAGE_NOTLAST',0x20000)
|
||||
MSG_BATCH = Constant('MSG_BATCH',0x40000)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_ZEROCOPY = Constant('MSG_ZEROCOPY',0x4000000)
|
||||
MSG_FASTOPEN = Constant('MSG_FASTOPEN',0x20000000)
|
||||
MSG_CMSG_CLOEXEC = Constant('MSG_CMSG_CLOEXEC',0x40000000)
|
||||
SOL_IP = Constant('SOL_IP',0)
|
||||
SOL_TCP = Constant('SOL_TCP',6)
|
||||
SOL_UDP = Constant('SOL_UDP',17)
|
||||
SOL_IPV6 = Constant('SOL_IPV6',41)
|
||||
SOL_ICMPV6 = Constant('SOL_ICMPV6',58)
|
||||
SOL_SCTP = Constant('SOL_SCTP',132)
|
||||
SOL_UDPLITE = Constant('SOL_UDPLITE',136)
|
||||
SOL_RAW = Constant('SOL_RAW',255)
|
||||
SOL_IPX = Constant('SOL_IPX',256)
|
||||
SOL_AX25 = Constant('SOL_AX25',257)
|
||||
@@ -818,6 +958,22 @@ SOL_PACKET = Constant('SOL_PACKET',263)
|
||||
SOL_ATM = Constant('SOL_ATM',264)
|
||||
SOL_AAL = Constant('SOL_AAL',265)
|
||||
SOL_IRDA = Constant('SOL_IRDA',266)
|
||||
SOL_NETBEUI = Constant('SOL_NETBEUI',267)
|
||||
SOL_LLC = Constant('SOL_LLC',268)
|
||||
SOL_DCCP = Constant('SOL_DCCP',269)
|
||||
SOL_NETLINK = Constant('SOL_NETLINK',270)
|
||||
SOL_TIPC = Constant('SOL_TIPC',271)
|
||||
SOL_RXRPC = Constant('SOL_RXRPC',272)
|
||||
SOL_PPPOL2TP = Constant('SOL_PPPOL2TP',273)
|
||||
SOL_BLUETOOTH = Constant('SOL_BLUETOOTH',274)
|
||||
SOL_PNPIPE = Constant('SOL_PNPIPE',275)
|
||||
SOL_RDS = Constant('SOL_RDS',276)
|
||||
SOL_IUCV = Constant('SOL_IUCV',277)
|
||||
SOL_CAIF = Constant('SOL_CAIF',278)
|
||||
SOL_ALG = Constant('SOL_ALG',279)
|
||||
SOL_NFC = Constant('SOL_NFC',280)
|
||||
SOL_KCM = Constant('SOL_KCM',281)
|
||||
SOL_TLS = Constant('SOL_TLS',282)
|
||||
IPX_TYPE = Constant('IPX_TYPE',1)
|
||||
SHUT_RD = Constant('SHUT_RD',0)
|
||||
SHUT_WR = Constant('SHUT_WR',1)
|
||||
@@ -841,6 +997,10 @@ EAI_SYSTEM = Constant('EAI_SYSTEM',-11)
|
||||
AI_NUMERICHOST = Constant('AI_NUMERICHOST',1)
|
||||
AI_CANONNAME = Constant('AI_CANONNAME',2)
|
||||
AI_PASSIVE = Constant('AI_PASSIVE',4)
|
||||
AI_NUMERICSERV = Constant('AI_NUMERICSERV',8)
|
||||
AI_ADDRCONFIG = Constant('AI_ADDRCONFIG',16)
|
||||
AI_V4MAPPED = Constant('AI_V4MAPPED',32)
|
||||
AI_ALL = Constant('AI_ALL',64)
|
||||
SIOCADDRT = Constant('SIOCADDRT',0x890B)
|
||||
SIOCDELRT = Constant('SIOCDELRT',0x890C)
|
||||
SIOCRTMSG = Constant('SIOCRTMSG',0x890D)
|
||||
@@ -897,6 +1057,134 @@ SIOCSIFMAP = Constant('SIOCSIFMAP',0x8971)
|
||||
SIOCADDDLCI = Constant('SIOCADDDLCI',0x8980)
|
||||
SIOCDELDLCI = Constant('SIOCDELDLCI',0x8981)
|
||||
SIOCDEVPRIVATE = Constant('SIOCDEVPRIVATE',0x89F0)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
O_RDONLY = Constant('O_RDONLY',0x0000)
|
||||
O_WRONLY = Constant('O_WRONLY',0x0001)
|
||||
O_RDWR = Constant('O_RDWR',0x0002)
|
||||
O_ACCMODE = Constant('O_ACCMODE',0x0003)
|
||||
O_APPEND = Constant('O_APPEND',0x0008)
|
||||
FASYNC = Constant('FASYNC',0x0040)
|
||||
O_CREAT = Constant('O_CREAT',0x0200)
|
||||
O_TRUNC = Constant('O_TRUNC',0x0400)
|
||||
O_EXCL = Constant('O_EXCL',0x0800)
|
||||
O_DSYNC = Constant('O_DSYNC',0x2000)
|
||||
O_NONBLOCK = Constant('O_NONBLOCK',0x4000)
|
||||
O_NDELAY = Constant('O_NDELAY',(0x0004 | 0x4000))
|
||||
O_NOCTTY = Constant('O_NOCTTY',0x8000)
|
||||
O_DIRECTORY = Constant('O_DIRECTORY',0x10000)
|
||||
O_NOFOLLOW = Constant('O_NOFOLLOW',0x20000)
|
||||
O_LARGEFILE = Constant('O_LARGEFILE',0x40000)
|
||||
O_DIRECT = Constant('O_DIRECT',0x100000)
|
||||
O_NOATIME = Constant('O_NOATIME',0x200000)
|
||||
O_CLOEXEC = Constant('O_CLOEXEC',0x400000)
|
||||
O_SYNC = Constant('O_SYNC',(0x800000|0x2000))
|
||||
O_PATH = Constant('O_PATH',0x1000000)
|
||||
__O_TMPFILE = Constant('__O_TMPFILE',0x2000000)
|
||||
F_DUPFD = Constant('F_DUPFD',0)
|
||||
F_GETFD = Constant('F_GETFD',1)
|
||||
F_SETFD = Constant('F_SETFD',2)
|
||||
F_GETFL = Constant('F_GETFL',3)
|
||||
F_SETFL = Constant('F_SETFL',4)
|
||||
F_GETOWN = Constant('F_GETOWN',5)
|
||||
F_SETOWN = Constant('F_SETOWN',6)
|
||||
F_GETLK = Constant('F_GETLK',7)
|
||||
F_SETLK = Constant('F_SETLK',8)
|
||||
F_SETLKW = Constant('F_SETLKW',9)
|
||||
F_SETSIG = Constant('F_SETSIG',10)
|
||||
F_GETSIG = Constant('F_GETSIG',11)
|
||||
F_GETLK64 = Constant('F_GETLK64',12)
|
||||
F_SETLK64 = Constant('F_SETLK64',13)
|
||||
F_SETLKW64 = Constant('F_SETLKW64',14)
|
||||
FD_CLOEXEC = Constant('FD_CLOEXEC',1)
|
||||
F_RDLCK = Constant('F_RDLCK',1)
|
||||
F_WRLCK = Constant('F_WRLCK',2)
|
||||
F_UNLCK = Constant('F_UNLCK',3)
|
||||
F_EXLCK = Constant('F_EXLCK',4)
|
||||
F_SHLCK = Constant('F_SHLCK',8)
|
||||
F_INPROGRESS = Constant('F_INPROGRESS',16)
|
||||
LOCK_SH = Constant('LOCK_SH',1)
|
||||
LOCK_EX = Constant('LOCK_EX',2)
|
||||
LOCK_NB = Constant('LOCK_NB',4)
|
||||
LOCK_UN = Constant('LOCK_UN',8)
|
||||
LOCK_MAND = Constant('LOCK_MAND',32)
|
||||
LOCK_READ = Constant('LOCK_READ',64)
|
||||
LOCK_WRITE = Constant('LOCK_WRITE',128)
|
||||
LOCK_RW = Constant('LOCK_RW',192)
|
||||
O_TMPFILE = Constant('O_TMPFILE',(0x2000000 | 0x10000))
|
||||
O_ASYNC = Constant('O_ASYNC',0x0040)
|
||||
F_SETOWN_EX = Constant('F_SETOWN_EX',15)
|
||||
F_GETOWN_EX = Constant('F_GETOWN_EX',16)
|
||||
F_GETOWNER_UIDS = Constant('F_GETOWNER_UIDS',17)
|
||||
F_OFD_GETLK = Constant('F_OFD_GETLK',36)
|
||||
F_OFD_SETLK = Constant('F_OFD_SETLK',37)
|
||||
F_OFD_SETLKW = Constant('F_OFD_SETLKW',38)
|
||||
F_OWNER_TID = Constant('F_OWNER_TID',0)
|
||||
F_OWNER_PID = Constant('F_OWNER_PID',1)
|
||||
F_OWNER_PGRP = Constant('F_OWNER_PGRP',2)
|
||||
AT_FDCWD = Constant('AT_FDCWD',-100)
|
||||
AT_SYMLINK_NOFOLLOW = Constant('AT_SYMLINK_NOFOLLOW',0x100)
|
||||
AT_REMOVEDIR = Constant('AT_REMOVEDIR',0x200)
|
||||
AT_SYMLINK_FOLLOW = Constant('AT_SYMLINK_FOLLOW',0x400)
|
||||
AT_NO_AUTOMOUNT = Constant('AT_NO_AUTOMOUNT',0x800)
|
||||
AT_EMPTY_PATH = Constant('AT_EMPTY_PATH',0x1000)
|
||||
AT_EACCESS = Constant('AT_EACCESS',0x200)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_SEM = Constant('PROT_SEM',0x8)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
PROT_GROWSDOWN = Constant('PROT_GROWSDOWN',0x01000000)
|
||||
PROT_GROWSUP = Constant('PROT_GROWSUP',0x02000000)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_TYPE = Constant('MAP_TYPE',0xf)
|
||||
MADV_REMOVE = Constant('MADV_REMOVE',9)
|
||||
MADV_DONTFORK = Constant('MADV_DONTFORK',10)
|
||||
MADV_DOFORK = Constant('MADV_DOFORK',11)
|
||||
MADV_MERGEABLE = Constant('MADV_MERGEABLE',12)
|
||||
MADV_UNMERGEABLE = Constant('MADV_UNMERGEABLE',13)
|
||||
MADV_HUGEPAGE = Constant('MADV_HUGEPAGE',14)
|
||||
MADV_NOHUGEPAGE = Constant('MADV_NOHUGEPAGE',15)
|
||||
MADV_DONTDUMP = Constant('MADV_DONTDUMP',16)
|
||||
MADV_DODUMP = Constant('MADV_DODUMP',17)
|
||||
MADV_HWPOISON = Constant('MADV_HWPOISON',100)
|
||||
MADV_SOFT_OFFLINE = Constant('MADV_SOFT_OFFLINE',101)
|
||||
MLOCK_ONFAULT = Constant('MLOCK_ONFAULT',1)
|
||||
MAP_FIXED = Constant('MAP_FIXED',0x10)
|
||||
MAP_ANONYMOUS = Constant('MAP_ANONYMOUS',0x20)
|
||||
MAP_RENAME = Constant('MAP_RENAME',0x20)
|
||||
MAP_NORESERVE = Constant('MAP_NORESERVE',0x40)
|
||||
MAP_INHERIT = Constant('MAP_INHERIT',0x80)
|
||||
MAP_LOCKED = Constant('MAP_LOCKED',0x100)
|
||||
_MAP_NEW = Constant('_MAP_NEW',0x80000000)
|
||||
MAP_GROWSDOWN = Constant('MAP_GROWSDOWN',0x0100)
|
||||
MAP_DENYWRITE = Constant('MAP_DENYWRITE',0x0800)
|
||||
MAP_EXECUTABLE = Constant('MAP_EXECUTABLE',0x1000)
|
||||
MAP_POPULATE = Constant('MAP_POPULATE',0x8000)
|
||||
MAP_NONBLOCK = Constant('MAP_NONBLOCK',0x10000)
|
||||
MAP_STACK = Constant('MAP_STACK',0x20000)
|
||||
MAP_HUGETLB = Constant('MAP_HUGETLB',0x40000)
|
||||
MS_ASYNC = Constant('MS_ASYNC',1)
|
||||
MS_INVALIDATE = Constant('MS_INVALIDATE',2)
|
||||
MS_SYNC = Constant('MS_SYNC',4)
|
||||
MCL_CURRENT = Constant('MCL_CURRENT',0x2000)
|
||||
MCL_FUTURE = Constant('MCL_FUTURE',0x4000)
|
||||
MCL_ONFAULT = Constant('MCL_ONFAULT',0x8000)
|
||||
MADV_NORMAL = Constant('MADV_NORMAL',0x0)
|
||||
MADV_RANDOM = Constant('MADV_RANDOM',0x1)
|
||||
MADV_SEQUENTIAL = Constant('MADV_SEQUENTIAL',0x2)
|
||||
MADV_WILLNEED = Constant('MADV_WILLNEED',0x3)
|
||||
MADV_DONTNEED = Constant('MADV_DONTNEED',0x4)
|
||||
MADV_FREE = Constant('MADV_FREE',0x5)
|
||||
MAP_ANON = Constant('MAP_ANON',0x20)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
POSIX_MADV_NORMAL = Constant('POSIX_MADV_NORMAL',0x0)
|
||||
POSIX_MADV_SEQUENTIAL = Constant('POSIX_MADV_SEQUENTIAL',0x2)
|
||||
POSIX_MADV_RANDOM = Constant('POSIX_MADV_RANDOM',0x1)
|
||||
POSIX_MADV_WILLNEED = Constant('POSIX_MADV_WILLNEED',0x3)
|
||||
POSIX_MADV_DONTNEED = Constant('POSIX_MADV_DONTNEED',0x4)
|
||||
PTRACE_TRACEME = Constant('PTRACE_TRACEME',0)
|
||||
PTRACE_PEEKTEXT = Constant('PTRACE_PEEKTEXT',1)
|
||||
PTRACE_PEEKDATA = Constant('PTRACE_PEEKDATA',2)
|
||||
@@ -1037,6 +1325,7 @@ PTRACE_GETFPAREGS = Constant('PTRACE_GETFPAREGS',20)
|
||||
PTRACE_SETFPAREGS = Constant('PTRACE_SETFPAREGS',21)
|
||||
PTRACE_GETUCODE = Constant('PTRACE_GETUCODE',29)
|
||||
SYS_accept = Constant('SYS_accept',99)
|
||||
SYS_accept4 = Constant('SYS_accept4',323)
|
||||
SYS_access = Constant('SYS_access',33)
|
||||
SYS_acct = Constant('SYS_acct',51)
|
||||
SYS_add_key = Constant('SYS_add_key',281)
|
||||
@@ -1045,6 +1334,8 @@ SYS_afs_syscall = Constant('SYS_afs_syscall',227)
|
||||
SYS_alarm = Constant('SYS_alarm',27)
|
||||
SYS_aplib = Constant('SYS_aplib',255)
|
||||
SYS_bdflush = Constant('SYS_bdflush',225)
|
||||
SYS_bind = Constant('SYS_bind',353)
|
||||
SYS_bpf = Constant('SYS_bpf',349)
|
||||
SYS_brk = Constant('SYS_brk',17)
|
||||
SYS_capget = Constant('SYS_capget',21)
|
||||
SYS_capset = Constant('SYS_capset',22)
|
||||
@@ -1053,31 +1344,44 @@ SYS_chmod = Constant('SYS_chmod',15)
|
||||
SYS_chown = Constant('SYS_chown',13)
|
||||
SYS_chown32 = Constant('SYS_chown32',35)
|
||||
SYS_chroot = Constant('SYS_chroot',61)
|
||||
SYS_clock_adjtime = Constant('SYS_clock_adjtime',334)
|
||||
SYS_clock_adjtime64 = Constant('SYS_clock_adjtime64',405)
|
||||
SYS_clock_getres = Constant('SYS_clock_getres',258)
|
||||
SYS_clock_getres_time64 = Constant('SYS_clock_getres_time64',406)
|
||||
SYS_clock_gettime = Constant('SYS_clock_gettime',257)
|
||||
SYS_clock_gettime64 = Constant('SYS_clock_gettime64',403)
|
||||
SYS_clock_nanosleep = Constant('SYS_clock_nanosleep',259)
|
||||
SYS_clock_nanosleep_time64 = Constant('SYS_clock_nanosleep_time64',407)
|
||||
SYS_clock_settime = Constant('SYS_clock_settime',256)
|
||||
SYS_clock_settime64 = Constant('SYS_clock_settime64',404)
|
||||
SYS_clone = Constant('SYS_clone',217)
|
||||
SYS_close = Constant('SYS_close',6)
|
||||
SYS_connect = Constant('SYS_connect',98)
|
||||
SYS_copy_file_range = Constant('SYS_copy_file_range',357)
|
||||
SYS_creat = Constant('SYS_creat',8)
|
||||
SYS_create_module = Constant('SYS_create_module',221)
|
||||
SYS_delete_module = Constant('SYS_delete_module',222)
|
||||
SYS_dup = Constant('SYS_dup',41)
|
||||
SYS_dup2 = Constant('SYS_dup2',90)
|
||||
SYS_dup3 = Constant('SYS_dup3',320)
|
||||
SYS_epoll_create = Constant('SYS_epoll_create',193)
|
||||
SYS_epoll_create1 = Constant('SYS_epoll_create1',319)
|
||||
SYS_epoll_ctl = Constant('SYS_epoll_ctl',194)
|
||||
SYS_epoll_pwait = Constant('SYS_epoll_pwait',309)
|
||||
SYS_epoll_wait = Constant('SYS_epoll_wait',195)
|
||||
SYS_eventfd = Constant('SYS_eventfd',313)
|
||||
SYS_eventfd2 = Constant('SYS_eventfd2',318)
|
||||
SYS_execv = Constant('SYS_execv',11)
|
||||
SYS_execve = Constant('SYS_execve',59)
|
||||
SYS_execveat = Constant('SYS_execveat',350)
|
||||
SYS_exit = Constant('SYS_exit',1)
|
||||
SYS_exit_group = Constant('SYS_exit_group',188)
|
||||
SYS_faccessat = Constant('SYS_faccessat',296)
|
||||
SYS_fadvise64 = Constant('SYS_fadvise64',209)
|
||||
SYS_fadvise64_64 = Constant('SYS_fadvise64_64',210)
|
||||
SYS_fallocate = Constant('SYS_fallocate',314)
|
||||
SYS_fanotify_init = Constant('SYS_fanotify_init',329)
|
||||
SYS_fanotify_mark = Constant('SYS_fanotify_mark',330)
|
||||
SYS_fchdir = Constant('SYS_fchdir',176)
|
||||
SYS_fchmod = Constant('SYS_fchmod',124)
|
||||
SYS_fchmodat = Constant('SYS_fchmodat',295)
|
||||
@@ -1088,11 +1392,16 @@ SYS_fcntl = Constant('SYS_fcntl',92)
|
||||
SYS_fcntl64 = Constant('SYS_fcntl64',155)
|
||||
SYS_fdatasync = Constant('SYS_fdatasync',253)
|
||||
SYS_fgetxattr = Constant('SYS_fgetxattr',177)
|
||||
SYS_finit_module = Constant('SYS_finit_module',342)
|
||||
SYS_flistxattr = Constant('SYS_flistxattr',180)
|
||||
SYS_flock = Constant('SYS_flock',131)
|
||||
SYS_fork = Constant('SYS_fork',2)
|
||||
SYS_fremovexattr = Constant('SYS_fremovexattr',186)
|
||||
SYS_fsconfig = Constant('SYS_fsconfig',431)
|
||||
SYS_fsetxattr = Constant('SYS_fsetxattr',171)
|
||||
SYS_fsmount = Constant('SYS_fsmount',432)
|
||||
SYS_fsopen = Constant('SYS_fsopen',430)
|
||||
SYS_fspick = Constant('SYS_fspick',433)
|
||||
SYS_fstat = Constant('SYS_fstat',62)
|
||||
SYS_fstat64 = Constant('SYS_fstat64',63)
|
||||
SYS_fstatat64 = Constant('SYS_fstatat64',289)
|
||||
@@ -1102,6 +1411,7 @@ SYS_fsync = Constant('SYS_fsync',95)
|
||||
SYS_ftruncate = Constant('SYS_ftruncate',130)
|
||||
SYS_ftruncate64 = Constant('SYS_ftruncate64',84)
|
||||
SYS_futex = Constant('SYS_futex',142)
|
||||
SYS_futex_time64 = Constant('SYS_futex_time64',422)
|
||||
SYS_futimesat = Constant('SYS_futimesat',288)
|
||||
SYS_getcpu = Constant('SYS_getcpu',308)
|
||||
SYS_getcwd = Constant('SYS_getcwd',119)
|
||||
@@ -1126,6 +1436,7 @@ SYS_getpgrp = Constant('SYS_getpgrp',81)
|
||||
SYS_getpid = Constant('SYS_getpid',20)
|
||||
SYS_getppid = Constant('SYS_getppid',197)
|
||||
SYS_getpriority = Constant('SYS_getpriority',100)
|
||||
SYS_getrandom = Constant('SYS_getrandom',347)
|
||||
SYS_getresgid32 = Constant('SYS_getresgid32',111)
|
||||
SYS_getresuid32 = Constant('SYS_getresuid32',109)
|
||||
SYS_getrlimit = Constant('SYS_getrlimit',144)
|
||||
@@ -1140,13 +1451,21 @@ SYS_getuid = Constant('SYS_getuid',24)
|
||||
SYS_getuid32 = Constant('SYS_getuid32',44)
|
||||
SYS_getxattr = Constant('SYS_getxattr',172)
|
||||
SYS_init_module = Constant('SYS_init_module',190)
|
||||
SYS_inotify_init1 = Constant('SYS_inotify_init1',322)
|
||||
SYS_io_cancel = Constant('SYS_io_cancel',271)
|
||||
SYS_ioctl = Constant('SYS_ioctl',54)
|
||||
SYS_io_destroy = Constant('SYS_io_destroy',269)
|
||||
SYS_io_getevents = Constant('SYS_io_getevents',272)
|
||||
SYS_io_pgetevents = Constant('SYS_io_pgetevents',361)
|
||||
SYS_io_pgetevents_time64 = Constant('SYS_io_pgetevents_time64',416)
|
||||
SYS_io_setup = Constant('SYS_io_setup',268)
|
||||
SYS_io_submit = Constant('SYS_io_submit',270)
|
||||
SYS_io_uring_enter = Constant('SYS_io_uring_enter',426)
|
||||
SYS_io_uring_register = Constant('SYS_io_uring_register',427)
|
||||
SYS_io_uring_setup = Constant('SYS_io_uring_setup',425)
|
||||
SYS_ipc = Constant('SYS_ipc',215)
|
||||
SYS_kcmp = Constant('SYS_kcmp',341)
|
||||
SYS_kern_features = Constant('SYS_kern_features',340)
|
||||
SYS_kexec_load = Constant('SYS_kexec_load',306)
|
||||
SYS_keyctl = Constant('SYS_keyctl',283)
|
||||
SYS_kill = Constant('SYS_kill',37)
|
||||
@@ -1155,6 +1474,7 @@ SYS_lchown32 = Constant('SYS_lchown32',31)
|
||||
SYS_lgetxattr = Constant('SYS_lgetxattr',173)
|
||||
SYS_link = Constant('SYS_link',9)
|
||||
SYS_linkat = Constant('SYS_linkat',292)
|
||||
SYS_listen = Constant('SYS_listen',354)
|
||||
SYS_listxattr = Constant('SYS_listxattr',178)
|
||||
SYS_llistxattr = Constant('SYS_llistxattr',179)
|
||||
SYS__llseek = Constant('SYS__llseek',236)
|
||||
@@ -1166,6 +1486,8 @@ SYS_lstat = Constant('SYS_lstat',40)
|
||||
SYS_lstat64 = Constant('SYS_lstat64',132)
|
||||
SYS_madvise = Constant('SYS_madvise',75)
|
||||
SYS_mbind = Constant('SYS_mbind',303)
|
||||
SYS_membarrier = Constant('SYS_membarrier',351)
|
||||
SYS_memfd_create = Constant('SYS_memfd_create',348)
|
||||
SYS_migrate_pages = Constant('SYS_migrate_pages',302)
|
||||
SYS_mincore = Constant('SYS_mincore',78)
|
||||
SYS_mkdir = Constant('SYS_mkdir',136)
|
||||
@@ -1173,23 +1495,32 @@ SYS_mkdirat = Constant('SYS_mkdirat',285)
|
||||
SYS_mknod = Constant('SYS_mknod',14)
|
||||
SYS_mknodat = Constant('SYS_mknodat',286)
|
||||
SYS_mlock = Constant('SYS_mlock',237)
|
||||
SYS_mlock2 = Constant('SYS_mlock2',356)
|
||||
SYS_mlockall = Constant('SYS_mlockall',239)
|
||||
SYS_mmap = Constant('SYS_mmap',71)
|
||||
SYS_mmap2 = Constant('SYS_mmap2',56)
|
||||
SYS_mount = Constant('SYS_mount',167)
|
||||
SYS_move_mount = Constant('SYS_move_mount',429)
|
||||
SYS_move_pages = Constant('SYS_move_pages',307)
|
||||
SYS_mprotect = Constant('SYS_mprotect',74)
|
||||
SYS_mq_getsetattr = Constant('SYS_mq_getsetattr',278)
|
||||
SYS_mq_notify = Constant('SYS_mq_notify',277)
|
||||
SYS_mq_open = Constant('SYS_mq_open',273)
|
||||
SYS_mq_timedreceive = Constant('SYS_mq_timedreceive',276)
|
||||
SYS_mq_timedreceive_time64 = Constant('SYS_mq_timedreceive_time64',419)
|
||||
SYS_mq_timedsend = Constant('SYS_mq_timedsend',275)
|
||||
SYS_mq_timedsend_time64 = Constant('SYS_mq_timedsend_time64',418)
|
||||
SYS_mq_unlink = Constant('SYS_mq_unlink',274)
|
||||
SYS_mremap = Constant('SYS_mremap',250)
|
||||
SYS_msgctl = Constant('SYS_msgctl',402)
|
||||
SYS_msgget = Constant('SYS_msgget',399)
|
||||
SYS_msgrcv = Constant('SYS_msgrcv',401)
|
||||
SYS_msgsnd = Constant('SYS_msgsnd',400)
|
||||
SYS_msync = Constant('SYS_msync',65)
|
||||
SYS_munlock = Constant('SYS_munlock',238)
|
||||
SYS_munlockall = Constant('SYS_munlockall',240)
|
||||
SYS_munmap = Constant('SYS_munmap',73)
|
||||
SYS_name_to_handle_at = Constant('SYS_name_to_handle_at',332)
|
||||
SYS_nanosleep = Constant('SYS_nanosleep',249)
|
||||
SYS__newselect = Constant('SYS__newselect',230)
|
||||
SYS_nfsservctl = Constant('SYS_nfsservctl',254)
|
||||
@@ -1197,20 +1528,40 @@ SYS_nice = Constant('SYS_nice',34)
|
||||
SYS_oldlstat = Constant('SYS_oldlstat',202)
|
||||
SYS_open = Constant('SYS_open',5)
|
||||
SYS_openat = Constant('SYS_openat',284)
|
||||
SYS_openat2 = Constant('SYS_openat2',437)
|
||||
SYS_open_by_handle_at = Constant('SYS_open_by_handle_at',333)
|
||||
SYS_open_tree = Constant('SYS_open_tree',428)
|
||||
SYS_pause = Constant('SYS_pause',29)
|
||||
SYS_pciconfig_read = Constant('SYS_pciconfig_read',148)
|
||||
SYS_pciconfig_write = Constant('SYS_pciconfig_write',149)
|
||||
SYS_perfctr = Constant('SYS_perfctr',18)
|
||||
SYS_perf_event_open = Constant('SYS_perf_event_open',327)
|
||||
SYS_personality = Constant('SYS_personality',191)
|
||||
SYS_pidfd_getfd = Constant('SYS_pidfd_getfd',438)
|
||||
SYS_pidfd_open = Constant('SYS_pidfd_open',434)
|
||||
SYS_pidfd_send_signal = Constant('SYS_pidfd_send_signal',424)
|
||||
SYS_pipe = Constant('SYS_pipe',42)
|
||||
SYS_pipe2 = Constant('SYS_pipe2',321)
|
||||
SYS_pivot_root = Constant('SYS_pivot_root',146)
|
||||
SYS_pkey_alloc = Constant('SYS_pkey_alloc',363)
|
||||
SYS_pkey_free = Constant('SYS_pkey_free',364)
|
||||
SYS_pkey_mprotect = Constant('SYS_pkey_mprotect',362)
|
||||
SYS_poll = Constant('SYS_poll',153)
|
||||
SYS_ppoll = Constant('SYS_ppoll',298)
|
||||
SYS_ppoll_time64 = Constant('SYS_ppoll_time64',414)
|
||||
SYS_prctl = Constant('SYS_prctl',147)
|
||||
SYS_pread = Constant('SYS_pread',67)
|
||||
SYS_preadv = Constant('SYS_preadv',324)
|
||||
SYS_preadv2 = Constant('SYS_preadv2',358)
|
||||
SYS_prlimit64 = Constant('SYS_prlimit64',331)
|
||||
SYS_process_vm_readv = Constant('SYS_process_vm_readv',338)
|
||||
SYS_process_vm_writev = Constant('SYS_process_vm_writev',339)
|
||||
SYS_pselect6 = Constant('SYS_pselect6',297)
|
||||
SYS_pselect6_time64 = Constant('SYS_pselect6_time64',413)
|
||||
SYS_ptrace = Constant('SYS_ptrace',26)
|
||||
SYS_pwrite = Constant('SYS_pwrite',68)
|
||||
SYS_pwritev = Constant('SYS_pwritev',325)
|
||||
SYS_pwritev2 = Constant('SYS_pwritev2',359)
|
||||
SYS_query_module = Constant('SYS_query_module',184)
|
||||
SYS_quotactl = Constant('SYS_quotactl',165)
|
||||
SYS_read = Constant('SYS_read',3)
|
||||
@@ -1221,13 +1572,17 @@ SYS_readlinkat = Constant('SYS_readlinkat',294)
|
||||
SYS_readv = Constant('SYS_readv',120)
|
||||
SYS_reboot = Constant('SYS_reboot',55)
|
||||
SYS_recvfrom = Constant('SYS_recvfrom',125)
|
||||
SYS_recvmmsg = Constant('SYS_recvmmsg',328)
|
||||
SYS_recvmmsg_time64 = Constant('SYS_recvmmsg_time64',417)
|
||||
SYS_recvmsg = Constant('SYS_recvmsg',113)
|
||||
SYS_remap_file_pages = Constant('SYS_remap_file_pages',192)
|
||||
SYS_removexattr = Constant('SYS_removexattr',181)
|
||||
SYS_rename = Constant('SYS_rename',128)
|
||||
SYS_renameat = Constant('SYS_renameat',291)
|
||||
SYS_renameat2 = Constant('SYS_renameat2',345)
|
||||
SYS_request_key = Constant('SYS_request_key',282)
|
||||
SYS_rmdir = Constant('SYS_rmdir',137)
|
||||
SYS_rseq = Constant('SYS_rseq',365)
|
||||
SYS_rt_sigaction = Constant('SYS_rt_sigaction',102)
|
||||
SYS_rt_sigpending = Constant('SYS_rt_sigpending',104)
|
||||
SYS_rt_sigprocmask = Constant('SYS_rt_sigprocmask',103)
|
||||
@@ -1235,21 +1590,29 @@ SYS_rt_sigqueueinfo = Constant('SYS_rt_sigqueueinfo',106)
|
||||
SYS_rt_sigreturn = Constant('SYS_rt_sigreturn',101)
|
||||
SYS_rt_sigsuspend = Constant('SYS_rt_sigsuspend',107)
|
||||
SYS_rt_sigtimedwait = Constant('SYS_rt_sigtimedwait',105)
|
||||
SYS_rt_sigtimedwait_time64 = Constant('SYS_rt_sigtimedwait_time64',421)
|
||||
SYS_rt_tgsigqueueinfo = Constant('SYS_rt_tgsigqueueinfo',326)
|
||||
SYS_sched_getaffinity = Constant('SYS_sched_getaffinity',260)
|
||||
SYS_sched_get_affinity = Constant('SYS_sched_get_affinity',161)
|
||||
SYS_sched_getattr = Constant('SYS_sched_getattr',344)
|
||||
SYS_sched_getparam = Constant('SYS_sched_getparam',242)
|
||||
SYS_sched_get_priority_max = Constant('SYS_sched_get_priority_max',246)
|
||||
SYS_sched_get_priority_min = Constant('SYS_sched_get_priority_min',247)
|
||||
SYS_sched_getscheduler = Constant('SYS_sched_getscheduler',244)
|
||||
SYS_sched_rr_get_interval = Constant('SYS_sched_rr_get_interval',248)
|
||||
SYS_sched_rr_get_interval_time64 = Constant('SYS_sched_rr_get_interval_time64',423)
|
||||
SYS_sched_setaffinity = Constant('SYS_sched_setaffinity',261)
|
||||
SYS_sched_set_affinity = Constant('SYS_sched_set_affinity',160)
|
||||
SYS_sched_setattr = Constant('SYS_sched_setattr',343)
|
||||
SYS_sched_setparam = Constant('SYS_sched_setparam',241)
|
||||
SYS_sched_setscheduler = Constant('SYS_sched_setscheduler',243)
|
||||
SYS_sched_yield = Constant('SYS_sched_yield',245)
|
||||
SYS_seccomp = Constant('SYS_seccomp',346)
|
||||
SYS_select = Constant('SYS_select',93)
|
||||
SYS_semctl = Constant('SYS_semctl',394)
|
||||
SYS_semget = Constant('SYS_semget',393)
|
||||
SYS_semtimedop_time64 = Constant('SYS_semtimedop_time64',420)
|
||||
SYS_sendfile = Constant('SYS_sendfile',39)
|
||||
SYS_sendfile64 = Constant('SYS_sendfile64',140)
|
||||
SYS_sendmmsg = Constant('SYS_sendmmsg',336)
|
||||
SYS_sendmsg = Constant('SYS_sendmsg',114)
|
||||
SYS_sendto = Constant('SYS_sendto',133)
|
||||
SYS_setdomainname = Constant('SYS_setdomainname',163)
|
||||
@@ -1264,6 +1627,7 @@ SYS_setgroups32 = Constant('SYS_setgroups32',82)
|
||||
SYS_sethostname = Constant('SYS_sethostname',88)
|
||||
SYS_setitimer = Constant('SYS_setitimer',83)
|
||||
SYS_set_mempolicy = Constant('SYS_set_mempolicy',305)
|
||||
SYS_setns = Constant('SYS_setns',337)
|
||||
SYS_setpgid = Constant('SYS_setpgid',185)
|
||||
SYS_setpriority = Constant('SYS_setpriority',96)
|
||||
SYS_setregid = Constant('SYS_setregid',127)
|
||||
@@ -1275,17 +1639,23 @@ SYS_setreuid32 = Constant('SYS_setreuid32',72)
|
||||
SYS_setrlimit = Constant('SYS_setrlimit',145)
|
||||
SYS_set_robust_list = Constant('SYS_set_robust_list',300)
|
||||
SYS_setsid = Constant('SYS_setsid',175)
|
||||
SYS_setsockopt = Constant('SYS_setsockopt',355)
|
||||
SYS_set_tid_address = Constant('SYS_set_tid_address',166)
|
||||
SYS_settimeofday = Constant('SYS_settimeofday',122)
|
||||
SYS_setuid = Constant('SYS_setuid',23)
|
||||
SYS_setuid32 = Constant('SYS_setuid32',87)
|
||||
SYS_setxattr = Constant('SYS_setxattr',169)
|
||||
SYS_sgetmask = Constant('SYS_sgetmask',199)
|
||||
SYS_shmat = Constant('SYS_shmat',397)
|
||||
SYS_shmctl = Constant('SYS_shmctl',396)
|
||||
SYS_shmdt = Constant('SYS_shmdt',398)
|
||||
SYS_shmget = Constant('SYS_shmget',395)
|
||||
SYS_shutdown = Constant('SYS_shutdown',134)
|
||||
SYS_sigaction = Constant('SYS_sigaction',198)
|
||||
SYS_sigaltstack = Constant('SYS_sigaltstack',28)
|
||||
SYS_signal = Constant('SYS_signal',48)
|
||||
SYS_signalfd = Constant('SYS_signalfd',311)
|
||||
SYS_signalfd4 = Constant('SYS_signalfd4',317)
|
||||
SYS_sigpending = Constant('SYS_sigpending',183)
|
||||
SYS_sigprocmask = Constant('SYS_sigprocmask',220)
|
||||
SYS_sigreturn = Constant('SYS_sigreturn',216)
|
||||
@@ -1298,12 +1668,14 @@ SYS_stat = Constant('SYS_stat',38)
|
||||
SYS_stat64 = Constant('SYS_stat64',139)
|
||||
SYS_statfs = Constant('SYS_statfs',157)
|
||||
SYS_statfs64 = Constant('SYS_statfs64',234)
|
||||
SYS_statx = Constant('SYS_statx',360)
|
||||
SYS_stime = Constant('SYS_stime',233)
|
||||
SYS_swapoff = Constant('SYS_swapoff',213)
|
||||
SYS_swapon = Constant('SYS_swapon',85)
|
||||
SYS_symlink = Constant('SYS_symlink',57)
|
||||
SYS_symlinkat = Constant('SYS_symlinkat',293)
|
||||
SYS_sync = Constant('SYS_sync',36)
|
||||
SYS_syncfs = Constant('SYS_syncfs',335)
|
||||
SYS__sysctl = Constant('SYS__sysctl',251)
|
||||
SYS_sysfs = Constant('SYS_sysfs',226)
|
||||
SYS_sysinfo = Constant('SYS_sysinfo',214)
|
||||
@@ -1315,10 +1687,14 @@ SYS_timer_create = Constant('SYS_timer_create',266)
|
||||
SYS_timer_delete = Constant('SYS_timer_delete',265)
|
||||
SYS_timerfd = Constant('SYS_timerfd',312)
|
||||
SYS_timerfd_gettime = Constant('SYS_timerfd_gettime',316)
|
||||
SYS_timerfd_gettime64 = Constant('SYS_timerfd_gettime64',410)
|
||||
SYS_timerfd_settime = Constant('SYS_timerfd_settime',315)
|
||||
SYS_timerfd_settime64 = Constant('SYS_timerfd_settime64',411)
|
||||
SYS_timer_getoverrun = Constant('SYS_timer_getoverrun',264)
|
||||
SYS_timer_gettime = Constant('SYS_timer_gettime',263)
|
||||
SYS_timer_gettime64 = Constant('SYS_timer_gettime64',408)
|
||||
SYS_timer_settime = Constant('SYS_timer_settime',262)
|
||||
SYS_timer_settime64 = Constant('SYS_timer_settime64',409)
|
||||
SYS_times = Constant('SYS_times',43)
|
||||
SYS_tkill = Constant('SYS_tkill',187)
|
||||
SYS_truncate = Constant('SYS_truncate',129)
|
||||
@@ -1331,9 +1707,11 @@ SYS_unlink = Constant('SYS_unlink',10)
|
||||
SYS_unlinkat = Constant('SYS_unlinkat',290)
|
||||
SYS_unshare = Constant('SYS_unshare',299)
|
||||
SYS_uselib = Constant('SYS_uselib',203)
|
||||
SYS_userfaultfd = Constant('SYS_userfaultfd',352)
|
||||
SYS_ustat = Constant('SYS_ustat',168)
|
||||
SYS_utime = Constant('SYS_utime',30)
|
||||
SYS_utimensat = Constant('SYS_utimensat',310)
|
||||
SYS_utimensat_time64 = Constant('SYS_utimensat_time64',412)
|
||||
SYS_utimes = Constant('SYS_utimes',138)
|
||||
SYS_vfork = Constant('SYS_vfork',66)
|
||||
SYS_vhangup = Constant('SYS_vhangup',76)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from pwnlib.constants.constant import Constant
|
||||
|
||||
__NR_exit = Constant('__NR_exit',1)
|
||||
__NR_fork = Constant('__NR_fork',2)
|
||||
__NR_read = Constant('__NR_read',3)
|
||||
@@ -284,6 +283,79 @@ __NR_eventfd = Constant('__NR_eventfd',313)
|
||||
__NR_fallocate = Constant('__NR_fallocate',314)
|
||||
__NR_timerfd_settime = Constant('__NR_timerfd_settime',315)
|
||||
__NR_timerfd_gettime = Constant('__NR_timerfd_gettime',316)
|
||||
__NR_signalfd4 = Constant('__NR_signalfd4',317)
|
||||
__NR_eventfd2 = Constant('__NR_eventfd2',318)
|
||||
__NR_epoll_create1 = Constant('__NR_epoll_create1',319)
|
||||
__NR_dup3 = Constant('__NR_dup3',320)
|
||||
__NR_pipe2 = Constant('__NR_pipe2',321)
|
||||
__NR_inotify_init1 = Constant('__NR_inotify_init1',322)
|
||||
__NR_accept4 = Constant('__NR_accept4',323)
|
||||
__NR_preadv = Constant('__NR_preadv',324)
|
||||
__NR_pwritev = Constant('__NR_pwritev',325)
|
||||
__NR_rt_tgsigqueueinfo = Constant('__NR_rt_tgsigqueueinfo',326)
|
||||
__NR_perf_event_open = Constant('__NR_perf_event_open',327)
|
||||
__NR_recvmmsg = Constant('__NR_recvmmsg',328)
|
||||
__NR_fanotify_init = Constant('__NR_fanotify_init',329)
|
||||
__NR_fanotify_mark = Constant('__NR_fanotify_mark',330)
|
||||
__NR_prlimit64 = Constant('__NR_prlimit64',331)
|
||||
__NR_name_to_handle_at = Constant('__NR_name_to_handle_at',332)
|
||||
__NR_open_by_handle_at = Constant('__NR_open_by_handle_at',333)
|
||||
__NR_clock_adjtime = Constant('__NR_clock_adjtime',334)
|
||||
__NR_syncfs = Constant('__NR_syncfs',335)
|
||||
__NR_sendmmsg = Constant('__NR_sendmmsg',336)
|
||||
__NR_setns = Constant('__NR_setns',337)
|
||||
__NR_process_vm_readv = Constant('__NR_process_vm_readv',338)
|
||||
__NR_process_vm_writev = Constant('__NR_process_vm_writev',339)
|
||||
__NR_kern_features = Constant('__NR_kern_features',340)
|
||||
__NR_kcmp = Constant('__NR_kcmp',341)
|
||||
__NR_finit_module = Constant('__NR_finit_module',342)
|
||||
__NR_sched_setattr = Constant('__NR_sched_setattr',343)
|
||||
__NR_sched_getattr = Constant('__NR_sched_getattr',344)
|
||||
__NR_renameat2 = Constant('__NR_renameat2',345)
|
||||
__NR_seccomp = Constant('__NR_seccomp',346)
|
||||
__NR_getrandom = Constant('__NR_getrandom',347)
|
||||
__NR_memfd_create = Constant('__NR_memfd_create',348)
|
||||
__NR_bpf = Constant('__NR_bpf',349)
|
||||
__NR_execveat = Constant('__NR_execveat',350)
|
||||
__NR_membarrier = Constant('__NR_membarrier',351)
|
||||
__NR_userfaultfd = Constant('__NR_userfaultfd',352)
|
||||
__NR_bind = Constant('__NR_bind',353)
|
||||
__NR_listen = Constant('__NR_listen',354)
|
||||
__NR_setsockopt = Constant('__NR_setsockopt',355)
|
||||
__NR_mlock2 = Constant('__NR_mlock2',356)
|
||||
__NR_copy_file_range = Constant('__NR_copy_file_range',357)
|
||||
__NR_preadv2 = Constant('__NR_preadv2',358)
|
||||
__NR_pwritev2 = Constant('__NR_pwritev2',359)
|
||||
__NR_statx = Constant('__NR_statx',360)
|
||||
__NR_io_pgetevents = Constant('__NR_io_pgetevents',361)
|
||||
__NR_pkey_mprotect = Constant('__NR_pkey_mprotect',362)
|
||||
__NR_pkey_alloc = Constant('__NR_pkey_alloc',363)
|
||||
__NR_pkey_free = Constant('__NR_pkey_free',364)
|
||||
__NR_rseq = Constant('__NR_rseq',365)
|
||||
__NR_semtimedop = Constant('__NR_semtimedop',392)
|
||||
__NR_semget = Constant('__NR_semget',393)
|
||||
__NR_semctl = Constant('__NR_semctl',394)
|
||||
__NR_shmget = Constant('__NR_shmget',395)
|
||||
__NR_shmctl = Constant('__NR_shmctl',396)
|
||||
__NR_shmat = Constant('__NR_shmat',397)
|
||||
__NR_shmdt = Constant('__NR_shmdt',398)
|
||||
__NR_msgget = Constant('__NR_msgget',399)
|
||||
__NR_msgsnd = Constant('__NR_msgsnd',400)
|
||||
__NR_msgrcv = Constant('__NR_msgrcv',401)
|
||||
__NR_msgctl = Constant('__NR_msgctl',402)
|
||||
__NR_pidfd_send_signal = Constant('__NR_pidfd_send_signal',424)
|
||||
__NR_io_uring_setup = Constant('__NR_io_uring_setup',425)
|
||||
__NR_io_uring_enter = Constant('__NR_io_uring_enter',426)
|
||||
__NR_io_uring_register = Constant('__NR_io_uring_register',427)
|
||||
__NR_open_tree = Constant('__NR_open_tree',428)
|
||||
__NR_move_mount = Constant('__NR_move_mount',429)
|
||||
__NR_fsopen = Constant('__NR_fsopen',430)
|
||||
__NR_fsconfig = Constant('__NR_fsconfig',431)
|
||||
__NR_fsmount = Constant('__NR_fsmount',432)
|
||||
__NR_fspick = Constant('__NR_fspick',433)
|
||||
__NR_pidfd_open = Constant('__NR_pidfd_open',434)
|
||||
__NR_openat2 = Constant('__NR_openat2',437)
|
||||
__NR_pidfd_getfd = Constant('__NR_pidfd_getfd',438)
|
||||
MAP_32BIT = Constant('MAP_32BIT',0x40)
|
||||
INADDR_ANY = Constant('INADDR_ANY',0)
|
||||
INADDR_BROADCAST = Constant('INADDR_BROADCAST',0xffffffff)
|
||||
@@ -419,7 +491,11 @@ ENOKEY = Constant('ENOKEY',126)
|
||||
EKEYEXPIRED = Constant('EKEYEXPIRED',127)
|
||||
EKEYREVOKED = Constant('EKEYREVOKED',128)
|
||||
EKEYREJECTED = Constant('EKEYREJECTED',129)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((129) + 1))
|
||||
EOWNERDEAD = Constant('EOWNERDEAD',130)
|
||||
ENOTRECOVERABLE = Constant('ENOTRECOVERABLE',131)
|
||||
ERFKILL = Constant('ERFKILL',132)
|
||||
EHWPOISON = Constant('EHWPOISON',133)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((133) + 1))
|
||||
__LITTLE_ENDIAN = Constant('__LITTLE_ENDIAN',1234)
|
||||
__BIG_ENDIAN = Constant('__BIG_ENDIAN',4321)
|
||||
__BYTE_ORDER = Constant('__BYTE_ORDER',4321)
|
||||
@@ -428,9 +504,55 @@ LITTLE_ENDIAN = Constant('LITTLE_ENDIAN',1234)
|
||||
BIG_ENDIAN = Constant('BIG_ENDIAN',4321)
|
||||
BYTE_ORDER = Constant('BYTE_ORDER',4321)
|
||||
__WORDSIZE = Constant('__WORDSIZE',32)
|
||||
INT8_MAX = Constant('INT8_MAX',(127))
|
||||
INT16_MAX = Constant('INT16_MAX',(32767))
|
||||
INT32_MAX = Constant('INT32_MAX',(2147483647))
|
||||
INT64_MAX = Constant('INT64_MAX',(9223372036854775807))
|
||||
INT8_MIN = Constant('INT8_MIN',(-1 - (127)))
|
||||
INT16_MIN = Constant('INT16_MIN',(-1 - (32767)))
|
||||
INT32_MIN = Constant('INT32_MIN',(-1 - (2147483647)))
|
||||
INT64_MIN = Constant('INT64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_LEAST8_MAX = Constant('INT_LEAST8_MAX',(127))
|
||||
INT_LEAST8_MIN = Constant('INT_LEAST8_MIN',(-1 - (127)))
|
||||
INT_LEAST16_MAX = Constant('INT_LEAST16_MAX',(32767))
|
||||
INT_LEAST16_MIN = Constant('INT_LEAST16_MIN',(-1 - (32767)))
|
||||
INT_LEAST32_MAX = Constant('INT_LEAST32_MAX',(2147483647))
|
||||
INT_LEAST32_MIN = Constant('INT_LEAST32_MIN',(-1 - (2147483647)))
|
||||
INT_LEAST64_MAX = Constant('INT_LEAST64_MAX',(9223372036854775807))
|
||||
INT_LEAST64_MIN = Constant('INT_LEAST64_MIN',(-1 - (9223372036854775807)))
|
||||
UINT8_MAX = Constant('UINT8_MAX',0xff)
|
||||
UINT16_MAX = Constant('UINT16_MAX',0xffff)
|
||||
UINT32_MAX = Constant('UINT32_MAX',0xffffffff)
|
||||
UINT64_MAX = Constant('UINT64_MAX',0xffffffffffffffff)
|
||||
UINT_LEAST8_MAX = Constant('UINT_LEAST8_MAX',0xff)
|
||||
UINT_LEAST16_MAX = Constant('UINT_LEAST16_MAX',0xffff)
|
||||
UINT_LEAST32_MAX = Constant('UINT_LEAST32_MAX',0xffffffff)
|
||||
UINT_LEAST64_MAX = Constant('UINT_LEAST64_MAX',0xffffffffffffffff)
|
||||
INTPTR_MIN = Constant('INTPTR_MIN',(-1 - (2147483647)))
|
||||
INTPTR_MAX = Constant('INTPTR_MAX',(2147483647))
|
||||
UINTPTR_MAX = Constant('UINTPTR_MAX',0xffffffff)
|
||||
SIZE_MAX = Constant('SIZE_MAX',0xffffffff)
|
||||
PTRDIFF_MIN = Constant('PTRDIFF_MIN',(-1 - (2147483647)))
|
||||
PTRDIFF_MAX = Constant('PTRDIFF_MAX',(2147483647))
|
||||
INTMAX_MIN = Constant('INTMAX_MIN',(-1 - (9223372036854775807)))
|
||||
INTMAX_MAX = Constant('INTMAX_MAX',(9223372036854775807))
|
||||
UINTMAX_MAX = Constant('UINTMAX_MAX',0xffffffffffffffff)
|
||||
INT_FAST8_MIN = Constant('INT_FAST8_MIN',(-1 - (127)))
|
||||
INT_FAST8_MAX = Constant('INT_FAST8_MAX',(127))
|
||||
INT_FAST64_MIN = Constant('INT_FAST64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST64_MAX = Constant('INT_FAST64_MAX',(9223372036854775807))
|
||||
UINT_FAST8_MAX = Constant('UINT_FAST8_MAX',0xff)
|
||||
UINT_FAST64_MAX = Constant('UINT_FAST64_MAX',0xffffffffffffffff)
|
||||
INT_FAST16_MIN = Constant('INT_FAST16_MIN',(-1 - (2147483647)))
|
||||
INT_FAST16_MAX = Constant('INT_FAST16_MAX',(2147483647))
|
||||
UINT_FAST16_MAX = Constant('UINT_FAST16_MAX',0xffffffff)
|
||||
INT_FAST32_MIN = Constant('INT_FAST32_MIN',(-1 - (2147483647)))
|
||||
INT_FAST32_MAX = Constant('INT_FAST32_MAX',(2147483647))
|
||||
UINT_FAST32_MAX = Constant('UINT_FAST32_MAX',0xffffffff)
|
||||
WINT_MIN = Constant('WINT_MIN',0)
|
||||
__FSUID_H = Constant('__FSUID_H',1)
|
||||
NSIG = Constant('NSIG',32)
|
||||
_NSIG = Constant('_NSIG',64)
|
||||
_NSIG = Constant('_NSIG',65)
|
||||
SIGHUP = Constant('SIGHUP',1)
|
||||
SIGINT = Constant('SIGINT',2)
|
||||
SIGQUIT = Constant('SIGQUIT',3)
|
||||
@@ -446,7 +568,7 @@ SIGALRM = Constant('SIGALRM',14)
|
||||
SIGTERM = Constant('SIGTERM',15)
|
||||
SIGUNUSED = Constant('SIGUNUSED',31)
|
||||
SIGRTMIN = Constant('SIGRTMIN',32)
|
||||
SIGRTMAX = Constant('SIGRTMAX',(64-1))
|
||||
SIGRTMAX = Constant('SIGRTMAX',(65-1))
|
||||
SA_NOCLDSTOP = Constant('SA_NOCLDSTOP',0x00000001)
|
||||
SA_NOCLDWAIT = Constant('SA_NOCLDWAIT',0x00000002)
|
||||
SA_SIGINFO = Constant('SA_SIGINFO',0x00000004)
|
||||
@@ -516,6 +638,8 @@ _SC_PAGESIZE = Constant('_SC_PAGESIZE',5)
|
||||
_SC_NPROCESSORS_ONLN = Constant('_SC_NPROCESSORS_ONLN',6)
|
||||
_SC_NPROCESSORS_CONF = Constant('_SC_NPROCESSORS_CONF',6)
|
||||
_SC_PHYS_PAGES = Constant('_SC_PHYS_PAGES',7)
|
||||
_SC_GETPW_R_SIZE_MAX = Constant('_SC_GETPW_R_SIZE_MAX',8)
|
||||
_SC_GETGR_R_SIZE_MAX = Constant('_SC_GETGR_R_SIZE_MAX',9)
|
||||
_PC_PATH_MAX = Constant('_PC_PATH_MAX',1)
|
||||
_PC_VDISABLE = Constant('_PC_VDISABLE',2)
|
||||
L_cuserid = Constant('L_cuserid',17)
|
||||
@@ -524,6 +648,7 @@ F_ULOCK = Constant('F_ULOCK',0)
|
||||
F_LOCK = Constant('F_LOCK',1)
|
||||
F_TLOCK = Constant('F_TLOCK',2)
|
||||
F_TEST = Constant('F_TEST',3)
|
||||
_POSIX_MAPPED_FILES = Constant('_POSIX_MAPPED_FILES',200809)
|
||||
S_IFMT = Constant('S_IFMT',0o0170000)
|
||||
S_IFSOCK = Constant('S_IFSOCK',0o140000)
|
||||
S_IFLNK = Constant('S_IFLNK',0o120000)
|
||||
@@ -550,16 +675,7 @@ S_IXOTH = Constant('S_IXOTH',0o0001)
|
||||
S_IREAD = Constant('S_IREAD',0o0400)
|
||||
S_IWRITE = Constant('S_IWRITE',0o0200)
|
||||
S_IEXEC = Constant('S_IEXEC',0o0100)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
_SYS_UIO = Constant('_SYS_UIO',1)
|
||||
SOL_SOCKET = Constant('SOL_SOCKET',1)
|
||||
SO_DEBUG = Constant('SO_DEBUG',1)
|
||||
SO_REUSEADDR = Constant('SO_REUSEADDR',2)
|
||||
@@ -575,29 +691,64 @@ SO_NO_CHECK = Constant('SO_NO_CHECK',11)
|
||||
SO_PRIORITY = Constant('SO_PRIORITY',12)
|
||||
SO_LINGER = Constant('SO_LINGER',13)
|
||||
SO_BSDCOMPAT = Constant('SO_BSDCOMPAT',14)
|
||||
SO_REUSEPORT = Constant('SO_REUSEPORT',15)
|
||||
SO_PASSCRED = Constant('SO_PASSCRED',16)
|
||||
SO_PEERCRED = Constant('SO_PEERCRED',17)
|
||||
SO_RCVLOWAT = Constant('SO_RCVLOWAT',18)
|
||||
SO_SNDLOWAT = Constant('SO_SNDLOWAT',19)
|
||||
SO_RCVTIMEO = Constant('SO_RCVTIMEO',20)
|
||||
SO_SNDTIMEO = Constant('SO_SNDTIMEO',21)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_SECURITY_AUTHENTICATION = Constant('SO_SECURITY_AUTHENTICATION',22)
|
||||
SO_SECURITY_ENCRYPTION_TRANSPORT = Constant('SO_SECURITY_ENCRYPTION_TRANSPORT',23)
|
||||
SO_SECURITY_ENCRYPTION_NETWORK = Constant('SO_SECURITY_ENCRYPTION_NETWORK',24)
|
||||
SO_BINDTODEVICE = Constant('SO_BINDTODEVICE',25)
|
||||
SO_ATTACH_FILTER = Constant('SO_ATTACH_FILTER',26)
|
||||
SO_DETACH_FILTER = Constant('SO_DETACH_FILTER',27)
|
||||
SO_GET_FILTER = Constant('SO_GET_FILTER',26)
|
||||
SO_PEERNAME = Constant('SO_PEERNAME',28)
|
||||
SO_TIMESTAMP = Constant('SO_TIMESTAMP',29)
|
||||
SCM_TIMESTAMP = Constant('SCM_TIMESTAMP',29)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_PEERSEC = Constant('SO_PEERSEC',31)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_PASSSEC = Constant('SO_PASSSEC',34)
|
||||
SO_TIMESTAMPNS = Constant('SO_TIMESTAMPNS',35)
|
||||
SCM_TIMESTAMPNS = Constant('SCM_TIMESTAMPNS',35)
|
||||
SO_MARK = Constant('SO_MARK',36)
|
||||
SO_TIMESTAMPING = Constant('SO_TIMESTAMPING',37)
|
||||
SCM_TIMESTAMPING = Constant('SCM_TIMESTAMPING',37)
|
||||
SO_PROTOCOL = Constant('SO_PROTOCOL',38)
|
||||
SO_DOMAIN = Constant('SO_DOMAIN',39)
|
||||
SO_RXQ_OVFL = Constant('SO_RXQ_OVFL',40)
|
||||
SO_WIFI_STATUS = Constant('SO_WIFI_STATUS',41)
|
||||
SCM_WIFI_STATUS = Constant('SCM_WIFI_STATUS',41)
|
||||
SO_PEEK_OFF = Constant('SO_PEEK_OFF',42)
|
||||
SO_NOFCS = Constant('SO_NOFCS',43)
|
||||
SO_LOCK_FILTER = Constant('SO_LOCK_FILTER',44)
|
||||
SO_SELECT_ERR_QUEUE = Constant('SO_SELECT_ERR_QUEUE',45)
|
||||
SO_BUSY_POLL = Constant('SO_BUSY_POLL',46)
|
||||
SO_MAX_PACING_RATE = Constant('SO_MAX_PACING_RATE',47)
|
||||
SO_BPF_EXTENSIONS = Constant('SO_BPF_EXTENSIONS',48)
|
||||
SO_INCOMING_CPU = Constant('SO_INCOMING_CPU',49)
|
||||
SO_ATTACH_BPF = Constant('SO_ATTACH_BPF',50)
|
||||
SO_DETACH_BPF = Constant('SO_DETACH_BPF',27)
|
||||
SO_ATTACH_REUSEPORT_CBPF = Constant('SO_ATTACH_REUSEPORT_CBPF',51)
|
||||
SO_ATTACH_REUSEPORT_EBPF = Constant('SO_ATTACH_REUSEPORT_EBPF',52)
|
||||
SO_CNX_ADVICE = Constant('SO_CNX_ADVICE',53)
|
||||
SCM_TIMESTAMPING_OPT_STATS = Constant('SCM_TIMESTAMPING_OPT_STATS',54)
|
||||
SO_MEMINFO = Constant('SO_MEMINFO',55)
|
||||
SO_INCOMING_NAPI_ID = Constant('SO_INCOMING_NAPI_ID',56)
|
||||
SO_COOKIE = Constant('SO_COOKIE',57)
|
||||
SCM_TIMESTAMPING_PKTINFO = Constant('SCM_TIMESTAMPING_PKTINFO',58)
|
||||
SO_PEERGROUPS = Constant('SO_PEERGROUPS',59)
|
||||
SO_ZEROCOPY = Constant('SO_ZEROCOPY',60)
|
||||
SOCK_STREAM = Constant('SOCK_STREAM',1)
|
||||
SOCK_DGRAM = Constant('SOCK_DGRAM',2)
|
||||
SOCK_RAW = Constant('SOCK_RAW',3)
|
||||
SOCK_RDM = Constant('SOCK_RDM',4)
|
||||
SOCK_SEQPACKET = Constant('SOCK_SEQPACKET',5)
|
||||
SOCK_DCCP = Constant('SOCK_DCCP',6)
|
||||
SOCK_PACKET = Constant('SOCK_PACKET',10)
|
||||
UIO_FASTIOV = Constant('UIO_FASTIOV',8)
|
||||
UIO_MAXIOV = Constant('UIO_MAXIOV',1024)
|
||||
@@ -631,7 +782,25 @@ AF_SNA = Constant('AF_SNA',22)
|
||||
AF_IRDA = Constant('AF_IRDA',23)
|
||||
AF_PPPOX = Constant('AF_PPPOX',24)
|
||||
AF_WANPIPE = Constant('AF_WANPIPE',25)
|
||||
AF_MAX = Constant('AF_MAX',32)
|
||||
AF_LLC = Constant('AF_LLC',26)
|
||||
AF_IB = Constant('AF_IB',27)
|
||||
AF_MPLS = Constant('AF_MPLS',28)
|
||||
AF_CAN = Constant('AF_CAN',29)
|
||||
AF_TIPC = Constant('AF_TIPC',30)
|
||||
AF_BLUETOOTH = Constant('AF_BLUETOOTH',31)
|
||||
AF_IUCV = Constant('AF_IUCV',32)
|
||||
AF_RXRPC = Constant('AF_RXRPC',33)
|
||||
AF_ISDN = Constant('AF_ISDN',34)
|
||||
AF_PHONET = Constant('AF_PHONET',35)
|
||||
AF_IEEE802154 = Constant('AF_IEEE802154',36)
|
||||
AF_CAIF = Constant('AF_CAIF',37)
|
||||
AF_ALG = Constant('AF_ALG',38)
|
||||
AF_NFC = Constant('AF_NFC',39)
|
||||
AF_VSOCK = Constant('AF_VSOCK',40)
|
||||
AF_KCM = Constant('AF_KCM',41)
|
||||
AF_QIPCRTR = Constant('AF_QIPCRTR',42)
|
||||
AF_SMC = Constant('AF_SMC',43)
|
||||
AF_MAX = Constant('AF_MAX',44)
|
||||
PF_UNSPEC = Constant('PF_UNSPEC',0)
|
||||
PF_UNIX = Constant('PF_UNIX',1)
|
||||
PF_LOCAL = Constant('PF_LOCAL',1)
|
||||
@@ -659,7 +828,25 @@ PF_SNA = Constant('PF_SNA',22)
|
||||
PF_IRDA = Constant('PF_IRDA',23)
|
||||
PF_PPPOX = Constant('PF_PPPOX',24)
|
||||
PF_WANPIPE = Constant('PF_WANPIPE',25)
|
||||
PF_MAX = Constant('PF_MAX',32)
|
||||
PF_LLC = Constant('PF_LLC',26)
|
||||
PF_IB = Constant('PF_IB',27)
|
||||
PF_MPLS = Constant('PF_MPLS',28)
|
||||
PF_CAN = Constant('PF_CAN',29)
|
||||
PF_TIPC = Constant('PF_TIPC',30)
|
||||
PF_BLUETOOTH = Constant('PF_BLUETOOTH',31)
|
||||
PF_IUCV = Constant('PF_IUCV',32)
|
||||
PF_RXRPC = Constant('PF_RXRPC',33)
|
||||
PF_ISDN = Constant('PF_ISDN',34)
|
||||
PF_PHONET = Constant('PF_PHONET',35)
|
||||
PF_IEEE802154 = Constant('PF_IEEE802154',36)
|
||||
PF_CAIF = Constant('PF_CAIF',37)
|
||||
PF_ALG = Constant('PF_ALG',38)
|
||||
PF_NFC = Constant('PF_NFC',39)
|
||||
PF_VSOCK = Constant('PF_VSOCK',40)
|
||||
PF_KCM = Constant('PF_KCM',41)
|
||||
PF_QIPCRTR = Constant('PF_QIPCRTR',42)
|
||||
PF_SMC = Constant('PF_SMC',43)
|
||||
PF_MAX = Constant('PF_MAX',44)
|
||||
SOMAXCONN = Constant('SOMAXCONN',128)
|
||||
MSG_OOB = Constant('MSG_OOB',1)
|
||||
MSG_PEEK = Constant('MSG_PEEK',2)
|
||||
@@ -672,18 +859,26 @@ MSG_DONTWAIT = Constant('MSG_DONTWAIT',0x40)
|
||||
MSG_EOR = Constant('MSG_EOR',0x80)
|
||||
MSG_WAITALL = Constant('MSG_WAITALL',0x100)
|
||||
MSG_FIN = Constant('MSG_FIN',0x200)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_SYN = Constant('MSG_SYN',0x400)
|
||||
MSG_CONFIRM = Constant('MSG_CONFIRM',0x800)
|
||||
MSG_RST = Constant('MSG_RST',0x1000)
|
||||
MSG_ERRQUEUE = Constant('MSG_ERRQUEUE',0x2000)
|
||||
MSG_NOSIGNAL = Constant('MSG_NOSIGNAL',0x4000)
|
||||
MSG_MORE = Constant('MSG_MORE',0x8000)
|
||||
MSG_WAITFORONE = Constant('MSG_WAITFORONE',0x10000)
|
||||
MSG_SENDPAGE_NOTLAST = Constant('MSG_SENDPAGE_NOTLAST',0x20000)
|
||||
MSG_BATCH = Constant('MSG_BATCH',0x40000)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_ZEROCOPY = Constant('MSG_ZEROCOPY',0x4000000)
|
||||
MSG_FASTOPEN = Constant('MSG_FASTOPEN',0x20000000)
|
||||
MSG_CMSG_CLOEXEC = Constant('MSG_CMSG_CLOEXEC',0x40000000)
|
||||
SOL_IP = Constant('SOL_IP',0)
|
||||
SOL_TCP = Constant('SOL_TCP',6)
|
||||
SOL_UDP = Constant('SOL_UDP',17)
|
||||
SOL_IPV6 = Constant('SOL_IPV6',41)
|
||||
SOL_ICMPV6 = Constant('SOL_ICMPV6',58)
|
||||
SOL_SCTP = Constant('SOL_SCTP',132)
|
||||
SOL_UDPLITE = Constant('SOL_UDPLITE',136)
|
||||
SOL_RAW = Constant('SOL_RAW',255)
|
||||
SOL_IPX = Constant('SOL_IPX',256)
|
||||
SOL_AX25 = Constant('SOL_AX25',257)
|
||||
@@ -696,6 +891,22 @@ SOL_PACKET = Constant('SOL_PACKET',263)
|
||||
SOL_ATM = Constant('SOL_ATM',264)
|
||||
SOL_AAL = Constant('SOL_AAL',265)
|
||||
SOL_IRDA = Constant('SOL_IRDA',266)
|
||||
SOL_NETBEUI = Constant('SOL_NETBEUI',267)
|
||||
SOL_LLC = Constant('SOL_LLC',268)
|
||||
SOL_DCCP = Constant('SOL_DCCP',269)
|
||||
SOL_NETLINK = Constant('SOL_NETLINK',270)
|
||||
SOL_TIPC = Constant('SOL_TIPC',271)
|
||||
SOL_RXRPC = Constant('SOL_RXRPC',272)
|
||||
SOL_PPPOL2TP = Constant('SOL_PPPOL2TP',273)
|
||||
SOL_BLUETOOTH = Constant('SOL_BLUETOOTH',274)
|
||||
SOL_PNPIPE = Constant('SOL_PNPIPE',275)
|
||||
SOL_RDS = Constant('SOL_RDS',276)
|
||||
SOL_IUCV = Constant('SOL_IUCV',277)
|
||||
SOL_CAIF = Constant('SOL_CAIF',278)
|
||||
SOL_ALG = Constant('SOL_ALG',279)
|
||||
SOL_NFC = Constant('SOL_NFC',280)
|
||||
SOL_KCM = Constant('SOL_KCM',281)
|
||||
SOL_TLS = Constant('SOL_TLS',282)
|
||||
IPX_TYPE = Constant('IPX_TYPE',1)
|
||||
SHUT_RD = Constant('SHUT_RD',0)
|
||||
SHUT_WR = Constant('SHUT_WR',1)
|
||||
@@ -719,6 +930,10 @@ EAI_SYSTEM = Constant('EAI_SYSTEM',-11)
|
||||
AI_NUMERICHOST = Constant('AI_NUMERICHOST',1)
|
||||
AI_CANONNAME = Constant('AI_CANONNAME',2)
|
||||
AI_PASSIVE = Constant('AI_PASSIVE',4)
|
||||
AI_NUMERICSERV = Constant('AI_NUMERICSERV',8)
|
||||
AI_ADDRCONFIG = Constant('AI_ADDRCONFIG',16)
|
||||
AI_V4MAPPED = Constant('AI_V4MAPPED',32)
|
||||
AI_ALL = Constant('AI_ALL',64)
|
||||
SIOCADDRT = Constant('SIOCADDRT',0x890B)
|
||||
SIOCDELRT = Constant('SIOCDELRT',0x890C)
|
||||
SIOCRTMSG = Constant('SIOCRTMSG',0x890D)
|
||||
@@ -775,6 +990,48 @@ SIOCSIFMAP = Constant('SIOCSIFMAP',0x8971)
|
||||
SIOCADDDLCI = Constant('SIOCADDDLCI',0x8980)
|
||||
SIOCDELDLCI = Constant('SIOCDELDLCI',0x8981)
|
||||
SIOCDEVPRIVATE = Constant('SIOCDEVPRIVATE',0x89F0)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
F_SETOWN_EX = Constant('F_SETOWN_EX',15)
|
||||
F_GETOWN_EX = Constant('F_GETOWN_EX',16)
|
||||
F_GETOWNER_UIDS = Constant('F_GETOWNER_UIDS',17)
|
||||
F_OFD_GETLK = Constant('F_OFD_GETLK',36)
|
||||
F_OFD_SETLK = Constant('F_OFD_SETLK',37)
|
||||
F_OFD_SETLKW = Constant('F_OFD_SETLKW',38)
|
||||
F_OWNER_TID = Constant('F_OWNER_TID',0)
|
||||
F_OWNER_PID = Constant('F_OWNER_PID',1)
|
||||
F_OWNER_PGRP = Constant('F_OWNER_PGRP',2)
|
||||
AT_FDCWD = Constant('AT_FDCWD',-100)
|
||||
AT_SYMLINK_NOFOLLOW = Constant('AT_SYMLINK_NOFOLLOW',0x100)
|
||||
AT_REMOVEDIR = Constant('AT_REMOVEDIR',0x200)
|
||||
AT_SYMLINK_FOLLOW = Constant('AT_SYMLINK_FOLLOW',0x400)
|
||||
AT_NO_AUTOMOUNT = Constant('AT_NO_AUTOMOUNT',0x800)
|
||||
AT_EMPTY_PATH = Constant('AT_EMPTY_PATH',0x1000)
|
||||
AT_EACCESS = Constant('AT_EACCESS',0x200)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_SEM = Constant('PROT_SEM',0x8)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
PROT_GROWSDOWN = Constant('PROT_GROWSDOWN',0x01000000)
|
||||
PROT_GROWSUP = Constant('PROT_GROWSUP',0x02000000)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_TYPE = Constant('MAP_TYPE',0xf)
|
||||
MADV_REMOVE = Constant('MADV_REMOVE',9)
|
||||
MADV_DONTFORK = Constant('MADV_DONTFORK',10)
|
||||
MADV_DOFORK = Constant('MADV_DOFORK',11)
|
||||
MADV_MERGEABLE = Constant('MADV_MERGEABLE',12)
|
||||
MADV_UNMERGEABLE = Constant('MADV_UNMERGEABLE',13)
|
||||
MADV_HUGEPAGE = Constant('MADV_HUGEPAGE',14)
|
||||
MADV_NOHUGEPAGE = Constant('MADV_NOHUGEPAGE',15)
|
||||
MADV_DONTDUMP = Constant('MADV_DONTDUMP',16)
|
||||
MADV_DODUMP = Constant('MADV_DODUMP',17)
|
||||
MADV_HWPOISON = Constant('MADV_HWPOISON',100)
|
||||
MADV_SOFT_OFFLINE = Constant('MADV_SOFT_OFFLINE',101)
|
||||
MLOCK_ONFAULT = Constant('MLOCK_ONFAULT',1)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
PTRACE_TRACEME = Constant('PTRACE_TRACEME',0)
|
||||
PTRACE_PEEKTEXT = Constant('PTRACE_PEEKTEXT',1)
|
||||
PTRACE_PEEKDATA = Constant('PTRACE_PEEKDATA',2)
|
||||
@@ -820,6 +1077,7 @@ PT_STEP = Constant('PT_STEP',9)
|
||||
PT_ATTACH = Constant('PT_ATTACH',0x10)
|
||||
PT_DETACH = Constant('PT_DETACH',0x11)
|
||||
SYS_accept = Constant('SYS_accept',99)
|
||||
SYS_accept4 = Constant('SYS_accept4',323)
|
||||
SYS_access = Constant('SYS_access',33)
|
||||
SYS_acct = Constant('SYS_acct',51)
|
||||
SYS_add_key = Constant('SYS_add_key',281)
|
||||
@@ -828,6 +1086,8 @@ SYS_afs_syscall = Constant('SYS_afs_syscall',227)
|
||||
SYS_alarm = Constant('SYS_alarm',27)
|
||||
SYS_aplib = Constant('SYS_aplib',255)
|
||||
SYS_bdflush = Constant('SYS_bdflush',225)
|
||||
SYS_bind = Constant('SYS_bind',353)
|
||||
SYS_bpf = Constant('SYS_bpf',349)
|
||||
SYS_brk = Constant('SYS_brk',17)
|
||||
SYS_capget = Constant('SYS_capget',21)
|
||||
SYS_capset = Constant('SYS_capset',22)
|
||||
@@ -835,6 +1095,7 @@ SYS_chdir = Constant('SYS_chdir',12)
|
||||
SYS_chmod = Constant('SYS_chmod',15)
|
||||
SYS_chown = Constant('SYS_chown',13)
|
||||
SYS_chroot = Constant('SYS_chroot',61)
|
||||
SYS_clock_adjtime = Constant('SYS_clock_adjtime',334)
|
||||
SYS_clock_getres = Constant('SYS_clock_getres',258)
|
||||
SYS_clock_gettime = Constant('SYS_clock_gettime',257)
|
||||
SYS_clock_nanosleep = Constant('SYS_clock_nanosleep',259)
|
||||
@@ -842,24 +1103,31 @@ SYS_clock_settime = Constant('SYS_clock_settime',256)
|
||||
SYS_clone = Constant('SYS_clone',217)
|
||||
SYS_close = Constant('SYS_close',6)
|
||||
SYS_connect = Constant('SYS_connect',98)
|
||||
SYS_copy_file_range = Constant('SYS_copy_file_range',357)
|
||||
SYS_creat = Constant('SYS_creat',8)
|
||||
SYS_create_module = Constant('SYS_create_module',221)
|
||||
SYS_delete_module = Constant('SYS_delete_module',222)
|
||||
SYS_dup = Constant('SYS_dup',41)
|
||||
SYS_dup2 = Constant('SYS_dup2',90)
|
||||
SYS_dup3 = Constant('SYS_dup3',320)
|
||||
SYS_epoll_create = Constant('SYS_epoll_create',193)
|
||||
SYS_epoll_create1 = Constant('SYS_epoll_create1',319)
|
||||
SYS_epoll_ctl = Constant('SYS_epoll_ctl',194)
|
||||
SYS_epoll_pwait = Constant('SYS_epoll_pwait',309)
|
||||
SYS_epoll_wait = Constant('SYS_epoll_wait',195)
|
||||
SYS_eventfd = Constant('SYS_eventfd',313)
|
||||
SYS_eventfd2 = Constant('SYS_eventfd2',318)
|
||||
SYS_execv = Constant('SYS_execv',11)
|
||||
SYS_execve = Constant('SYS_execve',59)
|
||||
SYS_execveat = Constant('SYS_execveat',350)
|
||||
SYS_exit = Constant('SYS_exit',1)
|
||||
SYS_exit_group = Constant('SYS_exit_group',188)
|
||||
SYS_faccessat = Constant('SYS_faccessat',296)
|
||||
SYS_fadvise64 = Constant('SYS_fadvise64',209)
|
||||
SYS_fadvise64_64 = Constant('SYS_fadvise64_64',210)
|
||||
SYS_fallocate = Constant('SYS_fallocate',314)
|
||||
SYS_fanotify_init = Constant('SYS_fanotify_init',329)
|
||||
SYS_fanotify_mark = Constant('SYS_fanotify_mark',330)
|
||||
SYS_fchdir = Constant('SYS_fchdir',176)
|
||||
SYS_fchmod = Constant('SYS_fchmod',124)
|
||||
SYS_fchmodat = Constant('SYS_fchmodat',295)
|
||||
@@ -868,11 +1136,16 @@ SYS_fchownat = Constant('SYS_fchownat',287)
|
||||
SYS_fcntl = Constant('SYS_fcntl',92)
|
||||
SYS_fdatasync = Constant('SYS_fdatasync',253)
|
||||
SYS_fgetxattr = Constant('SYS_fgetxattr',177)
|
||||
SYS_finit_module = Constant('SYS_finit_module',342)
|
||||
SYS_flistxattr = Constant('SYS_flistxattr',180)
|
||||
SYS_flock = Constant('SYS_flock',131)
|
||||
SYS_fork = Constant('SYS_fork',2)
|
||||
SYS_fremovexattr = Constant('SYS_fremovexattr',186)
|
||||
SYS_fsconfig = Constant('SYS_fsconfig',431)
|
||||
SYS_fsetxattr = Constant('SYS_fsetxattr',171)
|
||||
SYS_fsmount = Constant('SYS_fsmount',432)
|
||||
SYS_fsopen = Constant('SYS_fsopen',430)
|
||||
SYS_fspick = Constant('SYS_fspick',433)
|
||||
SYS_fstat = Constant('SYS_fstat',62)
|
||||
SYS_fstatat64 = Constant('SYS_fstatat64',289)
|
||||
SYS_fstatfs = Constant('SYS_fstatfs',158)
|
||||
@@ -900,6 +1173,7 @@ SYS_getpgrp = Constant('SYS_getpgrp',81)
|
||||
SYS_getpid = Constant('SYS_getpid',20)
|
||||
SYS_getppid = Constant('SYS_getppid',197)
|
||||
SYS_getpriority = Constant('SYS_getpriority',100)
|
||||
SYS_getrandom = Constant('SYS_getrandom',347)
|
||||
SYS_getresgid = Constant('SYS_getresgid',111)
|
||||
SYS_getresuid = Constant('SYS_getresuid',109)
|
||||
SYS_getrlimit = Constant('SYS_getrlimit',144)
|
||||
@@ -913,13 +1187,20 @@ SYS_gettimeofday = Constant('SYS_gettimeofday',116)
|
||||
SYS_getuid = Constant('SYS_getuid',24)
|
||||
SYS_getxattr = Constant('SYS_getxattr',172)
|
||||
SYS_init_module = Constant('SYS_init_module',190)
|
||||
SYS_inotify_init1 = Constant('SYS_inotify_init1',322)
|
||||
SYS_io_cancel = Constant('SYS_io_cancel',271)
|
||||
SYS_ioctl = Constant('SYS_ioctl',54)
|
||||
SYS_io_destroy = Constant('SYS_io_destroy',269)
|
||||
SYS_io_getevents = Constant('SYS_io_getevents',272)
|
||||
SYS_io_pgetevents = Constant('SYS_io_pgetevents',361)
|
||||
SYS_io_setup = Constant('SYS_io_setup',268)
|
||||
SYS_io_submit = Constant('SYS_io_submit',270)
|
||||
SYS_io_uring_enter = Constant('SYS_io_uring_enter',426)
|
||||
SYS_io_uring_register = Constant('SYS_io_uring_register',427)
|
||||
SYS_io_uring_setup = Constant('SYS_io_uring_setup',425)
|
||||
SYS_ipc = Constant('SYS_ipc',215)
|
||||
SYS_kcmp = Constant('SYS_kcmp',341)
|
||||
SYS_kern_features = Constant('SYS_kern_features',340)
|
||||
SYS_kexec_load = Constant('SYS_kexec_load',306)
|
||||
SYS_keyctl = Constant('SYS_keyctl',283)
|
||||
SYS_kill = Constant('SYS_kill',37)
|
||||
@@ -927,6 +1208,7 @@ SYS_lchown = Constant('SYS_lchown',16)
|
||||
SYS_lgetxattr = Constant('SYS_lgetxattr',173)
|
||||
SYS_link = Constant('SYS_link',9)
|
||||
SYS_linkat = Constant('SYS_linkat',292)
|
||||
SYS_listen = Constant('SYS_listen',354)
|
||||
SYS_listxattr = Constant('SYS_listxattr',178)
|
||||
SYS_llistxattr = Constant('SYS_llistxattr',179)
|
||||
SYS__llseek = Constant('SYS__llseek',236)
|
||||
@@ -937,6 +1219,8 @@ SYS_lsetxattr = Constant('SYS_lsetxattr',170)
|
||||
SYS_lstat = Constant('SYS_lstat',40)
|
||||
SYS_madvise = Constant('SYS_madvise',75)
|
||||
SYS_mbind = Constant('SYS_mbind',303)
|
||||
SYS_membarrier = Constant('SYS_membarrier',351)
|
||||
SYS_memfd_create = Constant('SYS_memfd_create',348)
|
||||
SYS_memory_ordering = Constant('SYS_memory_ordering',52)
|
||||
SYS_migrate_pages = Constant('SYS_migrate_pages',302)
|
||||
SYS_mincore = Constant('SYS_mincore',78)
|
||||
@@ -945,9 +1229,11 @@ SYS_mkdirat = Constant('SYS_mkdirat',285)
|
||||
SYS_mknod = Constant('SYS_mknod',14)
|
||||
SYS_mknodat = Constant('SYS_mknodat',286)
|
||||
SYS_mlock = Constant('SYS_mlock',237)
|
||||
SYS_mlock2 = Constant('SYS_mlock2',356)
|
||||
SYS_mlockall = Constant('SYS_mlockall',239)
|
||||
SYS_mmap = Constant('SYS_mmap',71)
|
||||
SYS_mount = Constant('SYS_mount',167)
|
||||
SYS_move_mount = Constant('SYS_move_mount',429)
|
||||
SYS_move_pages = Constant('SYS_move_pages',307)
|
||||
SYS_mprotect = Constant('SYS_mprotect',74)
|
||||
SYS_mq_getsetattr = Constant('SYS_mq_getsetattr',278)
|
||||
@@ -957,10 +1243,15 @@ SYS_mq_timedreceive = Constant('SYS_mq_timedreceive',276)
|
||||
SYS_mq_timedsend = Constant('SYS_mq_timedsend',275)
|
||||
SYS_mq_unlink = Constant('SYS_mq_unlink',274)
|
||||
SYS_mremap = Constant('SYS_mremap',250)
|
||||
SYS_msgctl = Constant('SYS_msgctl',402)
|
||||
SYS_msgget = Constant('SYS_msgget',399)
|
||||
SYS_msgrcv = Constant('SYS_msgrcv',401)
|
||||
SYS_msgsnd = Constant('SYS_msgsnd',400)
|
||||
SYS_msync = Constant('SYS_msync',65)
|
||||
SYS_munlock = Constant('SYS_munlock',238)
|
||||
SYS_munlockall = Constant('SYS_munlockall',240)
|
||||
SYS_munmap = Constant('SYS_munmap',73)
|
||||
SYS_name_to_handle_at = Constant('SYS_name_to_handle_at',332)
|
||||
SYS_nanosleep = Constant('SYS_nanosleep',249)
|
||||
SYS__newselect = Constant('SYS__newselect',230)
|
||||
SYS_nfsservctl = Constant('SYS_nfsservctl',254)
|
||||
@@ -968,20 +1259,38 @@ SYS_nice = Constant('SYS_nice',34)
|
||||
SYS_oldlstat = Constant('SYS_oldlstat',202)
|
||||
SYS_open = Constant('SYS_open',5)
|
||||
SYS_openat = Constant('SYS_openat',284)
|
||||
SYS_openat2 = Constant('SYS_openat2',437)
|
||||
SYS_open_by_handle_at = Constant('SYS_open_by_handle_at',333)
|
||||
SYS_open_tree = Constant('SYS_open_tree',428)
|
||||
SYS_pause = Constant('SYS_pause',29)
|
||||
SYS_pciconfig_read = Constant('SYS_pciconfig_read',148)
|
||||
SYS_pciconfig_write = Constant('SYS_pciconfig_write',149)
|
||||
SYS_perfctr = Constant('SYS_perfctr',18)
|
||||
SYS_perf_event_open = Constant('SYS_perf_event_open',327)
|
||||
SYS_personality = Constant('SYS_personality',191)
|
||||
SYS_pidfd_getfd = Constant('SYS_pidfd_getfd',438)
|
||||
SYS_pidfd_open = Constant('SYS_pidfd_open',434)
|
||||
SYS_pidfd_send_signal = Constant('SYS_pidfd_send_signal',424)
|
||||
SYS_pipe = Constant('SYS_pipe',42)
|
||||
SYS_pipe2 = Constant('SYS_pipe2',321)
|
||||
SYS_pivot_root = Constant('SYS_pivot_root',146)
|
||||
SYS_pkey_alloc = Constant('SYS_pkey_alloc',363)
|
||||
SYS_pkey_free = Constant('SYS_pkey_free',364)
|
||||
SYS_pkey_mprotect = Constant('SYS_pkey_mprotect',362)
|
||||
SYS_poll = Constant('SYS_poll',153)
|
||||
SYS_ppoll = Constant('SYS_ppoll',298)
|
||||
SYS_prctl = Constant('SYS_prctl',147)
|
||||
SYS_pread = Constant('SYS_pread',67)
|
||||
SYS_preadv = Constant('SYS_preadv',324)
|
||||
SYS_preadv2 = Constant('SYS_preadv2',358)
|
||||
SYS_prlimit64 = Constant('SYS_prlimit64',331)
|
||||
SYS_process_vm_readv = Constant('SYS_process_vm_readv',338)
|
||||
SYS_process_vm_writev = Constant('SYS_process_vm_writev',339)
|
||||
SYS_pselect6 = Constant('SYS_pselect6',297)
|
||||
SYS_ptrace = Constant('SYS_ptrace',26)
|
||||
SYS_pwrite = Constant('SYS_pwrite',68)
|
||||
SYS_pwritev = Constant('SYS_pwritev',325)
|
||||
SYS_pwritev2 = Constant('SYS_pwritev2',359)
|
||||
SYS_query_module = Constant('SYS_query_module',184)
|
||||
SYS_quotactl = Constant('SYS_quotactl',165)
|
||||
SYS_read = Constant('SYS_read',3)
|
||||
@@ -992,13 +1301,16 @@ SYS_readlinkat = Constant('SYS_readlinkat',294)
|
||||
SYS_readv = Constant('SYS_readv',120)
|
||||
SYS_reboot = Constant('SYS_reboot',55)
|
||||
SYS_recvfrom = Constant('SYS_recvfrom',125)
|
||||
SYS_recvmmsg = Constant('SYS_recvmmsg',328)
|
||||
SYS_recvmsg = Constant('SYS_recvmsg',113)
|
||||
SYS_remap_file_pages = Constant('SYS_remap_file_pages',192)
|
||||
SYS_removexattr = Constant('SYS_removexattr',181)
|
||||
SYS_rename = Constant('SYS_rename',128)
|
||||
SYS_renameat = Constant('SYS_renameat',291)
|
||||
SYS_renameat2 = Constant('SYS_renameat2',345)
|
||||
SYS_request_key = Constant('SYS_request_key',282)
|
||||
SYS_rmdir = Constant('SYS_rmdir',137)
|
||||
SYS_rseq = Constant('SYS_rseq',365)
|
||||
SYS_rt_sigaction = Constant('SYS_rt_sigaction',102)
|
||||
SYS_rt_sigpending = Constant('SYS_rt_sigpending',104)
|
||||
SYS_rt_sigprocmask = Constant('SYS_rt_sigprocmask',103)
|
||||
@@ -1006,21 +1318,27 @@ SYS_rt_sigqueueinfo = Constant('SYS_rt_sigqueueinfo',106)
|
||||
SYS_rt_sigreturn = Constant('SYS_rt_sigreturn',101)
|
||||
SYS_rt_sigsuspend = Constant('SYS_rt_sigsuspend',107)
|
||||
SYS_rt_sigtimedwait = Constant('SYS_rt_sigtimedwait',105)
|
||||
SYS_rt_tgsigqueueinfo = Constant('SYS_rt_tgsigqueueinfo',326)
|
||||
SYS_sched_getaffinity = Constant('SYS_sched_getaffinity',260)
|
||||
SYS_sched_get_affinity = Constant('SYS_sched_get_affinity',161)
|
||||
SYS_sched_getattr = Constant('SYS_sched_getattr',344)
|
||||
SYS_sched_getparam = Constant('SYS_sched_getparam',242)
|
||||
SYS_sched_get_priority_max = Constant('SYS_sched_get_priority_max',246)
|
||||
SYS_sched_get_priority_min = Constant('SYS_sched_get_priority_min',247)
|
||||
SYS_sched_getscheduler = Constant('SYS_sched_getscheduler',244)
|
||||
SYS_sched_rr_get_interval = Constant('SYS_sched_rr_get_interval',248)
|
||||
SYS_sched_setaffinity = Constant('SYS_sched_setaffinity',261)
|
||||
SYS_sched_set_affinity = Constant('SYS_sched_set_affinity',160)
|
||||
SYS_sched_setattr = Constant('SYS_sched_setattr',343)
|
||||
SYS_sched_setparam = Constant('SYS_sched_setparam',241)
|
||||
SYS_sched_setscheduler = Constant('SYS_sched_setscheduler',243)
|
||||
SYS_sched_yield = Constant('SYS_sched_yield',245)
|
||||
SYS_seccomp = Constant('SYS_seccomp',346)
|
||||
SYS_select = Constant('SYS_select',93)
|
||||
SYS_semctl = Constant('SYS_semctl',394)
|
||||
SYS_semget = Constant('SYS_semget',393)
|
||||
SYS_semtimedop = Constant('SYS_semtimedop',392)
|
||||
SYS_sendfile = Constant('SYS_sendfile',39)
|
||||
SYS_sendfile64 = Constant('SYS_sendfile64',140)
|
||||
SYS_sendmmsg = Constant('SYS_sendmmsg',336)
|
||||
SYS_sendmsg = Constant('SYS_sendmsg',114)
|
||||
SYS_sendto = Constant('SYS_sendto',133)
|
||||
SYS_setdomainname = Constant('SYS_setdomainname',163)
|
||||
@@ -1031,6 +1349,7 @@ SYS_setgroups = Constant('SYS_setgroups',80)
|
||||
SYS_sethostname = Constant('SYS_sethostname',88)
|
||||
SYS_setitimer = Constant('SYS_setitimer',83)
|
||||
SYS_set_mempolicy = Constant('SYS_set_mempolicy',305)
|
||||
SYS_setns = Constant('SYS_setns',337)
|
||||
SYS_setpgid = Constant('SYS_setpgid',185)
|
||||
SYS_setpriority = Constant('SYS_setpriority',96)
|
||||
SYS_setregid = Constant('SYS_setregid',127)
|
||||
@@ -1040,16 +1359,22 @@ SYS_setreuid = Constant('SYS_setreuid',126)
|
||||
SYS_setrlimit = Constant('SYS_setrlimit',145)
|
||||
SYS_set_robust_list = Constant('SYS_set_robust_list',300)
|
||||
SYS_setsid = Constant('SYS_setsid',175)
|
||||
SYS_setsockopt = Constant('SYS_setsockopt',355)
|
||||
SYS_set_tid_address = Constant('SYS_set_tid_address',166)
|
||||
SYS_settimeofday = Constant('SYS_settimeofday',122)
|
||||
SYS_setuid = Constant('SYS_setuid',23)
|
||||
SYS_setxattr = Constant('SYS_setxattr',169)
|
||||
SYS_sgetmask = Constant('SYS_sgetmask',199)
|
||||
SYS_shmat = Constant('SYS_shmat',397)
|
||||
SYS_shmctl = Constant('SYS_shmctl',396)
|
||||
SYS_shmdt = Constant('SYS_shmdt',398)
|
||||
SYS_shmget = Constant('SYS_shmget',395)
|
||||
SYS_shutdown = Constant('SYS_shutdown',134)
|
||||
SYS_sigaction = Constant('SYS_sigaction',198)
|
||||
SYS_sigaltstack = Constant('SYS_sigaltstack',28)
|
||||
SYS_signal = Constant('SYS_signal',48)
|
||||
SYS_signalfd = Constant('SYS_signalfd',311)
|
||||
SYS_signalfd4 = Constant('SYS_signalfd4',317)
|
||||
SYS_sigpending = Constant('SYS_sigpending',183)
|
||||
SYS_sigprocmask = Constant('SYS_sigprocmask',220)
|
||||
SYS_sigreturn = Constant('SYS_sigreturn',216)
|
||||
@@ -1061,12 +1386,14 @@ SYS_ssetmask = Constant('SYS_ssetmask',200)
|
||||
SYS_stat = Constant('SYS_stat',38)
|
||||
SYS_statfs = Constant('SYS_statfs',157)
|
||||
SYS_statfs64 = Constant('SYS_statfs64',234)
|
||||
SYS_statx = Constant('SYS_statx',360)
|
||||
SYS_stime = Constant('SYS_stime',233)
|
||||
SYS_swapoff = Constant('SYS_swapoff',213)
|
||||
SYS_swapon = Constant('SYS_swapon',85)
|
||||
SYS_symlink = Constant('SYS_symlink',57)
|
||||
SYS_symlinkat = Constant('SYS_symlinkat',293)
|
||||
SYS_sync = Constant('SYS_sync',36)
|
||||
SYS_syncfs = Constant('SYS_syncfs',335)
|
||||
SYS__sysctl = Constant('SYS__sysctl',251)
|
||||
SYS_sysfs = Constant('SYS_sysfs',226)
|
||||
SYS_sysinfo = Constant('SYS_sysinfo',214)
|
||||
@@ -1091,6 +1418,7 @@ SYS_unlink = Constant('SYS_unlink',10)
|
||||
SYS_unlinkat = Constant('SYS_unlinkat',290)
|
||||
SYS_unshare = Constant('SYS_unshare',299)
|
||||
SYS_uselib = Constant('SYS_uselib',203)
|
||||
SYS_userfaultfd = Constant('SYS_userfaultfd',352)
|
||||
SYS_ustat = Constant('SYS_ustat',168)
|
||||
SYS_utime = Constant('SYS_utime',30)
|
||||
SYS_utimensat = Constant('SYS_utimensat',310)
|
||||
|
||||
+475
-90
@@ -1,5 +1,4 @@
|
||||
from pwnlib.constants.constant import Constant
|
||||
|
||||
_ARM_SYSCALL_H = Constant('_ARM_SYSCALL_H',1)
|
||||
__NR_OABI_SYSCALL_BASE = Constant('__NR_OABI_SYSCALL_BASE',0x900000)
|
||||
__NR_SYSCALL_BASE = Constant('__NR_SYSCALL_BASE',0)
|
||||
@@ -322,6 +321,87 @@ __NR_eventfd = Constant('__NR_eventfd',(0+351))
|
||||
__NR_fallocate = Constant('__NR_fallocate',(0+352))
|
||||
__NR_timerfd_settime = Constant('__NR_timerfd_settime',(0+353))
|
||||
__NR_timerfd_gettime = Constant('__NR_timerfd_gettime',(0+354))
|
||||
__NR_signalfd4 = Constant('__NR_signalfd4',(0+355))
|
||||
__NR_eventfd2 = Constant('__NR_eventfd2',(0+356))
|
||||
__NR_epoll_create1 = Constant('__NR_epoll_create1',(0+357))
|
||||
__NR_dup3 = Constant('__NR_dup3',(0+358))
|
||||
__NR_pipe2 = Constant('__NR_pipe2',(0+359))
|
||||
__NR_inotify_init1 = Constant('__NR_inotify_init1',(0+360))
|
||||
__NR_preadv = Constant('__NR_preadv',(0+361))
|
||||
__NR_pwritev = Constant('__NR_pwritev',(0+362))
|
||||
__NR_rt_tgsigqueueinfo = Constant('__NR_rt_tgsigqueueinfo',(0+363))
|
||||
__NR_perf_event_open = Constant('__NR_perf_event_open',(0+364))
|
||||
__NR_recvmmsg = Constant('__NR_recvmmsg',(0+365))
|
||||
__NR_accept4 = Constant('__NR_accept4',(0+366))
|
||||
__NR_fanotify_init = Constant('__NR_fanotify_init',(0+367))
|
||||
__NR_fanotify_mark = Constant('__NR_fanotify_mark',(0+368))
|
||||
__NR_prlimit64 = Constant('__NR_prlimit64',(0+369))
|
||||
__NR_name_to_handle_at = Constant('__NR_name_to_handle_at',(0+370))
|
||||
__NR_open_by_handle_at = Constant('__NR_open_by_handle_at',(0+371))
|
||||
__NR_clock_adjtime = Constant('__NR_clock_adjtime',(0+372))
|
||||
__NR_syncfs = Constant('__NR_syncfs',(0+373))
|
||||
__NR_sendmmsg = Constant('__NR_sendmmsg',(0+374))
|
||||
__NR_setns = Constant('__NR_setns',(0+375))
|
||||
__NR_process_vm_readv = Constant('__NR_process_vm_readv',(0+376))
|
||||
__NR_process_vm_writev = Constant('__NR_process_vm_writev',(0+377))
|
||||
__NR_kcmp = Constant('__NR_kcmp',(0+378))
|
||||
__NR_finit_module = Constant('__NR_finit_module',(0+379))
|
||||
__NR_sched_setattr = Constant('__NR_sched_setattr',(0+380))
|
||||
__NR_sched_getattr = Constant('__NR_sched_getattr',(0+381))
|
||||
__NR_renameat2 = Constant('__NR_renameat2',(0+382))
|
||||
__NR_seccomp = Constant('__NR_seccomp',(0+383))
|
||||
__NR_getrandom = Constant('__NR_getrandom',(0+384))
|
||||
__NR_memfd_create = Constant('__NR_memfd_create',(0+385))
|
||||
__NR_bpf = Constant('__NR_bpf',(0+386))
|
||||
__NR_execveat = Constant('__NR_execveat',(0+387))
|
||||
__NR_userfaultfd = Constant('__NR_userfaultfd',(0+388))
|
||||
__NR_membarrier = Constant('__NR_membarrier',(0+389))
|
||||
__NR_mlock2 = Constant('__NR_mlock2',(0+390))
|
||||
__NR_copy_file_range = Constant('__NR_copy_file_range',(0+391))
|
||||
__NR_preadv2 = Constant('__NR_preadv2',(0+392))
|
||||
__NR_pwritev2 = Constant('__NR_pwritev2',(0+393))
|
||||
__NR_pkey_mprotect = Constant('__NR_pkey_mprotect',(0 + 394))
|
||||
__NR_pkey_alloc = Constant('__NR_pkey_alloc',(0 + 395))
|
||||
__NR_pkey_free = Constant('__NR_pkey_free',(0 + 396))
|
||||
__NR_statx = Constant('__NR_statx',(0 + 397))
|
||||
__NR_rseq = Constant('__NR_rseq',(0 + 398))
|
||||
__NR_io_pgetevents = Constant('__NR_io_pgetevents',(0 + 399))
|
||||
__NR_migrate_pages = Constant('__NR_migrate_pages',(0 + 400))
|
||||
__NR_kexec_file_load = Constant('__NR_kexec_file_load',(0 + 401))
|
||||
__NR_clock_gettime64 = Constant('__NR_clock_gettime64',(0 + 403))
|
||||
__NR_clock_settime64 = Constant('__NR_clock_settime64',(0 + 404))
|
||||
__NR_clock_adjtime64 = Constant('__NR_clock_adjtime64',(0 + 405))
|
||||
__NR_clock_getres_time64 = Constant('__NR_clock_getres_time64',(0 + 406))
|
||||
__NR_clock_nanosleep_time64 = Constant('__NR_clock_nanosleep_time64',(0 + 407))
|
||||
__NR_timer_gettime64 = Constant('__NR_timer_gettime64',(0 + 408))
|
||||
__NR_timer_settime64 = Constant('__NR_timer_settime64',(0 + 409))
|
||||
__NR_timerfd_gettime64 = Constant('__NR_timerfd_gettime64',(0 + 410))
|
||||
__NR_timerfd_settime64 = Constant('__NR_timerfd_settime64',(0 + 411))
|
||||
__NR_utimensat_time64 = Constant('__NR_utimensat_time64',(0 + 412))
|
||||
__NR_pselect6_time64 = Constant('__NR_pselect6_time64',(0 + 413))
|
||||
__NR_ppoll_time64 = Constant('__NR_ppoll_time64',(0 + 414))
|
||||
__NR_io_pgetevents_time64 = Constant('__NR_io_pgetevents_time64',(0 + 416))
|
||||
__NR_recvmmsg_time64 = Constant('__NR_recvmmsg_time64',(0 + 417))
|
||||
__NR_mq_timedsend_time64 = Constant('__NR_mq_timedsend_time64',(0 + 418))
|
||||
__NR_mq_timedreceive_time64 = Constant('__NR_mq_timedreceive_time64',(0 + 419))
|
||||
__NR_semtimedop_time64 = Constant('__NR_semtimedop_time64',(0 + 420))
|
||||
__NR_rt_sigtimedwait_time64 = Constant('__NR_rt_sigtimedwait_time64',(0 + 421))
|
||||
__NR_futex_time64 = Constant('__NR_futex_time64',(0 + 422))
|
||||
__NR_sched_rr_get_interval_time64 = Constant('__NR_sched_rr_get_interval_time64',(0 + 423))
|
||||
__NR_pidfd_send_signal = Constant('__NR_pidfd_send_signal',(0 + 424))
|
||||
__NR_io_uring_setup = Constant('__NR_io_uring_setup',(0 + 425))
|
||||
__NR_io_uring_enter = Constant('__NR_io_uring_enter',(0 + 426))
|
||||
__NR_io_uring_register = Constant('__NR_io_uring_register',(0 + 427))
|
||||
__NR_open_tree = Constant('__NR_open_tree',(0 + 428))
|
||||
__NR_move_mount = Constant('__NR_move_mount',(0 + 429))
|
||||
__NR_fsopen = Constant('__NR_fsopen',(0 + 430))
|
||||
__NR_fsconfig = Constant('__NR_fsconfig',(0 + 431))
|
||||
__NR_fsmount = Constant('__NR_fsmount',(0 + 432))
|
||||
__NR_fspick = Constant('__NR_fspick',(0 + 433))
|
||||
__NR_pidfd_open = Constant('__NR_pidfd_open',(0 + 434))
|
||||
__NR_clone3 = Constant('__NR_clone3',(0 + 435))
|
||||
__NR_openat2 = Constant('__NR_openat2',(0 + 437))
|
||||
__NR_pidfd_getfd = Constant('__NR_pidfd_getfd',(0 + 438))
|
||||
__ARM_NR_BASE = Constant('__ARM_NR_BASE',(0+0x0f0000))
|
||||
__ARM_NR_breakpoint = Constant('__ARM_NR_breakpoint',((0+0x0f0000)+1))
|
||||
__ARM_NR_cacheflush = Constant('__ARM_NR_cacheflush',((0+0x0f0000)+2))
|
||||
@@ -612,9 +692,9 @@ __ARGS_getsockname = Constant('__ARGS_getsockname',0)
|
||||
__ARGS_getpeername = Constant('__ARGS_getpeername',0)
|
||||
__ARGS_socketpair = Constant('__ARGS_socketpair',0)
|
||||
__ARGS_send = Constant('__ARGS_send',0)
|
||||
__ARGS_sendto = Constant('__ARGS_sendto',0)
|
||||
__ARGS_sendto = Constant('__ARGS_sendto',1)
|
||||
__ARGS_recv = Constant('__ARGS_recv',0)
|
||||
__ARGS_recvfrom = Constant('__ARGS_recvfrom',0)
|
||||
__ARGS_recvfrom = Constant('__ARGS_recvfrom',1)
|
||||
__ARGS_shutdown = Constant('__ARGS_shutdown',0)
|
||||
__ARGS_setsockopt = Constant('__ARGS_setsockopt',0)
|
||||
__ARGS_getsockopt = Constant('__ARGS_getsockopt',0)
|
||||
@@ -674,6 +754,31 @@ __ARGS_eventfd = Constant('__ARGS_eventfd',0)
|
||||
__ARGS_fallocate = Constant('__ARGS_fallocate',0)
|
||||
__ARGS_timerfd_settime = Constant('__ARGS_timerfd_settime',0)
|
||||
__ARGS_timerfd_gettime = Constant('__ARGS_timerfd_gettime',0)
|
||||
__ARGS_signalfd4 = Constant('__ARGS_signalfd4',0)
|
||||
__ARGS_eventfd2 = Constant('__ARGS_eventfd2',0)
|
||||
__ARGS_epoll_create1 = Constant('__ARGS_epoll_create1',0)
|
||||
__ARGS_dup3 = Constant('__ARGS_dup3',0)
|
||||
__ARGS_pipe2 = Constant('__ARGS_pipe2',0)
|
||||
__ARGS_inotify_init1 = Constant('__ARGS_inotify_init1',0)
|
||||
__ARGS_preadv = Constant('__ARGS_preadv',0)
|
||||
__ARGS_pwritev = Constant('__ARGS_pwritev',0)
|
||||
__ARGS_rt_tgsigqueueinfo = Constant('__ARGS_rt_tgsigqueueinfo',0)
|
||||
__ARGS_perf_event_open = Constant('__ARGS_perf_event_open',1)
|
||||
__ARGS_recvmmsg = Constant('__ARGS_recvmmsg',1)
|
||||
__ARGS_accept4 = Constant('__ARGS_accept4',0)
|
||||
__ARGS_fanotify_init = Constant('__ARGS_fanotify_init',0)
|
||||
__ARGS_fanotify_mark = Constant('__ARGS_fanotify_mark',1)
|
||||
__ARGS_prlimit64 = Constant('__ARGS_prlimit64',0)
|
||||
__ARGS_name_to_handle_at = Constant('__ARGS_name_to_handle_at',1)
|
||||
__ARGS_open_by_handle_at = Constant('__ARGS_open_by_handle_at',0)
|
||||
__ARGS_clock_adjtime = Constant('__ARGS_clock_adjtime',0)
|
||||
__ARGS_syncfs = Constant('__ARGS_syncfs',0)
|
||||
__ARGS_sendmmsg = Constant('__ARGS_sendmmsg',0)
|
||||
__ARGS_setns = Constant('__ARGS_setns',0)
|
||||
__ARGS_process_vm_readv = Constant('__ARGS_process_vm_readv',1)
|
||||
__ARGS_process_vm_writev = Constant('__ARGS_process_vm_writev',1)
|
||||
__ARGS_kcmp = Constant('__ARGS_kcmp',1)
|
||||
__ARGS_finit_module = Constant('__ARGS_finit_module',0)
|
||||
MAP_32BIT = Constant('MAP_32BIT',0x40)
|
||||
INADDR_ANY = Constant('INADDR_ANY',0)
|
||||
INADDR_BROADCAST = Constant('INADDR_BROADCAST',0xffffffff)
|
||||
@@ -809,7 +914,11 @@ ENOKEY = Constant('ENOKEY',126)
|
||||
EKEYEXPIRED = Constant('EKEYEXPIRED',127)
|
||||
EKEYREVOKED = Constant('EKEYREVOKED',128)
|
||||
EKEYREJECTED = Constant('EKEYREJECTED',129)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((129) + 1))
|
||||
EOWNERDEAD = Constant('EOWNERDEAD',130)
|
||||
ENOTRECOVERABLE = Constant('ENOTRECOVERABLE',131)
|
||||
ERFKILL = Constant('ERFKILL',132)
|
||||
EHWPOISON = Constant('EHWPOISON',133)
|
||||
__SYS_NERR = Constant('__SYS_NERR',((133) + 1))
|
||||
__LITTLE_ENDIAN = Constant('__LITTLE_ENDIAN',1234)
|
||||
__BIG_ENDIAN = Constant('__BIG_ENDIAN',4321)
|
||||
__BYTE_ORDER = Constant('__BYTE_ORDER',1234)
|
||||
@@ -818,9 +927,55 @@ LITTLE_ENDIAN = Constant('LITTLE_ENDIAN',1234)
|
||||
BIG_ENDIAN = Constant('BIG_ENDIAN',4321)
|
||||
BYTE_ORDER = Constant('BYTE_ORDER',1234)
|
||||
__WORDSIZE = Constant('__WORDSIZE',32)
|
||||
INT8_MAX = Constant('INT8_MAX',(127))
|
||||
INT16_MAX = Constant('INT16_MAX',(32767))
|
||||
INT32_MAX = Constant('INT32_MAX',(2147483647))
|
||||
INT64_MAX = Constant('INT64_MAX',(9223372036854775807))
|
||||
INT8_MIN = Constant('INT8_MIN',(-1 - (127)))
|
||||
INT16_MIN = Constant('INT16_MIN',(-1 - (32767)))
|
||||
INT32_MIN = Constant('INT32_MIN',(-1 - (2147483647)))
|
||||
INT64_MIN = Constant('INT64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_LEAST8_MAX = Constant('INT_LEAST8_MAX',(127))
|
||||
INT_LEAST8_MIN = Constant('INT_LEAST8_MIN',(-1 - (127)))
|
||||
INT_LEAST16_MAX = Constant('INT_LEAST16_MAX',(32767))
|
||||
INT_LEAST16_MIN = Constant('INT_LEAST16_MIN',(-1 - (32767)))
|
||||
INT_LEAST32_MAX = Constant('INT_LEAST32_MAX',(2147483647))
|
||||
INT_LEAST32_MIN = Constant('INT_LEAST32_MIN',(-1 - (2147483647)))
|
||||
INT_LEAST64_MAX = Constant('INT_LEAST64_MAX',(9223372036854775807))
|
||||
INT_LEAST64_MIN = Constant('INT_LEAST64_MIN',(-1 - (9223372036854775807)))
|
||||
UINT8_MAX = Constant('UINT8_MAX',0xff)
|
||||
UINT16_MAX = Constant('UINT16_MAX',0xffff)
|
||||
UINT32_MAX = Constant('UINT32_MAX',0xffffffff)
|
||||
UINT64_MAX = Constant('UINT64_MAX',0xffffffffffffffff)
|
||||
UINT_LEAST8_MAX = Constant('UINT_LEAST8_MAX',0xff)
|
||||
UINT_LEAST16_MAX = Constant('UINT_LEAST16_MAX',0xffff)
|
||||
UINT_LEAST32_MAX = Constant('UINT_LEAST32_MAX',0xffffffff)
|
||||
UINT_LEAST64_MAX = Constant('UINT_LEAST64_MAX',0xffffffffffffffff)
|
||||
INTPTR_MIN = Constant('INTPTR_MIN',(-1 - (2147483647)))
|
||||
INTPTR_MAX = Constant('INTPTR_MAX',(2147483647))
|
||||
UINTPTR_MAX = Constant('UINTPTR_MAX',0xffffffff)
|
||||
SIZE_MAX = Constant('SIZE_MAX',0xffffffff)
|
||||
PTRDIFF_MIN = Constant('PTRDIFF_MIN',(-1 - (2147483647)))
|
||||
PTRDIFF_MAX = Constant('PTRDIFF_MAX',(2147483647))
|
||||
INTMAX_MIN = Constant('INTMAX_MIN',(-1 - (9223372036854775807)))
|
||||
INTMAX_MAX = Constant('INTMAX_MAX',(9223372036854775807))
|
||||
UINTMAX_MAX = Constant('UINTMAX_MAX',0xffffffffffffffff)
|
||||
INT_FAST8_MIN = Constant('INT_FAST8_MIN',(-1 - (127)))
|
||||
INT_FAST8_MAX = Constant('INT_FAST8_MAX',(127))
|
||||
INT_FAST64_MIN = Constant('INT_FAST64_MIN',(-1 - (9223372036854775807)))
|
||||
INT_FAST64_MAX = Constant('INT_FAST64_MAX',(9223372036854775807))
|
||||
UINT_FAST8_MAX = Constant('UINT_FAST8_MAX',0xff)
|
||||
UINT_FAST64_MAX = Constant('UINT_FAST64_MAX',0xffffffffffffffff)
|
||||
INT_FAST16_MIN = Constant('INT_FAST16_MIN',(-1 - (2147483647)))
|
||||
INT_FAST16_MAX = Constant('INT_FAST16_MAX',(2147483647))
|
||||
UINT_FAST16_MAX = Constant('UINT_FAST16_MAX',0xffffffff)
|
||||
INT_FAST32_MIN = Constant('INT_FAST32_MIN',(-1 - (2147483647)))
|
||||
INT_FAST32_MAX = Constant('INT_FAST32_MAX',(2147483647))
|
||||
UINT_FAST32_MAX = Constant('UINT_FAST32_MAX',0xffffffff)
|
||||
WINT_MIN = Constant('WINT_MIN',0)
|
||||
__FSUID_H = Constant('__FSUID_H',1)
|
||||
NSIG = Constant('NSIG',32)
|
||||
_NSIG = Constant('_NSIG',64)
|
||||
_NSIG = Constant('_NSIG',65)
|
||||
SIGHUP = Constant('SIGHUP',1)
|
||||
SIGINT = Constant('SIGINT',2)
|
||||
SIGQUIT = Constant('SIGQUIT',3)
|
||||
@@ -858,7 +1013,7 @@ SIGCLD = Constant('SIGCLD',17)
|
||||
SIGPOLL = Constant('SIGPOLL',29)
|
||||
SIGLOST = Constant('SIGLOST',30)
|
||||
SIGRTMIN = Constant('SIGRTMIN',32)
|
||||
SIGRTMAX = Constant('SIGRTMAX',(64-1))
|
||||
SIGRTMAX = Constant('SIGRTMAX',(65-1))
|
||||
SA_NOCLDSTOP = Constant('SA_NOCLDSTOP',0x00000001)
|
||||
SA_NOCLDWAIT = Constant('SA_NOCLDWAIT',0x00000002)
|
||||
SA_SIGINFO = Constant('SA_SIGINFO',0x00000004)
|
||||
@@ -908,6 +1063,8 @@ _SC_PAGESIZE = Constant('_SC_PAGESIZE',5)
|
||||
_SC_NPROCESSORS_ONLN = Constant('_SC_NPROCESSORS_ONLN',6)
|
||||
_SC_NPROCESSORS_CONF = Constant('_SC_NPROCESSORS_CONF',6)
|
||||
_SC_PHYS_PAGES = Constant('_SC_PHYS_PAGES',7)
|
||||
_SC_GETPW_R_SIZE_MAX = Constant('_SC_GETPW_R_SIZE_MAX',8)
|
||||
_SC_GETGR_R_SIZE_MAX = Constant('_SC_GETGR_R_SIZE_MAX',9)
|
||||
_PC_PATH_MAX = Constant('_PC_PATH_MAX',1)
|
||||
_PC_VDISABLE = Constant('_PC_VDISABLE',2)
|
||||
L_cuserid = Constant('L_cuserid',17)
|
||||
@@ -916,6 +1073,7 @@ F_ULOCK = Constant('F_ULOCK',0)
|
||||
F_LOCK = Constant('F_LOCK',1)
|
||||
F_TLOCK = Constant('F_TLOCK',2)
|
||||
F_TEST = Constant('F_TEST',3)
|
||||
_POSIX_MAPPED_FILES = Constant('_POSIX_MAPPED_FILES',200809)
|
||||
STAT64_HAS_BROKEN_ST_INO = Constant('STAT64_HAS_BROKEN_ST_INO',1)
|
||||
S_IFMT = Constant('S_IFMT',0o0170000)
|
||||
S_IFSOCK = Constant('S_IFSOCK',0o140000)
|
||||
@@ -943,84 +1101,7 @@ S_IXOTH = Constant('S_IXOTH',0o0001)
|
||||
S_IREAD = Constant('S_IREAD',0o0400)
|
||||
S_IWRITE = Constant('S_IWRITE',0o0200)
|
||||
S_IEXEC = Constant('S_IEXEC',0o0100)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
O_ACCMODE = Constant('O_ACCMODE',0o003)
|
||||
O_RDONLY = Constant('O_RDONLY',0o0)
|
||||
O_WRONLY = Constant('O_WRONLY',0o1)
|
||||
O_RDWR = Constant('O_RDWR',0o2)
|
||||
O_CREAT = Constant('O_CREAT',0o100)
|
||||
O_EXCL = Constant('O_EXCL',0o200)
|
||||
O_NOCTTY = Constant('O_NOCTTY',0o400)
|
||||
O_TRUNC = Constant('O_TRUNC',0o1000)
|
||||
O_APPEND = Constant('O_APPEND',0o2000)
|
||||
O_NONBLOCK = Constant('O_NONBLOCK',0o4000)
|
||||
O_NDELAY = Constant('O_NDELAY',0o4000)
|
||||
O_SYNC = Constant('O_SYNC',0o10000)
|
||||
FASYNC = Constant('FASYNC',0o20000)
|
||||
O_DIRECTORY = Constant('O_DIRECTORY',0o40000)
|
||||
O_NOFOLLOW = Constant('O_NOFOLLOW',0o100000)
|
||||
O_DIRECT = Constant('O_DIRECT',0o200000)
|
||||
O_LARGEFILE = Constant('O_LARGEFILE',0o400000)
|
||||
O_NOATIME = Constant('O_NOATIME',0o1000000)
|
||||
F_DUPFD = Constant('F_DUPFD',0)
|
||||
F_GETFD = Constant('F_GETFD',1)
|
||||
F_SETFD = Constant('F_SETFD',2)
|
||||
F_GETFL = Constant('F_GETFL',3)
|
||||
F_SETFL = Constant('F_SETFL',4)
|
||||
F_GETLK = Constant('F_GETLK',5)
|
||||
F_SETLK = Constant('F_SETLK',6)
|
||||
F_SETLKW = Constant('F_SETLKW',7)
|
||||
F_SETOWN = Constant('F_SETOWN',8)
|
||||
F_GETOWN = Constant('F_GETOWN',9)
|
||||
F_SETSIG = Constant('F_SETSIG',10)
|
||||
F_GETSIG = Constant('F_GETSIG',11)
|
||||
F_GETLK64 = Constant('F_GETLK64',12)
|
||||
F_SETLK64 = Constant('F_SETLK64',13)
|
||||
F_SETLKW64 = Constant('F_SETLKW64',14)
|
||||
FD_CLOEXEC = Constant('FD_CLOEXEC',1)
|
||||
F_RDLCK = Constant('F_RDLCK',0)
|
||||
F_WRLCK = Constant('F_WRLCK',1)
|
||||
F_UNLCK = Constant('F_UNLCK',2)
|
||||
F_EXLCK = Constant('F_EXLCK',4)
|
||||
F_SHLCK = Constant('F_SHLCK',8)
|
||||
F_INPROGRESS = Constant('F_INPROGRESS',16)
|
||||
LOCK_SH = Constant('LOCK_SH',1)
|
||||
LOCK_EX = Constant('LOCK_EX',2)
|
||||
LOCK_NB = Constant('LOCK_NB',4)
|
||||
LOCK_UN = Constant('LOCK_UN',8)
|
||||
LOCK_MAND = Constant('LOCK_MAND',32)
|
||||
LOCK_READ = Constant('LOCK_READ',64)
|
||||
LOCK_WRITE = Constant('LOCK_WRITE',128)
|
||||
LOCK_RW = Constant('LOCK_RW',192)
|
||||
O_ASYNC = Constant('O_ASYNC',0o20000)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_FIXED = Constant('MAP_FIXED',0x10)
|
||||
MAP_ANONYMOUS = Constant('MAP_ANONYMOUS',0x20)
|
||||
MAP_GROWSDOWN = Constant('MAP_GROWSDOWN',0x0100)
|
||||
MAP_DENYWRITE = Constant('MAP_DENYWRITE',0x0800)
|
||||
MAP_EXECUTABLE = Constant('MAP_EXECUTABLE',0x1000)
|
||||
MAP_LOCKED = Constant('MAP_LOCKED',0x2000)
|
||||
MAP_NORESERVE = Constant('MAP_NORESERVE',0x4000)
|
||||
MAP_POPULATE = Constant('MAP_POPULATE',0x8000)
|
||||
MS_ASYNC = Constant('MS_ASYNC',1)
|
||||
MS_INVALIDATE = Constant('MS_INVALIDATE',2)
|
||||
MS_SYNC = Constant('MS_SYNC',4)
|
||||
MCL_CURRENT = Constant('MCL_CURRENT',1)
|
||||
MCL_FUTURE = Constant('MCL_FUTURE',2)
|
||||
MADV_NORMAL = Constant('MADV_NORMAL',0x0)
|
||||
MADV_RANDOM = Constant('MADV_RANDOM',0x1)
|
||||
MADV_SEQUENTIAL = Constant('MADV_SEQUENTIAL',0x2)
|
||||
MADV_WILLNEED = Constant('MADV_WILLNEED',0x3)
|
||||
MADV_DONTNEED = Constant('MADV_DONTNEED',0x4)
|
||||
MAP_ANON = Constant('MAP_ANON',0x20)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
_SYS_UIO = Constant('_SYS_UIO',1)
|
||||
SOL_SOCKET = Constant('SOL_SOCKET',1)
|
||||
SO_DEBUG = Constant('SO_DEBUG',1)
|
||||
SO_REUSEADDR = Constant('SO_REUSEADDR',2)
|
||||
@@ -1036,29 +1117,64 @@ SO_NO_CHECK = Constant('SO_NO_CHECK',11)
|
||||
SO_PRIORITY = Constant('SO_PRIORITY',12)
|
||||
SO_LINGER = Constant('SO_LINGER',13)
|
||||
SO_BSDCOMPAT = Constant('SO_BSDCOMPAT',14)
|
||||
SO_REUSEPORT = Constant('SO_REUSEPORT',15)
|
||||
SO_PASSCRED = Constant('SO_PASSCRED',16)
|
||||
SO_PEERCRED = Constant('SO_PEERCRED',17)
|
||||
SO_RCVLOWAT = Constant('SO_RCVLOWAT',18)
|
||||
SO_SNDLOWAT = Constant('SO_SNDLOWAT',19)
|
||||
SO_RCVTIMEO = Constant('SO_RCVTIMEO',20)
|
||||
SO_SNDTIMEO = Constant('SO_SNDTIMEO',21)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_SECURITY_AUTHENTICATION = Constant('SO_SECURITY_AUTHENTICATION',22)
|
||||
SO_SECURITY_ENCRYPTION_TRANSPORT = Constant('SO_SECURITY_ENCRYPTION_TRANSPORT',23)
|
||||
SO_SECURITY_ENCRYPTION_NETWORK = Constant('SO_SECURITY_ENCRYPTION_NETWORK',24)
|
||||
SO_BINDTODEVICE = Constant('SO_BINDTODEVICE',25)
|
||||
SO_ATTACH_FILTER = Constant('SO_ATTACH_FILTER',26)
|
||||
SO_DETACH_FILTER = Constant('SO_DETACH_FILTER',27)
|
||||
SO_GET_FILTER = Constant('SO_GET_FILTER',26)
|
||||
SO_PEERNAME = Constant('SO_PEERNAME',28)
|
||||
SO_TIMESTAMP = Constant('SO_TIMESTAMP',29)
|
||||
SCM_TIMESTAMP = Constant('SCM_TIMESTAMP',29)
|
||||
SO_ACCEPTCONN = Constant('SO_ACCEPTCONN',30)
|
||||
SO_PEERSEC = Constant('SO_PEERSEC',31)
|
||||
SO_SNDBUFFORCE = Constant('SO_SNDBUFFORCE',32)
|
||||
SO_RCVBUFFORCE = Constant('SO_RCVBUFFORCE',33)
|
||||
SO_PASSSEC = Constant('SO_PASSSEC',34)
|
||||
SO_TIMESTAMPNS = Constant('SO_TIMESTAMPNS',35)
|
||||
SCM_TIMESTAMPNS = Constant('SCM_TIMESTAMPNS',35)
|
||||
SO_MARK = Constant('SO_MARK',36)
|
||||
SO_TIMESTAMPING = Constant('SO_TIMESTAMPING',37)
|
||||
SCM_TIMESTAMPING = Constant('SCM_TIMESTAMPING',37)
|
||||
SO_PROTOCOL = Constant('SO_PROTOCOL',38)
|
||||
SO_DOMAIN = Constant('SO_DOMAIN',39)
|
||||
SO_RXQ_OVFL = Constant('SO_RXQ_OVFL',40)
|
||||
SO_WIFI_STATUS = Constant('SO_WIFI_STATUS',41)
|
||||
SCM_WIFI_STATUS = Constant('SCM_WIFI_STATUS',41)
|
||||
SO_PEEK_OFF = Constant('SO_PEEK_OFF',42)
|
||||
SO_NOFCS = Constant('SO_NOFCS',43)
|
||||
SO_LOCK_FILTER = Constant('SO_LOCK_FILTER',44)
|
||||
SO_SELECT_ERR_QUEUE = Constant('SO_SELECT_ERR_QUEUE',45)
|
||||
SO_BUSY_POLL = Constant('SO_BUSY_POLL',46)
|
||||
SO_MAX_PACING_RATE = Constant('SO_MAX_PACING_RATE',47)
|
||||
SO_BPF_EXTENSIONS = Constant('SO_BPF_EXTENSIONS',48)
|
||||
SO_INCOMING_CPU = Constant('SO_INCOMING_CPU',49)
|
||||
SO_ATTACH_BPF = Constant('SO_ATTACH_BPF',50)
|
||||
SO_DETACH_BPF = Constant('SO_DETACH_BPF',27)
|
||||
SO_ATTACH_REUSEPORT_CBPF = Constant('SO_ATTACH_REUSEPORT_CBPF',51)
|
||||
SO_ATTACH_REUSEPORT_EBPF = Constant('SO_ATTACH_REUSEPORT_EBPF',52)
|
||||
SO_CNX_ADVICE = Constant('SO_CNX_ADVICE',53)
|
||||
SCM_TIMESTAMPING_OPT_STATS = Constant('SCM_TIMESTAMPING_OPT_STATS',54)
|
||||
SO_MEMINFO = Constant('SO_MEMINFO',55)
|
||||
SO_INCOMING_NAPI_ID = Constant('SO_INCOMING_NAPI_ID',56)
|
||||
SO_COOKIE = Constant('SO_COOKIE',57)
|
||||
SCM_TIMESTAMPING_PKTINFO = Constant('SCM_TIMESTAMPING_PKTINFO',58)
|
||||
SO_PEERGROUPS = Constant('SO_PEERGROUPS',59)
|
||||
SO_ZEROCOPY = Constant('SO_ZEROCOPY',60)
|
||||
SOCK_STREAM = Constant('SOCK_STREAM',1)
|
||||
SOCK_DGRAM = Constant('SOCK_DGRAM',2)
|
||||
SOCK_RAW = Constant('SOCK_RAW',3)
|
||||
SOCK_RDM = Constant('SOCK_RDM',4)
|
||||
SOCK_SEQPACKET = Constant('SOCK_SEQPACKET',5)
|
||||
SOCK_DCCP = Constant('SOCK_DCCP',6)
|
||||
SOCK_PACKET = Constant('SOCK_PACKET',10)
|
||||
UIO_FASTIOV = Constant('UIO_FASTIOV',8)
|
||||
UIO_MAXIOV = Constant('UIO_MAXIOV',1024)
|
||||
@@ -1092,7 +1208,25 @@ AF_SNA = Constant('AF_SNA',22)
|
||||
AF_IRDA = Constant('AF_IRDA',23)
|
||||
AF_PPPOX = Constant('AF_PPPOX',24)
|
||||
AF_WANPIPE = Constant('AF_WANPIPE',25)
|
||||
AF_MAX = Constant('AF_MAX',32)
|
||||
AF_LLC = Constant('AF_LLC',26)
|
||||
AF_IB = Constant('AF_IB',27)
|
||||
AF_MPLS = Constant('AF_MPLS',28)
|
||||
AF_CAN = Constant('AF_CAN',29)
|
||||
AF_TIPC = Constant('AF_TIPC',30)
|
||||
AF_BLUETOOTH = Constant('AF_BLUETOOTH',31)
|
||||
AF_IUCV = Constant('AF_IUCV',32)
|
||||
AF_RXRPC = Constant('AF_RXRPC',33)
|
||||
AF_ISDN = Constant('AF_ISDN',34)
|
||||
AF_PHONET = Constant('AF_PHONET',35)
|
||||
AF_IEEE802154 = Constant('AF_IEEE802154',36)
|
||||
AF_CAIF = Constant('AF_CAIF',37)
|
||||
AF_ALG = Constant('AF_ALG',38)
|
||||
AF_NFC = Constant('AF_NFC',39)
|
||||
AF_VSOCK = Constant('AF_VSOCK',40)
|
||||
AF_KCM = Constant('AF_KCM',41)
|
||||
AF_QIPCRTR = Constant('AF_QIPCRTR',42)
|
||||
AF_SMC = Constant('AF_SMC',43)
|
||||
AF_MAX = Constant('AF_MAX',44)
|
||||
PF_UNSPEC = Constant('PF_UNSPEC',0)
|
||||
PF_UNIX = Constant('PF_UNIX',1)
|
||||
PF_LOCAL = Constant('PF_LOCAL',1)
|
||||
@@ -1120,7 +1254,25 @@ PF_SNA = Constant('PF_SNA',22)
|
||||
PF_IRDA = Constant('PF_IRDA',23)
|
||||
PF_PPPOX = Constant('PF_PPPOX',24)
|
||||
PF_WANPIPE = Constant('PF_WANPIPE',25)
|
||||
PF_MAX = Constant('PF_MAX',32)
|
||||
PF_LLC = Constant('PF_LLC',26)
|
||||
PF_IB = Constant('PF_IB',27)
|
||||
PF_MPLS = Constant('PF_MPLS',28)
|
||||
PF_CAN = Constant('PF_CAN',29)
|
||||
PF_TIPC = Constant('PF_TIPC',30)
|
||||
PF_BLUETOOTH = Constant('PF_BLUETOOTH',31)
|
||||
PF_IUCV = Constant('PF_IUCV',32)
|
||||
PF_RXRPC = Constant('PF_RXRPC',33)
|
||||
PF_ISDN = Constant('PF_ISDN',34)
|
||||
PF_PHONET = Constant('PF_PHONET',35)
|
||||
PF_IEEE802154 = Constant('PF_IEEE802154',36)
|
||||
PF_CAIF = Constant('PF_CAIF',37)
|
||||
PF_ALG = Constant('PF_ALG',38)
|
||||
PF_NFC = Constant('PF_NFC',39)
|
||||
PF_VSOCK = Constant('PF_VSOCK',40)
|
||||
PF_KCM = Constant('PF_KCM',41)
|
||||
PF_QIPCRTR = Constant('PF_QIPCRTR',42)
|
||||
PF_SMC = Constant('PF_SMC',43)
|
||||
PF_MAX = Constant('PF_MAX',44)
|
||||
SOMAXCONN = Constant('SOMAXCONN',128)
|
||||
MSG_OOB = Constant('MSG_OOB',1)
|
||||
MSG_PEEK = Constant('MSG_PEEK',2)
|
||||
@@ -1133,18 +1285,26 @@ MSG_DONTWAIT = Constant('MSG_DONTWAIT',0x40)
|
||||
MSG_EOR = Constant('MSG_EOR',0x80)
|
||||
MSG_WAITALL = Constant('MSG_WAITALL',0x100)
|
||||
MSG_FIN = Constant('MSG_FIN',0x200)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_SYN = Constant('MSG_SYN',0x400)
|
||||
MSG_CONFIRM = Constant('MSG_CONFIRM',0x800)
|
||||
MSG_RST = Constant('MSG_RST',0x1000)
|
||||
MSG_ERRQUEUE = Constant('MSG_ERRQUEUE',0x2000)
|
||||
MSG_NOSIGNAL = Constant('MSG_NOSIGNAL',0x4000)
|
||||
MSG_MORE = Constant('MSG_MORE',0x8000)
|
||||
MSG_WAITFORONE = Constant('MSG_WAITFORONE',0x10000)
|
||||
MSG_SENDPAGE_NOTLAST = Constant('MSG_SENDPAGE_NOTLAST',0x20000)
|
||||
MSG_BATCH = Constant('MSG_BATCH',0x40000)
|
||||
MSG_EOF = Constant('MSG_EOF',0x200)
|
||||
MSG_ZEROCOPY = Constant('MSG_ZEROCOPY',0x4000000)
|
||||
MSG_FASTOPEN = Constant('MSG_FASTOPEN',0x20000000)
|
||||
MSG_CMSG_CLOEXEC = Constant('MSG_CMSG_CLOEXEC',0x40000000)
|
||||
SOL_IP = Constant('SOL_IP',0)
|
||||
SOL_TCP = Constant('SOL_TCP',6)
|
||||
SOL_UDP = Constant('SOL_UDP',17)
|
||||
SOL_IPV6 = Constant('SOL_IPV6',41)
|
||||
SOL_ICMPV6 = Constant('SOL_ICMPV6',58)
|
||||
SOL_SCTP = Constant('SOL_SCTP',132)
|
||||
SOL_UDPLITE = Constant('SOL_UDPLITE',136)
|
||||
SOL_RAW = Constant('SOL_RAW',255)
|
||||
SOL_IPX = Constant('SOL_IPX',256)
|
||||
SOL_AX25 = Constant('SOL_AX25',257)
|
||||
@@ -1157,6 +1317,22 @@ SOL_PACKET = Constant('SOL_PACKET',263)
|
||||
SOL_ATM = Constant('SOL_ATM',264)
|
||||
SOL_AAL = Constant('SOL_AAL',265)
|
||||
SOL_IRDA = Constant('SOL_IRDA',266)
|
||||
SOL_NETBEUI = Constant('SOL_NETBEUI',267)
|
||||
SOL_LLC = Constant('SOL_LLC',268)
|
||||
SOL_DCCP = Constant('SOL_DCCP',269)
|
||||
SOL_NETLINK = Constant('SOL_NETLINK',270)
|
||||
SOL_TIPC = Constant('SOL_TIPC',271)
|
||||
SOL_RXRPC = Constant('SOL_RXRPC',272)
|
||||
SOL_PPPOL2TP = Constant('SOL_PPPOL2TP',273)
|
||||
SOL_BLUETOOTH = Constant('SOL_BLUETOOTH',274)
|
||||
SOL_PNPIPE = Constant('SOL_PNPIPE',275)
|
||||
SOL_RDS = Constant('SOL_RDS',276)
|
||||
SOL_IUCV = Constant('SOL_IUCV',277)
|
||||
SOL_CAIF = Constant('SOL_CAIF',278)
|
||||
SOL_ALG = Constant('SOL_ALG',279)
|
||||
SOL_NFC = Constant('SOL_NFC',280)
|
||||
SOL_KCM = Constant('SOL_KCM',281)
|
||||
SOL_TLS = Constant('SOL_TLS',282)
|
||||
IPX_TYPE = Constant('IPX_TYPE',1)
|
||||
SHUT_RD = Constant('SHUT_RD',0)
|
||||
SHUT_WR = Constant('SHUT_WR',1)
|
||||
@@ -1180,6 +1356,10 @@ EAI_SYSTEM = Constant('EAI_SYSTEM',-11)
|
||||
AI_NUMERICHOST = Constant('AI_NUMERICHOST',1)
|
||||
AI_CANONNAME = Constant('AI_CANONNAME',2)
|
||||
AI_PASSIVE = Constant('AI_PASSIVE',4)
|
||||
AI_NUMERICSERV = Constant('AI_NUMERICSERV',8)
|
||||
AI_ADDRCONFIG = Constant('AI_ADDRCONFIG',16)
|
||||
AI_V4MAPPED = Constant('AI_V4MAPPED',32)
|
||||
AI_ALL = Constant('AI_ALL',64)
|
||||
SIOCADDRT = Constant('SIOCADDRT',0x890B)
|
||||
SIOCDELRT = Constant('SIOCDELRT',0x890C)
|
||||
SIOCRTMSG = Constant('SIOCRTMSG',0x890D)
|
||||
@@ -1236,6 +1416,130 @@ SIOCSIFMAP = Constant('SIOCSIFMAP',0x8971)
|
||||
SIOCADDDLCI = Constant('SIOCADDDLCI',0x8980)
|
||||
SIOCDELDLCI = Constant('SIOCDELDLCI',0x8981)
|
||||
SIOCDEVPRIVATE = Constant('SIOCDEVPRIVATE',0x89F0)
|
||||
F_LINUX_SPECIFIC_BASE = Constant('F_LINUX_SPECIFIC_BASE',1024)
|
||||
O_ACCMODE = Constant('O_ACCMODE',0o003)
|
||||
O_RDONLY = Constant('O_RDONLY',0o0)
|
||||
O_WRONLY = Constant('O_WRONLY',0o1)
|
||||
O_RDWR = Constant('O_RDWR',0o2)
|
||||
O_CREAT = Constant('O_CREAT',0o100)
|
||||
O_EXCL = Constant('O_EXCL',0o200)
|
||||
O_NOCTTY = Constant('O_NOCTTY',0o400)
|
||||
O_TRUNC = Constant('O_TRUNC',0o1000)
|
||||
O_APPEND = Constant('O_APPEND',0o2000)
|
||||
O_NONBLOCK = Constant('O_NONBLOCK',0o4000)
|
||||
O_NDELAY = Constant('O_NDELAY',0o4000)
|
||||
O_DSYNC = Constant('O_DSYNC',0o10000)
|
||||
FASYNC = Constant('FASYNC',0o20000)
|
||||
O_DIRECTORY = Constant('O_DIRECTORY',0o40000)
|
||||
O_NOFOLLOW = Constant('O_NOFOLLOW',0o100000)
|
||||
O_DIRECT = Constant('O_DIRECT',0o200000)
|
||||
O_LARGEFILE = Constant('O_LARGEFILE',0o400000)
|
||||
O_NOATIME = Constant('O_NOATIME',0o1000000)
|
||||
O_CLOEXEC = Constant('O_CLOEXEC',0o2000000)
|
||||
O_SYNC = Constant('O_SYNC',(0o10000|0o4000000))
|
||||
O_PATH = Constant('O_PATH',0o10000000)
|
||||
__O_TMPFILE = Constant('__O_TMPFILE',0o20000000)
|
||||
F_DUPFD = Constant('F_DUPFD',0)
|
||||
F_GETFD = Constant('F_GETFD',1)
|
||||
F_SETFD = Constant('F_SETFD',2)
|
||||
F_GETFL = Constant('F_GETFL',3)
|
||||
F_SETFL = Constant('F_SETFL',4)
|
||||
F_GETLK = Constant('F_GETLK',5)
|
||||
F_SETLK = Constant('F_SETLK',6)
|
||||
F_SETLKW = Constant('F_SETLKW',7)
|
||||
F_SETOWN = Constant('F_SETOWN',8)
|
||||
F_GETOWN = Constant('F_GETOWN',9)
|
||||
F_SETSIG = Constant('F_SETSIG',10)
|
||||
F_GETSIG = Constant('F_GETSIG',11)
|
||||
F_GETLK64 = Constant('F_GETLK64',12)
|
||||
F_SETLK64 = Constant('F_SETLK64',13)
|
||||
F_SETLKW64 = Constant('F_SETLKW64',14)
|
||||
FD_CLOEXEC = Constant('FD_CLOEXEC',1)
|
||||
F_RDLCK = Constant('F_RDLCK',0)
|
||||
F_WRLCK = Constant('F_WRLCK',1)
|
||||
F_UNLCK = Constant('F_UNLCK',2)
|
||||
F_EXLCK = Constant('F_EXLCK',4)
|
||||
F_SHLCK = Constant('F_SHLCK',8)
|
||||
F_INPROGRESS = Constant('F_INPROGRESS',16)
|
||||
LOCK_SH = Constant('LOCK_SH',1)
|
||||
LOCK_EX = Constant('LOCK_EX',2)
|
||||
LOCK_NB = Constant('LOCK_NB',4)
|
||||
LOCK_UN = Constant('LOCK_UN',8)
|
||||
LOCK_MAND = Constant('LOCK_MAND',32)
|
||||
LOCK_READ = Constant('LOCK_READ',64)
|
||||
LOCK_WRITE = Constant('LOCK_WRITE',128)
|
||||
LOCK_RW = Constant('LOCK_RW',192)
|
||||
O_TMPFILE = Constant('O_TMPFILE',(0o20000000 | 0o40000))
|
||||
O_ASYNC = Constant('O_ASYNC',0o20000)
|
||||
F_SETOWN_EX = Constant('F_SETOWN_EX',15)
|
||||
F_GETOWN_EX = Constant('F_GETOWN_EX',16)
|
||||
F_GETOWNER_UIDS = Constant('F_GETOWNER_UIDS',17)
|
||||
F_OFD_GETLK = Constant('F_OFD_GETLK',36)
|
||||
F_OFD_SETLK = Constant('F_OFD_SETLK',37)
|
||||
F_OFD_SETLKW = Constant('F_OFD_SETLKW',38)
|
||||
F_OWNER_TID = Constant('F_OWNER_TID',0)
|
||||
F_OWNER_PID = Constant('F_OWNER_PID',1)
|
||||
F_OWNER_PGRP = Constant('F_OWNER_PGRP',2)
|
||||
AT_FDCWD = Constant('AT_FDCWD',-100)
|
||||
AT_SYMLINK_NOFOLLOW = Constant('AT_SYMLINK_NOFOLLOW',0x100)
|
||||
AT_REMOVEDIR = Constant('AT_REMOVEDIR',0x200)
|
||||
AT_SYMLINK_FOLLOW = Constant('AT_SYMLINK_FOLLOW',0x400)
|
||||
AT_NO_AUTOMOUNT = Constant('AT_NO_AUTOMOUNT',0x800)
|
||||
AT_EMPTY_PATH = Constant('AT_EMPTY_PATH',0x1000)
|
||||
AT_EACCESS = Constant('AT_EACCESS',0x200)
|
||||
MREMAP_MAYMOVE = Constant('MREMAP_MAYMOVE',1)
|
||||
MREMAP_FIXED = Constant('MREMAP_FIXED',2)
|
||||
PROT_READ = Constant('PROT_READ',0x1)
|
||||
PROT_WRITE = Constant('PROT_WRITE',0x2)
|
||||
PROT_EXEC = Constant('PROT_EXEC',0x4)
|
||||
PROT_SEM = Constant('PROT_SEM',0x8)
|
||||
PROT_NONE = Constant('PROT_NONE',0x0)
|
||||
PROT_GROWSDOWN = Constant('PROT_GROWSDOWN',0x01000000)
|
||||
PROT_GROWSUP = Constant('PROT_GROWSUP',0x02000000)
|
||||
MAP_SHARED = Constant('MAP_SHARED',0x01)
|
||||
MAP_PRIVATE = Constant('MAP_PRIVATE',0x02)
|
||||
MAP_TYPE = Constant('MAP_TYPE',0xf)
|
||||
MADV_REMOVE = Constant('MADV_REMOVE',9)
|
||||
MADV_DONTFORK = Constant('MADV_DONTFORK',10)
|
||||
MADV_DOFORK = Constant('MADV_DOFORK',11)
|
||||
MADV_MERGEABLE = Constant('MADV_MERGEABLE',12)
|
||||
MADV_UNMERGEABLE = Constant('MADV_UNMERGEABLE',13)
|
||||
MADV_HUGEPAGE = Constant('MADV_HUGEPAGE',14)
|
||||
MADV_NOHUGEPAGE = Constant('MADV_NOHUGEPAGE',15)
|
||||
MADV_DONTDUMP = Constant('MADV_DONTDUMP',16)
|
||||
MADV_DODUMP = Constant('MADV_DODUMP',17)
|
||||
MADV_HWPOISON = Constant('MADV_HWPOISON',100)
|
||||
MADV_SOFT_OFFLINE = Constant('MADV_SOFT_OFFLINE',101)
|
||||
MLOCK_ONFAULT = Constant('MLOCK_ONFAULT',1)
|
||||
MAP_FIXED = Constant('MAP_FIXED',0x10)
|
||||
MAP_ANONYMOUS = Constant('MAP_ANONYMOUS',0x20)
|
||||
MAP_GROWSDOWN = Constant('MAP_GROWSDOWN',0x0100)
|
||||
MAP_DENYWRITE = Constant('MAP_DENYWRITE',0x0800)
|
||||
MAP_EXECUTABLE = Constant('MAP_EXECUTABLE',0x1000)
|
||||
MAP_LOCKED = Constant('MAP_LOCKED',0x2000)
|
||||
MAP_NORESERVE = Constant('MAP_NORESERVE',0x4000)
|
||||
MAP_POPULATE = Constant('MAP_POPULATE',0x8000)
|
||||
MAP_NONBLOCK = Constant('MAP_NONBLOCK',0x10000)
|
||||
MAP_STACK = Constant('MAP_STACK',0x20000)
|
||||
MAP_HUGETLB = Constant('MAP_HUGETLB',0x40000)
|
||||
MS_ASYNC = Constant('MS_ASYNC',1)
|
||||
MS_INVALIDATE = Constant('MS_INVALIDATE',2)
|
||||
MS_SYNC = Constant('MS_SYNC',4)
|
||||
MCL_CURRENT = Constant('MCL_CURRENT',1)
|
||||
MCL_FUTURE = Constant('MCL_FUTURE',2)
|
||||
MCL_ONFAULT = Constant('MCL_ONFAULT',4)
|
||||
MADV_NORMAL = Constant('MADV_NORMAL',0x0)
|
||||
MADV_RANDOM = Constant('MADV_RANDOM',0x1)
|
||||
MADV_SEQUENTIAL = Constant('MADV_SEQUENTIAL',0x2)
|
||||
MADV_WILLNEED = Constant('MADV_WILLNEED',0x3)
|
||||
MADV_DONTNEED = Constant('MADV_DONTNEED',0x4)
|
||||
MAP_ANON = Constant('MAP_ANON',0x20)
|
||||
MAP_FILE = Constant('MAP_FILE',0)
|
||||
POSIX_MADV_NORMAL = Constant('POSIX_MADV_NORMAL',0x0)
|
||||
POSIX_MADV_SEQUENTIAL = Constant('POSIX_MADV_SEQUENTIAL',0x2)
|
||||
POSIX_MADV_RANDOM = Constant('POSIX_MADV_RANDOM',0x1)
|
||||
POSIX_MADV_WILLNEED = Constant('POSIX_MADV_WILLNEED',0x3)
|
||||
POSIX_MADV_DONTNEED = Constant('POSIX_MADV_DONTNEED',0x4)
|
||||
PTRACE_TRACEME = Constant('PTRACE_TRACEME',0)
|
||||
PTRACE_PEEKTEXT = Constant('PTRACE_PEEKTEXT',1)
|
||||
PTRACE_PEEKDATA = Constant('PTRACE_PEEKDATA',2)
|
||||
@@ -1301,6 +1605,7 @@ CC_Z_BIT = Constant('CC_Z_BIT',(1 << 30))
|
||||
CC_N_BIT = Constant('CC_N_BIT',(1 << 31))
|
||||
PCMASK = Constant('PCMASK',0)
|
||||
SYS_accept = Constant('SYS_accept',(0+285))
|
||||
SYS_accept4 = Constant('SYS_accept4',(0+366))
|
||||
SYS_access = Constant('SYS_access',(0+ 33))
|
||||
SYS_acct = Constant('SYS_acct',(0+ 51))
|
||||
SYS_add_key = Constant('SYS_add_key',(0+309))
|
||||
@@ -1310,6 +1615,7 @@ SYS_arm_fadvise64_64 = Constant('SYS_arm_fadvise64_64',(0+270))
|
||||
SYS_arm_sync_file_range = Constant('SYS_arm_sync_file_range',(0+341))
|
||||
SYS_bdflush = Constant('SYS_bdflush',(0+134))
|
||||
SYS_bind = Constant('SYS_bind',(0+282))
|
||||
SYS_bpf = Constant('SYS_bpf',(0+386))
|
||||
SYS_brk = Constant('SYS_brk',(0+ 45))
|
||||
SYS_capget = Constant('SYS_capget',(0+184))
|
||||
SYS_capset = Constant('SYS_capset',(0+185))
|
||||
@@ -1318,26 +1624,40 @@ SYS_chmod = Constant('SYS_chmod',(0+ 15))
|
||||
SYS_chown = Constant('SYS_chown',(0+182))
|
||||
SYS_chown32 = Constant('SYS_chown32',(0+212))
|
||||
SYS_chroot = Constant('SYS_chroot',(0+ 61))
|
||||
SYS_clock_adjtime = Constant('SYS_clock_adjtime',(0+372))
|
||||
SYS_clock_adjtime64 = Constant('SYS_clock_adjtime64',(0 + 405))
|
||||
SYS_clock_getres = Constant('SYS_clock_getres',(0+264))
|
||||
SYS_clock_getres_time64 = Constant('SYS_clock_getres_time64',(0 + 406))
|
||||
SYS_clock_gettime = Constant('SYS_clock_gettime',(0+263))
|
||||
SYS_clock_gettime64 = Constant('SYS_clock_gettime64',(0 + 403))
|
||||
SYS_clock_nanosleep = Constant('SYS_clock_nanosleep',(0+265))
|
||||
SYS_clock_nanosleep_time64 = Constant('SYS_clock_nanosleep_time64',(0 + 407))
|
||||
SYS_clock_settime = Constant('SYS_clock_settime',(0+262))
|
||||
SYS_clock_settime64 = Constant('SYS_clock_settime64',(0 + 404))
|
||||
SYS_clone = Constant('SYS_clone',(0+120))
|
||||
SYS_clone3 = Constant('SYS_clone3',(0 + 435))
|
||||
SYS_close = Constant('SYS_close',(0+ 6))
|
||||
SYS_connect = Constant('SYS_connect',(0+283))
|
||||
SYS_copy_file_range = Constant('SYS_copy_file_range',(0+391))
|
||||
SYS_creat = Constant('SYS_creat',(0+ 8))
|
||||
SYS_delete_module = Constant('SYS_delete_module',(0+129))
|
||||
SYS_dup = Constant('SYS_dup',(0+ 41))
|
||||
SYS_dup2 = Constant('SYS_dup2',(0+ 63))
|
||||
SYS_dup3 = Constant('SYS_dup3',(0+358))
|
||||
SYS_epoll_create = Constant('SYS_epoll_create',(0+250))
|
||||
SYS_epoll_create1 = Constant('SYS_epoll_create1',(0+357))
|
||||
SYS_epoll_ctl = Constant('SYS_epoll_ctl',(0+251))
|
||||
SYS_epoll_wait = Constant('SYS_epoll_wait',(0+252))
|
||||
SYS_eventfd = Constant('SYS_eventfd',(0+351))
|
||||
SYS_eventfd2 = Constant('SYS_eventfd2',(0+356))
|
||||
SYS_execve = Constant('SYS_execve',(0+ 11))
|
||||
SYS_execveat = Constant('SYS_execveat',(0+387))
|
||||
SYS_exit = Constant('SYS_exit',(0+ 1))
|
||||
SYS_exit_group = Constant('SYS_exit_group',(0+248))
|
||||
SYS_faccessat = Constant('SYS_faccessat',(0+334))
|
||||
SYS_fallocate = Constant('SYS_fallocate',(0+352))
|
||||
SYS_fanotify_init = Constant('SYS_fanotify_init',(0+367))
|
||||
SYS_fanotify_mark = Constant('SYS_fanotify_mark',(0+368))
|
||||
SYS_fchdir = Constant('SYS_fchdir',(0+133))
|
||||
SYS_fchmod = Constant('SYS_fchmod',(0+ 94))
|
||||
SYS_fchmodat = Constant('SYS_fchmodat',(0+333))
|
||||
@@ -1348,11 +1668,16 @@ SYS_fcntl = Constant('SYS_fcntl',(0+ 55))
|
||||
SYS_fcntl64 = Constant('SYS_fcntl64',(0+221))
|
||||
SYS_fdatasync = Constant('SYS_fdatasync',(0+148))
|
||||
SYS_fgetxattr = Constant('SYS_fgetxattr',(0+231))
|
||||
SYS_finit_module = Constant('SYS_finit_module',(0+379))
|
||||
SYS_flistxattr = Constant('SYS_flistxattr',(0+234))
|
||||
SYS_flock = Constant('SYS_flock',(0+143))
|
||||
SYS_fork = Constant('SYS_fork',(0+ 2))
|
||||
SYS_fremovexattr = Constant('SYS_fremovexattr',(0+237))
|
||||
SYS_fsconfig = Constant('SYS_fsconfig',(0 + 431))
|
||||
SYS_fsetxattr = Constant('SYS_fsetxattr',(0+228))
|
||||
SYS_fsmount = Constant('SYS_fsmount',(0 + 432))
|
||||
SYS_fsopen = Constant('SYS_fsopen',(0 + 430))
|
||||
SYS_fspick = Constant('SYS_fspick',(0 + 433))
|
||||
SYS_fstat = Constant('SYS_fstat',(0+108))
|
||||
SYS_fstat64 = Constant('SYS_fstat64',(0+197))
|
||||
SYS_fstatat64 = Constant('SYS_fstatat64',(0+327))
|
||||
@@ -1362,6 +1687,7 @@ SYS_fsync = Constant('SYS_fsync',(0+118))
|
||||
SYS_ftruncate = Constant('SYS_ftruncate',(0+ 93))
|
||||
SYS_ftruncate64 = Constant('SYS_ftruncate64',(0+194))
|
||||
SYS_futex = Constant('SYS_futex',(0+240))
|
||||
SYS_futex_time64 = Constant('SYS_futex_time64',(0 + 422))
|
||||
SYS_futimesat = Constant('SYS_futimesat',(0+326))
|
||||
SYS_getcpu = Constant('SYS_getcpu',(0+345))
|
||||
SYS_getcwd = Constant('SYS_getcwd',(0+183))
|
||||
@@ -1383,6 +1709,7 @@ SYS_getpgrp = Constant('SYS_getpgrp',(0+ 65))
|
||||
SYS_getpid = Constant('SYS_getpid',(0+ 20))
|
||||
SYS_getppid = Constant('SYS_getppid',(0+ 64))
|
||||
SYS_getpriority = Constant('SYS_getpriority',(0+ 96))
|
||||
SYS_getrandom = Constant('SYS_getrandom',(0+384))
|
||||
SYS_getresgid = Constant('SYS_getresgid',(0+171))
|
||||
SYS_getresgid32 = Constant('SYS_getresgid32',(0+211))
|
||||
SYS_getresuid = Constant('SYS_getresuid',(0+165))
|
||||
@@ -1401,16 +1728,24 @@ SYS_getxattr = Constant('SYS_getxattr',(0+229))
|
||||
SYS_init_module = Constant('SYS_init_module',(0+128))
|
||||
SYS_inotify_add_watch = Constant('SYS_inotify_add_watch',(0+317))
|
||||
SYS_inotify_init = Constant('SYS_inotify_init',(0+316))
|
||||
SYS_inotify_init1 = Constant('SYS_inotify_init1',(0+360))
|
||||
SYS_inotify_rm_watch = Constant('SYS_inotify_rm_watch',(0+318))
|
||||
SYS_io_cancel = Constant('SYS_io_cancel',(0+247))
|
||||
SYS_ioctl = Constant('SYS_ioctl',(0+ 54))
|
||||
SYS_io_destroy = Constant('SYS_io_destroy',(0+244))
|
||||
SYS_io_getevents = Constant('SYS_io_getevents',(0+245))
|
||||
SYS_io_pgetevents = Constant('SYS_io_pgetevents',(0 + 399))
|
||||
SYS_io_pgetevents_time64 = Constant('SYS_io_pgetevents_time64',(0 + 416))
|
||||
SYS_ioprio_get = Constant('SYS_ioprio_get',(0+315))
|
||||
SYS_ioprio_set = Constant('SYS_ioprio_set',(0+314))
|
||||
SYS_io_setup = Constant('SYS_io_setup',(0+243))
|
||||
SYS_io_submit = Constant('SYS_io_submit',(0+246))
|
||||
SYS_io_uring_enter = Constant('SYS_io_uring_enter',(0 + 426))
|
||||
SYS_io_uring_register = Constant('SYS_io_uring_register',(0 + 427))
|
||||
SYS_io_uring_setup = Constant('SYS_io_uring_setup',(0 + 425))
|
||||
SYS_ipc = Constant('SYS_ipc',(0+117))
|
||||
SYS_kcmp = Constant('SYS_kcmp',(0+378))
|
||||
SYS_kexec_file_load = Constant('SYS_kexec_file_load',(0 + 401))
|
||||
SYS_kexec_load = Constant('SYS_kexec_load',(0+347))
|
||||
SYS_keyctl = Constant('SYS_keyctl',(0+311))
|
||||
SYS_kill = Constant('SYS_kill',(0+ 37))
|
||||
@@ -1431,23 +1766,30 @@ SYS_lstat = Constant('SYS_lstat',(0+107))
|
||||
SYS_lstat64 = Constant('SYS_lstat64',(0+196))
|
||||
SYS_madvise = Constant('SYS_madvise',(0+220))
|
||||
SYS_mbind = Constant('SYS_mbind',(0+319))
|
||||
SYS_membarrier = Constant('SYS_membarrier',(0+389))
|
||||
SYS_memfd_create = Constant('SYS_memfd_create',(0+385))
|
||||
SYS_migrate_pages = Constant('SYS_migrate_pages',(0 + 400))
|
||||
SYS_mincore = Constant('SYS_mincore',(0+219))
|
||||
SYS_mkdir = Constant('SYS_mkdir',(0+ 39))
|
||||
SYS_mkdirat = Constant('SYS_mkdirat',(0+323))
|
||||
SYS_mknod = Constant('SYS_mknod',(0+ 14))
|
||||
SYS_mknodat = Constant('SYS_mknodat',(0+324))
|
||||
SYS_mlock = Constant('SYS_mlock',(0+150))
|
||||
SYS_mlock2 = Constant('SYS_mlock2',(0+390))
|
||||
SYS_mlockall = Constant('SYS_mlockall',(0+152))
|
||||
SYS_mmap = Constant('SYS_mmap',(0+ 90))
|
||||
SYS_mmap2 = Constant('SYS_mmap2',(0+192))
|
||||
SYS_mount = Constant('SYS_mount',(0+ 21))
|
||||
SYS_move_mount = Constant('SYS_move_mount',(0 + 429))
|
||||
SYS_move_pages = Constant('SYS_move_pages',(0+344))
|
||||
SYS_mprotect = Constant('SYS_mprotect',(0+125))
|
||||
SYS_mq_getsetattr = Constant('SYS_mq_getsetattr',(0+279))
|
||||
SYS_mq_notify = Constant('SYS_mq_notify',(0+278))
|
||||
SYS_mq_open = Constant('SYS_mq_open',(0+274))
|
||||
SYS_mq_timedreceive = Constant('SYS_mq_timedreceive',(0+277))
|
||||
SYS_mq_timedreceive_time64 = Constant('SYS_mq_timedreceive_time64',(0 + 419))
|
||||
SYS_mq_timedsend = Constant('SYS_mq_timedsend',(0+276))
|
||||
SYS_mq_timedsend_time64 = Constant('SYS_mq_timedsend_time64',(0 + 418))
|
||||
SYS_mq_unlink = Constant('SYS_mq_unlink',(0+275))
|
||||
SYS_mremap = Constant('SYS_mremap',(0+163))
|
||||
SYS_msgctl = Constant('SYS_msgctl',(0+304))
|
||||
@@ -1458,6 +1800,7 @@ SYS_msync = Constant('SYS_msync',(0+144))
|
||||
SYS_munlock = Constant('SYS_munlock',(0+151))
|
||||
SYS_munlockall = Constant('SYS_munlockall',(0+153))
|
||||
SYS_munmap = Constant('SYS_munmap',(0+ 91))
|
||||
SYS_name_to_handle_at = Constant('SYS_name_to_handle_at',(0+370))
|
||||
SYS_nanosleep = Constant('SYS_nanosleep',(0+162))
|
||||
SYS__newselect = Constant('SYS__newselect',(0+142))
|
||||
SYS_nfsservctl = Constant('SYS_nfsservctl',(0+169))
|
||||
@@ -1465,18 +1808,38 @@ SYS_nice = Constant('SYS_nice',(0+ 34))
|
||||
SYS_OABI_SYSCALL_BASE = Constant('SYS_OABI_SYSCALL_BASE',0x900000)
|
||||
SYS_open = Constant('SYS_open',(0+ 5))
|
||||
SYS_openat = Constant('SYS_openat',(0+322))
|
||||
SYS_openat2 = Constant('SYS_openat2',(0 + 437))
|
||||
SYS_open_by_handle_at = Constant('SYS_open_by_handle_at',(0+371))
|
||||
SYS_open_tree = Constant('SYS_open_tree',(0 + 428))
|
||||
SYS_pause = Constant('SYS_pause',(0+ 29))
|
||||
SYS_pciconfig_iobase = Constant('SYS_pciconfig_iobase',(0+271))
|
||||
SYS_pciconfig_read = Constant('SYS_pciconfig_read',(0+272))
|
||||
SYS_pciconfig_write = Constant('SYS_pciconfig_write',(0+273))
|
||||
SYS_perf_event_open = Constant('SYS_perf_event_open',(0+364))
|
||||
SYS_personality = Constant('SYS_personality',(0+136))
|
||||
SYS_pidfd_getfd = Constant('SYS_pidfd_getfd',(0 + 438))
|
||||
SYS_pidfd_open = Constant('SYS_pidfd_open',(0 + 434))
|
||||
SYS_pidfd_send_signal = Constant('SYS_pidfd_send_signal',(0 + 424))
|
||||
SYS_pipe = Constant('SYS_pipe',(0+ 42))
|
||||
SYS_pipe2 = Constant('SYS_pipe2',(0+359))
|
||||
SYS_pivot_root = Constant('SYS_pivot_root',(0+218))
|
||||
SYS_pkey_alloc = Constant('SYS_pkey_alloc',(0 + 395))
|
||||
SYS_pkey_free = Constant('SYS_pkey_free',(0 + 396))
|
||||
SYS_pkey_mprotect = Constant('SYS_pkey_mprotect',(0 + 394))
|
||||
SYS_poll = Constant('SYS_poll',(0+168))
|
||||
SYS_ppoll_time64 = Constant('SYS_ppoll_time64',(0 + 414))
|
||||
SYS_prctl = Constant('SYS_prctl',(0+172))
|
||||
SYS_pread64 = Constant('SYS_pread64',(0+180))
|
||||
SYS_preadv = Constant('SYS_preadv',(0+361))
|
||||
SYS_preadv2 = Constant('SYS_preadv2',(0+392))
|
||||
SYS_prlimit64 = Constant('SYS_prlimit64',(0+369))
|
||||
SYS_process_vm_readv = Constant('SYS_process_vm_readv',(0+376))
|
||||
SYS_process_vm_writev = Constant('SYS_process_vm_writev',(0+377))
|
||||
SYS_pselect6_time64 = Constant('SYS_pselect6_time64',(0 + 413))
|
||||
SYS_ptrace = Constant('SYS_ptrace',(0+ 26))
|
||||
SYS_pwrite64 = Constant('SYS_pwrite64',(0+181))
|
||||
SYS_pwritev = Constant('SYS_pwritev',(0+362))
|
||||
SYS_pwritev2 = Constant('SYS_pwritev2',(0+393))
|
||||
SYS_quotactl = Constant('SYS_quotactl',(0+131))
|
||||
SYS_read = Constant('SYS_read',(0+ 3))
|
||||
SYS_readahead = Constant('SYS_readahead',(0+225))
|
||||
@@ -1487,14 +1850,18 @@ SYS_readv = Constant('SYS_readv',(0+145))
|
||||
SYS_reboot = Constant('SYS_reboot',(0+ 88))
|
||||
SYS_recv = Constant('SYS_recv',(0+291))
|
||||
SYS_recvfrom = Constant('SYS_recvfrom',(0+292))
|
||||
SYS_recvmmsg = Constant('SYS_recvmmsg',(0+365))
|
||||
SYS_recvmmsg_time64 = Constant('SYS_recvmmsg_time64',(0 + 417))
|
||||
SYS_recvmsg = Constant('SYS_recvmsg',(0+297))
|
||||
SYS_remap_file_pages = Constant('SYS_remap_file_pages',(0+253))
|
||||
SYS_removexattr = Constant('SYS_removexattr',(0+235))
|
||||
SYS_rename = Constant('SYS_rename',(0+ 38))
|
||||
SYS_renameat = Constant('SYS_renameat',(0+329))
|
||||
SYS_renameat2 = Constant('SYS_renameat2',(0+382))
|
||||
SYS_request_key = Constant('SYS_request_key',(0+310))
|
||||
SYS_restart_syscall = Constant('SYS_restart_syscall',(0+ 0))
|
||||
SYS_rmdir = Constant('SYS_rmdir',(0+ 40))
|
||||
SYS_rseq = Constant('SYS_rseq',(0 + 398))
|
||||
SYS_rt_sigaction = Constant('SYS_rt_sigaction',(0+174))
|
||||
SYS_rt_sigpending = Constant('SYS_rt_sigpending',(0+176))
|
||||
SYS_rt_sigprocmask = Constant('SYS_rt_sigprocmask',(0+175))
|
||||
@@ -1502,24 +1869,32 @@ SYS_rt_sigqueueinfo = Constant('SYS_rt_sigqueueinfo',(0+178))
|
||||
SYS_rt_sigreturn = Constant('SYS_rt_sigreturn',(0+173))
|
||||
SYS_rt_sigsuspend = Constant('SYS_rt_sigsuspend',(0+179))
|
||||
SYS_rt_sigtimedwait = Constant('SYS_rt_sigtimedwait',(0+177))
|
||||
SYS_rt_sigtimedwait_time64 = Constant('SYS_rt_sigtimedwait_time64',(0 + 421))
|
||||
SYS_rt_tgsigqueueinfo = Constant('SYS_rt_tgsigqueueinfo',(0+363))
|
||||
SYS_sched_getaffinity = Constant('SYS_sched_getaffinity',(0+242))
|
||||
SYS_sched_getattr = Constant('SYS_sched_getattr',(0+381))
|
||||
SYS_sched_getparam = Constant('SYS_sched_getparam',(0+155))
|
||||
SYS_sched_get_priority_max = Constant('SYS_sched_get_priority_max',(0+159))
|
||||
SYS_sched_get_priority_min = Constant('SYS_sched_get_priority_min',(0+160))
|
||||
SYS_sched_getscheduler = Constant('SYS_sched_getscheduler',(0+157))
|
||||
SYS_sched_rr_get_interval = Constant('SYS_sched_rr_get_interval',(0+161))
|
||||
SYS_sched_rr_get_interval_time64 = Constant('SYS_sched_rr_get_interval_time64',(0 + 423))
|
||||
SYS_sched_setaffinity = Constant('SYS_sched_setaffinity',(0+241))
|
||||
SYS_sched_setattr = Constant('SYS_sched_setattr',(0+380))
|
||||
SYS_sched_setparam = Constant('SYS_sched_setparam',(0+154))
|
||||
SYS_sched_setscheduler = Constant('SYS_sched_setscheduler',(0+156))
|
||||
SYS_sched_yield = Constant('SYS_sched_yield',(0+158))
|
||||
SYS_seccomp = Constant('SYS_seccomp',(0+383))
|
||||
SYS_select = Constant('SYS_select',(0+ 82))
|
||||
SYS_semctl = Constant('SYS_semctl',(0+300))
|
||||
SYS_semget = Constant('SYS_semget',(0+299))
|
||||
SYS_semop = Constant('SYS_semop',(0+298))
|
||||
SYS_semtimedop = Constant('SYS_semtimedop',(0+312))
|
||||
SYS_semtimedop_time64 = Constant('SYS_semtimedop_time64',(0 + 420))
|
||||
SYS_send = Constant('SYS_send',(0+289))
|
||||
SYS_sendfile = Constant('SYS_sendfile',(0+187))
|
||||
SYS_sendfile64 = Constant('SYS_sendfile64',(0+239))
|
||||
SYS_sendmmsg = Constant('SYS_sendmmsg',(0+374))
|
||||
SYS_sendmsg = Constant('SYS_sendmsg',(0+296))
|
||||
SYS_sendto = Constant('SYS_sendto',(0+290))
|
||||
SYS_setdomainname = Constant('SYS_setdomainname',(0+121))
|
||||
@@ -1534,6 +1909,7 @@ SYS_setgroups32 = Constant('SYS_setgroups32',(0+206))
|
||||
SYS_sethostname = Constant('SYS_sethostname',(0+ 74))
|
||||
SYS_setitimer = Constant('SYS_setitimer',(0+104))
|
||||
SYS_set_mempolicy = Constant('SYS_set_mempolicy',(0+321))
|
||||
SYS_setns = Constant('SYS_setns',(0+375))
|
||||
SYS_setpgid = Constant('SYS_setpgid',(0+ 57))
|
||||
SYS_setpriority = Constant('SYS_setpriority',(0+ 97))
|
||||
SYS_setregid = Constant('SYS_setregid',(0+ 71))
|
||||
@@ -1561,6 +1937,7 @@ SYS_shutdown = Constant('SYS_shutdown',(0+293))
|
||||
SYS_sigaction = Constant('SYS_sigaction',(0+ 67))
|
||||
SYS_sigaltstack = Constant('SYS_sigaltstack',(0+186))
|
||||
SYS_signalfd = Constant('SYS_signalfd',(0+349))
|
||||
SYS_signalfd4 = Constant('SYS_signalfd4',(0+355))
|
||||
SYS_sigpending = Constant('SYS_sigpending',(0+ 73))
|
||||
SYS_sigprocmask = Constant('SYS_sigprocmask',(0+126))
|
||||
SYS_sigreturn = Constant('SYS_sigreturn',(0+119))
|
||||
@@ -1573,12 +1950,14 @@ SYS_stat = Constant('SYS_stat',(0+106))
|
||||
SYS_stat64 = Constant('SYS_stat64',(0+195))
|
||||
SYS_statfs = Constant('SYS_statfs',(0+ 99))
|
||||
SYS_statfs64 = Constant('SYS_statfs64',(0+266))
|
||||
SYS_statx = Constant('SYS_statx',(0 + 397))
|
||||
SYS_stime = Constant('SYS_stime',(0+ 25))
|
||||
SYS_swapoff = Constant('SYS_swapoff',(0+115))
|
||||
SYS_swapon = Constant('SYS_swapon',(0+ 87))
|
||||
SYS_symlink = Constant('SYS_symlink',(0+ 83))
|
||||
SYS_symlinkat = Constant('SYS_symlinkat',(0+331))
|
||||
SYS_sync = Constant('SYS_sync',(0+ 36))
|
||||
SYS_syncfs = Constant('SYS_syncfs',(0+373))
|
||||
SYS_syscall = Constant('SYS_syscall',(0+113))
|
||||
SYS_SYSCALL_BASE = Constant('SYS_SYSCALL_BASE',0)
|
||||
SYS__sysctl = Constant('SYS__sysctl',(0+149))
|
||||
@@ -1592,10 +1971,14 @@ SYS_timer_create = Constant('SYS_timer_create',(0+257))
|
||||
SYS_timer_delete = Constant('SYS_timer_delete',(0+261))
|
||||
SYS_timerfd = Constant('SYS_timerfd',(0+350))
|
||||
SYS_timerfd_gettime = Constant('SYS_timerfd_gettime',(0+354))
|
||||
SYS_timerfd_gettime64 = Constant('SYS_timerfd_gettime64',(0 + 410))
|
||||
SYS_timerfd_settime = Constant('SYS_timerfd_settime',(0+353))
|
||||
SYS_timerfd_settime64 = Constant('SYS_timerfd_settime64',(0 + 411))
|
||||
SYS_timer_getoverrun = Constant('SYS_timer_getoverrun',(0+260))
|
||||
SYS_timer_gettime = Constant('SYS_timer_gettime',(0+259))
|
||||
SYS_timer_gettime64 = Constant('SYS_timer_gettime64',(0 + 408))
|
||||
SYS_timer_settime = Constant('SYS_timer_settime',(0+258))
|
||||
SYS_timer_settime64 = Constant('SYS_timer_settime64',(0 + 409))
|
||||
SYS_times = Constant('SYS_times',(0+ 43))
|
||||
SYS_tkill = Constant('SYS_tkill',(0+238))
|
||||
SYS_truncate = Constant('SYS_truncate',(0+ 92))
|
||||
@@ -1609,9 +1992,11 @@ SYS_unlink = Constant('SYS_unlink',(0+ 10))
|
||||
SYS_unlinkat = Constant('SYS_unlinkat',(0+328))
|
||||
SYS_unshare = Constant('SYS_unshare',(0+337))
|
||||
SYS_uselib = Constant('SYS_uselib',(0+ 86))
|
||||
SYS_userfaultfd = Constant('SYS_userfaultfd',(0+388))
|
||||
SYS_ustat = Constant('SYS_ustat',(0+ 62))
|
||||
SYS_utime = Constant('SYS_utime',(0+ 30))
|
||||
SYS_utimensat = Constant('SYS_utimensat',(0+348))
|
||||
SYS_utimensat_time64 = Constant('SYS_utimensat_time64',(0 + 412))
|
||||
SYS_utimes = Constant('SYS_utimes',(0+269))
|
||||
SYS_vfork = Constant('SYS_vfork',(0+190))
|
||||
SYS_vhangup = Constant('SYS_vhangup',(0+111))
|
||||
|
||||
+77
-42
@@ -6,17 +6,20 @@ contexts work properly and as expected.
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
|
||||
import atexit
|
||||
import collections
|
||||
import errno
|
||||
import functools
|
||||
import logging
|
||||
import os
|
||||
import os.path
|
||||
import platform
|
||||
import shutil
|
||||
import six
|
||||
import socket
|
||||
import stat
|
||||
import string
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import threading
|
||||
import time
|
||||
|
||||
@@ -345,6 +348,10 @@ class ContextType(object):
|
||||
'binary': None,
|
||||
'bits': 32,
|
||||
'buffer_size': 4096,
|
||||
'cache_dir_base': os.environ.get(
|
||||
'XDG_CACHE_HOME',
|
||||
os.path.join(os.path.expanduser('~'), '.cache')
|
||||
),
|
||||
'cyclic_alphabet': string.ascii_lowercase.encode(),
|
||||
'cyclic_size': 4,
|
||||
'delete_corefiles': False,
|
||||
@@ -397,6 +404,7 @@ class ContextType(object):
|
||||
'msp430': little_16,
|
||||
'powerpc': big_32,
|
||||
'powerpc64': big_64,
|
||||
'riscv': little_32,
|
||||
's390': big_32,
|
||||
'sparc': big_32,
|
||||
'sparc64': big_64,
|
||||
@@ -761,6 +769,7 @@ class ContextType(object):
|
||||
# We have to make sure that x86_64 appears before x86 for this to work correctly.
|
||||
transform = [('ppc64', 'powerpc64'),
|
||||
('ppc', 'powerpc'),
|
||||
('x86-64', 'amd64'),
|
||||
('x86_64', 'amd64'),
|
||||
('x86', 'i386'),
|
||||
('i686', 'i386'),
|
||||
@@ -901,27 +910,6 @@ class ContextType(object):
|
||||
|
||||
return charset
|
||||
|
||||
def _encode(self, s):
|
||||
if isinstance(s, (bytes, bytearray)):
|
||||
return s # already bytes
|
||||
|
||||
if self.encoding == 'auto':
|
||||
try:
|
||||
return s.encode('latin1')
|
||||
except UnicodeEncodeError:
|
||||
return s.encode('utf-8', 'surrogateescape')
|
||||
return s.encode(self.encoding)
|
||||
|
||||
def _decode(self, b):
|
||||
if self.encoding == 'auto':
|
||||
try:
|
||||
return b.decode('utf-8')
|
||||
except UnicodeDecodeError:
|
||||
return b.decode('latin1')
|
||||
except AttributeError:
|
||||
return b
|
||||
return b.decode(self.encoding)
|
||||
|
||||
@_validator
|
||||
def endian(self, endianness):
|
||||
"""
|
||||
@@ -992,7 +980,10 @@ class ContextType(object):
|
||||
except AttributeError: pass
|
||||
|
||||
# Otherwise, fail
|
||||
level_names = filter(lambda x: isinstance(x,str), logging._levelNames)
|
||||
try:
|
||||
level_names = logging._levelToName.values()
|
||||
except AttributeError:
|
||||
level_names = filter(lambda x: isinstance(x,str), logging._levelNames)
|
||||
permitted = sorted(level_names)
|
||||
raise AttributeError('log_level must be an integer or one of %r' % permitted)
|
||||
|
||||
@@ -1289,6 +1280,21 @@ class ContextType(object):
|
||||
"""
|
||||
return int(size)
|
||||
|
||||
@_validator
|
||||
def cache_dir_base(self, new_base):
|
||||
"""Base directory to use for caching content.
|
||||
|
||||
Changing this to a different value will clear the `cache_dir` path
|
||||
stored in TLS since a new path will need to be generated to respect the
|
||||
new `cache_dir_base` value.
|
||||
"""
|
||||
|
||||
if new_base != self.cache_dir_base:
|
||||
del self._tls["cache_dir"]
|
||||
if os.access(new_base, os.F_OK) and not os.access(new_base, os.W_OK):
|
||||
raise OSError(errno.EPERM, "Cache base dir is not writable")
|
||||
return new_base
|
||||
|
||||
@property
|
||||
def cache_dir(self):
|
||||
"""Directory used for caching data.
|
||||
@@ -1302,32 +1308,59 @@ class ContextType(object):
|
||||
>>> cache_dir is not None
|
||||
True
|
||||
>>> os.chmod(cache_dir, 0o000)
|
||||
>>> del context._tls['cache_dir']
|
||||
>>> context.cache_dir is None
|
||||
True
|
||||
>>> os.chmod(cache_dir, 0o755)
|
||||
>>> cache_dir == context.cache_dir
|
||||
True
|
||||
"""
|
||||
xdg_cache_home = os.environ.get('XDG_CACHE_HOME') or \
|
||||
os.path.join(os.path.expanduser('~'), '.cache')
|
||||
try:
|
||||
# If the TLS already has a cache directory path, we return it
|
||||
# without any futher checks since it must have been valid when it
|
||||
# was set and if that has changed, hiding the TOCTOU here would be
|
||||
# potentially confusing
|
||||
return self._tls["cache_dir"]
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
if not os.access(xdg_cache_home, os.W_OK):
|
||||
# Attempt to create a Python version specific cache dir and its parents
|
||||
cache_dirname = '.pwntools-cache-%d.%d' % sys.version_info[:2]
|
||||
cache_dirpath = os.path.join(self.cache_dir_base, cache_dirname)
|
||||
try:
|
||||
os.makedirs(cache_dirpath)
|
||||
except OSError as exc:
|
||||
# If we failed for any reason other than the cache directory
|
||||
# already existing then we'll fall back to a temporary directory
|
||||
# object which doesn't respect the `cache_dir_base`
|
||||
if exc.errno != errno.EEXIST:
|
||||
try:
|
||||
cache_dirpath = tempfile.mkdtemp(prefix=".pwntools-tmp")
|
||||
except IOError:
|
||||
# This implies no good candidates for temporary files so we
|
||||
# have to return `None`
|
||||
return None
|
||||
else:
|
||||
# Ensure the temporary cache dir is cleaned up on exit. A
|
||||
# `TemporaryDirectory` would do this better upon garbage
|
||||
# collection but this is necessary for Python 2 support.
|
||||
atexit.register(shutil.rmtree, cache_dirpath)
|
||||
# By this time we have a cache directory which exists but we don't know
|
||||
# if it is actually writable. Some wargames e.g. pwnable.kr have
|
||||
# created dummy directories which cannot be modified by the user
|
||||
# account (owned by root).
|
||||
if os.access(cache_dirpath, os.W_OK):
|
||||
# Stash this in TLS for later reuse
|
||||
self._tls["cache_dir"] = cache_dirpath
|
||||
return cache_dirpath
|
||||
else:
|
||||
return None
|
||||
|
||||
cache = os.path.join(xdg_cache_home, '.pwntools-cache-%d.%d' % sys.version_info[:2])
|
||||
|
||||
if not os.path.exists(cache):
|
||||
try:
|
||||
os.mkdir(cache)
|
||||
except OSError:
|
||||
return None
|
||||
|
||||
# Some wargames e.g. pwnable.kr have created dummy directories
|
||||
# which cannot be modified by the user account (owned by root).
|
||||
if not os.access(cache, os.W_OK):
|
||||
return None
|
||||
|
||||
return cache
|
||||
@cache_dir.setter
|
||||
def cache_dir(self, v):
|
||||
if os.access(v, os.W_OK):
|
||||
# Stash this in TLS for later reuse
|
||||
self._tls["cache_dir"] = v
|
||||
|
||||
@_validator
|
||||
def delete_corefiles(self, v):
|
||||
@@ -1362,7 +1395,9 @@ class ContextType(object):
|
||||
This configures the newline emitted by e.g. ``sendline`` or that is used
|
||||
as a delimiter for e.g. ``recvline``.
|
||||
"""
|
||||
return six.ensure_binary(v)
|
||||
# circular imports
|
||||
from pwnlib.util.packing import _need_bytes
|
||||
return _need_bytes(v)
|
||||
|
||||
|
||||
@_validator
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
grep -hEo '__NR_\w*' linux/diet/*/syscalls.h | sed 's/__NR\(.*\)/#define SYS\1 __NR\1/' |LC_ALL=C sort -dfu - linux/syscall_map.h >linux/syscall_map.h.new
|
||||
mv linux/syscall_map.h.new linux/syscall_map.h
|
||||
|
||||
pushd linux
|
||||
ARCHS="$(ls *.h | sed 's/.h$//' | grep -v -e common -e syscall_map)"
|
||||
popd
|
||||
@@ -14,7 +18,7 @@ find "$python" -type d -empty -delete
|
||||
|
||||
for arch in $ARCHS; do
|
||||
echo $arch
|
||||
swig -Ilinux -Ilinux -Ilinux/diet -includeall -E linux/$arch.h | egrep "^%constant" | ./load_constants.py $python/linux/$arch.py $headers/linux/$arch.h
|
||||
swig -python -E -cpperraswarn -Ilinux -Ilinux -Ilinux/diet -Ilinux/diet/$arch -includeall linux/$arch.h | egrep "^%constant" | ./load_constants.py $python/linux/$arch.py $headers/linux/$arch.h
|
||||
done
|
||||
|
||||
swig -Ifreebsd -includeall -E freebsd/common.h | egrep "^%constant" | ./load_constants.py $python/freebsd.py $headers/freebsd.h
|
||||
swig -python -E -Ifreebsd -includeall freebsd/common.h | egrep "^%constant" | ./load_constants.py $python/freebsd.py $headers/freebsd.h
|
||||
@@ -1,6 +1,5 @@
|
||||
/*
|
||||
* This file contains the system call numbers.
|
||||
*/
|
||||
#ifndef _AARCH64_SYSCALL_H
|
||||
#define _AARCH64_SYSCALL_H 1
|
||||
|
||||
#define __NR_io_setup 0
|
||||
#define __NR_io_destroy 1
|
||||
@@ -81,13 +80,13 @@
|
||||
#define __NR_splice 76
|
||||
#define __NR_tee 77
|
||||
#define __NR_readlinkat 78
|
||||
#define __NR_fstatat64 79
|
||||
#define __NR_fstatat 79
|
||||
#define __NR_newfstatat __NR_fstatat
|
||||
#define __NR_fstat 80
|
||||
#define __NR_sync 81
|
||||
#define __NR_fsync 82
|
||||
#define __NR_fdatasync 83
|
||||
#define __NR_sync_file_range2 84
|
||||
/* #define __NR_sync_file_range 84 */
|
||||
#define __NR_sync_file_range 84
|
||||
#define __NR_timerfd_create 85
|
||||
#define __NR_timerfd_settime 86
|
||||
#define __NR_timerfd_gettime 87
|
||||
@@ -252,8 +251,8 @@
|
||||
#define __NR_prlimit64 261
|
||||
#define __NR_fanotify_init 262
|
||||
#define __NR_fanotify_mark 263
|
||||
#define __NR_name_to_handle_at 264
|
||||
#define __NR_open_by_handle_at 265
|
||||
#define __NR_name_to_handle_at 264
|
||||
#define __NR_open_by_handle_at 265
|
||||
#define __NR_clock_adjtime 266
|
||||
#define __NR_syncfs 267
|
||||
#define __NR_setns 268
|
||||
@@ -262,3 +261,61 @@
|
||||
#define __NR_process_vm_writev 271
|
||||
#define __NR_kcmp 272
|
||||
#define __NR_finit_module 273
|
||||
#define __NR_sched_setattr 274
|
||||
#define __NR_sched_getattr 275
|
||||
#define __NR_renameat2 276
|
||||
#define __NR_seccomp 277
|
||||
#define __NR_getrandom 278
|
||||
#define __NR_memfd_create 279
|
||||
#define __NR_bpf 280
|
||||
#define __NR_execveat 281
|
||||
#define __NR_userfaultfd 282
|
||||
#define __NR_membarrier 283
|
||||
#define __NR_mlock2 284
|
||||
#define __NR_copy_file_range 285
|
||||
#define __NR_preadv2 286
|
||||
#define __NR_pwritev2 287
|
||||
#define __NR_pkey_mprotect 288
|
||||
#define __NR_pkey_alloc 289
|
||||
#define __NR_pkey_free 290
|
||||
#define __NR_statx 291
|
||||
#define __NR_io_pgetevents 292
|
||||
#define __NR_rseq 293
|
||||
#define __NR_kexec_file_load 294
|
||||
|
||||
#define __NR_pidfd_send_signal 424
|
||||
#define __NR_io_uring_setup 425
|
||||
#define __NR_io_uring_enter 426
|
||||
#define __NR_io_uring_register 427
|
||||
#define __NR_open_tree 428
|
||||
#define __NR_move_mount 429
|
||||
#define __NR_fsopen 430
|
||||
#define __NR_fsconfig 431
|
||||
#define __NR_fsmount 432
|
||||
#define __NR_fspick 433
|
||||
#define __NR_pidfd_open 434
|
||||
#define __NR_clone3 435
|
||||
|
||||
#ifdef __ASSEMBLER__
|
||||
|
||||
#include "aarch64-features.h"
|
||||
|
||||
#define syscall_weak(name,wsym,sym) __syscall_weak __NR_##name, wsym, sym, __ARGS_##name
|
||||
.macro __syscall_weak name wsym sym typ
|
||||
FUNC_START_WEAK \wsym
|
||||
__syscall \name, \sym, \typ
|
||||
FUNC_END \wsym
|
||||
.endm
|
||||
|
||||
#define syscall(name,sym) __syscall __NR_##name, sym, __ARGS_##name
|
||||
.macro __syscall name sym typ
|
||||
FUNC_START \sym
|
||||
mov x8, #\name
|
||||
svc #0
|
||||
b __unified_syscall
|
||||
FUNC_END \sym
|
||||
.endm
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -231,6 +231,8 @@
|
||||
#define __NR_osf_memcntl 260 /* not implemented */
|
||||
#define __NR_osf_fdatasync 261 /* not implemented */
|
||||
|
||||
#define __NR_umount_without_flags __NR_oldumount
|
||||
#define __NR_umount_with_flags __NR_umount
|
||||
|
||||
/*
|
||||
* Linux-specific system calls begin at 300
|
||||
@@ -412,7 +414,73 @@
|
||||
#define __NR_signalfd 476
|
||||
#define __NR_timerfd 477
|
||||
#define __NR_eventfd 478
|
||||
|
||||
#define __NR_recvmmsg 479
|
||||
#define __NR_fallocate 480
|
||||
#define __NR_timerfd_create 481
|
||||
#define __NR_timerfd_settime 482
|
||||
#define __NR_timerfd_gettime 483
|
||||
#define __NR_signalfd4 484
|
||||
#define __NR_eventfd2 485
|
||||
#define __NR_epoll_create1 486
|
||||
#define __NR_dup3 487
|
||||
#define __NR_pipe2 488
|
||||
#define __NR_inotify_init1 489
|
||||
#define __NR_preadv 490
|
||||
#define __NR_pwritev 491
|
||||
#define __NR_rt_tgsigqueueinfo 492
|
||||
#define __NR_perf_event_open 493
|
||||
#define __NR_fanotify_init 494
|
||||
#define __NR_fanotify_mark 495
|
||||
#define __NR_prlimit64 496
|
||||
#define __NR_name_to_handle_at 497
|
||||
#define __NR_open_by_handle_at 498
|
||||
#define __NR_clock_adjtime 499
|
||||
#define __NR_syncfs 500
|
||||
#define __NR_setns 501
|
||||
#define __NR_accept4 502
|
||||
#define __NR_sendmmsg 503
|
||||
#define __NR_process_vm_readv 504
|
||||
#define __NR_process_vm_writev 505
|
||||
#define __NR_kcmp 506
|
||||
#define __NR_finit_module 507
|
||||
#define __NR_sched_setattr 508
|
||||
#define __NR_sched_getattr 509
|
||||
#define __NR_renameat2 510
|
||||
#define __NR_getrandom 511
|
||||
#define __NR_memfd_create 512
|
||||
#define __NR_execveat 513
|
||||
#define __NR_seccomp 514
|
||||
#define __NR_bpf 515
|
||||
#define __NR_userfaultfd 516
|
||||
#define __NR_membarrier 517
|
||||
#define __NR_mlock2 518
|
||||
#define __NR_copy_file_range 519
|
||||
#define __NR_preadv2 520
|
||||
#define __NR_pwritev2 521
|
||||
#define __NR_statx 522
|
||||
#define __NR_io_pgetevents 523
|
||||
#define __NR_pkey_mprotect 524
|
||||
#define __NR_pkey_alloc 525
|
||||
#define __NR_pkey_free 526
|
||||
#define __NR_rseq 527
|
||||
#define __NR_statfs64 528
|
||||
#define __NR_fstatfs64 529
|
||||
#define __NR_getegid 530
|
||||
#define __NR_geteuid 531
|
||||
#define __NR_getppid 532
|
||||
#define __NR_pidfd_send_signal 534
|
||||
#define __NR_io_uring_setup 535
|
||||
#define __NR_io_uring_enter 536
|
||||
#define __NR_io_uring_register 537
|
||||
#define __NR_open_tree 538
|
||||
#define __NR_move_mount 539
|
||||
#define __NR_fsopen 540
|
||||
#define __NR_fsconfig 541
|
||||
#define __NR_fsmount 542
|
||||
#define __NR_fspick 543
|
||||
#define __NR_pidfd_open 544
|
||||
#define __NR_openat2 547
|
||||
#define __NR_pidfd_getfd 548
|
||||
|
||||
#define syscall_weak(name,wsym,sym) \
|
||||
.text ; \
|
||||
|
||||
@@ -365,6 +365,87 @@
|
||||
#define __NR_fallocate (__NR_SYSCALL_BASE+352)
|
||||
#define __NR_timerfd_settime (__NR_SYSCALL_BASE+353)
|
||||
#define __NR_timerfd_gettime (__NR_SYSCALL_BASE+354)
|
||||
#define __NR_signalfd4 (__NR_SYSCALL_BASE+355)
|
||||
#define __NR_eventfd2 (__NR_SYSCALL_BASE+356)
|
||||
#define __NR_epoll_create1 (__NR_SYSCALL_BASE+357)
|
||||
#define __NR_dup3 (__NR_SYSCALL_BASE+358)
|
||||
#define __NR_pipe2 (__NR_SYSCALL_BASE+359)
|
||||
#define __NR_inotify_init1 (__NR_SYSCALL_BASE+360)
|
||||
#define __NR_preadv (__NR_SYSCALL_BASE+361)
|
||||
#define __NR_pwritev (__NR_SYSCALL_BASE+362)
|
||||
#define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE+363)
|
||||
#define __NR_perf_event_open (__NR_SYSCALL_BASE+364)
|
||||
#define __NR_recvmmsg (__NR_SYSCALL_BASE+365)
|
||||
#define __NR_accept4 (__NR_SYSCALL_BASE+366)
|
||||
#define __NR_fanotify_init (__NR_SYSCALL_BASE+367)
|
||||
#define __NR_fanotify_mark (__NR_SYSCALL_BASE+368)
|
||||
#define __NR_prlimit64 (__NR_SYSCALL_BASE+369)
|
||||
#define __NR_name_to_handle_at (__NR_SYSCALL_BASE+370)
|
||||
#define __NR_open_by_handle_at (__NR_SYSCALL_BASE+371)
|
||||
#define __NR_clock_adjtime (__NR_SYSCALL_BASE+372)
|
||||
#define __NR_syncfs (__NR_SYSCALL_BASE+373)
|
||||
#define __NR_sendmmsg (__NR_SYSCALL_BASE+374)
|
||||
#define __NR_setns (__NR_SYSCALL_BASE+375)
|
||||
#define __NR_process_vm_readv (__NR_SYSCALL_BASE+376)
|
||||
#define __NR_process_vm_writev (__NR_SYSCALL_BASE+377)
|
||||
#define __NR_kcmp (__NR_SYSCALL_BASE+378)
|
||||
#define __NR_finit_module (__NR_SYSCALL_BASE+379)
|
||||
#define __NR_sched_setattr (__NR_SYSCALL_BASE+380)
|
||||
#define __NR_sched_getattr (__NR_SYSCALL_BASE+381)
|
||||
#define __NR_renameat2 (__NR_SYSCALL_BASE+382)
|
||||
#define __NR_seccomp (__NR_SYSCALL_BASE+383)
|
||||
#define __NR_getrandom (__NR_SYSCALL_BASE+384)
|
||||
#define __NR_memfd_create (__NR_SYSCALL_BASE+385)
|
||||
#define __NR_bpf (__NR_SYSCALL_BASE+386)
|
||||
#define __NR_execveat (__NR_SYSCALL_BASE+387)
|
||||
#define __NR_userfaultfd (__NR_SYSCALL_BASE+388)
|
||||
#define __NR_membarrier (__NR_SYSCALL_BASE+389)
|
||||
#define __NR_mlock2 (__NR_SYSCALL_BASE+390)
|
||||
#define __NR_copy_file_range (__NR_SYSCALL_BASE+391)
|
||||
#define __NR_preadv2 (__NR_SYSCALL_BASE+392)
|
||||
#define __NR_pwritev2 (__NR_SYSCALL_BASE+393)
|
||||
#define __NR_pkey_mprotect (__NR_SYSCALL_BASE + 394)
|
||||
#define __NR_pkey_alloc (__NR_SYSCALL_BASE + 395)
|
||||
#define __NR_pkey_free (__NR_SYSCALL_BASE + 396)
|
||||
#define __NR_statx (__NR_SYSCALL_BASE + 397)
|
||||
#define __NR_rseq (__NR_SYSCALL_BASE + 398)
|
||||
#define __NR_io_pgetevents (__NR_SYSCALL_BASE + 399)
|
||||
#define __NR_migrate_pages (__NR_SYSCALL_BASE + 400)
|
||||
#define __NR_kexec_file_load (__NR_SYSCALL_BASE + 401)
|
||||
#define __NR_clock_gettime64 (__NR_SYSCALL_BASE + 403)
|
||||
#define __NR_clock_settime64 (__NR_SYSCALL_BASE + 404)
|
||||
#define __NR_clock_adjtime64 (__NR_SYSCALL_BASE + 405)
|
||||
#define __NR_clock_getres_time64 (__NR_SYSCALL_BASE + 406)
|
||||
#define __NR_clock_nanosleep_time64 (__NR_SYSCALL_BASE + 407)
|
||||
#define __NR_timer_gettime64 (__NR_SYSCALL_BASE + 408)
|
||||
#define __NR_timer_settime64 (__NR_SYSCALL_BASE + 409)
|
||||
#define __NR_timerfd_gettime64 (__NR_SYSCALL_BASE + 410)
|
||||
#define __NR_timerfd_settime64 (__NR_SYSCALL_BASE + 411)
|
||||
#define __NR_utimensat_time64 (__NR_SYSCALL_BASE + 412)
|
||||
#define __NR_pselect6_time64 (__NR_SYSCALL_BASE + 413)
|
||||
#define __NR_ppoll_time64 (__NR_SYSCALL_BASE + 414)
|
||||
#define __NR_io_pgetevents_time64 (__NR_SYSCALL_BASE + 416)
|
||||
#define __NR_recvmmsg_time64 (__NR_SYSCALL_BASE + 417)
|
||||
#define __NR_mq_timedsend_time64 (__NR_SYSCALL_BASE + 418)
|
||||
#define __NR_mq_timedreceive_time64 (__NR_SYSCALL_BASE + 419)
|
||||
#define __NR_semtimedop_time64 (__NR_SYSCALL_BASE + 420)
|
||||
#define __NR_rt_sigtimedwait_time64 (__NR_SYSCALL_BASE + 421)
|
||||
#define __NR_futex_time64 (__NR_SYSCALL_BASE + 422)
|
||||
#define __NR_sched_rr_get_interval_time64 (__NR_SYSCALL_BASE + 423)
|
||||
#define __NR_pidfd_send_signal (__NR_SYSCALL_BASE + 424)
|
||||
#define __NR_io_uring_setup (__NR_SYSCALL_BASE + 425)
|
||||
#define __NR_io_uring_enter (__NR_SYSCALL_BASE + 426)
|
||||
#define __NR_io_uring_register (__NR_SYSCALL_BASE + 427)
|
||||
#define __NR_open_tree (__NR_SYSCALL_BASE + 428)
|
||||
#define __NR_move_mount (__NR_SYSCALL_BASE + 429)
|
||||
#define __NR_fsopen (__NR_SYSCALL_BASE + 430)
|
||||
#define __NR_fsconfig (__NR_SYSCALL_BASE + 431)
|
||||
#define __NR_fsmount (__NR_SYSCALL_BASE + 432)
|
||||
#define __NR_fspick (__NR_SYSCALL_BASE + 433)
|
||||
#define __NR_pidfd_open (__NR_SYSCALL_BASE + 434)
|
||||
#define __NR_clone3 (__NR_SYSCALL_BASE + 435)
|
||||
#define __NR_openat2 (__NR_SYSCALL_BASE + 437)
|
||||
#define __NR_pidfd_getfd (__NR_SYSCALL_BASE + 438)
|
||||
|
||||
/*
|
||||
* The following SWIs are ARM private.
|
||||
@@ -700,9 +781,9 @@
|
||||
#define __ARGS_getpeername 0
|
||||
#define __ARGS_socketpair 0
|
||||
#define __ARGS_send 0
|
||||
#define __ARGS_sendto 0
|
||||
#define __ARGS_sendto 1
|
||||
#define __ARGS_recv 0
|
||||
#define __ARGS_recvfrom 0
|
||||
#define __ARGS_recvfrom 1
|
||||
#define __ARGS_shutdown 0
|
||||
#define __ARGS_setsockopt 0
|
||||
#define __ARGS_getsockopt 0
|
||||
@@ -768,73 +849,59 @@
|
||||
#define __ARGS_timerfd_settime 0
|
||||
#define __ARGS_timerfd_gettime 0
|
||||
|
||||
#define __ARGS_signalfd4 0
|
||||
#define __ARGS_eventfd2 0
|
||||
#define __ARGS_epoll_create1 0
|
||||
#define __ARGS_dup3 0
|
||||
#define __ARGS_pipe2 0
|
||||
#define __ARGS_inotify_init1 0
|
||||
#define __ARGS_preadv 0
|
||||
#define __ARGS_pwritev 0
|
||||
#define __ARGS_rt_tgsigqueueinfo 0
|
||||
#define __ARGS_perf_event_open 1
|
||||
#define __ARGS_recvmmsg 1
|
||||
#define __ARGS_accept4 0
|
||||
#define __ARGS_fanotify_init 0
|
||||
#define __ARGS_fanotify_mark 1
|
||||
#define __ARGS_prlimit64 0
|
||||
#define __ARGS_name_to_handle_at 1
|
||||
#define __ARGS_open_by_handle_at 0
|
||||
#define __ARGS_clock_adjtime 0
|
||||
#define __ARGS_syncfs 0
|
||||
#define __ARGS_sendmmsg 0
|
||||
#define __ARGS_setns 0
|
||||
#define __ARGS_process_vm_readv 1
|
||||
#define __ARGS_process_vm_writev 1
|
||||
#define __ARGS_kcmp 1
|
||||
#define __ARGS_finit_module 0
|
||||
|
||||
|
||||
#ifdef __ASSEMBLER__
|
||||
|
||||
#ifdef __ARM_EABI__
|
||||
#include "arm-features.h"
|
||||
|
||||
#define syscall_weak(name,wsym,sym) __syscall_weak __NR_##name, wsym, sym, __ARGS_##name
|
||||
.macro __syscall_weak name wsym sym typ
|
||||
.text
|
||||
.type \wsym,function
|
||||
.weak \wsym
|
||||
\wsym:
|
||||
.type \sym,function
|
||||
.global \sym
|
||||
\sym:
|
||||
stmfd sp!,{r4,r5,r7,lr}
|
||||
ldr r4, [sp,#16]
|
||||
ldr r5, [sp,#20]
|
||||
ldr r7, =\name
|
||||
swi 0
|
||||
b __unified_syscall
|
||||
FUNC_START_WEAK \wsym
|
||||
__syscall \name, \sym, \typ
|
||||
FUNC_END \wsym
|
||||
.endm
|
||||
|
||||
#ifdef __ARM_EABI__
|
||||
|
||||
#define syscall(name,sym) __syscall __NR_##name, sym, __ARGS_##name
|
||||
.macro __syscall name sym typ
|
||||
.text
|
||||
.type \sym,function
|
||||
.global \sym
|
||||
\sym:
|
||||
stmfd sp!,{r4,r5,r7,lr}
|
||||
ldr r4, [sp,#16]
|
||||
ldr r5, [sp,#20]
|
||||
ldr r7, =\name
|
||||
swi 0
|
||||
b __unified_syscall
|
||||
FUNC_START \sym
|
||||
ldr ip, =\name
|
||||
b __unified_syscall_swi
|
||||
FUNC_END \sym
|
||||
.endm
|
||||
|
||||
#else
|
||||
|
||||
#define syscall_weak(name,wsym,sym) __syscall_weak $__NR_##name, wsym, sym, __ARGS_##name
|
||||
.macro __syscall_weak name wsym sym typ
|
||||
.text
|
||||
.type \wsym,function
|
||||
.weak \wsym
|
||||
\wsym:
|
||||
.type \sym,function
|
||||
.global \sym
|
||||
\sym:
|
||||
.ifgt \typ
|
||||
mov ip, sp
|
||||
stmfd sp!,{r4, r5, r6}
|
||||
ldmia ip, {r4, r5, r6}
|
||||
.endif
|
||||
swi \name
|
||||
.ifgt \typ
|
||||
b __unified_syscall4
|
||||
.else
|
||||
b __unified_syscall
|
||||
.endif
|
||||
.endm
|
||||
|
||||
#define syscall(name,sym) __syscall $__NR_##name, sym, __ARGS_##name
|
||||
.macro __syscall name sym typ
|
||||
.text
|
||||
.type \sym,function
|
||||
.global \sym
|
||||
\sym:
|
||||
FUNC_START \sym
|
||||
.ifgt \typ
|
||||
mov ip, sp
|
||||
stmfd sp!,{r4, r5, r6}
|
||||
@@ -846,6 +913,7 @@
|
||||
.else
|
||||
b __unified_syscall
|
||||
.endif
|
||||
FUNC_END \sym
|
||||
.endm
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
struct sigcontext {
|
||||
unsigned long fault_address;
|
||||
/* AArch64 registers */
|
||||
unsigned long regs[31];
|
||||
unsigned long sp;
|
||||
unsigned long pc;
|
||||
unsigned long pstate;
|
||||
/* 4K reserved for FP/SIMD state and future expansion */
|
||||
unsigned char __reserved[4096] __attribute__((__aligned__(16)));
|
||||
};
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
#define PC(ctx) (ctx.sc_ip)
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
struct sigcontext {
|
||||
unsigned long sc_flags;
|
||||
unsigned long sc_nat;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* Keep this struct definition in sync with the sigcontext fragment
|
||||
* in arch/mips/tools/offset.c
|
||||
*/
|
||||
#ifndef __mips64__
|
||||
struct sigcontext {
|
||||
unsigned int sc_regmask; /* Unused */
|
||||
unsigned int sc_status;
|
||||
@@ -21,3 +22,22 @@ struct sigcontext {
|
||||
|
||||
unsigned long sc_sigset[4]; /* kernel's sigset_t */
|
||||
};
|
||||
#else
|
||||
struct sigcontext {
|
||||
unsigned long long sc_regs[32];
|
||||
unsigned long long sc_fpregs[32];
|
||||
unsigned long long sc_mdhi;
|
||||
unsigned long long sc_hi1;
|
||||
unsigned long long sc_hi2;
|
||||
unsigned long long sc_hi3;
|
||||
unsigned long long sc_mdlo;
|
||||
unsigned long long sc_lo1;
|
||||
unsigned long long sc_lo2;
|
||||
unsigned long long sc_lo3;
|
||||
unsigned long long sc_pc;
|
||||
unsigned int sc_fpc_csr;
|
||||
unsigned int sc_used_math;
|
||||
unsigned int sc_dsp;
|
||||
unsigned int sc_reserved;
|
||||
};
|
||||
#endif
|
||||
@@ -33,6 +33,10 @@ __BEGIN_DECLS
|
||||
#include <asm/arm-sigcontext.h>
|
||||
#endif
|
||||
|
||||
#ifdef __aarch64__
|
||||
#include <asm/aarch64-sigcontext.h>
|
||||
#endif
|
||||
|
||||
#ifdef __hppa__
|
||||
#include <asm/parisc-sigcontext.h>
|
||||
#endif
|
||||
|
||||
@@ -17,33 +17,33 @@ struct _fpstate {
|
||||
__u32 reserved2[24];
|
||||
};
|
||||
|
||||
struct sigcontext {
|
||||
unsigned long r8;
|
||||
unsigned long r9;
|
||||
unsigned long r10;
|
||||
unsigned long r11;
|
||||
unsigned long r12;
|
||||
unsigned long r13;
|
||||
unsigned long r14;
|
||||
unsigned long r15;
|
||||
unsigned long rdi;
|
||||
unsigned long rsi;
|
||||
unsigned long rbp;
|
||||
unsigned long rbx;
|
||||
unsigned long rdx;
|
||||
unsigned long rax;
|
||||
unsigned long rcx;
|
||||
unsigned long rsp;
|
||||
unsigned long rip;
|
||||
unsigned long eflags; /* RFLAGS */
|
||||
__u16 cs;
|
||||
__u16 gs;
|
||||
__u16 fs;
|
||||
struct sigcontext { // ofs ofs-x32
|
||||
unsigned long r8; // 0 0
|
||||
unsigned long r9; // 8 4
|
||||
unsigned long r10; // 16 8
|
||||
unsigned long r11; // 24 12
|
||||
unsigned long r12; // 32 16
|
||||
unsigned long r13; // 40 20
|
||||
unsigned long r14; // 48 24
|
||||
unsigned long r15; // 56 28
|
||||
unsigned long rdi; // 64 32
|
||||
unsigned long rsi; // 72 36
|
||||
unsigned long rbp; // 80 40
|
||||
unsigned long rbx; // 88 44
|
||||
unsigned long rdx; // 96 48
|
||||
unsigned long rax; // 104 52
|
||||
unsigned long rcx; // 112 56
|
||||
unsigned long rsp; // 120 60
|
||||
unsigned long rip; // 128 64
|
||||
unsigned long eflags; // 136 68
|
||||
__u16 cs; // 144 72
|
||||
__u16 gs; // 146 74
|
||||
__u16 fs; // 148 76
|
||||
__u16 __pad0;
|
||||
unsigned long err;
|
||||
unsigned long trapno;
|
||||
unsigned long oldmask;
|
||||
unsigned long cr2;
|
||||
unsigned long err; // 152 80
|
||||
unsigned long trapno; // 160 84
|
||||
unsigned long oldmask; // 168 88
|
||||
unsigned long cr2; // 176 92
|
||||
struct _fpstate *fpstate; /* zero when no FPU context */
|
||||
unsigned long reserved1[8];
|
||||
};
|
||||
@@ -5,14 +5,14 @@
|
||||
#define __BIG_ENDIAN 4321
|
||||
|
||||
#ifdef __mips__
|
||||
#if _MIPS_SIM == _MIPS_SIM_ABI64
|
||||
#if _MIPS_SIM == _ABI64
|
||||
#define __mips64__
|
||||
#else
|
||||
#undef __mips64__
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__) || defined(__ia64__) || defined(__alpha__)
|
||||
#if defined(__i386__) || defined(__x86_64__) || defined(__ia64__) || defined(__alpha__) || defined(__aarch64__)
|
||||
#define __BYTE_ORDER __LITTLE_ENDIAN
|
||||
#define __FLOAT_WORD_ORDER __BYTE_ORDER
|
||||
#endif
|
||||
@@ -39,20 +39,35 @@
|
||||
# define __LONG_LONG_PAIR(HI, LO) HI, LO
|
||||
#endif
|
||||
|
||||
#if defined(__alpha__) || defined(__mips64__) || defined(__sparc_v9__) || defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__s390x__)
|
||||
#if defined(__alpha__) || defined(__mips64__) || defined(__sparcv9) || defined(__ia64__) || defined(__powerpc64__) || defined(__s390x__) || defined(__aarch64__)
|
||||
#define __WORDSIZE 64
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) || defined(__powerpc64__) || defined(__sparc_v9__)
|
||||
#if defined(__x86_64__)
|
||||
#if defined(__ILP32__)
|
||||
#define __OFF_T_MATCHES_OFF64_T
|
||||
#else
|
||||
#define __WORDSIZE 64
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) || defined(__powerpc64__) || defined(__sparcv9) || defined(__aarch64__)
|
||||
#define __WORDSIZE_COMPAT32 1
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__) && (__arch64__)
|
||||
#define __WORDSIZE 64
|
||||
#define __WORDSIZE_COMPAT32 1
|
||||
#endif
|
||||
|
||||
#ifndef __WORDSIZE
|
||||
#ifdef __WORDSIZE
|
||||
#define __OFF_T_MATCHES_OFF64_T
|
||||
#else
|
||||
#define __WORDSIZE 32
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) || defined(__i386__)
|
||||
#define __UNALIGNED_MEMORY_ACCESS_OK 1
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -135,7 +135,15 @@
|
||||
#define EKEYREVOKED 134 /* Key has been revoked */
|
||||
#define EKEYREJECTED 135 /* Key was rejected by service */
|
||||
|
||||
#define __SYS_NERR ((EKEYREJECTED) + 1)
|
||||
/* for robust mutexes */
|
||||
#define EOWNERDEAD 136 /* Owner died */
|
||||
#define ENOTRECOVERABLE 137 /* State not recoverable */
|
||||
|
||||
#define ERFKILL 138 /* Operation not possible due to RF-kill */
|
||||
|
||||
#define EHWPOISON 139 /* Memory page has hardware error */
|
||||
|
||||
#define __SYS_NERR ((EHWPOISON) + 1)
|
||||
|
||||
#elif defined(__mips__)
|
||||
|
||||
@@ -270,9 +278,18 @@
|
||||
#define EKEYEXPIRED 162 /* Key has expired */
|
||||
#define EKEYREVOKED 163 /* Key has been revoked */
|
||||
#define EKEYREJECTED 164 /* Key was rejected by service */
|
||||
|
||||
/* for robust mutexes */
|
||||
#define EOWNERDEAD 165 /* Owner died */
|
||||
#define ENOTRECOVERABLE 166 /* State not recoverable */
|
||||
|
||||
#define ERFKILL 167 /* Operation not possible due to RF-kill */
|
||||
|
||||
#define EHWPOISON 168 /* Memory page has hardware error */
|
||||
|
||||
#define EDQUOT 1133 /* Quota exceeded */
|
||||
|
||||
#define __SYS_NERR ((EKEYREJECTED) + 1)
|
||||
#define __SYS_NERR ((EHWPOISON) + 1)
|
||||
|
||||
#elif defined(__sparc__)
|
||||
|
||||
@@ -409,7 +426,15 @@
|
||||
#define EKEYREVOKED 130 /* Key has been revoked */
|
||||
#define EKEYREJECTED 131 /* Key was rejected by service */
|
||||
|
||||
#define __SYS_NERR ((EKEYREJECTED) + 1)
|
||||
/* for robust mutexes */
|
||||
#define EOWNERDEAD 132 /* Owner died */
|
||||
#define ENOTRECOVERABLE 133 /* State not recoverable */
|
||||
|
||||
#define ERFKILL 134 /* Operation not possible due to RF-kill */
|
||||
|
||||
#define EHWPOISON 135 /* Memory page has hardware error */
|
||||
|
||||
#define __SYS_NERR ((EHWPOISON) + 1)
|
||||
|
||||
#elif defined(__hppa__)
|
||||
|
||||
@@ -550,7 +575,7 @@
|
||||
|
||||
#define EALREADY 244 /* Operation already in progress */
|
||||
#define EINPROGRESS 245 /* Operation now in progress */
|
||||
#define EWOULDBLOCK 246 /* Operation would block (Linux returns EAGAIN) */
|
||||
#define EWOULDBLOCK EAGAIN /* Operation would block (Linux returns EAGAIN) */
|
||||
#define ENOTEMPTY 247 /* Directory not empty */
|
||||
#define ENAMETOOLONG 248 /* File name too long */
|
||||
#define ELOOP 249 /* Too many symbolic links encountered */
|
||||
@@ -559,11 +584,19 @@
|
||||
#define ENOTSUP 252 /* Function not implemented (POSIX.4 / HPUX) */
|
||||
#define ECANCELLED 253 /* aio request was canceled before complete (POSIX.4 / HPUX) */
|
||||
|
||||
#define __SYS_NERR ((ECANCELLED) + 1)
|
||||
/* for robust mutexes */
|
||||
#define EOWNERDEAD 254 /* Owner died */
|
||||
#define ENOTRECOVERABLE 255 /* State not recoverable */
|
||||
|
||||
#define ERFKILL 256 /* Operation not possible due to RF-kill */
|
||||
|
||||
#define EHWPOISON 257 /* Memory page has hardware error */
|
||||
|
||||
#define __SYS_NERR ((EHWPOISON) + 1)
|
||||
|
||||
#else
|
||||
|
||||
/* i386, arm, ppc, x86_64, ia64 */
|
||||
/* i386, arm, aarch64, ppc, x86_64, ia64 */
|
||||
|
||||
#define EPERM 1 /* Operation not permitted */
|
||||
#define ENOENT 2 /* No such file or directory */
|
||||
@@ -695,7 +728,16 @@
|
||||
#define EKEYEXPIRED 127 /* Key has expired */
|
||||
#define EKEYREVOKED 128 /* Key has been revoked */
|
||||
#define EKEYREJECTED 129 /* Key was rejected by service */
|
||||
#define __SYS_NERR ((EKEYREJECTED) + 1)
|
||||
|
||||
/* for robust mutexes */
|
||||
#define EOWNERDEAD 130 /* Owner died */
|
||||
#define ENOTRECOVERABLE 131 /* State not recoverable */
|
||||
|
||||
#define ERFKILL 132 /* Operation not possible due to RF-kill */
|
||||
|
||||
#define EHWPOISON 133 /* Memory page has hardware error */
|
||||
|
||||
#define __SYS_NERR ((EHWPOISON) + 1)
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
@@ -704,14 +746,12 @@
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#ifndef _REENTRANT
|
||||
extern int errno;
|
||||
#else
|
||||
#define errno (*__errno_location())
|
||||
#endif
|
||||
// #include <errno_definition.h>
|
||||
|
||||
extern int *__errno_location(void);
|
||||
|
||||
#define errno (*__errno_location())
|
||||
|
||||
#define __set_errno(x) errno=(x)
|
||||
|
||||
#ifdef _BSD_SOURCE
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/uio.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
@@ -14,8 +15,6 @@ __BEGIN_DECLS
|
||||
|
||||
#if defined(__i386__) || defined(__s390__) || defined(__x86_64__) || defined(__ia64__)
|
||||
|
||||
/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
|
||||
located on an ext2 file system */
|
||||
#define O_ACCMODE 0003
|
||||
#define O_RDONLY 00
|
||||
#define O_WRONLY 01
|
||||
@@ -27,13 +26,17 @@ __BEGIN_DECLS
|
||||
#define O_APPEND 02000
|
||||
#define O_NONBLOCK 04000
|
||||
#define O_NDELAY O_NONBLOCK
|
||||
#define O_SYNC 010000
|
||||
#define O_DSYNC 010000
|
||||
#define FASYNC 020000 /* fcntl, for BSD compatibility */
|
||||
#define O_DIRECT 040000 /* direct disk access hint - currently ignored */
|
||||
#define O_LARGEFILE 0100000
|
||||
#define O_DIRECTORY 0200000 /* must be a directory */
|
||||
#define O_NOFOLLOW 0400000 /* don't follow links */
|
||||
#define O_NOATIME 01000000
|
||||
#define O_CLOEXEC 02000000
|
||||
#define O_SYNC (O_DSYNC|04000000)
|
||||
#define O_PATH 010000000
|
||||
#define __O_TMPFILE 020000000
|
||||
|
||||
#define F_DUPFD 0 /* dup */
|
||||
#define F_GETFD 1 /* get close_on_exec */
|
||||
@@ -96,8 +99,6 @@ struct flock64 {
|
||||
|
||||
#elif defined(__alpha__)
|
||||
|
||||
/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
|
||||
located on an ext2 file system */
|
||||
#define O_ACCMODE 0003
|
||||
#define O_RDONLY 00
|
||||
#define O_WRONLY 01
|
||||
@@ -110,13 +111,17 @@ struct flock64 {
|
||||
#define O_NONBLOCK 00004
|
||||
#define O_APPEND 00010
|
||||
#define O_NDELAY O_NONBLOCK
|
||||
#define O_SYNC 040000
|
||||
#define O_DSYNC 040000
|
||||
#define FASYNC 020000 /* fcntl, for BSD compatibility */
|
||||
#define O_DIRECTORY 0100000 /* must be a directory */
|
||||
#define O_NOFOLLOW 0200000 /* don't follow links */
|
||||
#define O_LARGEFILE 0400000 /* will be set by the kernel on every open */
|
||||
#define O_DIRECT 02000000 /* direct disk access - should check with OSF/1 */
|
||||
#define O_NOATIME 04000000
|
||||
#define O_CLOEXEC 010000000
|
||||
#define O_SYNC (020000000|O_DSYNC)
|
||||
#define O_PATH 040000000
|
||||
#define __O_TMPFILE 0100000000
|
||||
|
||||
#define F_DUPFD 0 /* dup */
|
||||
#define F_GETFD 1 /* get close_on_exec */
|
||||
@@ -167,25 +172,31 @@ struct flock {
|
||||
|
||||
#elif defined(__mips__)
|
||||
|
||||
/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
|
||||
located on an ext2 file system */
|
||||
#define O_ACCMODE 0x0003
|
||||
#define O_RDONLY 0x0000
|
||||
#define O_WRONLY 0x0001
|
||||
#define O_RDWR 0x0002
|
||||
#define O_APPEND 0x0008
|
||||
#define O_SYNC 0x0010
|
||||
#define O_DSYNC 0x0010
|
||||
#define O_NONBLOCK 0x0080
|
||||
#define O_CREAT 0x0100 /* not fcntl */
|
||||
#define O_TRUNC 0x0200 /* not fcntl */
|
||||
#define O_EXCL 0x0400 /* not fcntl */
|
||||
#define O_NOCTTY 0x0800 /* not fcntl */
|
||||
#define FASYNC 0x1000 /* fcntl, for BSD compatibility */
|
||||
#ifdef __mips64__
|
||||
#define O_LARGEFILE 0
|
||||
#else
|
||||
#define O_LARGEFILE 0x2000 /* allow large file opens - currently ignored */
|
||||
#endif
|
||||
#define O_SYNC (0x4000|O_DSYNC)
|
||||
#define O_DIRECT 0x8000 /* direct disk access hint - currently ignored */
|
||||
#define O_DIRECTORY 0x10000 /* must be a directory */
|
||||
#define O_NOFOLLOW 0x20000 /* don't follow links */
|
||||
#define O_NOATIME 0x40000
|
||||
#define O_CLOEXEC 0x80000
|
||||
#define O_PATH 010000000
|
||||
#define __O_TMPFILE 020000000
|
||||
|
||||
#define O_NDELAY O_NONBLOCK
|
||||
|
||||
@@ -266,8 +277,6 @@ struct flock {
|
||||
|
||||
#elif defined(__sparc__)
|
||||
|
||||
/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
|
||||
located on an ext2 file system */
|
||||
#define O_RDONLY 0x0000
|
||||
#define O_WRONLY 0x0001
|
||||
#define O_RDWR 0x0002
|
||||
@@ -277,7 +286,7 @@ struct flock {
|
||||
#define O_CREAT 0x0200 /* not fcntl */
|
||||
#define O_TRUNC 0x0400 /* not fcntl */
|
||||
#define O_EXCL 0x0800 /* not fcntl */
|
||||
#define O_SYNC 0x2000
|
||||
#define O_DSYNC 0x2000
|
||||
#define O_NONBLOCK 0x4000
|
||||
#define O_NDELAY (0x0004 | O_NONBLOCK)
|
||||
#define O_NOCTTY 0x8000 /* not fcntl */
|
||||
@@ -286,6 +295,10 @@ struct flock {
|
||||
#define O_LARGEFILE 0x40000
|
||||
#define O_DIRECT 0x100000 /* direct disk access hint */
|
||||
#define O_NOATIME 0x200000
|
||||
#define O_CLOEXEC 0x400000
|
||||
#define O_SYNC (0x800000|O_DSYNC)
|
||||
#define O_PATH 0x1000000
|
||||
#define __O_TMPFILE 0x2000000
|
||||
|
||||
#define F_DUPFD 0 /* dup */
|
||||
#define F_GETFD 1 /* get close_on_exec */
|
||||
@@ -355,8 +368,6 @@ struct flock64 {
|
||||
|
||||
#elif defined(__powerpc__) || defined(__powerpc64__)
|
||||
|
||||
/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
|
||||
located on an ext2 file system */
|
||||
#define O_ACCMODE 0003
|
||||
#define O_RDONLY 00
|
||||
#define O_WRONLY 01
|
||||
@@ -368,13 +379,17 @@ struct flock64 {
|
||||
#define O_APPEND 02000
|
||||
#define O_NONBLOCK 04000
|
||||
#define O_NDELAY O_NONBLOCK
|
||||
#define O_SYNC 010000
|
||||
#define O_DSYNC 010000
|
||||
#define FASYNC 020000 /* fcntl, for BSD compatibility */
|
||||
#define O_DIRECTORY 040000 /* must be a directory */
|
||||
#define O_NOFOLLOW 0100000 /* don't follow links */
|
||||
#define O_LARGEFILE 0200000
|
||||
#define O_DIRECT 0400000 /* direct disk access hint - currently ignored */
|
||||
#define O_NOATIME 01000000
|
||||
#define O_CLOEXEC 02000000
|
||||
#define O_SYNC (O_DSYNC|04000000)
|
||||
#define O_PATH 010000000
|
||||
#define __O_TMPFILE 020000000
|
||||
|
||||
#define F_DUPFD 0 /* dup */
|
||||
#define F_GETFD 1 /* get close_on_exec */
|
||||
@@ -437,10 +452,8 @@ struct flock64 {
|
||||
pid_t l_pid;
|
||||
};
|
||||
|
||||
#elif defined (__arm__)
|
||||
#elif defined (__arm__) || defined(__aarch64__)
|
||||
|
||||
/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
|
||||
located on an ext2 file system */
|
||||
#define O_ACCMODE 0003
|
||||
#define O_RDONLY 00
|
||||
#define O_WRONLY 01
|
||||
@@ -452,13 +465,21 @@ struct flock64 {
|
||||
#define O_APPEND 02000
|
||||
#define O_NONBLOCK 04000
|
||||
#define O_NDELAY O_NONBLOCK
|
||||
#define O_SYNC 010000
|
||||
#define O_DSYNC 010000
|
||||
#define FASYNC 020000 /* fcntl, for BSD compatibility */
|
||||
#define O_DIRECTORY 040000 /* must be a directory */
|
||||
#define O_NOFOLLOW 0100000 /* don't follow links */
|
||||
#define O_DIRECT 0200000 /* direct disk access hint - currently ignored */
|
||||
#ifdef __aarch64__
|
||||
#define O_LARGEFILE 0
|
||||
#else
|
||||
#define O_LARGEFILE 0400000
|
||||
#endif
|
||||
#define O_NOATIME 01000000
|
||||
#define O_CLOEXEC 02000000
|
||||
#define O_SYNC (O_DSYNC|04000000)
|
||||
#define O_PATH 010000000
|
||||
#define __O_TMPFILE 020000000
|
||||
|
||||
#define F_DUPFD 0 /* dup */
|
||||
#define F_GETFD 1 /* get close_on_exec */
|
||||
@@ -474,9 +495,15 @@ struct flock64 {
|
||||
#define F_SETSIG 10 /* for sockets. */
|
||||
#define F_GETSIG 11 /* for sockets. */
|
||||
|
||||
#ifdef __arch64__
|
||||
#define F_GETLK64 5
|
||||
#define F_SETLK64 6
|
||||
#define F_SETLKW64 7
|
||||
#else
|
||||
#define F_GETLK64 12 /* using 'struct flock64' */
|
||||
#define F_SETLK64 13
|
||||
#define F_SETLKW64 14
|
||||
#endif
|
||||
|
||||
/* for F_[GET|SET]FL */
|
||||
#define FD_CLOEXEC 1 /* actually anything with low bit set goes */
|
||||
@@ -536,19 +563,24 @@ struct flock64 {
|
||||
#define O_EXCL 00002000 /* not fcntl */
|
||||
#define O_LARGEFILE 00004000
|
||||
#define O_ASYNC 00020000
|
||||
#define O_SYNC 00100000
|
||||
#define __O_SYNC 00100000
|
||||
#define O_NONBLOCK 00200004 /* HPUX has separate NDELAY & NONBLOCK */
|
||||
#define O_NDELAY O_NONBLOCK
|
||||
#define O_NOCTTY 00400000 /* not fcntl */
|
||||
#define O_DSYNC 01000000 /* HPUX only */
|
||||
#define O_RSYNC 02000000 /* HPUX only */
|
||||
#define O_NOATIME 04000000
|
||||
#define O_CLOEXEC 010000000
|
||||
#define O_DIRECTORY 00010000
|
||||
|
||||
#define O_DIRECT 00040000 /* direct disk access hint - currently ignored */
|
||||
#define O_NOFOLLOW 00000200 /* don't follow links */
|
||||
#define O_INVISIBLE 04000000 /* invisible I/O, for DMAPI/XDSM */
|
||||
|
||||
#define O_PATH 020000000
|
||||
#define __O_TMPFILE 040000000
|
||||
#define O_SYNC (__O_SYNC|O_DSYNC)
|
||||
|
||||
#define F_DUPFD 0 /* Duplicate file descriptor. */
|
||||
#define F_GETFD 1 /* Get file descriptor flags. */
|
||||
#define F_SETFD 2 /* Set file descriptor flags. */
|
||||
@@ -611,11 +643,57 @@ struct flock64
|
||||
|
||||
#endif
|
||||
|
||||
#define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
|
||||
#define F_SETLEASE (F_LINUX_SPECIFIC_BASE + 0)
|
||||
#define F_GETLEASE (F_LINUX_SPECIFIC_BASE + 1)
|
||||
|
||||
/*
|
||||
* Cancel a blocking posix lock; internal use only until we expose an
|
||||
* asynchronous lock api to userspace:
|
||||
*/
|
||||
#define F_CANCELLK (F_LINUX_SPECIFIC_BASE + 5)
|
||||
|
||||
/* Create a file descriptor with FD_CLOEXEC set. */
|
||||
#define F_DUPFD_CLOEXEC (F_LINUX_SPECIFIC_BASE + 6)
|
||||
|
||||
/*
|
||||
* Request nofications on a directory.
|
||||
* See below for events that may be notified.
|
||||
*/
|
||||
#define F_NOTIFY (F_LINUX_SPECIFIC_BASE+2)
|
||||
|
||||
/*
|
||||
* Set and get of pipe page size array
|
||||
*/
|
||||
#define F_SETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 7)
|
||||
#define F_GETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 8)
|
||||
|
||||
/*
|
||||
* Set/Get seals
|
||||
*/
|
||||
#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
|
||||
#define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10)
|
||||
|
||||
/*
|
||||
* Types of seals
|
||||
*/
|
||||
#define F_SEAL_SEAL 0x0001 /* prevent further seals from being set */
|
||||
#define F_SEAL_SHRINK 0x0002 /* prevent file from shrinking */
|
||||
#define F_SEAL_GROW 0x0004 /* prevent file from growing */
|
||||
#define F_SEAL_WRITE 0x0008 /* prevent writes */
|
||||
/* (1U << 31) is reserved for signed error codes */
|
||||
#endif
|
||||
|
||||
extern int fcntl (int __fd, int __cmd, ...) __THROW;
|
||||
#ifndef __NO_STAT64
|
||||
extern int fcntl64 (int __fd, int __cmd, ...) __THROW;
|
||||
extern int fstatat64(int dirfd, const char *pathname, struct stat64 *buf, int flags) __THROW;
|
||||
#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64
|
||||
#define fcntl fcntl64
|
||||
#define fstatat fstatat64
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -628,39 +706,75 @@ ssize_t readahead(int fd, off64_t *offset, size_t count) __THROW;
|
||||
#endif
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
#define SPLICE_F_MOVE (0x01) /* move pages instead of copying */
|
||||
#define SPLICE_F_NONBLOCK (0x02) /* don't block on the pipe splicing (but */
|
||||
/* we may still block on the fd we splice */
|
||||
/* from/to, of course */
|
||||
#define SPLICE_F_MORE (0x04) /* expect more data */
|
||||
#define SPLICE_F_GIFT (0x08) /* pages passed in are a gift */
|
||||
enum {
|
||||
SPLICE_F_MOVE=1, /* move pages instead of copying */
|
||||
#define SPLICE_F_MOVE SPLICE_F_MOVE
|
||||
SPLICE_F_NONBLOCK=2, /* don't block on splicing (may still block on fd we splice */
|
||||
#define SPLICE_F_NONBLOCK SPLICE_F_NONBLOCK
|
||||
SPLICE_F_MORE=4, /* expect more data */
|
||||
#define SPLICE_F_MORE SPLICE_F_MORE
|
||||
SPLICE_F_GIFT=8 /* pages passed in are a gift */
|
||||
#define SPLICE_F_GIFT SPLICE_F_GIFT
|
||||
};
|
||||
|
||||
long tee(int fd_in, int fd_out, size_t len, unsigned int flags) __THROW;
|
||||
ssize_t tee(int fd_in, int fd_out, size_t len, unsigned int flags) __THROW;
|
||||
|
||||
#include <sys/uio.h>
|
||||
|
||||
long vmsplice(int fd, const struct iovec *iov, unsigned long nr_segs, unsigned int flags) __THROW;
|
||||
long splice(int fd_in, loff_t *off_in, int fd_out, loff_t *off_out, size_t len, unsigned int flags) __THROW;
|
||||
ssize_t splice(int fd_in, loff_t *off_in, int fd_out, loff_t *off_out, size_t len, unsigned int flags) __THROW;
|
||||
ssize_t vmsplice(int fd, const struct iovec *iov, unsigned long nr_segs, unsigned int flags) __THROW;
|
||||
|
||||
int sync_file_range(int fd, off64_t offset, off64_t nbytes, unsigned int flags) __THROW;
|
||||
|
||||
#define FALLOC_FL_KEEP_SIZE 1
|
||||
|
||||
int fallocate(int fd, int mode, loff_t offset, loff_t len) __THROW;
|
||||
|
||||
/*
|
||||
* Types of directory notifications that may be requested.
|
||||
*/
|
||||
#define DN_ACCESS 0x00000001 /* File accessed */
|
||||
#define DN_MODIFY 0x00000002 /* File modified */
|
||||
#define DN_CREATE 0x00000004 /* File created */
|
||||
#define DN_DELETE 0x00000008 /* File removed */
|
||||
#define DN_RENAME 0x00000010 /* File renamed */
|
||||
#define DN_ATTRIB 0x00000020 /* File changed attibutes */
|
||||
#define DN_MULTISHOT 0x80000000 /* Don't remove notifier */
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(_ATFILE_SOURCE) || ((_XOPEN_SOURCE + 0) >= 700) || ((_POSIX_C_SOURCE + 0) >= 200809L)
|
||||
#define F_SETOWN_EX 15
|
||||
#define F_GETOWN_EX 16
|
||||
#define F_GETOWNER_UIDS 17
|
||||
|
||||
#define F_OFD_GETLK 36
|
||||
#define F_OFD_SETLK 37
|
||||
#define F_OFD_SETLKW 38
|
||||
|
||||
#define F_OWNER_TID 0
|
||||
#define F_OWNER_PID 1
|
||||
#define F_OWNER_PGRP 2
|
||||
|
||||
struct f_owner_ex {
|
||||
int type;
|
||||
int pid;
|
||||
};
|
||||
|
||||
#define AT_FDCWD -100 /* Special value used to indicate openat should use the current working directory. */
|
||||
#define AT_SYMLINK_NOFOLLOW 0x100 /* Do not follow symbolic links. */
|
||||
#define AT_REMOVEDIR 0x200 /* Remove directory instead of unlinking file. */
|
||||
#define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic links. */
|
||||
#define AT_NO_AUTOMOUNT 0x800 /* Suppress terminal automount traversal */
|
||||
#define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname */
|
||||
|
||||
/* for faccessat */
|
||||
#define AT_EACCESS 0x200 /* using euid, not uid for accessat */
|
||||
|
||||
int openat(int dirfd, const char *pathname, int flags, ...) __THROW;
|
||||
int futimesat(int dirfd, const char *pathname, const struct timeval times[2]) __THROW;
|
||||
int unlinkat(int dirfd, const char *pathname, int flags) __THROW;
|
||||
#endif
|
||||
|
||||
#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE - 0) >= 600
|
||||
#if (defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE - 0) >= 600) || defined(_POSIX_SOURCE)
|
||||
#include "linux/fadvise.h"
|
||||
int posix_fallocate(int fd, off64_t offset, off64_t len) __THROW;
|
||||
int posix_fadvise(int fd, off64_t offset, off64_t len, int advice) __THROW;
|
||||
|
||||
@@ -339,6 +339,96 @@
|
||||
#define __NR_fanotify_init 338
|
||||
#define __NR_fanotify_mark 339
|
||||
#define __NR_prlimit64 340
|
||||
#define __NR_name_to_handle_at 341
|
||||
#define __NR_open_by_handle_at 342
|
||||
#define __NR_clock_adjtime 343
|
||||
#define __NR_syncfs 344
|
||||
#define __NR_sendmmsg 345
|
||||
#define __NR_setns 346
|
||||
#define __NR_process_vm_readv 347
|
||||
#define __NR_process_vm_writev 348
|
||||
#define __NR_kcmp 349
|
||||
#define __NR_finit_module 350
|
||||
#define __NR_sched_setattr 351
|
||||
#define __NR_sched_getattr 352
|
||||
#define __NR_renameat2 353
|
||||
#define __NR_seccomp 354
|
||||
#define __NR_getrandom 355
|
||||
#define __NR_memfd_create 356
|
||||
#define __NR_bpf 357
|
||||
#define __NR_execveat 358
|
||||
#define __NR_socket 359
|
||||
#define __NR_socketpair 360
|
||||
#define __NR_bind 361
|
||||
#define __NR_connect 362
|
||||
#define __NR_listen 363
|
||||
#define __NR_accept4 364
|
||||
#define __NR_getsockopt 365
|
||||
#define __NR_setsockopt 366
|
||||
#define __NR_getsockname 367
|
||||
#define __NR_getpeername 368
|
||||
#define __NR_sendto 369
|
||||
#define __NR_sendmsg 370
|
||||
#define __NR_recvfrom 371
|
||||
#define __NR_recvmsg 372
|
||||
#define __NR_shutdown 373
|
||||
#define __NR_userfaultfd 374
|
||||
#define __NR_membarrier 375
|
||||
#define __NR_mlock2 376
|
||||
#define __NR_copy_file_range 377
|
||||
#define __NR_preadv2 378
|
||||
#define __NR_pwritev2 379
|
||||
#define __NR_pkey_mprotect 380
|
||||
#define __NR_pkey_alloc 381
|
||||
#define __NR_pkey_free 382
|
||||
#define __NR_ia32_statx 383
|
||||
#define __NR_ia32_arch_prctl 384
|
||||
#define __NR_ia32_io_pgetevents 385
|
||||
#define __NR_ia32_rseq 386
|
||||
#define __NR_semget 393
|
||||
#define __NR_semctl 394
|
||||
#define __NR_shmget 395
|
||||
#define __NR_shmctl 396
|
||||
#define __NR_shmat 397
|
||||
#define __NR_shmdt 398
|
||||
#define __NR_msgget 399
|
||||
#define __NR_msgsnd 400
|
||||
#define __NR_msgrcv 401
|
||||
#define __NR_msgctl 402
|
||||
#define __NR_clock_gettime64 403
|
||||
#define __NR_clock_settime64 404
|
||||
#define __NR_clock_adjtime64 405
|
||||
#define __NR_clock_getres_time64 406
|
||||
#define __NR_clock_nanosleep_time64 407
|
||||
#define __NR_timer_gettime64 408
|
||||
#define __NR_timer_settime64 409
|
||||
#define __NR_timerfd_gettime64 410
|
||||
#define __NR_timerfd_settime64 411
|
||||
#define __NR_utimensat_time64 412
|
||||
#define __NR_pselect6_time64 413
|
||||
#define __NR_ppoll_time64 414
|
||||
#define __NR_io_pgetevents_time64 416
|
||||
#define __NR_recvmmsg_time64 417
|
||||
#define __NR_mq_timedsend_time64 418
|
||||
#define __NR_mq_timedreceive_time64 419
|
||||
#define __NR_semtimedop_time64 420
|
||||
#define __NR_rt_sigtimedwait_time64 421
|
||||
#define __NR_futex_time64 422
|
||||
#define __NR_sched_rr_get_interval_time64 423
|
||||
#define __NR_pidfd_send_signal 424
|
||||
#define __NR_io_uring_setup 425
|
||||
#define __NR_io_uring_enter 426
|
||||
#define __NR_io_uring_register 427
|
||||
#define __NR_open_tree 428
|
||||
#define __NR_move_mount 429
|
||||
#define __NR_fsopen 430
|
||||
#define __NR_fsconfig 431
|
||||
#define __NR_fsmount 432
|
||||
#define __NR_fspick 433
|
||||
#define __NR_pidfd_open 434
|
||||
#define __NR_clone3 435
|
||||
#define __NR_openat2 437
|
||||
#define __NR_pidfd_getfd 438
|
||||
|
||||
#define syscall_weak(name,wsym,sym) \
|
||||
.text; \
|
||||
@@ -348,8 +438,13 @@ wsym: ; \
|
||||
.type sym,@function; \
|
||||
.global sym; \
|
||||
sym: \
|
||||
.ifle __NR_##name-255; \
|
||||
movb $__NR_##name,%al; \
|
||||
jmp __unified_syscall; \
|
||||
.else; \
|
||||
movw $__NR_##name,%ax; \
|
||||
jmp __unified_syscall_256; \
|
||||
.endif; \
|
||||
.Lend##sym: ; \
|
||||
.size sym,.Lend##sym-sym
|
||||
|
||||
@@ -368,7 +463,7 @@ sym: \
|
||||
.Lend##sym: ; \
|
||||
.size sym,.Lend##sym-sym
|
||||
|
||||
#ifndef __PIC__
|
||||
#ifndef __DYN_LIB
|
||||
#define __socketcall(name,NAME) \
|
||||
.text; \
|
||||
.type name,@function; \
|
||||
|
||||
@@ -1,294 +1,351 @@
|
||||
#ifndef __DLIBC_SYSCALL_H_
|
||||
#define __DLIBC_SYSCALL_H_
|
||||
|
||||
#define __NR_ni_syscall 1024
|
||||
#define __NR_exit 1025
|
||||
#define __NR_read 1026
|
||||
#define __NR_write 1027
|
||||
#define __NR_open 1028
|
||||
#define __NR_close 1029
|
||||
#define __NR_creat 1030
|
||||
#define __NR_link 1031
|
||||
#define __NR_unlink 1032
|
||||
#define __NR_execve 1033
|
||||
#define __NR_chdir 1034
|
||||
#define __NR_fchdir 1035
|
||||
#define __NR_utimes 1036
|
||||
#define __NR_mknod 1037
|
||||
#define __NR_chmod 1038
|
||||
#define __NR_chown 1039
|
||||
#define __NR_lseek 1040
|
||||
#define __NR_getpid 1041
|
||||
#define __NR_getppid 1042
|
||||
#define __NR_mount 1043
|
||||
#define __NR_umount 1044
|
||||
#define __NR_setuid 1045
|
||||
#define __NR_getuid 1046
|
||||
#define __NR_geteuid 1047
|
||||
#define __NR_ptrace 1048
|
||||
#define __NR_access 1049
|
||||
#define __NR_sync 1050
|
||||
#define __NR_fsync 1051
|
||||
#define __NR_fdatasync 1052
|
||||
#define __NR_kill 1053
|
||||
#define __NR_rename 1054
|
||||
#define __NR_mkdir 1055
|
||||
#define __NR_rmdir 1056
|
||||
#define __NR_dup 1057
|
||||
#define __NR_pipe 1058
|
||||
#define __NR_times 1059
|
||||
#define __NR_brk 1060
|
||||
#define __NR_setgid 1061
|
||||
#define __NR_getgid 1062
|
||||
#define __NR_getegid 1063
|
||||
#define __NR_acct 1064
|
||||
#define __NR_ioctl 1065
|
||||
#define __NR_fcntl 1066
|
||||
#define __NR_umask 1067
|
||||
#define __NR_chroot 1068
|
||||
#define __NR_ustat 1069
|
||||
#define __NR_dup2 1070
|
||||
#define __NR_setreuid 1071
|
||||
#define __NR_setregid 1072
|
||||
#define __NR_getresuid 1073
|
||||
#define __NR_setresuid 1074
|
||||
#define __NR_getresgid 1075
|
||||
#define __NR_setresgid 1076
|
||||
#define __NR_getgroups 1077
|
||||
#define __NR_setgroups 1078
|
||||
#define __NR_getpgid 1079
|
||||
#define __NR_setpgid 1080
|
||||
#define __NR_setsid 1081
|
||||
#define __NR_getsid 1082
|
||||
#define __NR_sethostname 1083
|
||||
#define __NR_setrlimit 1084
|
||||
#define __NR_getrlimit 1085
|
||||
#define __NR_getrusage 1086
|
||||
#define __NR_gettimeofday 1087
|
||||
#define __NR_settimeofday 1088
|
||||
#define __NR_select 1089
|
||||
#define __NR_poll 1090
|
||||
#define __NR_symlink 1091
|
||||
#define __NR_readlink 1092
|
||||
#define __NR_uselib 1093
|
||||
#define __NR_swapon 1094
|
||||
#define __NR_swapoff 1095
|
||||
#define __NR_reboot 1096
|
||||
#define __NR_truncate 1097
|
||||
#define __NR_ftruncate 1098
|
||||
#define __NR_fchmod 1099
|
||||
#define __NR_fchown 1100
|
||||
#define __NR_getpriority 1101
|
||||
#define __NR_setpriority 1102
|
||||
#define __NR_statfs 1103
|
||||
#define __NR_fstatfs 1104
|
||||
#define __NR_gettid 1105
|
||||
#define __NR_semget 1106
|
||||
#define __NR_semop 1107
|
||||
#define __NR_semctl 1108
|
||||
#define __NR_msgget 1109
|
||||
#define __NR_msgsnd 1110
|
||||
#define __NR_msgrcv 1111
|
||||
#define __NR_msgctl 1112
|
||||
#define __NR_shmget 1113
|
||||
#define __NR_shmat 1114
|
||||
#define __NR_shmdt 1115
|
||||
#define __NR_shmctl 1116
|
||||
/* also known as klogctl() in GNU libc: */
|
||||
#define __NR_syslog 1117
|
||||
#define __NR_setitimer 1118
|
||||
#define __NR_getitimer 1119
|
||||
/* 1120 was __NR_old_stat */
|
||||
/* 1121 was __NR_old_lstat */
|
||||
/* 1122 was __NR_old_fstat */
|
||||
#define __NR_vhangup 1123
|
||||
#define __NR_lchown 1124
|
||||
#define __NR_remap_file_pages 1125
|
||||
#define __NR_wait4 1126
|
||||
#define __NR_sysinfo 1127
|
||||
#define __NR_clone 1128
|
||||
#define __NR_setdomainname 1129
|
||||
#define __NR_uname 1130
|
||||
#define __NR_adjtimex 1131
|
||||
#define __NR_create_module 1132
|
||||
#define __NR_init_module 1133
|
||||
#define __NR_delete_module 1134
|
||||
#define __NR_get_kernel_syms 1135
|
||||
#define __NR_query_module 1136
|
||||
#define __NR_quotactl 1137
|
||||
#define __NR_bdflush 1138
|
||||
#define __NR_sysfs 1139
|
||||
#define __NR_personality 1140
|
||||
#define __NR_afs_syscall 1141
|
||||
#define __NR_setfsuid 1142
|
||||
#define __NR_setfsgid 1143
|
||||
#define __NR_getdents 1144
|
||||
#define __NR_flock 1145
|
||||
#define __NR_readv 1146
|
||||
#define __NR_writev 1147
|
||||
#define __NR_pread 1148
|
||||
#define __NR_pwrite 1149
|
||||
#define __NR__sysctl 1150
|
||||
#define __NR_mmap 1151
|
||||
#define __NR_munmap 1152
|
||||
#define __NR_mlock 1153
|
||||
#define __NR_mlockall 1154
|
||||
#define __NR_mprotect 1155
|
||||
#define __NR_mremap 1156
|
||||
#define __NR_msync 1157
|
||||
#define __NR_munlock 1158
|
||||
#define __NR_munlockall 1159
|
||||
#define __NR_sched_getparam 1160
|
||||
#define __NR_sched_setparam 1161
|
||||
#define __NR_sched_getscheduler 1162
|
||||
#define __NR_sched_setscheduler 1163
|
||||
#define __NR_sched_yield 1164
|
||||
#define __NR_sched_get_priority_max 1165
|
||||
#define __NR_sched_get_priority_min 1166
|
||||
#define __NR_sched_rr_get_interval 1167
|
||||
#define __NR_nanosleep 1168
|
||||
#define __NR_nfsservctl 1169
|
||||
#define __NR_prctl 1170
|
||||
#define __NR_mmap2 1172
|
||||
#define __NR_pciconfig_read 1173
|
||||
#define __NR_pciconfig_write 1174
|
||||
#define __NR_perfmonctl 1175
|
||||
#define __NR_sigaltstack 1176
|
||||
#define __NR_rt_sigaction 1177
|
||||
#define __NR_rt_sigpending 1178
|
||||
#define __NR_rt_sigprocmask 1179
|
||||
#define __NR_rt_sigqueueinfo 1180
|
||||
#define __NR_rt_sigreturn 1181
|
||||
#define __NR_rt_sigsuspend 1182
|
||||
#define __NR_rt_sigtimedwait 1183
|
||||
#define __NR_getcwd 1184
|
||||
#define __NR_capget 1185
|
||||
#define __NR_capset 1186
|
||||
#define __NR_sendfile 1187
|
||||
#define __NR_getpmsg 1188
|
||||
#define __NR_putpmsg 1189
|
||||
#define __NR_socket 1190
|
||||
#define __NR_bind 1191
|
||||
#define __NR_connect 1192
|
||||
#define __NR_listen 1193
|
||||
#define __NR_accept 1194
|
||||
#define __NR_getsockname 1195
|
||||
#define __NR_getpeername 1196
|
||||
#define __NR_socketpair 1197
|
||||
#define __NR_send 1198
|
||||
#define __NR_sendto 1199
|
||||
#define __NR_recv 1200
|
||||
#define __NR_recvfrom 1201
|
||||
#define __NR_shutdown 1202
|
||||
#define __NR_setsockopt 1203
|
||||
#define __NR_getsockopt 1204
|
||||
#define __NR_sendmsg 1205
|
||||
#define __NR_recvmsg 1206
|
||||
#define __NR_pivot_root 1207
|
||||
#define __NR_mincore 1208
|
||||
#define __NR_madvise 1209
|
||||
#define __NR_stat 1210
|
||||
#define __NR_lstat 1211
|
||||
#define __NR_fstat 1212
|
||||
#define __NR_clone2 1213
|
||||
#define __NR_getdents64 1214
|
||||
#define __NR_getunwind 1215
|
||||
#define __NR_readahead 1216
|
||||
#define __NR_setxattr 1217
|
||||
#define __NR_lsetxattr 1218
|
||||
#define __NR_fsetxattr 1219
|
||||
#define __NR_getxattr 1220
|
||||
#define __NR_lgetxattr 1221
|
||||
#define __NR_fgetxattr 1222
|
||||
#define __NR_listxattr 1223
|
||||
#define __NR_llistxattr 1224
|
||||
#define __NR_flistxattr 1225
|
||||
#define __NR_removexattr 1226
|
||||
#define __NR_lremovexattr 1227
|
||||
#define __NR_fremovexattr 1228
|
||||
#define __NR_tkill 1229
|
||||
#define __NR_futex 1230
|
||||
#define __NR_sched_setaffinity 1231
|
||||
#define __NR_sched_getaffinity 1232
|
||||
#define __NR_set_tid_address 1233
|
||||
#define __NR_fadvise64 1234
|
||||
#define __NR_tgkill 1235
|
||||
#define __NR_exit_group 1236
|
||||
#define __NR_lookup_dcookie 1237
|
||||
#define __NR_io_setup 1238
|
||||
#define __NR_io_destroy 1239
|
||||
#define __NR_io_getevents 1240
|
||||
#define __NR_io_submit 1241
|
||||
#define __NR_io_cancel 1242
|
||||
#define __NR_epoll_create 1243
|
||||
#define __NR_epoll_ctl 1244
|
||||
#define __NR_epoll_wait 1245
|
||||
#define __NR_restart_syscall 1246
|
||||
#define __NR_semtimedop 1247
|
||||
#define __NR_timer_create 1248
|
||||
#define __NR_timer_settime 1249
|
||||
#define __NR_timer_gettime 1250
|
||||
#define __NR_timer_getoverrun 1251
|
||||
#define __NR_timer_delete 1252
|
||||
#define __NR_clock_settime 1253
|
||||
#define __NR_clock_gettime 1254
|
||||
#define __NR_clock_getres 1255
|
||||
#define __NR_clock_nanosleep 1256
|
||||
#define __NR_fstatfs64 1257
|
||||
#define __NR_statfs64 1258
|
||||
#define __NR_mbind 1259
|
||||
#define __NR_get_mempolicy 1260
|
||||
#define __NR_set_mempolicy 1261
|
||||
#define __NR_mq_open 1262
|
||||
#define __NR_mq_unlink 1263
|
||||
#define __NR_mq_timedsend 1264
|
||||
#define __NR_mq_timedreceive 1265
|
||||
#define __NR_mq_notify 1266
|
||||
#define __NR_mq_getsetattr 1267
|
||||
#define __NR_kexec_load 1268
|
||||
#define __NR_vserver 1269
|
||||
#define __NR_waitid 1270
|
||||
#define __NR_add_key 1271
|
||||
#define __NR_request_key 1272
|
||||
#define __NR_keyctl 1273
|
||||
#define __NR_ioprio_set 1274
|
||||
#define __NR_ioprio_get 1275
|
||||
#define __NR_set_zone_reclaim 1276
|
||||
#define __NR_inotify_init 1277
|
||||
#define __NR_inotify_add_watch 1278
|
||||
#define __NR_inotify_rm_watch 1279
|
||||
#define __NR_migrate_pages 1280
|
||||
#define __NR_openat 1281
|
||||
#define __NR_mkdirat 1282
|
||||
#define __NR_mknodat 1283
|
||||
#define __NR_fchownat 1284
|
||||
#define __NR_futimesat 1285
|
||||
#define __NR_newfstatat 1286
|
||||
#define __NR_unlinkat 1287
|
||||
#define __NR_renameat 1288
|
||||
#define __NR_linkat 1289
|
||||
#define __NR_symlinkat 1290
|
||||
#define __NR_readlinkat 1291
|
||||
#define __NR_fchmodat 1292
|
||||
#define __NR_faccessat 1293
|
||||
/* 1294, 1295 reserved for pselect/ppoll */
|
||||
#define __NR_unshare 1296
|
||||
#define __NR_splice 1297
|
||||
#define __NR_set_robust_list 1298
|
||||
#define __NR_get_robust_list 1299
|
||||
#define __NR_sync_file_range 1300
|
||||
#define __NR_tee 1301
|
||||
#define __NR_vmsplice 1302
|
||||
#define __NR_fallocate 1303
|
||||
#define __NR_getcpu 1304
|
||||
#define __NR_epoll_pwait 1305
|
||||
#define __NR_utimensat 1306
|
||||
#define __NR_signalfd 1307
|
||||
#define __NR_timerfd 1308
|
||||
#define __NR_eventfd 1309
|
||||
#define __NR_timerfd_create 1310
|
||||
#define __NR_timerfd_settime 1311
|
||||
#define __NR_timerfd_gettime 1312
|
||||
#define __NR_Linux 1024
|
||||
|
||||
#define __NR_ni_syscall (__NR_Linux + 0)
|
||||
#define __NR_exit (__NR_Linux + 1)
|
||||
#define __NR_read (__NR_Linux + 2)
|
||||
#define __NR_write (__NR_Linux + 3)
|
||||
#define __NR_open (__NR_Linux + 4)
|
||||
#define __NR_close (__NR_Linux + 5)
|
||||
#define __NR_creat (__NR_Linux + 6)
|
||||
#define __NR_link (__NR_Linux + 7)
|
||||
#define __NR_unlink (__NR_Linux + 8)
|
||||
#define __NR_execve (__NR_Linux + 9)
|
||||
#define __NR_chdir (__NR_Linux + 10)
|
||||
#define __NR_fchdir (__NR_Linux + 11)
|
||||
#define __NR_utimes (__NR_Linux + 12)
|
||||
#define __NR_mknod (__NR_Linux + 13)
|
||||
#define __NR_chmod (__NR_Linux + 14)
|
||||
#define __NR_chown (__NR_Linux + 15)
|
||||
#define __NR_lseek (__NR_Linux + 16)
|
||||
#define __NR_getpid (__NR_Linux + 17)
|
||||
#define __NR_getppid (__NR_Linux + 18)
|
||||
#define __NR_mount (__NR_Linux + 19)
|
||||
#define __NR_umount2 (__NR_Linux + 20)
|
||||
#define __NR_setuid (__NR_Linux + 21)
|
||||
#define __NR_getuid (__NR_Linux + 22)
|
||||
#define __NR_geteuid (__NR_Linux + 23)
|
||||
#define __NR_ptrace (__NR_Linux + 24)
|
||||
#define __NR_access (__NR_Linux + 25)
|
||||
#define __NR_sync (__NR_Linux + 26)
|
||||
#define __NR_fsync (__NR_Linux + 27)
|
||||
#define __NR_fdatasync (__NR_Linux + 28)
|
||||
#define __NR_kill (__NR_Linux + 29)
|
||||
#define __NR_rename (__NR_Linux + 30)
|
||||
#define __NR_mkdir (__NR_Linux + 31)
|
||||
#define __NR_rmdir (__NR_Linux + 32)
|
||||
#define __NR_dup (__NR_Linux + 33)
|
||||
#define __NR_pipe (__NR_Linux + 34)
|
||||
#define __NR_times (__NR_Linux + 35)
|
||||
#define __NR_brk (__NR_Linux + 36)
|
||||
#define __NR_setgid (__NR_Linux + 37)
|
||||
#define __NR_getgid (__NR_Linux + 38)
|
||||
#define __NR_getegid (__NR_Linux + 39)
|
||||
#define __NR_acct (__NR_Linux + 40)
|
||||
#define __NR_ioctl (__NR_Linux + 41)
|
||||
#define __NR_fcntl (__NR_Linux + 42)
|
||||
#define __NR_umask (__NR_Linux + 43)
|
||||
#define __NR_chroot (__NR_Linux + 44)
|
||||
#define __NR_ustat (__NR_Linux + 45)
|
||||
#define __NR_dup2 (__NR_Linux + 46)
|
||||
#define __NR_setreuid (__NR_Linux + 47)
|
||||
#define __NR_setregid (__NR_Linux + 48)
|
||||
#define __NR_getresuid (__NR_Linux + 49)
|
||||
#define __NR_setresuid (__NR_Linux + 50)
|
||||
#define __NR_getresgid (__NR_Linux + 51)
|
||||
#define __NR_setresgid (__NR_Linux + 52)
|
||||
#define __NR_getgroups (__NR_Linux + 53)
|
||||
#define __NR_setgroups (__NR_Linux + 54)
|
||||
#define __NR_getpgid (__NR_Linux + 55)
|
||||
#define __NR_setpgid (__NR_Linux + 56)
|
||||
#define __NR_setsid (__NR_Linux + 57)
|
||||
#define __NR_getsid (__NR_Linux + 58)
|
||||
#define __NR_sethostname (__NR_Linux + 59)
|
||||
#define __NR_setrlimit (__NR_Linux + 60)
|
||||
#define __NR_getrlimit (__NR_Linux + 61)
|
||||
#define __NR_getrusage (__NR_Linux + 62)
|
||||
#define __NR_gettimeofday (__NR_Linux + 63)
|
||||
#define __NR_settimeofday (__NR_Linux + 64)
|
||||
#define __NR_select (__NR_Linux + 65)
|
||||
#define __NR_poll (__NR_Linux + 66)
|
||||
#define __NR_symlink (__NR_Linux + 67)
|
||||
#define __NR_readlink (__NR_Linux + 68)
|
||||
#define __NR_uselib (__NR_Linux + 69)
|
||||
#define __NR_swapon (__NR_Linux + 70)
|
||||
#define __NR_swapoff (__NR_Linux + 71)
|
||||
#define __NR_reboot (__NR_Linux + 72)
|
||||
#define __NR_truncate (__NR_Linux + 73)
|
||||
#define __NR_ftruncate (__NR_Linux + 74)
|
||||
#define __NR_fchmod (__NR_Linux + 75)
|
||||
#define __NR_fchown (__NR_Linux + 76)
|
||||
#define __NR_getpriority (__NR_Linux + 77)
|
||||
#define __NR_setpriority (__NR_Linux + 78)
|
||||
#define __NR_statfs (__NR_Linux + 79)
|
||||
#define __NR_fstatfs (__NR_Linux + 80)
|
||||
#define __NR_gettid (__NR_Linux + 81)
|
||||
#define __NR_semget (__NR_Linux + 82)
|
||||
#define __NR_semop (__NR_Linux + 83)
|
||||
#define __NR_semctl (__NR_Linux + 84)
|
||||
#define __NR_msgget (__NR_Linux + 85)
|
||||
#define __NR_msgsnd (__NR_Linux + 86)
|
||||
#define __NR_msgrcv (__NR_Linux + 87)
|
||||
#define __NR_msgctl (__NR_Linux + 88)
|
||||
#define __NR_shmget (__NR_Linux + 89)
|
||||
#define __NR_shmat (__NR_Linux + 90)
|
||||
#define __NR_shmdt (__NR_Linux + 91)
|
||||
#define __NR_shmctl (__NR_Linux + 92)
|
||||
#define __NR_syslog (__NR_Linux + 93)
|
||||
#define __NR_setitimer (__NR_Linux + 94)
|
||||
#define __NR_getitimer (__NR_Linux + 95)
|
||||
#define __NR_vhangup (__NR_Linux + 99)
|
||||
#define __NR_lchown (__NR_Linux + 100)
|
||||
#define __NR_remap_file_pages (__NR_Linux + 101)
|
||||
#define __NR_wait4 (__NR_Linux + 102)
|
||||
#define __NR_sysinfo (__NR_Linux + 103)
|
||||
#define __NR_clone (__NR_Linux + 104)
|
||||
#define __NR_setdomainname (__NR_Linux + 105)
|
||||
#define __NR_uname (__NR_Linux + 106)
|
||||
#define __NR_adjtimex (__NR_Linux + 107)
|
||||
#define __NR_init_module (__NR_Linux + 109)
|
||||
#define __NR_delete_module (__NR_Linux + 110)
|
||||
#define __NR_quotactl (__NR_Linux + 113)
|
||||
#define __NR_bdflush (__NR_Linux + 114)
|
||||
#define __NR_sysfs (__NR_Linux + 115)
|
||||
#define __NR_personality (__NR_Linux + 116)
|
||||
#define __NR_afs_syscall (__NR_Linux + 117)
|
||||
#define __NR_setfsuid (__NR_Linux + 118)
|
||||
#define __NR_setfsgid (__NR_Linux + 119)
|
||||
#define __NR_getdents (__NR_Linux + 120)
|
||||
#define __NR_flock (__NR_Linux + 121)
|
||||
#define __NR_readv (__NR_Linux + 122)
|
||||
#define __NR_writev (__NR_Linux + 123)
|
||||
#define __NR_pread64 (__NR_Linux + 124)
|
||||
#define __NR_pwrite64 (__NR_Linux + 125)
|
||||
#define __NR__sysctl (__NR_Linux + 126)
|
||||
#define __NR_mmap (__NR_Linux + 127)
|
||||
#define __NR_munmap (__NR_Linux + 128)
|
||||
#define __NR_mlock (__NR_Linux + 129)
|
||||
#define __NR_mlockall (__NR_Linux + 130)
|
||||
#define __NR_mprotect (__NR_Linux + 131)
|
||||
#define __NR_mremap (__NR_Linux + 132)
|
||||
#define __NR_msync (__NR_Linux + 133)
|
||||
#define __NR_munlock (__NR_Linux + 134)
|
||||
#define __NR_munlockall (__NR_Linux + 135)
|
||||
#define __NR_sched_getparam (__NR_Linux + 136)
|
||||
#define __NR_sched_setparam (__NR_Linux + 137)
|
||||
#define __NR_sched_getscheduler (__NR_Linux + 138)
|
||||
#define __NR_sched_setscheduler (__NR_Linux + 139)
|
||||
#define __NR_sched_yield (__NR_Linux + 140)
|
||||
#define __NR_sched_get_priority_max (__NR_Linux + 141)
|
||||
#define __NR_sched_get_priority_min (__NR_Linux + 142)
|
||||
#define __NR_sched_rr_get_interval (__NR_Linux + 143)
|
||||
#define __NR_nanosleep (__NR_Linux + 144)
|
||||
#define __NR_nfsservctl (__NR_Linux + 145)
|
||||
#define __NR_prctl (__NR_Linux + 146)
|
||||
#define __NR_old_getpagesize (__NR_Linux + 147)
|
||||
#define __NR_mmap2 (__NR_Linux + 148)
|
||||
#define __NR_pciconfig_read (__NR_Linux + 149)
|
||||
#define __NR_pciconfig_write (__NR_Linux + 150)
|
||||
#define __NR_perfmonctl (__NR_Linux + 151)
|
||||
#define __NR_sigaltstack (__NR_Linux + 152)
|
||||
#define __NR_rt_sigaction (__NR_Linux + 153)
|
||||
#define __NR_rt_sigpending (__NR_Linux + 154)
|
||||
#define __NR_rt_sigprocmask (__NR_Linux + 155)
|
||||
#define __NR_rt_sigqueueinfo (__NR_Linux + 156)
|
||||
#define __NR_rt_sigreturn (__NR_Linux + 157)
|
||||
#define __NR_rt_sigsuspend (__NR_Linux + 158)
|
||||
#define __NR_rt_sigtimedwait (__NR_Linux + 159)
|
||||
#define __NR_getcwd (__NR_Linux + 160)
|
||||
#define __NR_capget (__NR_Linux + 161)
|
||||
#define __NR_capset (__NR_Linux + 162)
|
||||
#define __NR_sendfile (__NR_Linux + 163)
|
||||
#define __NR_getpmsg (__NR_Linux + 164)
|
||||
#define __NR_putpmsg (__NR_Linux + 165)
|
||||
#define __NR_socket (__NR_Linux + 166)
|
||||
#define __NR_bind (__NR_Linux + 167)
|
||||
#define __NR_connect (__NR_Linux + 168)
|
||||
#define __NR_listen (__NR_Linux + 169)
|
||||
#define __NR_accept (__NR_Linux + 170)
|
||||
#define __NR_getsockname (__NR_Linux + 171)
|
||||
#define __NR_getpeername (__NR_Linux + 172)
|
||||
#define __NR_socketpair (__NR_Linux + 173)
|
||||
#define __NR_send (__NR_Linux + 174)
|
||||
#define __NR_sendto (__NR_Linux + 175)
|
||||
#define __NR_recv (__NR_Linux + 176)
|
||||
#define __NR_recvfrom (__NR_Linux + 177)
|
||||
#define __NR_shutdown (__NR_Linux + 178)
|
||||
#define __NR_setsockopt (__NR_Linux + 179)
|
||||
#define __NR_getsockopt (__NR_Linux + 180)
|
||||
#define __NR_sendmsg (__NR_Linux + 181)
|
||||
#define __NR_recvmsg (__NR_Linux + 182)
|
||||
#define __NR_pivot_root (__NR_Linux + 183)
|
||||
#define __NR_mincore (__NR_Linux + 184)
|
||||
#define __NR_madvise (__NR_Linux + 185)
|
||||
#define __NR_stat (__NR_Linux + 186)
|
||||
#define __NR_lstat (__NR_Linux + 187)
|
||||
#define __NR_fstat (__NR_Linux + 188)
|
||||
#define __NR_clone2 (__NR_Linux + 189)
|
||||
#define __NR_getdents64 (__NR_Linux + 190)
|
||||
#define __NR_getunwind (__NR_Linux + 191)
|
||||
#define __NR_readahead (__NR_Linux + 192)
|
||||
#define __NR_setxattr (__NR_Linux + 193)
|
||||
#define __NR_lsetxattr (__NR_Linux + 194)
|
||||
#define __NR_fsetxattr (__NR_Linux + 195)
|
||||
#define __NR_getxattr (__NR_Linux + 196)
|
||||
#define __NR_lgetxattr (__NR_Linux + 197)
|
||||
#define __NR_fgetxattr (__NR_Linux + 198)
|
||||
#define __NR_listxattr (__NR_Linux + 199)
|
||||
#define __NR_llistxattr (__NR_Linux + 200)
|
||||
#define __NR_flistxattr (__NR_Linux + 201)
|
||||
#define __NR_removexattr (__NR_Linux + 202)
|
||||
#define __NR_lremovexattr (__NR_Linux + 203)
|
||||
#define __NR_fremovexattr (__NR_Linux + 204)
|
||||
#define __NR_tkill (__NR_Linux + 205)
|
||||
#define __NR_futex (__NR_Linux + 206)
|
||||
#define __NR_sched_setaffinity (__NR_Linux + 207)
|
||||
#define __NR_sched_getaffinity (__NR_Linux + 208)
|
||||
#define __NR_set_tid_address (__NR_Linux + 209)
|
||||
#define __NR_fadvise64 (__NR_Linux + 210)
|
||||
#define __NR_tgkill (__NR_Linux + 211)
|
||||
#define __NR_exit_group (__NR_Linux + 212)
|
||||
#define __NR_lookup_dcookie (__NR_Linux + 213)
|
||||
#define __NR_io_setup (__NR_Linux + 214)
|
||||
#define __NR_io_destroy (__NR_Linux + 215)
|
||||
#define __NR_io_getevents (__NR_Linux + 216)
|
||||
#define __NR_io_submit (__NR_Linux + 217)
|
||||
#define __NR_io_cancel (__NR_Linux + 218)
|
||||
#define __NR_epoll_create (__NR_Linux + 219)
|
||||
#define __NR_epoll_ctl (__NR_Linux + 220)
|
||||
#define __NR_epoll_wait (__NR_Linux + 221)
|
||||
#define __NR_restart_syscall (__NR_Linux + 222)
|
||||
#define __NR_semtimedop (__NR_Linux + 223)
|
||||
#define __NR_timer_create (__NR_Linux + 224)
|
||||
#define __NR_timer_settime (__NR_Linux + 225)
|
||||
#define __NR_timer_gettime (__NR_Linux + 226)
|
||||
#define __NR_timer_getoverrun (__NR_Linux + 227)
|
||||
#define __NR_timer_delete (__NR_Linux + 228)
|
||||
#define __NR_clock_settime (__NR_Linux + 229)
|
||||
#define __NR_clock_gettime (__NR_Linux + 230)
|
||||
#define __NR_clock_getres (__NR_Linux + 231)
|
||||
#define __NR_clock_nanosleep (__NR_Linux + 232)
|
||||
#define __NR_fstatfs64 (__NR_Linux + 233)
|
||||
#define __NR_statfs64 (__NR_Linux + 234)
|
||||
#define __NR_mbind (__NR_Linux + 235)
|
||||
#define __NR_get_mempolicy (__NR_Linux + 236)
|
||||
#define __NR_set_mempolicy (__NR_Linux + 237)
|
||||
#define __NR_mq_open (__NR_Linux + 238)
|
||||
#define __NR_mq_unlink (__NR_Linux + 239)
|
||||
#define __NR_mq_timedsend (__NR_Linux + 240)
|
||||
#define __NR_mq_timedreceive (__NR_Linux + 241)
|
||||
#define __NR_mq_notify (__NR_Linux + 242)
|
||||
#define __NR_mq_getsetattr (__NR_Linux + 243)
|
||||
#define __NR_kexec_load (__NR_Linux + 244)
|
||||
#define __NR_vserver (__NR_Linux + 245)
|
||||
#define __NR_waitid (__NR_Linux + 246)
|
||||
#define __NR_add_key (__NR_Linux + 247)
|
||||
#define __NR_request_key (__NR_Linux + 248)
|
||||
#define __NR_keyctl (__NR_Linux + 249)
|
||||
#define __NR_ioprio_set (__NR_Linux + 250)
|
||||
#define __NR_ioprio_get (__NR_Linux + 251)
|
||||
#define __NR_move_pages (__NR_Linux + 252)
|
||||
#define __NR_inotify_init (__NR_Linux + 253)
|
||||
#define __NR_inotify_add_watch (__NR_Linux + 254)
|
||||
#define __NR_inotify_rm_watch (__NR_Linux + 255)
|
||||
#define __NR_migrate_pages (__NR_Linux + 256)
|
||||
#define __NR_openat (__NR_Linux + 257)
|
||||
#define __NR_mkdirat (__NR_Linux + 258)
|
||||
#define __NR_mknodat (__NR_Linux + 259)
|
||||
#define __NR_fchownat (__NR_Linux + 260)
|
||||
#define __NR_futimesat (__NR_Linux + 261)
|
||||
#define __NR_newfstatat (__NR_Linux + 262)
|
||||
#define __NR_unlinkat (__NR_Linux + 263)
|
||||
#define __NR_renameat (__NR_Linux + 264)
|
||||
#define __NR_linkat (__NR_Linux + 265)
|
||||
#define __NR_symlinkat (__NR_Linux + 266)
|
||||
#define __NR_readlinkat (__NR_Linux + 267)
|
||||
#define __NR_fchmodat (__NR_Linux + 268)
|
||||
#define __NR_faccessat (__NR_Linux + 269)
|
||||
#define __NR_pselect6 (__NR_Linux + 270)
|
||||
#define __NR_ppoll (__NR_Linux + 271)
|
||||
#define __NR_unshare (__NR_Linux + 272)
|
||||
#define __NR_splice (__NR_Linux + 273)
|
||||
#define __NR_set_robust_list (__NR_Linux + 274)
|
||||
#define __NR_get_robust_list (__NR_Linux + 275)
|
||||
#define __NR_sync_file_range (__NR_Linux + 276)
|
||||
#define __NR_tee (__NR_Linux + 277)
|
||||
#define __NR_vmsplice (__NR_Linux + 278)
|
||||
#define __NR_fallocate (__NR_Linux + 279)
|
||||
#define __NR_getcpu (__NR_Linux + 280)
|
||||
#define __NR_epoll_pwait (__NR_Linux + 281)
|
||||
#define __NR_utimensat (__NR_Linux + 282)
|
||||
#define __NR_signalfd (__NR_Linux + 283)
|
||||
#define __NR_timerfd (__NR_Linux + 284)
|
||||
#define __NR_eventfd (__NR_Linux + 285)
|
||||
#define __NR_timerfd_create (__NR_Linux + 286)
|
||||
#define __NR_timerfd_settime (__NR_Linux + 287)
|
||||
#define __NR_timerfd_gettime (__NR_Linux + 288)
|
||||
#define __NR_signalfd4 (__NR_Linux + 289)
|
||||
#define __NR_eventfd2 (__NR_Linux + 290)
|
||||
#define __NR_epoll_create1 (__NR_Linux + 291)
|
||||
#define __NR_dup3 (__NR_Linux + 292)
|
||||
#define __NR_pipe2 (__NR_Linux + 293)
|
||||
#define __NR_inotify_init1 (__NR_Linux + 294)
|
||||
#define __NR_preadv (__NR_Linux + 295)
|
||||
#define __NR_pwritev (__NR_Linux + 296)
|
||||
#define __NR_rt_tgsigqueueinfo (__NR_Linux + 297)
|
||||
#define __NR_recvmmsg (__NR_Linux + 298)
|
||||
#define __NR_fanotify_init (__NR_Linux + 299)
|
||||
#define __NR_fanotify_mark (__NR_Linux + 300)
|
||||
#define __NR_prlimit64 (__NR_Linux + 301)
|
||||
#define __NR_name_to_handle_at (__NR_Linux + 302)
|
||||
#define __NR_open_by_handle_at (__NR_Linux + 303)
|
||||
#define __NR_clock_adjtime (__NR_Linux + 304)
|
||||
#define __NR_syncfs (__NR_Linux + 305)
|
||||
#define __NR_setns (__NR_Linux + 306)
|
||||
#define __NR_sendmmsg (__NR_Linux + 307)
|
||||
#define __NR_process_vm_readv (__NR_Linux + 308)
|
||||
#define __NR_process_vm_writev (__NR_Linux + 309)
|
||||
#define __NR_accept4 (__NR_Linux + 310)
|
||||
#define __NR_finit_module (__NR_Linux + 311)
|
||||
#define __NR_sched_setattr (__NR_Linux + 312)
|
||||
#define __NR_sched_getattr (__NR_Linux + 313)
|
||||
#define __NR_renameat2 (__NR_Linux + 314)
|
||||
#define __NR_getrandom (__NR_Linux + 315)
|
||||
#define __NR_memfd_create (__NR_Linux + 316)
|
||||
#define __NR_bpf (__NR_Linux + 317)
|
||||
#define __NR_execveat (__NR_Linux + 318)
|
||||
#define __NR_userfaultfd (__NR_Linux + 319)
|
||||
#define __NR_membarrier (__NR_Linux + 320)
|
||||
#define __NR_kcmp (__NR_Linux + 321)
|
||||
#define __NR_mlock2 (__NR_Linux + 322)
|
||||
#define __NR_copy_file_range (__NR_Linux + 323)
|
||||
#define __NR_preadv2 (__NR_Linux + 324)
|
||||
#define __NR_pwritev2 (__NR_Linux + 325)
|
||||
#define __NR_statx (__NR_Linux + 326)
|
||||
#define __NR_io_pgetevents (__NR_Linux + 327)
|
||||
#define __NR_perf_event_open (__NR_Linux + 328)
|
||||
#define __NR_seccomp (__NR_Linux + 329)
|
||||
#define __NR_pkey_mprotect (__NR_Linux + 330)
|
||||
#define __NR_pkey_alloc (__NR_Linux + 331)
|
||||
#define __NR_pkey_free (__NR_Linux + 332)
|
||||
#define __NR_rseq (__NR_Linux + 333)
|
||||
#define __NR_pidfd_send_signal (__NR_Linux + 424)
|
||||
#define __NR_io_uring_setup (__NR_Linux + 425)
|
||||
#define __NR_io_uring_enter (__NR_Linux + 426)
|
||||
#define __NR_io_uring_register (__NR_Linux + 427)
|
||||
#define __NR_open_tree (__NR_Linux + 428)
|
||||
#define __NR_move_mount (__NR_Linux + 429)
|
||||
#define __NR_fsopen (__NR_Linux + 430)
|
||||
#define __NR_fsconfig (__NR_Linux + 431)
|
||||
#define __NR_fsmount (__NR_Linux + 432)
|
||||
#define __NR_fspick (__NR_Linux + 433)
|
||||
#define __NR_pidfd_open (__NR_Linux + 434)
|
||||
#define __NR_openat2 (__NR_Linux + 437)
|
||||
#define __NR_pidfd_getfd (__NR_Linux + 438)
|
||||
|
||||
#define __NR_umount_with_flags __NR_umount
|
||||
|
||||
#define syscall(name, sym) \
|
||||
.text; \
|
||||
|
||||
@@ -252,14 +252,11 @@ typedef unsigned int uint32_t __attribute__((__mode__(__SI__)));
|
||||
typedef unsigned int uint32_t;
|
||||
#endif
|
||||
|
||||
typedef signed long int intptr_t;
|
||||
typedef unsigned long int uintptr_t;
|
||||
|
||||
#if __WORDSIZE == 64
|
||||
typedef signed long int64_t;
|
||||
typedef unsigned long uint64_t;
|
||||
typedef signed long int intmax_t;
|
||||
typedef unsigned long int uintmax_t;
|
||||
typedef signed long intmax_t;
|
||||
typedef unsigned long uintmax_t;
|
||||
#else
|
||||
__extension__ typedef signed long long int64_t;
|
||||
__extension__ typedef unsigned long long uint64_t;
|
||||
@@ -267,6 +264,14 @@ __extension__ typedef signed long long int intmax_t;
|
||||
__extension__ typedef unsigned long long int uintmax_t;
|
||||
#endif
|
||||
|
||||
#ifdef __INTPTR_TYPE__
|
||||
typedef __INTPTR_TYPE__ intptr_t;
|
||||
typedef __UINTPTR_TYPE__ uintptr_t;
|
||||
#else
|
||||
typedef __SIZE_TYPE__ uintptr_t;
|
||||
typedef __PTRDIFF_TYPE__ intptr_t;
|
||||
#endif
|
||||
|
||||
intmax_t strtoimax (const char *nptr, char **endptr, int base);
|
||||
uintmax_t strtoumax (const char *nptr, char **endptr, int base);
|
||||
|
||||
@@ -274,6 +279,8 @@ intmax_t imaxabs(intmax_t j) __attribute_const__;
|
||||
typedef struct { intmax_t quot,rem; } imaxdiv_t;
|
||||
imaxdiv_t imaxdiv(intmax_t numerator, intmax_t denominator) __attribute_const__;
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef DIET_MIPS_ASM_H
|
||||
#define DIET_MIPS_ASM_H
|
||||
|
||||
#ifdef __ASSEMBLER__
|
||||
#if _MIPS_SIM == _ABI64
|
||||
|
||||
#define PTR_LA dla
|
||||
#define PTR_SW sd
|
||||
#define PTR_LL lld
|
||||
#define PTR_SC scd
|
||||
#define PTR_LW ld
|
||||
#define PTR_SLL dsll
|
||||
#define PTR_ADD dadd
|
||||
|
||||
#else
|
||||
|
||||
#define PTR_LA la
|
||||
#define PTR_SW sw
|
||||
#define PTR_LL ll
|
||||
#define PTR_SC sc
|
||||
#define PTR_LW lw
|
||||
#define PTR_SLL sll
|
||||
#define PTR_ADD add
|
||||
|
||||
#endif
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
#endif /* DIET_MIPS_ASM_H */
|
||||
@@ -1,18 +1,19 @@
|
||||
#if _MIPS_SIM == _ABIO32
|
||||
|
||||
/*
|
||||
* Linux o32 style syscalls are in the range from 4000 to 4999.
|
||||
*/
|
||||
#define __NR_Linux 4000
|
||||
#define __NR_syscall (__NR_Linux + 0)
|
||||
#define __NR_exit (__NR_Linux + 1)
|
||||
#define __NR_fork (__NR_Linux + 2)
|
||||
#define __NR_read (__NR_Linux + 3)
|
||||
#define __NR_write (__NR_Linux + 4)
|
||||
#define __NR_open (__NR_Linux + 5)
|
||||
#define __NR_close (__NR_Linux + 6)
|
||||
#define __NR_waitpid (__NR_Linux + 7)
|
||||
#define __NR_creat (__NR_Linux + 8)
|
||||
#define __NR_link (__NR_Linux + 9)
|
||||
#define __NR_syscall (__NR_Linux + 0)
|
||||
#define __NR_exit (__NR_Linux + 1)
|
||||
#define __NR_fork (__NR_Linux + 2)
|
||||
#define __NR_read (__NR_Linux + 3)
|
||||
#define __NR_write (__NR_Linux + 4)
|
||||
#define __NR_open (__NR_Linux + 5)
|
||||
#define __NR_close (__NR_Linux + 6)
|
||||
#define __NR_waitpid (__NR_Linux + 7)
|
||||
#define __NR_creat (__NR_Linux + 8)
|
||||
#define __NR_link (__NR_Linux + 9)
|
||||
#define __NR_unlink (__NR_Linux + 10)
|
||||
#define __NR_execve (__NR_Linux + 11)
|
||||
#define __NR_chdir (__NR_Linux + 12)
|
||||
@@ -203,8 +204,8 @@
|
||||
#define __NR_rt_sigtimedwait (__NR_Linux + 197)
|
||||
#define __NR_rt_sigqueueinfo (__NR_Linux + 198)
|
||||
#define __NR_rt_sigsuspend (__NR_Linux + 199)
|
||||
#define __NR_pread (__NR_Linux + 200)
|
||||
#define __NR_pwrite (__NR_Linux + 201)
|
||||
#define __NR_pread64 (__NR_Linux + 200)
|
||||
#define __NR_pwrite64 (__NR_Linux + 201)
|
||||
#define __NR_chown (__NR_Linux + 202)
|
||||
#define __NR_getcwd (__NR_Linux + 203)
|
||||
#define __NR_capget (__NR_Linux + 204)
|
||||
@@ -296,7 +297,7 @@
|
||||
#define __NR_mknodat (__NR_Linux + 290)
|
||||
#define __NR_fchownat (__NR_Linux + 291)
|
||||
#define __NR_futimesat (__NR_Linux + 292)
|
||||
#define __NR_fstatat (__NR_Linux + 293)
|
||||
#define __NR_fstatat64 (__NR_Linux + 293)
|
||||
#define __NR_unlinkat (__NR_Linux + 294)
|
||||
#define __NR_renameat (__NR_Linux + 295)
|
||||
#define __NR_linkat (__NR_Linux + 296)
|
||||
@@ -312,21 +313,468 @@
|
||||
#define __NR_tee (__NR_Linux + 306)
|
||||
#define __NR_vmsplice (__NR_Linux + 307)
|
||||
#define __NR_move_pages (__NR_Linux + 308)
|
||||
#define __NR_set_robust_list (__NR_Linux + 272)
|
||||
#define __NR_get_robust_list (__NR_Linux + 273)
|
||||
#define __NR_kexec_load (__NR_Linux + 274)
|
||||
#define __NR_getcpu (__NR_Linux + 275)
|
||||
#define __NR_epoll_pwait (__NR_Linux + 276)
|
||||
#define __NR_ioprio_set (__NR_Linux + 277)
|
||||
#define __NR_ioprio_get (__NR_Linux + 278)
|
||||
#define __NR_utimensat (__NR_Linux + 279)
|
||||
#define __NR_signalfd (__NR_Linux + 280)
|
||||
#define __NR_timerfd (__NR_Linux + 281)
|
||||
#define __NR_eventfd (__NR_Linux + 282)
|
||||
#define __NR_fallocate (__NR_Linux + 283)
|
||||
#define __NR_timerfd_create (__NR_Linux + 284)
|
||||
#define __NR_timerfd_gettime (__NR_Linux + 285)
|
||||
#define __NR_timerfd_settime (__NR_Linux + 286)
|
||||
#define __NR_set_robust_list (__NR_Linux + 309)
|
||||
#define __NR_get_robust_list (__NR_Linux + 310)
|
||||
#define __NR_kexec_load (__NR_Linux + 311)
|
||||
#define __NR_getcpu (__NR_Linux + 312)
|
||||
#define __NR_epoll_pwait (__NR_Linux + 313)
|
||||
#define __NR_ioprio_set (__NR_Linux + 314)
|
||||
#define __NR_ioprio_get (__NR_Linux + 315)
|
||||
#define __NR_utimensat (__NR_Linux + 316)
|
||||
#define __NR_signalfd (__NR_Linux + 317)
|
||||
#define __NR_timerfd (__NR_Linux + 318)
|
||||
#define __NR_eventfd (__NR_Linux + 319)
|
||||
#define __NR_fallocate (__NR_Linux + 320)
|
||||
#define __NR_timerfd_create (__NR_Linux + 321)
|
||||
#define __NR_timerfd_gettime (__NR_Linux + 322)
|
||||
#define __NR_timerfd_settime (__NR_Linux + 323)
|
||||
#define __NR_signalfd4 (__NR_Linux + 324)
|
||||
#define __NR_eventfd2 (__NR_Linux + 325)
|
||||
#define __NR_epoll_create1 (__NR_Linux + 326)
|
||||
#define __NR_dup3 (__NR_Linux + 327)
|
||||
#define __NR_pipe2 (__NR_Linux + 328)
|
||||
#define __NR_inotify_init1 (__NR_Linux + 329)
|
||||
#define __NR_preadv (__NR_Linux + 330)
|
||||
#define __NR_pwritev (__NR_Linux + 331)
|
||||
#define __NR_rt_tgsigqueueinfo (__NR_Linux + 332)
|
||||
#define __NR_perf_event_open (__NR_Linux + 333)
|
||||
#define __NR_accept4 (__NR_Linux + 334)
|
||||
#define __NR_recvmmsg (__NR_Linux + 335)
|
||||
#define __NR_fanotify_init (__NR_Linux + 336)
|
||||
#define __NR_fanotify_mark (__NR_Linux + 337)
|
||||
#define __NR_prlimit64 (__NR_Linux + 338)
|
||||
#define __NR_name_to_handle_at (__NR_Linux + 339)
|
||||
#define __NR_open_by_handle_at (__NR_Linux + 340)
|
||||
#define __NR_clock_adjtime (__NR_Linux + 341)
|
||||
#define __NR_syncfs (__NR_Linux + 342)
|
||||
#define __NR_sendmmsg (__NR_Linux + 343)
|
||||
#define __NR_setns (__NR_Linux + 344)
|
||||
#define __NR_process_vm_readv (__NR_Linux + 345)
|
||||
#define __NR_process_vm_writev (__NR_Linux + 346)
|
||||
#define __NR_kcmp (__NR_Linux + 347)
|
||||
#define __NR_finit_module (__NR_Linux + 348)
|
||||
#define __NR_sched_setattr (__NR_Linux + 349)
|
||||
#define __NR_sched_getattr (__NR_Linux + 350)
|
||||
#define __NR_renameat2 (__NR_Linux + 351)
|
||||
#define __NR_seccomp (__NR_Linux + 352)
|
||||
#define __NR_getrandom (__NR_Linux + 353)
|
||||
#define __NR_memfd_create (__NR_Linux + 354)
|
||||
#define __NR_bpf (__NR_Linux + 355)
|
||||
#define __NR_execveat (__NR_Linux + 356)
|
||||
#define __NR_userfaultfd (__NR_Linux + 357)
|
||||
#define __NR_membarrier (__NR_Linux + 358)
|
||||
#define __NR_mlock2 (__NR_Linux + 359)
|
||||
#define __NR_copy_file_range (__NR_Linux + 360)
|
||||
#define __NR_preadv2 (__NR_Linux + 361)
|
||||
#define __NR_pwritev2 (__NR_Linux + 362)
|
||||
#define __NR_pkey_mprotect (__NR_Linux + 363)
|
||||
#define __NR_pkey_alloc (__NR_Linux + 364)
|
||||
#define __NR_pkey_free (__NR_Linux + 365)
|
||||
#define __NR_statx (__NR_Linux + 366)
|
||||
#define __NR_rseq (__NR_Linux + 367)
|
||||
#define __NR_io_pgetevents (__NR_Linux + 368)
|
||||
#define __NR_semget (__NR_Linux + 393)
|
||||
#define __NR_semctl (__NR_Linux + 394)
|
||||
#define __NR_shmget (__NR_Linux + 395)
|
||||
#define __NR_shmctl (__NR_Linux + 396)
|
||||
#define __NR_shmat (__NR_Linux + 397)
|
||||
#define __NR_shmdt (__NR_Linux + 398)
|
||||
#define __NR_msgget (__NR_Linux + 399)
|
||||
#define __NR_msgsnd (__NR_Linux + 400)
|
||||
#define __NR_msgrcv (__NR_Linux + 401)
|
||||
#define __NR_msgctl (__NR_Linux + 402)
|
||||
#define __NR_clock_gettime64 (__NR_Linux + 403)
|
||||
#define __NR_clock_settime64 (__NR_Linux + 404)
|
||||
#define __NR_clock_adjtime64 (__NR_Linux + 405)
|
||||
#define __NR_clock_getres_time64 (__NR_Linux + 406)
|
||||
#define __NR_clock_nanosleep_time64 (__NR_Linux + 407)
|
||||
#define __NR_timer_gettime64 (__NR_Linux + 408)
|
||||
#define __NR_timer_settime64 (__NR_Linux + 409)
|
||||
#define __NR_timerfd_gettime64 (__NR_Linux + 410)
|
||||
#define __NR_timerfd_settime64 (__NR_Linux + 411)
|
||||
#define __NR_utimensat_time64 (__NR_Linux + 412)
|
||||
#define __NR_pselect6_time64 (__NR_Linux + 413)
|
||||
#define __NR_ppoll_time64 (__NR_Linux + 414)
|
||||
#define __NR_io_pgetevents_time64 (__NR_Linux + 416)
|
||||
#define __NR_recvmmsg_time64 (__NR_Linux + 417)
|
||||
#define __NR_mq_timedsend_time64 (__NR_Linux + 418)
|
||||
#define __NR_mq_timedreceive_time64 (__NR_Linux + 419)
|
||||
#define __NR_semtimedop_time64 (__NR_Linux + 420)
|
||||
#define __NR_rt_sigtimedwait_time64 (__NR_Linux + 421)
|
||||
#define __NR_futex_time64 (__NR_Linux + 422)
|
||||
#define __NR_sched_rr_get_interval_time64 (__NR_Linux + 423)
|
||||
#define __NR_pidfd_send_signal (__NR_Linux + 424)
|
||||
#define __NR_io_uring_setup (__NR_Linux + 425)
|
||||
#define __NR_io_uring_enter (__NR_Linux + 426)
|
||||
#define __NR_io_uring_register (__NR_Linux + 427)
|
||||
#define __NR_open_tree (__NR_Linux + 428)
|
||||
#define __NR_move_mount (__NR_Linux + 429)
|
||||
#define __NR_fsopen (__NR_Linux + 430)
|
||||
#define __NR_fsconfig (__NR_Linux + 431)
|
||||
#define __NR_fsmount (__NR_Linux + 432)
|
||||
#define __NR_fspick (__NR_Linux + 433)
|
||||
#define __NR_pidfd_open (__NR_Linux + 434)
|
||||
#define __NR_clone3 (__NR_Linux + 435)
|
||||
#define __NR_openat2 (__NR_Linux + 437)
|
||||
#define __NR_pidfd_getfd (__NR_Linux + 438)
|
||||
|
||||
#elif _MIPS_SIM == _ABI64
|
||||
|
||||
/*
|
||||
* Linux 64-bit syscalls are in the range from 5000 to 5999.
|
||||
*/
|
||||
#define __NR_Linux 5000
|
||||
#define __NR_read (__NR_Linux + 0)
|
||||
#define __NR_write (__NR_Linux + 1)
|
||||
#define __NR_open (__NR_Linux + 2)
|
||||
#define __NR_close (__NR_Linux + 3)
|
||||
#define __NR_stat (__NR_Linux + 4)
|
||||
#define __NR_fstat (__NR_Linux + 5)
|
||||
#define __NR_lstat (__NR_Linux + 6)
|
||||
#define __NR_poll (__NR_Linux + 7)
|
||||
#define __NR_lseek (__NR_Linux + 8)
|
||||
#define __NR_mmap (__NR_Linux + 9)
|
||||
#define __NR_mprotect (__NR_Linux + 10)
|
||||
#define __NR_munmap (__NR_Linux + 11)
|
||||
#define __NR_brk (__NR_Linux + 12)
|
||||
#define __NR_rt_sigaction (__NR_Linux + 13)
|
||||
#define __NR_rt_sigprocmask (__NR_Linux + 14)
|
||||
#define __NR_ioctl (__NR_Linux + 15)
|
||||
#define __NR_pread64 (__NR_Linux + 16)
|
||||
#define __NR_pwrite64 (__NR_Linux + 17)
|
||||
#define __NR_readv (__NR_Linux + 18)
|
||||
#define __NR_writev (__NR_Linux + 19)
|
||||
#define __NR_access (__NR_Linux + 20)
|
||||
#define __NR_pipe (__NR_Linux + 21)
|
||||
#define __NR__newselect (__NR_Linux + 22)
|
||||
#define __NR_sched_yield (__NR_Linux + 23)
|
||||
#define __NR_mremap (__NR_Linux + 24)
|
||||
#define __NR_msync (__NR_Linux + 25)
|
||||
#define __NR_mincore (__NR_Linux + 26)
|
||||
#define __NR_madvise (__NR_Linux + 27)
|
||||
#define __NR_shmget (__NR_Linux + 28)
|
||||
#define __NR_shmat (__NR_Linux + 29)
|
||||
#define __NR_shmctl (__NR_Linux + 30)
|
||||
#define __NR_dup (__NR_Linux + 31)
|
||||
#define __NR_dup2 (__NR_Linux + 32)
|
||||
#define __NR_pause (__NR_Linux + 33)
|
||||
#define __NR_nanosleep (__NR_Linux + 34)
|
||||
#define __NR_getitimer (__NR_Linux + 35)
|
||||
#define __NR_setitimer (__NR_Linux + 36)
|
||||
#define __NR_alarm (__NR_Linux + 37)
|
||||
#define __NR_getpid (__NR_Linux + 38)
|
||||
#define __NR_sendfile (__NR_Linux + 39)
|
||||
#define __NR_socket (__NR_Linux + 40)
|
||||
#define __NR_connect (__NR_Linux + 41)
|
||||
#define __NR_accept (__NR_Linux + 42)
|
||||
#define __NR_sendto (__NR_Linux + 43)
|
||||
#define __NR_recvfrom (__NR_Linux + 44)
|
||||
#define __NR_sendmsg (__NR_Linux + 45)
|
||||
#define __NR_recvmsg (__NR_Linux + 46)
|
||||
#define __NR_shutdown (__NR_Linux + 47)
|
||||
#define __NR_bind (__NR_Linux + 48)
|
||||
#define __NR_listen (__NR_Linux + 49)
|
||||
#define __NR_getsockname (__NR_Linux + 50)
|
||||
#define __NR_getpeername (__NR_Linux + 51)
|
||||
#define __NR_socketpair (__NR_Linux + 52)
|
||||
#define __NR_setsockopt (__NR_Linux + 53)
|
||||
#define __NR_getsockopt (__NR_Linux + 54)
|
||||
#define __NR_clone (__NR_Linux + 55)
|
||||
#define __NR_fork (__NR_Linux + 56)
|
||||
#define __NR_execve (__NR_Linux + 57)
|
||||
#define __NR_exit (__NR_Linux + 58)
|
||||
#define __NR_wait4 (__NR_Linux + 59)
|
||||
#define __NR_kill (__NR_Linux + 60)
|
||||
#define __NR_uname (__NR_Linux + 61)
|
||||
#define __NR_semget (__NR_Linux + 62)
|
||||
#define __NR_semop (__NR_Linux + 63)
|
||||
#define __NR_semctl (__NR_Linux + 64)
|
||||
#define __NR_shmdt (__NR_Linux + 65)
|
||||
#define __NR_msgget (__NR_Linux + 66)
|
||||
#define __NR_msgsnd (__NR_Linux + 67)
|
||||
#define __NR_msgrcv (__NR_Linux + 68)
|
||||
#define __NR_msgctl (__NR_Linux + 69)
|
||||
#define __NR_fcntl (__NR_Linux + 70)
|
||||
#define __NR_flock (__NR_Linux + 71)
|
||||
#define __NR_fsync (__NR_Linux + 72)
|
||||
#define __NR_fdatasync (__NR_Linux + 73)
|
||||
#define __NR_truncate (__NR_Linux + 74)
|
||||
#define __NR_ftruncate (__NR_Linux + 75)
|
||||
#define __NR_getdents (__NR_Linux + 76)
|
||||
#define __NR_getcwd (__NR_Linux + 77)
|
||||
#define __NR_chdir (__NR_Linux + 78)
|
||||
#define __NR_fchdir (__NR_Linux + 79)
|
||||
#define __NR_rename (__NR_Linux + 80)
|
||||
#define __NR_mkdir (__NR_Linux + 81)
|
||||
#define __NR_rmdir (__NR_Linux + 82)
|
||||
#define __NR_creat (__NR_Linux + 83)
|
||||
#define __NR_link (__NR_Linux + 84)
|
||||
#define __NR_unlink (__NR_Linux + 85)
|
||||
#define __NR_symlink (__NR_Linux + 86)
|
||||
#define __NR_readlink (__NR_Linux + 87)
|
||||
#define __NR_chmod (__NR_Linux + 88)
|
||||
#define __NR_fchmod (__NR_Linux + 89)
|
||||
#define __NR_chown (__NR_Linux + 90)
|
||||
#define __NR_fchown (__NR_Linux + 91)
|
||||
#define __NR_lchown (__NR_Linux + 92)
|
||||
#define __NR_umask (__NR_Linux + 93)
|
||||
#define __NR_gettimeofday (__NR_Linux + 94)
|
||||
#define __NR_getrlimit (__NR_Linux + 95)
|
||||
#define __NR_getrusage (__NR_Linux + 96)
|
||||
#define __NR_sysinfo (__NR_Linux + 97)
|
||||
#define __NR_times (__NR_Linux + 98)
|
||||
#define __NR_ptrace (__NR_Linux + 99)
|
||||
#define __NR_getuid (__NR_Linux + 100)
|
||||
#define __NR_syslog (__NR_Linux + 101)
|
||||
#define __NR_getgid (__NR_Linux + 102)
|
||||
#define __NR_setuid (__NR_Linux + 103)
|
||||
#define __NR_setgid (__NR_Linux + 104)
|
||||
#define __NR_geteuid (__NR_Linux + 105)
|
||||
#define __NR_getegid (__NR_Linux + 106)
|
||||
#define __NR_setpgid (__NR_Linux + 107)
|
||||
#define __NR_getppid (__NR_Linux + 108)
|
||||
#define __NR_getpgrp (__NR_Linux + 109)
|
||||
#define __NR_setsid (__NR_Linux + 110)
|
||||
#define __NR_setreuid (__NR_Linux + 111)
|
||||
#define __NR_setregid (__NR_Linux + 112)
|
||||
#define __NR_getgroups (__NR_Linux + 113)
|
||||
#define __NR_setgroups (__NR_Linux + 114)
|
||||
#define __NR_setresuid (__NR_Linux + 115)
|
||||
#define __NR_getresuid (__NR_Linux + 116)
|
||||
#define __NR_setresgid (__NR_Linux + 117)
|
||||
#define __NR_getresgid (__NR_Linux + 118)
|
||||
#define __NR_getpgid (__NR_Linux + 119)
|
||||
#define __NR_setfsuid (__NR_Linux + 120)
|
||||
#define __NR_setfsgid (__NR_Linux + 121)
|
||||
#define __NR_getsid (__NR_Linux + 122)
|
||||
#define __NR_capget (__NR_Linux + 123)
|
||||
#define __NR_capset (__NR_Linux + 124)
|
||||
#define __NR_rt_sigpending (__NR_Linux + 125)
|
||||
#define __NR_rt_sigtimedwait (__NR_Linux + 126)
|
||||
#define __NR_rt_sigqueueinfo (__NR_Linux + 127)
|
||||
#define __NR_rt_sigsuspend (__NR_Linux + 128)
|
||||
#define __NR_sigaltstack (__NR_Linux + 129)
|
||||
#define __NR_utime (__NR_Linux + 130)
|
||||
#define __NR_mknod (__NR_Linux + 131)
|
||||
#define __NR_personality (__NR_Linux + 132)
|
||||
#define __NR_ustat (__NR_Linux + 133)
|
||||
#define __NR_statfs (__NR_Linux + 134)
|
||||
#define __NR_fstatfs (__NR_Linux + 135)
|
||||
#define __NR_sysfs (__NR_Linux + 136)
|
||||
#define __NR_getpriority (__NR_Linux + 137)
|
||||
#define __NR_setpriority (__NR_Linux + 138)
|
||||
#define __NR_sched_setparam (__NR_Linux + 139)
|
||||
#define __NR_sched_getparam (__NR_Linux + 140)
|
||||
#define __NR_sched_setscheduler (__NR_Linux + 141)
|
||||
#define __NR_sched_getscheduler (__NR_Linux + 142)
|
||||
#define __NR_sched_get_priority_max (__NR_Linux + 143)
|
||||
#define __NR_sched_get_priority_min (__NR_Linux + 144)
|
||||
#define __NR_sched_rr_get_interval (__NR_Linux + 145)
|
||||
#define __NR_mlock (__NR_Linux + 146)
|
||||
#define __NR_munlock (__NR_Linux + 147)
|
||||
#define __NR_mlockall (__NR_Linux + 148)
|
||||
#define __NR_munlockall (__NR_Linux + 149)
|
||||
#define __NR_vhangup (__NR_Linux + 150)
|
||||
#define __NR_pivot_root (__NR_Linux + 151)
|
||||
#define __NR__sysctl (__NR_Linux + 152)
|
||||
#define __NR_prctl (__NR_Linux + 153)
|
||||
#define __NR_adjtimex (__NR_Linux + 154)
|
||||
#define __NR_setrlimit (__NR_Linux + 155)
|
||||
#define __NR_chroot (__NR_Linux + 156)
|
||||
#define __NR_sync (__NR_Linux + 157)
|
||||
#define __NR_acct (__NR_Linux + 158)
|
||||
#define __NR_settimeofday (__NR_Linux + 159)
|
||||
#define __NR_mount (__NR_Linux + 160)
|
||||
#define __NR_umount2 (__NR_Linux + 161)
|
||||
#define __NR_swapon (__NR_Linux + 162)
|
||||
#define __NR_swapoff (__NR_Linux + 163)
|
||||
#define __NR_reboot (__NR_Linux + 164)
|
||||
#define __NR_sethostname (__NR_Linux + 165)
|
||||
#define __NR_setdomainname (__NR_Linux + 166)
|
||||
#define __NR_create_module (__NR_Linux + 167)
|
||||
#define __NR_init_module (__NR_Linux + 168)
|
||||
#define __NR_delete_module (__NR_Linux + 169)
|
||||
#define __NR_get_kernel_syms (__NR_Linux + 170)
|
||||
#define __NR_query_module (__NR_Linux + 171)
|
||||
#define __NR_quotactl (__NR_Linux + 172)
|
||||
#define __NR_nfsservctl (__NR_Linux + 173)
|
||||
#define __NR_getpmsg (__NR_Linux + 174)
|
||||
#define __NR_putpmsg (__NR_Linux + 175)
|
||||
#define __NR_afs_syscall (__NR_Linux + 176)
|
||||
#define __NR_reserved177 (__NR_Linux + 177)
|
||||
#define __NR_gettid (__NR_Linux + 178)
|
||||
#define __NR_readahead (__NR_Linux + 179)
|
||||
#define __NR_setxattr (__NR_Linux + 180)
|
||||
#define __NR_lsetxattr (__NR_Linux + 181)
|
||||
#define __NR_fsetxattr (__NR_Linux + 182)
|
||||
#define __NR_getxattr (__NR_Linux + 183)
|
||||
#define __NR_lgetxattr (__NR_Linux + 184)
|
||||
#define __NR_fgetxattr (__NR_Linux + 185)
|
||||
#define __NR_listxattr (__NR_Linux + 186)
|
||||
#define __NR_llistxattr (__NR_Linux + 187)
|
||||
#define __NR_flistxattr (__NR_Linux + 188)
|
||||
#define __NR_removexattr (__NR_Linux + 189)
|
||||
#define __NR_lremovexattr (__NR_Linux + 190)
|
||||
#define __NR_fremovexattr (__NR_Linux + 191)
|
||||
#define __NR_tkill (__NR_Linux + 192)
|
||||
#define __NR_reserved193 (__NR_Linux + 193)
|
||||
#define __NR_futex (__NR_Linux + 194)
|
||||
#define __NR_sched_setaffinity (__NR_Linux + 195)
|
||||
#define __NR_sched_getaffinity (__NR_Linux + 196)
|
||||
#define __NR_cacheflush (__NR_Linux + 197)
|
||||
#define __NR_cachectl (__NR_Linux + 198)
|
||||
#define __NR_sysmips (__NR_Linux + 199)
|
||||
#define __NR_io_setup (__NR_Linux + 200)
|
||||
#define __NR_io_destroy (__NR_Linux + 201)
|
||||
#define __NR_io_getevents (__NR_Linux + 202)
|
||||
#define __NR_io_submit (__NR_Linux + 203)
|
||||
#define __NR_io_cancel (__NR_Linux + 204)
|
||||
#define __NR_exit_group (__NR_Linux + 205)
|
||||
#define __NR_lookup_dcookie (__NR_Linux + 206)
|
||||
#define __NR_epoll_create (__NR_Linux + 207)
|
||||
#define __NR_epoll_ctl (__NR_Linux + 208)
|
||||
#define __NR_epoll_wait (__NR_Linux + 209)
|
||||
#define __NR_remap_file_pages (__NR_Linux + 210)
|
||||
#define __NR_rt_sigreturn (__NR_Linux + 211)
|
||||
#define __NR_set_tid_address (__NR_Linux + 212)
|
||||
#define __NR_restart_syscall (__NR_Linux + 213)
|
||||
#define __NR_semtimedop (__NR_Linux + 214)
|
||||
#define __NR_fadvise64 (__NR_Linux + 215)
|
||||
#define __NR_timer_create (__NR_Linux + 216)
|
||||
#define __NR_timer_settime (__NR_Linux + 217)
|
||||
#define __NR_timer_gettime (__NR_Linux + 218)
|
||||
#define __NR_timer_getoverrun (__NR_Linux + 219)
|
||||
#define __NR_timer_delete (__NR_Linux + 220)
|
||||
#define __NR_clock_settime (__NR_Linux + 221)
|
||||
#define __NR_clock_gettime (__NR_Linux + 222)
|
||||
#define __NR_clock_getres (__NR_Linux + 223)
|
||||
#define __NR_clock_nanosleep (__NR_Linux + 224)
|
||||
#define __NR_tgkill (__NR_Linux + 225)
|
||||
#define __NR_utimes (__NR_Linux + 226)
|
||||
#define __NR_mbind (__NR_Linux + 227)
|
||||
#define __NR_get_mempolicy (__NR_Linux + 228)
|
||||
#define __NR_set_mempolicy (__NR_Linux + 229)
|
||||
#define __NR_mq_open (__NR_Linux + 230)
|
||||
#define __NR_mq_unlink (__NR_Linux + 231)
|
||||
#define __NR_mq_timedsend (__NR_Linux + 232)
|
||||
#define __NR_mq_timedreceive (__NR_Linux + 233)
|
||||
#define __NR_mq_notify (__NR_Linux + 234)
|
||||
#define __NR_mq_getsetattr (__NR_Linux + 235)
|
||||
#define __NR_vserver (__NR_Linux + 236)
|
||||
#define __NR_waitid (__NR_Linux + 237)
|
||||
/* #define __NR_sys_setaltroot (__NR_Linux + 238) */
|
||||
#define __NR_add_key (__NR_Linux + 239)
|
||||
#define __NR_request_key (__NR_Linux + 240)
|
||||
#define __NR_keyctl (__NR_Linux + 241)
|
||||
#define __NR_set_thread_area (__NR_Linux + 242)
|
||||
#define __NR_inotify_init (__NR_Linux + 243)
|
||||
#define __NR_inotify_add_watch (__NR_Linux + 244)
|
||||
#define __NR_inotify_rm_watch (__NR_Linux + 245)
|
||||
#define __NR_migrate_pages (__NR_Linux + 246)
|
||||
#define __NR_openat (__NR_Linux + 247)
|
||||
#define __NR_mkdirat (__NR_Linux + 248)
|
||||
#define __NR_mknodat (__NR_Linux + 249)
|
||||
#define __NR_fchownat (__NR_Linux + 250)
|
||||
#define __NR_futimesat (__NR_Linux + 251)
|
||||
#define __NR_newfstatat (__NR_Linux + 252)
|
||||
#define __NR_unlinkat (__NR_Linux + 253)
|
||||
#define __NR_renameat (__NR_Linux + 254)
|
||||
#define __NR_linkat (__NR_Linux + 255)
|
||||
#define __NR_symlinkat (__NR_Linux + 256)
|
||||
#define __NR_readlinkat (__NR_Linux + 257)
|
||||
#define __NR_fchmodat (__NR_Linux + 258)
|
||||
#define __NR_faccessat (__NR_Linux + 259)
|
||||
#define __NR_pselect6 (__NR_Linux + 260)
|
||||
#define __NR_ppoll (__NR_Linux + 261)
|
||||
#define __NR_unshare (__NR_Linux + 262)
|
||||
#define __NR_splice (__NR_Linux + 263)
|
||||
#define __NR_sync_file_range (__NR_Linux + 264)
|
||||
#define __NR_tee (__NR_Linux + 265)
|
||||
#define __NR_vmsplice (__NR_Linux + 266)
|
||||
#define __NR_move_pages (__NR_Linux + 267)
|
||||
#define __NR_set_robust_list (__NR_Linux + 268)
|
||||
#define __NR_get_robust_list (__NR_Linux + 269)
|
||||
#define __NR_kexec_load (__NR_Linux + 270)
|
||||
#define __NR_getcpu (__NR_Linux + 271)
|
||||
#define __NR_epoll_pwait (__NR_Linux + 272)
|
||||
#define __NR_ioprio_set (__NR_Linux + 273)
|
||||
#define __NR_ioprio_get (__NR_Linux + 274)
|
||||
#define __NR_utimensat (__NR_Linux + 275)
|
||||
#define __NR_signalfd (__NR_Linux + 276)
|
||||
#define __NR_timerfd (__NR_Linux + 277)
|
||||
#define __NR_eventfd (__NR_Linux + 278)
|
||||
#define __NR_fallocate (__NR_Linux + 279)
|
||||
#define __NR_timerfd_create (__NR_Linux + 280)
|
||||
#define __NR_timerfd_gettime (__NR_Linux + 281)
|
||||
#define __NR_timerfd_settime (__NR_Linux + 282)
|
||||
#define __NR_signalfd4 (__NR_Linux + 283)
|
||||
#define __NR_eventfd2 (__NR_Linux + 284)
|
||||
#define __NR_epoll_create1 (__NR_Linux + 285)
|
||||
#define __NR_dup3 (__NR_Linux + 286)
|
||||
#define __NR_pipe2 (__NR_Linux + 287)
|
||||
#define __NR_inotify_init1 (__NR_Linux + 288)
|
||||
#define __NR_preadv (__NR_Linux + 289)
|
||||
#define __NR_pwritev (__NR_Linux + 290)
|
||||
#define __NR_rt_tgsigqueueinfo (__NR_Linux + 291)
|
||||
#define __NR_perf_event_open (__NR_Linux + 292)
|
||||
#define __NR_accept4 (__NR_Linux + 293)
|
||||
#define __NR_recvmmsg (__NR_Linux + 294)
|
||||
#define __NR_fanotify_init (__NR_Linux + 295)
|
||||
#define __NR_fanotify_mark (__NR_Linux + 296)
|
||||
#define __NR_prlimit64 (__NR_Linux + 297)
|
||||
#define __NR_name_to_handle_at (__NR_Linux + 298)
|
||||
#define __NR_open_by_handle_at (__NR_Linux + 299)
|
||||
#define __NR_clock_adjtime (__NR_Linux + 300)
|
||||
#define __NR_syncfs (__NR_Linux + 301)
|
||||
#define __NR_sendmmsg (__NR_Linux + 302)
|
||||
#define __NR_setns (__NR_Linux + 303)
|
||||
#define __NR_process_vm_readv (__NR_Linux + 304)
|
||||
#define __NR_process_vm_writev (__NR_Linux + 305)
|
||||
#define __NR_kcmp (__NR_Linux + 306)
|
||||
#define __NR_finit_module (__NR_Linux + 307)
|
||||
#define __NR_getdents64 (__NR_Linux + 308)
|
||||
#define __NR_sched_setattr (__NR_Linux + 309)
|
||||
#define __NR_sched_getattr (__NR_Linux + 310)
|
||||
#define __NR_renameat2 (__NR_Linux + 311)
|
||||
#define __NR_seccomp (__NR_Linux + 312)
|
||||
#define __NR_getrandom (__NR_Linux + 313)
|
||||
#define __NR_memfd_create (__NR_Linux + 314)
|
||||
#define __NR_bpf (__NR_Linux + 315)
|
||||
#define __NR_execveat (__NR_Linux + 316)
|
||||
#define __NR_userfaultfd (__NR_Linux + 317)
|
||||
#define __NR_membarrier (__NR_Linux + 318)
|
||||
#define __NR_mlock2 (__NR_Linux + 319)
|
||||
#define __NR_copy_file_range (__NR_Linux + 320)
|
||||
#define __NR_preadv2 (__NR_Linux + 321)
|
||||
#define __NR_pwritev2 (__NR_Linux + 322)
|
||||
#define __NR_pkey_mprotect (__NR_Linux + 323)
|
||||
#define __NR_pkey_alloc (__NR_Linux + 324)
|
||||
#define __NR_pkey_free (__NR_Linux + 325)
|
||||
#define __NR_statx (__NR_Linux + 326)
|
||||
#define __NR_rseq (__NR_Linux + 327)
|
||||
#define __NR_io_pgetevents (__NR_Linux + 328)
|
||||
#define __NR_pidfd_send_signal (__NR_Linux + 424)
|
||||
#define __NR_io_uring_setup (__NR_Linux + 425)
|
||||
#define __NR_io_uring_enter (__NR_Linux + 426)
|
||||
#define __NR_io_uring_register (__NR_Linux + 427)
|
||||
#define __NR_open_tree (__NR_Linux + 428)
|
||||
#define __NR_move_mount (__NR_Linux + 429)
|
||||
#define __NR_fsopen (__NR_Linux + 430)
|
||||
#define __NR_fsconfig (__NR_Linux + 431)
|
||||
#define __NR_fsmount (__NR_Linux + 432)
|
||||
#define __NR_fspick (__NR_Linux + 433)
|
||||
#define __NR_pidfd_open (__NR_Linux + 434)
|
||||
#define __NR_clone3 (__NR_Linux + 435)
|
||||
#define __NR_openat2 (__NR_Linux + 437)
|
||||
#define __NR_pidfd_getfd (__NR_Linux + 438)
|
||||
|
||||
#else
|
||||
#error "dietlibc not ported to your MIPS ABI yet."
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#include "mips-asm.h"
|
||||
|
||||
#define syscall_weak(name,wsym,sym) \
|
||||
.text; \
|
||||
@@ -337,7 +785,7 @@ wsym: ; \
|
||||
sym: \
|
||||
li $2,__NR_##name; \
|
||||
syscall; \
|
||||
la $25,__unified_syscall; \
|
||||
PTR_LA $25,__unified_syscall; \
|
||||
jr $25; \
|
||||
.end sym
|
||||
|
||||
@@ -348,7 +796,7 @@ sym: \
|
||||
sym: \
|
||||
li $2,__NR_##name; \
|
||||
syscall; \
|
||||
la $25,__unified_syscall; \
|
||||
PTR_LA $25,__unified_syscall; \
|
||||
jr $25; \
|
||||
.end sym
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
#include "../mips/syscalls.h"
|
||||
@@ -0,0 +1 @@
|
||||
#include "../mips/syscalls.h"
|
||||
@@ -12,319 +12,379 @@
|
||||
and implementation macros
|
||||
*/
|
||||
|
||||
#define __NR_Linux 0
|
||||
#define __NR_syscall (__NR_Linux + 0)
|
||||
#define __NR_exit (__NR_Linux + 1)
|
||||
#define __NR_fork (__NR_Linux + 2)
|
||||
#define __NR_read (__NR_Linux + 3)
|
||||
#define __NR_write (__NR_Linux + 4)
|
||||
#define __NR_open (__NR_Linux + 5)
|
||||
#define __NR_close (__NR_Linux + 6)
|
||||
#define __NR_waitpid (__NR_Linux + 7)
|
||||
#define __NR_creat (__NR_Linux + 8)
|
||||
#define __NR_link (__NR_Linux + 9)
|
||||
#define __NR_unlink (__NR_Linux + 10)
|
||||
#define __NR_execve (__NR_Linux + 11)
|
||||
#define __NR_chdir (__NR_Linux + 12)
|
||||
#define __NR_time (__NR_Linux + 13)
|
||||
#define __NR_mknod (__NR_Linux + 14)
|
||||
#define __NR_chmod (__NR_Linux + 15)
|
||||
#define __NR_lchown (__NR_Linux + 16)
|
||||
#define __NR_socket (__NR_Linux + 17)
|
||||
#define __NR_stat (__NR_Linux + 18)
|
||||
#define __NR_lseek (__NR_Linux + 19)
|
||||
#define __NR_getpid (__NR_Linux + 20)
|
||||
#define __NR_mount (__NR_Linux + 21)
|
||||
#define __NR_bind (__NR_Linux + 22)
|
||||
#define __NR_setuid (__NR_Linux + 23)
|
||||
#define __NR_getuid (__NR_Linux + 24)
|
||||
#define __NR_stime (__NR_Linux + 25)
|
||||
#define __NR_ptrace (__NR_Linux + 26)
|
||||
#define __NR_alarm (__NR_Linux + 27)
|
||||
#define __NR_fstat (__NR_Linux + 28)
|
||||
#define __NR_pause (__NR_Linux + 29)
|
||||
#define __NR_utime (__NR_Linux + 30)
|
||||
#define __NR_connect (__NR_Linux + 31)
|
||||
#define __NR_listen (__NR_Linux + 32)
|
||||
#define __NR_access (__NR_Linux + 33)
|
||||
#define __NR_nice (__NR_Linux + 34)
|
||||
#define __NR_accept (__NR_Linux + 35)
|
||||
#define __NR_sync (__NR_Linux + 36)
|
||||
#define __NR_kill (__NR_Linux + 37)
|
||||
#define __NR_rename (__NR_Linux + 38)
|
||||
#define __NR_mkdir (__NR_Linux + 39)
|
||||
#define __NR_rmdir (__NR_Linux + 40)
|
||||
#define __NR_dup (__NR_Linux + 41)
|
||||
#define __NR_pipe (__NR_Linux + 42)
|
||||
#define __NR_times (__NR_Linux + 43)
|
||||
#define __NR_getsockname (__NR_Linux + 44)
|
||||
#define __NR_brk (__NR_Linux + 45)
|
||||
#define __NR_setgid (__NR_Linux + 46)
|
||||
#define __NR_getgid (__NR_Linux + 47)
|
||||
#define __NR_signal (__NR_Linux + 48)
|
||||
#define __NR_geteuid (__NR_Linux + 49)
|
||||
#define __NR_getegid (__NR_Linux + 50)
|
||||
#define __NR_acct (__NR_Linux + 51)
|
||||
#define __NR_umount2 (__NR_Linux + 52)
|
||||
#define __NR_getpeername (__NR_Linux + 53)
|
||||
#define __NR_ioctl (__NR_Linux + 54)
|
||||
#define __NR_fcntl (__NR_Linux + 55)
|
||||
#define __NR_socketpair (__NR_Linux + 56)
|
||||
#define __NR_setpgid (__NR_Linux + 57)
|
||||
#define __NR_send (__NR_Linux + 58)
|
||||
#define __NR_uname (__NR_Linux + 59)
|
||||
#define __NR_umask (__NR_Linux + 60)
|
||||
#define __NR_chroot (__NR_Linux + 61)
|
||||
#define __NR_ustat (__NR_Linux + 62)
|
||||
#define __NR_dup2 (__NR_Linux + 63)
|
||||
#define __NR_getppid (__NR_Linux + 64)
|
||||
#define __NR_getpgrp (__NR_Linux + 65)
|
||||
#define __NR_setsid (__NR_Linux + 66)
|
||||
#define __NR_pivot_root (__NR_Linux + 67)
|
||||
#define __NR_sgetmask (__NR_Linux + 68)
|
||||
#define __NR_ssetmask (__NR_Linux + 69)
|
||||
#define __NR_setreuid (__NR_Linux + 70)
|
||||
#define __NR_setregid (__NR_Linux + 71)
|
||||
#define __NR_mincore (__NR_Linux + 72)
|
||||
#define __NR_sigpending (__NR_Linux + 73)
|
||||
#define __NR_sethostname (__NR_Linux + 74)
|
||||
#define __NR_setrlimit (__NR_Linux + 75)
|
||||
#define __NR_getrlimit (__NR_Linux + 76)
|
||||
#define __NR_getrusage (__NR_Linux + 77)
|
||||
#define __NR_gettimeofday (__NR_Linux + 78)
|
||||
#define __NR_settimeofday (__NR_Linux + 79)
|
||||
#define __NR_getgroups (__NR_Linux + 80)
|
||||
#define __NR_setgroups (__NR_Linux + 81)
|
||||
#define __NR_sendto (__NR_Linux + 82)
|
||||
#define __NR_symlink (__NR_Linux + 83)
|
||||
#define __NR_lstat (__NR_Linux + 84)
|
||||
#define __NR_readlink (__NR_Linux + 85)
|
||||
#define __NR_uselib (__NR_Linux + 86)
|
||||
#define __NR_swapon (__NR_Linux + 87)
|
||||
#define __NR_reboot (__NR_Linux + 88)
|
||||
#define __NR_mmap2 (__NR_Linux + 89)
|
||||
#define __NR_mmap (__NR_Linux + 90)
|
||||
#define __NR_munmap (__NR_Linux + 91)
|
||||
#define __NR_truncate (__NR_Linux + 92)
|
||||
#define __NR_ftruncate (__NR_Linux + 93)
|
||||
#define __NR_fchmod (__NR_Linux + 94)
|
||||
#define __NR_fchown (__NR_Linux + 95)
|
||||
#define __NR_getpriority (__NR_Linux + 96)
|
||||
#define __NR_setpriority (__NR_Linux + 97)
|
||||
#define __NR_recv (__NR_Linux + 98)
|
||||
#define __NR_statfs (__NR_Linux + 99)
|
||||
#define __NR_fstatfs (__NR_Linux + 100)
|
||||
#define __NR_stat64 (__NR_Linux + 101)
|
||||
/* #define __NR_socketcall (__NR_Linux + 102) */
|
||||
#define __NR_syslog (__NR_Linux + 103)
|
||||
#define __NR_setitimer (__NR_Linux + 104)
|
||||
#define __NR_getitimer (__NR_Linux + 105)
|
||||
#define __NR_capget (__NR_Linux + 106)
|
||||
#define __NR_capset (__NR_Linux + 107)
|
||||
#define __NR_pread (__NR_Linux + 108)
|
||||
#define __NR_pwrite (__NR_Linux + 109)
|
||||
#define __NR_getcwd (__NR_Linux + 110)
|
||||
#define __NR_vhangup (__NR_Linux + 111)
|
||||
#define __NR_fstat64 (__NR_Linux + 112)
|
||||
#define __NR_vfork (__NR_Linux + 113)
|
||||
#define __NR_wait4 (__NR_Linux + 114)
|
||||
#define __NR_swapoff (__NR_Linux + 115)
|
||||
#define __NR_sysinfo (__NR_Linux + 116)
|
||||
#define __NR_shutdown (__NR_Linux + 117)
|
||||
#define __NR_fsync (__NR_Linux + 118)
|
||||
#define __NR_madvise (__NR_Linux + 119)
|
||||
#define __NR_clone (__NR_Linux + 120)
|
||||
#define __NR_setdomainname (__NR_Linux + 121)
|
||||
#define __NR_sendfile (__NR_Linux + 122)
|
||||
#define __NR_recvfrom (__NR_Linux + 123)
|
||||
#define __NR_adjtimex (__NR_Linux + 124)
|
||||
#define __NR_mprotect (__NR_Linux + 125)
|
||||
#define __NR_sigprocmask (__NR_Linux + 126)
|
||||
#define __NR_create_module (__NR_Linux + 127)
|
||||
#define __NR_init_module (__NR_Linux + 128)
|
||||
#define __NR_delete_module (__NR_Linux + 129)
|
||||
#define __NR_get_kernel_syms (__NR_Linux + 130)
|
||||
#define __NR_quotactl (__NR_Linux + 131)
|
||||
#define __NR_getpgid (__NR_Linux + 132)
|
||||
#define __NR_fchdir (__NR_Linux + 133)
|
||||
#define __NR_bdflush (__NR_Linux + 134)
|
||||
#define __NR_sysfs (__NR_Linux + 135)
|
||||
#define __NR_personality (__NR_Linux + 136)
|
||||
#define __NR_afs_syscall (__NR_Linux + 137) /* Syscall for Andrew File System */
|
||||
#define __NR_setfsuid (__NR_Linux + 138)
|
||||
#define __NR_setfsgid (__NR_Linux + 139)
|
||||
#define __NR_llseek (__NR_Linux + 140)
|
||||
#define __NR_getdents (__NR_Linux + 141)
|
||||
#define __NR_select (__NR_Linux + 142)
|
||||
#define __NR__newselect (__NR_Linux + 142)
|
||||
#define __NR_flock (__NR_Linux + 143)
|
||||
#define __NR_msync (__NR_Linux + 144)
|
||||
#define __NR_readv (__NR_Linux + 145)
|
||||
#define __NR_writev (__NR_Linux + 146)
|
||||
#define __NR_getsid (__NR_Linux + 147)
|
||||
#define __NR_fdatasync (__NR_Linux + 148)
|
||||
#define __NR__sysctl (__NR_Linux + 149)
|
||||
#define __NR_mlock (__NR_Linux + 150)
|
||||
#define __NR_munlock (__NR_Linux + 151)
|
||||
#define __NR_mlockall (__NR_Linux + 152)
|
||||
#define __NR_munlockall (__NR_Linux + 153)
|
||||
#define __NR_sched_setparam (__NR_Linux + 154)
|
||||
#define __NR_sched_getparam (__NR_Linux + 155)
|
||||
#define __NR_sched_setscheduler (__NR_Linux + 156)
|
||||
#define __NR_sched_getscheduler (__NR_Linux + 157)
|
||||
#define __NR_sched_yield (__NR_Linux + 158)
|
||||
#define __NR_sched_get_priority_max (__NR_Linux + 159)
|
||||
#define __NR_sched_get_priority_min (__NR_Linux + 160)
|
||||
#define __NR_sched_rr_get_interval (__NR_Linux + 161)
|
||||
#define __NR_nanosleep (__NR_Linux + 162)
|
||||
#define __NR_mremap (__NR_Linux + 163)
|
||||
#define __NR_setresuid (__NR_Linux + 164)
|
||||
#define __NR_getresuid (__NR_Linux + 165)
|
||||
#define __NR_sigaltstack (__NR_Linux + 166)
|
||||
#define __NR_query_module (__NR_Linux + 167)
|
||||
#define __NR_poll (__NR_Linux + 168)
|
||||
#define __NR_nfsservctl (__NR_Linux + 169)
|
||||
#define __NR_setresgid (__NR_Linux + 170)
|
||||
#define __NR_getresgid (__NR_Linux + 171)
|
||||
#define __NR_prctl (__NR_Linux + 172)
|
||||
#define __NR_rt_sigreturn (__NR_Linux + 173)
|
||||
#define __NR_rt_sigaction (__NR_Linux + 174)
|
||||
#define __NR_rt_sigprocmask (__NR_Linux + 175)
|
||||
#define __NR_rt_sigpending (__NR_Linux + 176)
|
||||
#define __NR_rt_sigtimedwait (__NR_Linux + 177)
|
||||
#define __NR_rt_sigqueueinfo (__NR_Linux + 178)
|
||||
#define __NR_rt_sigsuspend (__NR_Linux + 179)
|
||||
#define __NR_chown (__NR_Linux + 180)
|
||||
#define __NR_setsockopt (__NR_Linux + 181)
|
||||
#define __NR_getsockopt (__NR_Linux + 182)
|
||||
#define __NR_sendmsg (__NR_Linux + 183)
|
||||
#define __NR_recvmsg (__NR_Linux + 184)
|
||||
#define __NR_semop (__NR_Linux + 185)
|
||||
#define __NR_semget (__NR_Linux + 186)
|
||||
#define __NR_semctl (__NR_Linux + 187)
|
||||
#define __NR_msgsnd (__NR_Linux + 188)
|
||||
#define __NR_msgrcv (__NR_Linux + 189)
|
||||
#define __NR_msgget (__NR_Linux + 190)
|
||||
#define __NR_msgctl (__NR_Linux + 191)
|
||||
#define __NR_shmat (__NR_Linux + 192)
|
||||
#define __NR_shmdt (__NR_Linux + 193)
|
||||
#define __NR_shmget (__NR_Linux + 194)
|
||||
#define __NR_shmctl (__NR_Linux + 195)
|
||||
#define __NR_getpmsg (__NR_Linux + 196)
|
||||
#define __NR_putpmsg (__NR_Linux + 197)
|
||||
#define __NR_lstat64 (__NR_Linux + 198)
|
||||
#define __NR_truncate64 (__NR_Linux + 199)
|
||||
#define __NR_ftruncate64 (__NR_Linux + 200)
|
||||
#define __NR_getdents64 (__NR_Linux + 201)
|
||||
#define __NR_fcntl64 (__NR_Linux + 202)
|
||||
#define __NR_attrctl (__NR_Linux + 203)
|
||||
#define __NR_acl_get (__NR_Linux + 204)
|
||||
#define __NR_acl_set (__NR_Linux + 205)
|
||||
#define __NR_gettid (__NR_Linux + 206)
|
||||
#define __NR_readahead (__NR_Linux + 207)
|
||||
#define __NR_tkill (__NR_Linux + 208)
|
||||
#define __NR_sendfile64 (__NR_Linux + 209)
|
||||
#define __NR_futex (__NR_Linux + 210)
|
||||
#define __NR_sched_setaffinity (__NR_Linux + 211)
|
||||
#define __NR_sched_getaffinity (__NR_Linux + 212)
|
||||
#define __NR_set_thread_area (__NR_Linux + 213)
|
||||
#define __NR_get_thread_area (__NR_Linux + 214)
|
||||
#define __NR_io_setup (__NR_Linux + 215)
|
||||
#define __NR_io_destroy (__NR_Linux + 216)
|
||||
#define __NR_io_getevents (__NR_Linux + 217)
|
||||
#define __NR_io_submit (__NR_Linux + 218)
|
||||
#define __NR_io_cancel (__NR_Linux + 219)
|
||||
#define __NR_alloc_hugepages (__NR_Linux + 220)
|
||||
#define __NR_free_hugepages (__NR_Linux + 221)
|
||||
#define __NR_exit_group (__NR_Linux + 222)
|
||||
#define __NR_lookup_dcookie (__NR_Linux + 223)
|
||||
#define __NR_epoll_create (__NR_Linux + 224)
|
||||
#define __NR_epoll_ctl (__NR_Linux + 225)
|
||||
#define __NR_epoll_wait (__NR_Linux + 226)
|
||||
#define __NR_remap_file_pages (__NR_Linux + 227)
|
||||
#define __NR_semtimedop (__NR_Linux + 228)
|
||||
#define __NR_mq_open (__NR_Linux + 229)
|
||||
#define __NR_mq_unlink (__NR_Linux + 230)
|
||||
#define __NR_mq_timedsend (__NR_Linux + 231)
|
||||
#define __NR_mq_timedreceive (__NR_Linux + 232)
|
||||
#define __NR_mq_notify (__NR_Linux + 233)
|
||||
#define __NR_mq_getsetattr (__NR_Linux + 234)
|
||||
#define __NR_waitid (__NR_Linux + 235)
|
||||
#define __NR_fadvise64_64 (__NR_Linux + 236)
|
||||
#define __NR_set_tid_address (__NR_Linux + 237)
|
||||
#define __NR_setxattr (__NR_Linux + 238)
|
||||
#define __NR_lsetxattr (__NR_Linux + 239)
|
||||
#define __NR_fsetxattr (__NR_Linux + 240)
|
||||
#define __NR_getxattr (__NR_Linux + 241)
|
||||
#define __NR_lgetxattr (__NR_Linux + 242)
|
||||
#define __NR_fgetxattr (__NR_Linux + 243)
|
||||
#define __NR_listxattr (__NR_Linux + 244)
|
||||
#define __NR_llistxattr (__NR_Linux + 245)
|
||||
#define __NR_flistxattr (__NR_Linux + 246)
|
||||
#define __NR_removexattr (__NR_Linux + 247)
|
||||
#define __NR_lremovexattr (__NR_Linux + 248)
|
||||
#define __NR_fremovexattr (__NR_Linux + 249)
|
||||
#define __NR_timer_create (__NR_Linux + 250)
|
||||
#define __NR_timer_settime (__NR_Linux + 251)
|
||||
#define __NR_timer_gettime (__NR_Linux + 252)
|
||||
#define __NR_timer_getoverrun (__NR_Linux + 253)
|
||||
#define __NR_timer_delete (__NR_Linux + 254)
|
||||
#define __NR_clock_settime (__NR_Linux + 255)
|
||||
#define __NR_clock_gettime (__NR_Linux + 256)
|
||||
#define __NR_clock_getres (__NR_Linux + 257)
|
||||
#define __NR_clock_nanosleep (__NR_Linux + 258)
|
||||
#define __NR_tgkill (__NR_Linux + 259)
|
||||
#define __NR_mbind (__NR_Linux + 260)
|
||||
#define __NR_get_mempolicy (__NR_Linux + 261)
|
||||
#define __NR_set_mempolicy (__NR_Linux + 262)
|
||||
#define __NR_vserver (__NR_Linux + 263)
|
||||
#define __NR_add_key (__NR_Linux + 264)
|
||||
#define __NR_request_key (__NR_Linux + 265)
|
||||
#define __NR_keyctl (__NR_Linux + 266)
|
||||
#define __NR_ioprio_set (__NR_Linux + 267)
|
||||
#define __NR_ioprio_get (__NR_Linux + 268)
|
||||
#define __NR_inotify_init (__NR_Linux + 269)
|
||||
#define __NR_inotify_add_watch (__NR_Linux + 270)
|
||||
#define __NR_inotify_rm_watch (__NR_Linux + 271)
|
||||
#define __NR_migrate_pages (__NR_Linux + 272)
|
||||
#define __NR_pselect6 (__NR_Linux + 273)
|
||||
#define __NR_ppoll (__NR_Linux + 274)
|
||||
#define __NR_openat (__NR_Linux + 275)
|
||||
#define __NR_mkdirat (__NR_Linux + 276)
|
||||
#define __NR_mknodat (__NR_Linux + 277)
|
||||
#define __NR_fchownat (__NR_Linux + 278)
|
||||
#define __NR_futimesat (__NR_Linux + 279)
|
||||
#define __NR_fstatat64 (__NR_Linux + 280)
|
||||
#define __NR_unlinkat (__NR_Linux + 281)
|
||||
#define __NR_renameat (__NR_Linux + 282)
|
||||
#define __NR_linkat (__NR_Linux + 283)
|
||||
#define __NR_symlinkat (__NR_Linux + 284)
|
||||
#define __NR_readlinkat (__NR_Linux + 285)
|
||||
#define __NR_fchmodat (__NR_Linux + 286)
|
||||
#define __NR_faccessat (__NR_Linux + 287)
|
||||
#define __NR_unshare (__NR_Linux + 288)
|
||||
#define __NR_set_robust_list (__NR_Linux + 289)
|
||||
#define __NR_get_robust_list (__NR_Linux + 290)
|
||||
#define __NR_splice (__NR_Linux + 291)
|
||||
#define __NR_sync_file_range (__NR_Linux + 292)
|
||||
#define __NR_tee (__NR_Linux + 293)
|
||||
#define __NR_vmsplice (__NR_Linux + 294)
|
||||
#define __NR_move_pages (__NR_Linux + 295)
|
||||
#define __NR_getcpu (__NR_Linux + 296)
|
||||
#define __NR_epoll_pwait (__NR_Linux + 297)
|
||||
#define __NR_statfs64 (__NR_Linux + 298)
|
||||
#define __NR_fstatfs64 (__NR_Linux + 299)
|
||||
#define __NR_kexec_load (__NR_Linux + 300)
|
||||
#define __NR_utimensat (__NR_Linux + 301)
|
||||
#define __NR_signalfd (__NR_Linux + 302)
|
||||
#define __NR_timerfd (__NR_Linux + 303)
|
||||
#define __NR_eventfd (__NR_Linux + 304)
|
||||
#define __NR_fallocate (__NR_Linux + 305)
|
||||
#define __NR_timerfd_create (__NR_Linux + 306)
|
||||
#define __NR_timerfd_settime (__NR_Linux + 307)
|
||||
#define __NR_timerfd_gettime (__NR_Linux + 308)
|
||||
|
||||
#define __NR_Linux_syscalls (__NR_fallocate + 1)
|
||||
#define __NR_restart_syscall 0
|
||||
#define __NR_exit 1
|
||||
#define __NR_fork 2
|
||||
#define __NR_read 3
|
||||
#define __NR_write 4
|
||||
#define __NR_open 5
|
||||
#define __NR_close 6
|
||||
#define __NR_waitpid 7
|
||||
#define __NR_creat 8
|
||||
#define __NR_link 9
|
||||
#define __NR_unlink 10
|
||||
#define __NR_execve 11
|
||||
#define __NR_chdir 12
|
||||
#define __NR_time 13
|
||||
#define __NR_mknod 14
|
||||
#define __NR_chmod 15
|
||||
#define __NR_lchown 16
|
||||
#define __NR_socket 17
|
||||
#define __NR_stat 18
|
||||
#define __NR_lseek 19
|
||||
#define __NR_getpid 20
|
||||
#define __NR_mount 21
|
||||
#define __NR_bind 22
|
||||
#define __NR_setuid 23
|
||||
#define __NR_getuid 24
|
||||
#define __NR_stime 25
|
||||
#define __NR_ptrace 26
|
||||
#define __NR_alarm 27
|
||||
#define __NR_fstat 28
|
||||
#define __NR_pause 29
|
||||
#define __NR_utime 30
|
||||
#define __NR_connect 31
|
||||
#define __NR_listen 32
|
||||
#define __NR_access 33
|
||||
#define __NR_nice 34
|
||||
#define __NR_accept 35
|
||||
#define __NR_sync 36
|
||||
#define __NR_kill 37
|
||||
#define __NR_rename 38
|
||||
#define __NR_mkdir 39
|
||||
#define __NR_rmdir 40
|
||||
#define __NR_dup 41
|
||||
#define __NR_pipe 42
|
||||
#define __NR_times 43
|
||||
#define __NR_getsockname 44
|
||||
#define __NR_brk 45
|
||||
#define __NR_setgid 46
|
||||
#define __NR_getgid 47
|
||||
#define __NR_signal 48
|
||||
#define __NR_geteuid 49
|
||||
#define __NR_getegid 50
|
||||
#define __NR_acct 51
|
||||
#define __NR_umount2 52
|
||||
#define __NR_getpeername 53
|
||||
#define __NR_ioctl 54
|
||||
#define __NR_fcntl 55
|
||||
#define __NR_socketpair 56
|
||||
#define __NR_setpgid 57
|
||||
#define __NR_send 58
|
||||
#define __NR_uname 59
|
||||
#define __NR_umask 60
|
||||
#define __NR_chroot 61
|
||||
#define __NR_ustat 62
|
||||
#define __NR_dup2 63
|
||||
#define __NR_getppid 64
|
||||
#define __NR_getpgrp 65
|
||||
#define __NR_setsid 66
|
||||
#define __NR_pivot_root 67
|
||||
#define __NR_sgetmask 68
|
||||
#define __NR_ssetmask 69
|
||||
#define __NR_setreuid 70
|
||||
#define __NR_setregid 71
|
||||
#define __NR_mincore 72
|
||||
#define __NR_sigpending 73
|
||||
#define __NR_sethostname 74
|
||||
#define __NR_setrlimit 75
|
||||
#define __NR_getrlimit 76
|
||||
#define __NR_getrusage 77
|
||||
#define __NR_gettimeofday 78
|
||||
#define __NR_settimeofday 79
|
||||
#define __NR_getgroups 80
|
||||
#define __NR_setgroups 81
|
||||
#define __NR_sendto 82
|
||||
#define __NR_symlink 83
|
||||
#define __NR_lstat 84
|
||||
#define __NR_readlink 85
|
||||
#define __NR_uselib 86
|
||||
#define __NR_swapon 87
|
||||
#define __NR_reboot 88
|
||||
#define __NR_mmap2 89
|
||||
#define __NR_mmap 90
|
||||
#define __NR_munmap 91
|
||||
#define __NR_truncate 92
|
||||
#define __NR_ftruncate 93
|
||||
#define __NR_fchmod 94
|
||||
#define __NR_fchown 95
|
||||
#define __NR_getpriority 96
|
||||
#define __NR_setpriority 97
|
||||
#define __NR_recv 98
|
||||
#define __NR_statfs 99
|
||||
#define __NR_fstatfs 100
|
||||
#define __NR_stat64 101
|
||||
#define __NR_syslog 103
|
||||
#define __NR_setitimer 104
|
||||
#define __NR_getitimer 105
|
||||
#define __NR_capget 106
|
||||
#define __NR_capset 107
|
||||
#define __NR_pread64 108
|
||||
#define __NR_pwrite64 109
|
||||
#define __NR_getcwd 110
|
||||
#define __NR_vhangup 111
|
||||
#define __NR_fstat64 112
|
||||
#define __NR_vfork 113
|
||||
#define __NR_wait4 114
|
||||
#define __NR_swapoff 115
|
||||
#define __NR_sysinfo 116
|
||||
#define __NR_shutdown 117
|
||||
#define __NR_fsync 118
|
||||
#define __NR_madvise 119
|
||||
#define __NR_clone 120
|
||||
#define __NR_setdomainname 121
|
||||
#define __NR_sendfile 122
|
||||
#define __NR_recvfrom 123
|
||||
#define __NR_adjtimex 124
|
||||
#define __NR_mprotect 125
|
||||
#define __NR_sigprocmask 126
|
||||
#define __NR_init_module 128
|
||||
#define __NR_delete_module 129
|
||||
#define __NR_quotactl 131
|
||||
#define __NR_getpgid 132
|
||||
#define __NR_fchdir 133
|
||||
#define __NR_bdflush 134
|
||||
#define __NR_sysfs 135
|
||||
#define __NR_personality 136
|
||||
#define __NR_setfsuid 138
|
||||
#define __NR_setfsgid 139
|
||||
#define __NR__llseek 140
|
||||
#define __NR_getdents 141
|
||||
#define __NR__newselect 142
|
||||
#define __NR_flock 143
|
||||
#define __NR_msync 144
|
||||
#define __NR_readv 145
|
||||
#define __NR_writev 146
|
||||
#define __NR_getsid 147
|
||||
#define __NR_fdatasync 148
|
||||
#define __NR__sysctl 149
|
||||
#define __NR_mlock 150
|
||||
#define __NR_munlock 151
|
||||
#define __NR_mlockall 152
|
||||
#define __NR_munlockall 153
|
||||
#define __NR_sched_setparam 154
|
||||
#define __NR_sched_getparam 155
|
||||
#define __NR_sched_setscheduler 156
|
||||
#define __NR_sched_getscheduler 157
|
||||
#define __NR_sched_yield 158
|
||||
#define __NR_sched_get_priority_max 159
|
||||
#define __NR_sched_get_priority_min 160
|
||||
#define __NR_sched_rr_get_interval 161
|
||||
#define __NR_nanosleep 162
|
||||
#define __NR_mremap 163
|
||||
#define __NR_setresuid 164
|
||||
#define __NR_getresuid 165
|
||||
#define __NR_sigaltstack 166
|
||||
#define __NR_poll 168
|
||||
#define __NR_setresgid 170
|
||||
#define __NR_getresgid 171
|
||||
#define __NR_prctl 172
|
||||
#define __NR_rt_sigreturn 173
|
||||
#define __NR_rt_sigaction 174
|
||||
#define __NR_rt_sigprocmask 175
|
||||
#define __NR_rt_sigpending 176
|
||||
#define __NR_rt_sigtimedwait 177
|
||||
#define __NR_rt_sigqueueinfo 178
|
||||
#define __NR_rt_sigsuspend 179
|
||||
#define __NR_chown 180
|
||||
#define __NR_setsockopt 181
|
||||
#define __NR_getsockopt 182
|
||||
#define __NR_sendmsg 183
|
||||
#define __NR_recvmsg 184
|
||||
#define __NR_semop 185
|
||||
#define __NR_semget 186
|
||||
#define __NR_semctl 187
|
||||
#define __NR_msgsnd 188
|
||||
#define __NR_msgrcv 189
|
||||
#define __NR_msgget 190
|
||||
#define __NR_msgctl 191
|
||||
#define __NR_shmat 192
|
||||
#define __NR_shmdt 193
|
||||
#define __NR_shmget 194
|
||||
#define __NR_shmctl 195
|
||||
#define __NR_lstat64 198
|
||||
#define __NR_truncate64 199
|
||||
#define __NR_ftruncate64 200
|
||||
#define __NR_getdents64 201
|
||||
#define __NR_fcntl64 202
|
||||
#define __NR_gettid 206
|
||||
#define __NR_readahead 207
|
||||
#define __NR_tkill 208
|
||||
#define __NR_sendfile64 209
|
||||
#define __NR_futex 210
|
||||
#define __NR_sched_setaffinity 211
|
||||
#define __NR_sched_getaffinity 212
|
||||
#define __NR_io_setup 215
|
||||
#define __NR_io_destroy 216
|
||||
#define __NR_io_getevents 217
|
||||
#define __NR_io_submit 218
|
||||
#define __NR_io_cancel 219
|
||||
#define __NR_exit_group 222
|
||||
#define __NR_lookup_dcookie 223
|
||||
#define __NR_epoll_create 224
|
||||
#define __NR_epoll_ctl 225
|
||||
#define __NR_epoll_wait 226
|
||||
#define __NR_remap_file_pages 227
|
||||
#define __NR_semtimedop 228
|
||||
#define __NR_mq_open 229
|
||||
#define __NR_mq_unlink 230
|
||||
#define __NR_mq_timedsend 231
|
||||
#define __NR_mq_timedreceive 232
|
||||
#define __NR_mq_notify 233
|
||||
#define __NR_mq_getsetattr 234
|
||||
#define __NR_waitid 235
|
||||
#define __NR_fadvise64_64 236
|
||||
#define __NR_set_tid_address 237
|
||||
#define __NR_setxattr 238
|
||||
#define __NR_lsetxattr 239
|
||||
#define __NR_fsetxattr 240
|
||||
#define __NR_getxattr 241
|
||||
#define __NR_lgetxattr 242
|
||||
#define __NR_fgetxattr 243
|
||||
#define __NR_listxattr 244
|
||||
#define __NR_llistxattr 245
|
||||
#define __NR_flistxattr 246
|
||||
#define __NR_removexattr 247
|
||||
#define __NR_lremovexattr 248
|
||||
#define __NR_fremovexattr 249
|
||||
#define __NR_timer_create 250
|
||||
#define __NR_timer_settime 251
|
||||
#define __NR_timer_gettime 252
|
||||
#define __NR_timer_getoverrun 253
|
||||
#define __NR_timer_delete 254
|
||||
#define __NR_clock_settime 255
|
||||
#define __NR_clock_gettime 256
|
||||
#define __NR_clock_getres 257
|
||||
#define __NR_clock_nanosleep 258
|
||||
#define __NR_tgkill 259
|
||||
#define __NR_mbind 260
|
||||
#define __NR_get_mempolicy 261
|
||||
#define __NR_set_mempolicy 262
|
||||
#define __NR_add_key 264
|
||||
#define __NR_request_key 265
|
||||
#define __NR_keyctl 266
|
||||
#define __NR_ioprio_set 267
|
||||
#define __NR_ioprio_get 268
|
||||
#define __NR_inotify_init 269
|
||||
#define __NR_inotify_add_watch 270
|
||||
#define __NR_inotify_rm_watch 271
|
||||
#define __NR_migrate_pages 272
|
||||
#define __NR_pselect6 273
|
||||
#define __NR_ppoll 274
|
||||
#define __NR_openat 275
|
||||
#define __NR_mkdirat 276
|
||||
#define __NR_mknodat 277
|
||||
#define __NR_fchownat 278
|
||||
#define __NR_futimesat 279
|
||||
#define __NR_fstatat64 280
|
||||
#define __NR_unlinkat 281
|
||||
#define __NR_renameat 282
|
||||
#define __NR_linkat 283
|
||||
#define __NR_symlinkat 284
|
||||
#define __NR_readlinkat 285
|
||||
#define __NR_fchmodat 286
|
||||
#define __NR_faccessat 287
|
||||
#define __NR_unshare 288
|
||||
#define __NR_set_robust_list 289
|
||||
#define __NR_get_robust_list 290
|
||||
#define __NR_splice 291
|
||||
#define __NR_sync_file_range 292
|
||||
#define __NR_tee 293
|
||||
#define __NR_vmsplice 294
|
||||
#define __NR_move_pages 295
|
||||
#define __NR_getcpu 296
|
||||
#define __NR_epoll_pwait 297
|
||||
#define __NR_statfs64 298
|
||||
#define __NR_fstatfs64 299
|
||||
#define __NR_kexec_load 300
|
||||
#define __NR_utimensat 301
|
||||
#define __NR_signalfd 302
|
||||
#define __NR_eventfd 304
|
||||
#define __NR_fallocate 305
|
||||
#define __NR_timerfd_create 306
|
||||
#define __NR_timerfd_settime 307
|
||||
#define __NR_timerfd_gettime 308
|
||||
#define __NR_signalfd4 309
|
||||
#define __NR_eventfd2 310
|
||||
#define __NR_epoll_create1 311
|
||||
#define __NR_dup3 312
|
||||
#define __NR_pipe2 313
|
||||
#define __NR_inotify_init1 314
|
||||
#define __NR_preadv 315
|
||||
#define __NR_pwritev 316
|
||||
#define __NR_rt_tgsigqueueinfo 317
|
||||
#define __NR_perf_event_open 318
|
||||
#define __NR_recvmmsg 319
|
||||
#define __NR_accept4 320
|
||||
#define __NR_prlimit64 321
|
||||
#define __NR_fanotify_init 322
|
||||
#define __NR_fanotify_mark 323
|
||||
#define __NR_clock_adjtime 324
|
||||
#define __NR_name_to_handle_at 325
|
||||
#define __NR_open_by_handle_at 326
|
||||
#define __NR_syncfs 327
|
||||
#define __NR_setns 328
|
||||
#define __NR_sendmmsg 329
|
||||
#define __NR_process_vm_readv 330
|
||||
#define __NR_process_vm_writev 331
|
||||
#define __NR_kcmp 332
|
||||
#define __NR_finit_module 333
|
||||
#define __NR_sched_setattr 334
|
||||
#define __NR_sched_getattr 335
|
||||
#define __NR_utimes 336
|
||||
#define __NR_renameat2 337
|
||||
#define __NR_seccomp 338
|
||||
#define __NR_getrandom 339
|
||||
#define __NR_memfd_create 340
|
||||
#define __NR_bpf 341
|
||||
#define __NR_execveat 342
|
||||
#define __NR_membarrier 343
|
||||
#define __NR_userfaultfd 344
|
||||
#define __NR_mlock2 345
|
||||
#define __NR_copy_file_range 346
|
||||
#define __NR_preadv2 347
|
||||
#define __NR_pwritev2 348
|
||||
#define __NR_statx 349
|
||||
#define __NR_io_pgetevents 350
|
||||
#define __NR_pkey_mprotect 351
|
||||
#define __NR_pkey_alloc 352
|
||||
#define __NR_pkey_free 353
|
||||
#define __NR_rseq 354
|
||||
#define __NR_kexec_file_load 355
|
||||
#define __NR_clock_gettime64 403
|
||||
#define __NR_clock_settime64 404
|
||||
#define __NR_clock_adjtime64 405
|
||||
#define __NR_clock_getres_time64 406
|
||||
#define __NR_clock_nanosleep_time64 407
|
||||
#define __NR_timer_gettime64 408
|
||||
#define __NR_timer_settime64 409
|
||||
#define __NR_timerfd_gettime64 410
|
||||
#define __NR_timerfd_settime64 411
|
||||
#define __NR_utimensat_time64 412
|
||||
#define __NR_pselect6_time64 413
|
||||
#define __NR_ppoll_time64 414
|
||||
#define __NR_io_pgetevents_time64 416
|
||||
#define __NR_recvmmsg_time64 417
|
||||
#define __NR_mq_timedsend_time64 418
|
||||
#define __NR_mq_timedreceive_time64 419
|
||||
#define __NR_semtimedop_time64 420
|
||||
#define __NR_rt_sigtimedwait_time64 421
|
||||
#define __NR_futex_time64 422
|
||||
#define __NR_sched_rr_get_interval_time64 423
|
||||
#define __NR_pidfd_send_signal 424
|
||||
#define __NR_io_uring_setup 425
|
||||
#define __NR_io_uring_enter 426
|
||||
#define __NR_io_uring_register 427
|
||||
#define __NR_open_tree 428
|
||||
#define __NR_move_mount 429
|
||||
#define __NR_fsopen 430
|
||||
#define __NR_fsconfig 431
|
||||
#define __NR_fsmount 432
|
||||
#define __NR_fspick 433
|
||||
#define __NR_pidfd_open 434
|
||||
#define __NR_clone3 435
|
||||
#define __NR_openat2 437
|
||||
#define __NR_pidfd_getfd 438
|
||||
|
||||
#define LINUX_GATEWAY_ADDR 0x100
|
||||
|
||||
|
||||
@@ -311,7 +311,114 @@
|
||||
#define __NR_subpage_prot 310
|
||||
#define __NR_timerfd_settime 311
|
||||
#define __NR_timerfd_gettime 312
|
||||
|
||||
#define __NR_signalfd4 313
|
||||
#define __NR_eventfd2 314
|
||||
#define __NR_epoll_create1 315
|
||||
#define __NR_dup3 316
|
||||
#define __NR_pipe2 317
|
||||
#define __NR_inotify_init1 318
|
||||
#define __NR_perf_event_open 319
|
||||
#define __NR_preadv 320
|
||||
#define __NR_pwritev 321
|
||||
#define __NR_rt_tgsigqueueinfo 322
|
||||
#define __NR_fanotify_init 323
|
||||
#define __NR_fanotify_mark 324
|
||||
#define __NR_prlimit64 325
|
||||
#define __NR_socket 326
|
||||
#define __NR_bind 327
|
||||
#define __NR_connect 328
|
||||
#define __NR_listen 329
|
||||
#define __NR_accept 330
|
||||
#define __NR_getsockname 331
|
||||
#define __NR_getpeername 332
|
||||
#define __NR_socketpair 333
|
||||
#define __NR_send 334
|
||||
#define __NR_sendto 335
|
||||
#define __NR_recv 336
|
||||
#define __NR_recvfrom 337
|
||||
#define __NR_shutdown 338
|
||||
#define __NR_setsockopt 339
|
||||
#define __NR_getsockopt 340
|
||||
#define __NR_sendmsg 341
|
||||
#define __NR_recvmsg 342
|
||||
#define __NR_recvmmsg 343
|
||||
#define __NR_accept4 344
|
||||
#define __NR_name_to_handle_at 345
|
||||
#define __NR_open_by_handle_at 346
|
||||
#define __NR_clock_adjtime 347
|
||||
#define __NR_syncfs 348
|
||||
#define __NR_sendmmsg 349
|
||||
#define __NR_setns 350
|
||||
#define __NR_process_vm_readv 351
|
||||
#define __NR_process_vm_writev 352
|
||||
#define __NR_finit_module 353
|
||||
#define __NR_kcmp 354
|
||||
#define __NR_sched_setattr 355
|
||||
#define __NR_sched_getattr 356
|
||||
#define __NR_renameat2 357
|
||||
#define __NR_seccomp 358
|
||||
#define __NR_getrandom 359
|
||||
#define __NR_memfd_create 360
|
||||
#define __NR_bpf 361
|
||||
#define __NR_execveat 362
|
||||
#define __NR_switch_endian 363
|
||||
#define __NR_userfaultfd 364
|
||||
#define __NR_membarrier 365
|
||||
#define __NR_mlock2 378
|
||||
#define __NR_copy_file_range 379
|
||||
#define __NR_preadv2 380
|
||||
#define __NR_pwritev2 381
|
||||
#define __NR_kexec_file_load 382
|
||||
#define __NR_statx 383
|
||||
#define __NR_pkey_alloc 384
|
||||
#define __NR_pkey_free 385
|
||||
#define __NR_pkey_mprotect 386
|
||||
#define __NR_rseq 387
|
||||
#define __NR_io_pgetevents 388
|
||||
#define __NR_semget 393
|
||||
#define __NR_semctl 394
|
||||
#define __NR_shmget 395
|
||||
#define __NR_shmctl 396
|
||||
#define __NR_shmat 397
|
||||
#define __NR_shmdt 398
|
||||
#define __NR_msgget 399
|
||||
#define __NR_msgsnd 400
|
||||
#define __NR_msgrcv 401
|
||||
#define __NR_msgctl 402
|
||||
#define __NR_clock_gettime64 403
|
||||
#define __NR_clock_settime64 404
|
||||
#define __NR_clock_adjtime64 405
|
||||
#define __NR_clock_getres_time64 406
|
||||
#define __NR_clock_nanosleep_time64 407
|
||||
#define __NR_timer_gettime64 408
|
||||
#define __NR_timer_settime64 409
|
||||
#define __NR_timerfd_gettime64 410
|
||||
#define __NR_timerfd_settime64 411
|
||||
#define __NR_utimensat_time64 412
|
||||
#define __NR_pselect6_time64 413
|
||||
#define __NR_ppoll_time64 414
|
||||
#define __NR_io_pgetevents_time64 416
|
||||
#define __NR_recvmmsg_time64 417
|
||||
#define __NR_mq_timedsend_time64 418
|
||||
#define __NR_mq_timedreceive_time64 419
|
||||
#define __NR_semtimedop_time64 420
|
||||
#define __NR_rt_sigtimedwait_time64 421
|
||||
#define __NR_futex_time64 422
|
||||
#define __NR_sched_rr_get_interval_time64 423
|
||||
#define __NR_pidfd_send_signal 424
|
||||
#define __NR_io_uring_setup 425
|
||||
#define __NR_io_uring_enter 426
|
||||
#define __NR_io_uring_register 427
|
||||
#define __NR_open_tree 428
|
||||
#define __NR_move_mount 429
|
||||
#define __NR_fsopen 430
|
||||
#define __NR_fsconfig 431
|
||||
#define __NR_fsmount 432
|
||||
#define __NR_fspick 433
|
||||
#define __NR_pidfd_open 434
|
||||
#define __NR_clone3 435
|
||||
#define __NR_openat2 437
|
||||
#define __NR_pidfd_getfd 438
|
||||
|
||||
#define syscall_weak(name,wsym,sym) \
|
||||
.text; \
|
||||
|
||||
@@ -311,7 +311,134 @@
|
||||
#define __NR_subpage_prot 310
|
||||
#define __NR_timerfd_settime 311
|
||||
#define __NR_timerfd_gettime 312
|
||||
#define __NR_signalfd4 313
|
||||
#define __NR_eventfd2 314
|
||||
#define __NR_epoll_create1 315
|
||||
#define __NR_dup3 316
|
||||
#define __NR_pipe2 317
|
||||
#define __NR_inotify_init1 318
|
||||
#define __NR_perf_event_open 319
|
||||
#define __NR_preadv 320
|
||||
#define __NR_pwritev 321
|
||||
#define __NR_rt_tgsigqueueinfo 322
|
||||
#define __NR_fanotify_init 323
|
||||
#define __NR_fanotify_mark 324
|
||||
#define __NR_prlimit64 325
|
||||
#define __NR_socket 326
|
||||
#define __NR_bind 327
|
||||
#define __NR_connect 328
|
||||
#define __NR_listen 329
|
||||
#define __NR_accept 330
|
||||
#define __NR_getsockname 331
|
||||
#define __NR_getpeername 332
|
||||
#define __NR_socketpair 333
|
||||
#define __NR_send 334
|
||||
#define __NR_sendto 335
|
||||
#define __NR_recv 336
|
||||
#define __NR_recvfrom 337
|
||||
#define __NR_shutdown 338
|
||||
#define __NR_setsockopt 339
|
||||
#define __NR_getsockopt 340
|
||||
#define __NR_sendmsg 341
|
||||
#define __NR_recvmsg 342
|
||||
#define __NR_recvmmsg 343
|
||||
#define __NR_accept4 344
|
||||
#define __NR_name_to_handle_at 345
|
||||
#define __NR_open_by_handle_at 346
|
||||
#define __NR_clock_adjtime 347
|
||||
#define __NR_syncfs 348
|
||||
#define __NR_sendmmsg 349
|
||||
#define __NR_setns 350
|
||||
#define __NR_process_vm_readv 351
|
||||
#define __NR_process_vm_writev 352
|
||||
#define __NR_finit_module 353
|
||||
#define __NR_kcmp 354
|
||||
#define __NR_sched_setattr 355
|
||||
#define __NR_sched_getattr 356
|
||||
#define __NR_renameat2 357
|
||||
#define __NR_seccomp 358
|
||||
#define __NR_getrandom 359
|
||||
#define __NR_memfd_create 360
|
||||
#define __NR_bpf 361
|
||||
#define __NR_execveat 362
|
||||
#define __NR_switch_endian 363
|
||||
#define __NR_userfaultfd 364
|
||||
#define __NR_membarrier 365
|
||||
#define __NR_mlock2 378
|
||||
#define __NR_copy_file_range 379
|
||||
#define __NR_preadv2 380
|
||||
#define __NR_pwritev2 381
|
||||
#define __NR_kexec_file_load 382
|
||||
#define __NR_statx 383
|
||||
#define __NR_pkey_alloc 384
|
||||
#define __NR_pkey_free 385
|
||||
#define __NR_pkey_mprotect 386
|
||||
#define __NR_rseq 387
|
||||
#define __NR_io_pgetevents 388
|
||||
#define __NR_semtimedop 392
|
||||
#define __NR_semget 393
|
||||
#define __NR_semctl 394
|
||||
#define __NR_shmget 395
|
||||
#define __NR_shmctl 396
|
||||
#define __NR_shmat 397
|
||||
#define __NR_shmdt 398
|
||||
#define __NR_msgget 399
|
||||
#define __NR_msgsnd 400
|
||||
#define __NR_msgrcv 401
|
||||
#define __NR_msgctl 402
|
||||
#define __NR_pidfd_send_signal 424
|
||||
#define __NR_io_uring_setup 425
|
||||
#define __NR_io_uring_enter 426
|
||||
#define __NR_io_uring_register 427
|
||||
#define __NR_open_tree 428
|
||||
#define __NR_move_mount 429
|
||||
#define __NR_fsopen 430
|
||||
#define __NR_fsconfig 431
|
||||
#define __NR_fsmount 432
|
||||
#define __NR_fspick 433
|
||||
#define __NR_pidfd_open 434
|
||||
#define __NR_clone3 435
|
||||
#define __NR_openat2 437
|
||||
#define __NR_pidfd_getfd 438
|
||||
|
||||
#if defined(_CALL_ELF) && _CALL_ELF == 2
|
||||
|
||||
#define __diet_proto_common(sym) \
|
||||
.type sym,@function
|
||||
|
||||
#define diet_proto_weak(sym) \
|
||||
.weak sym; \
|
||||
__diet_proto_common(sym)
|
||||
|
||||
#define diet_proto(sym) \
|
||||
.globl sym; \
|
||||
__diet_proto_common(sym)
|
||||
|
||||
|
||||
#define syscall_weak(name,wsym,sym) \
|
||||
.text; \
|
||||
diet_proto_weak(wsym); \
|
||||
diet_proto(sym); \
|
||||
wsym: \
|
||||
sym: \
|
||||
addis 2,12,.TOC.-sym@ha; \
|
||||
addi 2,2,.TOC.-sym@l; \
|
||||
.localentry sym,.-sym; \
|
||||
.localentry wsym,.-wsym; \
|
||||
li 0,__NR_##name; \
|
||||
b __unified_syscall
|
||||
|
||||
#define syscall(name,sym) \
|
||||
.text; \
|
||||
diet_proto(sym); \
|
||||
sym: \
|
||||
addis 2,12,.TOC.-sym@ha; \
|
||||
addi 2,2,.TOC.-sym@l; \
|
||||
.localentry sym,.-sym; \
|
||||
li 0,__NR_##name; \
|
||||
b __unified_syscall
|
||||
|
||||
#else /* _ELF_CALL != 2 */
|
||||
|
||||
#define __diet_proto_common(sym) \
|
||||
.section ".opd","aw"; \
|
||||
@@ -349,3 +476,4 @@ diet_proto(sym); \
|
||||
li 0,__NR_##name; \
|
||||
b __unified_syscall
|
||||
|
||||
#endif /* _ELF_CALL == 2 */
|
||||
@@ -0,0 +1 @@
|
||||
#include "../ppc64/syscalls.h"
|
||||
@@ -9,7 +9,7 @@
|
||||
#define __NR_write 4
|
||||
#define __NR_open 5
|
||||
#define __NR_close 6
|
||||
//#define __NR_waitpid 7
|
||||
#define __NR_restart_syscall 7
|
||||
#define __NR_creat 8
|
||||
#define __NR_link 9
|
||||
#define __NR_unlink 10
|
||||
@@ -125,7 +125,7 @@
|
||||
#define __NR_setfsgid 139
|
||||
#define __NR__llseek 140
|
||||
#define __NR_getdents 141
|
||||
#define __NR__newselect 142
|
||||
#define __NR__newselect 142
|
||||
#define __NR_flock 143
|
||||
#define __NR_msync 144
|
||||
#define __NR_readv 145
|
||||
@@ -162,8 +162,8 @@
|
||||
#define __NR_rt_sigtimedwait 177
|
||||
#define __NR_rt_sigqueueinfo 178
|
||||
#define __NR_rt_sigsuspend 179
|
||||
#define __NR_pread 180
|
||||
#define __NR_pwrite 181
|
||||
#define __NR_pread64 180
|
||||
#define __NR_pwrite64 181
|
||||
#define __NR_chown 182
|
||||
#define __NR_getcwd 183
|
||||
#define __NR_capget 184
|
||||
@@ -252,9 +252,9 @@
|
||||
#define __NR_statfs64 265
|
||||
#define __NR_fstatfs64 266
|
||||
#define __NR_remap_file_pages 267
|
||||
/* Number 268 is reserved for new sys_mbind */
|
||||
/* Number 269 is reserved for new sys_get_mempolicy */
|
||||
/* Number 270 is reserved for new sys_set_mempolicy */
|
||||
#define __NR_mbind 268
|
||||
#define __NR_get_mempolicy 269
|
||||
#define __NR_set_mempolicy 270
|
||||
#define __NR_mq_open 271
|
||||
#define __NR_mq_unlink 272
|
||||
#define __NR_mq_timedsend 273
|
||||
@@ -271,12 +271,13 @@
|
||||
#define __NR_inotify_init 284
|
||||
#define __NR_inotify_add_watch 285
|
||||
#define __NR_inotify_rm_watch 286
|
||||
/* Number 287 is reserved for new sys_migrate_pages */
|
||||
#define __NR_migrate_pages 287
|
||||
#define __NR_openat 288
|
||||
#define __NR_mkdirat 289
|
||||
#define __NR_mknodat 290
|
||||
#define __NR_fchownat 291
|
||||
#define __NR_futimesat 292
|
||||
#define __NR_fstatat64 293
|
||||
#define __NR_unlinkat 294
|
||||
#define __NR_renameat 295
|
||||
#define __NR_linkat 296
|
||||
@@ -293,7 +294,7 @@
|
||||
#define __NR_sync_file_range 307
|
||||
#define __NR_tee 308
|
||||
#define __NR_vmsplice 309
|
||||
/* Number 310 is reserved for new sys_move_pages */
|
||||
#define __NR_move_pages 310
|
||||
#define __NR_getcpu 311
|
||||
#define __NR_epoll_pwait 312
|
||||
#define __NR_utimes 313
|
||||
@@ -305,7 +306,115 @@
|
||||
#define __NR_timerfd_create 319
|
||||
#define __NR_timerfd_settime 320
|
||||
#define __NR_timerfd_gettime 321
|
||||
|
||||
#define __NR_signalfd4 322
|
||||
#define __NR_eventfd2 323
|
||||
#define __NR_inotify_init1 324
|
||||
#define __NR_pipe2 325
|
||||
#define __NR_dup3 326
|
||||
#define __NR_epoll_create1 327
|
||||
#define __NR_preadv 328
|
||||
#define __NR_pwritev 329
|
||||
#define __NR_rt_tgsigqueueinfo 330
|
||||
#define __NR_perf_event_open 331
|
||||
#define __NR_fanotify_init 332
|
||||
#define __NR_fanotify_mark 333
|
||||
#define __NR_prlimit64 334
|
||||
#define __NR_name_to_handle_at 335
|
||||
#define __NR_open_by_handle_at 336
|
||||
#define __NR_clock_adjtime 337
|
||||
#define __NR_syncfs 338
|
||||
#define __NR_setns 339
|
||||
#define __NR_process_vm_readv 340
|
||||
#define __NR_process_vm_writev 341
|
||||
#define __NR_s390_runtime_instr 342
|
||||
#define __NR_kcmp 343
|
||||
#define __NR_finit_module 344
|
||||
#define __NR_sched_setattr 345
|
||||
#define __NR_sched_getattr 346
|
||||
#define __NR_renameat2 347
|
||||
#define __NR_seccomp 348
|
||||
#define __NR_getrandom 349
|
||||
#define __NR_memfd_create 350
|
||||
#define __NR_bpf 351
|
||||
#define __NR_s390_pci_mmio_write 352
|
||||
#define __NR_s390_pci_mmio_read 353
|
||||
#define __NR_execveat 354
|
||||
#define __NR_userfaultfd 355
|
||||
#define __NR_membarrier 356
|
||||
#define __NR_recvmmsg 357
|
||||
#define __NR_sendmmsg 358
|
||||
#define __NR_socket 359
|
||||
#define __NR_socketpair 360
|
||||
#define __NR_bind 361
|
||||
#define __NR_connect 362
|
||||
#define __NR_listen 363
|
||||
#define __NR_accept4 364
|
||||
#define __NR_getsockopt 365
|
||||
#define __NR_setsockopt 366
|
||||
#define __NR_getsockname 367
|
||||
#define __NR_getpeername 368
|
||||
#define __NR_sendto 369
|
||||
#define __NR_sendmsg 370
|
||||
#define __NR_recvfrom 371
|
||||
#define __NR_recvmsg 372
|
||||
#define __NR_shutdown 373
|
||||
#define __NR_mlock2 374
|
||||
#define __NR_copy_file_range 375
|
||||
#define __NR_preadv2 376
|
||||
#define __NR_pwritev2 377
|
||||
#define __NR_s390_guarded_storage 378
|
||||
#define __NR_statx 379
|
||||
#define __NR_s390_sthyi 380
|
||||
#define __NR_kexec_file_load 381
|
||||
#define __NR_io_pgetevents 382
|
||||
#define __NR_rseq 383
|
||||
#define __NR_pkey_mprotect 384
|
||||
#define __NR_pkey_alloc 385
|
||||
#define __NR_pkey_free 386
|
||||
#define __NR_semget 393
|
||||
#define __NR_semctl 394
|
||||
#define __NR_shmget 395
|
||||
#define __NR_shmctl 396
|
||||
#define __NR_shmat 397
|
||||
#define __NR_shmdt 398
|
||||
#define __NR_msgget 399
|
||||
#define __NR_msgsnd 400
|
||||
#define __NR_msgrcv 401
|
||||
#define __NR_msgctl 402
|
||||
#define __NR_clock_gettime64 403
|
||||
#define __NR_clock_settime64 404
|
||||
#define __NR_clock_adjtime64 405
|
||||
#define __NR_clock_getres_time64 406
|
||||
#define __NR_clock_nanosleep_time64 407
|
||||
#define __NR_timer_gettime64 408
|
||||
#define __NR_timer_settime64 409
|
||||
#define __NR_timerfd_gettime64 410
|
||||
#define __NR_timerfd_settime64 411
|
||||
#define __NR_utimensat_time64 412
|
||||
#define __NR_pselect6_time64 413
|
||||
#define __NR_ppoll_time64 414
|
||||
#define __NR_io_pgetevents_time64 416
|
||||
#define __NR_recvmmsg_time64 417
|
||||
#define __NR_mq_timedsend_time64 418
|
||||
#define __NR_mq_timedreceive_time64 419
|
||||
#define __NR_semtimedop_time64 420
|
||||
#define __NR_rt_sigtimedwait_time64 421
|
||||
#define __NR_futex_time64 422
|
||||
#define __NR_sched_rr_get_interval_time64 423
|
||||
#define __NR_pidfd_send_signal 424
|
||||
#define __NR_io_uring_setup 425
|
||||
#define __NR_io_uring_enter 426
|
||||
#define __NR_io_uring_register 427
|
||||
#define __NR_open_tree 428
|
||||
#define __NR_move_mount 429
|
||||
#define __NR_fsopen 430
|
||||
#define __NR_fsconfig 431
|
||||
#define __NR_fsmount 432
|
||||
#define __NR_fspick 433
|
||||
#define __NR_pidfd_open 434
|
||||
#define __NR_clone3 435
|
||||
#define __NR_openat2 437
|
||||
#define __NR_pidfd_getfd 438
|
||||
|
||||
#define syscall_weak(name,wsym,sym) \
|
||||
.text; \
|
||||
|
||||
@@ -9,23 +9,18 @@
|
||||
#define __NR_write 4
|
||||
#define __NR_open 5
|
||||
#define __NR_close 6
|
||||
//#define __NR_waitpid 7
|
||||
#define __NR_restart_syscall 7
|
||||
#define __NR_creat 8
|
||||
#define __NR_link 9
|
||||
#define __NR_unlink 10
|
||||
#define __NR_execve 11
|
||||
#define __NR_chdir 12
|
||||
#define __NR_time 13
|
||||
#define __NR_mknod 14
|
||||
#define __NR_chmod 15
|
||||
#define __NR_lchown 16
|
||||
#define __NR_lseek 19
|
||||
#define __NR_getpid 20
|
||||
#define __NR_mount 21
|
||||
#define __NR_umount 22
|
||||
#define __NR_setuid 23
|
||||
#define __NR_getuid 24
|
||||
#define __NR_stime 25
|
||||
#define __NR_ptrace 26
|
||||
#define __NR_alarm 27
|
||||
#define __NR_pause 29
|
||||
@@ -41,11 +36,7 @@
|
||||
#define __NR_pipe 42
|
||||
#define __NR_times 43
|
||||
#define __NR_brk 45
|
||||
#define __NR_setgid 46
|
||||
#define __NR_getgid 47
|
||||
#define __NR_signal 48
|
||||
#define __NR_geteuid 49
|
||||
#define __NR_getegid 50
|
||||
#define __NR_acct 51
|
||||
#define __NR_umount2 52
|
||||
#define __NR_ioctl 54
|
||||
@@ -59,18 +50,13 @@
|
||||
#define __NR_getpgrp 65
|
||||
#define __NR_setsid 66
|
||||
#define __NR_sigaction 67
|
||||
#define __NR_setreuid 70
|
||||
#define __NR_setregid 71
|
||||
#define __NR_sigsuspend 72
|
||||
#define __NR_sigpending 73
|
||||
#define __NR_sethostname 74
|
||||
#define __NR_setrlimit 75
|
||||
#define __NR_getrlimit 76
|
||||
#define __NR_getrusage 77
|
||||
#define __NR_gettimeofday 78
|
||||
#define __NR_settimeofday 79
|
||||
#define __NR_getgroups 80
|
||||
#define __NR_setgroups 81
|
||||
#define __NR_symlink 83
|
||||
#define __NR_readlink 85
|
||||
#define __NR_uselib 86
|
||||
@@ -82,12 +68,10 @@
|
||||
#define __NR_truncate 92
|
||||
#define __NR_ftruncate 93
|
||||
#define __NR_fchmod 94
|
||||
#define __NR_fchown 95
|
||||
#define __NR_getpriority 96
|
||||
#define __NR_setpriority 97
|
||||
#define __NR_statfs 99
|
||||
#define __NR_fstatfs 100
|
||||
#define __NR_ioperm 101
|
||||
#define __NR_socketcall 102
|
||||
#define __NR_syslog 103
|
||||
#define __NR_setitimer 104
|
||||
@@ -121,11 +105,8 @@
|
||||
#define __NR_sysfs 135
|
||||
#define __NR_personality 136
|
||||
#define __NR_afs_syscall 137 /* Syscall for Andrew File System */
|
||||
#define __NR_setfsuid 138
|
||||
#define __NR_setfsgid 139
|
||||
#define __NR__llseek 140
|
||||
#define __NR_getdents 141
|
||||
#define __NR__newselect 142
|
||||
#define __NR_select 142
|
||||
#define __NR_flock 143
|
||||
#define __NR_msync 144
|
||||
#define __NR_readv 145
|
||||
@@ -147,13 +128,9 @@
|
||||
#define __NR_sched_rr_get_interval 161
|
||||
#define __NR_nanosleep 162
|
||||
#define __NR_mremap 163
|
||||
#define __NR_setresuid 164
|
||||
#define __NR_getresuid 165
|
||||
#define __NR_query_module 167
|
||||
#define __NR_poll 168
|
||||
#define __NR_nfsservctl 169
|
||||
#define __NR_setresgid 170
|
||||
#define __NR_getresgid 171
|
||||
#define __NR_prctl 172
|
||||
#define __NR_rt_sigreturn 173
|
||||
#define __NR_rt_sigaction 174
|
||||
@@ -162,9 +139,8 @@
|
||||
#define __NR_rt_sigtimedwait 177
|
||||
#define __NR_rt_sigqueueinfo 178
|
||||
#define __NR_rt_sigsuspend 179
|
||||
#define __NR_pread 180
|
||||
#define __NR_pwrite 181
|
||||
#define __NR_chown 182
|
||||
#define __NR_pread64 180
|
||||
#define __NR_pwrite64 181
|
||||
#define __NR_getcwd 183
|
||||
#define __NR_capget 184
|
||||
#define __NR_capset 185
|
||||
@@ -173,39 +149,31 @@
|
||||
#define __NR_getpmsg 188
|
||||
#define __NR_putpmsg 189
|
||||
#define __NR_vfork 190
|
||||
#define __NR_ugetrlimit 191 /* SuS compliant getrlimit */
|
||||
#define __NR_mmap2 192
|
||||
#define __NR_truncate64 193
|
||||
#define __NR_ftruncate64 194
|
||||
#define __NR_stat64 195
|
||||
#define __NR_lstat64 196
|
||||
#define __NR_fstat64 197
|
||||
#define __NR_lchown32 198
|
||||
#define __NR_getuid32 199
|
||||
#define __NR_getgid32 200
|
||||
#define __NR_geteuid32 201
|
||||
#define __NR_getegid32 202
|
||||
#define __NR_setreuid32 203
|
||||
#define __NR_setregid32 204
|
||||
#define __NR_getgroups32 205
|
||||
#define __NR_setgroups32 206
|
||||
#define __NR_fchown32 207
|
||||
#define __NR_setresuid32 208
|
||||
#define __NR_getresuid32 209
|
||||
#define __NR_setresgid32 210
|
||||
#define __NR_getresgid32 211
|
||||
#define __NR_chown32 212
|
||||
#define __NR_setuid32 213
|
||||
#define __NR_setgid32 214
|
||||
#define __NR_setfsuid32 215
|
||||
#define __NR_setfsgid32 216
|
||||
#define __NR_getrlimit 191 /* SuS compliant getrlimit */
|
||||
#define __NR_lchown 198
|
||||
#define __NR_getuid 199
|
||||
#define __NR_getgid 200
|
||||
#define __NR_geteuid 201
|
||||
#define __NR_getegid 202
|
||||
#define __NR_setreuid 203
|
||||
#define __NR_setregid 204
|
||||
#define __NR_getgroups 205
|
||||
#define __NR_setgroups 206
|
||||
#define __NR_fchown 207
|
||||
#define __NR_setresuid 208
|
||||
#define __NR_getresuid 209
|
||||
#define __NR_setresgid 210
|
||||
#define __NR_getresgid 211
|
||||
#define __NR_chown 212
|
||||
#define __NR_setuid 213
|
||||
#define __NR_setgid 214
|
||||
#define __NR_setfsuid 215
|
||||
#define __NR_setfsgid 216
|
||||
#define __NR_pivot_root 217
|
||||
#define __NR_mincore 218
|
||||
#define __NR_madvise 219
|
||||
#define __NR_getdents64 220
|
||||
#define __NR_fcntl64 221
|
||||
#define __NR_readahead 222
|
||||
#define __NR_sendfile64 223
|
||||
#define __NR_setxattr 224
|
||||
#define __NR_lsetxattr 225
|
||||
#define __NR_fsetxattr 226
|
||||
@@ -248,13 +216,12 @@
|
||||
#define __NR_clock_getres (__NR_timer_create+7)
|
||||
#define __NR_clock_nanosleep (__NR_timer_create+8)
|
||||
/* Number 263 is reserved for vserver */
|
||||
#define __NR_fadvise64_64 264
|
||||
#define __NR_statfs64 265
|
||||
#define __NR_fstatfs64 266
|
||||
#define __NR_remap_file_pages 267
|
||||
/* Number 268 is reserved for new sys_mbind */
|
||||
/* Number 269 is reserved for new sys_get_mempolicy */
|
||||
/* Number 270 is reserved for new sys_set_mempolicy */
|
||||
#define __NR_mbind 268
|
||||
#define __NR_get_mempolicy 269
|
||||
#define __NR_set_mempolicy 270
|
||||
#define __NR_mq_open 271
|
||||
#define __NR_mq_unlink 272
|
||||
#define __NR_mq_timedsend 273
|
||||
@@ -271,12 +238,13 @@
|
||||
#define __NR_inotify_init 284
|
||||
#define __NR_inotify_add_watch 285
|
||||
#define __NR_inotify_rm_watch 286
|
||||
/* Number 287 is reserved for new sys_migrate_pages */
|
||||
#define __NR_migrate_pages 287
|
||||
#define __NR_openat 288
|
||||
#define __NR_mkdirat 289
|
||||
#define __NR_mknodat 290
|
||||
#define __NR_fchownat 291
|
||||
#define __NR_futimesat 292
|
||||
#define __NR_newfstatat 293
|
||||
#define __NR_unlinkat 294
|
||||
#define __NR_renameat 295
|
||||
#define __NR_linkat 296
|
||||
@@ -293,7 +261,7 @@
|
||||
#define __NR_sync_file_range 307
|
||||
#define __NR_tee 308
|
||||
#define __NR_vmsplice 309
|
||||
/* Number 310 is reserved for new sys_move_pages */
|
||||
#define __NR_move_pages 310
|
||||
#define __NR_getcpu 311
|
||||
#define __NR_epoll_pwait 312
|
||||
#define __NR_utimes 313
|
||||
@@ -305,95 +273,96 @@
|
||||
#define __NR_timerfd_create 319
|
||||
#define __NR_timerfd_settime 320
|
||||
#define __NR_timerfd_gettime 321
|
||||
|
||||
|
||||
/*
|
||||
* There are some system calls that are not present on 64 bit, some
|
||||
* have a different name although they do the same (e.g. __NR_chown32
|
||||
* is __NR_chown on 64 bit).
|
||||
*/
|
||||
#ifdef __s390x__
|
||||
#undef __NR_time
|
||||
#undef __NR_lchown
|
||||
#undef __NR_setuid
|
||||
#undef __NR_getuid
|
||||
#undef __NR_stime
|
||||
#undef __NR_setgid
|
||||
#undef __NR_getgid
|
||||
#undef __NR_geteuid
|
||||
#undef __NR_getegid
|
||||
#undef __NR_setreuid
|
||||
#undef __NR_setregid
|
||||
#undef __NR_getrlimit
|
||||
#undef __NR_getgroups
|
||||
#undef __NR_setgroups
|
||||
#undef __NR_fchown
|
||||
#undef __NR_ioperm
|
||||
#undef __NR_setfsuid
|
||||
#undef __NR_setfsgid
|
||||
#undef __NR__llseek
|
||||
#undef __NR__newselect
|
||||
#undef __NR_setresuid
|
||||
#undef __NR_getresuid
|
||||
#undef __NR_setresgid
|
||||
#undef __NR_getresgid
|
||||
#undef __NR_chown
|
||||
#undef __NR_ugetrlimit
|
||||
#undef __NR_mmap2
|
||||
#undef __NR_truncate64
|
||||
#undef __NR_ftruncate64
|
||||
#undef __NR_stat64
|
||||
#undef __NR_lstat64
|
||||
#undef __NR_fstat64
|
||||
#undef __NR_lchown32
|
||||
#undef __NR_getuid32
|
||||
#undef __NR_getgid32
|
||||
#undef __NR_geteuid32
|
||||
#undef __NR_getegid32
|
||||
#undef __NR_setreuid32
|
||||
#undef __NR_setregid32
|
||||
#undef __NR_getgroups32
|
||||
#undef __NR_setgroups32
|
||||
#undef __NR_fchown32
|
||||
#undef __NR_setresuid32
|
||||
#undef __NR_getresuid32
|
||||
#undef __NR_setresgid32
|
||||
#undef __NR_getresgid32
|
||||
#undef __NR_chown32
|
||||
#undef __NR_setuid32
|
||||
#undef __NR_setgid32
|
||||
#undef __NR_setfsuid32
|
||||
#undef __NR_setfsgid32
|
||||
#undef __NR_getdents64
|
||||
#undef __NR_fcntl64
|
||||
#undef __NR_sendfile64
|
||||
#undef __NR_fadvise64_64
|
||||
#undef __NR_fstatat64
|
||||
|
||||
#define __NR_select 142
|
||||
#define __NR_getrlimit 191 /* SuS compliant getrlimit */
|
||||
#define __NR_lchown 198
|
||||
#define __NR_getuid 199
|
||||
#define __NR_getgid 200
|
||||
#define __NR_geteuid 201
|
||||
#define __NR_getegid 202
|
||||
#define __NR_setreuid 203
|
||||
#define __NR_setregid 204
|
||||
#define __NR_getgroups 205
|
||||
#define __NR_setgroups 206
|
||||
#define __NR_fchown 207
|
||||
#define __NR_setresuid 208
|
||||
#define __NR_getresuid 209
|
||||
#define __NR_setresgid 210
|
||||
#define __NR_getresgid 211
|
||||
#define __NR_chown 212
|
||||
#define __NR_setuid 213
|
||||
#define __NR_setgid 214
|
||||
#define __NR_setfsuid 215
|
||||
#define __NR_setfsgid 216
|
||||
#define __NR_newfstatat 293
|
||||
|
||||
#endif
|
||||
#define __NR_signalfd4 322
|
||||
#define __NR_eventfd2 323
|
||||
#define __NR_inotify_init1 324
|
||||
#define __NR_pipe2 325
|
||||
#define __NR_dup3 326
|
||||
#define __NR_epoll_create1 327
|
||||
#define __NR_preadv 328
|
||||
#define __NR_pwritev 329
|
||||
#define __NR_rt_tgsigqueueinfo 330
|
||||
#define __NR_perf_event_open 331
|
||||
#define __NR_fanotify_init 332
|
||||
#define __NR_fanotify_mark 333
|
||||
#define __NR_prlimit64 334
|
||||
#define __NR_name_to_handle_at 335
|
||||
#define __NR_open_by_handle_at 336
|
||||
#define __NR_clock_adjtime 337
|
||||
#define __NR_syncfs 338
|
||||
#define __NR_setns 339
|
||||
#define __NR_process_vm_readv 340
|
||||
#define __NR_process_vm_writev 341
|
||||
#define __NR_s390_runtime_instr 342
|
||||
#define __NR_kcmp 343
|
||||
#define __NR_finit_module 344
|
||||
#define __NR_sched_setattr 345
|
||||
#define __NR_sched_getattr 346
|
||||
#define __NR_renameat2 347
|
||||
#define __NR_seccomp 348
|
||||
#define __NR_getrandom 349
|
||||
#define __NR_memfd_create 350
|
||||
#define __NR_bpf 351
|
||||
#define __NR_s390_pci_mmio_write 352
|
||||
#define __NR_s390_pci_mmio_read 353
|
||||
#define __NR_execveat 354
|
||||
#define __NR_userfaultfd 355
|
||||
#define __NR_membarrier 356
|
||||
#define __NR_recvmmsg 357
|
||||
#define __NR_sendmmsg 358
|
||||
#define __NR_socket 359
|
||||
#define __NR_socketpair 360
|
||||
#define __NR_bind 361
|
||||
#define __NR_connect 362
|
||||
#define __NR_listen 363
|
||||
#define __NR_accept4 364
|
||||
#define __NR_getsockopt 365
|
||||
#define __NR_setsockopt 366
|
||||
#define __NR_getsockname 367
|
||||
#define __NR_getpeername 368
|
||||
#define __NR_sendto 369
|
||||
#define __NR_sendmsg 370
|
||||
#define __NR_recvfrom 371
|
||||
#define __NR_recvmsg 372
|
||||
#define __NR_shutdown 373
|
||||
#define __NR_mlock2 374
|
||||
#define __NR_copy_file_range 375
|
||||
#define __NR_preadv2 376
|
||||
#define __NR_pwritev2 377
|
||||
#define __NR_s390_guarded_storage 378
|
||||
#define __NR_statx 379
|
||||
#define __NR_s390_sthyi 380
|
||||
#define __NR_kexec_file_load 381
|
||||
#define __NR_io_pgetevents 382
|
||||
#define __NR_rseq 383
|
||||
#define __NR_pkey_mprotect 384
|
||||
#define __NR_pkey_alloc 385
|
||||
#define __NR_pkey_free 386
|
||||
#define __NR_semtimedop 392
|
||||
#define __NR_semget 393
|
||||
#define __NR_semctl 394
|
||||
#define __NR_shmget 395
|
||||
#define __NR_shmctl 396
|
||||
#define __NR_shmat 397
|
||||
#define __NR_shmdt 398
|
||||
#define __NR_msgget 399
|
||||
#define __NR_msgsnd 400
|
||||
#define __NR_msgrcv 401
|
||||
#define __NR_msgctl 402
|
||||
#define __NR_pidfd_send_signal 424
|
||||
#define __NR_io_uring_setup 425
|
||||
#define __NR_io_uring_enter 426
|
||||
#define __NR_io_uring_register 427
|
||||
#define __NR_open_tree 428
|
||||
#define __NR_move_mount 429
|
||||
#define __NR_fsopen 430
|
||||
#define __NR_fsconfig 431
|
||||
#define __NR_fsmount 432
|
||||
#define __NR_fspick 433
|
||||
#define __NR_pidfd_open 434
|
||||
#define __NR_clone3 435
|
||||
#define __NR_openat2 437
|
||||
#define __NR_pidfd_getfd 438
|
||||
|
||||
#define syscall_weak(name,wsym,sym) \
|
||||
.text; \
|
||||
|
||||
@@ -15,7 +15,7 @@ __BEGIN_DECLS
|
||||
#ifdef __mips__
|
||||
#define _NSIG 128
|
||||
#else
|
||||
#define _NSIG 64
|
||||
#define _NSIG 65
|
||||
#endif
|
||||
|
||||
#define SIGHUP 1
|
||||
@@ -33,7 +33,7 @@ __BEGIN_DECLS
|
||||
#define SIGTERM 15
|
||||
#define SIGUNUSED 31
|
||||
#if defined(__i386__) || defined(__x86_64__) || defined(__powerpc__) || defined(__arm__) \
|
||||
|| defined(__s390__) || defined(__ia64__) || defined(__powerpc64__)
|
||||
|| defined(__s390__) || defined(__ia64__) || defined(__powerpc64__) || defined(__aarch64__)
|
||||
#define SIGBUS 7
|
||||
#define SIGUSR1 10
|
||||
#define SIGUSR2 12
|
||||
@@ -97,9 +97,9 @@ __BEGIN_DECLS
|
||||
#define SIGXCPU 30
|
||||
#define SIGXFSZ 31
|
||||
#elif defined(__hppa__)
|
||||
#define SIGEMT 7
|
||||
#define SIGSTKFLT 7
|
||||
#define SIGBUS 10
|
||||
#define SIGSYS 12
|
||||
#define SIGXCPU 12
|
||||
#define SIGUSR1 16
|
||||
#define SIGUSR2 17
|
||||
#define SIGCHLD 18
|
||||
@@ -114,27 +114,21 @@ __BEGIN_DECLS
|
||||
#define SIGTTIN 27
|
||||
#define SIGTTOU 28
|
||||
#define SIGURG 29
|
||||
#define SIGLOST 30
|
||||
#define SIGXFSZ 30
|
||||
#define SIGUNUSED 31
|
||||
#define SIGRESERVE SIGUNUSE
|
||||
#define SIGXCPU 33
|
||||
#define SIGXFSZ 34
|
||||
#define SIGSTKFLT 36
|
||||
#define SIGRESERVE SIGUNUSED
|
||||
#define SIGSYS 31
|
||||
|
||||
#else
|
||||
//#error signal layout not yet known
|
||||
#error signal layout not yet known
|
||||
#endif
|
||||
|
||||
#define SIGCLD SIGCHLD
|
||||
#define SIGPOLL SIGIO
|
||||
|
||||
/* These should not be considered constants from userland. */
|
||||
#ifdef __hppa__
|
||||
#define SIGRTMIN 37
|
||||
#else
|
||||
#define SIGLOST SIGPWR
|
||||
#define SIGRTMIN 32
|
||||
#endif
|
||||
#define SIGRTMAX (_NSIG-1)
|
||||
|
||||
/* SA_FLAGS values: */
|
||||
@@ -431,10 +425,10 @@ enum {
|
||||
# define POLL_HUP POLL_HUP
|
||||
};
|
||||
|
||||
#define _NSIG_WORDS ((_NSIG/sizeof(long))>>3)
|
||||
#define _SIGSET_WORDS (1024 / (8 * sizeof (unsigned long int)))
|
||||
|
||||
typedef struct {
|
||||
unsigned long sig[_NSIG_WORDS];
|
||||
unsigned long sig[_SIGSET_WORDS];
|
||||
} sigset_t;
|
||||
|
||||
struct sigaction {
|
||||
|
||||
@@ -315,6 +315,98 @@
|
||||
#define __NR_fallocate 314
|
||||
#define __NR_timerfd_settime 315
|
||||
#define __NR_timerfd_gettime 316
|
||||
#define __NR_signalfd4 317
|
||||
#define __NR_eventfd2 318
|
||||
#define __NR_epoll_create1 319
|
||||
#define __NR_dup3 320
|
||||
#define __NR_pipe2 321
|
||||
#define __NR_inotify_init1 322
|
||||
#define __NR_accept4 323
|
||||
#define __NR_preadv 324
|
||||
#define __NR_pwritev 325
|
||||
#define __NR_rt_tgsigqueueinfo 326
|
||||
#define __NR_perf_event_open 327
|
||||
#define __NR_recvmmsg 328
|
||||
#define __NR_fanotify_init 329
|
||||
#define __NR_fanotify_mark 330
|
||||
#define __NR_prlimit64 331
|
||||
#define __NR_name_to_handle_at 332
|
||||
#define __NR_open_by_handle_at 333
|
||||
#define __NR_clock_adjtime 334
|
||||
#define __NR_syncfs 335
|
||||
#define __NR_sendmmsg 336
|
||||
#define __NR_setns 337
|
||||
#define __NR_process_vm_readv 338
|
||||
#define __NR_process_vm_writev 339
|
||||
#define __NR_kern_features 340
|
||||
#define __NR_kcmp 341
|
||||
#define __NR_finit_module 342
|
||||
#define __NR_sched_setattr 343
|
||||
#define __NR_sched_getattr 344
|
||||
#define __NR_renameat2 345
|
||||
#define __NR_seccomp 346
|
||||
#define __NR_getrandom 347
|
||||
#define __NR_memfd_create 348
|
||||
#define __NR_bpf 349
|
||||
#define __NR_execveat 350
|
||||
#define __NR_membarrier 351
|
||||
#define __NR_userfaultfd 352
|
||||
#define __NR_bind 353
|
||||
#define __NR_listen 354
|
||||
#define __NR_setsockopt 355
|
||||
#define __NR_mlock2 356
|
||||
#define __NR_copy_file_range 357
|
||||
#define __NR_preadv2 358
|
||||
#define __NR_pwritev2 359
|
||||
#define __NR_statx 360
|
||||
#define __NR_io_pgetevents 361
|
||||
#define __NR_pkey_mprotect 362
|
||||
#define __NR_pkey_alloc 363
|
||||
#define __NR_pkey_free 364
|
||||
#define __NR_rseq 365
|
||||
#define __NR_semget 393
|
||||
#define __NR_semctl 394
|
||||
#define __NR_shmget 395
|
||||
#define __NR_shmctl 396
|
||||
#define __NR_shmat 397
|
||||
#define __NR_shmdt 398
|
||||
#define __NR_msgget 399
|
||||
#define __NR_msgsnd 400
|
||||
#define __NR_msgrcv 401
|
||||
#define __NR_msgctl 402
|
||||
#define __NR_clock_gettime64 403
|
||||
#define __NR_clock_settime64 404
|
||||
#define __NR_clock_adjtime64 405
|
||||
#define __NR_clock_getres_time64 406
|
||||
#define __NR_clock_nanosleep_time64 407
|
||||
#define __NR_timer_gettime64 408
|
||||
#define __NR_timer_settime64 409
|
||||
#define __NR_timerfd_gettime64 410
|
||||
#define __NR_timerfd_settime64 411
|
||||
#define __NR_utimensat_time64 412
|
||||
#define __NR_pselect6_time64 413
|
||||
#define __NR_ppoll_time64 414
|
||||
#define __NR_io_pgetevents_time64 416
|
||||
#define __NR_recvmmsg_time64 417
|
||||
#define __NR_mq_timedsend_time64 418
|
||||
#define __NR_mq_timedreceive_time64 419
|
||||
#define __NR_semtimedop_time64 420
|
||||
#define __NR_rt_sigtimedwait_time64 421
|
||||
#define __NR_futex_time64 422
|
||||
#define __NR_sched_rr_get_interval_time64 423
|
||||
#define __NR_pidfd_send_signal 424
|
||||
#define __NR_io_uring_setup 425
|
||||
#define __NR_io_uring_enter 426
|
||||
#define __NR_io_uring_register 427
|
||||
#define __NR_open_tree 428
|
||||
#define __NR_move_mount 429
|
||||
#define __NR_fsopen 430
|
||||
#define __NR_fsconfig 431
|
||||
#define __NR_fsmount 432
|
||||
#define __NR_fspick 433
|
||||
#define __NR_pidfd_open 434
|
||||
#define __NR_openat2 437
|
||||
#define __NR_pidfd_getfd 438
|
||||
|
||||
#define syscall_weak(name,wsym,sym) \
|
||||
.text; \
|
||||
|
||||
@@ -314,6 +314,79 @@
|
||||
#define __NR_fallocate 314
|
||||
#define __NR_timerfd_settime 315
|
||||
#define __NR_timerfd_gettime 316
|
||||
#define __NR_signalfd4 317
|
||||
#define __NR_eventfd2 318
|
||||
#define __NR_epoll_create1 319
|
||||
#define __NR_dup3 320
|
||||
#define __NR_pipe2 321
|
||||
#define __NR_inotify_init1 322
|
||||
#define __NR_accept4 323
|
||||
#define __NR_preadv 324
|
||||
#define __NR_pwritev 325
|
||||
#define __NR_rt_tgsigqueueinfo 326
|
||||
#define __NR_perf_event_open 327
|
||||
#define __NR_recvmmsg 328
|
||||
#define __NR_fanotify_init 329
|
||||
#define __NR_fanotify_mark 330
|
||||
#define __NR_prlimit64 331
|
||||
#define __NR_name_to_handle_at 332
|
||||
#define __NR_open_by_handle_at 333
|
||||
#define __NR_clock_adjtime 334
|
||||
#define __NR_syncfs 335
|
||||
#define __NR_sendmmsg 336
|
||||
#define __NR_setns 337
|
||||
#define __NR_process_vm_readv 338
|
||||
#define __NR_process_vm_writev 339
|
||||
#define __NR_kern_features 340
|
||||
#define __NR_kcmp 341
|
||||
#define __NR_finit_module 342
|
||||
#define __NR_sched_setattr 343
|
||||
#define __NR_sched_getattr 344
|
||||
#define __NR_renameat2 345
|
||||
#define __NR_seccomp 346
|
||||
#define __NR_getrandom 347
|
||||
#define __NR_memfd_create 348
|
||||
#define __NR_bpf 349
|
||||
#define __NR_execveat 350
|
||||
#define __NR_membarrier 351
|
||||
#define __NR_userfaultfd 352
|
||||
#define __NR_bind 353
|
||||
#define __NR_listen 354
|
||||
#define __NR_setsockopt 355
|
||||
#define __NR_mlock2 356
|
||||
#define __NR_copy_file_range 357
|
||||
#define __NR_preadv2 358
|
||||
#define __NR_pwritev2 359
|
||||
#define __NR_statx 360
|
||||
#define __NR_io_pgetevents 361
|
||||
#define __NR_pkey_mprotect 362
|
||||
#define __NR_pkey_alloc 363
|
||||
#define __NR_pkey_free 364
|
||||
#define __NR_rseq 365
|
||||
#define __NR_semtimedop 392
|
||||
#define __NR_semget 393
|
||||
#define __NR_semctl 394
|
||||
#define __NR_shmget 395
|
||||
#define __NR_shmctl 396
|
||||
#define __NR_shmat 397
|
||||
#define __NR_shmdt 398
|
||||
#define __NR_msgget 399
|
||||
#define __NR_msgsnd 400
|
||||
#define __NR_msgrcv 401
|
||||
#define __NR_msgctl 402
|
||||
#define __NR_pidfd_send_signal 424
|
||||
#define __NR_io_uring_setup 425
|
||||
#define __NR_io_uring_enter 426
|
||||
#define __NR_io_uring_register 427
|
||||
#define __NR_open_tree 428
|
||||
#define __NR_move_mount 429
|
||||
#define __NR_fsopen 430
|
||||
#define __NR_fsconfig 431
|
||||
#define __NR_fsmount 432
|
||||
#define __NR_fspick 433
|
||||
#define __NR_pidfd_open 434
|
||||
#define __NR_openat2 437
|
||||
#define __NR_pidfd_getfd 438
|
||||
|
||||
#define syscall_weak(name,wsym,sym) \
|
||||
.text; \
|
||||
|
||||
@@ -27,7 +27,11 @@ typedef int wchar_t;
|
||||
#endif
|
||||
|
||||
#undef offsetof
|
||||
#if defined(__GNUC__) && (__GNUC >= 3)
|
||||
#define offsetof(type,member) __builtin_offsetof(type,member)
|
||||
#else
|
||||
#define offsetof(type,member) ((size_t) &((type*)0)->member)
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
||||
@@ -0,0 +1,156 @@
|
||||
#ifndef _STDINT_H
|
||||
#define _STDINT_H
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stddef.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
typedef int8_t int_least8_t;
|
||||
typedef int16_t int_least16_t;
|
||||
typedef int32_t int_least32_t;
|
||||
typedef int64_t int_least64_t;
|
||||
|
||||
typedef uint8_t uint_least8_t;
|
||||
typedef uint16_t uint_least16_t;
|
||||
typedef uint32_t uint_least32_t;
|
||||
typedef uint64_t uint_least64_t;
|
||||
|
||||
typedef signed char int_fast8_t;
|
||||
typedef signed long int int_fast16_t;
|
||||
typedef signed long int int_fast32_t;
|
||||
typedef int64_t int_fast64_t;
|
||||
|
||||
typedef unsigned char uint_fast8_t;
|
||||
typedef unsigned long int uint_fast16_t;
|
||||
typedef unsigned long int uint_fast32_t;
|
||||
typedef uint64_t uint_fast64_t;
|
||||
|
||||
|
||||
|
||||
/* The ISO C99 standard specifies that in C++ implementations these
|
||||
should only be defined if explicitly requested. */
|
||||
#if !defined __cplusplus || defined __STDC_LIMIT_MACROS
|
||||
|
||||
#define INT8_MAX (127)
|
||||
#define INT16_MAX (32767)
|
||||
#define INT32_MAX (2147483647)
|
||||
#define INT64_MAX (9223372036854775807ll)
|
||||
|
||||
#define INT8_MIN (-1 - INT8_MAX)
|
||||
#define INT16_MIN (-1 - INT16_MAX)
|
||||
#define INT32_MIN (-1 - INT32_MAX)
|
||||
#define INT64_MIN (-1 - INT64_MAX)
|
||||
|
||||
#define INT_LEAST8_MAX INT8_MAX
|
||||
#define INT_LEAST8_MIN INT8_MIN
|
||||
#define INT_LEAST16_MAX INT16_MAX
|
||||
#define INT_LEAST16_MIN INT16_MIN
|
||||
#define INT_LEAST32_MAX INT32_MAX
|
||||
#define INT_LEAST32_MIN INT32_MIN
|
||||
#define INT_LEAST64_MAX INT64_MAX
|
||||
#define INT_LEAST64_MIN INT64_MIN
|
||||
|
||||
#define UINT8_MAX 0xff
|
||||
#define UINT16_MAX 0xffff
|
||||
#define UINT32_MAX 0xfffffffful
|
||||
#define UINT64_MAX 0xffffffffffffffffull
|
||||
|
||||
#define UINT_LEAST8_MAX UINT8_MAX
|
||||
#define UINT_LEAST16_MAX UINT16_MAX
|
||||
#define UINT_LEAST32_MAX UINT32_MAX
|
||||
#define UINT_LEAST64_MAX UINT64_MAX
|
||||
|
||||
#if __WORDSIZE == 64
|
||||
#define INTPTR_MIN INT64_MIN
|
||||
#define INTPTR_MAX INT64_MAX
|
||||
#define UINTPTR_MAX UINT64_MAX
|
||||
#else
|
||||
#define INTPTR_MIN INT32_MIN
|
||||
#define INTPTR_MAX INT32_MAX
|
||||
#define UINTPTR_MAX UINT32_MAX
|
||||
#endif
|
||||
|
||||
#define SIZE_MAX UINTPTR_MAX
|
||||
#define PTRDIFF_MIN INTPTR_MIN
|
||||
#define PTRDIFF_MAX INTPTR_MAX
|
||||
|
||||
#define INTMAX_MIN INT64_MIN
|
||||
#define INTMAX_MAX INT64_MAX
|
||||
#define UINTMAX_MAX UINT64_MAX
|
||||
|
||||
#define INT_FAST8_MIN INT8_MIN
|
||||
#define INT_FAST8_MAX INT8_MAX
|
||||
#define INT_FAST64_MIN INT64_MIN
|
||||
#define INT_FAST64_MAX INT64_MAX
|
||||
|
||||
#define UINT_FAST8_MAX UINT8_MAX
|
||||
#define UINT_FAST64_MAX UINT64_MAX
|
||||
|
||||
#define INT_FAST16_MIN INTPTR_MIN
|
||||
#define INT_FAST16_MAX INTPTR_MAX
|
||||
#define UINT_FAST16_MAX UINTPTR_MAX
|
||||
|
||||
#define INT_FAST32_MIN INTPTR_MIN
|
||||
#define INT_FAST32_MAX INTPTR_MAX
|
||||
#define UINT_FAST32_MAX UINTPTR_MAX
|
||||
|
||||
#define SIG_ATOMIC_MAX ((int)(~0u << sizeof(int)*8-1))
|
||||
#define SIG_ATOMIC_MIN ((int)((~0u << sizeof(int)*8-1)-1))
|
||||
|
||||
#ifndef WCHAR_MIN
|
||||
#define WCHAR_MIN ((int)(~0u << sizeof(int)*8-1))
|
||||
#define WCHAR_MAX ((int)((~0u << sizeof(int)*8-1)-1))
|
||||
#endif
|
||||
|
||||
#define WINT_MIN 0
|
||||
#define WINT_MAX (~(wint_t)0)
|
||||
|
||||
#endif /* C++ && limit macros */
|
||||
|
||||
|
||||
|
||||
/* The ISO C99 standard specifies that in C++ implementations these
|
||||
should only be defined if explicitly requested. */
|
||||
#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
|
||||
|
||||
/* Signed. */
|
||||
# define INT8_C(c) c
|
||||
# define INT16_C(c) c
|
||||
# define INT32_C(c) c
|
||||
# if __WORDSIZE == 64
|
||||
# define INT64_C(c) c ## L
|
||||
# else
|
||||
# define INT64_C(c) c ## LL
|
||||
# endif
|
||||
|
||||
/* Unsigned. */
|
||||
# define UINT8_C(c) c
|
||||
# define UINT16_C(c) c
|
||||
# define UINT32_C(c) c ## U
|
||||
# if __WORDSIZE == 64
|
||||
# define UINT64_C(c) c ## UL
|
||||
# else
|
||||
# define UINT64_C(c) c ## ULL
|
||||
# endif
|
||||
|
||||
/* Maximal type. */
|
||||
# if __WORDSIZE == 64
|
||||
# define INTMAX_C(c) c ## L
|
||||
# define UINTMAX_C(c) c ## UL
|
||||
# else
|
||||
# define INTMAX_C(c) c ## LL
|
||||
# define UINTMAX_C(c) c ## ULL
|
||||
# endif
|
||||
|
||||
#endif /* C++ && constant macros */
|
||||
|
||||
#if defined(__WINT_TYPE__)
|
||||
typedef __WINT_TYPE__ wint_t;
|
||||
#else
|
||||
typedef unsigned int wint_t;
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
@@ -6,45 +6,72 @@
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
__readmem__(2) __writemem__(1)
|
||||
char *strcpy(char* __restrict__ dest, const char* __restrict__ src) __THROW __nonnull((1,2));
|
||||
|
||||
__readmemsz__(2,4) __writememsz__(1,4)
|
||||
void *memccpy(void* __restrict__ dest, const void* __restrict__ src, int c, size_t n) __THROW __nonnull((1,2));
|
||||
__readmemsz__(2,3) __writememsz__(1,3)
|
||||
void *memmove(void* dest, const void *src, size_t n) __THROW __nonnull((1,2));
|
||||
|
||||
__readmemsz__(1,3) __readmemsz__(2,3)
|
||||
int memccmp(const void* s1, const void* s2, int c, size_t n) __THROW __pure __nonnull((1,2));
|
||||
|
||||
__writememsz__(1,3)
|
||||
void* memset(void* s, int c, size_t n) __THROW __nonnull((1));
|
||||
__readmemsz__(1,3) __readmemsz__(2,3)
|
||||
int memcmp(const void* s1, const void* s2, size_t n) __THROW __pure __nonnull((1,2));
|
||||
__writememsz__(1,3) __readmemsz__(2,3)
|
||||
void* memcpy(void* __restrict__ dest, const void* __restrict__ src, size_t n) __THROW __nonnull((1,2));
|
||||
|
||||
__writememsz__(1,3) __readmem__(2)
|
||||
char *strncpy(char* __restrict__ dest, const char* __restrict__ src, size_t n) __THROW __nonnull((1,2));
|
||||
__readmemsz__(1,3) __readmemsz__(2,3)
|
||||
int strncmp(const char* s1, const char* s2, size_t n) __THROW __pure __nonnull((1,2));
|
||||
|
||||
__writemem__(1) __readmem__(2)
|
||||
char *strcat(char* __restrict__ dest, const char* __restrict__ src) __THROW __nonnull((1,2));
|
||||
__writememsz__(1,3) __readmem__(2)
|
||||
char *strncat(char* __restrict__ dest, const char* __restrict__ src, size_t n) __THROW __nonnull((1,2));
|
||||
|
||||
__readmem__(1) __readmem__(2)
|
||||
int strcmp(const char *s1, const char *s2) __THROW __pure __nonnull((1,2));
|
||||
|
||||
__readmem__(1)
|
||||
size_t strlen(const char *s) __THROW __pure __nonnull((1));
|
||||
#ifdef _GNU_SOURCE
|
||||
__readmemsz__(1,2)
|
||||
size_t strnlen(const char *s,size_t maxlen) __THROW __pure __nonnull((1));
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
__readmem__(1) __readmem__(2)
|
||||
int strverscmp(const char* s1,const char* s2) __THROW __pure __nonnull((1,2));
|
||||
#endif
|
||||
|
||||
__readmem__(1) __readmem__(2)
|
||||
char *strstr(const char *haystack, const char *needle) __THROW __pure __nonnull((1,2));
|
||||
|
||||
__readmem__(1)
|
||||
char *strdup(const char *s) __THROW __attribute_malloc__ __nonnull((1));
|
||||
|
||||
__readmem__(1)
|
||||
char *strchr(const char *s, int c) __THROW __pure __nonnull((1));
|
||||
__readmem__(1)
|
||||
char *strrchr(const char *s, int c) __THROW __pure __nonnull((1));
|
||||
|
||||
__readmem__(1) __readmem__(2)
|
||||
size_t strspn(const char *s, const char *_accept) __THROW __nonnull((1,2));
|
||||
__readmem__(1) __readmem__(2)
|
||||
size_t strcspn(const char *s, const char *reject) __THROW __nonnull((1,2));
|
||||
|
||||
__readmem__(1) __readmem__(2)
|
||||
char *strpbrk(const char *s, const char *_accept) __THROW __nonnull((1,2));
|
||||
__readmem__(1) __readmem__(2)
|
||||
char *strsep(char ** __restrict__ stringp, const char * __restrict__ delim) __THROW __nonnull((1,2));
|
||||
|
||||
__readmemsz__(1,3)
|
||||
void* memchr(const void *s, int c, size_t n) __THROW __pure __nonnull((1));
|
||||
#ifdef _GNU_SOURCE
|
||||
__readmemsz__(1,3)
|
||||
void* memrchr(const void *s, int c, size_t n) __THROW __pure __nonnull((1));
|
||||
#endif
|
||||
|
||||
@@ -53,34 +80,46 @@ void* memrchr(const void *s, int c, size_t n) __THROW __pure __nonnull((1));
|
||||
char *strerror(int errnum) __THROW __attribute_const__;
|
||||
/* work around b0rken GNU crapware like tar 1.13.19 */
|
||||
#define strerror strerror
|
||||
__writememsz__(2,3)
|
||||
int strerror_r(int errnum,char* buf,size_t n) __THROW __attribute_dontuse__;
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
char *strsignal(int signum) __THROW __attribute_const__;
|
||||
__readmemsz__(1,2) __readmemsz__(3,4)
|
||||
void *memmem(const void *haystack, size_t haystacklen, const void *needle, size_t needlelen) __THROW __nonnull((1,3));
|
||||
|
||||
__writememsz__(1,3) __readmemsz__(2,3)
|
||||
void* mempcpy(void* __restrict__ dest,const void* __restrict__ src,size_t n) __THROW __nonnull((1,2));
|
||||
|
||||
__readmemsz__(1,2)
|
||||
char *strndup(const char *s,size_t n) __THROW __attribute_malloc__ __nonnull((1));
|
||||
|
||||
#define strdupa(s) ({ const char* tmp=s; size_t l=strlen(tmp)+1; char* x=alloca(l); memcpy(x,tmp,l); })
|
||||
#define strndupa(s,n) ({ const char* tmp=s; const char* y=memchr(tmp,0,(n)); size_t l=y?y-tmp:n; char* x=alloca(l+1); x[l]=0; memcpy(x,tmp,l); })
|
||||
#endif
|
||||
|
||||
__readwritemem__(1)
|
||||
char *strtok(char * __restrict__ s, const char * __restrict__ delim) __THROW __nonnull((2));
|
||||
__readwritemem__(1)
|
||||
char *strtok_r(char * __restrict__ s, const char * __restrict__ delim, char ** __restrict__ ptrptr) __THROW __nonnull((2,3));
|
||||
|
||||
__writememsz__(1,3) __readmemsz__(2,3)
|
||||
size_t strlcpy(char * __restrict__ dst, const char * __restrict__ src, size_t size) __THROW __nonnull((1,2));
|
||||
__writememsz__(1,3) __readmem__(2)
|
||||
size_t strlcat(char * __restrict__ dst, const char * __restrict__ src, size_t size) __THROW __nonnull((1,2));
|
||||
|
||||
__readmem__(1) __readmem__(2)
|
||||
int strcoll(const char *s1, const char *s2) __THROW __nonnull((1,2));
|
||||
__writememsz__(1,3) __readmemsz__(2,3)
|
||||
size_t strxfrm(char *dest, const char * __restrict__ src, size_t n) __THROW __nonnull((1,2));
|
||||
|
||||
#ifdef _BSD_SOURCE
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
char *stpcpy(char * __restrict__ dest, const char * __restrict__ src) __THROW __nonnull((1,2));
|
||||
__writemem__(1) __readmem__(2)
|
||||
char* stpcpy(char * __restrict__ dest, const char * __restrict__ src) __THROW __nonnull((1,2));
|
||||
__writememsz__(1,3) __readmemsz__(2,3)
|
||||
char* stpncpy(char* __restrict__ dest, const char* __restrict__ src, size_t n) __THROW __nonnull((1,2));
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
@@ -88,6 +127,31 @@ int ffsl(long i) __THROW __attribute_const__;
|
||||
int ffsll(long long i) __THROW __attribute_const__;
|
||||
#endif
|
||||
|
||||
/* This is an OpenBSD extension that acts like bzero but is hopefully
|
||||
* not removed from by the compiler's dead store optimization pass.
|
||||
* It is meant for scrubbing crypto keys and passwords from memory after
|
||||
* use, so they don't show up in swap files or core dumps. */
|
||||
__writememsz__(1,2)
|
||||
void explicit_bzero(void*, size_t) __THROW __dontinline__;
|
||||
|
||||
/* More OpenBSD extensions. These are for comparing passwords and hashes
|
||||
* without leaking timing information on how long the common prefix was.
|
||||
* The comparison always compares all the bytes, even if there is a
|
||||
* mismatch early on. */
|
||||
__readmemsz__(1,3) __readmemsz__(2,3)
|
||||
int timingsafe_memcmp(const void* s1, const void* s2, size_t n) __THROW __nonnull((1,2)) __dontinline__;
|
||||
__readmemsz__(1,3) __readmemsz__(2,3)
|
||||
int timingsafe_bcmp(const void* s1, const void* s2, size_t n) __THROW __nonnull((1,2)) __dontinline__;
|
||||
|
||||
/* NetBSD has its own extension that is happened to be mentioned in the
|
||||
* Linux man page for memcmp, so we support it, too */
|
||||
__readmemsz__(1,3) __readmemsz__(2,3)
|
||||
int consttime_memequal(void *b1, void *b2, size_t len) __THROW __nonnull((1,2)) __dontinline__;
|
||||
|
||||
/* NetBSD also has its own extension for memset :-( */
|
||||
__writememsz__(1,3)
|
||||
void* explicit_memset(void *b, int c, size_t len) __THROW __nonnull((1)) __dontinline__;
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
@@ -1,6 +1,10 @@
|
||||
#ifndef _SYS_CDEFS_H
|
||||
#define _SYS_CDEFS_H
|
||||
|
||||
#ifndef __has_attribute
|
||||
#define __has_attribute(foo) 0
|
||||
#endif
|
||||
|
||||
#ifndef __cplusplus
|
||||
#define __THROW
|
||||
#define __BEGIN_DECLS
|
||||
@@ -16,6 +20,27 @@
|
||||
#define __extension__
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6))
|
||||
#define __leaf , __leaf__
|
||||
#else
|
||||
#define __leaf
|
||||
#endif
|
||||
|
||||
#if defined(__clang__) && __has_attribute(leaf)
|
||||
#undef __leaf
|
||||
#define __leaf
|
||||
#endif
|
||||
|
||||
#if !defined(__cplusplus) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
|
||||
#undef __THROW
|
||||
#define __THROW __attribute__((__nothrow__ __leaf))
|
||||
#define __THROWNL __attribute__((__nothrow__))
|
||||
#endif
|
||||
|
||||
#ifndef __THROWNL
|
||||
#define __THROWNL __THROW
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 96))
|
||||
#define __pure __attribute__ ((__pure__))
|
||||
#else
|
||||
@@ -94,8 +119,8 @@
|
||||
#define __attribute_alloc__(x)
|
||||
#define __attribute_alloc2__(x,y)
|
||||
#else
|
||||
#define __attribute_alloc__(x) __attribute__((alloc_size(x))
|
||||
#define __attribute_alloc2__(x,y) __attribute__((alloc_size(x,y))
|
||||
#define __attribute_alloc__(x) __attribute__((alloc_size(x)))
|
||||
#define __attribute_alloc2__(x,y) __attribute__((alloc_size(x,y)))
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ < 5))
|
||||
@@ -110,4 +135,57 @@
|
||||
#define __attribute_formatarg__(x) __attribute__((format_arg(x)))
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
|
||||
#define __dontinline__
|
||||
#else
|
||||
#define __dontinline__ __attribute__((noinline))
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ < 6))
|
||||
#define __hidden__
|
||||
#else
|
||||
#define __hidden__ __attribute__((visibility("hidden")))
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 10)
|
||||
#define __readmem__(argno_ptr)
|
||||
#define __readmemsz__(argno_ptr, argno_size)
|
||||
#define __writemem__(argno_ptr)
|
||||
#define __writememsz__(argno_ptr, argno_size)
|
||||
#define __readwritemem__(argno_ptr)
|
||||
#define __readwritememsz__(argno_ptr, argno_size)
|
||||
#else
|
||||
#define __readmem__(argno_ptr) __attribute__((access(read_only, argno_ptr)))
|
||||
#define __readmemsz__(argno_ptr, argno_size) __attribute__((access(read_only, argno_ptr, argno_size)))
|
||||
#define __writemem__(argno_ptr) __attribute__((access(write_only, argno_ptr)))
|
||||
#define __writememsz__(argno_ptr, argno_size) __attribute__((access(write_only, argno_ptr, argno_size)))
|
||||
#define __readwritemem__(argno_ptr) __attribute__((access(read_write, argno_ptr)))
|
||||
#define __readwritememsz__(argno_ptr, argno_size) __attribute__((access(read_write, argno_ptr, argno_size)))
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ < 3))
|
||||
#define __warn(message)
|
||||
#define __error(message)
|
||||
#else
|
||||
#define __warn(message) __attribute__((warning(message)))
|
||||
#define __error(message) __attribute__((error(message)))
|
||||
#endif
|
||||
|
||||
#if __has_attribute(diagnose_if)
|
||||
#define __condwarn(condition, message) diagnose_if(condition, message, "warning")
|
||||
#define __conderr(condition, message) diagnose_if(condition, message, "error")
|
||||
#else
|
||||
#define __condwarn(condition, message)
|
||||
#define __conderr(condition, message)
|
||||
#endif
|
||||
|
||||
#if __has_attribute(enable_if)
|
||||
#endif
|
||||
|
||||
#if __has_attribute(callback)
|
||||
#define __callback(...) callback(__VA_ARGS__)
|
||||
#else
|
||||
#define __callback(...)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -13,10 +13,29 @@ __BEGIN_DECLS
|
||||
#define PROT_READ 0x1 /* page can be read */
|
||||
#define PROT_WRITE 0x2 /* page can be written */
|
||||
#define PROT_EXEC 0x4 /* page can be executed */
|
||||
#define PROT_SEM 0x8 /* page may be used for atomic ops */
|
||||
#define PROT_NONE 0x0 /* page can not be accessed */
|
||||
|
||||
#define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */
|
||||
#define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsdown vma */
|
||||
|
||||
#define MAP_SHARED 0x01 /* Share changes */
|
||||
#define MAP_PRIVATE 0x02 /* Changes are private */
|
||||
#define MAP_TYPE 0xf /* Mask for type of mapping */
|
||||
|
||||
#define MADV_REMOVE 9
|
||||
#define MADV_DONTFORK 10
|
||||
#define MADV_DOFORK 11
|
||||
#define MADV_MERGEABLE 12
|
||||
#define MADV_UNMERGEABLE 13
|
||||
#define MADV_HUGEPAGE 14
|
||||
#define MADV_NOHUGEPAGE 15
|
||||
#define MADV_DONTDUMP 16
|
||||
#define MADV_DODUMP 17
|
||||
#define MADV_HWPOISON 100
|
||||
#define MADV_SOFT_OFFLINE 101
|
||||
|
||||
#define MLOCK_ONFAULT 1 /* for mlock2 */
|
||||
|
||||
#if defined(__mips__)
|
||||
#define MAP_FIXED 0x010 /* Interpret addr exactly */
|
||||
@@ -27,11 +46,15 @@ __BEGIN_DECLS
|
||||
#define MAP_EXECUTABLE 0x4000 /* mark it as an executable */
|
||||
#define MAP_LOCKED 0x8000 /* pages are locked */
|
||||
#define MAP_POPULATE 0x10000
|
||||
#define MAP_NONBLOCK 0x20000
|
||||
#define MAP_STACK 0x40000
|
||||
#define MAP_HUGETLB 0x80000
|
||||
#define MS_ASYNC 0x0001 /* sync memory asynchronously */
|
||||
#define MS_INVALIDATE 0x0002 /* invalidate mappings & caches */
|
||||
#define MS_SYNC 0x0004 /* synchronous memory sync */
|
||||
#define MCL_CURRENT 1 /* lock all current mappings */
|
||||
#define MCL_FUTURE 2 /* lock all future mappings */
|
||||
#define MCL_ONFAULT 4 /* lock all pages that are faulted in */
|
||||
#define MADV_NORMAL 0x0 /* default page-in behavior */
|
||||
#define MADV_RANDOM 0x1 /* page-in minimum required */
|
||||
#define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */
|
||||
@@ -46,18 +69,23 @@ __BEGIN_DECLS
|
||||
#define MAP_LOCKED 0x8000 /* lock the mapping */
|
||||
#define MAP_NORESERVE 0x10000 /* don't check for reservations */
|
||||
#define MAP_POPULATE 0x20000
|
||||
#define MAP_NONBLOCK 0x40000
|
||||
#define MAP_STACK 0x80000
|
||||
#define MAP_HUGETLB 0x100000
|
||||
#define MS_ASYNC 1 /* sync memory asynchronously */
|
||||
#define MS_SYNC 2 /* synchronous memory sync */
|
||||
#define MS_INVALIDATE 4 /* invalidate the caches */
|
||||
#define MCL_CURRENT 8192 /* lock all currently mapped pages */
|
||||
#define MCL_FUTURE 16384 /* lock all additions to address space */
|
||||
#define MCL_ONFAULT 32768 /* lock all pages that are faulted in */
|
||||
#define MADV_NORMAL 0 /* no further special treatment */
|
||||
#define MADV_RANDOM 1 /* expect random page references */
|
||||
#define MADV_SEQUENTIAL 2 /* expect sequential page references */
|
||||
#define MADV_WILLNEED 3 /* will need these pages */
|
||||
#define MADV_SPACEAVAIL 5 /* ensure resources are available */
|
||||
#define MADV_DONTNEED 6 /* dont need these pages */
|
||||
#elif defined(__i386__) || defined(__s390__) || defined(__x86_64__)
|
||||
|
||||
#elif defined(__i386__) || defined(__s390__) || defined(__x86_64__) || defined(__arm__)
|
||||
#define MAP_FIXED 0x10 /* Interpret addr exactly */
|
||||
#define MAP_ANONYMOUS 0x20 /* don't use a file */
|
||||
#define MAP_GROWSDOWN 0x0100 /* stack-like segment */
|
||||
@@ -66,16 +94,21 @@ __BEGIN_DECLS
|
||||
#define MAP_LOCKED 0x2000 /* pages are locked */
|
||||
#define MAP_NORESERVE 0x4000 /* don't check for reservations */
|
||||
#define MAP_POPULATE 0x8000
|
||||
#define MAP_NONBLOCK 0x10000
|
||||
#define MAP_STACK 0x20000
|
||||
#define MAP_HUGETLB 0x40000
|
||||
#define MS_ASYNC 1 /* sync memory asynchronously */
|
||||
#define MS_INVALIDATE 2 /* invalidate the caches */
|
||||
#define MS_SYNC 4 /* synchronous memory sync */
|
||||
#define MCL_CURRENT 1 /* lock all current mappings */
|
||||
#define MCL_FUTURE 2 /* lock all future mappings */
|
||||
#define MCL_ONFAULT 4 /* lock all pages that are faulted in */
|
||||
#define MADV_NORMAL 0x0 /* default page-in behavior */
|
||||
#define MADV_RANDOM 0x1 /* page-in minimum required */
|
||||
#define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */
|
||||
#define MADV_WILLNEED 0x3 /* pre-fault pages */
|
||||
#define MADV_DONTNEED 0x4 /* discard these pages */
|
||||
|
||||
#elif defined(__sparc__) || defined (__powerpc__) || defined (__powerpc64__)
|
||||
#define MAP_FIXED 0x10 /* Interpret addr exactly */
|
||||
#define MAP_ANONYMOUS 0x20 /* don't use a file */
|
||||
@@ -88,38 +121,59 @@ __BEGIN_DECLS
|
||||
#define MAP_DENYWRITE 0x0800 /* ETXTBSY */
|
||||
#define MAP_EXECUTABLE 0x1000 /* mark it as an executable */
|
||||
#define MAP_POPULATE 0x8000
|
||||
#define MAP_NONBLOCK 0x10000
|
||||
#define MAP_STACK 0x20000
|
||||
#define MAP_HUGETLB 0x40000
|
||||
#define MS_ASYNC 1 /* sync memory asynchronously */
|
||||
#define MS_INVALIDATE 2 /* invalidate the caches */
|
||||
#define MS_SYNC 4 /* synchronous memory sync */
|
||||
#define MCL_CURRENT 0x2000 /* lock all currently mapped pages */
|
||||
#define MCL_FUTURE 0x4000 /* lock all additions to address space */
|
||||
#define MCL_ONFAULT 0x8000 /* lock all pages that are fauled in */
|
||||
#define MADV_NORMAL 0x0 /* default page-in behavior */
|
||||
#define MADV_RANDOM 0x1 /* page-in minimum required */
|
||||
#define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */
|
||||
#define MADV_WILLNEED 0x3 /* pre-fault pages */
|
||||
#define MADV_DONTNEED 0x4 /* discard these pages */
|
||||
#define MADV_FREE 0x5 /* (Solaris) contents can be freed */
|
||||
#elif defined (__arm__)
|
||||
|
||||
#elif defined(__aarch64__)
|
||||
#define MAP_FIXED 0x10 /* Interpret addr exactly */
|
||||
#define MAP_ANONYMOUS 0x20 /* don't use a file */
|
||||
#define MAP_GROWSDOWN 0x0100 /* stack-like segment */
|
||||
#define MAP_DENYWRITE 0x0800 /* ETXTBSY */
|
||||
#define MAP_EXECUTABLE 0x1000 /* mark it as an executable */
|
||||
#define MAP_LOCKED 0x2000 /* pages are locked */
|
||||
#define MAP_NORESERVE 0x4000 /* don't check for reservations */
|
||||
#define MAP_POPULATE 0x8000
|
||||
#define MAP_GROWSDOWN 0x00100 /* Stack-like segment. */
|
||||
#define MAP_DENYWRITE 0x00800 /* ETXTBSY */
|
||||
#define MAP_EXECUTABLE 0x01000 /* Mark it as an executable. */
|
||||
#define MAP_LOCKED 0x02000 /* Lock the mapping. */
|
||||
#define MAP_NORESERVE 0x04000 /* Don't check for reservations. */
|
||||
#define MAP_POPULATE 0x08000 /* Populate (prefault) pagetables. */
|
||||
#define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
|
||||
#define MAP_STACK 0x20000 /* Allocation is for a stack. */
|
||||
#define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
|
||||
#define MS_ASYNC 1 /* sync memory asynchronously */
|
||||
#define MS_INVALIDATE 2 /* invalidate the caches */
|
||||
#define MS_SYNC 4 /* synchronous memory sync */
|
||||
#define MCL_CURRENT 1 /* lock all current mappings */
|
||||
#define MCL_FUTURE 2 /* lock all future mappings */
|
||||
#define MADV_NORMAL 0x0 /* default page-in behavior */
|
||||
#define MADV_RANDOM 0x1 /* page-in minimum required */
|
||||
#define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */
|
||||
#define MADV_WILLNEED 0x3 /* pre-fault pages */
|
||||
#define MADV_DONTNEED 0x4 /* discard these pages */
|
||||
#define MCL_CURRENT 1 /* lock all currently mapped pages */
|
||||
#define MCL_FUTURE 2 /* lock all additions to address space */
|
||||
#define MCL_ONFAULT 4 /* lock all pages that are faulted in */
|
||||
#define MADV_NORMAL 0 /* No further special treatment. */
|
||||
#define MADV_RANDOM 1 /* Expect random page references. */
|
||||
#define MADV_SEQUENTIAL 2 /* Expect sequential page references. */
|
||||
#define MADV_WILLNEED 3 /* Will need these pages. */
|
||||
#define MADV_DONTNEED 4 /* Don't need these pages. */
|
||||
#define MADV_REMOVE 9 /* Remove these pages and resources. */
|
||||
#define MADV_DONTFORK 10 /* Do not inherit across fork. */
|
||||
#define MADV_DOFORK 11 /* Do inherit across fork. */
|
||||
#define MADV_MERGEABLE 12 /* KSM may merge identical pages. */
|
||||
#define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages. */
|
||||
#define MADV_HUGEPAGE 14 /* Worth backing with hugepages. */
|
||||
#define MADV_NOHUGEPAGE 15 /* Not worth backing with hugepages. */
|
||||
#define MADV_DONTDUMP 16 /* Explicity exclude from the core dump,
|
||||
overrides the coredump filter bits. */
|
||||
#define MADV_DODUMP 17 /* Clear the MADV_DONTDUMP flag. */
|
||||
#define MADV_HWPOISON 100 /* Poison a page for testing. */
|
||||
|
||||
#elif defined(__hppa__)
|
||||
#undef MAP_TYPE
|
||||
#define MAP_TYPE 0x03 /* Mask for type of mapping */
|
||||
#define MAP_FIXED 0x04 /* Interpret addr exactly */
|
||||
#define MAP_ANONYMOUS 0x10 /* don't use a file */
|
||||
@@ -130,6 +184,9 @@ __BEGIN_DECLS
|
||||
#define MAP_NORESERVE 0x4000 /* don't check for reservations */
|
||||
#define MAP_GROWSDOWN 0x8000 /* stack-like segment */
|
||||
#define MAP_POPULATE 0x10000
|
||||
#define MAP_NONBLOCK 0x20000
|
||||
#define MAP_STACK 0x40000
|
||||
#define MAP_HUGETLB 0x80000
|
||||
|
||||
#define MS_SYNC 1 /* synchronous memory sync */
|
||||
#define MS_ASYNC 2 /* sync memory asynchronously */
|
||||
@@ -137,6 +194,7 @@ __BEGIN_DECLS
|
||||
|
||||
#define MCL_CURRENT 1 /* lock all current mappings */
|
||||
#define MCL_FUTURE 2
|
||||
#define MCL_ONFAULT 4 /* lock all pages that are faulted in */
|
||||
|
||||
#define MADV_NORMAL 0 /* no further special treatment */
|
||||
#define MADV_RANDOM 1 /* expect random page references */
|
||||
@@ -154,9 +212,23 @@ __BEGIN_DECLS
|
||||
#define MADV_4M_PAGES 22 /* Use 4 Megabyte pages */
|
||||
#define MADV_16M_PAGES 24 /* Use 16 Megabyte pages */
|
||||
#define MADV_64M_PAGES 26 /* Use 64 Megabyte pages */
|
||||
|
||||
#undef MADV_MERGEABLE
|
||||
#undef MADV_UNMERGEABLE
|
||||
#undef MADV_HUGEPAGE
|
||||
#undef MADV_NOHUGEPAGE
|
||||
#undef MADV_DONTDUMP
|
||||
#undef MADV_DODUMP
|
||||
|
||||
#define MADV_MERGEABLE 65
|
||||
#define MADV_UNMERGEABLE 66
|
||||
#define MADV_HUGEPAGE 67
|
||||
#define MADV_NOHUGEPAGE 68
|
||||
#define MADV_DONTDUMP 69
|
||||
#define MADV_DODUMP 70
|
||||
|
||||
#elif defined(__ia64__)
|
||||
|
||||
#define MAP_TYPE 0x0f /* Mask for type of mapping */
|
||||
#define MAP_FIXED 0x10 /* Interpret addr exactly */
|
||||
#define MAP_ANONYMOUS 0x20 /* don't use a file */
|
||||
|
||||
@@ -167,8 +239,9 @@ __BEGIN_DECLS
|
||||
#define MAP_LOCKED 0x2000 /* pages are locked */
|
||||
#define MAP_NORESERVE 0x4000 /* don't check for reservations */
|
||||
#define MAP_POPULATE 0x8000
|
||||
#define MAP_WRITECOMBINED 0x10000 /* write-combine the area */
|
||||
#define MAP_NONCACHED 0x20000 /* don't cache the memory */
|
||||
#define MAP_NONBLOCK 0x10000
|
||||
#define MAP_STACK 0x20000
|
||||
#define MAP_HUGETLB 0x40000
|
||||
|
||||
#define MS_ASYNC 1 /* sync memory asynchronously */
|
||||
#define MS_INVALIDATE 2 /* invalidate the caches */
|
||||
@@ -187,16 +260,20 @@ __BEGIN_DECLS
|
||||
|
||||
#define MAP_FAILED ((void *) -1)
|
||||
|
||||
__attribute__((__warn_unused_result__))
|
||||
extern void *mmap (void *__addr, size_t __len, int __prot,
|
||||
int __flags, int __fd, off_t __offset);
|
||||
|
||||
extern int munmap (void *__addr, size_t __len) __THROW;
|
||||
extern int mprotect (void *__addr, size_t __len, int __prot) __THROW;
|
||||
extern int msync (void *__addr, size_t __len, int __flags) __THROW;
|
||||
|
||||
__attribute__((__warn_unused_result__))
|
||||
extern void *mremap (void *__addr, size_t __old_len, size_t __new_len,
|
||||
unsigned long __may_move) __THROW;
|
||||
extern int mincore (void *__start, size_t __len, unsigned char *__vec);
|
||||
|
||||
__attribute__((__warn_unused_result__))
|
||||
extern void *mmap64 (void *__addr, size_t __len, int __prot,
|
||||
int __flags, int __fd, off64_t __offset) __THROW;
|
||||
|
||||
@@ -206,14 +283,26 @@ extern void *mmap64 (void *__addr, size_t __len, int __prot,
|
||||
#endif
|
||||
#endif
|
||||
|
||||
__attribute__((__warn_unused_result__))
|
||||
int mlockall(int flags) __THROW;
|
||||
|
||||
__attribute__((__warn_unused_result__))
|
||||
int mlock(const void *addr, size_t len) __THROW;
|
||||
int munlock(const void *addr, size_t len) __THROW;
|
||||
int munlockall(void) __THROW;
|
||||
|
||||
__attribute__((__warn_unused_result__))
|
||||
int mlock2(const void *addr, size_t len, int flags) __THROW;
|
||||
|
||||
int madvise(void *start, size_t length, int advice) __THROW;
|
||||
|
||||
#define _POSIX_MAPPED_FILES
|
||||
#define POSIX_MADV_NORMAL MADV_NORMAL
|
||||
#define POSIX_MADV_SEQUENTIAL MADV_SEQUENTIAL
|
||||
#define POSIX_MADV_RANDOM MADV_RANDOM
|
||||
#define POSIX_MADV_WILLNEED MADV_WILLNEED
|
||||
#define POSIX_MADV_DONTNEED MADV_DONTNEED
|
||||
|
||||
#define posix_madvise(addr,len,advice) madvise(addr,len,advice)
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
||||
@@ -480,6 +480,65 @@ struct pt_regs {
|
||||
#define ARM_r0 uregs[0]
|
||||
#define ARM_ORIG_r0 uregs[17]
|
||||
|
||||
#elif defined(__aarch64__)
|
||||
|
||||
/*
|
||||
* PSR bits
|
||||
*/
|
||||
#define PSR_MODE_EL0t 0x00000000
|
||||
#define PSR_MODE_EL1t 0x00000004
|
||||
#define PSR_MODE_EL1h 0x00000005
|
||||
#define PSR_MODE_EL2t 0x00000008
|
||||
#define PSR_MODE_EL2h 0x00000009
|
||||
#define PSR_MODE_EL3t 0x0000000c
|
||||
#define PSR_MODE_EL3h 0x0000000d
|
||||
#define PSR_MODE_MASK 0x0000000f
|
||||
|
||||
/* AArch32 CPSR bits */
|
||||
#define PSR_MODE32_BIT 0x00000010
|
||||
|
||||
/* AArch64 SPSR bits */
|
||||
#define PSR_F_BIT 0x00000040
|
||||
#define PSR_I_BIT 0x00000080
|
||||
#define PSR_A_BIT 0x00000100
|
||||
#define PSR_D_BIT 0x00000200
|
||||
#define PSR_Q_BIT 0x08000000
|
||||
#define PSR_V_BIT 0x10000000
|
||||
#define PSR_C_BIT 0x20000000
|
||||
#define PSR_Z_BIT 0x40000000
|
||||
#define PSR_N_BIT 0x80000000
|
||||
|
||||
/*
|
||||
* Groups of PSR bits
|
||||
*/
|
||||
#define PSR_f 0xff000000 /* Flags */
|
||||
#define PSR_s 0x00ff0000 /* Status */
|
||||
#define PSR_x 0x0000ff00 /* Extension */
|
||||
#define PSR_c 0x000000ff /* Control */
|
||||
|
||||
struct pt_regs {
|
||||
uint64_t regs[31];
|
||||
uint64_t sp;
|
||||
uint64_t pc;
|
||||
uint64_t pstate;
|
||||
};
|
||||
|
||||
struct fpsimd_state {
|
||||
__uint128_t vregs[32];
|
||||
uint32_t fpsr;
|
||||
uint32_t fpcr;
|
||||
};
|
||||
|
||||
struct hwdebug_state {
|
||||
uint32_t dbg_info;
|
||||
uint32_t pad;
|
||||
struct {
|
||||
uint64_t addr;
|
||||
uint32_t ctrl;
|
||||
uint32_t pad;
|
||||
} dbg_regs[16];
|
||||
};
|
||||
|
||||
#elif defined(__alpha__)
|
||||
|
||||
struct pt_regs {
|
||||
@@ -528,6 +587,35 @@ struct switch_stack {
|
||||
unsigned long fp[32]; /* fp[31] is fpcr */
|
||||
};
|
||||
|
||||
#elif defined(__mips64__)
|
||||
|
||||
/* 0 - 31 are integer registers, 32 - 63 are fp registers. */
|
||||
#define FPR_BASE 32
|
||||
#define PC 64
|
||||
#define CAUSE 65
|
||||
#define BADVADDR 66
|
||||
#define MMHI 67
|
||||
#define MMLO 68
|
||||
#define FPC_CSR 69
|
||||
#define FPC_EIR 70
|
||||
#define DSP_BASE 71 /* 3 more hi / lo register pairs */
|
||||
#define DSP_CONTROL 77
|
||||
#define ACX 78
|
||||
|
||||
struct pt_regs {
|
||||
/* Saved main processor registers. */
|
||||
unsigned long regs[32];
|
||||
|
||||
/* Saved special registers. */
|
||||
unsigned long lo;
|
||||
unsigned long hi;
|
||||
unsigned long cp0_epc;
|
||||
unsigned long cp0_badvaddr;
|
||||
unsigned long cp0_status;
|
||||
unsigned long cp0_cause;
|
||||
} __attribute__ ((aligned (8)));
|
||||
|
||||
|
||||
#elif defined(__mips__)
|
||||
|
||||
/* 0 - 31 are integer registers, 32 - 63 are fp registers. */
|
||||
|
||||
Loaded 100 of 315 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user