1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-06 23:46:13 +02:00

bump gocui

This commit is contained in:
Jesse Duffield 2021-09-27 19:51:44 +10:00
parent ab0117c416
commit c8e9d1b4fc
112 changed files with 4773 additions and 4538 deletions

12
go.mod
View File

@ -11,7 +11,7 @@ require (
github.com/creack/pty v1.1.11 github.com/creack/pty v1.1.11
github.com/fatih/color v1.9.0 // indirect github.com/fatih/color v1.9.0 // indirect
github.com/fsnotify/fsnotify v1.4.7 github.com/fsnotify/fsnotify v1.4.7
github.com/gdamore/tcell/v2 v2.3.11 // indirect github.com/gdamore/tcell/v2 v2.4.0 // indirect
github.com/go-errors/errors v1.4.0 github.com/go-errors/errors v1.4.0
github.com/go-logfmt/logfmt v0.5.0 // indirect github.com/go-logfmt/logfmt v0.5.0 // indirect
github.com/golang-collections/collections v0.0.0-20130729185459-604e922904d3 github.com/golang-collections/collections v0.0.0-20130729185459-604e922904d3
@ -21,7 +21,7 @@ require (
github.com/imdario/mergo v0.3.11 github.com/imdario/mergo v0.3.11
github.com/integrii/flaggy v1.4.0 github.com/integrii/flaggy v1.4.0
github.com/jesseduffield/go-git/v5 v5.1.2-0.20201006095850-341962be15a4 github.com/jesseduffield/go-git/v5 v5.1.2-0.20201006095850-341962be15a4
github.com/jesseduffield/gocui v0.3.1-0.20210614081440-74b42ecad52b github.com/jesseduffield/gocui v0.3.1-0.20210927094955-aa62b56c153a
github.com/jesseduffield/yaml v2.1.0+incompatible github.com/jesseduffield/yaml v2.1.0+incompatible
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
@ -29,7 +29,7 @@ require (
github.com/kyokomi/emoji/v2 v2.2.8 github.com/kyokomi/emoji/v2 v2.2.8
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.7 // indirect github.com/mattn/go-colorable v0.1.7 // indirect
github.com/mattn/go-runewidth v0.0.13 github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mgutz/str v1.2.0 github.com/mgutz/str v1.2.0
github.com/onsi/ginkgo v1.10.3 // indirect github.com/onsi/ginkgo v1.10.3 // indirect
github.com/onsi/gomega v1.7.1 // indirect github.com/onsi/gomega v1.7.1 // indirect
@ -40,7 +40,7 @@ require (
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0 // indirect golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0 // indirect
golang.org/x/net v0.0.0-20201002202402-0a1ea396d57c // indirect golang.org/x/net v0.0.0-20201002202402-0a1ea396d57c // indirect
golang.org/x/sys v0.0.0-20210611083646-a4fc73990273 // indirect golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6 // indirect
golang.org/x/term v0.0.0-20210503060354-a79de5458b56 // indirect golang.org/x/term v0.0.0-20210916214954-140adaaadfaf // indirect
golang.org/x/text v0.3.6 // indirect golang.org/x/text v0.3.7 // indirect
) )

11
go.sum
View File

@ -35,6 +35,8 @@ github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo
github.com/gdamore/tcell/v2 v2.0.0/go.mod h1:vSVL/GV5mCSlPC6thFP5kfOFdM9MGZcalipmpTxTgQA= github.com/gdamore/tcell/v2 v2.0.0/go.mod h1:vSVL/GV5mCSlPC6thFP5kfOFdM9MGZcalipmpTxTgQA=
github.com/gdamore/tcell/v2 v2.3.11 h1:ECO6WqHGbKZ3HrSL7bG/zArMCmLaNr5vcjjMVnLHpzc= github.com/gdamore/tcell/v2 v2.3.11 h1:ECO6WqHGbKZ3HrSL7bG/zArMCmLaNr5vcjjMVnLHpzc=
github.com/gdamore/tcell/v2 v2.3.11/go.mod h1:cTTuF84Dlj/RqmaCIV5p4w8uG1zWdk0SF6oBpwHp4fU= github.com/gdamore/tcell/v2 v2.3.11/go.mod h1:cTTuF84Dlj/RqmaCIV5p4w8uG1zWdk0SF6oBpwHp4fU=
github.com/gdamore/tcell/v2 v2.4.0 h1:W6dxJEmaxYvhICFoTY3WrLLEXsQ11SaFnKGVEXW57KM=
github.com/gdamore/tcell/v2 v2.4.0/go.mod h1:cTTuF84Dlj/RqmaCIV5p4w8uG1zWdk0SF6oBpwHp4fU=
github.com/gliderlabs/ssh v0.2.2 h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0= github.com/gliderlabs/ssh v0.2.2 h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0=
github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=
github.com/go-errors/errors v1.0.2/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs= github.com/go-errors/errors v1.0.2/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs=
@ -72,6 +74,8 @@ github.com/jesseduffield/go-git/v5 v5.1.2-0.20201006095850-341962be15a4 h1:GOQrm
github.com/jesseduffield/go-git/v5 v5.1.2-0.20201006095850-341962be15a4/go.mod h1:nGNEErzf+NRznT+N2SWqmHnDnF9aLgANB1CUNEan09o= github.com/jesseduffield/go-git/v5 v5.1.2-0.20201006095850-341962be15a4/go.mod h1:nGNEErzf+NRznT+N2SWqmHnDnF9aLgANB1CUNEan09o=
github.com/jesseduffield/gocui v0.3.1-0.20210614081440-74b42ecad52b h1:Wc2zx6xKLNaHc7/wIO6iYyDSjcFGN1Osd6tQvbgMmgo= github.com/jesseduffield/gocui v0.3.1-0.20210614081440-74b42ecad52b h1:Wc2zx6xKLNaHc7/wIO6iYyDSjcFGN1Osd6tQvbgMmgo=
github.com/jesseduffield/gocui v0.3.1-0.20210614081440-74b42ecad52b/go.mod h1:QWq79xplEoyhQO+dgpk3sojjTVRKjQklyTlzm5nC5Kg= github.com/jesseduffield/gocui v0.3.1-0.20210614081440-74b42ecad52b/go.mod h1:QWq79xplEoyhQO+dgpk3sojjTVRKjQklyTlzm5nC5Kg=
github.com/jesseduffield/gocui v0.3.1-0.20210927094955-aa62b56c153a h1:WAxXz26dZbwxmWdFrkKjpuExmgRRVG4l1qKRLKmQZBw=
github.com/jesseduffield/gocui v0.3.1-0.20210927094955-aa62b56c153a/go.mod h1:QWq79xplEoyhQO+dgpk3sojjTVRKjQklyTlzm5nC5Kg=
github.com/jesseduffield/yaml v2.1.0+incompatible h1:HWQJ1gIv2zHKbDYNp0Jwjlj24K8aqpFHnMCynY1EpmE= github.com/jesseduffield/yaml v2.1.0+incompatible h1:HWQJ1gIv2zHKbDYNp0Jwjlj24K8aqpFHnMCynY1EpmE=
github.com/jesseduffield/yaml v2.1.0+incompatible/go.mod h1:w0xGhOSIJCGYYW+hnFPTutCy5aACpkcwbmORt5axGqk= github.com/jesseduffield/yaml v2.1.0+incompatible/go.mod h1:w0xGhOSIJCGYYW+hnFPTutCy5aACpkcwbmORt5axGqk=
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
@ -177,13 +181,20 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210611083646-a4fc73990273 h1:faDu4veV+8pcThn4fewv6TVlNCezafGoC1gM/mxQLbQ= golang.org/x/sys v0.0.0-20210611083646-a4fc73990273 h1:faDu4veV+8pcThn4fewv6TVlNCezafGoC1gM/mxQLbQ=
golang.org/x/sys v0.0.0-20210611083646-a4fc73990273/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210611083646-a4fc73990273/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6 h1:foEbQz/B0Oz6YIqu/69kfXPYeFQAuuMYFkjaqXzl5Wo=
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210503060354-a79de5458b56 h1:b8jxX3zqjpqb2LklXPzKSGJhzyxCOZSz8ncv8Nv+y7w= golang.org/x/term v0.0.0-20210503060354-a79de5458b56 h1:b8jxX3zqjpqb2LklXPzKSGJhzyxCOZSz8ncv8Nv+y7w=
golang.org/x/term v0.0.0-20210503060354-a79de5458b56/go.mod h1:tfny5GFUkzUvx4ps4ajbZsCe5lw1metzhBm9T3x7oIY= golang.org/x/term v0.0.0-20210503060354-a79de5458b56/go.mod h1:tfny5GFUkzUvx4ps4ajbZsCe5lw1metzhBm9T3x7oIY=
golang.org/x/term v0.0.0-20210916214954-140adaaadfaf h1:Ihq/mm/suC88gF8WFcVwk+OV6Tq+wyA1O0E5UEvDglI=
golang.org/x/term v0.0.0-20210916214954-140adaaadfaf/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

View File

@ -1,18 +1,18 @@
== Breaking Changes in _Tcell_ v2 ## Breaking Changes in _Tcell_ v2
A number of changes were made to _Tcell_ for version two, and some of these A number of changes were made to _Tcell_ for version two, and some of these are breaking.
are breaking.
=== Import Path ### Import Path
The import path for tcell has changed to `github.com/gdamore/tcell/v2` to reflect a new major version. The import path for tcell has changed to `github.com/gdamore/tcell/v2` to reflect a new major version.
=== Style Is Not Numeric ### Style Is Not Numeric
The type `Style` has changed to a structure, to allow us to add additional data such as flags for color setting, more attribute bits, and so forth. The type `Style` has changed to a structure, to allow us to add additional data such as flags for color setting,
more attribute bits, and so forth.
Applications that relied on this being a number will need to be updated to use the accessor methods. Applications that relied on this being a number will need to be updated to use the accessor methods.
=== Mouse Event Changes ### Mouse Event Changes
The middle mouse button was reported as button 2 on Linux, but as button 3 on Windows, The middle mouse button was reported as button 2 on Linux, but as button 3 on Windows,
and the right mouse button was reported the reverse way. and the right mouse button was reported the reverse way.
@ -23,12 +23,12 @@ To help make this clearer, new symbols `ButtonPrimary`, `ButtonSecondary`, and
Usually the left button will be considered the Primary, and the right will be the Secondary.) Usually the left button will be considered the Primary, and the right will be the Secondary.)
Applications may need to adjust their handling of mouse buttons 2 and 3 accordingly. Applications may need to adjust their handling of mouse buttons 2 and 3 accordingly.
=== Terminals Removed ### Terminals Removed
A number of terminals have been removed. A number of terminals have been removed.
These are mostly ancient definitions unlikely to be used by anyone, such as `adm3a`. These are mostly ancient definitions unlikely to be used by anyone, such as `adm3a`.
=== High Number Function Keys ### High Number Function Keys
Historically terminfo reported function keys with modifiers set as a different Historically terminfo reported function keys with modifiers set as a different
function key altogether. For example, Shift-F1 was reported as F13 on XTerm. function key altogether. For example, Shift-F1 was reported as F13 on XTerm.
@ -36,44 +36,44 @@ _Tcell_ now prefers to report these using the base key (such as F1) with modifie
This works on XTerm and VTE based emulators, but some emulators may not support this. This works on XTerm and VTE based emulators, but some emulators may not support this.
The new behavior more closely aligns with behavior on Windows platforms. The new behavior more closely aligns with behavior on Windows platforms.
== New Features in _Tcell_ v2 ## New Features in _Tcell_ v2
These features are not breaking, but are introduced in version 2. These features are not breaking, but are introduced in version 2.
=== Improved Modifier Support ### Improved Modifier Support
For terminals that appear to behave like the venerable XTerm, _tcell_ For terminals that appear to behave like the venerable XTerm, _tcell_
automatically adds modifier reporting for ALT, CTRL, SHIFT, and META keys automatically adds modifier reporting for ALT, CTRL, SHIFT, and META keys
when the terminal reports them. when the terminal reports them.
=== Better Support for Palettes (Themes) ### Better Support for Palettes (Themes)
When using a color by its name or palette entry, _Tcell_ now tries to When using a color by its name or palette entry, _Tcell_ now tries to
use that palette entry as is; this should avoid some inconsistency and undesirable use that palette entry as is; this should avoid some inconsistency and respect
overriding of colors where colors would override settings made in the terminal. terminal themes correctly.
When true fidelity to RGB values is needed, the new `TrueColor()` API can be used When true fidelity to RGB values is needed, the new `TrueColor()` API can be used
to create a direct color, which bypasses the palette altogether. to create a direct color, which bypasses the palette altogether.
=== Automatic TrueColor Detection ### Automatic TrueColor Detection
For some terminals, if the `Tc` or `RGB` properties are present in terminfo, For some terminals, if the `Tc` or `RGB` properties are present in terminfo,
_Tcell_ will automatically assume the terminal supports 24-bit color. _Tcell_ will automatically assume the terminal supports 24-bit color.
=== ColorReset ### ColorReset
A new color value, `ColorReset` can be used on the foreground or background A new color value, `ColorReset` can be used on the foreground or background
to reset the color the default used by the terminal. to reset the color the default used by the terminal.
=== tmux Support ### tmux Support
_Tcell_ now has improved support for tmux, when the `$TERM` variable is set to "tmux". _Tcell_ now has improved support for tmux, when the `$TERM` variable is set to "tmux".
=== Strikethrough Support ### Strikethrough Support
_Tcell_ has support for strikethrough when the terminal supports it, using the new `StrikeThrough()` API. _Tcell_ has support for strikethrough when the terminal supports it, using the new `StrikeThrough()` API.
=== Bracketed Paste Support ### Bracketed Paste Support
_Tcell_ provides the long requested capability to discriminate paste event by using the _Tcell_ provides the long requested capability to discriminate paste event by using the
bracketed-paste capability present in some terminals. This is automatically available on bracketed-paste capability present in some terminals. This is automatically available on

View File

@ -1,88 +1,85 @@
= tcell
# ![Tcell](logos/tcell.png)
image:https://img.shields.io/travis/gdamore/tcell.svg?label=linux[Linux Status,link="https://travis-ci.org/gdamore/tcell"] _Tcell_ is a _Go_ package that provides a cell based view for text terminals, like _XTerm_.
image:https://img.shields.io/appveyor/ci/gdamore/tcell.svg?label=windows[Windows Status,link="https://ci.appveyor.com/project/gdamore/tcell"]
image:https://img.shields.io/badge/license-APACHE2-blue.svg[Apache License,link="https://github.com/gdamore/tcell/blob/master/LICENSE"]
image:https://img.shields.io/badge/godoc-reference-blue.svg[GoDoc,link="https://godoc.org/github.com/gdamore/tcell"]
image:https://goreportcard.com/badge/gdamore/tcell[Go Report Card,link="http://goreportcard.com/report/gdamore/tcell"]
image:https://img.shields.io/discord/639503822733180969?label=discord[Discord,link="https://discord.gg/urTTxDN"]
image:https://codecov.io/gh/gdamore/tcell/branch/master/graph/badge.svg[codecov,link="https://codecov.io/gh/gdamore/tcell"]
[cols="2",grid="none"]
|===
|_Tcell_ is a _Go_ package that provides a cell based view for text terminals, like _XTerm_.
It was inspired by _termbox_, but includes many additional improvements. It was inspired by _termbox_, but includes many additional improvements.
a|[.right]
image::logos/tcell.png[float="right"] [![Linux Status](https://img.shields.io/travis/gdamore/tcell.svg?label=linux)](https://travis-ci.org/gdamore/tcell)
|=== [![Windows Status](https://img.shields.io/appveyor/ci/gdamore/tcell.svg?label=windows)](https://ci.appveyor.com/project/gdamore/tcell)
[![Apache License](https://img.shields.io/badge/license-APACHE2-blue.svg)](https://github.com/gdamore/tcell/blob/master/LICENSE)
[![Documentation](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/gdamore/tcell/v2)
[![Report Card](https://goreportcard.com/badge/gdamore/tcell)](http://goreportcard.com/report/gdamore/tcell/v2)
[![Discord](https://img.shields.io/discord/639503822733180969?label=discord)](https://discord.gg/urTTxDN)
[![Coverage](https://codecov.io/gh/gdamore/tcell/branch/master/graph/badge.svg)](https://codecov.io/gh/gdamore/tcell)
NOTE: This is version 2 of _Tcell_. There are breaking changes relative to version 1. NOTE: This is version 2 of _Tcell_. There are breaking changes relative to version 1.
Version 1.x remains available using the import `github.com/gdamore/tcell`. Version 1.x remains available using the import `github.com/gdamore/tcell`.
== Examples ## Tutorial
* https://github.com/gdamore/proxima5[proxima5] - space shooter (https://youtu.be/jNxKTCmY_bQ[video]) A brief, and still somewhat rough, [tutorial](TUTORIAL.md) is available.
* https://github.com/gdamore/govisor[govisor] - service management UI (http://2.bp.blogspot.com/--OsvnfzSNow/Vf7aqMw3zXI/AAAAAAAAARo/uOMtOvw4Sbg/s1600/Screen%2BShot%2B2015-09-20%2Bat%2B9.08.41%2BAM.png[screenshot]) ## Examples
* mouse demo - included mouse test (http://2.bp.blogspot.com/-fWvW5opT0es/VhIdItdKqJI/AAAAAAAAATE/7Ojc0L1SpB0/s1600/Screen%2BShot%2B2015-10-04%2Bat%2B11.47.13%2BPM.png[screenshot])
* https://github.com/gdamore/gomatrix[gomatrix] - converted from Termbox
* https://github.com/zyedidia/micro/[micro] - lightweight text editor with syntax-highlighting and themes
* https://github.com/viktomas/godu[godu] - simple golang utility helping to discover large files/folders.
* https://github.com/rivo/tview/[tview] - rich interactive widgets for terminal UIs
* https://github.com/awesome-gocui/gocui[awesome gocui] - Go Console User Interface
* https://github.com/rgm3/gomandelbrot[gomandelbrot] - Mandelbrot!
* https://github.com/senorprogrammer/wtf[WTF]- Personal information dashboard for your terminal
* https://github.com/browsh-org/browsh[browsh] - A fully-modern text-based browser, rendering to TTY and browsers (https://www.youtube.com/watch?v=HZq86XfBoRo[video])
* https://github.com/sachaos/go-life[go-life] - Conway's Game of Life.
* https://github.com/gcla/gowid[gowid] - compositional widgets for terminal UIs, inspired by urwid
* https://termshark.io[termshark] - a terminal UI for tshark, inspired by Wireshark, built on gowid
* https://github.com/MichaelS11/go-tetris[go-tetris] - Go Tetris with AI option
* https://github.com/junegunn/fzf[fzf] - A command-line fuzzy finder
* https://github.com/esimov/ascii-fluid[ascii-fluid] - A terminal based ASCII fluid simulation controlled by webcam
* https://gitlab.com/tslocum/cbind[cbind] - Provides key event encoding, decoding and handling
* https://github.com/spinzed/tpong[tpong] - The old-school Pong remade in terminal
* https://git.sr.ht/~sircmpwn/aerc[aerc] - An email client for your terminal.
* https://github.com/ezeoleaf/tblogs[tblogs] - A terminal based development blogs reader
* https://github.com/lallassu/spinc[spinc] - An irssi inspired terminal chat application for Cisco Spark/WebEx
* https://github.com/lallassu/gorss[gorss] - A RSS/Atom feed reader for your terminal
* https://github.com/Bios-Marcel/memoryalike[memoryalike] - A game where you have to memorize runes and hit their respective keys
* https://github.com/gokcehan/lf[lf] - Terminal file manager
* https://github.com/bunyk/gokeybr[gokeybr] - program that helps to deliberately practice your typing.
* https://github.com/jbaramidze/gonano[gonano] - CLI test editor
* https://github.com/tmountain/uchess[uchess] - A UCI chess client for your terminal
* https://github.com/a-h/min[min] - A Gemini browser
* https://github.com/noborus/ov[ov] - Terminal pager
* https://github.com/gcla/tmux-wormhole[tmux-wormhole] - A tmux plugin to transfer files with magic wormhole
* https://github.com/anaseto/gruid-tcell[gruid-tcell] - A tcell driver for the grid based UI and game framework gruid.
* https://github.com/aretext/aretext[aretext] - Minimalist text editor with vim key bindings.
== Pure Go Terminfo Database * [proxima5](https://github.com/gdamore/proxima5) - space shooter ([video](https://youtu.be/jNxKTCmY_bQ))
* [govisor](https://github.com/gdamore/govisor) - service management UI ([screenshot](http://2.bp.blogspot.com/--OsvnfzSNow/Vf7aqMw3zXI/AAAAAAAAARo/uOMtOvw4Sbg/s1600/Screen%2BShot%2B2015-09-20%2Bat%2B9.08.41%2BAM.png))
* mouse demo - included mouse test ([screenshot](http://2.bp.blogspot.com/-fWvW5opT0es/VhIdItdKqJI/AAAAAAAAATE/7Ojc0L1SpB0/s1600/Screen%2BShot%2B2015-10-04%2Bat%2B11.47.13%2BPM.png))
* [gomatrix](https://github.com/gdamore/gomatrix) - converted from Termbox
* [micro](https://github.com/zyedidia/micro/) - lightweight text editor with syntax-highlighting and themes
* [godu](https://github.com/viktomas/godu) - utility to discover large files/folders
* [tview](https://github.com/rivo/tview/) - rich interactive widgets
* [cview](https://code.rocketnine.space/tslocum/cview) - user interface toolkit (fork of _tview_)
* [awsome gocui](https://github.com/awesome-gocui/gocui) - Go Console User Interface
* [gomandelbrot](https://github.com/rgm3/gomandelbrot) - Mandelbrot!
* [WTF](https://github.com/senorprogrammer/wtf) - personal information dashboard
* [browsh](https://github.com/browsh-org/browsh) - modern web browser ([video](https://www.youtube.com/watch?v=HZq86XfBoRo))
* [go-life](https://github.com/sachaos/go-life) - Conway's Game of Life
* [gowid](https://github.com/gcla/gowid) - compositional widgets for terminal UIs, inspired by _urwid_
* [termshark](https://termshark.io) - interface for _tshark_, inspired by Wireshark, built on _gowid_
* [go-tetris](https://github.com/MichaelS11/go-tetris) - Go Tetris with AI option
* [fzf](https://github.com/junegunn/fzf) - command-line fuzzy finder
* [ascii-fluid](https://github.com/esimov/ascii-fluid) - fluid simulation controlled by webcam
* [cbind](https://code.rocketnine.space/tslocum/cbind) - key event encoding, decoding and handling
* [tpong](https://github.com/spinzed/tpong) - old-school Pong
* [aerc](https://git.sr.ht/~sircmpwn/aerc) - email client
* [tblogs](https://github.com/ezeoleaf/tblogs) - development blogs reader
* [spinc](https://github.com/lallassu/spinc) - _irssi_ inspired chat application for Cisco Spark/WebEx
* [gorss](https://github.com/lallassu/gorss) - RSS/Atom feed reader
* [memoryalike](https://github.com/Bios-Marcel/memoryalike) - memorization game
* [lf](https://github.com/gokcehan/lf) - file manager
* [gokeybr](https://github.com/bunyk/gokeybr) - deliberately practice your typing
* [gonano](https://github.com/jbaramidze/gonano) - editor, mimics _nano_
* [uchess](https://github.com/tmountain/uchess) - UCI chess client
* [min](https://github.com/a-h/min) - Gemini browser
* [ov](https://github.com/noborus/ov) - file pager
* [tmux-wormhole](https://github.com/gcla/tmux-wormhole) - _tmux_ plugin to transfer files
* [gruid-tcell](https://github.com/anaseto/gruid-tcell) - driver for the grid based UI and game framework
* [aretext](https://github.com/aretext/aretext) - minimalist text editor with _vim_ key bindings
## Pure Go Terminfo Database
_Tcell_ includes a full parser and expander for terminfo capability strings, _Tcell_ includes a full parser and expander for terminfo capability strings,
so that it can avoid hard coding escape strings for formatting. It also favors so that it can avoid hard coding escape strings for formatting. It also favors
portability, and includes support for all POSIX systems. portability, and includes support for all POSIX systems.
The database is also flexible & extensible, and can modified by either running The database is also flexible & extensible, and can be modified by either running
a program to build the entire database, or an entry for just a single terminal. a program to build the entire database, or an entry for just a single terminal.
== More Portable ## More Portable
_Tcell_ is portable to a wide variety of systems, and is pure Go, without _Tcell_ is portable to a wide variety of systems, and is pure Go, without
any need for CGO. any need for CGO.
_Tcell_ is believed to work with mainstream systems officially supported by golang. _Tcell_ is believed to work with mainstream systems officially supported by golang.
== No Async IO ## No Async IO
_Tcell_ is able to operate without requiring `SIGIO` signals (unlike _termbox_), _Tcell_ is able to operate without requiring `SIGIO` signals (unlike _termbox_),
or asynchronous I/O, and can instead use standard Go file or asynchronous I/O, and can instead use standard Go file objects and Go routines.
objects and Go routines.
This means it should be safe, especially for This means it should be safe, especially for
use with programs that use exec, or otherwise need to manipulate the use with programs that use exec, or otherwise need to manipulate the tty streams.
tty streams. This model is also much closer to idiomatic Go, leading to fewer surprises.
This model is also much closer to idiomatic Go, leading
to fewer surprises.
== Rich Unicode & non-Unicode support ## Rich Unicode & non-Unicode support
_Tcell_ includes enhanced support for Unicode, including wide characters and _Tcell_ includes enhanced support for Unicode, including wide characters and
combining characters, provided your terminal can support them. combining characters, provided your terminal can support them.
@ -91,18 +88,19 @@ Windows terminals generally don't support the full Unicode repertoire.
It will also convert to and from Unicode locales, so that the program It will also convert to and from Unicode locales, so that the program
can work with UTF-8 internally, and get reasonable output in other locales. can work with UTF-8 internally, and get reasonable output in other locales.
_Tcell_ tries hard to convert to native characters on both input and output, and _Tcell_ tries hard to convert to native characters on both input and output.
on output _Tcell_ even makes use of the alternate character set to facilitate On output _Tcell_ even makes use of the alternate character set to facilitate
drawing certain characters. drawing certain characters.
== More Function Keys ## More Function Keys
_Tcell_ also has richer support for a larger number of special keys that some terminals can send. _Tcell_ also has richer support for a larger number of special keys that some
terminals can send.
== Better Color Handling ## Better Color Handling
_Tcell_ will respect your terminal's color space as specified within your terminfo _Tcell_ will respect your terminal's color space as specified within your terminfo entries.
entries, so that for example attempts to emit color sequences on VT100 terminals For example attempts to emit color sequences on VT100 terminals
won't result in unintended consequences. won't result in unintended consequences.
In legacy Windows mode, _Tcell_ supports 16 colors, bold, dim, and reverse, In legacy Windows mode, _Tcell_ supports 16 colors, bold, dim, and reverse,
@ -113,7 +111,7 @@ Modern Windows 10 can benefit from much richer colors however.
_Tcell_ maps 16 colors down to 8, for terminals that need it. _Tcell_ maps 16 colors down to 8, for terminals that need it.
(The upper 8 colors are just brighter versions of the lower 8.) (The upper 8 colors are just brighter versions of the lower 8.)
== Better Mouse Support ## Better Mouse Support
_Tcell_ supports enhanced mouse tracking mode, so your application can receive _Tcell_ supports enhanced mouse tracking mode, so your application can receive
regular mouse motion events, and wheel events, if your terminal supports it. regular mouse motion events, and wheel events, if your terminal supports it.
@ -122,51 +120,50 @@ regular mouse motion events, and wheel events, if your terminal supports it.
and does not support mouse interaction. The stock Windows 10 console host and does not support mouse interaction. The stock Windows 10 console host
fired up with cmd.exe or PowerShell works fine however.) fired up with cmd.exe or PowerShell works fine however.)
== _Termbox_ Compatibility ## _Termbox_ Compatibility
A compatibility layer for _termbox_ is provided in the `compat` directory. A compatibility layer for _termbox_ is provided in the `compat` directory.
To use it, try importing `github.com/gdamore/tcell/termbox` instead. To use it, try importing `github.com/gdamore/tcell/termbox` instead.
Most _termbox-go_ programs will probably work without further modification. Most _termbox-go_ programs will probably work without further modification.
== Working With Unicode ## Working With Unicode
Internally Tcell uses UTF-8, just like Go. Internally _Tcell_ uses UTF-8, just like Go.
However, Tcell understands how to However, _Tcell_ understands how to
convert to and from other character sets, using the capabilities of convert to and from other character sets, using the capabilities of
the `golang.org/x/text/encoding packages`. the `golang.org/x/text/encoding packages`.
Your application must supply Your application must supply
them, as the full set of the most common ones bloats the program by about 2MB. them, as the full set of the most common ones bloats the program by about 2 MB.
If you're lazy, and want them all anyway, see the `encoding` sub-directory. If you're lazy, and want them all anyway, see the `encoding` sub-directory.
== Wide & Combining Characters ## Wide & Combining Characters
The `SetContent()` API takes a primary rune, and an optional list of combining runes. The `SetContent()` API takes a primary rune, and an optional list of combining runes.
If any of the runes is a wide (East Asian) rune occupying two cells, If any of the runes is a wide (East Asian) rune occupying two cells,
then the library will skip output from the following cell, but care must be then the library will skip output from the following cell. Care must be
taken in the application to avoid explicitly attempting to set content in the taken in the application to avoid explicitly attempting to set content in the
next cell, otherwise the results are undefined. (Normally wide character next cell, otherwise the results are undefined. (Normally the wide character
is displayed, and the other character is not; do not depend on that behavior.) is displayed, and the other character is not; do not depend on that behavior.)
Older terminal applications (especially on systems like Windows 8) lack support Older terminal applications (especially on systems like Windows 8) lack support
for advanced Unicode, and thus may not fare well. for advanced Unicode, and thus may not fare well.
== Colors ## Colors
_Tcell_ assumes the ANSI/XTerm color model, including the 256 color map that _Tcell_ assumes the ANSI/XTerm color model, including the 256 color map that
XTerm uses when it supports 256 colors. The terminfo guidance will be XTerm uses when it supports 256 colors. The terminfo guidance will be
honored, with respect to the number of colors supported. Also, only honored, with respect to the number of colors supported. Also, only
terminals which expose ANSI style `setaf` and `setab` will support color; terminals which expose ANSI style `setaf` and `setab` will support color;
if you have a color terminal that only has `setf` and `setb`, please submit if you have a color terminal that only has `setf` and `setb`, please submit
a ticket; it wouldn't be hard to add that if there is need. a ticket.
== 24-bit Color ## 24-bit Color
_Tcell_ _supports true color_! (That is, if your terminal can support it, _Tcell_ _supports 24-bit color!_ (That is, if your terminal can support it.)
_Tcell_ can accurately display 24-bit color.)
NOTE: Technically the approach of using 24-bit RGB values for color is more NOTE: Technically the approach of using 24-bit RGB values for color is more
accurately described as "direct color", but most people use the term "true color", accurately described as "direct color", but most people use the term "true color".
and so we follow the (inaccurate) common convention. We follow the (inaccurate) common convention.
There are a few ways you can enable (or disable) true color. There are a few ways you can enable (or disable) true color.
@ -175,15 +172,13 @@ includes the `RGB` or `Tc` capabilities (or rather it did when the database
was updated.) was updated.)
* You can force this one by setting the `COLORTERM` environment variable to * You can force this one by setting the `COLORTERM` environment variable to
"24-bit", "truecolor" or "24bit". This is the same method used `24-bit`, `truecolor` or `24bit`. This is the same method used
by most other terminal applications that support 24-bit color. by most other terminal applications that support 24-bit color.
* If you set your `TERM` environment variable to a value with the suffix `-truecolor` * If you set your `TERM` environment variable to a value with the suffix `-truecolor`
then 24-bit color compatible with XTerm will be assumed (and the terminal will then 24-bit color compatible with XTerm and ECMA-48 will be assumed.
otherwise use the same escape sequences as the base terminal definition.) (This feature is deprecated.
It is recommended to use one of other methods listed above.)
NOTE: This feature is for compatibility with older _Tcell_ versions.
It is recommended to use one of other methods instead.
* You can disable 24-bit color by setting `TCELL_TRUECOLOR=disable` in your * You can disable 24-bit color by setting `TCELL_TRUECOLOR=disable` in your
environment. environment.
@ -195,12 +190,12 @@ than respecting themes. For other cases, such as typical text apps that
only use a few colors, its more desirable to respect the themes that only use a few colors, its more desirable to respect the themes that
the user has established.) the user has established.)
== Performance ## Performance
Reasonable attempts have been made to minimize sending data to terminals, Reasonable attempts have been made to minimize sending data to terminals,
avoiding repeated sequences or drawing the same cell on refresh updates. avoiding repeated sequences or drawing the same cell on refresh updates.
== Terminfo ## Terminfo
(Not relevant for Windows users.) (Not relevant for Windows users.)
@ -218,11 +213,11 @@ are not supported.
This is unlikely to be a problem; such terminals have not been mass-produced This is unlikely to be a problem; such terminals have not been mass-produced
since the early 1970s. since the early 1970s.
== Mouse Support ## Mouse Support
Mouse support is detected via the `kmous` terminfo variable, however, Mouse support is detected via the `kmous` terminfo variable, however,
enablement/disablement and decoding mouse events is done using hard coded enablement/disablement and decoding mouse events is done using hard coded
sequences based on the XTerm X11 model. As of this writing all popular sequences based on the XTerm X11 model. All popular
terminals with mouse tracking support this model. (Full terminfo support terminals with mouse tracking support this model. (Full terminfo support
is not possible as terminfo sequences are not defined.) is not possible as terminfo sequences are not defined.)
@ -230,35 +225,36 @@ On Windows, the mouse works normally.
Mouse wheel buttons on various terminals are known to work, but the support Mouse wheel buttons on various terminals are known to work, but the support
in terminal emulators, as well as support for various buttons and in terminal emulators, as well as support for various buttons and
live mouse tracking, varies widely. Modern _xterm_, macOS _Terminal_, and _iTerm_ all work well. live mouse tracking, varies widely.
Modern _xterm_, macOS _Terminal_, and _iTerm_ all work well.
== Bracketed Paste ## Bracketed Paste
Terminals that appear to support the XTerm mouse model also can support Terminals that appear to support the XTerm mouse model also can support
bracketed paste, for applications that opt-in. See `EnablePaste()` for details. bracketed paste, for applications that opt-in. See `EnablePaste()` for details.
== Testability ## Testability
There is a `SimulationScreen`, that can be used to simulate a real screen There is a `SimulationScreen`, that can be used to simulate a real screen
for automated testing. The supplied tests do this. The simulation contains for automated testing. The supplied tests do this. The simulation contains
event delivery, screen resizing support, and capabilities to inject events event delivery, screen resizing support, and capabilities to inject events
and examine "`physical`" screen contents. and examine "`physical`" screen contents.
== Platforms ## Platforms
=== POSIX (Linux, FreeBSD, macOS, Solaris, etc.) ### POSIX (Linux, FreeBSD, macOS, Solaris, etc.)
Everything works using pure Go on mainstream platforms. Some more esoteric Everything works using pure Go on mainstream platforms. Some more esoteric
platforms (e.g. AIX) may need to be added. Pull requests are welcome! platforms (e.g., AIX) may need to be added. Pull requests are welcome!
=== Windows ### Windows
Windows console mode applications are supported. Windows console mode applications are supported.
Modern console applications like ConEmu and the Windows 10 terminal, Modern console applications like ConEmu and the Windows 10 terminal,
support all the good features (resize, mouse tracking, etc.) support all the good features (resize, mouse tracking, etc.)
=== Plan9, WASM, and others ### Plan9, WASM, and others
These platforms won't work, but compilation stubs are supplied These platforms won't work, but compilation stubs are supplied
for folks that want to include parts of this in software for those for folks that want to include parts of this in software for those
@ -268,18 +264,9 @@ allocate a real screen object on those platforms, `NewScreen()` will fail.
If anyone has wisdom about how to improve support for these, If anyone has wisdom about how to improve support for these,
please let me know. PRs are especially welcome. please let me know. PRs are especially welcome.
=== Commercial Support ### Commercial Support
_Tcell_ is absolutely free, but if you want to obtain commercial, professional support, there are options. _Tcell_ is absolutely free, but if you want to obtain commercial, professional support, there are options.
[cols="2",align="center",frame="none", grid="none"] * [TideLift](https://tidelift.com/) subscriptions include support for _Tcell_, as well as many other open source packages.
|=== * [Staysail Systems Inc.](mailto:info@staysail.tech) offers direct support, and custom development around _Tcell_ on an hourly basis.
^.^|
image:logos/tidelift.png[100,100]
a|
https://tidelift.com/[Tidelift] subscriptions include support for _Tcell_, as well as many other open source packages.
^.^|
image:logos/staysail.png[100,100]
a|
mailto:info@staysail.tech[Staysail Systems, Inc.] offers direct support, and custom development around _Tcell_ on an hourly basis.

View File

@ -1,30 +1,32 @@
= tcell tutorial # _Tcell_ Tutorial
tcell provides a low-level, portable API for building terminal-based programs. _Tcell_ provides a low-level, portable API for building terminal-based programs.
A https://en.wikipedia.org/wiki/Terminal_emulator[terminal emulator] is used to A [terminal emulator](https://en.wikipedia.org/wiki/Terminal_emulator)
interact with such a program. (or a real terminal such as a DEC VT-220) is used to interact with such a program.
Applications typically initialize a screen and enter an event loop, then _Tcell_'s interface is fairly low-level.
finalize the screen before exiting. While it provides a reasonably portable way of dealing with all the usual terminal
features, it may be easier to utilize a higher level framework.
A number of such frameworks are listed on the _Tcell_ main [README](README.md).
Application frameworks such as https://github.com/rivo/tview[tview] and This tutorial provides the details of _Tcell_, and is appropriate for developers
https://gitlab.com/tslocum/cview[cview] provide widgets and additional features. wishing to create their own application frameworks or needing more direct access
to the terminal capabilities.
== Resize events ## Resize events
Applications receive an event of type `EventResize` when they are first initialized and each time the terminal is resized. Applications receive an event of type `EventResize` when they are first initialized and each time the terminal is resized.
The new size is available as `Size`. The new size is available as `Size`.
[source,go] ```golang
----
switch ev := ev.(type) { switch ev := ev.(type) {
case *tcell.EventResize: case *tcell.EventResize:
w, h := ev.Size() w, h := ev.Size()
logMessage(fmt.Sprintf("Resized to %dx%d", w, h)) logMessage(fmt.Sprintf("Resized to %dx%d", w, h))
} }
---- ```
== Key events ## Key events
When a key is pressed, applications receive an event of type `EventKey`. When a key is pressed, applications receive an event of type `EventKey`.
This event describes the modifier keys pressed (if any) and the pressed key or rune. This event describes the modifier keys pressed (if any) and the pressed key or rune.
@ -33,16 +35,15 @@ When a rune key is pressed, an event with its `Key` set to `KeyRune` is dispatch
When a non-rune key is pressed, it is available as the `Key` of the event. When a non-rune key is pressed, it is available as the `Key` of the event.
[source,go] ```golang
----
switch ev := ev.(type) { switch ev := ev.(type) {
case *tcell.EventKey: case *tcell.EventKey:
mod, key, ch := ev.Mod(), ev.Key(), ev.Rune() mod, key, ch := ev.Mod(), ev.Key(), ev.Rune()
logMessage(fmt.Sprintf("EventKey Modifiers: %d Key: %d Rune: %d", mod, key, ch)) logMessage(fmt.Sprintf("EventKey Modifiers: %d Key: %d Rune: %d", mod, key, ch))
} }
---- ```
=== Key event restrictions ### Key event restrictions
Terminal-based programs have less visibility into keyboard activity than graphical applications. Terminal-based programs have less visibility into keyboard activity than graphical applications.
@ -53,12 +54,7 @@ Key release events are not available.
It is not possible to distinguish runes typed while holding shift and runes typed using caps lock. It is not possible to distinguish runes typed while holding shift and runes typed using caps lock.
Capital letters are reported without the Shift modifier. Capital letters are reported without the Shift modifier.
=== Key event handling library ## Mouse events
https://gitlab.com/tslocum/cbind[cbind] provides key event encoding and decoding
to and from human-readable strings. It also provides keybinding-based input handling.
== Mouse events
Applications receive an event of type `EventMouse` when the mouse moves, or a mouse button is pressed or released. Applications receive an event of type `EventMouse` when the mouse moves, or a mouse button is pressed or released.
Mouse events are only delivered if Mouse events are only delivered if
@ -66,8 +62,7 @@ Mouse events are only delivered if
The mouse buttons being pressed (if any) are available as `Buttons`, and the position of the mouse is available as `Position`. The mouse buttons being pressed (if any) are available as `Buttons`, and the position of the mouse is available as `Position`.
[source,go] ```golang
----
switch ev := ev.(type) { switch ev := ev.(type) {
case *tcell.EventMouse: case *tcell.EventMouse:
mod := ev.Modifiers() mod := ev.Modifiers()
@ -75,46 +70,23 @@ case *tcell.EventMouse:
x, y := ev.Position() x, y := ev.Position()
logMessage(fmt.Sprintf("EventMouse Modifiers: %d Buttons: %d Position: %d,%d", mod, btns, x, y)) logMessage(fmt.Sprintf("EventMouse Modifiers: %d Buttons: %d Position: %d,%d", mod, btns, x, y))
} }
---- ```
=== Mouse buttons ### Mouse buttons
[cols=3*,options=header] Identifier | Alias | Description
|=== -----------|-----------------|-----------
Button1 | ButtonPrimary | Left button
Button2 | ButtonSecondary | Right button
Button3 | ButtonMiddle | Middle button
Button4 | | Side button (thumb/next)
Button5 | | Side button (thumb/prev)
|Identifier ## Usage
|Alias
|Description
|Button1
|ButtonPrimary
|Left button
|Button2
|ButtonSecondary
|Right button
|Button3
|ButtonMiddle
|Middle button
|Button4
|
|Side button (thumb/next)
|Button5
|
|Side button (thumb/prev)
|===
== Usage
To create a tcell application, first initialize a screen to hold it. To create a tcell application, first initialize a screen to hold it.
[source,go] ```golang
----
// Initialize screen
s, err := tcell.NewScreen() s, err := tcell.NewScreen()
if err != nil { if err != nil {
log.Fatalf("%+v", err) log.Fatalf("%+v", err)
@ -129,21 +101,19 @@ s.SetStyle(defStyle)
// Clear screen // Clear screen
s.Clear() s.Clear()
---- ```
Text may be drawn on the screen using `SetContent`. Text may be drawn on the screen using `SetContent`.
[source,go] ```golang
----
s.SetContent(0, 0, 'H', nil, defStyle) s.SetContent(0, 0, 'H', nil, defStyle)
s.SetContent(1, 0, 'i', nil, defStyle) s.SetContent(1, 0, 'i', nil, defStyle)
s.SetContent(2, 0, '!', nil, defStyle) s.SetContent(2, 0, '!', nil, defStyle)
---- ```
To draw text more easily, define a render function. To draw text more easily, define a render function.
[source,go] ```golang
----
func drawText(s tcell.Screen, x1, y1, x2, y2 int, style tcell.Style, text string) { func drawText(s tcell.Screen, x1, y1, x2, y2 int, style tcell.Style, text string) {
row := y1 row := y1
col := x1 col := x1
@ -159,12 +129,11 @@ func drawText(s tcell.Screen, x1, y1, x2, y2 int, style tcell.Style, text string
} }
} }
} }
---- ```
Lastly, define an event loop to handle user input and update application state. Lastly, define an event loop to handle user input and update application state.
[source,go] ```golang
----
quit := func() { quit := func() {
s.Fini() s.Fini()
os.Exit(0) os.Exit(0)
@ -186,14 +155,13 @@ for {
} }
} }
} }
---- ```
== Demo application ## Demo application
The following demonstrates how to initialize a screen, draw text/graphics and handle user input. The following demonstrates how to initialize a screen, draw text/graphics and handle user input.
[source,go] ```golang
----
package main package main
import ( import (
@ -322,4 +290,4 @@ func main() {
} }
} }
} }
---- ```

View File

@ -343,6 +343,26 @@ func (s *cScreen) PostEvent(ev Event) error {
} }
} }
func (s *cScreen) ChannelEvents(ch chan<- Event, quit <-chan struct{}) {
defer close(ch)
for {
select {
case <-quit:
return
case <-s.stopQ:
return
case ev := <-s.evch:
select {
case <-quit:
return
case <-s.stopQ:
return
case ch <- ev:
}
}
}
}
func (s *cScreen) PollEvent() Event { func (s *cScreen) PollEvent() Event {
select { select {
case <-s.stopQ: case <-s.stopQ:

View File

@ -78,6 +78,17 @@ type Screen interface {
// response to a call to Clear or Flush. // response to a call to Clear or Flush.
Size() (int, int) Size() (int, int)
// ChannelEvents is an infinite loop that waits for an event and
// channels it into the user provided channel ch. Closing the
// quit channel and calling the Fini method are cancellation
// signals. When a cancellation signal is received the method
// returns after closing ch.
//
// This method should be used as a goroutine.
//
// NOTE: PollEvent should not be called while this method is running.
ChannelEvents(ch chan<- Event, quit <-chan struct{})
// PollEvent waits for events to arrive. Main application loops // PollEvent waits for events to arrive. Main application loops
// must spin on this to prevent the application from stalling. // must spin on this to prevent the application from stalling.
// Furthermore, this will return nil if the Screen is finalized. // Furthermore, this will return nil if the Screen is finalized.

View File

@ -351,6 +351,26 @@ func (s *simscreen) Colors() int {
return 256 return 256
} }
func (s *simscreen) ChannelEvents(ch chan<- Event, quit <-chan struct{}) {
defer close(ch)
for {
select {
case <-quit:
return
case <-s.quit:
return
case ev := <-s.evch:
select {
case <-quit:
return
case <-s.quit:
return
case ch <- ev:
}
}
}
}
func (s *simscreen) PollEvent() Event { func (s *simscreen) PollEvent() Event {
select { select {
case <-s.quit: case <-s.quit:

View File

@ -638,7 +638,7 @@ func (t *tScreen) drawCell(x, y int) int {
t.TPuts(ti.TGoto(x-1, y)) t.TPuts(ti.TGoto(x-1, y))
t.TPuts(ti.InsertChar) t.TPuts(ti.InsertChar)
t.cy = y t.cy = y
t.cx = x-1 t.cx = x - 1
t.cells.SetDirty(x-1, y, true) t.cells.SetDirty(x-1, y, true)
_ = t.drawCell(x-1, y) _ = t.drawCell(x-1, y)
t.TPuts(t.ti.TGoto(0, 0)) t.TPuts(t.ti.TGoto(0, 0))
@ -941,6 +941,26 @@ func (t *tScreen) nColors() int {
return t.ti.Colors return t.ti.Colors
} }
func (t *tScreen) ChannelEvents(ch chan<- Event, quit <-chan struct{}) {
defer close(ch)
for {
select {
case <-quit:
return
case <-t.quit:
return
case ev := <-t.evch:
select {
case <-quit:
return
case <-t.quit:
return
case ch <- ev:
}
}
}
}
func (t *tScreen) PollEvent() Event { func (t *tScreen) PollEvent() Event {
select { select {
case <-t.quit: case <-t.quit:

1
vendor/golang.org/x/sys/cpu/cpu.go generated vendored
View File

@ -56,6 +56,7 @@ var X86 struct {
HasAVX512BF16 bool // Advanced vector extension 512 BFloat16 Instructions HasAVX512BF16 bool // Advanced vector extension 512 BFloat16 Instructions
HasBMI1 bool // Bit manipulation instruction set 1 HasBMI1 bool // Bit manipulation instruction set 1
HasBMI2 bool // Bit manipulation instruction set 2 HasBMI2 bool // Bit manipulation instruction set 2
HasCX16 bool // Compare and exchange 16 Bytes
HasERMS bool // Enhanced REP for MOVSB and STOSB HasERMS bool // Enhanced REP for MOVSB and STOSB
HasFMA bool // Fused-multiply-add instructions HasFMA bool // Fused-multiply-add instructions
HasOSXSAVE bool // OS supports XSAVE/XRESTOR for saving/restoring XMM registers. HasOSXSAVE bool // OS supports XSAVE/XRESTOR for saving/restoring XMM registers.

View File

@ -39,6 +39,7 @@ func initOptions() {
{Name: "avx512bf16", Feature: &X86.HasAVX512BF16}, {Name: "avx512bf16", Feature: &X86.HasAVX512BF16},
{Name: "bmi1", Feature: &X86.HasBMI1}, {Name: "bmi1", Feature: &X86.HasBMI1},
{Name: "bmi2", Feature: &X86.HasBMI2}, {Name: "bmi2", Feature: &X86.HasBMI2},
{Name: "cx16", Feature: &X86.HasCX16},
{Name: "erms", Feature: &X86.HasERMS}, {Name: "erms", Feature: &X86.HasERMS},
{Name: "fma", Feature: &X86.HasFMA}, {Name: "fma", Feature: &X86.HasFMA},
{Name: "osxsave", Feature: &X86.HasOSXSAVE}, {Name: "osxsave", Feature: &X86.HasOSXSAVE},
@ -73,6 +74,7 @@ func archInit() {
X86.HasPCLMULQDQ = isSet(1, ecx1) X86.HasPCLMULQDQ = isSet(1, ecx1)
X86.HasSSSE3 = isSet(9, ecx1) X86.HasSSSE3 = isSet(9, ecx1)
X86.HasFMA = isSet(12, ecx1) X86.HasFMA = isSet(12, ecx1)
X86.HasCX16 = isSet(13, ecx1)
X86.HasSSE41 = isSet(19, ecx1) X86.HasSSE41 = isSet(19, ecx1)
X86.HasSSE42 = isSet(20, ecx1) X86.HasSSE42 = isSet(20, ecx1)
X86.HasPOPCNT = isSet(23, ecx1) X86.HasPOPCNT = isSet(23, ecx1)

149
vendor/golang.org/x/sys/unix/ifreq_linux.go generated vendored Normal file
View File

@ -0,0 +1,149 @@
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build linux
// +build linux
package unix
import (
"bytes"
"unsafe"
)
// Helpers for dealing with ifreq since it contains a union and thus requires a
// lot of unsafe.Pointer casts to use properly.
// An Ifreq is a type-safe wrapper around the raw ifreq struct. An Ifreq
// contains an interface name and a union of arbitrary data which can be
// accessed using the Ifreq's methods. To create an Ifreq, use the NewIfreq
// function.
//
// Use the Name method to access the stored interface name. The union data
// fields can be get and set using the following methods:
// - Uint16/SetUint16: flags
// - Uint32/SetUint32: ifindex, metric, mtu
type Ifreq struct{ raw ifreq }
// NewIfreq creates an Ifreq with the input network interface name after
// validating the name does not exceed IFNAMSIZ-1 (trailing NULL required)
// bytes.
func NewIfreq(name string) (*Ifreq, error) {
// Leave room for terminating NULL byte.
if len(name) >= IFNAMSIZ {
return nil, EINVAL
}
var ifr ifreq
copy(ifr.Ifrn[:], name)
return &Ifreq{raw: ifr}, nil
}
// TODO(mdlayher): get/set methods for hardware address sockaddr, char array, etc.
// Name returns the interface name associated with the Ifreq.
func (ifr *Ifreq) Name() string {
// BytePtrToString requires a NULL terminator or the program may crash. If
// one is not present, just return the empty string.
if !bytes.Contains(ifr.raw.Ifrn[:], []byte{0x00}) {
return ""
}
return BytePtrToString(&ifr.raw.Ifrn[0])
}
// According to netdevice(7), only AF_INET addresses are returned for numerous
// sockaddr ioctls. For convenience, we expose these as Inet4Addr since the Port
// field and other data is always empty.
// Inet4Addr returns the Ifreq union data from an embedded sockaddr as a C
// in_addr/Go []byte (4-byte IPv4 address) value. If the sockaddr family is not
// AF_INET, an error is returned.
func (ifr *Ifreq) Inet4Addr() ([]byte, error) {
raw := *(*RawSockaddrInet4)(unsafe.Pointer(&ifr.raw.Ifru[:SizeofSockaddrInet4][0]))
if raw.Family != AF_INET {
// Cannot safely interpret raw.Addr bytes as an IPv4 address.
return nil, EINVAL
}
return raw.Addr[:], nil
}
// SetInet4Addr sets a C in_addr/Go []byte (4-byte IPv4 address) value in an
// embedded sockaddr within the Ifreq's union data. v must be 4 bytes in length
// or an error will be returned.
func (ifr *Ifreq) SetInet4Addr(v []byte) error {
if len(v) != 4 {
return EINVAL
}
var addr [4]byte
copy(addr[:], v)
ifr.clear()
*(*RawSockaddrInet4)(
unsafe.Pointer(&ifr.raw.Ifru[:SizeofSockaddrInet4][0]),
) = RawSockaddrInet4{
// Always set IP family as ioctls would require it anyway.
Family: AF_INET,
Addr: addr,
}
return nil
}
// Uint16 returns the Ifreq union data as a C short/Go uint16 value.
func (ifr *Ifreq) Uint16() uint16 {
return *(*uint16)(unsafe.Pointer(&ifr.raw.Ifru[:2][0]))
}
// SetUint16 sets a C short/Go uint16 value as the Ifreq's union data.
func (ifr *Ifreq) SetUint16(v uint16) {
ifr.clear()
*(*uint16)(unsafe.Pointer(&ifr.raw.Ifru[:2][0])) = v
}
// Uint32 returns the Ifreq union data as a C int/Go uint32 value.
func (ifr *Ifreq) Uint32() uint32 {
return *(*uint32)(unsafe.Pointer(&ifr.raw.Ifru[:4][0]))
}
// SetUint32 sets a C int/Go uint32 value as the Ifreq's union data.
func (ifr *Ifreq) SetUint32(v uint32) {
ifr.clear()
*(*uint32)(unsafe.Pointer(&ifr.raw.Ifru[:4][0])) = v
}
// clear zeroes the ifreq's union field to prevent trailing garbage data from
// being sent to the kernel if an ifreq is reused.
func (ifr *Ifreq) clear() {
for i := range ifr.raw.Ifru {
ifr.raw.Ifru[i] = 0
}
}
// TODO(mdlayher): export as IfreqData? For now we can provide helpers such as
// IoctlGetEthtoolDrvinfo which use these APIs under the hood.
// An ifreqData is an Ifreq which carries pointer data. To produce an ifreqData,
// use the Ifreq.withData method.
type ifreqData struct {
name [IFNAMSIZ]byte
// A type separate from ifreq is required in order to comply with the
// unsafe.Pointer rules since the "pointer-ness" of data would not be
// preserved if it were cast into the byte array of a raw ifreq.
data unsafe.Pointer
// Pad to the same size as ifreq.
_ [len(ifreq{}.Ifru) - SizeofPtr]byte
}
// withData produces an ifreqData with the pointer p set for ioctls which require
// arbitrary pointer data.
func (ifr Ifreq) withData(p unsafe.Pointer) ifreqData {
return ifreqData{
name: ifr.raw.Ifrn,
data: p,
}
}

View File

@ -5,7 +5,6 @@
package unix package unix
import ( import (
"runtime"
"unsafe" "unsafe"
) )
@ -22,56 +21,42 @@ func IoctlRetInt(fd int, req uint) (int, error) {
func IoctlGetUint32(fd int, req uint) (uint32, error) { func IoctlGetUint32(fd int, req uint) (uint32, error) {
var value uint32 var value uint32
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) err := ioctlPtr(fd, req, unsafe.Pointer(&value))
return value, err return value, err
} }
func IoctlGetRTCTime(fd int) (*RTCTime, error) { func IoctlGetRTCTime(fd int) (*RTCTime, error) {
var value RTCTime var value RTCTime
err := ioctl(fd, RTC_RD_TIME, uintptr(unsafe.Pointer(&value))) err := ioctlPtr(fd, RTC_RD_TIME, unsafe.Pointer(&value))
return &value, err return &value, err
} }
func IoctlSetRTCTime(fd int, value *RTCTime) error { func IoctlSetRTCTime(fd int, value *RTCTime) error {
err := ioctl(fd, RTC_SET_TIME, uintptr(unsafe.Pointer(value))) return ioctlPtr(fd, RTC_SET_TIME, unsafe.Pointer(value))
runtime.KeepAlive(value)
return err
} }
func IoctlGetRTCWkAlrm(fd int) (*RTCWkAlrm, error) { func IoctlGetRTCWkAlrm(fd int) (*RTCWkAlrm, error) {
var value RTCWkAlrm var value RTCWkAlrm
err := ioctl(fd, RTC_WKALM_RD, uintptr(unsafe.Pointer(&value))) err := ioctlPtr(fd, RTC_WKALM_RD, unsafe.Pointer(&value))
return &value, err return &value, err
} }
func IoctlSetRTCWkAlrm(fd int, value *RTCWkAlrm) error { func IoctlSetRTCWkAlrm(fd int, value *RTCWkAlrm) error {
err := ioctl(fd, RTC_WKALM_SET, uintptr(unsafe.Pointer(value))) return ioctlPtr(fd, RTC_WKALM_SET, unsafe.Pointer(value))
runtime.KeepAlive(value)
return err
}
type ifreqEthtool struct {
name [IFNAMSIZ]byte
data unsafe.Pointer
} }
// IoctlGetEthtoolDrvinfo fetches ethtool driver information for the network // IoctlGetEthtoolDrvinfo fetches ethtool driver information for the network
// device specified by ifname. // device specified by ifname.
func IoctlGetEthtoolDrvinfo(fd int, ifname string) (*EthtoolDrvinfo, error) { func IoctlGetEthtoolDrvinfo(fd int, ifname string) (*EthtoolDrvinfo, error) {
// Leave room for terminating NULL byte. ifr, err := NewIfreq(ifname)
if len(ifname) >= IFNAMSIZ { if err != nil {
return nil, EINVAL return nil, err
} }
value := EthtoolDrvinfo{ value := EthtoolDrvinfo{Cmd: ETHTOOL_GDRVINFO}
Cmd: ETHTOOL_GDRVINFO, ifrd := ifr.withData(unsafe.Pointer(&value))
}
ifreq := ifreqEthtool{ err = ioctlIfreqData(fd, SIOCETHTOOL, &ifrd)
data: unsafe.Pointer(&value),
}
copy(ifreq.name[:], ifname)
err := ioctl(fd, SIOCETHTOOL, uintptr(unsafe.Pointer(&ifreq)))
runtime.KeepAlive(ifreq)
return &value, err return &value, err
} }
@ -80,7 +65,7 @@ func IoctlGetEthtoolDrvinfo(fd int, ifname string) (*EthtoolDrvinfo, error) {
// https://www.kernel.org/doc/html/latest/watchdog/watchdog-api.html. // https://www.kernel.org/doc/html/latest/watchdog/watchdog-api.html.
func IoctlGetWatchdogInfo(fd int) (*WatchdogInfo, error) { func IoctlGetWatchdogInfo(fd int) (*WatchdogInfo, error) {
var value WatchdogInfo var value WatchdogInfo
err := ioctl(fd, WDIOC_GETSUPPORT, uintptr(unsafe.Pointer(&value))) err := ioctlPtr(fd, WDIOC_GETSUPPORT, unsafe.Pointer(&value))
return &value, err return &value, err
} }
@ -88,6 +73,7 @@ func IoctlGetWatchdogInfo(fd int) (*WatchdogInfo, error) {
// more information, see: // more information, see:
// https://www.kernel.org/doc/html/latest/watchdog/watchdog-api.html. // https://www.kernel.org/doc/html/latest/watchdog/watchdog-api.html.
func IoctlWatchdogKeepalive(fd int) error { func IoctlWatchdogKeepalive(fd int) error {
// arg is ignored and not a pointer, so ioctl is fine instead of ioctlPtr.
return ioctl(fd, WDIOC_KEEPALIVE, 0) return ioctl(fd, WDIOC_KEEPALIVE, 0)
} }
@ -95,9 +81,7 @@ func IoctlWatchdogKeepalive(fd int) error {
// range of data conveyed in value to the file associated with the file // range of data conveyed in value to the file associated with the file
// descriptor destFd. See the ioctl_ficlonerange(2) man page for details. // descriptor destFd. See the ioctl_ficlonerange(2) man page for details.
func IoctlFileCloneRange(destFd int, value *FileCloneRange) error { func IoctlFileCloneRange(destFd int, value *FileCloneRange) error {
err := ioctl(destFd, FICLONERANGE, uintptr(unsafe.Pointer(value))) return ioctlPtr(destFd, FICLONERANGE, unsafe.Pointer(value))
runtime.KeepAlive(value)
return err
} }
// IoctlFileClone performs an FICLONE ioctl operation to clone the entire file // IoctlFileClone performs an FICLONE ioctl operation to clone the entire file
@ -148,7 +132,7 @@ func IoctlFileDedupeRange(srcFd int, value *FileDedupeRange) error {
rawinfo.Reserved = value.Info[i].Reserved rawinfo.Reserved = value.Info[i].Reserved
} }
err := ioctl(srcFd, FIDEDUPERANGE, uintptr(unsafe.Pointer(&buf[0]))) err := ioctlPtr(srcFd, FIDEDUPERANGE, unsafe.Pointer(&buf[0]))
// Output // Output
for i := range value.Info { for i := range value.Info {
@ -166,31 +150,47 @@ func IoctlFileDedupeRange(srcFd int, value *FileDedupeRange) error {
} }
func IoctlHIDGetDesc(fd int, value *HIDRawReportDescriptor) error { func IoctlHIDGetDesc(fd int, value *HIDRawReportDescriptor) error {
err := ioctl(fd, HIDIOCGRDESC, uintptr(unsafe.Pointer(value))) return ioctlPtr(fd, HIDIOCGRDESC, unsafe.Pointer(value))
runtime.KeepAlive(value)
return err
} }
func IoctlHIDGetRawInfo(fd int) (*HIDRawDevInfo, error) { func IoctlHIDGetRawInfo(fd int) (*HIDRawDevInfo, error) {
var value HIDRawDevInfo var value HIDRawDevInfo
err := ioctl(fd, HIDIOCGRAWINFO, uintptr(unsafe.Pointer(&value))) err := ioctlPtr(fd, HIDIOCGRAWINFO, unsafe.Pointer(&value))
return &value, err return &value, err
} }
func IoctlHIDGetRawName(fd int) (string, error) { func IoctlHIDGetRawName(fd int) (string, error) {
var value [_HIDIOCGRAWNAME_LEN]byte var value [_HIDIOCGRAWNAME_LEN]byte
err := ioctl(fd, _HIDIOCGRAWNAME, uintptr(unsafe.Pointer(&value[0]))) err := ioctlPtr(fd, _HIDIOCGRAWNAME, unsafe.Pointer(&value[0]))
return ByteSliceToString(value[:]), err return ByteSliceToString(value[:]), err
} }
func IoctlHIDGetRawPhys(fd int) (string, error) { func IoctlHIDGetRawPhys(fd int) (string, error) {
var value [_HIDIOCGRAWPHYS_LEN]byte var value [_HIDIOCGRAWPHYS_LEN]byte
err := ioctl(fd, _HIDIOCGRAWPHYS, uintptr(unsafe.Pointer(&value[0]))) err := ioctlPtr(fd, _HIDIOCGRAWPHYS, unsafe.Pointer(&value[0]))
return ByteSliceToString(value[:]), err return ByteSliceToString(value[:]), err
} }
func IoctlHIDGetRawUniq(fd int) (string, error) { func IoctlHIDGetRawUniq(fd int) (string, error) {
var value [_HIDIOCGRAWUNIQ_LEN]byte var value [_HIDIOCGRAWUNIQ_LEN]byte
err := ioctl(fd, _HIDIOCGRAWUNIQ, uintptr(unsafe.Pointer(&value[0]))) err := ioctlPtr(fd, _HIDIOCGRAWUNIQ, unsafe.Pointer(&value[0]))
return ByteSliceToString(value[:]), err return ByteSliceToString(value[:]), err
} }
// IoctlIfreq performs an ioctl using an Ifreq structure for input and/or
// output. See the netdevice(7) man page for details.
func IoctlIfreq(fd int, req uint, value *Ifreq) error {
// It is possible we will add more fields to *Ifreq itself later to prevent
// misuse, so pass the raw *ifreq directly.
return ioctlPtr(fd, req, unsafe.Pointer(&value.raw))
}
// TODO(mdlayher): export if and when IfreqData is exported.
// ioctlIfreqData performs an ioctl using an ifreqData structure for input
// and/or output. See the netdevice(7) man page for details.
func ioctlIfreqData(fd int, req uint, value *ifreqData) error {
// The memory layout of IfreqData (type-safe) and ifreq (not type-safe) are
// identical so pass *IfreqData directly.
return ioctlPtr(fd, req, unsafe.Pointer(value))
}

View File

@ -217,8 +217,6 @@ struct ltchars {
#include <linux/genetlink.h> #include <linux/genetlink.h>
#include <linux/hdreg.h> #include <linux/hdreg.h>
#include <linux/hidraw.h> #include <linux/hidraw.h>
#include <linux/icmp.h>
#include <linux/icmpv6.h>
#include <linux/if.h> #include <linux/if.h>
#include <linux/if_addr.h> #include <linux/if_addr.h>
#include <linux/if_alg.h> #include <linux/if_alg.h>
@ -231,6 +229,7 @@ struct ltchars {
#include <linux/input.h> #include <linux/input.h>
#include <linux/kexec.h> #include <linux/kexec.h>
#include <linux/keyctl.h> #include <linux/keyctl.h>
#include <linux/landlock.h>
#include <linux/loop.h> #include <linux/loop.h>
#include <linux/lwtunnel.h> #include <linux/lwtunnel.h>
#include <linux/magic.h> #include <linux/magic.h>
@ -499,10 +498,11 @@ ccflags="$@"
$2 ~ /^O?XTABS$/ || $2 ~ /^O?XTABS$/ ||
$2 ~ /^TC[IO](ON|OFF)$/ || $2 ~ /^TC[IO](ON|OFF)$/ ||
$2 ~ /^IN_/ || $2 ~ /^IN_/ ||
$2 ~ /^LANDLOCK_/ ||
$2 ~ /^LOCK_(SH|EX|NB|UN)$/ || $2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
$2 ~ /^LO_(KEY|NAME)_SIZE$/ || $2 ~ /^LO_(KEY|NAME)_SIZE$/ ||
$2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ || $2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ ||
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|MCAST|EVFILT|NOTE|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR|LOCAL)_/ || $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|MCAST|EVFILT|NOTE|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR|LOCAL|TCPOPT)_/ ||
$2 ~ /^NFC_(GENL|PROTO|COMM|RF|SE|DIRECTION|LLCP|SOCKPROTO)_/ || $2 ~ /^NFC_(GENL|PROTO|COMM|RF|SE|DIRECTION|LLCP|SOCKPROTO)_/ ||
$2 ~ /^NFC_.*_(MAX)?SIZE$/ || $2 ~ /^NFC_.*_(MAX)?SIZE$/ ||
$2 ~ /^RAW_PAYLOAD_/ || $2 ~ /^RAW_PAYLOAD_/ ||
@ -563,6 +563,7 @@ ccflags="$@"
$2 ~ /^KEYCTL_/ || $2 ~ /^KEYCTL_/ ||
$2 ~ /^PERF_/ || $2 ~ /^PERF_/ ||
$2 ~ /^SECCOMP_MODE_/ || $2 ~ /^SECCOMP_MODE_/ ||
$2 ~ /^SEEK_/ ||
$2 ~ /^SPLICE_/ || $2 ~ /^SPLICE_/ ||
$2 ~ /^SYNC_FILE_RANGE_/ || $2 ~ /^SYNC_FILE_RANGE_/ ||
$2 !~ /^AUDIT_RECORD_MAGIC/ && $2 !~ /^AUDIT_RECORD_MAGIC/ &&

View File

@ -13,6 +13,7 @@
package unix package unix
import ( import (
"fmt"
"runtime" "runtime"
"syscall" "syscall"
"unsafe" "unsafe"
@ -398,6 +399,38 @@ func GetsockoptXucred(fd, level, opt int) (*Xucred, error) {
return x, err return x, err
} }
func SysctlKinfoProcSlice(name string) ([]KinfoProc, error) {
mib, err := sysctlmib(name)
if err != nil {
return nil, err
}
// Find size.
n := uintptr(0)
if err := sysctl(mib, nil, &n, nil, 0); err != nil {
return nil, err
}
if n == 0 {
return nil, nil
}
if n%SizeofKinfoProc != 0 {
return nil, fmt.Errorf("sysctl() returned a size of %d, which is not a multiple of %d", n, SizeofKinfoProc)
}
// Read into buffer of that size.
buf := make([]KinfoProc, n/SizeofKinfoProc)
if err := sysctl(mib, (*byte)(unsafe.Pointer(&buf[0])), &n, nil, 0); err != nil {
return nil, err
}
if n%SizeofKinfoProc != 0 {
return nil, fmt.Errorf("sysctl() returned a size of %d, which is not a multiple of %d", n, SizeofKinfoProc)
}
// The actual call may return less than the original reported required
// size so ensure we deal with that.
return buf[:n/SizeofKinfoProc], nil
}
//sys sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) //sys sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error)
/* /*

View File

@ -162,6 +162,14 @@ func (l *Lifreq) GetLifruInt() int {
return *(*int)(unsafe.Pointer(&l.Lifru[0])) return *(*int)(unsafe.Pointer(&l.Lifru[0]))
} }
func (l *Lifreq) SetLifruUint(d uint) {
*(*uint)(unsafe.Pointer(&l.Lifru[0])) = d
}
func (l *Lifreq) GetLifruUint() uint {
return *(*uint)(unsafe.Pointer(&l.Lifru[0]))
}
func IoctlLifreq(fd int, req uint, l *Lifreq) error { func IoctlLifreq(fd int, req uint, l *Lifreq) error {
return ioctl(fd, req, uintptr(unsafe.Pointer(l))) return ioctl(fd, req, uintptr(unsafe.Pointer(l)))
} }

View File

@ -13,7 +13,6 @@ package unix
import ( import (
"encoding/binary" "encoding/binary"
"runtime"
"syscall" "syscall"
"unsafe" "unsafe"
) )
@ -38,6 +37,13 @@ func Creat(path string, mode uint32) (fd int, err error) {
return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode) return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode)
} }
func EpollCreate(size int) (fd int, err error) {
if size <= 0 {
return -1, EINVAL
}
return EpollCreate1(0)
}
//sys FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) //sys FanotifyInit(flags uint, event_f_flags uint) (fd int, err error)
//sys fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) //sys fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error)
@ -66,11 +72,22 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
return fchmodat(dirfd, path, mode) return fchmodat(dirfd, path, mode)
} }
//sys ioctl(fd int, req uint, arg uintptr) (err error) func InotifyInit() (fd int, err error) {
return InotifyInit1(0)
}
// ioctl itself should not be exposed directly, but additional get/set //sys ioctl(fd int, req uint, arg uintptr) (err error) = SYS_IOCTL
// functions for specific types are permissible. //sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
// These are defined in ioctl.go and ioctl_linux.go.
// ioctl itself should not be exposed directly, but additional get/set functions
// for specific types are permissible. These are defined in ioctl.go and
// ioctl_linux.go.
//
// The third argument to ioctl is often a pointer but sometimes an integer.
// Callers should use ioctlPtr when the third argument is a pointer and ioctl
// when the third argument is an integer.
//
// TODO: some existing code incorrectly uses ioctl when it should use ioctlPtr.
//sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) //sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error)
@ -102,6 +119,23 @@ func Openat2(dirfd int, path string, how *OpenHow) (fd int, err error) {
return openat2(dirfd, path, how, SizeofOpenHow) return openat2(dirfd, path, how, SizeofOpenHow)
} }
func Pipe(p []int) error {
return Pipe2(p, 0)
}
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
func Pipe2(p []int, flags int) error {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err := pipe2(&pp, flags)
p[0] = int(pp[0])
p[1] = int(pp[1])
return err
}
//sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) //sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error)
func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
@ -111,6 +145,15 @@ func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error
return ppoll(&fds[0], len(fds), timeout, sigmask) return ppoll(&fds[0], len(fds), timeout, sigmask)
} }
func Poll(fds []PollFd, timeout int) (n int, err error) {
var ts *Timespec
if timeout >= 0 {
ts = new(Timespec)
*ts = NsecToTimespec(int64(timeout) * 1e6)
}
return Ppoll(fds, ts, nil)
}
//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error) //sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error)
func Readlink(path string, buf []byte) (n int, err error) { func Readlink(path string, buf []byte) (n int, err error) {
@ -161,27 +204,7 @@ func Utimes(path string, tv []Timeval) error {
//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) //sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error)
func UtimesNano(path string, ts []Timespec) error { func UtimesNano(path string, ts []Timespec) error {
if ts == nil { return UtimesNanoAt(AT_FDCWD, path, ts, 0)
err := utimensat(AT_FDCWD, path, nil, 0)
if err != ENOSYS {
return err
}
return utimes(path, nil)
}
if len(ts) != 2 {
return EINVAL
}
err := utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
if err != ENOSYS {
return err
}
// If the utimensat syscall isn't available (utimensat was added to Linux
// in 2.6.22, Released, 8 July 2007) then fall back to utimes
var tv [2]Timeval
for i := 0; i < 2; i++ {
tv[i] = NsecToTimeval(TimespecToNsec(ts[i]))
}
return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
} }
func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error { func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error {
@ -1222,11 +1245,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
func Accept(fd int) (nfd int, sa Sockaddr, err error) { func Accept(fd int) (nfd int, sa Sockaddr, err error) {
var rsa RawSockaddrAny var rsa RawSockaddrAny
var len _Socklen = SizeofSockaddrAny var len _Socklen = SizeofSockaddrAny
// Try accept4 first for Android, then try accept for kernel older than 2.6.28
nfd, err = accept4(fd, &rsa, &len, 0) nfd, err = accept4(fd, &rsa, &len, 0)
if err == ENOSYS {
nfd, err = accept(fd, &rsa, &len)
}
if err != nil { if err != nil {
return return
} }
@ -1348,6 +1367,13 @@ func SetsockoptTpacketReq3(fd, level, opt int, tp *TpacketReq3) error {
return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp)) return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp))
} }
func SetsockoptTCPRepairOpt(fd, level, opt int, o []TCPRepairOpt) (err error) {
if len(o) == 0 {
return EINVAL
}
return setsockopt(fd, level, opt, unsafe.Pointer(&o[0]), uintptr(SizeofTCPRepairOpt*len(o)))
}
// Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html) // Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html)
// KeyctlInt calls keyctl commands in which each argument is an int. // KeyctlInt calls keyctl commands in which each argument is an int.
@ -1802,11 +1828,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
//sys Dup(oldfd int) (fd int, err error) //sys Dup(oldfd int) (fd int, err error)
func Dup2(oldfd, newfd int) error { func Dup2(oldfd, newfd int) error {
// Android O and newer blocks dup2; riscv and arm64 don't implement dup2. return Dup3(oldfd, newfd, 0)
if runtime.GOOS == "android" || runtime.GOARCH == "riscv64" || runtime.GOARCH == "arm64" {
return Dup3(oldfd, newfd, 0)
}
return dup2(oldfd, newfd)
} }
//sys Dup3(oldfd int, newfd int, flags int) (err error) //sys Dup3(oldfd int, newfd int, flags int) (err error)
@ -1859,7 +1881,7 @@ func Getpgrp() (pid int) {
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) //sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
//sys PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) //sys PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error)
//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT //sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT
//sysnb prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT64 //sysnb Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT64
//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) //sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error)
//sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) = SYS_PSELECT6 //sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) = SYS_PSELECT6
//sys read(fd int, p []byte) (n int, err error) //sys read(fd int, p []byte) (n int, err error)
@ -2294,6 +2316,9 @@ type RemoteIovec struct {
//sys ProcessVMReadv(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) = SYS_PROCESS_VM_READV //sys ProcessVMReadv(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) = SYS_PROCESS_VM_READV
//sys ProcessVMWritev(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) = SYS_PROCESS_VM_WRITEV //sys ProcessVMWritev(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) = SYS_PROCESS_VM_WRITEV
//sys PidfdOpen(pid int, flags int) (fd int, err error) = SYS_PIDFD_OPEN
//sys PidfdGetfd(pidfd int, targetfd int, flags int) (fd int, err error) = SYS_PIDFD_GETFD
/* /*
* Unimplemented * Unimplemented
*/ */

View File

@ -19,36 +19,8 @@ func setTimeval(sec, usec int64) Timeval {
return Timeval{Sec: int32(sec), Usec: int32(usec)} return Timeval{Sec: int32(sec), Usec: int32(usec)}
} }
//sysnb pipe(p *[2]_C_int) (err error)
func Pipe(p []int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe(&pp)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
func Pipe2(p []int, flags int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, flags)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
// 64-bit file system and 32-bit uid calls // 64-bit file system and 32-bit uid calls
// (386 default is 32-bit file system and 16-bit uid). // (386 default is 32-bit file system and 16-bit uid).
//sys dup2(oldfd int, newfd int) (err error)
//sysnb EpollCreate(size int) (fd int, err error)
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64_64 //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64_64
//sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32 //sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32
@ -59,7 +31,6 @@ func Pipe2(p []int, flags int) (err error) {
//sysnb Geteuid() (euid int) = SYS_GETEUID32 //sysnb Geteuid() (euid int) = SYS_GETEUID32
//sysnb Getgid() (gid int) = SYS_GETGID32 //sysnb Getgid() (gid int) = SYS_GETGID32
//sysnb Getuid() (uid int) = SYS_GETUID32 //sysnb Getuid() (uid int) = SYS_GETUID32
//sysnb InotifyInit() (fd int, err error)
//sys Ioperm(from int, num int, on int) (err error) //sys Ioperm(from int, num int, on int) (err error)
//sys Iopl(level int) (err error) //sys Iopl(level int) (err error)
//sys Lchown(path string, uid int, gid int) (err error) = SYS_LCHOWN32 //sys Lchown(path string, uid int, gid int) (err error) = SYS_LCHOWN32
@ -105,7 +76,7 @@ const rlimInf32 = ^uint32(0)
const rlimInf64 = ^uint64(0) const rlimInf64 = ^uint64(0)
func Getrlimit(resource int, rlim *Rlimit) (err error) { func Getrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, nil, rlim) err = Prlimit(0, resource, nil, rlim)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -133,7 +104,7 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT //sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
func Setrlimit(resource int, rlim *Rlimit) (err error) { func Setrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, rlim, nil) err = Prlimit(0, resource, rlim, nil)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -381,12 +352,3 @@ func (cmsg *Cmsghdr) SetLen(length int) {
func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) {
rsa.Service_name_len = uint32(length) rsa.Service_name_len = uint32(length)
} }
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
func Poll(fds []PollFd, timeout int) (n int, err error) {
if len(fds) == 0 {
return poll(nil, 0, timeout)
}
return poll(&fds[0], len(fds), timeout)
}

View File

@ -7,8 +7,6 @@
package unix package unix
//sys dup2(oldfd int, newfd int) (err error)
//sysnb EpollCreate(size int) (fd int, err error)
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
@ -21,17 +19,6 @@ package unix
//sysnb Getgid() (gid int) //sysnb Getgid() (gid int)
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) //sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
//sysnb Getuid() (uid int) //sysnb Getuid() (uid int)
//sysnb inotifyInit() (fd int, err error)
func InotifyInit() (fd int, err error) {
// First try inotify_init1, because Android's seccomp policy blocks the latter.
fd, err = InotifyInit1(0)
if err == ENOSYS {
fd, err = inotifyInit()
}
return
}
//sys Ioperm(from int, num int, on int) (err error) //sys Ioperm(from int, num int, on int) (err error)
//sys Iopl(level int) (err error) //sys Iopl(level int) (err error)
//sys Lchown(path string, uid int, gid int) (err error) //sys Lchown(path string, uid int, gid int) (err error)
@ -126,32 +113,6 @@ func setTimeval(sec, usec int64) Timeval {
return Timeval{Sec: sec, Usec: usec} return Timeval{Sec: sec, Usec: usec}
} }
//sysnb pipe(p *[2]_C_int) (err error)
func Pipe(p []int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe(&pp)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
func Pipe2(p []int, flags int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, flags)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
func (r *PtraceRegs) PC() uint64 { return r.Rip } func (r *PtraceRegs) PC() uint64 { return r.Rip }
func (r *PtraceRegs) SetPC(pc uint64) { r.Rip = pc } func (r *PtraceRegs) SetPC(pc uint64) { r.Rip = pc }
@ -176,15 +137,6 @@ func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) {
rsa.Service_name_len = uint64(length) rsa.Service_name_len = uint64(length)
} }
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
func Poll(fds []PollFd, timeout int) (n int, err error) {
if len(fds) == 0 {
return poll(nil, 0, timeout)
}
return poll(&fds[0], len(fds), timeout)
}
//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) //sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error { func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {

View File

@ -19,36 +19,6 @@ func setTimeval(sec, usec int64) Timeval {
return Timeval{Sec: int32(sec), Usec: int32(usec)} return Timeval{Sec: int32(sec), Usec: int32(usec)}
} }
//sysnb pipe(p *[2]_C_int) (err error)
func Pipe(p []int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
// Try pipe2 first for Android O, then try pipe for kernel 2.6.23.
err = pipe2(&pp, 0)
if err == ENOSYS {
err = pipe(&pp)
}
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
func Pipe2(p []int, flags int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, flags)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
newoffset, errno := seek(fd, offset, whence) newoffset, errno := seek(fd, offset, whence)
if errno != 0 { if errno != 0 {
@ -76,8 +46,6 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
// 64-bit file system and 32-bit uid calls // 64-bit file system and 32-bit uid calls
// (16-bit uid calls are not always supported in newer kernels) // (16-bit uid calls are not always supported in newer kernels)
//sys dup2(oldfd int, newfd int) (err error)
//sysnb EpollCreate(size int) (fd int, err error)
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
//sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32 //sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 //sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
@ -86,7 +54,6 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
//sysnb Geteuid() (euid int) = SYS_GETEUID32 //sysnb Geteuid() (euid int) = SYS_GETEUID32
//sysnb Getgid() (gid int) = SYS_GETGID32 //sysnb Getgid() (gid int) = SYS_GETGID32
//sysnb Getuid() (uid int) = SYS_GETUID32 //sysnb Getuid() (uid int) = SYS_GETUID32
//sysnb InotifyInit() (fd int, err error)
//sys Lchown(path string, uid int, gid int) (err error) = SYS_LCHOWN32 //sys Lchown(path string, uid int, gid int) (err error) = SYS_LCHOWN32
//sys Listen(s int, n int) (err error) //sys Listen(s int, n int) (err error)
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 //sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
@ -184,7 +151,7 @@ const rlimInf32 = ^uint32(0)
const rlimInf64 = ^uint64(0) const rlimInf64 = ^uint64(0)
func Getrlimit(resource int, rlim *Rlimit) (err error) { func Getrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, nil, rlim) err = Prlimit(0, resource, nil, rlim)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -212,7 +179,7 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT //sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
func Setrlimit(resource int, rlim *Rlimit) (err error) { func Setrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, rlim, nil) err = Prlimit(0, resource, rlim, nil)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -260,15 +227,6 @@ func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) {
rsa.Service_name_len = uint32(length) rsa.Service_name_len = uint32(length)
} }
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
func Poll(fds []PollFd, timeout int) (n int, err error) {
if len(fds) == 0 {
return poll(nil, 0, timeout)
}
return poll(&fds[0], len(fds), timeout)
}
//sys armSyncFileRange(fd int, flags int, off int64, n int64) (err error) = SYS_ARM_SYNC_FILE_RANGE //sys armSyncFileRange(fd int, flags int, off int64, n int64) (err error) = SYS_ARM_SYNC_FILE_RANGE
func SyncFileRange(fd int, off int64, n int64, flags int) error { func SyncFileRange(fd int, off int64, n int64, flags int) error {

View File

@ -9,13 +9,6 @@ package unix
import "unsafe" import "unsafe"
func EpollCreate(size int) (fd int, err error) {
if size <= 0 {
return -1, EINVAL
}
return EpollCreate1(0)
}
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
@ -145,33 +138,9 @@ func utimes(path string, tv *[2]Timeval) (err error) {
return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
} }
func Pipe(p []int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, 0)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
func Pipe2(p []int, flags int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, flags)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
// Getrlimit prefers the prlimit64 system call. See issue 38604. // Getrlimit prefers the prlimit64 system call. See issue 38604.
func Getrlimit(resource int, rlim *Rlimit) error { func Getrlimit(resource int, rlim *Rlimit) error {
err := prlimit(0, resource, nil, rlim) err := Prlimit(0, resource, nil, rlim)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -180,7 +149,7 @@ func Getrlimit(resource int, rlim *Rlimit) error {
// Setrlimit prefers the prlimit64 system call. See issue 38604. // Setrlimit prefers the prlimit64 system call. See issue 38604.
func Setrlimit(resource int, rlim *Rlimit) error { func Setrlimit(resource int, rlim *Rlimit) error {
err := prlimit(0, resource, rlim, nil) err := Prlimit(0, resource, rlim, nil)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -211,31 +180,11 @@ func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) {
rsa.Service_name_len = uint64(length) rsa.Service_name_len = uint64(length)
} }
func InotifyInit() (fd int, err error) {
return InotifyInit1(0)
}
// dup2 exists because func Dup3 in syscall_linux.go references
// it in an unreachable path. dup2 isn't available on arm64.
func dup2(oldfd int, newfd int) error
func Pause() error { func Pause() error {
_, err := ppoll(nil, 0, nil, nil) _, err := ppoll(nil, 0, nil, nil)
return err return err
} }
func Poll(fds []PollFd, timeout int) (n int, err error) {
var ts *Timespec
if timeout >= 0 {
ts = new(Timespec)
*ts = NsecToTimespec(int64(timeout) * 1e6)
}
if len(fds) == 0 {
return ppoll(nil, 0, ts, nil)
}
return ppoll(&fds[0], len(fds), ts, nil)
}
//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) //sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error { func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {

View File

@ -8,8 +8,6 @@
package unix package unix
//sys dup2(oldfd int, newfd int) (err error)
//sysnb EpollCreate(size int) (fd int, err error)
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
@ -94,30 +92,6 @@ func setTimeval(sec, usec int64) Timeval {
return Timeval{Sec: sec, Usec: usec} return Timeval{Sec: sec, Usec: usec}
} }
func Pipe(p []int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, 0)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
func Pipe2(p []int, flags int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, flags)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
func Ioperm(from int, num int, on int) (err error) { func Ioperm(from int, num int, on int) (err error) {
return ENOSYS return ENOSYS
} }
@ -220,16 +194,3 @@ func (cmsg *Cmsghdr) SetLen(length int) {
func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) {
rsa.Service_name_len = uint64(length) rsa.Service_name_len = uint64(length)
} }
func InotifyInit() (fd int, err error) {
return InotifyInit1(0)
}
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
func Poll(fds []PollFd, timeout int) (n int, err error) {
if len(fds) == 0 {
return poll(nil, 0, timeout)
}
return poll(&fds[0], len(fds), timeout)
}

View File

@ -15,8 +15,6 @@ import (
func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
//sys dup2(oldfd int, newfd int) (err error)
//sysnb EpollCreate(size int) (fd int, err error)
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
@ -60,7 +58,6 @@ func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) //sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) //sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
//sysnb InotifyInit() (fd int, err error)
//sys Ioperm(from int, num int, on int) (err error) //sys Ioperm(from int, num int, on int) (err error)
//sys Iopl(level int) (err error) //sys Iopl(level int) (err error)
@ -113,29 +110,6 @@ func setTimeval(sec, usec int64) Timeval {
return Timeval{Sec: int32(sec), Usec: int32(usec)} return Timeval{Sec: int32(sec), Usec: int32(usec)}
} }
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
func Pipe2(p []int, flags int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, flags)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
//sysnb pipe() (p1 int, p2 int, err error)
func Pipe(p []int) (err error) {
if len(p) != 2 {
return EINVAL
}
p[0], p[1], err = pipe()
return
}
//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) //sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error)
func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
@ -157,7 +131,7 @@ type rlimit32 struct {
//sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_GETRLIMIT //sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_GETRLIMIT
func Getrlimit(resource int, rlim *Rlimit) (err error) { func Getrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, nil, rlim) err = Prlimit(0, resource, nil, rlim)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -185,7 +159,7 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT //sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
func Setrlimit(resource int, rlim *Rlimit) (err error) { func Setrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, rlim, nil) err = Prlimit(0, resource, rlim, nil)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -232,12 +206,3 @@ func (cmsg *Cmsghdr) SetLen(length int) {
func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) {
rsa.Service_name_len = uint32(length) rsa.Service_name_len = uint32(length)
} }
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
func Poll(fds []PollFd, timeout int) (n int, err error) {
if len(fds) == 0 {
return poll(nil, 0, timeout)
}
return poll(&fds[0], len(fds), timeout)
}

View File

@ -3,8 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
//go:build linux && ppc //go:build linux && ppc
// +build linux // +build linux,ppc
// +build ppc
package unix package unix
@ -13,8 +12,6 @@ import (
"unsafe" "unsafe"
) )
//sys dup2(oldfd int, newfd int) (err error)
//sysnb EpollCreate(size int) (fd int, err error)
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 //sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
@ -24,7 +21,6 @@ import (
//sysnb Geteuid() (euid int) //sysnb Geteuid() (euid int)
//sysnb Getgid() (gid int) //sysnb Getgid() (gid int)
//sysnb Getuid() (uid int) //sysnb Getuid() (uid int)
//sysnb InotifyInit() (fd int, err error)
//sys Ioperm(from int, num int, on int) (err error) //sys Ioperm(from int, num int, on int) (err error)
//sys Iopl(level int) (err error) //sys Iopl(level int) (err error)
//sys Lchown(path string, uid int, gid int) (err error) //sys Lchown(path string, uid int, gid int) (err error)
@ -143,7 +139,7 @@ const rlimInf32 = ^uint32(0)
const rlimInf64 = ^uint64(0) const rlimInf64 = ^uint64(0)
func Getrlimit(resource int, rlim *Rlimit) (err error) { func Getrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, nil, rlim) err = Prlimit(0, resource, nil, rlim)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -171,7 +167,7 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT //sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
func Setrlimit(resource int, rlim *Rlimit) (err error) { func Setrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, rlim, nil) err = Prlimit(0, resource, rlim, nil)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -219,41 +215,6 @@ func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) {
rsa.Service_name_len = uint32(length) rsa.Service_name_len = uint32(length)
} }
//sysnb pipe(p *[2]_C_int) (err error)
func Pipe(p []int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe(&pp)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
func Pipe2(p []int, flags int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, flags)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
func Poll(fds []PollFd, timeout int) (n int, err error) {
if len(fds) == 0 {
return poll(nil, 0, timeout)
}
return poll(&fds[0], len(fds), timeout)
}
//sys syncFileRange2(fd int, flags int, off int64, n int64) (err error) = SYS_SYNC_FILE_RANGE2 //sys syncFileRange2(fd int, flags int, off int64, n int64) (err error) = SYS_SYNC_FILE_RANGE2
func SyncFileRange(fd int, off int64, n int64, flags int) error { func SyncFileRange(fd int, off int64, n int64, flags int) error {

View File

@ -8,8 +8,6 @@
package unix package unix
//sys dup2(oldfd int, newfd int) (err error)
//sysnb EpollCreate(size int) (fd int, err error)
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
@ -22,7 +20,6 @@ package unix
//sysnb Getgid() (gid int) //sysnb Getgid() (gid int)
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) = SYS_UGETRLIMIT //sysnb Getrlimit(resource int, rlim *Rlimit) (err error) = SYS_UGETRLIMIT
//sysnb Getuid() (uid int) //sysnb Getuid() (uid int)
//sysnb InotifyInit() (fd int, err error)
//sys Ioperm(from int, num int, on int) (err error) //sys Ioperm(from int, num int, on int) (err error)
//sys Iopl(level int) (err error) //sys Iopl(level int) (err error)
//sys Lchown(path string, uid int, gid int) (err error) //sys Lchown(path string, uid int, gid int) (err error)
@ -104,41 +101,6 @@ func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) {
rsa.Service_name_len = uint64(length) rsa.Service_name_len = uint64(length)
} }
//sysnb pipe(p *[2]_C_int) (err error)
func Pipe(p []int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe(&pp)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
func Pipe2(p []int, flags int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, flags)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
func Poll(fds []PollFd, timeout int) (n int, err error) {
if len(fds) == 0 {
return poll(nil, 0, timeout)
}
return poll(&fds[0], len(fds), timeout)
}
//sys syncFileRange2(fd int, flags int, off int64, n int64) (err error) = SYS_SYNC_FILE_RANGE2 //sys syncFileRange2(fd int, flags int, off int64, n int64) (err error) = SYS_SYNC_FILE_RANGE2
func SyncFileRange(fd int, off int64, n int64, flags int) error { func SyncFileRange(fd int, off int64, n int64, flags int) error {

View File

@ -9,13 +9,6 @@ package unix
import "unsafe" import "unsafe"
func EpollCreate(size int) (fd int, err error) {
if size <= 0 {
return -1, EINVAL
}
return EpollCreate1(0)
}
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
@ -144,30 +137,6 @@ func utimes(path string, tv *[2]Timeval) (err error) {
return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
} }
func Pipe(p []int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, 0)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
func Pipe2(p []int, flags int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, flags)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
func (r *PtraceRegs) PC() uint64 { return r.Pc } func (r *PtraceRegs) PC() uint64 { return r.Pc }
func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc } func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc }
@ -192,27 +161,11 @@ func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) {
rsa.Service_name_len = uint64(length) rsa.Service_name_len = uint64(length)
} }
func InotifyInit() (fd int, err error) {
return InotifyInit1(0)
}
func Pause() error { func Pause() error {
_, err := ppoll(nil, 0, nil, nil) _, err := ppoll(nil, 0, nil, nil)
return err return err
} }
func Poll(fds []PollFd, timeout int) (n int, err error) {
var ts *Timespec
if timeout >= 0 {
ts = new(Timespec)
*ts = NsecToTimespec(int64(timeout) * 1e6)
}
if len(fds) == 0 {
return ppoll(nil, 0, ts, nil)
}
return ppoll(&fds[0], len(fds), ts, nil)
}
func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
return Renameat2(olddirfd, oldpath, newdirfd, newpath, 0) return Renameat2(olddirfd, oldpath, newdirfd, newpath, 0)
} }
@ -229,7 +182,3 @@ func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error
} }
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags) return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
} }
// dup2 exists because func Dup3 in syscall_linux.go references
// it in an unreachable path. dup2 isn't available on arm64.
func dup2(oldfd int, newfd int) error

View File

@ -11,8 +11,6 @@ import (
"unsafe" "unsafe"
) )
//sys dup2(oldfd int, newfd int) (err error)
//sysnb EpollCreate(size int) (fd int, err error)
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
@ -25,7 +23,6 @@ import (
//sysnb Getgid() (gid int) //sysnb Getgid() (gid int)
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) //sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
//sysnb Getuid() (uid int) //sysnb Getuid() (uid int)
//sysnb InotifyInit() (fd int, err error)
//sys Lchown(path string, uid int, gid int) (err error) //sys Lchown(path string, uid int, gid int) (err error)
//sys Lstat(path string, stat *Stat_t) (err error) //sys Lstat(path string, stat *Stat_t) (err error)
//sys Pause() (err error) //sys Pause() (err error)
@ -77,30 +74,6 @@ func setTimeval(sec, usec int64) Timeval {
return Timeval{Sec: sec, Usec: usec} return Timeval{Sec: sec, Usec: usec}
} }
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
func Pipe(p []int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, 0) // pipe2 is the same as pipe when flags are set to 0.
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
func Pipe2(p []int, flags int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, flags)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
func Ioperm(from int, num int, on int) (err error) { func Ioperm(from int, num int, on int) (err error) {
return ENOSYS return ENOSYS
} }
@ -324,15 +297,6 @@ func Shutdown(s, how int) error {
return nil return nil
} }
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
func Poll(fds []PollFd, timeout int) (n int, err error) {
if len(fds) == 0 {
return poll(nil, 0, timeout)
}
return poll(&fds[0], len(fds), timeout)
}
//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) //sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error { func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {

View File

@ -9,7 +9,6 @@ package unix
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
//sys dup2(oldfd int, newfd int) (err error)
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
//sys Fstat(fd int, stat *Stat_t) (err error) //sys Fstat(fd int, stat *Stat_t) (err error)
//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 //sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
@ -20,7 +19,6 @@ package unix
//sysnb Getgid() (gid int) //sysnb Getgid() (gid int)
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) //sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
//sysnb Getuid() (uid int) //sysnb Getuid() (uid int)
//sysnb InotifyInit() (fd int, err error)
//sys Lchown(path string, uid int, gid int) (err error) //sys Lchown(path string, uid int, gid int) (err error)
//sys Listen(s int, n int) (err error) //sys Listen(s int, n int) (err error)
//sys Lstat(path string, stat *Stat_t) (err error) //sys Lstat(path string, stat *Stat_t) (err error)
@ -119,38 +117,3 @@ func (cmsg *Cmsghdr) SetLen(length int) {
func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) {
rsa.Service_name_len = uint64(length) rsa.Service_name_len = uint64(length)
} }
//sysnb pipe(p *[2]_C_int) (err error)
func Pipe(p []int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe(&pp)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
func Pipe2(p []int, flags int) (err error) {
if len(p) != 2 {
return EINVAL
}
var pp [2]_C_int
err = pipe2(&pp, flags)
p[0] = int(pp[0])
p[1] = int(pp[1])
return
}
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
func Poll(fds []PollFd, timeout int) (n int, err error) {
if len(fds) == 0 {
return poll(nil, 0, timeout)
}
return poll(&fds[0], len(fds), timeout)
}

View File

@ -13,7 +13,10 @@
package unix package unix
import ( import (
"fmt"
"os"
"runtime" "runtime"
"sync"
"syscall" "syscall"
"unsafe" "unsafe"
) )
@ -744,3 +747,240 @@ func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, e
func Munmap(b []byte) (err error) { func Munmap(b []byte) (err error) {
return mapper.Munmap(b) return mapper.Munmap(b)
} }
// Event Ports
type fileObjCookie struct {
fobj *fileObj
cookie interface{}
}
// EventPort provides a safe abstraction on top of Solaris/illumos Event Ports.
type EventPort struct {
port int
mu sync.Mutex
fds map[uintptr]interface{}
paths map[string]*fileObjCookie
}
// PortEvent is an abstraction of the port_event C struct.
// Compare Source against PORT_SOURCE_FILE or PORT_SOURCE_FD
// to see if Path or Fd was the event source. The other will be
// uninitialized.
type PortEvent struct {
Cookie interface{}
Events int32
Fd uintptr
Path string
Source uint16
fobj *fileObj
}
// NewEventPort creates a new EventPort including the
// underlying call to port_create(3c).
func NewEventPort() (*EventPort, error) {
port, err := port_create()
if err != nil {
return nil, err
}
e := &EventPort{
port: port,
fds: make(map[uintptr]interface{}),
paths: make(map[string]*fileObjCookie),
}
return e, nil
}
//sys port_create() (n int, err error)
//sys port_associate(port int, source int, object uintptr, events int, user *byte) (n int, err error)
//sys port_dissociate(port int, source int, object uintptr) (n int, err error)
//sys port_get(port int, pe *portEvent, timeout *Timespec) (n int, err error)
//sys port_getn(port int, pe *portEvent, max uint32, nget *uint32, timeout *Timespec) (n int, err error)
// Close closes the event port.
func (e *EventPort) Close() error {
e.mu.Lock()
defer e.mu.Unlock()
e.fds = nil
e.paths = nil
return Close(e.port)
}
// PathIsWatched checks to see if path is associated with this EventPort.
func (e *EventPort) PathIsWatched(path string) bool {
e.mu.Lock()
defer e.mu.Unlock()
_, found := e.paths[path]
return found
}
// FdIsWatched checks to see if fd is associated with this EventPort.
func (e *EventPort) FdIsWatched(fd uintptr) bool {
e.mu.Lock()
defer e.mu.Unlock()
_, found := e.fds[fd]
return found
}
// AssociatePath wraps port_associate(3c) for a filesystem path including
// creating the necessary file_obj from the provided stat information.
func (e *EventPort) AssociatePath(path string, stat os.FileInfo, events int, cookie interface{}) error {
e.mu.Lock()
defer e.mu.Unlock()
if _, found := e.paths[path]; found {
return fmt.Errorf("%v is already associated with this Event Port", path)
}
fobj, err := createFileObj(path, stat)
if err != nil {
return err
}
fCookie := &fileObjCookie{fobj, cookie}
_, err = port_associate(e.port, PORT_SOURCE_FILE, uintptr(unsafe.Pointer(fobj)), events, (*byte)(unsafe.Pointer(&fCookie.cookie)))
if err != nil {
return err
}
e.paths[path] = fCookie
return nil
}
// DissociatePath wraps port_dissociate(3c) for a filesystem path.
func (e *EventPort) DissociatePath(path string) error {
e.mu.Lock()
defer e.mu.Unlock()
f, ok := e.paths[path]
if !ok {
return fmt.Errorf("%v is not associated with this Event Port", path)
}
_, err := port_dissociate(e.port, PORT_SOURCE_FILE, uintptr(unsafe.Pointer(f.fobj)))
if err != nil {
return err
}
delete(e.paths, path)
return nil
}
// AssociateFd wraps calls to port_associate(3c) on file descriptors.
func (e *EventPort) AssociateFd(fd uintptr, events int, cookie interface{}) error {
e.mu.Lock()
defer e.mu.Unlock()
if _, found := e.fds[fd]; found {
return fmt.Errorf("%v is already associated with this Event Port", fd)
}
pcookie := &cookie
_, err := port_associate(e.port, PORT_SOURCE_FD, fd, events, (*byte)(unsafe.Pointer(pcookie)))
if err != nil {
return err
}
e.fds[fd] = pcookie
return nil
}
// DissociateFd wraps calls to port_dissociate(3c) on file descriptors.
func (e *EventPort) DissociateFd(fd uintptr) error {
e.mu.Lock()
defer e.mu.Unlock()
_, ok := e.fds[fd]
if !ok {
return fmt.Errorf("%v is not associated with this Event Port", fd)
}
_, err := port_dissociate(e.port, PORT_SOURCE_FD, fd)
if err != nil {
return err
}
delete(e.fds, fd)
return nil
}
func createFileObj(name string, stat os.FileInfo) (*fileObj, error) {
fobj := new(fileObj)
bs, err := ByteSliceFromString(name)
if err != nil {
return nil, err
}
fobj.Name = (*int8)(unsafe.Pointer(&bs[0]))
s := stat.Sys().(*syscall.Stat_t)
fobj.Atim.Sec = s.Atim.Sec
fobj.Atim.Nsec = s.Atim.Nsec
fobj.Mtim.Sec = s.Mtim.Sec
fobj.Mtim.Nsec = s.Mtim.Nsec
fobj.Ctim.Sec = s.Ctim.Sec
fobj.Ctim.Nsec = s.Ctim.Nsec
return fobj, nil
}
// GetOne wraps port_get(3c) and returns a single PortEvent.
func (e *EventPort) GetOne(t *Timespec) (*PortEvent, error) {
pe := new(portEvent)
_, err := port_get(e.port, pe, t)
if err != nil {
return nil, err
}
p := new(PortEvent)
p.Events = pe.Events
p.Source = pe.Source
e.mu.Lock()
defer e.mu.Unlock()
switch pe.Source {
case PORT_SOURCE_FD:
p.Fd = uintptr(pe.Object)
cookie := (*interface{})(unsafe.Pointer(pe.User))
p.Cookie = *cookie
delete(e.fds, p.Fd)
case PORT_SOURCE_FILE:
p.fobj = (*fileObj)(unsafe.Pointer(uintptr(pe.Object)))
p.Path = BytePtrToString((*byte)(unsafe.Pointer(p.fobj.Name)))
cookie := (*interface{})(unsafe.Pointer(pe.User))
p.Cookie = *cookie
delete(e.paths, p.Path)
}
return p, nil
}
// Pending wraps port_getn(3c) and returns how many events are pending.
func (e *EventPort) Pending() (int, error) {
var n uint32 = 0
_, err := port_getn(e.port, nil, 0, &n, nil)
return int(n), err
}
// Get wraps port_getn(3c) and fills a slice of PortEvent.
// It will block until either min events have been received
// or the timeout has been exceeded. It will return how many
// events were actually received along with any error information.
func (e *EventPort) Get(s []PortEvent, min int, timeout *Timespec) (int, error) {
if min == 0 {
return 0, fmt.Errorf("need to request at least one event or use Pending() instead")
}
if len(s) < min {
return 0, fmt.Errorf("len(s) (%d) is less than min events requested (%d)", len(s), min)
}
got := uint32(min)
max := uint32(len(s))
var err error
ps := make([]portEvent, max, max)
_, err = port_getn(e.port, &ps[0], max, &got, timeout)
// got will be trustworthy with ETIME, but not any other error.
if err != nil && err != ETIME {
return 0, err
}
e.mu.Lock()
defer e.mu.Unlock()
for i := 0; i < int(got); i++ {
s[i].Events = ps[i].Events
s[i].Source = ps[i].Source
switch ps[i].Source {
case PORT_SOURCE_FD:
s[i].Fd = uintptr(ps[i].Object)
cookie := (*interface{})(unsafe.Pointer(ps[i].User))
s[i].Cookie = *cookie
delete(e.fds, s[i].Fd)
case PORT_SOURCE_FILE:
s[i].fobj = (*fileObj)(unsafe.Pointer(uintptr(ps[i].Object)))
s[i].Path = BytePtrToString((*byte)(unsafe.Pointer(s[i].fobj.Name)))
cookie := (*interface{})(unsafe.Pointer(ps[i].User))
s[i].Cookie = *cookie
delete(e.paths, s[i].Path)
}
}
return int(got), err
}

View File

@ -313,6 +313,10 @@ func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
return return
} }
func Send(s int, buf []byte, flags int) (err error) {
return sendto(s, buf, flags, nil, 0)
}
func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) { func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) {
ptr, n, err := to.sockaddr() ptr, n, err := to.sockaddr()
if err != nil { if err != nil {

View File

@ -1206,6 +1206,7 @@ const (
RTF_DONE = 0x40 RTF_DONE = 0x40
RTF_DYNAMIC = 0x10 RTF_DYNAMIC = 0x10
RTF_GATEWAY = 0x2 RTF_GATEWAY = 0x2
RTF_GLOBAL = 0x40000000
RTF_HOST = 0x4 RTF_HOST = 0x4
RTF_IFREF = 0x4000000 RTF_IFREF = 0x4000000
RTF_IFSCOPE = 0x1000000 RTF_IFSCOPE = 0x1000000
@ -1262,6 +1263,11 @@ const (
SCM_RIGHTS = 0x1 SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x2 SCM_TIMESTAMP = 0x2
SCM_TIMESTAMP_MONOTONIC = 0x4 SCM_TIMESTAMP_MONOTONIC = 0x4
SEEK_CUR = 0x1
SEEK_DATA = 0x4
SEEK_END = 0x2
SEEK_HOLE = 0x3
SEEK_SET = 0x0
SHUT_RD = 0x0 SHUT_RD = 0x0
SHUT_RDWR = 0x2 SHUT_RDWR = 0x2
SHUT_WR = 0x1 SHUT_WR = 0x1

View File

@ -1206,6 +1206,7 @@ const (
RTF_DONE = 0x40 RTF_DONE = 0x40
RTF_DYNAMIC = 0x10 RTF_DYNAMIC = 0x10
RTF_GATEWAY = 0x2 RTF_GATEWAY = 0x2
RTF_GLOBAL = 0x40000000
RTF_HOST = 0x4 RTF_HOST = 0x4
RTF_IFREF = 0x4000000 RTF_IFREF = 0x4000000
RTF_IFSCOPE = 0x1000000 RTF_IFSCOPE = 0x1000000
@ -1262,6 +1263,11 @@ const (
SCM_RIGHTS = 0x1 SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x2 SCM_TIMESTAMP = 0x2
SCM_TIMESTAMP_MONOTONIC = 0x4 SCM_TIMESTAMP_MONOTONIC = 0x4
SEEK_CUR = 0x1
SEEK_DATA = 0x4
SEEK_END = 0x2
SEEK_HOLE = 0x3
SEEK_SET = 0x0
SHUT_RD = 0x0 SHUT_RD = 0x0
SHUT_RDWR = 0x2 SHUT_RDWR = 0x2
SHUT_WR = 0x1 SHUT_WR = 0x1

View File

@ -1297,6 +1297,11 @@ const (
SCM_RIGHTS = 0x1 SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x2 SCM_TIMESTAMP = 0x2
SCM_TIME_INFO = 0x7 SCM_TIME_INFO = 0x7
SEEK_CUR = 0x1
SEEK_DATA = 0x3
SEEK_END = 0x2
SEEK_HOLE = 0x4
SEEK_SET = 0x0
SHUT_RD = 0x0 SHUT_RD = 0x0
SHUT_RDWR = 0x2 SHUT_RDWR = 0x2
SHUT_WR = 0x1 SHUT_WR = 0x1

View File

@ -1298,6 +1298,11 @@ const (
SCM_RIGHTS = 0x1 SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x2 SCM_TIMESTAMP = 0x2
SCM_TIME_INFO = 0x7 SCM_TIME_INFO = 0x7
SEEK_CUR = 0x1
SEEK_DATA = 0x3
SEEK_END = 0x2
SEEK_HOLE = 0x4
SEEK_SET = 0x0
SHUT_RD = 0x0 SHUT_RD = 0x0
SHUT_RDWR = 0x2 SHUT_RDWR = 0x2
SHUT_WR = 0x1 SHUT_WR = 0x1

View File

@ -1276,6 +1276,11 @@ const (
SCM_CREDS = 0x3 SCM_CREDS = 0x3
SCM_RIGHTS = 0x1 SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x2 SCM_TIMESTAMP = 0x2
SEEK_CUR = 0x1
SEEK_DATA = 0x3
SEEK_END = 0x2
SEEK_HOLE = 0x4
SEEK_SET = 0x0
SHUT_RD = 0x0 SHUT_RD = 0x0
SHUT_RDWR = 0x2 SHUT_RDWR = 0x2
SHUT_WR = 0x1 SHUT_WR = 0x1

View File

@ -1298,6 +1298,11 @@ const (
SCM_RIGHTS = 0x1 SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x2 SCM_TIMESTAMP = 0x2
SCM_TIME_INFO = 0x7 SCM_TIME_INFO = 0x7
SEEK_CUR = 0x1
SEEK_DATA = 0x3
SEEK_END = 0x2
SEEK_HOLE = 0x4
SEEK_SET = 0x0
SHUT_RD = 0x0 SHUT_RD = 0x0
SHUT_RDWR = 0x2 SHUT_RDWR = 0x2
SHUT_WR = 0x1 SHUT_WR = 0x1

View File

@ -228,7 +228,11 @@ const (
BPF_OR = 0x40 BPF_OR = 0x40
BPF_PSEUDO_BTF_ID = 0x3 BPF_PSEUDO_BTF_ID = 0x3
BPF_PSEUDO_CALL = 0x1 BPF_PSEUDO_CALL = 0x1
BPF_PSEUDO_FUNC = 0x4
BPF_PSEUDO_KFUNC_CALL = 0x2
BPF_PSEUDO_MAP_FD = 0x1 BPF_PSEUDO_MAP_FD = 0x1
BPF_PSEUDO_MAP_IDX = 0x5
BPF_PSEUDO_MAP_IDX_VALUE = 0x6
BPF_PSEUDO_MAP_VALUE = 0x2 BPF_PSEUDO_MAP_VALUE = 0x2
BPF_RET = 0x6 BPF_RET = 0x6
BPF_RSH = 0x70 BPF_RSH = 0x70
@ -475,6 +479,8 @@ const (
DM_LIST_VERSIONS = 0xc138fd0d DM_LIST_VERSIONS = 0xc138fd0d
DM_MAX_TYPE_NAME = 0x10 DM_MAX_TYPE_NAME = 0x10
DM_NAME_LEN = 0x80 DM_NAME_LEN = 0x80
DM_NAME_LIST_FLAG_DOESNT_HAVE_UUID = 0x2
DM_NAME_LIST_FLAG_HAS_UUID = 0x1
DM_NOFLUSH_FLAG = 0x800 DM_NOFLUSH_FLAG = 0x800
DM_PERSISTENT_DEV_FLAG = 0x8 DM_PERSISTENT_DEV_FLAG = 0x8
DM_QUERY_INACTIVE_TABLE_FLAG = 0x1000 DM_QUERY_INACTIVE_TABLE_FLAG = 0x1000
@ -494,9 +500,9 @@ const (
DM_UUID_FLAG = 0x4000 DM_UUID_FLAG = 0x4000
DM_UUID_LEN = 0x81 DM_UUID_LEN = 0x81
DM_VERSION = 0xc138fd00 DM_VERSION = 0xc138fd00
DM_VERSION_EXTRA = "-ioctl (2021-02-01)" DM_VERSION_EXTRA = "-ioctl (2021-03-22)"
DM_VERSION_MAJOR = 0x4 DM_VERSION_MAJOR = 0x4
DM_VERSION_MINOR = 0x2c DM_VERSION_MINOR = 0x2d
DM_VERSION_PATCHLEVEL = 0x0 DM_VERSION_PATCHLEVEL = 0x0
DT_BLK = 0x6 DT_BLK = 0x6
DT_CHR = 0x2 DT_CHR = 0x2
@ -981,12 +987,6 @@ const (
HPFS_SUPER_MAGIC = 0xf995e849 HPFS_SUPER_MAGIC = 0xf995e849
HUGETLBFS_MAGIC = 0x958458f6 HUGETLBFS_MAGIC = 0x958458f6
IBSHIFT = 0x10 IBSHIFT = 0x10
ICMPV6_FILTER = 0x1
ICMPV6_FILTER_BLOCK = 0x1
ICMPV6_FILTER_BLOCKOTHERS = 0x3
ICMPV6_FILTER_PASS = 0x2
ICMPV6_FILTER_PASSONLY = 0x4
ICMP_FILTER = 0x1
ICRNL = 0x100 ICRNL = 0x100
IFA_F_DADFAILED = 0x8 IFA_F_DADFAILED = 0x8
IFA_F_DEPRECATED = 0x20 IFA_F_DEPRECATED = 0x20
@ -1257,6 +1257,7 @@ const (
KEXEC_ARCH_PARISC = 0xf0000 KEXEC_ARCH_PARISC = 0xf0000
KEXEC_ARCH_PPC = 0x140000 KEXEC_ARCH_PPC = 0x140000
KEXEC_ARCH_PPC64 = 0x150000 KEXEC_ARCH_PPC64 = 0x150000
KEXEC_ARCH_RISCV = 0xf30000
KEXEC_ARCH_S390 = 0x160000 KEXEC_ARCH_S390 = 0x160000
KEXEC_ARCH_SH = 0x2a0000 KEXEC_ARCH_SH = 0x2a0000
KEXEC_ARCH_X86_64 = 0x3e0000 KEXEC_ARCH_X86_64 = 0x3e0000
@ -1332,6 +1333,20 @@ const (
KEY_SPEC_THREAD_KEYRING = -0x1 KEY_SPEC_THREAD_KEYRING = -0x1
KEY_SPEC_USER_KEYRING = -0x4 KEY_SPEC_USER_KEYRING = -0x4
KEY_SPEC_USER_SESSION_KEYRING = -0x5 KEY_SPEC_USER_SESSION_KEYRING = -0x5
LANDLOCK_ACCESS_FS_EXECUTE = 0x1
LANDLOCK_ACCESS_FS_MAKE_BLOCK = 0x800
LANDLOCK_ACCESS_FS_MAKE_CHAR = 0x40
LANDLOCK_ACCESS_FS_MAKE_DIR = 0x80
LANDLOCK_ACCESS_FS_MAKE_FIFO = 0x400
LANDLOCK_ACCESS_FS_MAKE_REG = 0x100
LANDLOCK_ACCESS_FS_MAKE_SOCK = 0x200
LANDLOCK_ACCESS_FS_MAKE_SYM = 0x1000
LANDLOCK_ACCESS_FS_READ_DIR = 0x8
LANDLOCK_ACCESS_FS_READ_FILE = 0x4
LANDLOCK_ACCESS_FS_REMOVE_DIR = 0x10
LANDLOCK_ACCESS_FS_REMOVE_FILE = 0x20
LANDLOCK_ACCESS_FS_WRITE_FILE = 0x2
LANDLOCK_CREATE_RULESET_VERSION = 0x1
LINUX_REBOOT_CMD_CAD_OFF = 0x0 LINUX_REBOOT_CMD_CAD_OFF = 0x0
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
LINUX_REBOOT_CMD_HALT = 0xcdef0123 LINUX_REBOOT_CMD_HALT = 0xcdef0123
@ -1636,11 +1651,12 @@ const (
NFNL_MSG_BATCH_END = 0x11 NFNL_MSG_BATCH_END = 0x11
NFNL_NFA_NEST = 0x8000 NFNL_NFA_NEST = 0x8000
NFNL_SUBSYS_ACCT = 0x7 NFNL_SUBSYS_ACCT = 0x7
NFNL_SUBSYS_COUNT = 0xc NFNL_SUBSYS_COUNT = 0xd
NFNL_SUBSYS_CTHELPER = 0x9 NFNL_SUBSYS_CTHELPER = 0x9
NFNL_SUBSYS_CTNETLINK = 0x1 NFNL_SUBSYS_CTNETLINK = 0x1
NFNL_SUBSYS_CTNETLINK_EXP = 0x2 NFNL_SUBSYS_CTNETLINK_EXP = 0x2
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
NFNL_SUBSYS_HOOK = 0xc
NFNL_SUBSYS_IPSET = 0x6 NFNL_SUBSYS_IPSET = 0x6
NFNL_SUBSYS_NFTABLES = 0xa NFNL_SUBSYS_NFTABLES = 0xa
NFNL_SUBSYS_NFT_COMPAT = 0xb NFNL_SUBSYS_NFT_COMPAT = 0xb
@ -1756,14 +1772,19 @@ const (
PERF_ATTR_SIZE_VER4 = 0x68 PERF_ATTR_SIZE_VER4 = 0x68
PERF_ATTR_SIZE_VER5 = 0x70 PERF_ATTR_SIZE_VER5 = 0x70
PERF_ATTR_SIZE_VER6 = 0x78 PERF_ATTR_SIZE_VER6 = 0x78
PERF_ATTR_SIZE_VER7 = 0x80
PERF_AUX_FLAG_COLLISION = 0x8 PERF_AUX_FLAG_COLLISION = 0x8
PERF_AUX_FLAG_CORESIGHT_FORMAT_CORESIGHT = 0x0
PERF_AUX_FLAG_CORESIGHT_FORMAT_RAW = 0x100
PERF_AUX_FLAG_OVERWRITE = 0x2 PERF_AUX_FLAG_OVERWRITE = 0x2
PERF_AUX_FLAG_PARTIAL = 0x4 PERF_AUX_FLAG_PARTIAL = 0x4
PERF_AUX_FLAG_PMU_FORMAT_TYPE_MASK = 0xff00
PERF_AUX_FLAG_TRUNCATED = 0x1 PERF_AUX_FLAG_TRUNCATED = 0x1
PERF_FLAG_FD_CLOEXEC = 0x8 PERF_FLAG_FD_CLOEXEC = 0x8
PERF_FLAG_FD_NO_GROUP = 0x1 PERF_FLAG_FD_NO_GROUP = 0x1
PERF_FLAG_FD_OUTPUT = 0x2 PERF_FLAG_FD_OUTPUT = 0x2
PERF_FLAG_PID_CGROUP = 0x4 PERF_FLAG_PID_CGROUP = 0x4
PERF_HW_EVENT_MASK = 0xffffffff
PERF_MAX_CONTEXTS_PER_STACK = 0x8 PERF_MAX_CONTEXTS_PER_STACK = 0x8
PERF_MAX_STACK_DEPTH = 0x7f PERF_MAX_STACK_DEPTH = 0x7f
PERF_MEM_BLK_ADDR = 0x4 PERF_MEM_BLK_ADDR = 0x4
@ -1822,6 +1843,7 @@ const (
PERF_MEM_TLB_OS = 0x40 PERF_MEM_TLB_OS = 0x40
PERF_MEM_TLB_SHIFT = 0x1a PERF_MEM_TLB_SHIFT = 0x1a
PERF_MEM_TLB_WK = 0x20 PERF_MEM_TLB_WK = 0x20
PERF_PMU_TYPE_SHIFT = 0x20
PERF_RECORD_KSYMBOL_FLAGS_UNREGISTER = 0x1 PERF_RECORD_KSYMBOL_FLAGS_UNREGISTER = 0x1
PERF_RECORD_MISC_COMM_EXEC = 0x2000 PERF_RECORD_MISC_COMM_EXEC = 0x2000
PERF_RECORD_MISC_CPUMODE_MASK = 0x7 PERF_RECORD_MISC_CPUMODE_MASK = 0x7
@ -1921,7 +1943,15 @@ const (
PR_PAC_APGAKEY = 0x10 PR_PAC_APGAKEY = 0x10
PR_PAC_APIAKEY = 0x1 PR_PAC_APIAKEY = 0x1
PR_PAC_APIBKEY = 0x2 PR_PAC_APIBKEY = 0x2
PR_PAC_GET_ENABLED_KEYS = 0x3d
PR_PAC_RESET_KEYS = 0x36 PR_PAC_RESET_KEYS = 0x36
PR_PAC_SET_ENABLED_KEYS = 0x3c
PR_SCHED_CORE = 0x3e
PR_SCHED_CORE_CREATE = 0x1
PR_SCHED_CORE_GET = 0x0
PR_SCHED_CORE_MAX = 0x4
PR_SCHED_CORE_SHARE_FROM = 0x3
PR_SCHED_CORE_SHARE_TO = 0x2
PR_SET_CHILD_SUBREAPER = 0x24 PR_SET_CHILD_SUBREAPER = 0x24
PR_SET_DUMPABLE = 0x4 PR_SET_DUMPABLE = 0x4
PR_SET_ENDIAN = 0x14 PR_SET_ENDIAN = 0x14
@ -2003,6 +2033,7 @@ const (
PTRACE_GETREGSET = 0x4204 PTRACE_GETREGSET = 0x4204
PTRACE_GETSIGINFO = 0x4202 PTRACE_GETSIGINFO = 0x4202
PTRACE_GETSIGMASK = 0x420a PTRACE_GETSIGMASK = 0x420a
PTRACE_GET_RSEQ_CONFIGURATION = 0x420f
PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_GET_SYSCALL_INFO = 0x420e
PTRACE_INTERRUPT = 0x4207 PTRACE_INTERRUPT = 0x4207
PTRACE_KILL = 0x8 PTRACE_KILL = 0x8
@ -2163,6 +2194,7 @@ const (
RTM_DELNEIGH = 0x1d RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51 RTM_DELNETCONF = 0x51
RTM_DELNEXTHOP = 0x69 RTM_DELNEXTHOP = 0x69
RTM_DELNEXTHOPBUCKET = 0x75
RTM_DELNSID = 0x59 RTM_DELNSID = 0x59
RTM_DELQDISC = 0x25 RTM_DELQDISC = 0x25
RTM_DELROUTE = 0x19 RTM_DELROUTE = 0x19
@ -2193,6 +2225,7 @@ const (
RTM_GETNEIGHTBL = 0x42 RTM_GETNEIGHTBL = 0x42
RTM_GETNETCONF = 0x52 RTM_GETNETCONF = 0x52
RTM_GETNEXTHOP = 0x6a RTM_GETNEXTHOP = 0x6a
RTM_GETNEXTHOPBUCKET = 0x76
RTM_GETNSID = 0x5a RTM_GETNSID = 0x5a
RTM_GETQDISC = 0x26 RTM_GETQDISC = 0x26
RTM_GETROUTE = 0x1a RTM_GETROUTE = 0x1a
@ -2201,7 +2234,7 @@ const (
RTM_GETTCLASS = 0x2a RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e RTM_GETTFILTER = 0x2e
RTM_GETVLAN = 0x72 RTM_GETVLAN = 0x72
RTM_MAX = 0x73 RTM_MAX = 0x77
RTM_NEWACTION = 0x30 RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14 RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48 RTM_NEWADDRLABEL = 0x48
@ -2215,6 +2248,7 @@ const (
RTM_NEWNEIGHTBL = 0x40 RTM_NEWNEIGHTBL = 0x40
RTM_NEWNETCONF = 0x50 RTM_NEWNETCONF = 0x50
RTM_NEWNEXTHOP = 0x68 RTM_NEWNEXTHOP = 0x68
RTM_NEWNEXTHOPBUCKET = 0x74
RTM_NEWNSID = 0x58 RTM_NEWNSID = 0x58
RTM_NEWNVLAN = 0x70 RTM_NEWNVLAN = 0x70
RTM_NEWPREFIX = 0x34 RTM_NEWPREFIX = 0x34
@ -2224,8 +2258,8 @@ const (
RTM_NEWSTATS = 0x5c RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28 RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c RTM_NEWTFILTER = 0x2c
RTM_NR_FAMILIES = 0x19 RTM_NR_FAMILIES = 0x1a
RTM_NR_MSGTYPES = 0x64 RTM_NR_MSGTYPES = 0x68
RTM_SETDCB = 0x4f RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13 RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43 RTM_SETNEIGHTBL = 0x43
@ -2253,6 +2287,7 @@ const (
RTPROT_MROUTED = 0x11 RTPROT_MROUTED = 0x11
RTPROT_MRT = 0xa RTPROT_MRT = 0xa
RTPROT_NTK = 0xf RTPROT_NTK = 0xf
RTPROT_OPENR = 0x63
RTPROT_OSPF = 0xbc RTPROT_OSPF = 0xbc
RTPROT_RA = 0x9 RTPROT_RA = 0x9
RTPROT_REDIRECT = 0x1 RTPROT_REDIRECT = 0x1
@ -2283,7 +2318,14 @@ const (
SECCOMP_MODE_DISABLED = 0x0 SECCOMP_MODE_DISABLED = 0x0
SECCOMP_MODE_FILTER = 0x2 SECCOMP_MODE_FILTER = 0x2
SECCOMP_MODE_STRICT = 0x1 SECCOMP_MODE_STRICT = 0x1
SECRETMEM_MAGIC = 0x5345434d
SECURITYFS_MAGIC = 0x73636673 SECURITYFS_MAGIC = 0x73636673
SEEK_CUR = 0x1
SEEK_DATA = 0x3
SEEK_END = 0x2
SEEK_HOLE = 0x4
SEEK_MAX = 0x4
SEEK_SET = 0x0
SELINUX_MAGIC = 0xf97cff8c SELINUX_MAGIC = 0xf97cff8c
SHUT_RD = 0x0 SHUT_RD = 0x0
SHUT_RDWR = 0x2 SHUT_RDWR = 0x2
@ -2530,6 +2572,14 @@ const (
TCOFLUSH = 0x1 TCOFLUSH = 0x1
TCOOFF = 0x0 TCOOFF = 0x0
TCOON = 0x1 TCOON = 0x1
TCPOPT_EOL = 0x0
TCPOPT_MAXSEG = 0x2
TCPOPT_NOP = 0x1
TCPOPT_SACK = 0x5
TCPOPT_SACK_PERMITTED = 0x4
TCPOPT_TIMESTAMP = 0x8
TCPOPT_TSTAMP_HDR = 0x101080a
TCPOPT_WINDOW = 0x3
TCP_CC_INFO = 0x1a TCP_CC_INFO = 0x1a
TCP_CM_INQ = 0x24 TCP_CM_INQ = 0x24
TCP_CONGESTION = 0xd TCP_CONGESTION = 0xd

View File

@ -147,6 +147,7 @@ const (
NS_GET_USERNS = 0xb701 NS_GET_USERNS = 0xb701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x400c4d19
OTPGETREGIONCOUNT = 0x40044d0e OTPGETREGIONCOUNT = 0x40044d0e
OTPGETREGIONINFO = 0x400c4d0f OTPGETREGIONINFO = 0x400c4d0f
OTPLOCK = 0x800c4d10 OTPLOCK = 0x800c4d10
@ -308,6 +309,7 @@ const (
SO_MARK = 0x24 SO_MARK = 0x24
SO_MAX_PACING_RATE = 0x2f SO_MAX_PACING_RATE = 0x2f
SO_MEMINFO = 0x37 SO_MEMINFO = 0x37
SO_NETNS_COOKIE = 0x47
SO_NOFCS = 0x2b SO_NOFCS = 0x2b
SO_OOBINLINE = 0xa SO_OOBINLINE = 0xa
SO_PASSCRED = 0x10 SO_PASSCRED = 0x10

View File

@ -147,6 +147,7 @@ const (
NS_GET_USERNS = 0xb701 NS_GET_USERNS = 0xb701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x400c4d19
OTPGETREGIONCOUNT = 0x40044d0e OTPGETREGIONCOUNT = 0x40044d0e
OTPGETREGIONINFO = 0x400c4d0f OTPGETREGIONINFO = 0x400c4d0f
OTPLOCK = 0x800c4d10 OTPLOCK = 0x800c4d10
@ -309,6 +310,7 @@ const (
SO_MARK = 0x24 SO_MARK = 0x24
SO_MAX_PACING_RATE = 0x2f SO_MAX_PACING_RATE = 0x2f
SO_MEMINFO = 0x37 SO_MEMINFO = 0x37
SO_NETNS_COOKIE = 0x47
SO_NOFCS = 0x2b SO_NOFCS = 0x2b
SO_OOBINLINE = 0xa SO_OOBINLINE = 0xa
SO_PASSCRED = 0x10 SO_PASSCRED = 0x10

View File

@ -145,6 +145,7 @@ const (
NS_GET_USERNS = 0xb701 NS_GET_USERNS = 0xb701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x400c4d19
OTPGETREGIONCOUNT = 0x40044d0e OTPGETREGIONCOUNT = 0x40044d0e
OTPGETREGIONINFO = 0x400c4d0f OTPGETREGIONINFO = 0x400c4d0f
OTPLOCK = 0x800c4d10 OTPLOCK = 0x800c4d10
@ -315,6 +316,7 @@ const (
SO_MARK = 0x24 SO_MARK = 0x24
SO_MAX_PACING_RATE = 0x2f SO_MAX_PACING_RATE = 0x2f
SO_MEMINFO = 0x37 SO_MEMINFO = 0x37
SO_NETNS_COOKIE = 0x47
SO_NOFCS = 0x2b SO_NOFCS = 0x2b
SO_OOBINLINE = 0xa SO_OOBINLINE = 0xa
SO_PASSCRED = 0x10 SO_PASSCRED = 0x10

View File

@ -148,6 +148,7 @@ const (
NS_GET_USERNS = 0xb701 NS_GET_USERNS = 0xb701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x400c4d19
OTPGETREGIONCOUNT = 0x40044d0e OTPGETREGIONCOUNT = 0x40044d0e
OTPGETREGIONINFO = 0x400c4d0f OTPGETREGIONINFO = 0x400c4d0f
OTPLOCK = 0x800c4d10 OTPLOCK = 0x800c4d10
@ -305,6 +306,7 @@ const (
SO_MARK = 0x24 SO_MARK = 0x24
SO_MAX_PACING_RATE = 0x2f SO_MAX_PACING_RATE = 0x2f
SO_MEMINFO = 0x37 SO_MEMINFO = 0x37
SO_NETNS_COOKIE = 0x47
SO_NOFCS = 0x2b SO_NOFCS = 0x2b
SO_OOBINLINE = 0xa SO_OOBINLINE = 0xa
SO_PASSCRED = 0x10 SO_PASSCRED = 0x10

View File

@ -145,6 +145,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10
@ -308,6 +309,7 @@ const (
SO_MARK = 0x24 SO_MARK = 0x24
SO_MAX_PACING_RATE = 0x2f SO_MAX_PACING_RATE = 0x2f
SO_MEMINFO = 0x37 SO_MEMINFO = 0x37
SO_NETNS_COOKIE = 0x47
SO_NOFCS = 0x2b SO_NOFCS = 0x2b
SO_OOBINLINE = 0x100 SO_OOBINLINE = 0x100
SO_PASSCRED = 0x11 SO_PASSCRED = 0x11

View File

@ -145,6 +145,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10
@ -308,6 +309,7 @@ const (
SO_MARK = 0x24 SO_MARK = 0x24
SO_MAX_PACING_RATE = 0x2f SO_MAX_PACING_RATE = 0x2f
SO_MEMINFO = 0x37 SO_MEMINFO = 0x37
SO_NETNS_COOKIE = 0x47
SO_NOFCS = 0x2b SO_NOFCS = 0x2b
SO_OOBINLINE = 0x100 SO_OOBINLINE = 0x100
SO_PASSCRED = 0x11 SO_PASSCRED = 0x11

View File

@ -145,6 +145,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10
@ -308,6 +309,7 @@ const (
SO_MARK = 0x24 SO_MARK = 0x24
SO_MAX_PACING_RATE = 0x2f SO_MAX_PACING_RATE = 0x2f
SO_MEMINFO = 0x37 SO_MEMINFO = 0x37
SO_NETNS_COOKIE = 0x47
SO_NOFCS = 0x2b SO_NOFCS = 0x2b
SO_OOBINLINE = 0x100 SO_OOBINLINE = 0x100
SO_PASSCRED = 0x11 SO_PASSCRED = 0x11

View File

@ -145,6 +145,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10
@ -308,6 +309,7 @@ const (
SO_MARK = 0x24 SO_MARK = 0x24
SO_MAX_PACING_RATE = 0x2f SO_MAX_PACING_RATE = 0x2f
SO_MEMINFO = 0x37 SO_MEMINFO = 0x37
SO_NETNS_COOKIE = 0x47
SO_NOFCS = 0x2b SO_NOFCS = 0x2b
SO_OOBINLINE = 0x100 SO_OOBINLINE = 0x100
SO_PASSCRED = 0x11 SO_PASSCRED = 0x11

View File

@ -147,6 +147,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x4 OLCUC = 0x4
ONLCR = 0x2 ONLCR = 0x2
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10
@ -363,6 +364,7 @@ const (
SO_MARK = 0x24 SO_MARK = 0x24
SO_MAX_PACING_RATE = 0x2f SO_MAX_PACING_RATE = 0x2f
SO_MEMINFO = 0x37 SO_MEMINFO = 0x37
SO_NETNS_COOKIE = 0x47
SO_NOFCS = 0x2b SO_NOFCS = 0x2b
SO_OOBINLINE = 0xa SO_OOBINLINE = 0xa
SO_PASSCRED = 0x14 SO_PASSCRED = 0x14

View File

@ -147,6 +147,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x4 OLCUC = 0x4
ONLCR = 0x2 ONLCR = 0x2
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10
@ -367,6 +368,7 @@ const (
SO_MARK = 0x24 SO_MARK = 0x24
SO_MAX_PACING_RATE = 0x2f SO_MAX_PACING_RATE = 0x2f
SO_MEMINFO = 0x37 SO_MEMINFO = 0x37
SO_NETNS_COOKIE = 0x47
SO_NOFCS = 0x2b SO_NOFCS = 0x2b
SO_OOBINLINE = 0xa SO_OOBINLINE = 0xa
SO_PASSCRED = 0x14 SO_PASSCRED = 0x14

View File

@ -147,6 +147,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x4 OLCUC = 0x4
ONLCR = 0x2 ONLCR = 0x2
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10
@ -367,6 +368,7 @@ const (
SO_MARK = 0x24 SO_MARK = 0x24
SO_MAX_PACING_RATE = 0x2f SO_MAX_PACING_RATE = 0x2f
SO_MEMINFO = 0x37 SO_MEMINFO = 0x37
SO_NETNS_COOKIE = 0x47
SO_NOFCS = 0x2b SO_NOFCS = 0x2b
SO_OOBINLINE = 0xa SO_OOBINLINE = 0xa
SO_PASSCRED = 0x14 SO_PASSCRED = 0x14

View File

@ -145,6 +145,7 @@ const (
NS_GET_USERNS = 0xb701 NS_GET_USERNS = 0xb701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x400c4d19
OTPGETREGIONCOUNT = 0x40044d0e OTPGETREGIONCOUNT = 0x40044d0e
OTPGETREGIONINFO = 0x400c4d0f OTPGETREGIONINFO = 0x400c4d0f
OTPLOCK = 0x800c4d10 OTPLOCK = 0x800c4d10
@ -296,6 +297,7 @@ const (
SO_MARK = 0x24 SO_MARK = 0x24
SO_MAX_PACING_RATE = 0x2f SO_MAX_PACING_RATE = 0x2f
SO_MEMINFO = 0x37 SO_MEMINFO = 0x37
SO_NETNS_COOKIE = 0x47
SO_NOFCS = 0x2b SO_NOFCS = 0x2b
SO_OOBINLINE = 0xa SO_OOBINLINE = 0xa
SO_PASSCRED = 0x10 SO_PASSCRED = 0x10

View File

@ -145,6 +145,7 @@ const (
NS_GET_USERNS = 0xb701 NS_GET_USERNS = 0xb701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x400c4d19
OTPGETREGIONCOUNT = 0x40044d0e OTPGETREGIONCOUNT = 0x40044d0e
OTPGETREGIONINFO = 0x400c4d0f OTPGETREGIONINFO = 0x400c4d0f
OTPLOCK = 0x800c4d10 OTPLOCK = 0x800c4d10
@ -371,6 +372,7 @@ const (
SO_MARK = 0x24 SO_MARK = 0x24
SO_MAX_PACING_RATE = 0x2f SO_MAX_PACING_RATE = 0x2f
SO_MEMINFO = 0x37 SO_MEMINFO = 0x37
SO_NETNS_COOKIE = 0x47
SO_NOFCS = 0x2b SO_NOFCS = 0x2b
SO_OOBINLINE = 0xa SO_OOBINLINE = 0xa
SO_PASSCRED = 0x10 SO_PASSCRED = 0x10

View File

@ -150,6 +150,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10
@ -362,6 +363,7 @@ const (
SO_MARK = 0x22 SO_MARK = 0x22
SO_MAX_PACING_RATE = 0x31 SO_MAX_PACING_RATE = 0x31
SO_MEMINFO = 0x39 SO_MEMINFO = 0x39
SO_NETNS_COOKIE = 0x50
SO_NOFCS = 0x27 SO_NOFCS = 0x27
SO_OOBINLINE = 0x100 SO_OOBINLINE = 0x100
SO_PASSCRED = 0x2 SO_PASSCRED = 0x2

View File

@ -1020,7 +1020,10 @@ const (
RLIMIT_CPU = 0x0 RLIMIT_CPU = 0x0
RLIMIT_DATA = 0x2 RLIMIT_DATA = 0x2
RLIMIT_FSIZE = 0x1 RLIMIT_FSIZE = 0x1
RLIMIT_MEMLOCK = 0x6
RLIMIT_NOFILE = 0x8 RLIMIT_NOFILE = 0x8
RLIMIT_NPROC = 0x7
RLIMIT_RSS = 0x5
RLIMIT_STACK = 0x3 RLIMIT_STACK = 0x3
RLIM_INFINITY = 0x7fffffffffffffff RLIM_INFINITY = 0x7fffffffffffffff
RTAX_AUTHOR = 0x6 RTAX_AUTHOR = 0x6

View File

@ -1020,7 +1020,10 @@ const (
RLIMIT_CPU = 0x0 RLIMIT_CPU = 0x0
RLIMIT_DATA = 0x2 RLIMIT_DATA = 0x2
RLIMIT_FSIZE = 0x1 RLIMIT_FSIZE = 0x1
RLIMIT_MEMLOCK = 0x6
RLIMIT_NOFILE = 0x8 RLIMIT_NOFILE = 0x8
RLIMIT_NPROC = 0x7
RLIMIT_RSS = 0x5
RLIMIT_STACK = 0x3 RLIMIT_STACK = 0x3
RLIM_INFINITY = 0x7fffffffffffffff RLIM_INFINITY = 0x7fffffffffffffff
RTAX_AUTHOR = 0x6 RTAX_AUTHOR = 0x6

View File

@ -48,6 +48,16 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
var _p0 *byte var _p0 *byte
_p0, err = BytePtrFromString(oldpath) _p0, err = BytePtrFromString(oldpath)
@ -100,6 +110,16 @@ func openat2(dirfd int, path string, open_how *OpenHow, size int) (fd int, err e
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func pipe2(p *[2]_C_int, flags int) (err error) {
_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
n = int(r0) n = int(r0)
@ -1201,7 +1221,7 @@ func PivotRoot(newroot string, putold string) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { func Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
_, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)
if e1 != 0 { if e1 != 0 {
err = errnoErr(e1) err = errnoErr(e1)
@ -1935,8 +1955,20 @@ func ProcessVMWritev(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags u
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func pipe2(p *[2]_C_int, flags int) (err error) { func PidfdOpen(pid int, flags int) (fd int, err error) {
_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) r0, _, e1 := Syscall(SYS_PIDFD_OPEN, uintptr(pid), uintptr(flags), 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func PidfdGetfd(pidfd int, targetfd int, flags int) (fd int, err error) {
r0, _, e1 := Syscall(SYS_PIDFD_GETFD, uintptr(pidfd), uintptr(targetfd), uintptr(flags))
fd = int(r0)
if e1 != 0 { if e1 != 0 {
err = errnoErr(e1) err = errnoErr(e1)
} }

View File

@ -46,37 +46,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func pipe(p *[2]_C_int) (err error) {
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func dup2(oldfd int, newfd int) (err error) {
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollCreate(size int) (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
var _p0 unsafe.Pointer var _p0 unsafe.Pointer
if len(events) > 0 { if len(events) > 0 {
@ -181,17 +150,6 @@ func Getuid() (uid int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func InotifyInit() (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Ioperm(from int, num int, on int) (err error) { func Ioperm(from int, num int, on int) (err error) {
_, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
if e1 != 0 { if e1 != 0 {
@ -566,14 +524,3 @@ func utimes(path string, times *[2]Timeval) (err error) {
} }
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}

View File

@ -46,27 +46,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func dup2(oldfd int, newfd int) (err error) {
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollCreate(size int) (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
var _p0 unsafe.Pointer var _p0 unsafe.Pointer
if len(events) > 0 { if len(events) > 0 {
@ -191,17 +170,6 @@ func Getuid() (uid int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func inotifyInit() (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Ioperm(from int, num int, on int) (err error) { func Ioperm(from int, num int, on int) (err error) {
_, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
if e1 != 0 { if e1 != 0 {
@ -711,27 +679,6 @@ func utimes(path string, times *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func pipe(p *[2]_C_int) (err error) {
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
var _p0 *byte var _p0 *byte
_p0, err = BytePtrFromString(cmdline) _p0, err = BytePtrFromString(cmdline)

View File

@ -46,16 +46,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func pipe(p *[2]_C_int) (err error) {
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
fd = int(r0) fd = int(r0)
@ -235,27 +225,6 @@ func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func dup2(oldfd int, newfd int) (err error) {
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollCreate(size int) (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
var _p0 unsafe.Pointer var _p0 unsafe.Pointer
if len(events) > 0 { if len(events) > 0 {
@ -340,17 +309,6 @@ func Getuid() (uid int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func InotifyInit() (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Lchown(path string, uid int, gid int) (err error) { func Lchown(path string, uid int, gid int) (err error) {
var _p0 *byte var _p0 *byte
_p0, err = BytePtrFromString(path) _p0, err = BytePtrFromString(path)
@ -681,17 +639,6 @@ func setrlimit(resource int, rlim *rlimit32) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func armSyncFileRange(fd int, flags int, off int64, n int64) (err error) { func armSyncFileRange(fd int, flags int, off int64, n int64) (err error) {
_, _, e1 := Syscall6(SYS_ARM_SYNC_FILE_RANGE, uintptr(fd), uintptr(flags), uintptr(off), uintptr(off>>32), uintptr(n), uintptr(n>>32)) _, _, e1 := Syscall6(SYS_ARM_SYNC_FILE_RANGE, uintptr(fd), uintptr(flags), uintptr(off), uintptr(off>>32), uintptr(n), uintptr(n>>32))
if e1 != 0 { if e1 != 0 {

View File

@ -46,27 +46,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func dup2(oldfd int, newfd int) (err error) {
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollCreate(size int) (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
var _p0 unsafe.Pointer var _p0 unsafe.Pointer
if len(events) > 0 { if len(events) > 0 {
@ -544,17 +523,6 @@ func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func InotifyInit() (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Ioperm(from int, num int, on int) (err error) { func Ioperm(from int, num int, on int) (err error) {
_, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
if e1 != 0 { if e1 != 0 {
@ -706,18 +674,6 @@ func Pause() (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func pipe() (p1 int, p2 int, err error) {
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
p1 = int(r0)
p2 = int(r1)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) {
r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset))
xaddr = uintptr(r0) xaddr = uintptr(r0)
@ -746,14 +702,3 @@ func setrlimit(resource int, rlim *rlimit32) (err error) {
} }
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}

View File

@ -46,27 +46,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func dup2(oldfd int, newfd int) (err error) {
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollCreate(size int) (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
var _p0 unsafe.Pointer var _p0 unsafe.Pointer
if len(events) > 0 { if len(events) > 0 {
@ -717,14 +696,3 @@ func stat(path string, st *stat_t) (err error) {
} }
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}

View File

@ -46,27 +46,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func dup2(oldfd int, newfd int) (err error) {
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollCreate(size int) (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
var _p0 unsafe.Pointer var _p0 unsafe.Pointer
if len(events) > 0 { if len(events) > 0 {
@ -717,14 +696,3 @@ func stat(path string, st *stat_t) (err error) {
} }
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}

View File

@ -46,27 +46,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func dup2(oldfd int, newfd int) (err error) {
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollCreate(size int) (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
var _p0 unsafe.Pointer var _p0 unsafe.Pointer
if len(events) > 0 { if len(events) > 0 {
@ -544,17 +523,6 @@ func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func InotifyInit() (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Ioperm(from int, num int, on int) (err error) { func Ioperm(from int, num int, on int) (err error) {
_, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
if e1 != 0 { if e1 != 0 {
@ -706,18 +674,6 @@ func Pause() (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func pipe() (p1 int, p2 int, err error) {
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
p1 = int(r0)
p2 = int(r1)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) {
r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset))
xaddr = uintptr(r0) xaddr = uintptr(r0)
@ -746,14 +702,3 @@ func setrlimit(resource int, rlim *rlimit32) (err error) {
} }
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}

View File

@ -46,27 +46,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func dup2(oldfd int, newfd int) (err error) {
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollCreate(size int) (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
var _p0 unsafe.Pointer var _p0 unsafe.Pointer
if len(events) > 0 { if len(events) > 0 {
@ -161,17 +140,6 @@ func Getuid() (uid int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func InotifyInit() (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Ioperm(from int, num int, on int) (err error) { func Ioperm(from int, num int, on int) (err error) {
_, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
if e1 != 0 { if e1 != 0 {
@ -717,27 +685,6 @@ func setrlimit(resource int, rlim *rlimit32) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func pipe(p *[2]_C_int) (err error) {
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func syncFileRange2(fd int, flags int, off int64, n int64) (err error) { func syncFileRange2(fd int, flags int, off int64, n int64) (err error) {
_, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off>>32), uintptr(off), uintptr(n>>32), uintptr(n)) _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off>>32), uintptr(off), uintptr(n>>32), uintptr(n))
if e1 != 0 { if e1 != 0 {

View File

@ -46,27 +46,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func dup2(oldfd int, newfd int) (err error) {
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollCreate(size int) (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
var _p0 unsafe.Pointer var _p0 unsafe.Pointer
if len(events) > 0 { if len(events) > 0 {
@ -191,17 +170,6 @@ func Getuid() (uid int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func InotifyInit() (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Ioperm(from int, num int, on int) (err error) { func Ioperm(from int, num int, on int) (err error) {
_, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
if e1 != 0 { if e1 != 0 {
@ -763,27 +731,6 @@ func utimes(path string, times *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func pipe(p *[2]_C_int) (err error) {
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func syncFileRange2(fd int, flags int, off int64, n int64) (err error) { func syncFileRange2(fd int, flags int, off int64, n int64) (err error) {
_, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off), uintptr(n), 0, 0) _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off), uintptr(n), 0, 0)
if e1 != 0 { if e1 != 0 {

View File

@ -46,27 +46,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func dup2(oldfd int, newfd int) (err error) {
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollCreate(size int) (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
var _p0 unsafe.Pointer var _p0 unsafe.Pointer
if len(events) > 0 { if len(events) > 0 {
@ -191,17 +170,6 @@ func Getuid() (uid int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func InotifyInit() (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Ioperm(from int, num int, on int) (err error) { func Ioperm(from int, num int, on int) (err error) {
_, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
if e1 != 0 { if e1 != 0 {
@ -763,27 +731,6 @@ func utimes(path string, times *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func pipe(p *[2]_C_int) (err error) {
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func syncFileRange2(fd int, flags int, off int64, n int64) (err error) { func syncFileRange2(fd int, flags int, off int64, n int64) (err error) {
_, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off), uintptr(n), 0, 0) _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off), uintptr(n), 0, 0)
if e1 != 0 { if e1 != 0 {

View File

@ -46,27 +46,6 @@ func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func dup2(oldfd int, newfd int) (err error) {
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollCreate(size int) (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
var _p0 unsafe.Pointer var _p0 unsafe.Pointer
if len(events) > 0 { if len(events) > 0 {
@ -191,17 +170,6 @@ func Getuid() (uid int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func InotifyInit() (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Lchown(path string, uid int, gid int) (err error) { func Lchown(path string, uid int, gid int) (err error) {
var _p0 *byte var _p0 *byte
_p0, err = BytePtrFromString(path) _p0, err = BytePtrFromString(path)
@ -553,17 +521,6 @@ func utimes(path string, times *[2]Timeval) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
var _p0 *byte var _p0 *byte
_p0, err = BytePtrFromString(cmdline) _p0, err = BytePtrFromString(cmdline)

View File

@ -73,16 +73,6 @@ func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func dup2(oldfd int, newfd int) (err error) {
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {
@ -180,17 +170,6 @@ func Getuid() (uid int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func InotifyInit() (fd int, err error) {
r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
fd = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Lchown(path string, uid int, gid int) (err error) { func Lchown(path string, uid int, gid int) (err error) {
var _p0 *byte var _p0 *byte
_p0, err = BytePtrFromString(path) _p0, err = BytePtrFromString(path)
@ -718,24 +697,3 @@ func utimes(path string, times *[2]Timeval) (err error) {
} }
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func pipe(p *[2]_C_int) (err error) {
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}

View File

@ -141,6 +141,11 @@ import (
//go:cgo_import_dynamic libc_getpeername getpeername "libsocket.so" //go:cgo_import_dynamic libc_getpeername getpeername "libsocket.so"
//go:cgo_import_dynamic libc_setsockopt setsockopt "libsocket.so" //go:cgo_import_dynamic libc_setsockopt setsockopt "libsocket.so"
//go:cgo_import_dynamic libc_recvfrom recvfrom "libsocket.so" //go:cgo_import_dynamic libc_recvfrom recvfrom "libsocket.so"
//go:cgo_import_dynamic libc_port_create port_create "libc.so"
//go:cgo_import_dynamic libc_port_associate port_associate "libc.so"
//go:cgo_import_dynamic libc_port_dissociate port_dissociate "libc.so"
//go:cgo_import_dynamic libc_port_get port_get "libc.so"
//go:cgo_import_dynamic libc_port_getn port_getn "libc.so"
//go:linkname procpipe libc_pipe //go:linkname procpipe libc_pipe
//go:linkname procpipe2 libc_pipe2 //go:linkname procpipe2 libc_pipe2
@ -272,6 +277,11 @@ import (
//go:linkname procgetpeername libc_getpeername //go:linkname procgetpeername libc_getpeername
//go:linkname procsetsockopt libc_setsockopt //go:linkname procsetsockopt libc_setsockopt
//go:linkname procrecvfrom libc_recvfrom //go:linkname procrecvfrom libc_recvfrom
//go:linkname procport_create libc_port_create
//go:linkname procport_associate libc_port_associate
//go:linkname procport_dissociate libc_port_dissociate
//go:linkname procport_get libc_port_get
//go:linkname procport_getn libc_port_getn
var ( var (
procpipe, procpipe,
@ -403,7 +413,12 @@ var (
proc__xnet_getsockopt, proc__xnet_getsockopt,
procgetpeername, procgetpeername,
procsetsockopt, procsetsockopt,
procrecvfrom syscallFunc procrecvfrom,
procport_create,
procport_associate,
procport_dissociate,
procport_get,
procport_getn syscallFunc
) )
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
@ -1981,3 +1996,58 @@ func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Sockl
} }
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func port_create() (n int, err error) {
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_create)), 0, 0, 0, 0, 0, 0, 0)
n = int(r0)
if e1 != 0 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func port_associate(port int, source int, object uintptr, events int, user *byte) (n int, err error) {
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_associate)), 5, uintptr(port), uintptr(source), uintptr(object), uintptr(events), uintptr(unsafe.Pointer(user)), 0)
n = int(r0)
if e1 != 0 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func port_dissociate(port int, source int, object uintptr) (n int, err error) {
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_dissociate)), 3, uintptr(port), uintptr(source), uintptr(object), 0, 0, 0)
n = int(r0)
if e1 != 0 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func port_get(port int, pe *portEvent, timeout *Timespec) (n int, err error) {
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_get)), 3, uintptr(port), uintptr(unsafe.Pointer(pe)), uintptr(unsafe.Pointer(timeout)), 0, 0, 0)
n = int(r0)
if e1 != 0 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func port_getn(port int, pe *portEvent, max uint32, nget *uint32, timeout *Timespec) (n int, err error) {
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_getn)), 5, uintptr(port), uintptr(unsafe.Pointer(pe)), uintptr(max), uintptr(unsafe.Pointer(nget)), uintptr(unsafe.Pointer(timeout)), 0)
n = int(r0)
if e1 != 0 {
err = e1
}
return
}

View File

@ -439,4 +439,9 @@ const (
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_QUOTACTL_FD = 443
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
SYS_MEMFD_SECRET = 447
) )

View File

@ -7,358 +7,363 @@
package unix package unix
const ( const (
SYS_READ = 0 SYS_READ = 0
SYS_WRITE = 1 SYS_WRITE = 1
SYS_OPEN = 2 SYS_OPEN = 2
SYS_CLOSE = 3 SYS_CLOSE = 3
SYS_STAT = 4 SYS_STAT = 4
SYS_FSTAT = 5 SYS_FSTAT = 5
SYS_LSTAT = 6 SYS_LSTAT = 6
SYS_POLL = 7 SYS_POLL = 7
SYS_LSEEK = 8 SYS_LSEEK = 8
SYS_MMAP = 9 SYS_MMAP = 9
SYS_MPROTECT = 10 SYS_MPROTECT = 10
SYS_MUNMAP = 11 SYS_MUNMAP = 11
SYS_BRK = 12 SYS_BRK = 12
SYS_RT_SIGACTION = 13 SYS_RT_SIGACTION = 13
SYS_RT_SIGPROCMASK = 14 SYS_RT_SIGPROCMASK = 14
SYS_RT_SIGRETURN = 15 SYS_RT_SIGRETURN = 15
SYS_IOCTL = 16 SYS_IOCTL = 16
SYS_PREAD64 = 17 SYS_PREAD64 = 17
SYS_PWRITE64 = 18 SYS_PWRITE64 = 18
SYS_READV = 19 SYS_READV = 19
SYS_WRITEV = 20 SYS_WRITEV = 20
SYS_ACCESS = 21 SYS_ACCESS = 21
SYS_PIPE = 22 SYS_PIPE = 22
SYS_SELECT = 23 SYS_SELECT = 23
SYS_SCHED_YIELD = 24 SYS_SCHED_YIELD = 24
SYS_MREMAP = 25 SYS_MREMAP = 25
SYS_MSYNC = 26 SYS_MSYNC = 26
SYS_MINCORE = 27 SYS_MINCORE = 27
SYS_MADVISE = 28 SYS_MADVISE = 28
SYS_SHMGET = 29 SYS_SHMGET = 29
SYS_SHMAT = 30 SYS_SHMAT = 30
SYS_SHMCTL = 31 SYS_SHMCTL = 31
SYS_DUP = 32 SYS_DUP = 32
SYS_DUP2 = 33 SYS_DUP2 = 33
SYS_PAUSE = 34 SYS_PAUSE = 34
SYS_NANOSLEEP = 35 SYS_NANOSLEEP = 35
SYS_GETITIMER = 36 SYS_GETITIMER = 36
SYS_ALARM = 37 SYS_ALARM = 37
SYS_SETITIMER = 38 SYS_SETITIMER = 38
SYS_GETPID = 39 SYS_GETPID = 39
SYS_SENDFILE = 40 SYS_SENDFILE = 40
SYS_SOCKET = 41 SYS_SOCKET = 41
SYS_CONNECT = 42 SYS_CONNECT = 42
SYS_ACCEPT = 43 SYS_ACCEPT = 43
SYS_SENDTO = 44 SYS_SENDTO = 44
SYS_RECVFROM = 45 SYS_RECVFROM = 45
SYS_SENDMSG = 46 SYS_SENDMSG = 46
SYS_RECVMSG = 47 SYS_RECVMSG = 47
SYS_SHUTDOWN = 48 SYS_SHUTDOWN = 48
SYS_BIND = 49 SYS_BIND = 49
SYS_LISTEN = 50 SYS_LISTEN = 50
SYS_GETSOCKNAME = 51 SYS_GETSOCKNAME = 51
SYS_GETPEERNAME = 52 SYS_GETPEERNAME = 52
SYS_SOCKETPAIR = 53 SYS_SOCKETPAIR = 53
SYS_SETSOCKOPT = 54 SYS_SETSOCKOPT = 54
SYS_GETSOCKOPT = 55 SYS_GETSOCKOPT = 55
SYS_CLONE = 56 SYS_CLONE = 56
SYS_FORK = 57 SYS_FORK = 57
SYS_VFORK = 58 SYS_VFORK = 58
SYS_EXECVE = 59 SYS_EXECVE = 59
SYS_EXIT = 60 SYS_EXIT = 60
SYS_WAIT4 = 61 SYS_WAIT4 = 61
SYS_KILL = 62 SYS_KILL = 62
SYS_UNAME = 63 SYS_UNAME = 63
SYS_SEMGET = 64 SYS_SEMGET = 64
SYS_SEMOP = 65 SYS_SEMOP = 65
SYS_SEMCTL = 66 SYS_SEMCTL = 66
SYS_SHMDT = 67 SYS_SHMDT = 67
SYS_MSGGET = 68 SYS_MSGGET = 68
SYS_MSGSND = 69 SYS_MSGSND = 69
SYS_MSGRCV = 70 SYS_MSGRCV = 70
SYS_MSGCTL = 71 SYS_MSGCTL = 71
SYS_FCNTL = 72 SYS_FCNTL = 72
SYS_FLOCK = 73 SYS_FLOCK = 73
SYS_FSYNC = 74 SYS_FSYNC = 74
SYS_FDATASYNC = 75 SYS_FDATASYNC = 75
SYS_TRUNCATE = 76 SYS_TRUNCATE = 76
SYS_FTRUNCATE = 77 SYS_FTRUNCATE = 77
SYS_GETDENTS = 78 SYS_GETDENTS = 78
SYS_GETCWD = 79 SYS_GETCWD = 79
SYS_CHDIR = 80 SYS_CHDIR = 80
SYS_FCHDIR = 81 SYS_FCHDIR = 81
SYS_RENAME = 82 SYS_RENAME = 82
SYS_MKDIR = 83 SYS_MKDIR = 83
SYS_RMDIR = 84 SYS_RMDIR = 84
SYS_CREAT = 85 SYS_CREAT = 85
SYS_LINK = 86 SYS_LINK = 86
SYS_UNLINK = 87 SYS_UNLINK = 87
SYS_SYMLINK = 88 SYS_SYMLINK = 88
SYS_READLINK = 89 SYS_READLINK = 89
SYS_CHMOD = 90 SYS_CHMOD = 90
SYS_FCHMOD = 91 SYS_FCHMOD = 91
SYS_CHOWN = 92 SYS_CHOWN = 92
SYS_FCHOWN = 93 SYS_FCHOWN = 93
SYS_LCHOWN = 94 SYS_LCHOWN = 94
SYS_UMASK = 95 SYS_UMASK = 95
SYS_GETTIMEOFDAY = 96 SYS_GETTIMEOFDAY = 96
SYS_GETRLIMIT = 97 SYS_GETRLIMIT = 97
SYS_GETRUSAGE = 98 SYS_GETRUSAGE = 98
SYS_SYSINFO = 99 SYS_SYSINFO = 99
SYS_TIMES = 100 SYS_TIMES = 100
SYS_PTRACE = 101 SYS_PTRACE = 101
SYS_GETUID = 102 SYS_GETUID = 102
SYS_SYSLOG = 103 SYS_SYSLOG = 103
SYS_GETGID = 104 SYS_GETGID = 104
SYS_SETUID = 105 SYS_SETUID = 105
SYS_SETGID = 106 SYS_SETGID = 106
SYS_GETEUID = 107 SYS_GETEUID = 107
SYS_GETEGID = 108 SYS_GETEGID = 108
SYS_SETPGID = 109 SYS_SETPGID = 109
SYS_GETPPID = 110 SYS_GETPPID = 110
SYS_GETPGRP = 111 SYS_GETPGRP = 111
SYS_SETSID = 112 SYS_SETSID = 112
SYS_SETREUID = 113 SYS_SETREUID = 113
SYS_SETREGID = 114 SYS_SETREGID = 114
SYS_GETGROUPS = 115 SYS_GETGROUPS = 115
SYS_SETGROUPS = 116 SYS_SETGROUPS = 116
SYS_SETRESUID = 117 SYS_SETRESUID = 117
SYS_GETRESUID = 118 SYS_GETRESUID = 118
SYS_SETRESGID = 119 SYS_SETRESGID = 119
SYS_GETRESGID = 120 SYS_GETRESGID = 120
SYS_GETPGID = 121 SYS_GETPGID = 121
SYS_SETFSUID = 122 SYS_SETFSUID = 122
SYS_SETFSGID = 123 SYS_SETFSGID = 123
SYS_GETSID = 124 SYS_GETSID = 124
SYS_CAPGET = 125 SYS_CAPGET = 125
SYS_CAPSET = 126 SYS_CAPSET = 126
SYS_RT_SIGPENDING = 127 SYS_RT_SIGPENDING = 127
SYS_RT_SIGTIMEDWAIT = 128 SYS_RT_SIGTIMEDWAIT = 128
SYS_RT_SIGQUEUEINFO = 129 SYS_RT_SIGQUEUEINFO = 129
SYS_RT_SIGSUSPEND = 130 SYS_RT_SIGSUSPEND = 130
SYS_SIGALTSTACK = 131 SYS_SIGALTSTACK = 131
SYS_UTIME = 132 SYS_UTIME = 132
SYS_MKNOD = 133 SYS_MKNOD = 133
SYS_USELIB = 134 SYS_USELIB = 134
SYS_PERSONALITY = 135 SYS_PERSONALITY = 135
SYS_USTAT = 136 SYS_USTAT = 136
SYS_STATFS = 137 SYS_STATFS = 137
SYS_FSTATFS = 138 SYS_FSTATFS = 138
SYS_SYSFS = 139 SYS_SYSFS = 139
SYS_GETPRIORITY = 140 SYS_GETPRIORITY = 140
SYS_SETPRIORITY = 141 SYS_SETPRIORITY = 141
SYS_SCHED_SETPARAM = 142 SYS_SCHED_SETPARAM = 142
SYS_SCHED_GETPARAM = 143 SYS_SCHED_GETPARAM = 143
SYS_SCHED_SETSCHEDULER = 144 SYS_SCHED_SETSCHEDULER = 144
SYS_SCHED_GETSCHEDULER = 145 SYS_SCHED_GETSCHEDULER = 145
SYS_SCHED_GET_PRIORITY_MAX = 146 SYS_SCHED_GET_PRIORITY_MAX = 146
SYS_SCHED_GET_PRIORITY_MIN = 147 SYS_SCHED_GET_PRIORITY_MIN = 147
SYS_SCHED_RR_GET_INTERVAL = 148 SYS_SCHED_RR_GET_INTERVAL = 148
SYS_MLOCK = 149 SYS_MLOCK = 149
SYS_MUNLOCK = 150 SYS_MUNLOCK = 150
SYS_MLOCKALL = 151 SYS_MLOCKALL = 151
SYS_MUNLOCKALL = 152 SYS_MUNLOCKALL = 152
SYS_VHANGUP = 153 SYS_VHANGUP = 153
SYS_MODIFY_LDT = 154 SYS_MODIFY_LDT = 154
SYS_PIVOT_ROOT = 155 SYS_PIVOT_ROOT = 155
SYS__SYSCTL = 156 SYS__SYSCTL = 156
SYS_PRCTL = 157 SYS_PRCTL = 157
SYS_ARCH_PRCTL = 158 SYS_ARCH_PRCTL = 158
SYS_ADJTIMEX = 159 SYS_ADJTIMEX = 159
SYS_SETRLIMIT = 160 SYS_SETRLIMIT = 160
SYS_CHROOT = 161 SYS_CHROOT = 161
SYS_SYNC = 162 SYS_SYNC = 162
SYS_ACCT = 163 SYS_ACCT = 163
SYS_SETTIMEOFDAY = 164 SYS_SETTIMEOFDAY = 164
SYS_MOUNT = 165 SYS_MOUNT = 165
SYS_UMOUNT2 = 166 SYS_UMOUNT2 = 166
SYS_SWAPON = 167 SYS_SWAPON = 167
SYS_SWAPOFF = 168 SYS_SWAPOFF = 168
SYS_REBOOT = 169 SYS_REBOOT = 169
SYS_SETHOSTNAME = 170 SYS_SETHOSTNAME = 170
SYS_SETDOMAINNAME = 171 SYS_SETDOMAINNAME = 171
SYS_IOPL = 172 SYS_IOPL = 172
SYS_IOPERM = 173 SYS_IOPERM = 173
SYS_CREATE_MODULE = 174 SYS_CREATE_MODULE = 174
SYS_INIT_MODULE = 175 SYS_INIT_MODULE = 175
SYS_DELETE_MODULE = 176 SYS_DELETE_MODULE = 176
SYS_GET_KERNEL_SYMS = 177 SYS_GET_KERNEL_SYMS = 177
SYS_QUERY_MODULE = 178 SYS_QUERY_MODULE = 178
SYS_QUOTACTL = 179 SYS_QUOTACTL = 179
SYS_NFSSERVCTL = 180 SYS_NFSSERVCTL = 180
SYS_GETPMSG = 181 SYS_GETPMSG = 181
SYS_PUTPMSG = 182 SYS_PUTPMSG = 182
SYS_AFS_SYSCALL = 183 SYS_AFS_SYSCALL = 183
SYS_TUXCALL = 184 SYS_TUXCALL = 184
SYS_SECURITY = 185 SYS_SECURITY = 185
SYS_GETTID = 186 SYS_GETTID = 186
SYS_READAHEAD = 187 SYS_READAHEAD = 187
SYS_SETXATTR = 188 SYS_SETXATTR = 188
SYS_LSETXATTR = 189 SYS_LSETXATTR = 189
SYS_FSETXATTR = 190 SYS_FSETXATTR = 190
SYS_GETXATTR = 191 SYS_GETXATTR = 191
SYS_LGETXATTR = 192 SYS_LGETXATTR = 192
SYS_FGETXATTR = 193 SYS_FGETXATTR = 193
SYS_LISTXATTR = 194 SYS_LISTXATTR = 194
SYS_LLISTXATTR = 195 SYS_LLISTXATTR = 195
SYS_FLISTXATTR = 196 SYS_FLISTXATTR = 196
SYS_REMOVEXATTR = 197 SYS_REMOVEXATTR = 197
SYS_LREMOVEXATTR = 198 SYS_LREMOVEXATTR = 198
SYS_FREMOVEXATTR = 199 SYS_FREMOVEXATTR = 199
SYS_TKILL = 200 SYS_TKILL = 200
SYS_TIME = 201 SYS_TIME = 201
SYS_FUTEX = 202 SYS_FUTEX = 202
SYS_SCHED_SETAFFINITY = 203 SYS_SCHED_SETAFFINITY = 203
SYS_SCHED_GETAFFINITY = 204 SYS_SCHED_GETAFFINITY = 204
SYS_SET_THREAD_AREA = 205 SYS_SET_THREAD_AREA = 205
SYS_IO_SETUP = 206 SYS_IO_SETUP = 206
SYS_IO_DESTROY = 207 SYS_IO_DESTROY = 207
SYS_IO_GETEVENTS = 208 SYS_IO_GETEVENTS = 208
SYS_IO_SUBMIT = 209 SYS_IO_SUBMIT = 209
SYS_IO_CANCEL = 210 SYS_IO_CANCEL = 210
SYS_GET_THREAD_AREA = 211 SYS_GET_THREAD_AREA = 211
SYS_LOOKUP_DCOOKIE = 212 SYS_LOOKUP_DCOOKIE = 212
SYS_EPOLL_CREATE = 213 SYS_EPOLL_CREATE = 213
SYS_EPOLL_CTL_OLD = 214 SYS_EPOLL_CTL_OLD = 214
SYS_EPOLL_WAIT_OLD = 215 SYS_EPOLL_WAIT_OLD = 215
SYS_REMAP_FILE_PAGES = 216 SYS_REMAP_FILE_PAGES = 216
SYS_GETDENTS64 = 217 SYS_GETDENTS64 = 217
SYS_SET_TID_ADDRESS = 218 SYS_SET_TID_ADDRESS = 218
SYS_RESTART_SYSCALL = 219 SYS_RESTART_SYSCALL = 219
SYS_SEMTIMEDOP = 220 SYS_SEMTIMEDOP = 220
SYS_FADVISE64 = 221 SYS_FADVISE64 = 221
SYS_TIMER_CREATE = 222 SYS_TIMER_CREATE = 222
SYS_TIMER_SETTIME = 223 SYS_TIMER_SETTIME = 223
SYS_TIMER_GETTIME = 224 SYS_TIMER_GETTIME = 224
SYS_TIMER_GETOVERRUN = 225 SYS_TIMER_GETOVERRUN = 225
SYS_TIMER_DELETE = 226 SYS_TIMER_DELETE = 226
SYS_CLOCK_SETTIME = 227 SYS_CLOCK_SETTIME = 227
SYS_CLOCK_GETTIME = 228 SYS_CLOCK_GETTIME = 228
SYS_CLOCK_GETRES = 229 SYS_CLOCK_GETRES = 229
SYS_CLOCK_NANOSLEEP = 230 SYS_CLOCK_NANOSLEEP = 230
SYS_EXIT_GROUP = 231 SYS_EXIT_GROUP = 231
SYS_EPOLL_WAIT = 232 SYS_EPOLL_WAIT = 232
SYS_EPOLL_CTL = 233 SYS_EPOLL_CTL = 233
SYS_TGKILL = 234 SYS_TGKILL = 234
SYS_UTIMES = 235 SYS_UTIMES = 235
SYS_VSERVER = 236 SYS_VSERVER = 236
SYS_MBIND = 237 SYS_MBIND = 237
SYS_SET_MEMPOLICY = 238 SYS_SET_MEMPOLICY = 238
SYS_GET_MEMPOLICY = 239 SYS_GET_MEMPOLICY = 239
SYS_MQ_OPEN = 240 SYS_MQ_OPEN = 240
SYS_MQ_UNLINK = 241 SYS_MQ_UNLINK = 241
SYS_MQ_TIMEDSEND = 242 SYS_MQ_TIMEDSEND = 242
SYS_MQ_TIMEDRECEIVE = 243 SYS_MQ_TIMEDRECEIVE = 243
SYS_MQ_NOTIFY = 244 SYS_MQ_NOTIFY = 244
SYS_MQ_GETSETATTR = 245 SYS_MQ_GETSETATTR = 245
SYS_KEXEC_LOAD = 246 SYS_KEXEC_LOAD = 246
SYS_WAITID = 247 SYS_WAITID = 247
SYS_ADD_KEY = 248 SYS_ADD_KEY = 248
SYS_REQUEST_KEY = 249 SYS_REQUEST_KEY = 249
SYS_KEYCTL = 250 SYS_KEYCTL = 250
SYS_IOPRIO_SET = 251 SYS_IOPRIO_SET = 251
SYS_IOPRIO_GET = 252 SYS_IOPRIO_GET = 252
SYS_INOTIFY_INIT = 253 SYS_INOTIFY_INIT = 253
SYS_INOTIFY_ADD_WATCH = 254 SYS_INOTIFY_ADD_WATCH = 254
SYS_INOTIFY_RM_WATCH = 255 SYS_INOTIFY_RM_WATCH = 255
SYS_MIGRATE_PAGES = 256 SYS_MIGRATE_PAGES = 256
SYS_OPENAT = 257 SYS_OPENAT = 257
SYS_MKDIRAT = 258 SYS_MKDIRAT = 258
SYS_MKNODAT = 259 SYS_MKNODAT = 259
SYS_FCHOWNAT = 260 SYS_FCHOWNAT = 260
SYS_FUTIMESAT = 261 SYS_FUTIMESAT = 261
SYS_NEWFSTATAT = 262 SYS_NEWFSTATAT = 262
SYS_UNLINKAT = 263 SYS_UNLINKAT = 263
SYS_RENAMEAT = 264 SYS_RENAMEAT = 264
SYS_LINKAT = 265 SYS_LINKAT = 265
SYS_SYMLINKAT = 266 SYS_SYMLINKAT = 266
SYS_READLINKAT = 267 SYS_READLINKAT = 267
SYS_FCHMODAT = 268 SYS_FCHMODAT = 268
SYS_FACCESSAT = 269 SYS_FACCESSAT = 269
SYS_PSELECT6 = 270 SYS_PSELECT6 = 270
SYS_PPOLL = 271 SYS_PPOLL = 271
SYS_UNSHARE = 272 SYS_UNSHARE = 272
SYS_SET_ROBUST_LIST = 273 SYS_SET_ROBUST_LIST = 273
SYS_GET_ROBUST_LIST = 274 SYS_GET_ROBUST_LIST = 274
SYS_SPLICE = 275 SYS_SPLICE = 275
SYS_TEE = 276 SYS_TEE = 276
SYS_SYNC_FILE_RANGE = 277 SYS_SYNC_FILE_RANGE = 277
SYS_VMSPLICE = 278 SYS_VMSPLICE = 278
SYS_MOVE_PAGES = 279 SYS_MOVE_PAGES = 279
SYS_UTIMENSAT = 280 SYS_UTIMENSAT = 280
SYS_EPOLL_PWAIT = 281 SYS_EPOLL_PWAIT = 281
SYS_SIGNALFD = 282 SYS_SIGNALFD = 282
SYS_TIMERFD_CREATE = 283 SYS_TIMERFD_CREATE = 283
SYS_EVENTFD = 284 SYS_EVENTFD = 284
SYS_FALLOCATE = 285 SYS_FALLOCATE = 285
SYS_TIMERFD_SETTIME = 286 SYS_TIMERFD_SETTIME = 286
SYS_TIMERFD_GETTIME = 287 SYS_TIMERFD_GETTIME = 287
SYS_ACCEPT4 = 288 SYS_ACCEPT4 = 288
SYS_SIGNALFD4 = 289 SYS_SIGNALFD4 = 289
SYS_EVENTFD2 = 290 SYS_EVENTFD2 = 290
SYS_EPOLL_CREATE1 = 291 SYS_EPOLL_CREATE1 = 291
SYS_DUP3 = 292 SYS_DUP3 = 292
SYS_PIPE2 = 293 SYS_PIPE2 = 293
SYS_INOTIFY_INIT1 = 294 SYS_INOTIFY_INIT1 = 294
SYS_PREADV = 295 SYS_PREADV = 295
SYS_PWRITEV = 296 SYS_PWRITEV = 296
SYS_RT_TGSIGQUEUEINFO = 297 SYS_RT_TGSIGQUEUEINFO = 297
SYS_PERF_EVENT_OPEN = 298 SYS_PERF_EVENT_OPEN = 298
SYS_RECVMMSG = 299 SYS_RECVMMSG = 299
SYS_FANOTIFY_INIT = 300 SYS_FANOTIFY_INIT = 300
SYS_FANOTIFY_MARK = 301 SYS_FANOTIFY_MARK = 301
SYS_PRLIMIT64 = 302 SYS_PRLIMIT64 = 302
SYS_NAME_TO_HANDLE_AT = 303 SYS_NAME_TO_HANDLE_AT = 303
SYS_OPEN_BY_HANDLE_AT = 304 SYS_OPEN_BY_HANDLE_AT = 304
SYS_CLOCK_ADJTIME = 305 SYS_CLOCK_ADJTIME = 305
SYS_SYNCFS = 306 SYS_SYNCFS = 306
SYS_SENDMMSG = 307 SYS_SENDMMSG = 307
SYS_SETNS = 308 SYS_SETNS = 308
SYS_GETCPU = 309 SYS_GETCPU = 309
SYS_PROCESS_VM_READV = 310 SYS_PROCESS_VM_READV = 310
SYS_PROCESS_VM_WRITEV = 311 SYS_PROCESS_VM_WRITEV = 311
SYS_KCMP = 312 SYS_KCMP = 312
SYS_FINIT_MODULE = 313 SYS_FINIT_MODULE = 313
SYS_SCHED_SETATTR = 314 SYS_SCHED_SETATTR = 314
SYS_SCHED_GETATTR = 315 SYS_SCHED_GETATTR = 315
SYS_RENAMEAT2 = 316 SYS_RENAMEAT2 = 316
SYS_SECCOMP = 317 SYS_SECCOMP = 317
SYS_GETRANDOM = 318 SYS_GETRANDOM = 318
SYS_MEMFD_CREATE = 319 SYS_MEMFD_CREATE = 319
SYS_KEXEC_FILE_LOAD = 320 SYS_KEXEC_FILE_LOAD = 320
SYS_BPF = 321 SYS_BPF = 321
SYS_EXECVEAT = 322 SYS_EXECVEAT = 322
SYS_USERFAULTFD = 323 SYS_USERFAULTFD = 323
SYS_MEMBARRIER = 324 SYS_MEMBARRIER = 324
SYS_MLOCK2 = 325 SYS_MLOCK2 = 325
SYS_COPY_FILE_RANGE = 326 SYS_COPY_FILE_RANGE = 326
SYS_PREADV2 = 327 SYS_PREADV2 = 327
SYS_PWRITEV2 = 328 SYS_PWRITEV2 = 328
SYS_PKEY_MPROTECT = 329 SYS_PKEY_MPROTECT = 329
SYS_PKEY_ALLOC = 330 SYS_PKEY_ALLOC = 330
SYS_PKEY_FREE = 331 SYS_PKEY_FREE = 331
SYS_STATX = 332 SYS_STATX = 332
SYS_IO_PGETEVENTS = 333 SYS_IO_PGETEVENTS = 333
SYS_RSEQ = 334 SYS_RSEQ = 334
SYS_PIDFD_SEND_SIGNAL = 424 SYS_PIDFD_SEND_SIGNAL = 424
SYS_IO_URING_SETUP = 425 SYS_IO_URING_SETUP = 425
SYS_IO_URING_ENTER = 426 SYS_IO_URING_ENTER = 426
SYS_IO_URING_REGISTER = 427 SYS_IO_URING_REGISTER = 427
SYS_OPEN_TREE = 428 SYS_OPEN_TREE = 428
SYS_MOVE_MOUNT = 429 SYS_MOVE_MOUNT = 429
SYS_FSOPEN = 430 SYS_FSOPEN = 430
SYS_FSCONFIG = 431 SYS_FSCONFIG = 431
SYS_FSMOUNT = 432 SYS_FSMOUNT = 432
SYS_FSPICK = 433 SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434 SYS_PIDFD_OPEN = 434
SYS_CLONE3 = 435 SYS_CLONE3 = 435
SYS_CLOSE_RANGE = 436 SYS_CLOSE_RANGE = 436
SYS_OPENAT2 = 437 SYS_OPENAT2 = 437
SYS_PIDFD_GETFD = 438 SYS_PIDFD_GETFD = 438
SYS_FACCESSAT2 = 439 SYS_FACCESSAT2 = 439
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_QUOTACTL_FD = 443
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
SYS_MEMFD_SECRET = 447
) )

View File

@ -403,4 +403,8 @@ const (
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_QUOTACTL_FD = 443
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View File

@ -7,303 +7,308 @@
package unix package unix
const ( const (
SYS_IO_SETUP = 0 SYS_IO_SETUP = 0
SYS_IO_DESTROY = 1 SYS_IO_DESTROY = 1
SYS_IO_SUBMIT = 2 SYS_IO_SUBMIT = 2
SYS_IO_CANCEL = 3 SYS_IO_CANCEL = 3
SYS_IO_GETEVENTS = 4 SYS_IO_GETEVENTS = 4
SYS_SETXATTR = 5 SYS_SETXATTR = 5
SYS_LSETXATTR = 6 SYS_LSETXATTR = 6
SYS_FSETXATTR = 7 SYS_FSETXATTR = 7
SYS_GETXATTR = 8 SYS_GETXATTR = 8
SYS_LGETXATTR = 9 SYS_LGETXATTR = 9
SYS_FGETXATTR = 10 SYS_FGETXATTR = 10
SYS_LISTXATTR = 11 SYS_LISTXATTR = 11
SYS_LLISTXATTR = 12 SYS_LLISTXATTR = 12
SYS_FLISTXATTR = 13 SYS_FLISTXATTR = 13
SYS_REMOVEXATTR = 14 SYS_REMOVEXATTR = 14
SYS_LREMOVEXATTR = 15 SYS_LREMOVEXATTR = 15
SYS_FREMOVEXATTR = 16 SYS_FREMOVEXATTR = 16
SYS_GETCWD = 17 SYS_GETCWD = 17
SYS_LOOKUP_DCOOKIE = 18 SYS_LOOKUP_DCOOKIE = 18
SYS_EVENTFD2 = 19 SYS_EVENTFD2 = 19
SYS_EPOLL_CREATE1 = 20 SYS_EPOLL_CREATE1 = 20
SYS_EPOLL_CTL = 21 SYS_EPOLL_CTL = 21
SYS_EPOLL_PWAIT = 22 SYS_EPOLL_PWAIT = 22
SYS_DUP = 23 SYS_DUP = 23
SYS_DUP3 = 24 SYS_DUP3 = 24
SYS_FCNTL = 25 SYS_FCNTL = 25
SYS_INOTIFY_INIT1 = 26 SYS_INOTIFY_INIT1 = 26
SYS_INOTIFY_ADD_WATCH = 27 SYS_INOTIFY_ADD_WATCH = 27
SYS_INOTIFY_RM_WATCH = 28 SYS_INOTIFY_RM_WATCH = 28
SYS_IOCTL = 29 SYS_IOCTL = 29
SYS_IOPRIO_SET = 30 SYS_IOPRIO_SET = 30
SYS_IOPRIO_GET = 31 SYS_IOPRIO_GET = 31
SYS_FLOCK = 32 SYS_FLOCK = 32
SYS_MKNODAT = 33 SYS_MKNODAT = 33
SYS_MKDIRAT = 34 SYS_MKDIRAT = 34
SYS_UNLINKAT = 35 SYS_UNLINKAT = 35
SYS_SYMLINKAT = 36 SYS_SYMLINKAT = 36
SYS_LINKAT = 37 SYS_LINKAT = 37
SYS_RENAMEAT = 38 SYS_RENAMEAT = 38
SYS_UMOUNT2 = 39 SYS_UMOUNT2 = 39
SYS_MOUNT = 40 SYS_MOUNT = 40
SYS_PIVOT_ROOT = 41 SYS_PIVOT_ROOT = 41
SYS_NFSSERVCTL = 42 SYS_NFSSERVCTL = 42
SYS_STATFS = 43 SYS_STATFS = 43
SYS_FSTATFS = 44 SYS_FSTATFS = 44
SYS_TRUNCATE = 45 SYS_TRUNCATE = 45
SYS_FTRUNCATE = 46 SYS_FTRUNCATE = 46
SYS_FALLOCATE = 47 SYS_FALLOCATE = 47
SYS_FACCESSAT = 48 SYS_FACCESSAT = 48
SYS_CHDIR = 49 SYS_CHDIR = 49
SYS_FCHDIR = 50 SYS_FCHDIR = 50
SYS_CHROOT = 51 SYS_CHROOT = 51
SYS_FCHMOD = 52 SYS_FCHMOD = 52
SYS_FCHMODAT = 53 SYS_FCHMODAT = 53
SYS_FCHOWNAT = 54 SYS_FCHOWNAT = 54
SYS_FCHOWN = 55 SYS_FCHOWN = 55
SYS_OPENAT = 56 SYS_OPENAT = 56
SYS_CLOSE = 57 SYS_CLOSE = 57
SYS_VHANGUP = 58 SYS_VHANGUP = 58
SYS_PIPE2 = 59 SYS_PIPE2 = 59
SYS_QUOTACTL = 60 SYS_QUOTACTL = 60
SYS_GETDENTS64 = 61 SYS_GETDENTS64 = 61
SYS_LSEEK = 62 SYS_LSEEK = 62
SYS_READ = 63 SYS_READ = 63
SYS_WRITE = 64 SYS_WRITE = 64
SYS_READV = 65 SYS_READV = 65
SYS_WRITEV = 66 SYS_WRITEV = 66
SYS_PREAD64 = 67 SYS_PREAD64 = 67
SYS_PWRITE64 = 68 SYS_PWRITE64 = 68
SYS_PREADV = 69 SYS_PREADV = 69
SYS_PWRITEV = 70 SYS_PWRITEV = 70
SYS_SENDFILE = 71 SYS_SENDFILE = 71
SYS_PSELECT6 = 72 SYS_PSELECT6 = 72
SYS_PPOLL = 73 SYS_PPOLL = 73
SYS_SIGNALFD4 = 74 SYS_SIGNALFD4 = 74
SYS_VMSPLICE = 75 SYS_VMSPLICE = 75
SYS_SPLICE = 76 SYS_SPLICE = 76
SYS_TEE = 77 SYS_TEE = 77
SYS_READLINKAT = 78 SYS_READLINKAT = 78
SYS_FSTATAT = 79 SYS_FSTATAT = 79
SYS_FSTAT = 80 SYS_FSTAT = 80
SYS_SYNC = 81 SYS_SYNC = 81
SYS_FSYNC = 82 SYS_FSYNC = 82
SYS_FDATASYNC = 83 SYS_FDATASYNC = 83
SYS_SYNC_FILE_RANGE = 84 SYS_SYNC_FILE_RANGE = 84
SYS_TIMERFD_CREATE = 85 SYS_TIMERFD_CREATE = 85
SYS_TIMERFD_SETTIME = 86 SYS_TIMERFD_SETTIME = 86
SYS_TIMERFD_GETTIME = 87 SYS_TIMERFD_GETTIME = 87
SYS_UTIMENSAT = 88 SYS_UTIMENSAT = 88
SYS_ACCT = 89 SYS_ACCT = 89
SYS_CAPGET = 90 SYS_CAPGET = 90
SYS_CAPSET = 91 SYS_CAPSET = 91
SYS_PERSONALITY = 92 SYS_PERSONALITY = 92
SYS_EXIT = 93 SYS_EXIT = 93
SYS_EXIT_GROUP = 94 SYS_EXIT_GROUP = 94
SYS_WAITID = 95 SYS_WAITID = 95
SYS_SET_TID_ADDRESS = 96 SYS_SET_TID_ADDRESS = 96
SYS_UNSHARE = 97 SYS_UNSHARE = 97
SYS_FUTEX = 98 SYS_FUTEX = 98
SYS_SET_ROBUST_LIST = 99 SYS_SET_ROBUST_LIST = 99
SYS_GET_ROBUST_LIST = 100 SYS_GET_ROBUST_LIST = 100
SYS_NANOSLEEP = 101 SYS_NANOSLEEP = 101
SYS_GETITIMER = 102 SYS_GETITIMER = 102
SYS_SETITIMER = 103 SYS_SETITIMER = 103
SYS_KEXEC_LOAD = 104 SYS_KEXEC_LOAD = 104
SYS_INIT_MODULE = 105 SYS_INIT_MODULE = 105
SYS_DELETE_MODULE = 106 SYS_DELETE_MODULE = 106
SYS_TIMER_CREATE = 107 SYS_TIMER_CREATE = 107
SYS_TIMER_GETTIME = 108 SYS_TIMER_GETTIME = 108
SYS_TIMER_GETOVERRUN = 109 SYS_TIMER_GETOVERRUN = 109
SYS_TIMER_SETTIME = 110 SYS_TIMER_SETTIME = 110
SYS_TIMER_DELETE = 111 SYS_TIMER_DELETE = 111
SYS_CLOCK_SETTIME = 112 SYS_CLOCK_SETTIME = 112
SYS_CLOCK_GETTIME = 113 SYS_CLOCK_GETTIME = 113
SYS_CLOCK_GETRES = 114 SYS_CLOCK_GETRES = 114
SYS_CLOCK_NANOSLEEP = 115 SYS_CLOCK_NANOSLEEP = 115
SYS_SYSLOG = 116 SYS_SYSLOG = 116
SYS_PTRACE = 117 SYS_PTRACE = 117
SYS_SCHED_SETPARAM = 118 SYS_SCHED_SETPARAM = 118
SYS_SCHED_SETSCHEDULER = 119 SYS_SCHED_SETSCHEDULER = 119
SYS_SCHED_GETSCHEDULER = 120 SYS_SCHED_GETSCHEDULER = 120
SYS_SCHED_GETPARAM = 121 SYS_SCHED_GETPARAM = 121
SYS_SCHED_SETAFFINITY = 122 SYS_SCHED_SETAFFINITY = 122
SYS_SCHED_GETAFFINITY = 123 SYS_SCHED_GETAFFINITY = 123
SYS_SCHED_YIELD = 124 SYS_SCHED_YIELD = 124
SYS_SCHED_GET_PRIORITY_MAX = 125 SYS_SCHED_GET_PRIORITY_MAX = 125
SYS_SCHED_GET_PRIORITY_MIN = 126 SYS_SCHED_GET_PRIORITY_MIN = 126
SYS_SCHED_RR_GET_INTERVAL = 127 SYS_SCHED_RR_GET_INTERVAL = 127
SYS_RESTART_SYSCALL = 128 SYS_RESTART_SYSCALL = 128
SYS_KILL = 129 SYS_KILL = 129
SYS_TKILL = 130 SYS_TKILL = 130
SYS_TGKILL = 131 SYS_TGKILL = 131
SYS_SIGALTSTACK = 132 SYS_SIGALTSTACK = 132
SYS_RT_SIGSUSPEND = 133 SYS_RT_SIGSUSPEND = 133
SYS_RT_SIGACTION = 134 SYS_RT_SIGACTION = 134
SYS_RT_SIGPROCMASK = 135 SYS_RT_SIGPROCMASK = 135
SYS_RT_SIGPENDING = 136 SYS_RT_SIGPENDING = 136
SYS_RT_SIGTIMEDWAIT = 137 SYS_RT_SIGTIMEDWAIT = 137
SYS_RT_SIGQUEUEINFO = 138 SYS_RT_SIGQUEUEINFO = 138
SYS_RT_SIGRETURN = 139 SYS_RT_SIGRETURN = 139
SYS_SETPRIORITY = 140 SYS_SETPRIORITY = 140
SYS_GETPRIORITY = 141 SYS_GETPRIORITY = 141
SYS_REBOOT = 142 SYS_REBOOT = 142
SYS_SETREGID = 143 SYS_SETREGID = 143
SYS_SETGID = 144 SYS_SETGID = 144
SYS_SETREUID = 145 SYS_SETREUID = 145
SYS_SETUID = 146 SYS_SETUID = 146
SYS_SETRESUID = 147 SYS_SETRESUID = 147
SYS_GETRESUID = 148 SYS_GETRESUID = 148
SYS_SETRESGID = 149 SYS_SETRESGID = 149
SYS_GETRESGID = 150 SYS_GETRESGID = 150
SYS_SETFSUID = 151 SYS_SETFSUID = 151
SYS_SETFSGID = 152 SYS_SETFSGID = 152
SYS_TIMES = 153 SYS_TIMES = 153
SYS_SETPGID = 154 SYS_SETPGID = 154
SYS_GETPGID = 155 SYS_GETPGID = 155
SYS_GETSID = 156 SYS_GETSID = 156
SYS_SETSID = 157 SYS_SETSID = 157
SYS_GETGROUPS = 158 SYS_GETGROUPS = 158
SYS_SETGROUPS = 159 SYS_SETGROUPS = 159
SYS_UNAME = 160 SYS_UNAME = 160
SYS_SETHOSTNAME = 161 SYS_SETHOSTNAME = 161
SYS_SETDOMAINNAME = 162 SYS_SETDOMAINNAME = 162
SYS_GETRLIMIT = 163 SYS_GETRLIMIT = 163
SYS_SETRLIMIT = 164 SYS_SETRLIMIT = 164
SYS_GETRUSAGE = 165 SYS_GETRUSAGE = 165
SYS_UMASK = 166 SYS_UMASK = 166
SYS_PRCTL = 167 SYS_PRCTL = 167
SYS_GETCPU = 168 SYS_GETCPU = 168
SYS_GETTIMEOFDAY = 169 SYS_GETTIMEOFDAY = 169
SYS_SETTIMEOFDAY = 170 SYS_SETTIMEOFDAY = 170
SYS_ADJTIMEX = 171 SYS_ADJTIMEX = 171
SYS_GETPID = 172 SYS_GETPID = 172
SYS_GETPPID = 173 SYS_GETPPID = 173
SYS_GETUID = 174 SYS_GETUID = 174
SYS_GETEUID = 175 SYS_GETEUID = 175
SYS_GETGID = 176 SYS_GETGID = 176
SYS_GETEGID = 177 SYS_GETEGID = 177
SYS_GETTID = 178 SYS_GETTID = 178
SYS_SYSINFO = 179 SYS_SYSINFO = 179
SYS_MQ_OPEN = 180 SYS_MQ_OPEN = 180
SYS_MQ_UNLINK = 181 SYS_MQ_UNLINK = 181
SYS_MQ_TIMEDSEND = 182 SYS_MQ_TIMEDSEND = 182
SYS_MQ_TIMEDRECEIVE = 183 SYS_MQ_TIMEDRECEIVE = 183
SYS_MQ_NOTIFY = 184 SYS_MQ_NOTIFY = 184
SYS_MQ_GETSETATTR = 185 SYS_MQ_GETSETATTR = 185
SYS_MSGGET = 186 SYS_MSGGET = 186
SYS_MSGCTL = 187 SYS_MSGCTL = 187
SYS_MSGRCV = 188 SYS_MSGRCV = 188
SYS_MSGSND = 189 SYS_MSGSND = 189
SYS_SEMGET = 190 SYS_SEMGET = 190
SYS_SEMCTL = 191 SYS_SEMCTL = 191
SYS_SEMTIMEDOP = 192 SYS_SEMTIMEDOP = 192
SYS_SEMOP = 193 SYS_SEMOP = 193
SYS_SHMGET = 194 SYS_SHMGET = 194
SYS_SHMCTL = 195 SYS_SHMCTL = 195
SYS_SHMAT = 196 SYS_SHMAT = 196
SYS_SHMDT = 197 SYS_SHMDT = 197
SYS_SOCKET = 198 SYS_SOCKET = 198
SYS_SOCKETPAIR = 199 SYS_SOCKETPAIR = 199
SYS_BIND = 200 SYS_BIND = 200
SYS_LISTEN = 201 SYS_LISTEN = 201
SYS_ACCEPT = 202 SYS_ACCEPT = 202
SYS_CONNECT = 203 SYS_CONNECT = 203
SYS_GETSOCKNAME = 204 SYS_GETSOCKNAME = 204
SYS_GETPEERNAME = 205 SYS_GETPEERNAME = 205
SYS_SENDTO = 206 SYS_SENDTO = 206
SYS_RECVFROM = 207 SYS_RECVFROM = 207
SYS_SETSOCKOPT = 208 SYS_SETSOCKOPT = 208
SYS_GETSOCKOPT = 209 SYS_GETSOCKOPT = 209
SYS_SHUTDOWN = 210 SYS_SHUTDOWN = 210
SYS_SENDMSG = 211 SYS_SENDMSG = 211
SYS_RECVMSG = 212 SYS_RECVMSG = 212
SYS_READAHEAD = 213 SYS_READAHEAD = 213
SYS_BRK = 214 SYS_BRK = 214
SYS_MUNMAP = 215 SYS_MUNMAP = 215
SYS_MREMAP = 216 SYS_MREMAP = 216
SYS_ADD_KEY = 217 SYS_ADD_KEY = 217
SYS_REQUEST_KEY = 218 SYS_REQUEST_KEY = 218
SYS_KEYCTL = 219 SYS_KEYCTL = 219
SYS_CLONE = 220 SYS_CLONE = 220
SYS_EXECVE = 221 SYS_EXECVE = 221
SYS_MMAP = 222 SYS_MMAP = 222
SYS_FADVISE64 = 223 SYS_FADVISE64 = 223
SYS_SWAPON = 224 SYS_SWAPON = 224
SYS_SWAPOFF = 225 SYS_SWAPOFF = 225
SYS_MPROTECT = 226 SYS_MPROTECT = 226
SYS_MSYNC = 227 SYS_MSYNC = 227
SYS_MLOCK = 228 SYS_MLOCK = 228
SYS_MUNLOCK = 229 SYS_MUNLOCK = 229
SYS_MLOCKALL = 230 SYS_MLOCKALL = 230
SYS_MUNLOCKALL = 231 SYS_MUNLOCKALL = 231
SYS_MINCORE = 232 SYS_MINCORE = 232
SYS_MADVISE = 233 SYS_MADVISE = 233
SYS_REMAP_FILE_PAGES = 234 SYS_REMAP_FILE_PAGES = 234
SYS_MBIND = 235 SYS_MBIND = 235
SYS_GET_MEMPOLICY = 236 SYS_GET_MEMPOLICY = 236
SYS_SET_MEMPOLICY = 237 SYS_SET_MEMPOLICY = 237
SYS_MIGRATE_PAGES = 238 SYS_MIGRATE_PAGES = 238
SYS_MOVE_PAGES = 239 SYS_MOVE_PAGES = 239
SYS_RT_TGSIGQUEUEINFO = 240 SYS_RT_TGSIGQUEUEINFO = 240
SYS_PERF_EVENT_OPEN = 241 SYS_PERF_EVENT_OPEN = 241
SYS_ACCEPT4 = 242 SYS_ACCEPT4 = 242
SYS_RECVMMSG = 243 SYS_RECVMMSG = 243
SYS_ARCH_SPECIFIC_SYSCALL = 244 SYS_ARCH_SPECIFIC_SYSCALL = 244
SYS_WAIT4 = 260 SYS_WAIT4 = 260
SYS_PRLIMIT64 = 261 SYS_PRLIMIT64 = 261
SYS_FANOTIFY_INIT = 262 SYS_FANOTIFY_INIT = 262
SYS_FANOTIFY_MARK = 263 SYS_FANOTIFY_MARK = 263
SYS_NAME_TO_HANDLE_AT = 264 SYS_NAME_TO_HANDLE_AT = 264
SYS_OPEN_BY_HANDLE_AT = 265 SYS_OPEN_BY_HANDLE_AT = 265
SYS_CLOCK_ADJTIME = 266 SYS_CLOCK_ADJTIME = 266
SYS_SYNCFS = 267 SYS_SYNCFS = 267
SYS_SETNS = 268 SYS_SETNS = 268
SYS_SENDMMSG = 269 SYS_SENDMMSG = 269
SYS_PROCESS_VM_READV = 270 SYS_PROCESS_VM_READV = 270
SYS_PROCESS_VM_WRITEV = 271 SYS_PROCESS_VM_WRITEV = 271
SYS_KCMP = 272 SYS_KCMP = 272
SYS_FINIT_MODULE = 273 SYS_FINIT_MODULE = 273
SYS_SCHED_SETATTR = 274 SYS_SCHED_SETATTR = 274
SYS_SCHED_GETATTR = 275 SYS_SCHED_GETATTR = 275
SYS_RENAMEAT2 = 276 SYS_RENAMEAT2 = 276
SYS_SECCOMP = 277 SYS_SECCOMP = 277
SYS_GETRANDOM = 278 SYS_GETRANDOM = 278
SYS_MEMFD_CREATE = 279 SYS_MEMFD_CREATE = 279
SYS_BPF = 280 SYS_BPF = 280
SYS_EXECVEAT = 281 SYS_EXECVEAT = 281
SYS_USERFAULTFD = 282 SYS_USERFAULTFD = 282
SYS_MEMBARRIER = 283 SYS_MEMBARRIER = 283
SYS_MLOCK2 = 284 SYS_MLOCK2 = 284
SYS_COPY_FILE_RANGE = 285 SYS_COPY_FILE_RANGE = 285
SYS_PREADV2 = 286 SYS_PREADV2 = 286
SYS_PWRITEV2 = 287 SYS_PWRITEV2 = 287
SYS_PKEY_MPROTECT = 288 SYS_PKEY_MPROTECT = 288
SYS_PKEY_ALLOC = 289 SYS_PKEY_ALLOC = 289
SYS_PKEY_FREE = 290 SYS_PKEY_FREE = 290
SYS_STATX = 291 SYS_STATX = 291
SYS_IO_PGETEVENTS = 292 SYS_IO_PGETEVENTS = 292
SYS_RSEQ = 293 SYS_RSEQ = 293
SYS_KEXEC_FILE_LOAD = 294 SYS_KEXEC_FILE_LOAD = 294
SYS_PIDFD_SEND_SIGNAL = 424 SYS_PIDFD_SEND_SIGNAL = 424
SYS_IO_URING_SETUP = 425 SYS_IO_URING_SETUP = 425
SYS_IO_URING_ENTER = 426 SYS_IO_URING_ENTER = 426
SYS_IO_URING_REGISTER = 427 SYS_IO_URING_REGISTER = 427
SYS_OPEN_TREE = 428 SYS_OPEN_TREE = 428
SYS_MOVE_MOUNT = 429 SYS_MOVE_MOUNT = 429
SYS_FSOPEN = 430 SYS_FSOPEN = 430
SYS_FSCONFIG = 431 SYS_FSCONFIG = 431
SYS_FSMOUNT = 432 SYS_FSMOUNT = 432
SYS_FSPICK = 433 SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434 SYS_PIDFD_OPEN = 434
SYS_CLONE3 = 435 SYS_CLONE3 = 435
SYS_CLOSE_RANGE = 436 SYS_CLOSE_RANGE = 436
SYS_OPENAT2 = 437 SYS_OPENAT2 = 437
SYS_PIDFD_GETFD = 438 SYS_PIDFD_GETFD = 438
SYS_FACCESSAT2 = 439 SYS_FACCESSAT2 = 439
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_QUOTACTL_FD = 443
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
SYS_MEMFD_SECRET = 447
) )

View File

@ -424,4 +424,8 @@ const (
SYS_PROCESS_MADVISE = 4440 SYS_PROCESS_MADVISE = 4440
SYS_EPOLL_PWAIT2 = 4441 SYS_EPOLL_PWAIT2 = 4441
SYS_MOUNT_SETATTR = 4442 SYS_MOUNT_SETATTR = 4442
SYS_QUOTACTL_FD = 4443
SYS_LANDLOCK_CREATE_RULESET = 4444
SYS_LANDLOCK_ADD_RULE = 4445
SYS_LANDLOCK_RESTRICT_SELF = 4446
) )

View File

@ -7,351 +7,355 @@
package unix package unix
const ( const (
SYS_READ = 5000 SYS_READ = 5000
SYS_WRITE = 5001 SYS_WRITE = 5001
SYS_OPEN = 5002 SYS_OPEN = 5002
SYS_CLOSE = 5003 SYS_CLOSE = 5003
SYS_STAT = 5004 SYS_STAT = 5004
SYS_FSTAT = 5005 SYS_FSTAT = 5005
SYS_LSTAT = 5006 SYS_LSTAT = 5006
SYS_POLL = 5007 SYS_POLL = 5007
SYS_LSEEK = 5008 SYS_LSEEK = 5008
SYS_MMAP = 5009 SYS_MMAP = 5009
SYS_MPROTECT = 5010 SYS_MPROTECT = 5010
SYS_MUNMAP = 5011 SYS_MUNMAP = 5011
SYS_BRK = 5012 SYS_BRK = 5012
SYS_RT_SIGACTION = 5013 SYS_RT_SIGACTION = 5013
SYS_RT_SIGPROCMASK = 5014 SYS_RT_SIGPROCMASK = 5014
SYS_IOCTL = 5015 SYS_IOCTL = 5015
SYS_PREAD64 = 5016 SYS_PREAD64 = 5016
SYS_PWRITE64 = 5017 SYS_PWRITE64 = 5017
SYS_READV = 5018 SYS_READV = 5018
SYS_WRITEV = 5019 SYS_WRITEV = 5019
SYS_ACCESS = 5020 SYS_ACCESS = 5020
SYS_PIPE = 5021 SYS_PIPE = 5021
SYS__NEWSELECT = 5022 SYS__NEWSELECT = 5022
SYS_SCHED_YIELD = 5023 SYS_SCHED_YIELD = 5023
SYS_MREMAP = 5024 SYS_MREMAP = 5024
SYS_MSYNC = 5025 SYS_MSYNC = 5025
SYS_MINCORE = 5026 SYS_MINCORE = 5026
SYS_MADVISE = 5027 SYS_MADVISE = 5027
SYS_SHMGET = 5028 SYS_SHMGET = 5028
SYS_SHMAT = 5029 SYS_SHMAT = 5029
SYS_SHMCTL = 5030 SYS_SHMCTL = 5030
SYS_DUP = 5031 SYS_DUP = 5031
SYS_DUP2 = 5032 SYS_DUP2 = 5032
SYS_PAUSE = 5033 SYS_PAUSE = 5033
SYS_NANOSLEEP = 5034 SYS_NANOSLEEP = 5034
SYS_GETITIMER = 5035 SYS_GETITIMER = 5035
SYS_SETITIMER = 5036 SYS_SETITIMER = 5036
SYS_ALARM = 5037 SYS_ALARM = 5037
SYS_GETPID = 5038 SYS_GETPID = 5038
SYS_SENDFILE = 5039 SYS_SENDFILE = 5039
SYS_SOCKET = 5040 SYS_SOCKET = 5040
SYS_CONNECT = 5041 SYS_CONNECT = 5041
SYS_ACCEPT = 5042 SYS_ACCEPT = 5042
SYS_SENDTO = 5043 SYS_SENDTO = 5043
SYS_RECVFROM = 5044 SYS_RECVFROM = 5044
SYS_SENDMSG = 5045 SYS_SENDMSG = 5045
SYS_RECVMSG = 5046 SYS_RECVMSG = 5046
SYS_SHUTDOWN = 5047 SYS_SHUTDOWN = 5047
SYS_BIND = 5048 SYS_BIND = 5048
SYS_LISTEN = 5049 SYS_LISTEN = 5049
SYS_GETSOCKNAME = 5050 SYS_GETSOCKNAME = 5050
SYS_GETPEERNAME = 5051 SYS_GETPEERNAME = 5051
SYS_SOCKETPAIR = 5052 SYS_SOCKETPAIR = 5052
SYS_SETSOCKOPT = 5053 SYS_SETSOCKOPT = 5053
SYS_GETSOCKOPT = 5054 SYS_GETSOCKOPT = 5054
SYS_CLONE = 5055 SYS_CLONE = 5055
SYS_FORK = 5056 SYS_FORK = 5056
SYS_EXECVE = 5057 SYS_EXECVE = 5057
SYS_EXIT = 5058 SYS_EXIT = 5058
SYS_WAIT4 = 5059 SYS_WAIT4 = 5059
SYS_KILL = 5060 SYS_KILL = 5060
SYS_UNAME = 5061 SYS_UNAME = 5061
SYS_SEMGET = 5062 SYS_SEMGET = 5062
SYS_SEMOP = 5063 SYS_SEMOP = 5063
SYS_SEMCTL = 5064 SYS_SEMCTL = 5064
SYS_SHMDT = 5065 SYS_SHMDT = 5065
SYS_MSGGET = 5066 SYS_MSGGET = 5066
SYS_MSGSND = 5067 SYS_MSGSND = 5067
SYS_MSGRCV = 5068 SYS_MSGRCV = 5068
SYS_MSGCTL = 5069 SYS_MSGCTL = 5069
SYS_FCNTL = 5070 SYS_FCNTL = 5070
SYS_FLOCK = 5071 SYS_FLOCK = 5071
SYS_FSYNC = 5072 SYS_FSYNC = 5072
SYS_FDATASYNC = 5073 SYS_FDATASYNC = 5073
SYS_TRUNCATE = 5074 SYS_TRUNCATE = 5074
SYS_FTRUNCATE = 5075 SYS_FTRUNCATE = 5075
SYS_GETDENTS = 5076 SYS_GETDENTS = 5076
SYS_GETCWD = 5077 SYS_GETCWD = 5077
SYS_CHDIR = 5078 SYS_CHDIR = 5078
SYS_FCHDIR = 5079 SYS_FCHDIR = 5079
SYS_RENAME = 5080 SYS_RENAME = 5080
SYS_MKDIR = 5081 SYS_MKDIR = 5081
SYS_RMDIR = 5082 SYS_RMDIR = 5082
SYS_CREAT = 5083 SYS_CREAT = 5083
SYS_LINK = 5084 SYS_LINK = 5084
SYS_UNLINK = 5085 SYS_UNLINK = 5085
SYS_SYMLINK = 5086 SYS_SYMLINK = 5086
SYS_READLINK = 5087 SYS_READLINK = 5087
SYS_CHMOD = 5088 SYS_CHMOD = 5088
SYS_FCHMOD = 5089 SYS_FCHMOD = 5089
SYS_CHOWN = 5090 SYS_CHOWN = 5090
SYS_FCHOWN = 5091 SYS_FCHOWN = 5091
SYS_LCHOWN = 5092 SYS_LCHOWN = 5092
SYS_UMASK = 5093 SYS_UMASK = 5093
SYS_GETTIMEOFDAY = 5094 SYS_GETTIMEOFDAY = 5094
SYS_GETRLIMIT = 5095 SYS_GETRLIMIT = 5095
SYS_GETRUSAGE = 5096 SYS_GETRUSAGE = 5096
SYS_SYSINFO = 5097 SYS_SYSINFO = 5097
SYS_TIMES = 5098 SYS_TIMES = 5098
SYS_PTRACE = 5099 SYS_PTRACE = 5099
SYS_GETUID = 5100 SYS_GETUID = 5100
SYS_SYSLOG = 5101 SYS_SYSLOG = 5101
SYS_GETGID = 5102 SYS_GETGID = 5102
SYS_SETUID = 5103 SYS_SETUID = 5103
SYS_SETGID = 5104 SYS_SETGID = 5104
SYS_GETEUID = 5105 SYS_GETEUID = 5105
SYS_GETEGID = 5106 SYS_GETEGID = 5106
SYS_SETPGID = 5107 SYS_SETPGID = 5107
SYS_GETPPID = 5108 SYS_GETPPID = 5108
SYS_GETPGRP = 5109 SYS_GETPGRP = 5109
SYS_SETSID = 5110 SYS_SETSID = 5110
SYS_SETREUID = 5111 SYS_SETREUID = 5111
SYS_SETREGID = 5112 SYS_SETREGID = 5112
SYS_GETGROUPS = 5113 SYS_GETGROUPS = 5113
SYS_SETGROUPS = 5114 SYS_SETGROUPS = 5114
SYS_SETRESUID = 5115 SYS_SETRESUID = 5115
SYS_GETRESUID = 5116 SYS_GETRESUID = 5116
SYS_SETRESGID = 5117 SYS_SETRESGID = 5117
SYS_GETRESGID = 5118 SYS_GETRESGID = 5118
SYS_GETPGID = 5119 SYS_GETPGID = 5119
SYS_SETFSUID = 5120 SYS_SETFSUID = 5120
SYS_SETFSGID = 5121 SYS_SETFSGID = 5121
SYS_GETSID = 5122 SYS_GETSID = 5122
SYS_CAPGET = 5123 SYS_CAPGET = 5123
SYS_CAPSET = 5124 SYS_CAPSET = 5124
SYS_RT_SIGPENDING = 5125 SYS_RT_SIGPENDING = 5125
SYS_RT_SIGTIMEDWAIT = 5126 SYS_RT_SIGTIMEDWAIT = 5126
SYS_RT_SIGQUEUEINFO = 5127 SYS_RT_SIGQUEUEINFO = 5127
SYS_RT_SIGSUSPEND = 5128 SYS_RT_SIGSUSPEND = 5128
SYS_SIGALTSTACK = 5129 SYS_SIGALTSTACK = 5129
SYS_UTIME = 5130 SYS_UTIME = 5130
SYS_MKNOD = 5131 SYS_MKNOD = 5131
SYS_PERSONALITY = 5132 SYS_PERSONALITY = 5132
SYS_USTAT = 5133 SYS_USTAT = 5133
SYS_STATFS = 5134 SYS_STATFS = 5134
SYS_FSTATFS = 5135 SYS_FSTATFS = 5135
SYS_SYSFS = 5136 SYS_SYSFS = 5136
SYS_GETPRIORITY = 5137 SYS_GETPRIORITY = 5137
SYS_SETPRIORITY = 5138 SYS_SETPRIORITY = 5138
SYS_SCHED_SETPARAM = 5139 SYS_SCHED_SETPARAM = 5139
SYS_SCHED_GETPARAM = 5140 SYS_SCHED_GETPARAM = 5140
SYS_SCHED_SETSCHEDULER = 5141 SYS_SCHED_SETSCHEDULER = 5141
SYS_SCHED_GETSCHEDULER = 5142 SYS_SCHED_GETSCHEDULER = 5142
SYS_SCHED_GET_PRIORITY_MAX = 5143 SYS_SCHED_GET_PRIORITY_MAX = 5143
SYS_SCHED_GET_PRIORITY_MIN = 5144 SYS_SCHED_GET_PRIORITY_MIN = 5144
SYS_SCHED_RR_GET_INTERVAL = 5145 SYS_SCHED_RR_GET_INTERVAL = 5145
SYS_MLOCK = 5146 SYS_MLOCK = 5146
SYS_MUNLOCK = 5147 SYS_MUNLOCK = 5147
SYS_MLOCKALL = 5148 SYS_MLOCKALL = 5148
SYS_MUNLOCKALL = 5149 SYS_MUNLOCKALL = 5149
SYS_VHANGUP = 5150 SYS_VHANGUP = 5150
SYS_PIVOT_ROOT = 5151 SYS_PIVOT_ROOT = 5151
SYS__SYSCTL = 5152 SYS__SYSCTL = 5152
SYS_PRCTL = 5153 SYS_PRCTL = 5153
SYS_ADJTIMEX = 5154 SYS_ADJTIMEX = 5154
SYS_SETRLIMIT = 5155 SYS_SETRLIMIT = 5155
SYS_CHROOT = 5156 SYS_CHROOT = 5156
SYS_SYNC = 5157 SYS_SYNC = 5157
SYS_ACCT = 5158 SYS_ACCT = 5158
SYS_SETTIMEOFDAY = 5159 SYS_SETTIMEOFDAY = 5159
SYS_MOUNT = 5160 SYS_MOUNT = 5160
SYS_UMOUNT2 = 5161 SYS_UMOUNT2 = 5161
SYS_SWAPON = 5162 SYS_SWAPON = 5162
SYS_SWAPOFF = 5163 SYS_SWAPOFF = 5163
SYS_REBOOT = 5164 SYS_REBOOT = 5164
SYS_SETHOSTNAME = 5165 SYS_SETHOSTNAME = 5165
SYS_SETDOMAINNAME = 5166 SYS_SETDOMAINNAME = 5166
SYS_CREATE_MODULE = 5167 SYS_CREATE_MODULE = 5167
SYS_INIT_MODULE = 5168 SYS_INIT_MODULE = 5168
SYS_DELETE_MODULE = 5169 SYS_DELETE_MODULE = 5169
SYS_GET_KERNEL_SYMS = 5170 SYS_GET_KERNEL_SYMS = 5170
SYS_QUERY_MODULE = 5171 SYS_QUERY_MODULE = 5171
SYS_QUOTACTL = 5172 SYS_QUOTACTL = 5172
SYS_NFSSERVCTL = 5173 SYS_NFSSERVCTL = 5173
SYS_GETPMSG = 5174 SYS_GETPMSG = 5174
SYS_PUTPMSG = 5175 SYS_PUTPMSG = 5175
SYS_AFS_SYSCALL = 5176 SYS_AFS_SYSCALL = 5176
SYS_RESERVED177 = 5177 SYS_RESERVED177 = 5177
SYS_GETTID = 5178 SYS_GETTID = 5178
SYS_READAHEAD = 5179 SYS_READAHEAD = 5179
SYS_SETXATTR = 5180 SYS_SETXATTR = 5180
SYS_LSETXATTR = 5181 SYS_LSETXATTR = 5181
SYS_FSETXATTR = 5182 SYS_FSETXATTR = 5182
SYS_GETXATTR = 5183 SYS_GETXATTR = 5183
SYS_LGETXATTR = 5184 SYS_LGETXATTR = 5184
SYS_FGETXATTR = 5185 SYS_FGETXATTR = 5185
SYS_LISTXATTR = 5186 SYS_LISTXATTR = 5186
SYS_LLISTXATTR = 5187 SYS_LLISTXATTR = 5187
SYS_FLISTXATTR = 5188 SYS_FLISTXATTR = 5188
SYS_REMOVEXATTR = 5189 SYS_REMOVEXATTR = 5189
SYS_LREMOVEXATTR = 5190 SYS_LREMOVEXATTR = 5190
SYS_FREMOVEXATTR = 5191 SYS_FREMOVEXATTR = 5191
SYS_TKILL = 5192 SYS_TKILL = 5192
SYS_RESERVED193 = 5193 SYS_RESERVED193 = 5193
SYS_FUTEX = 5194 SYS_FUTEX = 5194
SYS_SCHED_SETAFFINITY = 5195 SYS_SCHED_SETAFFINITY = 5195
SYS_SCHED_GETAFFINITY = 5196 SYS_SCHED_GETAFFINITY = 5196
SYS_CACHEFLUSH = 5197 SYS_CACHEFLUSH = 5197
SYS_CACHECTL = 5198 SYS_CACHECTL = 5198
SYS_SYSMIPS = 5199 SYS_SYSMIPS = 5199
SYS_IO_SETUP = 5200 SYS_IO_SETUP = 5200
SYS_IO_DESTROY = 5201 SYS_IO_DESTROY = 5201
SYS_IO_GETEVENTS = 5202 SYS_IO_GETEVENTS = 5202
SYS_IO_SUBMIT = 5203 SYS_IO_SUBMIT = 5203
SYS_IO_CANCEL = 5204 SYS_IO_CANCEL = 5204
SYS_EXIT_GROUP = 5205 SYS_EXIT_GROUP = 5205
SYS_LOOKUP_DCOOKIE = 5206 SYS_LOOKUP_DCOOKIE = 5206
SYS_EPOLL_CREATE = 5207 SYS_EPOLL_CREATE = 5207
SYS_EPOLL_CTL = 5208 SYS_EPOLL_CTL = 5208
SYS_EPOLL_WAIT = 5209 SYS_EPOLL_WAIT = 5209
SYS_REMAP_FILE_PAGES = 5210 SYS_REMAP_FILE_PAGES = 5210
SYS_RT_SIGRETURN = 5211 SYS_RT_SIGRETURN = 5211
SYS_SET_TID_ADDRESS = 5212 SYS_SET_TID_ADDRESS = 5212
SYS_RESTART_SYSCALL = 5213 SYS_RESTART_SYSCALL = 5213
SYS_SEMTIMEDOP = 5214 SYS_SEMTIMEDOP = 5214
SYS_FADVISE64 = 5215 SYS_FADVISE64 = 5215
SYS_TIMER_CREATE = 5216 SYS_TIMER_CREATE = 5216
SYS_TIMER_SETTIME = 5217 SYS_TIMER_SETTIME = 5217
SYS_TIMER_GETTIME = 5218 SYS_TIMER_GETTIME = 5218
SYS_TIMER_GETOVERRUN = 5219 SYS_TIMER_GETOVERRUN = 5219
SYS_TIMER_DELETE = 5220 SYS_TIMER_DELETE = 5220
SYS_CLOCK_SETTIME = 5221 SYS_CLOCK_SETTIME = 5221
SYS_CLOCK_GETTIME = 5222 SYS_CLOCK_GETTIME = 5222
SYS_CLOCK_GETRES = 5223 SYS_CLOCK_GETRES = 5223
SYS_CLOCK_NANOSLEEP = 5224 SYS_CLOCK_NANOSLEEP = 5224
SYS_TGKILL = 5225 SYS_TGKILL = 5225
SYS_UTIMES = 5226 SYS_UTIMES = 5226
SYS_MBIND = 5227 SYS_MBIND = 5227
SYS_GET_MEMPOLICY = 5228 SYS_GET_MEMPOLICY = 5228
SYS_SET_MEMPOLICY = 5229 SYS_SET_MEMPOLICY = 5229
SYS_MQ_OPEN = 5230 SYS_MQ_OPEN = 5230
SYS_MQ_UNLINK = 5231 SYS_MQ_UNLINK = 5231
SYS_MQ_TIMEDSEND = 5232 SYS_MQ_TIMEDSEND = 5232
SYS_MQ_TIMEDRECEIVE = 5233 SYS_MQ_TIMEDRECEIVE = 5233
SYS_MQ_NOTIFY = 5234 SYS_MQ_NOTIFY = 5234
SYS_MQ_GETSETATTR = 5235 SYS_MQ_GETSETATTR = 5235
SYS_VSERVER = 5236 SYS_VSERVER = 5236
SYS_WAITID = 5237 SYS_WAITID = 5237
SYS_ADD_KEY = 5239 SYS_ADD_KEY = 5239
SYS_REQUEST_KEY = 5240 SYS_REQUEST_KEY = 5240
SYS_KEYCTL = 5241 SYS_KEYCTL = 5241
SYS_SET_THREAD_AREA = 5242 SYS_SET_THREAD_AREA = 5242
SYS_INOTIFY_INIT = 5243 SYS_INOTIFY_INIT = 5243
SYS_INOTIFY_ADD_WATCH = 5244 SYS_INOTIFY_ADD_WATCH = 5244
SYS_INOTIFY_RM_WATCH = 5245 SYS_INOTIFY_RM_WATCH = 5245
SYS_MIGRATE_PAGES = 5246 SYS_MIGRATE_PAGES = 5246
SYS_OPENAT = 5247 SYS_OPENAT = 5247
SYS_MKDIRAT = 5248 SYS_MKDIRAT = 5248
SYS_MKNODAT = 5249 SYS_MKNODAT = 5249
SYS_FCHOWNAT = 5250 SYS_FCHOWNAT = 5250
SYS_FUTIMESAT = 5251 SYS_FUTIMESAT = 5251
SYS_NEWFSTATAT = 5252 SYS_NEWFSTATAT = 5252
SYS_UNLINKAT = 5253 SYS_UNLINKAT = 5253
SYS_RENAMEAT = 5254 SYS_RENAMEAT = 5254
SYS_LINKAT = 5255 SYS_LINKAT = 5255
SYS_SYMLINKAT = 5256 SYS_SYMLINKAT = 5256
SYS_READLINKAT = 5257 SYS_READLINKAT = 5257
SYS_FCHMODAT = 5258 SYS_FCHMODAT = 5258
SYS_FACCESSAT = 5259 SYS_FACCESSAT = 5259
SYS_PSELECT6 = 5260 SYS_PSELECT6 = 5260
SYS_PPOLL = 5261 SYS_PPOLL = 5261
SYS_UNSHARE = 5262 SYS_UNSHARE = 5262
SYS_SPLICE = 5263 SYS_SPLICE = 5263
SYS_SYNC_FILE_RANGE = 5264 SYS_SYNC_FILE_RANGE = 5264
SYS_TEE = 5265 SYS_TEE = 5265
SYS_VMSPLICE = 5266 SYS_VMSPLICE = 5266
SYS_MOVE_PAGES = 5267 SYS_MOVE_PAGES = 5267
SYS_SET_ROBUST_LIST = 5268 SYS_SET_ROBUST_LIST = 5268
SYS_GET_ROBUST_LIST = 5269 SYS_GET_ROBUST_LIST = 5269
SYS_KEXEC_LOAD = 5270 SYS_KEXEC_LOAD = 5270
SYS_GETCPU = 5271 SYS_GETCPU = 5271
SYS_EPOLL_PWAIT = 5272 SYS_EPOLL_PWAIT = 5272
SYS_IOPRIO_SET = 5273 SYS_IOPRIO_SET = 5273
SYS_IOPRIO_GET = 5274 SYS_IOPRIO_GET = 5274
SYS_UTIMENSAT = 5275 SYS_UTIMENSAT = 5275
SYS_SIGNALFD = 5276 SYS_SIGNALFD = 5276
SYS_TIMERFD = 5277 SYS_TIMERFD = 5277
SYS_EVENTFD = 5278 SYS_EVENTFD = 5278
SYS_FALLOCATE = 5279 SYS_FALLOCATE = 5279
SYS_TIMERFD_CREATE = 5280 SYS_TIMERFD_CREATE = 5280
SYS_TIMERFD_GETTIME = 5281 SYS_TIMERFD_GETTIME = 5281
SYS_TIMERFD_SETTIME = 5282 SYS_TIMERFD_SETTIME = 5282
SYS_SIGNALFD4 = 5283 SYS_SIGNALFD4 = 5283
SYS_EVENTFD2 = 5284 SYS_EVENTFD2 = 5284
SYS_EPOLL_CREATE1 = 5285 SYS_EPOLL_CREATE1 = 5285
SYS_DUP3 = 5286 SYS_DUP3 = 5286
SYS_PIPE2 = 5287 SYS_PIPE2 = 5287
SYS_INOTIFY_INIT1 = 5288 SYS_INOTIFY_INIT1 = 5288
SYS_PREADV = 5289 SYS_PREADV = 5289
SYS_PWRITEV = 5290 SYS_PWRITEV = 5290
SYS_RT_TGSIGQUEUEINFO = 5291 SYS_RT_TGSIGQUEUEINFO = 5291
SYS_PERF_EVENT_OPEN = 5292 SYS_PERF_EVENT_OPEN = 5292
SYS_ACCEPT4 = 5293 SYS_ACCEPT4 = 5293
SYS_RECVMMSG = 5294 SYS_RECVMMSG = 5294
SYS_FANOTIFY_INIT = 5295 SYS_FANOTIFY_INIT = 5295
SYS_FANOTIFY_MARK = 5296 SYS_FANOTIFY_MARK = 5296
SYS_PRLIMIT64 = 5297 SYS_PRLIMIT64 = 5297
SYS_NAME_TO_HANDLE_AT = 5298 SYS_NAME_TO_HANDLE_AT = 5298
SYS_OPEN_BY_HANDLE_AT = 5299 SYS_OPEN_BY_HANDLE_AT = 5299
SYS_CLOCK_ADJTIME = 5300 SYS_CLOCK_ADJTIME = 5300
SYS_SYNCFS = 5301 SYS_SYNCFS = 5301
SYS_SENDMMSG = 5302 SYS_SENDMMSG = 5302
SYS_SETNS = 5303 SYS_SETNS = 5303
SYS_PROCESS_VM_READV = 5304 SYS_PROCESS_VM_READV = 5304
SYS_PROCESS_VM_WRITEV = 5305 SYS_PROCESS_VM_WRITEV = 5305
SYS_KCMP = 5306 SYS_KCMP = 5306
SYS_FINIT_MODULE = 5307 SYS_FINIT_MODULE = 5307
SYS_GETDENTS64 = 5308 SYS_GETDENTS64 = 5308
SYS_SCHED_SETATTR = 5309 SYS_SCHED_SETATTR = 5309
SYS_SCHED_GETATTR = 5310 SYS_SCHED_GETATTR = 5310
SYS_RENAMEAT2 = 5311 SYS_RENAMEAT2 = 5311
SYS_SECCOMP = 5312 SYS_SECCOMP = 5312
SYS_GETRANDOM = 5313 SYS_GETRANDOM = 5313
SYS_MEMFD_CREATE = 5314 SYS_MEMFD_CREATE = 5314
SYS_BPF = 5315 SYS_BPF = 5315
SYS_EXECVEAT = 5316 SYS_EXECVEAT = 5316
SYS_USERFAULTFD = 5317 SYS_USERFAULTFD = 5317
SYS_MEMBARRIER = 5318 SYS_MEMBARRIER = 5318
SYS_MLOCK2 = 5319 SYS_MLOCK2 = 5319
SYS_COPY_FILE_RANGE = 5320 SYS_COPY_FILE_RANGE = 5320
SYS_PREADV2 = 5321 SYS_PREADV2 = 5321
SYS_PWRITEV2 = 5322 SYS_PWRITEV2 = 5322
SYS_PKEY_MPROTECT = 5323 SYS_PKEY_MPROTECT = 5323
SYS_PKEY_ALLOC = 5324 SYS_PKEY_ALLOC = 5324
SYS_PKEY_FREE = 5325 SYS_PKEY_FREE = 5325
SYS_STATX = 5326 SYS_STATX = 5326
SYS_RSEQ = 5327 SYS_RSEQ = 5327
SYS_IO_PGETEVENTS = 5328 SYS_IO_PGETEVENTS = 5328
SYS_PIDFD_SEND_SIGNAL = 5424 SYS_PIDFD_SEND_SIGNAL = 5424
SYS_IO_URING_SETUP = 5425 SYS_IO_URING_SETUP = 5425
SYS_IO_URING_ENTER = 5426 SYS_IO_URING_ENTER = 5426
SYS_IO_URING_REGISTER = 5427 SYS_IO_URING_REGISTER = 5427
SYS_OPEN_TREE = 5428 SYS_OPEN_TREE = 5428
SYS_MOVE_MOUNT = 5429 SYS_MOVE_MOUNT = 5429
SYS_FSOPEN = 5430 SYS_FSOPEN = 5430
SYS_FSCONFIG = 5431 SYS_FSCONFIG = 5431
SYS_FSMOUNT = 5432 SYS_FSMOUNT = 5432
SYS_FSPICK = 5433 SYS_FSPICK = 5433
SYS_PIDFD_OPEN = 5434 SYS_PIDFD_OPEN = 5434
SYS_CLONE3 = 5435 SYS_CLONE3 = 5435
SYS_CLOSE_RANGE = 5436 SYS_CLOSE_RANGE = 5436
SYS_OPENAT2 = 5437 SYS_OPENAT2 = 5437
SYS_PIDFD_GETFD = 5438 SYS_PIDFD_GETFD = 5438
SYS_FACCESSAT2 = 5439 SYS_FACCESSAT2 = 5439
SYS_PROCESS_MADVISE = 5440 SYS_PROCESS_MADVISE = 5440
SYS_EPOLL_PWAIT2 = 5441 SYS_EPOLL_PWAIT2 = 5441
SYS_MOUNT_SETATTR = 5442 SYS_MOUNT_SETATTR = 5442
SYS_QUOTACTL_FD = 5443
SYS_LANDLOCK_CREATE_RULESET = 5444
SYS_LANDLOCK_ADD_RULE = 5445
SYS_LANDLOCK_RESTRICT_SELF = 5446
) )

View File

@ -7,351 +7,355 @@
package unix package unix
const ( const (
SYS_READ = 5000 SYS_READ = 5000
SYS_WRITE = 5001 SYS_WRITE = 5001
SYS_OPEN = 5002 SYS_OPEN = 5002
SYS_CLOSE = 5003 SYS_CLOSE = 5003
SYS_STAT = 5004 SYS_STAT = 5004
SYS_FSTAT = 5005 SYS_FSTAT = 5005
SYS_LSTAT = 5006 SYS_LSTAT = 5006
SYS_POLL = 5007 SYS_POLL = 5007
SYS_LSEEK = 5008 SYS_LSEEK = 5008
SYS_MMAP = 5009 SYS_MMAP = 5009
SYS_MPROTECT = 5010 SYS_MPROTECT = 5010
SYS_MUNMAP = 5011 SYS_MUNMAP = 5011
SYS_BRK = 5012 SYS_BRK = 5012
SYS_RT_SIGACTION = 5013 SYS_RT_SIGACTION = 5013
SYS_RT_SIGPROCMASK = 5014 SYS_RT_SIGPROCMASK = 5014
SYS_IOCTL = 5015 SYS_IOCTL = 5015
SYS_PREAD64 = 5016 SYS_PREAD64 = 5016
SYS_PWRITE64 = 5017 SYS_PWRITE64 = 5017
SYS_READV = 5018 SYS_READV = 5018
SYS_WRITEV = 5019 SYS_WRITEV = 5019
SYS_ACCESS = 5020 SYS_ACCESS = 5020
SYS_PIPE = 5021 SYS_PIPE = 5021
SYS__NEWSELECT = 5022 SYS__NEWSELECT = 5022
SYS_SCHED_YIELD = 5023 SYS_SCHED_YIELD = 5023
SYS_MREMAP = 5024 SYS_MREMAP = 5024
SYS_MSYNC = 5025 SYS_MSYNC = 5025
SYS_MINCORE = 5026 SYS_MINCORE = 5026
SYS_MADVISE = 5027 SYS_MADVISE = 5027
SYS_SHMGET = 5028 SYS_SHMGET = 5028
SYS_SHMAT = 5029 SYS_SHMAT = 5029
SYS_SHMCTL = 5030 SYS_SHMCTL = 5030
SYS_DUP = 5031 SYS_DUP = 5031
SYS_DUP2 = 5032 SYS_DUP2 = 5032
SYS_PAUSE = 5033 SYS_PAUSE = 5033
SYS_NANOSLEEP = 5034 SYS_NANOSLEEP = 5034
SYS_GETITIMER = 5035 SYS_GETITIMER = 5035
SYS_SETITIMER = 5036 SYS_SETITIMER = 5036
SYS_ALARM = 5037 SYS_ALARM = 5037
SYS_GETPID = 5038 SYS_GETPID = 5038
SYS_SENDFILE = 5039 SYS_SENDFILE = 5039
SYS_SOCKET = 5040 SYS_SOCKET = 5040
SYS_CONNECT = 5041 SYS_CONNECT = 5041
SYS_ACCEPT = 5042 SYS_ACCEPT = 5042
SYS_SENDTO = 5043 SYS_SENDTO = 5043
SYS_RECVFROM = 5044 SYS_RECVFROM = 5044
SYS_SENDMSG = 5045 SYS_SENDMSG = 5045
SYS_RECVMSG = 5046 SYS_RECVMSG = 5046
SYS_SHUTDOWN = 5047 SYS_SHUTDOWN = 5047
SYS_BIND = 5048 SYS_BIND = 5048
SYS_LISTEN = 5049 SYS_LISTEN = 5049
SYS_GETSOCKNAME = 5050 SYS_GETSOCKNAME = 5050
SYS_GETPEERNAME = 5051 SYS_GETPEERNAME = 5051
SYS_SOCKETPAIR = 5052 SYS_SOCKETPAIR = 5052
SYS_SETSOCKOPT = 5053 SYS_SETSOCKOPT = 5053
SYS_GETSOCKOPT = 5054 SYS_GETSOCKOPT = 5054
SYS_CLONE = 5055 SYS_CLONE = 5055
SYS_FORK = 5056 SYS_FORK = 5056
SYS_EXECVE = 5057 SYS_EXECVE = 5057
SYS_EXIT = 5058 SYS_EXIT = 5058
SYS_WAIT4 = 5059 SYS_WAIT4 = 5059
SYS_KILL = 5060 SYS_KILL = 5060
SYS_UNAME = 5061 SYS_UNAME = 5061
SYS_SEMGET = 5062 SYS_SEMGET = 5062
SYS_SEMOP = 5063 SYS_SEMOP = 5063
SYS_SEMCTL = 5064 SYS_SEMCTL = 5064
SYS_SHMDT = 5065 SYS_SHMDT = 5065
SYS_MSGGET = 5066 SYS_MSGGET = 5066
SYS_MSGSND = 5067 SYS_MSGSND = 5067
SYS_MSGRCV = 5068 SYS_MSGRCV = 5068
SYS_MSGCTL = 5069 SYS_MSGCTL = 5069
SYS_FCNTL = 5070 SYS_FCNTL = 5070
SYS_FLOCK = 5071 SYS_FLOCK = 5071
SYS_FSYNC = 5072 SYS_FSYNC = 5072
SYS_FDATASYNC = 5073 SYS_FDATASYNC = 5073
SYS_TRUNCATE = 5074 SYS_TRUNCATE = 5074
SYS_FTRUNCATE = 5075 SYS_FTRUNCATE = 5075
SYS_GETDENTS = 5076 SYS_GETDENTS = 5076
SYS_GETCWD = 5077 SYS_GETCWD = 5077
SYS_CHDIR = 5078 SYS_CHDIR = 5078
SYS_FCHDIR = 5079 SYS_FCHDIR = 5079
SYS_RENAME = 5080 SYS_RENAME = 5080
SYS_MKDIR = 5081 SYS_MKDIR = 5081
SYS_RMDIR = 5082 SYS_RMDIR = 5082
SYS_CREAT = 5083 SYS_CREAT = 5083
SYS_LINK = 5084 SYS_LINK = 5084
SYS_UNLINK = 5085 SYS_UNLINK = 5085
SYS_SYMLINK = 5086 SYS_SYMLINK = 5086
SYS_READLINK = 5087 SYS_READLINK = 5087
SYS_CHMOD = 5088 SYS_CHMOD = 5088
SYS_FCHMOD = 5089 SYS_FCHMOD = 5089
SYS_CHOWN = 5090 SYS_CHOWN = 5090
SYS_FCHOWN = 5091 SYS_FCHOWN = 5091
SYS_LCHOWN = 5092 SYS_LCHOWN = 5092
SYS_UMASK = 5093 SYS_UMASK = 5093
SYS_GETTIMEOFDAY = 5094 SYS_GETTIMEOFDAY = 5094
SYS_GETRLIMIT = 5095 SYS_GETRLIMIT = 5095
SYS_GETRUSAGE = 5096 SYS_GETRUSAGE = 5096
SYS_SYSINFO = 5097 SYS_SYSINFO = 5097
SYS_TIMES = 5098 SYS_TIMES = 5098
SYS_PTRACE = 5099 SYS_PTRACE = 5099
SYS_GETUID = 5100 SYS_GETUID = 5100
SYS_SYSLOG = 5101 SYS_SYSLOG = 5101
SYS_GETGID = 5102 SYS_GETGID = 5102
SYS_SETUID = 5103 SYS_SETUID = 5103
SYS_SETGID = 5104 SYS_SETGID = 5104
SYS_GETEUID = 5105 SYS_GETEUID = 5105
SYS_GETEGID = 5106 SYS_GETEGID = 5106
SYS_SETPGID = 5107 SYS_SETPGID = 5107
SYS_GETPPID = 5108 SYS_GETPPID = 5108
SYS_GETPGRP = 5109 SYS_GETPGRP = 5109
SYS_SETSID = 5110 SYS_SETSID = 5110
SYS_SETREUID = 5111 SYS_SETREUID = 5111
SYS_SETREGID = 5112 SYS_SETREGID = 5112
SYS_GETGROUPS = 5113 SYS_GETGROUPS = 5113
SYS_SETGROUPS = 5114 SYS_SETGROUPS = 5114
SYS_SETRESUID = 5115 SYS_SETRESUID = 5115
SYS_GETRESUID = 5116 SYS_GETRESUID = 5116
SYS_SETRESGID = 5117 SYS_SETRESGID = 5117
SYS_GETRESGID = 5118 SYS_GETRESGID = 5118
SYS_GETPGID = 5119 SYS_GETPGID = 5119
SYS_SETFSUID = 5120 SYS_SETFSUID = 5120
SYS_SETFSGID = 5121 SYS_SETFSGID = 5121
SYS_GETSID = 5122 SYS_GETSID = 5122
SYS_CAPGET = 5123 SYS_CAPGET = 5123
SYS_CAPSET = 5124 SYS_CAPSET = 5124
SYS_RT_SIGPENDING = 5125 SYS_RT_SIGPENDING = 5125
SYS_RT_SIGTIMEDWAIT = 5126 SYS_RT_SIGTIMEDWAIT = 5126
SYS_RT_SIGQUEUEINFO = 5127 SYS_RT_SIGQUEUEINFO = 5127
SYS_RT_SIGSUSPEND = 5128 SYS_RT_SIGSUSPEND = 5128
SYS_SIGALTSTACK = 5129 SYS_SIGALTSTACK = 5129
SYS_UTIME = 5130 SYS_UTIME = 5130
SYS_MKNOD = 5131 SYS_MKNOD = 5131
SYS_PERSONALITY = 5132 SYS_PERSONALITY = 5132
SYS_USTAT = 5133 SYS_USTAT = 5133
SYS_STATFS = 5134 SYS_STATFS = 5134
SYS_FSTATFS = 5135 SYS_FSTATFS = 5135
SYS_SYSFS = 5136 SYS_SYSFS = 5136
SYS_GETPRIORITY = 5137 SYS_GETPRIORITY = 5137
SYS_SETPRIORITY = 5138 SYS_SETPRIORITY = 5138
SYS_SCHED_SETPARAM = 5139 SYS_SCHED_SETPARAM = 5139
SYS_SCHED_GETPARAM = 5140 SYS_SCHED_GETPARAM = 5140
SYS_SCHED_SETSCHEDULER = 5141 SYS_SCHED_SETSCHEDULER = 5141
SYS_SCHED_GETSCHEDULER = 5142 SYS_SCHED_GETSCHEDULER = 5142
SYS_SCHED_GET_PRIORITY_MAX = 5143 SYS_SCHED_GET_PRIORITY_MAX = 5143
SYS_SCHED_GET_PRIORITY_MIN = 5144 SYS_SCHED_GET_PRIORITY_MIN = 5144
SYS_SCHED_RR_GET_INTERVAL = 5145 SYS_SCHED_RR_GET_INTERVAL = 5145
SYS_MLOCK = 5146 SYS_MLOCK = 5146
SYS_MUNLOCK = 5147 SYS_MUNLOCK = 5147
SYS_MLOCKALL = 5148 SYS_MLOCKALL = 5148
SYS_MUNLOCKALL = 5149 SYS_MUNLOCKALL = 5149
SYS_VHANGUP = 5150 SYS_VHANGUP = 5150
SYS_PIVOT_ROOT = 5151 SYS_PIVOT_ROOT = 5151
SYS__SYSCTL = 5152 SYS__SYSCTL = 5152
SYS_PRCTL = 5153 SYS_PRCTL = 5153
SYS_ADJTIMEX = 5154 SYS_ADJTIMEX = 5154
SYS_SETRLIMIT = 5155 SYS_SETRLIMIT = 5155
SYS_CHROOT = 5156 SYS_CHROOT = 5156
SYS_SYNC = 5157 SYS_SYNC = 5157
SYS_ACCT = 5158 SYS_ACCT = 5158
SYS_SETTIMEOFDAY = 5159 SYS_SETTIMEOFDAY = 5159
SYS_MOUNT = 5160 SYS_MOUNT = 5160
SYS_UMOUNT2 = 5161 SYS_UMOUNT2 = 5161
SYS_SWAPON = 5162 SYS_SWAPON = 5162
SYS_SWAPOFF = 5163 SYS_SWAPOFF = 5163
SYS_REBOOT = 5164 SYS_REBOOT = 5164
SYS_SETHOSTNAME = 5165 SYS_SETHOSTNAME = 5165
SYS_SETDOMAINNAME = 5166 SYS_SETDOMAINNAME = 5166
SYS_CREATE_MODULE = 5167 SYS_CREATE_MODULE = 5167
SYS_INIT_MODULE = 5168 SYS_INIT_MODULE = 5168
SYS_DELETE_MODULE = 5169 SYS_DELETE_MODULE = 5169
SYS_GET_KERNEL_SYMS = 5170 SYS_GET_KERNEL_SYMS = 5170
SYS_QUERY_MODULE = 5171 SYS_QUERY_MODULE = 5171
SYS_QUOTACTL = 5172 SYS_QUOTACTL = 5172
SYS_NFSSERVCTL = 5173 SYS_NFSSERVCTL = 5173
SYS_GETPMSG = 5174 SYS_GETPMSG = 5174
SYS_PUTPMSG = 5175 SYS_PUTPMSG = 5175
SYS_AFS_SYSCALL = 5176 SYS_AFS_SYSCALL = 5176
SYS_RESERVED177 = 5177 SYS_RESERVED177 = 5177
SYS_GETTID = 5178 SYS_GETTID = 5178
SYS_READAHEAD = 5179 SYS_READAHEAD = 5179
SYS_SETXATTR = 5180 SYS_SETXATTR = 5180
SYS_LSETXATTR = 5181 SYS_LSETXATTR = 5181
SYS_FSETXATTR = 5182 SYS_FSETXATTR = 5182
SYS_GETXATTR = 5183 SYS_GETXATTR = 5183
SYS_LGETXATTR = 5184 SYS_LGETXATTR = 5184
SYS_FGETXATTR = 5185 SYS_FGETXATTR = 5185
SYS_LISTXATTR = 5186 SYS_LISTXATTR = 5186
SYS_LLISTXATTR = 5187 SYS_LLISTXATTR = 5187
SYS_FLISTXATTR = 5188 SYS_FLISTXATTR = 5188
SYS_REMOVEXATTR = 5189 SYS_REMOVEXATTR = 5189
SYS_LREMOVEXATTR = 5190 SYS_LREMOVEXATTR = 5190
SYS_FREMOVEXATTR = 5191 SYS_FREMOVEXATTR = 5191
SYS_TKILL = 5192 SYS_TKILL = 5192
SYS_RESERVED193 = 5193 SYS_RESERVED193 = 5193
SYS_FUTEX = 5194 SYS_FUTEX = 5194
SYS_SCHED_SETAFFINITY = 5195 SYS_SCHED_SETAFFINITY = 5195
SYS_SCHED_GETAFFINITY = 5196 SYS_SCHED_GETAFFINITY = 5196
SYS_CACHEFLUSH = 5197 SYS_CACHEFLUSH = 5197
SYS_CACHECTL = 5198 SYS_CACHECTL = 5198
SYS_SYSMIPS = 5199 SYS_SYSMIPS = 5199
SYS_IO_SETUP = 5200 SYS_IO_SETUP = 5200
SYS_IO_DESTROY = 5201 SYS_IO_DESTROY = 5201
SYS_IO_GETEVENTS = 5202 SYS_IO_GETEVENTS = 5202
SYS_IO_SUBMIT = 5203 SYS_IO_SUBMIT = 5203
SYS_IO_CANCEL = 5204 SYS_IO_CANCEL = 5204
SYS_EXIT_GROUP = 5205 SYS_EXIT_GROUP = 5205
SYS_LOOKUP_DCOOKIE = 5206 SYS_LOOKUP_DCOOKIE = 5206
SYS_EPOLL_CREATE = 5207 SYS_EPOLL_CREATE = 5207
SYS_EPOLL_CTL = 5208 SYS_EPOLL_CTL = 5208
SYS_EPOLL_WAIT = 5209 SYS_EPOLL_WAIT = 5209
SYS_REMAP_FILE_PAGES = 5210 SYS_REMAP_FILE_PAGES = 5210
SYS_RT_SIGRETURN = 5211 SYS_RT_SIGRETURN = 5211
SYS_SET_TID_ADDRESS = 5212 SYS_SET_TID_ADDRESS = 5212
SYS_RESTART_SYSCALL = 5213 SYS_RESTART_SYSCALL = 5213
SYS_SEMTIMEDOP = 5214 SYS_SEMTIMEDOP = 5214
SYS_FADVISE64 = 5215 SYS_FADVISE64 = 5215
SYS_TIMER_CREATE = 5216 SYS_TIMER_CREATE = 5216
SYS_TIMER_SETTIME = 5217 SYS_TIMER_SETTIME = 5217
SYS_TIMER_GETTIME = 5218 SYS_TIMER_GETTIME = 5218
SYS_TIMER_GETOVERRUN = 5219 SYS_TIMER_GETOVERRUN = 5219
SYS_TIMER_DELETE = 5220 SYS_TIMER_DELETE = 5220
SYS_CLOCK_SETTIME = 5221 SYS_CLOCK_SETTIME = 5221
SYS_CLOCK_GETTIME = 5222 SYS_CLOCK_GETTIME = 5222
SYS_CLOCK_GETRES = 5223 SYS_CLOCK_GETRES = 5223
SYS_CLOCK_NANOSLEEP = 5224 SYS_CLOCK_NANOSLEEP = 5224
SYS_TGKILL = 5225 SYS_TGKILL = 5225
SYS_UTIMES = 5226 SYS_UTIMES = 5226
SYS_MBIND = 5227 SYS_MBIND = 5227
SYS_GET_MEMPOLICY = 5228 SYS_GET_MEMPOLICY = 5228
SYS_SET_MEMPOLICY = 5229 SYS_SET_MEMPOLICY = 5229
SYS_MQ_OPEN = 5230 SYS_MQ_OPEN = 5230
SYS_MQ_UNLINK = 5231 SYS_MQ_UNLINK = 5231
SYS_MQ_TIMEDSEND = 5232 SYS_MQ_TIMEDSEND = 5232
SYS_MQ_TIMEDRECEIVE = 5233 SYS_MQ_TIMEDRECEIVE = 5233
SYS_MQ_NOTIFY = 5234 SYS_MQ_NOTIFY = 5234
SYS_MQ_GETSETATTR = 5235 SYS_MQ_GETSETATTR = 5235
SYS_VSERVER = 5236 SYS_VSERVER = 5236
SYS_WAITID = 5237 SYS_WAITID = 5237
SYS_ADD_KEY = 5239 SYS_ADD_KEY = 5239
SYS_REQUEST_KEY = 5240 SYS_REQUEST_KEY = 5240
SYS_KEYCTL = 5241 SYS_KEYCTL = 5241
SYS_SET_THREAD_AREA = 5242 SYS_SET_THREAD_AREA = 5242
SYS_INOTIFY_INIT = 5243 SYS_INOTIFY_INIT = 5243
SYS_INOTIFY_ADD_WATCH = 5244 SYS_INOTIFY_ADD_WATCH = 5244
SYS_INOTIFY_RM_WATCH = 5245 SYS_INOTIFY_RM_WATCH = 5245
SYS_MIGRATE_PAGES = 5246 SYS_MIGRATE_PAGES = 5246
SYS_OPENAT = 5247 SYS_OPENAT = 5247
SYS_MKDIRAT = 5248 SYS_MKDIRAT = 5248
SYS_MKNODAT = 5249 SYS_MKNODAT = 5249
SYS_FCHOWNAT = 5250 SYS_FCHOWNAT = 5250
SYS_FUTIMESAT = 5251 SYS_FUTIMESAT = 5251
SYS_NEWFSTATAT = 5252 SYS_NEWFSTATAT = 5252
SYS_UNLINKAT = 5253 SYS_UNLINKAT = 5253
SYS_RENAMEAT = 5254 SYS_RENAMEAT = 5254
SYS_LINKAT = 5255 SYS_LINKAT = 5255
SYS_SYMLINKAT = 5256 SYS_SYMLINKAT = 5256
SYS_READLINKAT = 5257 SYS_READLINKAT = 5257
SYS_FCHMODAT = 5258 SYS_FCHMODAT = 5258
SYS_FACCESSAT = 5259 SYS_FACCESSAT = 5259
SYS_PSELECT6 = 5260 SYS_PSELECT6 = 5260
SYS_PPOLL = 5261 SYS_PPOLL = 5261
SYS_UNSHARE = 5262 SYS_UNSHARE = 5262
SYS_SPLICE = 5263 SYS_SPLICE = 5263
SYS_SYNC_FILE_RANGE = 5264 SYS_SYNC_FILE_RANGE = 5264
SYS_TEE = 5265 SYS_TEE = 5265
SYS_VMSPLICE = 5266 SYS_VMSPLICE = 5266
SYS_MOVE_PAGES = 5267 SYS_MOVE_PAGES = 5267
SYS_SET_ROBUST_LIST = 5268 SYS_SET_ROBUST_LIST = 5268
SYS_GET_ROBUST_LIST = 5269 SYS_GET_ROBUST_LIST = 5269
SYS_KEXEC_LOAD = 5270 SYS_KEXEC_LOAD = 5270
SYS_GETCPU = 5271 SYS_GETCPU = 5271
SYS_EPOLL_PWAIT = 5272 SYS_EPOLL_PWAIT = 5272
SYS_IOPRIO_SET = 5273 SYS_IOPRIO_SET = 5273
SYS_IOPRIO_GET = 5274 SYS_IOPRIO_GET = 5274
SYS_UTIMENSAT = 5275 SYS_UTIMENSAT = 5275
SYS_SIGNALFD = 5276 SYS_SIGNALFD = 5276
SYS_TIMERFD = 5277 SYS_TIMERFD = 5277
SYS_EVENTFD = 5278 SYS_EVENTFD = 5278
SYS_FALLOCATE = 5279 SYS_FALLOCATE = 5279
SYS_TIMERFD_CREATE = 5280 SYS_TIMERFD_CREATE = 5280
SYS_TIMERFD_GETTIME = 5281 SYS_TIMERFD_GETTIME = 5281
SYS_TIMERFD_SETTIME = 5282 SYS_TIMERFD_SETTIME = 5282
SYS_SIGNALFD4 = 5283 SYS_SIGNALFD4 = 5283
SYS_EVENTFD2 = 5284 SYS_EVENTFD2 = 5284
SYS_EPOLL_CREATE1 = 5285 SYS_EPOLL_CREATE1 = 5285
SYS_DUP3 = 5286 SYS_DUP3 = 5286
SYS_PIPE2 = 5287 SYS_PIPE2 = 5287
SYS_INOTIFY_INIT1 = 5288 SYS_INOTIFY_INIT1 = 5288
SYS_PREADV = 5289 SYS_PREADV = 5289
SYS_PWRITEV = 5290 SYS_PWRITEV = 5290
SYS_RT_TGSIGQUEUEINFO = 5291 SYS_RT_TGSIGQUEUEINFO = 5291
SYS_PERF_EVENT_OPEN = 5292 SYS_PERF_EVENT_OPEN = 5292
SYS_ACCEPT4 = 5293 SYS_ACCEPT4 = 5293
SYS_RECVMMSG = 5294 SYS_RECVMMSG = 5294
SYS_FANOTIFY_INIT = 5295 SYS_FANOTIFY_INIT = 5295
SYS_FANOTIFY_MARK = 5296 SYS_FANOTIFY_MARK = 5296
SYS_PRLIMIT64 = 5297 SYS_PRLIMIT64 = 5297
SYS_NAME_TO_HANDLE_AT = 5298 SYS_NAME_TO_HANDLE_AT = 5298
SYS_OPEN_BY_HANDLE_AT = 5299 SYS_OPEN_BY_HANDLE_AT = 5299
SYS_CLOCK_ADJTIME = 5300 SYS_CLOCK_ADJTIME = 5300
SYS_SYNCFS = 5301 SYS_SYNCFS = 5301
SYS_SENDMMSG = 5302 SYS_SENDMMSG = 5302
SYS_SETNS = 5303 SYS_SETNS = 5303
SYS_PROCESS_VM_READV = 5304 SYS_PROCESS_VM_READV = 5304
SYS_PROCESS_VM_WRITEV = 5305 SYS_PROCESS_VM_WRITEV = 5305
SYS_KCMP = 5306 SYS_KCMP = 5306
SYS_FINIT_MODULE = 5307 SYS_FINIT_MODULE = 5307
SYS_GETDENTS64 = 5308 SYS_GETDENTS64 = 5308
SYS_SCHED_SETATTR = 5309 SYS_SCHED_SETATTR = 5309
SYS_SCHED_GETATTR = 5310 SYS_SCHED_GETATTR = 5310
SYS_RENAMEAT2 = 5311 SYS_RENAMEAT2 = 5311
SYS_SECCOMP = 5312 SYS_SECCOMP = 5312
SYS_GETRANDOM = 5313 SYS_GETRANDOM = 5313
SYS_MEMFD_CREATE = 5314 SYS_MEMFD_CREATE = 5314
SYS_BPF = 5315 SYS_BPF = 5315
SYS_EXECVEAT = 5316 SYS_EXECVEAT = 5316
SYS_USERFAULTFD = 5317 SYS_USERFAULTFD = 5317
SYS_MEMBARRIER = 5318 SYS_MEMBARRIER = 5318
SYS_MLOCK2 = 5319 SYS_MLOCK2 = 5319
SYS_COPY_FILE_RANGE = 5320 SYS_COPY_FILE_RANGE = 5320
SYS_PREADV2 = 5321 SYS_PREADV2 = 5321
SYS_PWRITEV2 = 5322 SYS_PWRITEV2 = 5322
SYS_PKEY_MPROTECT = 5323 SYS_PKEY_MPROTECT = 5323
SYS_PKEY_ALLOC = 5324 SYS_PKEY_ALLOC = 5324
SYS_PKEY_FREE = 5325 SYS_PKEY_FREE = 5325
SYS_STATX = 5326 SYS_STATX = 5326
SYS_RSEQ = 5327 SYS_RSEQ = 5327
SYS_IO_PGETEVENTS = 5328 SYS_IO_PGETEVENTS = 5328
SYS_PIDFD_SEND_SIGNAL = 5424 SYS_PIDFD_SEND_SIGNAL = 5424
SYS_IO_URING_SETUP = 5425 SYS_IO_URING_SETUP = 5425
SYS_IO_URING_ENTER = 5426 SYS_IO_URING_ENTER = 5426
SYS_IO_URING_REGISTER = 5427 SYS_IO_URING_REGISTER = 5427
SYS_OPEN_TREE = 5428 SYS_OPEN_TREE = 5428
SYS_MOVE_MOUNT = 5429 SYS_MOVE_MOUNT = 5429
SYS_FSOPEN = 5430 SYS_FSOPEN = 5430
SYS_FSCONFIG = 5431 SYS_FSCONFIG = 5431
SYS_FSMOUNT = 5432 SYS_FSMOUNT = 5432
SYS_FSPICK = 5433 SYS_FSPICK = 5433
SYS_PIDFD_OPEN = 5434 SYS_PIDFD_OPEN = 5434
SYS_CLONE3 = 5435 SYS_CLONE3 = 5435
SYS_CLOSE_RANGE = 5436 SYS_CLOSE_RANGE = 5436
SYS_OPENAT2 = 5437 SYS_OPENAT2 = 5437
SYS_PIDFD_GETFD = 5438 SYS_PIDFD_GETFD = 5438
SYS_FACCESSAT2 = 5439 SYS_FACCESSAT2 = 5439
SYS_PROCESS_MADVISE = 5440 SYS_PROCESS_MADVISE = 5440
SYS_EPOLL_PWAIT2 = 5441 SYS_EPOLL_PWAIT2 = 5441
SYS_MOUNT_SETATTR = 5442 SYS_MOUNT_SETATTR = 5442
SYS_QUOTACTL_FD = 5443
SYS_LANDLOCK_CREATE_RULESET = 5444
SYS_LANDLOCK_ADD_RULE = 5445
SYS_LANDLOCK_RESTRICT_SELF = 5446
) )

View File

@ -424,4 +424,8 @@ const (
SYS_PROCESS_MADVISE = 4440 SYS_PROCESS_MADVISE = 4440
SYS_EPOLL_PWAIT2 = 4441 SYS_EPOLL_PWAIT2 = 4441
SYS_MOUNT_SETATTR = 4442 SYS_MOUNT_SETATTR = 4442
SYS_QUOTACTL_FD = 4443
SYS_LANDLOCK_CREATE_RULESET = 4444
SYS_LANDLOCK_ADD_RULE = 4445
SYS_LANDLOCK_RESTRICT_SELF = 4446
) )

View File

@ -431,4 +431,8 @@ const (
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_QUOTACTL_FD = 443
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View File

@ -7,400 +7,404 @@
package unix package unix
const ( const (
SYS_RESTART_SYSCALL = 0 SYS_RESTART_SYSCALL = 0
SYS_EXIT = 1 SYS_EXIT = 1
SYS_FORK = 2 SYS_FORK = 2
SYS_READ = 3 SYS_READ = 3
SYS_WRITE = 4 SYS_WRITE = 4
SYS_OPEN = 5 SYS_OPEN = 5
SYS_CLOSE = 6 SYS_CLOSE = 6
SYS_WAITPID = 7 SYS_WAITPID = 7
SYS_CREAT = 8 SYS_CREAT = 8
SYS_LINK = 9 SYS_LINK = 9
SYS_UNLINK = 10 SYS_UNLINK = 10
SYS_EXECVE = 11 SYS_EXECVE = 11
SYS_CHDIR = 12 SYS_CHDIR = 12
SYS_TIME = 13 SYS_TIME = 13
SYS_MKNOD = 14 SYS_MKNOD = 14
SYS_CHMOD = 15 SYS_CHMOD = 15
SYS_LCHOWN = 16 SYS_LCHOWN = 16
SYS_BREAK = 17 SYS_BREAK = 17
SYS_OLDSTAT = 18 SYS_OLDSTAT = 18
SYS_LSEEK = 19 SYS_LSEEK = 19
SYS_GETPID = 20 SYS_GETPID = 20
SYS_MOUNT = 21 SYS_MOUNT = 21
SYS_UMOUNT = 22 SYS_UMOUNT = 22
SYS_SETUID = 23 SYS_SETUID = 23
SYS_GETUID = 24 SYS_GETUID = 24
SYS_STIME = 25 SYS_STIME = 25
SYS_PTRACE = 26 SYS_PTRACE = 26
SYS_ALARM = 27 SYS_ALARM = 27
SYS_OLDFSTAT = 28 SYS_OLDFSTAT = 28
SYS_PAUSE = 29 SYS_PAUSE = 29
SYS_UTIME = 30 SYS_UTIME = 30
SYS_STTY = 31 SYS_STTY = 31
SYS_GTTY = 32 SYS_GTTY = 32
SYS_ACCESS = 33 SYS_ACCESS = 33
SYS_NICE = 34 SYS_NICE = 34
SYS_FTIME = 35 SYS_FTIME = 35
SYS_SYNC = 36 SYS_SYNC = 36
SYS_KILL = 37 SYS_KILL = 37
SYS_RENAME = 38 SYS_RENAME = 38
SYS_MKDIR = 39 SYS_MKDIR = 39
SYS_RMDIR = 40 SYS_RMDIR = 40
SYS_DUP = 41 SYS_DUP = 41
SYS_PIPE = 42 SYS_PIPE = 42
SYS_TIMES = 43 SYS_TIMES = 43
SYS_PROF = 44 SYS_PROF = 44
SYS_BRK = 45 SYS_BRK = 45
SYS_SETGID = 46 SYS_SETGID = 46
SYS_GETGID = 47 SYS_GETGID = 47
SYS_SIGNAL = 48 SYS_SIGNAL = 48
SYS_GETEUID = 49 SYS_GETEUID = 49
SYS_GETEGID = 50 SYS_GETEGID = 50
SYS_ACCT = 51 SYS_ACCT = 51
SYS_UMOUNT2 = 52 SYS_UMOUNT2 = 52
SYS_LOCK = 53 SYS_LOCK = 53
SYS_IOCTL = 54 SYS_IOCTL = 54
SYS_FCNTL = 55 SYS_FCNTL = 55
SYS_MPX = 56 SYS_MPX = 56
SYS_SETPGID = 57 SYS_SETPGID = 57
SYS_ULIMIT = 58 SYS_ULIMIT = 58
SYS_OLDOLDUNAME = 59 SYS_OLDOLDUNAME = 59
SYS_UMASK = 60 SYS_UMASK = 60
SYS_CHROOT = 61 SYS_CHROOT = 61
SYS_USTAT = 62 SYS_USTAT = 62
SYS_DUP2 = 63 SYS_DUP2 = 63
SYS_GETPPID = 64 SYS_GETPPID = 64
SYS_GETPGRP = 65 SYS_GETPGRP = 65
SYS_SETSID = 66 SYS_SETSID = 66
SYS_SIGACTION = 67 SYS_SIGACTION = 67
SYS_SGETMASK = 68 SYS_SGETMASK = 68
SYS_SSETMASK = 69 SYS_SSETMASK = 69
SYS_SETREUID = 70 SYS_SETREUID = 70
SYS_SETREGID = 71 SYS_SETREGID = 71
SYS_SIGSUSPEND = 72 SYS_SIGSUSPEND = 72
SYS_SIGPENDING = 73 SYS_SIGPENDING = 73
SYS_SETHOSTNAME = 74 SYS_SETHOSTNAME = 74
SYS_SETRLIMIT = 75 SYS_SETRLIMIT = 75
SYS_GETRLIMIT = 76 SYS_GETRLIMIT = 76
SYS_GETRUSAGE = 77 SYS_GETRUSAGE = 77
SYS_GETTIMEOFDAY = 78 SYS_GETTIMEOFDAY = 78
SYS_SETTIMEOFDAY = 79 SYS_SETTIMEOFDAY = 79
SYS_GETGROUPS = 80 SYS_GETGROUPS = 80
SYS_SETGROUPS = 81 SYS_SETGROUPS = 81
SYS_SELECT = 82 SYS_SELECT = 82
SYS_SYMLINK = 83 SYS_SYMLINK = 83
SYS_OLDLSTAT = 84 SYS_OLDLSTAT = 84
SYS_READLINK = 85 SYS_READLINK = 85
SYS_USELIB = 86 SYS_USELIB = 86
SYS_SWAPON = 87 SYS_SWAPON = 87
SYS_REBOOT = 88 SYS_REBOOT = 88
SYS_READDIR = 89 SYS_READDIR = 89
SYS_MMAP = 90 SYS_MMAP = 90
SYS_MUNMAP = 91 SYS_MUNMAP = 91
SYS_TRUNCATE = 92 SYS_TRUNCATE = 92
SYS_FTRUNCATE = 93 SYS_FTRUNCATE = 93
SYS_FCHMOD = 94 SYS_FCHMOD = 94
SYS_FCHOWN = 95 SYS_FCHOWN = 95
SYS_GETPRIORITY = 96 SYS_GETPRIORITY = 96
SYS_SETPRIORITY = 97 SYS_SETPRIORITY = 97
SYS_PROFIL = 98 SYS_PROFIL = 98
SYS_STATFS = 99 SYS_STATFS = 99
SYS_FSTATFS = 100 SYS_FSTATFS = 100
SYS_IOPERM = 101 SYS_IOPERM = 101
SYS_SOCKETCALL = 102 SYS_SOCKETCALL = 102
SYS_SYSLOG = 103 SYS_SYSLOG = 103
SYS_SETITIMER = 104 SYS_SETITIMER = 104
SYS_GETITIMER = 105 SYS_GETITIMER = 105
SYS_STAT = 106 SYS_STAT = 106
SYS_LSTAT = 107 SYS_LSTAT = 107
SYS_FSTAT = 108 SYS_FSTAT = 108
SYS_OLDUNAME = 109 SYS_OLDUNAME = 109
SYS_IOPL = 110 SYS_IOPL = 110
SYS_VHANGUP = 111 SYS_VHANGUP = 111
SYS_IDLE = 112 SYS_IDLE = 112
SYS_VM86 = 113 SYS_VM86 = 113
SYS_WAIT4 = 114 SYS_WAIT4 = 114
SYS_SWAPOFF = 115 SYS_SWAPOFF = 115
SYS_SYSINFO = 116 SYS_SYSINFO = 116
SYS_IPC = 117 SYS_IPC = 117
SYS_FSYNC = 118 SYS_FSYNC = 118
SYS_SIGRETURN = 119 SYS_SIGRETURN = 119
SYS_CLONE = 120 SYS_CLONE = 120
SYS_SETDOMAINNAME = 121 SYS_SETDOMAINNAME = 121
SYS_UNAME = 122 SYS_UNAME = 122
SYS_MODIFY_LDT = 123 SYS_MODIFY_LDT = 123
SYS_ADJTIMEX = 124 SYS_ADJTIMEX = 124
SYS_MPROTECT = 125 SYS_MPROTECT = 125
SYS_SIGPROCMASK = 126 SYS_SIGPROCMASK = 126
SYS_CREATE_MODULE = 127 SYS_CREATE_MODULE = 127
SYS_INIT_MODULE = 128 SYS_INIT_MODULE = 128
SYS_DELETE_MODULE = 129 SYS_DELETE_MODULE = 129
SYS_GET_KERNEL_SYMS = 130 SYS_GET_KERNEL_SYMS = 130
SYS_QUOTACTL = 131 SYS_QUOTACTL = 131
SYS_GETPGID = 132 SYS_GETPGID = 132
SYS_FCHDIR = 133 SYS_FCHDIR = 133
SYS_BDFLUSH = 134 SYS_BDFLUSH = 134
SYS_SYSFS = 135 SYS_SYSFS = 135
SYS_PERSONALITY = 136 SYS_PERSONALITY = 136
SYS_AFS_SYSCALL = 137 SYS_AFS_SYSCALL = 137
SYS_SETFSUID = 138 SYS_SETFSUID = 138
SYS_SETFSGID = 139 SYS_SETFSGID = 139
SYS__LLSEEK = 140 SYS__LLSEEK = 140
SYS_GETDENTS = 141 SYS_GETDENTS = 141
SYS__NEWSELECT = 142 SYS__NEWSELECT = 142
SYS_FLOCK = 143 SYS_FLOCK = 143
SYS_MSYNC = 144 SYS_MSYNC = 144
SYS_READV = 145 SYS_READV = 145
SYS_WRITEV = 146 SYS_WRITEV = 146
SYS_GETSID = 147 SYS_GETSID = 147
SYS_FDATASYNC = 148 SYS_FDATASYNC = 148
SYS__SYSCTL = 149 SYS__SYSCTL = 149
SYS_MLOCK = 150 SYS_MLOCK = 150
SYS_MUNLOCK = 151 SYS_MUNLOCK = 151
SYS_MLOCKALL = 152 SYS_MLOCKALL = 152
SYS_MUNLOCKALL = 153 SYS_MUNLOCKALL = 153
SYS_SCHED_SETPARAM = 154 SYS_SCHED_SETPARAM = 154
SYS_SCHED_GETPARAM = 155 SYS_SCHED_GETPARAM = 155
SYS_SCHED_SETSCHEDULER = 156 SYS_SCHED_SETSCHEDULER = 156
SYS_SCHED_GETSCHEDULER = 157 SYS_SCHED_GETSCHEDULER = 157
SYS_SCHED_YIELD = 158 SYS_SCHED_YIELD = 158
SYS_SCHED_GET_PRIORITY_MAX = 159 SYS_SCHED_GET_PRIORITY_MAX = 159
SYS_SCHED_GET_PRIORITY_MIN = 160 SYS_SCHED_GET_PRIORITY_MIN = 160
SYS_SCHED_RR_GET_INTERVAL = 161 SYS_SCHED_RR_GET_INTERVAL = 161
SYS_NANOSLEEP = 162 SYS_NANOSLEEP = 162
SYS_MREMAP = 163 SYS_MREMAP = 163
SYS_SETRESUID = 164 SYS_SETRESUID = 164
SYS_GETRESUID = 165 SYS_GETRESUID = 165
SYS_QUERY_MODULE = 166 SYS_QUERY_MODULE = 166
SYS_POLL = 167 SYS_POLL = 167
SYS_NFSSERVCTL = 168 SYS_NFSSERVCTL = 168
SYS_SETRESGID = 169 SYS_SETRESGID = 169
SYS_GETRESGID = 170 SYS_GETRESGID = 170
SYS_PRCTL = 171 SYS_PRCTL = 171
SYS_RT_SIGRETURN = 172 SYS_RT_SIGRETURN = 172
SYS_RT_SIGACTION = 173 SYS_RT_SIGACTION = 173
SYS_RT_SIGPROCMASK = 174 SYS_RT_SIGPROCMASK = 174
SYS_RT_SIGPENDING = 175 SYS_RT_SIGPENDING = 175
SYS_RT_SIGTIMEDWAIT = 176 SYS_RT_SIGTIMEDWAIT = 176
SYS_RT_SIGQUEUEINFO = 177 SYS_RT_SIGQUEUEINFO = 177
SYS_RT_SIGSUSPEND = 178 SYS_RT_SIGSUSPEND = 178
SYS_PREAD64 = 179 SYS_PREAD64 = 179
SYS_PWRITE64 = 180 SYS_PWRITE64 = 180
SYS_CHOWN = 181 SYS_CHOWN = 181
SYS_GETCWD = 182 SYS_GETCWD = 182
SYS_CAPGET = 183 SYS_CAPGET = 183
SYS_CAPSET = 184 SYS_CAPSET = 184
SYS_SIGALTSTACK = 185 SYS_SIGALTSTACK = 185
SYS_SENDFILE = 186 SYS_SENDFILE = 186
SYS_GETPMSG = 187 SYS_GETPMSG = 187
SYS_PUTPMSG = 188 SYS_PUTPMSG = 188
SYS_VFORK = 189 SYS_VFORK = 189
SYS_UGETRLIMIT = 190 SYS_UGETRLIMIT = 190
SYS_READAHEAD = 191 SYS_READAHEAD = 191
SYS_PCICONFIG_READ = 198 SYS_PCICONFIG_READ = 198
SYS_PCICONFIG_WRITE = 199 SYS_PCICONFIG_WRITE = 199
SYS_PCICONFIG_IOBASE = 200 SYS_PCICONFIG_IOBASE = 200
SYS_MULTIPLEXER = 201 SYS_MULTIPLEXER = 201
SYS_GETDENTS64 = 202 SYS_GETDENTS64 = 202
SYS_PIVOT_ROOT = 203 SYS_PIVOT_ROOT = 203
SYS_MADVISE = 205 SYS_MADVISE = 205
SYS_MINCORE = 206 SYS_MINCORE = 206
SYS_GETTID = 207 SYS_GETTID = 207
SYS_TKILL = 208 SYS_TKILL = 208
SYS_SETXATTR = 209 SYS_SETXATTR = 209
SYS_LSETXATTR = 210 SYS_LSETXATTR = 210
SYS_FSETXATTR = 211 SYS_FSETXATTR = 211
SYS_GETXATTR = 212 SYS_GETXATTR = 212
SYS_LGETXATTR = 213 SYS_LGETXATTR = 213
SYS_FGETXATTR = 214 SYS_FGETXATTR = 214
SYS_LISTXATTR = 215 SYS_LISTXATTR = 215
SYS_LLISTXATTR = 216 SYS_LLISTXATTR = 216
SYS_FLISTXATTR = 217 SYS_FLISTXATTR = 217
SYS_REMOVEXATTR = 218 SYS_REMOVEXATTR = 218
SYS_LREMOVEXATTR = 219 SYS_LREMOVEXATTR = 219
SYS_FREMOVEXATTR = 220 SYS_FREMOVEXATTR = 220
SYS_FUTEX = 221 SYS_FUTEX = 221
SYS_SCHED_SETAFFINITY = 222 SYS_SCHED_SETAFFINITY = 222
SYS_SCHED_GETAFFINITY = 223 SYS_SCHED_GETAFFINITY = 223
SYS_TUXCALL = 225 SYS_TUXCALL = 225
SYS_IO_SETUP = 227 SYS_IO_SETUP = 227
SYS_IO_DESTROY = 228 SYS_IO_DESTROY = 228
SYS_IO_GETEVENTS = 229 SYS_IO_GETEVENTS = 229
SYS_IO_SUBMIT = 230 SYS_IO_SUBMIT = 230
SYS_IO_CANCEL = 231 SYS_IO_CANCEL = 231
SYS_SET_TID_ADDRESS = 232 SYS_SET_TID_ADDRESS = 232
SYS_FADVISE64 = 233 SYS_FADVISE64 = 233
SYS_EXIT_GROUP = 234 SYS_EXIT_GROUP = 234
SYS_LOOKUP_DCOOKIE = 235 SYS_LOOKUP_DCOOKIE = 235
SYS_EPOLL_CREATE = 236 SYS_EPOLL_CREATE = 236
SYS_EPOLL_CTL = 237 SYS_EPOLL_CTL = 237
SYS_EPOLL_WAIT = 238 SYS_EPOLL_WAIT = 238
SYS_REMAP_FILE_PAGES = 239 SYS_REMAP_FILE_PAGES = 239
SYS_TIMER_CREATE = 240 SYS_TIMER_CREATE = 240
SYS_TIMER_SETTIME = 241 SYS_TIMER_SETTIME = 241
SYS_TIMER_GETTIME = 242 SYS_TIMER_GETTIME = 242
SYS_TIMER_GETOVERRUN = 243 SYS_TIMER_GETOVERRUN = 243
SYS_TIMER_DELETE = 244 SYS_TIMER_DELETE = 244
SYS_CLOCK_SETTIME = 245 SYS_CLOCK_SETTIME = 245
SYS_CLOCK_GETTIME = 246 SYS_CLOCK_GETTIME = 246
SYS_CLOCK_GETRES = 247 SYS_CLOCK_GETRES = 247
SYS_CLOCK_NANOSLEEP = 248 SYS_CLOCK_NANOSLEEP = 248
SYS_SWAPCONTEXT = 249 SYS_SWAPCONTEXT = 249
SYS_TGKILL = 250 SYS_TGKILL = 250
SYS_UTIMES = 251 SYS_UTIMES = 251
SYS_STATFS64 = 252 SYS_STATFS64 = 252
SYS_FSTATFS64 = 253 SYS_FSTATFS64 = 253
SYS_RTAS = 255 SYS_RTAS = 255
SYS_SYS_DEBUG_SETCONTEXT = 256 SYS_SYS_DEBUG_SETCONTEXT = 256
SYS_MIGRATE_PAGES = 258 SYS_MIGRATE_PAGES = 258
SYS_MBIND = 259 SYS_MBIND = 259
SYS_GET_MEMPOLICY = 260 SYS_GET_MEMPOLICY = 260
SYS_SET_MEMPOLICY = 261 SYS_SET_MEMPOLICY = 261
SYS_MQ_OPEN = 262 SYS_MQ_OPEN = 262
SYS_MQ_UNLINK = 263 SYS_MQ_UNLINK = 263
SYS_MQ_TIMEDSEND = 264 SYS_MQ_TIMEDSEND = 264
SYS_MQ_TIMEDRECEIVE = 265 SYS_MQ_TIMEDRECEIVE = 265
SYS_MQ_NOTIFY = 266 SYS_MQ_NOTIFY = 266
SYS_MQ_GETSETATTR = 267 SYS_MQ_GETSETATTR = 267
SYS_KEXEC_LOAD = 268 SYS_KEXEC_LOAD = 268
SYS_ADD_KEY = 269 SYS_ADD_KEY = 269
SYS_REQUEST_KEY = 270 SYS_REQUEST_KEY = 270
SYS_KEYCTL = 271 SYS_KEYCTL = 271
SYS_WAITID = 272 SYS_WAITID = 272
SYS_IOPRIO_SET = 273 SYS_IOPRIO_SET = 273
SYS_IOPRIO_GET = 274 SYS_IOPRIO_GET = 274
SYS_INOTIFY_INIT = 275 SYS_INOTIFY_INIT = 275
SYS_INOTIFY_ADD_WATCH = 276 SYS_INOTIFY_ADD_WATCH = 276
SYS_INOTIFY_RM_WATCH = 277 SYS_INOTIFY_RM_WATCH = 277
SYS_SPU_RUN = 278 SYS_SPU_RUN = 278
SYS_SPU_CREATE = 279 SYS_SPU_CREATE = 279
SYS_PSELECT6 = 280 SYS_PSELECT6 = 280
SYS_PPOLL = 281 SYS_PPOLL = 281
SYS_UNSHARE = 282 SYS_UNSHARE = 282
SYS_SPLICE = 283 SYS_SPLICE = 283
SYS_TEE = 284 SYS_TEE = 284
SYS_VMSPLICE = 285 SYS_VMSPLICE = 285
SYS_OPENAT = 286 SYS_OPENAT = 286
SYS_MKDIRAT = 287 SYS_MKDIRAT = 287
SYS_MKNODAT = 288 SYS_MKNODAT = 288
SYS_FCHOWNAT = 289 SYS_FCHOWNAT = 289
SYS_FUTIMESAT = 290 SYS_FUTIMESAT = 290
SYS_NEWFSTATAT = 291 SYS_NEWFSTATAT = 291
SYS_UNLINKAT = 292 SYS_UNLINKAT = 292
SYS_RENAMEAT = 293 SYS_RENAMEAT = 293
SYS_LINKAT = 294 SYS_LINKAT = 294
SYS_SYMLINKAT = 295 SYS_SYMLINKAT = 295
SYS_READLINKAT = 296 SYS_READLINKAT = 296
SYS_FCHMODAT = 297 SYS_FCHMODAT = 297
SYS_FACCESSAT = 298 SYS_FACCESSAT = 298
SYS_GET_ROBUST_LIST = 299 SYS_GET_ROBUST_LIST = 299
SYS_SET_ROBUST_LIST = 300 SYS_SET_ROBUST_LIST = 300
SYS_MOVE_PAGES = 301 SYS_MOVE_PAGES = 301
SYS_GETCPU = 302 SYS_GETCPU = 302
SYS_EPOLL_PWAIT = 303 SYS_EPOLL_PWAIT = 303
SYS_UTIMENSAT = 304 SYS_UTIMENSAT = 304
SYS_SIGNALFD = 305 SYS_SIGNALFD = 305
SYS_TIMERFD_CREATE = 306 SYS_TIMERFD_CREATE = 306
SYS_EVENTFD = 307 SYS_EVENTFD = 307
SYS_SYNC_FILE_RANGE2 = 308 SYS_SYNC_FILE_RANGE2 = 308
SYS_FALLOCATE = 309 SYS_FALLOCATE = 309
SYS_SUBPAGE_PROT = 310 SYS_SUBPAGE_PROT = 310
SYS_TIMERFD_SETTIME = 311 SYS_TIMERFD_SETTIME = 311
SYS_TIMERFD_GETTIME = 312 SYS_TIMERFD_GETTIME = 312
SYS_SIGNALFD4 = 313 SYS_SIGNALFD4 = 313
SYS_EVENTFD2 = 314 SYS_EVENTFD2 = 314
SYS_EPOLL_CREATE1 = 315 SYS_EPOLL_CREATE1 = 315
SYS_DUP3 = 316 SYS_DUP3 = 316
SYS_PIPE2 = 317 SYS_PIPE2 = 317
SYS_INOTIFY_INIT1 = 318 SYS_INOTIFY_INIT1 = 318
SYS_PERF_EVENT_OPEN = 319 SYS_PERF_EVENT_OPEN = 319
SYS_PREADV = 320 SYS_PREADV = 320
SYS_PWRITEV = 321 SYS_PWRITEV = 321
SYS_RT_TGSIGQUEUEINFO = 322 SYS_RT_TGSIGQUEUEINFO = 322
SYS_FANOTIFY_INIT = 323 SYS_FANOTIFY_INIT = 323
SYS_FANOTIFY_MARK = 324 SYS_FANOTIFY_MARK = 324
SYS_PRLIMIT64 = 325 SYS_PRLIMIT64 = 325
SYS_SOCKET = 326 SYS_SOCKET = 326
SYS_BIND = 327 SYS_BIND = 327
SYS_CONNECT = 328 SYS_CONNECT = 328
SYS_LISTEN = 329 SYS_LISTEN = 329
SYS_ACCEPT = 330 SYS_ACCEPT = 330
SYS_GETSOCKNAME = 331 SYS_GETSOCKNAME = 331
SYS_GETPEERNAME = 332 SYS_GETPEERNAME = 332
SYS_SOCKETPAIR = 333 SYS_SOCKETPAIR = 333
SYS_SEND = 334 SYS_SEND = 334
SYS_SENDTO = 335 SYS_SENDTO = 335
SYS_RECV = 336 SYS_RECV = 336
SYS_RECVFROM = 337 SYS_RECVFROM = 337
SYS_SHUTDOWN = 338 SYS_SHUTDOWN = 338
SYS_SETSOCKOPT = 339 SYS_SETSOCKOPT = 339
SYS_GETSOCKOPT = 340 SYS_GETSOCKOPT = 340
SYS_SENDMSG = 341 SYS_SENDMSG = 341
SYS_RECVMSG = 342 SYS_RECVMSG = 342
SYS_RECVMMSG = 343 SYS_RECVMMSG = 343
SYS_ACCEPT4 = 344 SYS_ACCEPT4 = 344
SYS_NAME_TO_HANDLE_AT = 345 SYS_NAME_TO_HANDLE_AT = 345
SYS_OPEN_BY_HANDLE_AT = 346 SYS_OPEN_BY_HANDLE_AT = 346
SYS_CLOCK_ADJTIME = 347 SYS_CLOCK_ADJTIME = 347
SYS_SYNCFS = 348 SYS_SYNCFS = 348
SYS_SENDMMSG = 349 SYS_SENDMMSG = 349
SYS_SETNS = 350 SYS_SETNS = 350
SYS_PROCESS_VM_READV = 351 SYS_PROCESS_VM_READV = 351
SYS_PROCESS_VM_WRITEV = 352 SYS_PROCESS_VM_WRITEV = 352
SYS_FINIT_MODULE = 353 SYS_FINIT_MODULE = 353
SYS_KCMP = 354 SYS_KCMP = 354
SYS_SCHED_SETATTR = 355 SYS_SCHED_SETATTR = 355
SYS_SCHED_GETATTR = 356 SYS_SCHED_GETATTR = 356
SYS_RENAMEAT2 = 357 SYS_RENAMEAT2 = 357
SYS_SECCOMP = 358 SYS_SECCOMP = 358
SYS_GETRANDOM = 359 SYS_GETRANDOM = 359
SYS_MEMFD_CREATE = 360 SYS_MEMFD_CREATE = 360
SYS_BPF = 361 SYS_BPF = 361
SYS_EXECVEAT = 362 SYS_EXECVEAT = 362
SYS_SWITCH_ENDIAN = 363 SYS_SWITCH_ENDIAN = 363
SYS_USERFAULTFD = 364 SYS_USERFAULTFD = 364
SYS_MEMBARRIER = 365 SYS_MEMBARRIER = 365
SYS_MLOCK2 = 378 SYS_MLOCK2 = 378
SYS_COPY_FILE_RANGE = 379 SYS_COPY_FILE_RANGE = 379
SYS_PREADV2 = 380 SYS_PREADV2 = 380
SYS_PWRITEV2 = 381 SYS_PWRITEV2 = 381
SYS_KEXEC_FILE_LOAD = 382 SYS_KEXEC_FILE_LOAD = 382
SYS_STATX = 383 SYS_STATX = 383
SYS_PKEY_ALLOC = 384 SYS_PKEY_ALLOC = 384
SYS_PKEY_FREE = 385 SYS_PKEY_FREE = 385
SYS_PKEY_MPROTECT = 386 SYS_PKEY_MPROTECT = 386
SYS_RSEQ = 387 SYS_RSEQ = 387
SYS_IO_PGETEVENTS = 388 SYS_IO_PGETEVENTS = 388
SYS_SEMTIMEDOP = 392 SYS_SEMTIMEDOP = 392
SYS_SEMGET = 393 SYS_SEMGET = 393
SYS_SEMCTL = 394 SYS_SEMCTL = 394
SYS_SHMGET = 395 SYS_SHMGET = 395
SYS_SHMCTL = 396 SYS_SHMCTL = 396
SYS_SHMAT = 397 SYS_SHMAT = 397
SYS_SHMDT = 398 SYS_SHMDT = 398
SYS_MSGGET = 399 SYS_MSGGET = 399
SYS_MSGSND = 400 SYS_MSGSND = 400
SYS_MSGRCV = 401 SYS_MSGRCV = 401
SYS_MSGCTL = 402 SYS_MSGCTL = 402
SYS_PIDFD_SEND_SIGNAL = 424 SYS_PIDFD_SEND_SIGNAL = 424
SYS_IO_URING_SETUP = 425 SYS_IO_URING_SETUP = 425
SYS_IO_URING_ENTER = 426 SYS_IO_URING_ENTER = 426
SYS_IO_URING_REGISTER = 427 SYS_IO_URING_REGISTER = 427
SYS_OPEN_TREE = 428 SYS_OPEN_TREE = 428
SYS_MOVE_MOUNT = 429 SYS_MOVE_MOUNT = 429
SYS_FSOPEN = 430 SYS_FSOPEN = 430
SYS_FSCONFIG = 431 SYS_FSCONFIG = 431
SYS_FSMOUNT = 432 SYS_FSMOUNT = 432
SYS_FSPICK = 433 SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434 SYS_PIDFD_OPEN = 434
SYS_CLONE3 = 435 SYS_CLONE3 = 435
SYS_CLOSE_RANGE = 436 SYS_CLOSE_RANGE = 436
SYS_OPENAT2 = 437 SYS_OPENAT2 = 437
SYS_PIDFD_GETFD = 438 SYS_PIDFD_GETFD = 438
SYS_FACCESSAT2 = 439 SYS_FACCESSAT2 = 439
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_QUOTACTL_FD = 443
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View File

@ -7,400 +7,404 @@
package unix package unix
const ( const (
SYS_RESTART_SYSCALL = 0 SYS_RESTART_SYSCALL = 0
SYS_EXIT = 1 SYS_EXIT = 1
SYS_FORK = 2 SYS_FORK = 2
SYS_READ = 3 SYS_READ = 3
SYS_WRITE = 4 SYS_WRITE = 4
SYS_OPEN = 5 SYS_OPEN = 5
SYS_CLOSE = 6 SYS_CLOSE = 6
SYS_WAITPID = 7 SYS_WAITPID = 7
SYS_CREAT = 8 SYS_CREAT = 8
SYS_LINK = 9 SYS_LINK = 9
SYS_UNLINK = 10 SYS_UNLINK = 10
SYS_EXECVE = 11 SYS_EXECVE = 11
SYS_CHDIR = 12 SYS_CHDIR = 12
SYS_TIME = 13 SYS_TIME = 13
SYS_MKNOD = 14 SYS_MKNOD = 14
SYS_CHMOD = 15 SYS_CHMOD = 15
SYS_LCHOWN = 16 SYS_LCHOWN = 16
SYS_BREAK = 17 SYS_BREAK = 17
SYS_OLDSTAT = 18 SYS_OLDSTAT = 18
SYS_LSEEK = 19 SYS_LSEEK = 19
SYS_GETPID = 20 SYS_GETPID = 20
SYS_MOUNT = 21 SYS_MOUNT = 21
SYS_UMOUNT = 22 SYS_UMOUNT = 22
SYS_SETUID = 23 SYS_SETUID = 23
SYS_GETUID = 24 SYS_GETUID = 24
SYS_STIME = 25 SYS_STIME = 25
SYS_PTRACE = 26 SYS_PTRACE = 26
SYS_ALARM = 27 SYS_ALARM = 27
SYS_OLDFSTAT = 28 SYS_OLDFSTAT = 28
SYS_PAUSE = 29 SYS_PAUSE = 29
SYS_UTIME = 30 SYS_UTIME = 30
SYS_STTY = 31 SYS_STTY = 31
SYS_GTTY = 32 SYS_GTTY = 32
SYS_ACCESS = 33 SYS_ACCESS = 33
SYS_NICE = 34 SYS_NICE = 34
SYS_FTIME = 35 SYS_FTIME = 35
SYS_SYNC = 36 SYS_SYNC = 36
SYS_KILL = 37 SYS_KILL = 37
SYS_RENAME = 38 SYS_RENAME = 38
SYS_MKDIR = 39 SYS_MKDIR = 39
SYS_RMDIR = 40 SYS_RMDIR = 40
SYS_DUP = 41 SYS_DUP = 41
SYS_PIPE = 42 SYS_PIPE = 42
SYS_TIMES = 43 SYS_TIMES = 43
SYS_PROF = 44 SYS_PROF = 44
SYS_BRK = 45 SYS_BRK = 45
SYS_SETGID = 46 SYS_SETGID = 46
SYS_GETGID = 47 SYS_GETGID = 47
SYS_SIGNAL = 48 SYS_SIGNAL = 48
SYS_GETEUID = 49 SYS_GETEUID = 49
SYS_GETEGID = 50 SYS_GETEGID = 50
SYS_ACCT = 51 SYS_ACCT = 51
SYS_UMOUNT2 = 52 SYS_UMOUNT2 = 52
SYS_LOCK = 53 SYS_LOCK = 53
SYS_IOCTL = 54 SYS_IOCTL = 54
SYS_FCNTL = 55 SYS_FCNTL = 55
SYS_MPX = 56 SYS_MPX = 56
SYS_SETPGID = 57 SYS_SETPGID = 57
SYS_ULIMIT = 58 SYS_ULIMIT = 58
SYS_OLDOLDUNAME = 59 SYS_OLDOLDUNAME = 59
SYS_UMASK = 60 SYS_UMASK = 60
SYS_CHROOT = 61 SYS_CHROOT = 61
SYS_USTAT = 62 SYS_USTAT = 62
SYS_DUP2 = 63 SYS_DUP2 = 63
SYS_GETPPID = 64 SYS_GETPPID = 64
SYS_GETPGRP = 65 SYS_GETPGRP = 65
SYS_SETSID = 66 SYS_SETSID = 66
SYS_SIGACTION = 67 SYS_SIGACTION = 67
SYS_SGETMASK = 68 SYS_SGETMASK = 68
SYS_SSETMASK = 69 SYS_SSETMASK = 69
SYS_SETREUID = 70 SYS_SETREUID = 70
SYS_SETREGID = 71 SYS_SETREGID = 71
SYS_SIGSUSPEND = 72 SYS_SIGSUSPEND = 72
SYS_SIGPENDING = 73 SYS_SIGPENDING = 73
SYS_SETHOSTNAME = 74 SYS_SETHOSTNAME = 74
SYS_SETRLIMIT = 75 SYS_SETRLIMIT = 75
SYS_GETRLIMIT = 76 SYS_GETRLIMIT = 76
SYS_GETRUSAGE = 77 SYS_GETRUSAGE = 77
SYS_GETTIMEOFDAY = 78 SYS_GETTIMEOFDAY = 78
SYS_SETTIMEOFDAY = 79 SYS_SETTIMEOFDAY = 79
SYS_GETGROUPS = 80 SYS_GETGROUPS = 80
SYS_SETGROUPS = 81 SYS_SETGROUPS = 81
SYS_SELECT = 82 SYS_SELECT = 82
SYS_SYMLINK = 83 SYS_SYMLINK = 83
SYS_OLDLSTAT = 84 SYS_OLDLSTAT = 84
SYS_READLINK = 85 SYS_READLINK = 85
SYS_USELIB = 86 SYS_USELIB = 86
SYS_SWAPON = 87 SYS_SWAPON = 87
SYS_REBOOT = 88 SYS_REBOOT = 88
SYS_READDIR = 89 SYS_READDIR = 89
SYS_MMAP = 90 SYS_MMAP = 90
SYS_MUNMAP = 91 SYS_MUNMAP = 91
SYS_TRUNCATE = 92 SYS_TRUNCATE = 92
SYS_FTRUNCATE = 93 SYS_FTRUNCATE = 93
SYS_FCHMOD = 94 SYS_FCHMOD = 94
SYS_FCHOWN = 95 SYS_FCHOWN = 95
SYS_GETPRIORITY = 96 SYS_GETPRIORITY = 96
SYS_SETPRIORITY = 97 SYS_SETPRIORITY = 97
SYS_PROFIL = 98 SYS_PROFIL = 98
SYS_STATFS = 99 SYS_STATFS = 99
SYS_FSTATFS = 100 SYS_FSTATFS = 100
SYS_IOPERM = 101 SYS_IOPERM = 101
SYS_SOCKETCALL = 102 SYS_SOCKETCALL = 102
SYS_SYSLOG = 103 SYS_SYSLOG = 103
SYS_SETITIMER = 104 SYS_SETITIMER = 104
SYS_GETITIMER = 105 SYS_GETITIMER = 105
SYS_STAT = 106 SYS_STAT = 106
SYS_LSTAT = 107 SYS_LSTAT = 107
SYS_FSTAT = 108 SYS_FSTAT = 108
SYS_OLDUNAME = 109 SYS_OLDUNAME = 109
SYS_IOPL = 110 SYS_IOPL = 110
SYS_VHANGUP = 111 SYS_VHANGUP = 111
SYS_IDLE = 112 SYS_IDLE = 112
SYS_VM86 = 113 SYS_VM86 = 113
SYS_WAIT4 = 114 SYS_WAIT4 = 114
SYS_SWAPOFF = 115 SYS_SWAPOFF = 115
SYS_SYSINFO = 116 SYS_SYSINFO = 116
SYS_IPC = 117 SYS_IPC = 117
SYS_FSYNC = 118 SYS_FSYNC = 118
SYS_SIGRETURN = 119 SYS_SIGRETURN = 119
SYS_CLONE = 120 SYS_CLONE = 120
SYS_SETDOMAINNAME = 121 SYS_SETDOMAINNAME = 121
SYS_UNAME = 122 SYS_UNAME = 122
SYS_MODIFY_LDT = 123 SYS_MODIFY_LDT = 123
SYS_ADJTIMEX = 124 SYS_ADJTIMEX = 124
SYS_MPROTECT = 125 SYS_MPROTECT = 125
SYS_SIGPROCMASK = 126 SYS_SIGPROCMASK = 126
SYS_CREATE_MODULE = 127 SYS_CREATE_MODULE = 127
SYS_INIT_MODULE = 128 SYS_INIT_MODULE = 128
SYS_DELETE_MODULE = 129 SYS_DELETE_MODULE = 129
SYS_GET_KERNEL_SYMS = 130 SYS_GET_KERNEL_SYMS = 130
SYS_QUOTACTL = 131 SYS_QUOTACTL = 131
SYS_GETPGID = 132 SYS_GETPGID = 132
SYS_FCHDIR = 133 SYS_FCHDIR = 133
SYS_BDFLUSH = 134 SYS_BDFLUSH = 134
SYS_SYSFS = 135 SYS_SYSFS = 135
SYS_PERSONALITY = 136 SYS_PERSONALITY = 136
SYS_AFS_SYSCALL = 137 SYS_AFS_SYSCALL = 137
SYS_SETFSUID = 138 SYS_SETFSUID = 138
SYS_SETFSGID = 139 SYS_SETFSGID = 139
SYS__LLSEEK = 140 SYS__LLSEEK = 140
SYS_GETDENTS = 141 SYS_GETDENTS = 141
SYS__NEWSELECT = 142 SYS__NEWSELECT = 142
SYS_FLOCK = 143 SYS_FLOCK = 143
SYS_MSYNC = 144 SYS_MSYNC = 144
SYS_READV = 145 SYS_READV = 145
SYS_WRITEV = 146 SYS_WRITEV = 146
SYS_GETSID = 147 SYS_GETSID = 147
SYS_FDATASYNC = 148 SYS_FDATASYNC = 148
SYS__SYSCTL = 149 SYS__SYSCTL = 149
SYS_MLOCK = 150 SYS_MLOCK = 150
SYS_MUNLOCK = 151 SYS_MUNLOCK = 151
SYS_MLOCKALL = 152 SYS_MLOCKALL = 152
SYS_MUNLOCKALL = 153 SYS_MUNLOCKALL = 153
SYS_SCHED_SETPARAM = 154 SYS_SCHED_SETPARAM = 154
SYS_SCHED_GETPARAM = 155 SYS_SCHED_GETPARAM = 155
SYS_SCHED_SETSCHEDULER = 156 SYS_SCHED_SETSCHEDULER = 156
SYS_SCHED_GETSCHEDULER = 157 SYS_SCHED_GETSCHEDULER = 157
SYS_SCHED_YIELD = 158 SYS_SCHED_YIELD = 158
SYS_SCHED_GET_PRIORITY_MAX = 159 SYS_SCHED_GET_PRIORITY_MAX = 159
SYS_SCHED_GET_PRIORITY_MIN = 160 SYS_SCHED_GET_PRIORITY_MIN = 160
SYS_SCHED_RR_GET_INTERVAL = 161 SYS_SCHED_RR_GET_INTERVAL = 161
SYS_NANOSLEEP = 162 SYS_NANOSLEEP = 162
SYS_MREMAP = 163 SYS_MREMAP = 163
SYS_SETRESUID = 164 SYS_SETRESUID = 164
SYS_GETRESUID = 165 SYS_GETRESUID = 165
SYS_QUERY_MODULE = 166 SYS_QUERY_MODULE = 166
SYS_POLL = 167 SYS_POLL = 167
SYS_NFSSERVCTL = 168 SYS_NFSSERVCTL = 168
SYS_SETRESGID = 169 SYS_SETRESGID = 169
SYS_GETRESGID = 170 SYS_GETRESGID = 170
SYS_PRCTL = 171 SYS_PRCTL = 171
SYS_RT_SIGRETURN = 172 SYS_RT_SIGRETURN = 172
SYS_RT_SIGACTION = 173 SYS_RT_SIGACTION = 173
SYS_RT_SIGPROCMASK = 174 SYS_RT_SIGPROCMASK = 174
SYS_RT_SIGPENDING = 175 SYS_RT_SIGPENDING = 175
SYS_RT_SIGTIMEDWAIT = 176 SYS_RT_SIGTIMEDWAIT = 176
SYS_RT_SIGQUEUEINFO = 177 SYS_RT_SIGQUEUEINFO = 177
SYS_RT_SIGSUSPEND = 178 SYS_RT_SIGSUSPEND = 178
SYS_PREAD64 = 179 SYS_PREAD64 = 179
SYS_PWRITE64 = 180 SYS_PWRITE64 = 180
SYS_CHOWN = 181 SYS_CHOWN = 181
SYS_GETCWD = 182 SYS_GETCWD = 182
SYS_CAPGET = 183 SYS_CAPGET = 183
SYS_CAPSET = 184 SYS_CAPSET = 184
SYS_SIGALTSTACK = 185 SYS_SIGALTSTACK = 185
SYS_SENDFILE = 186 SYS_SENDFILE = 186
SYS_GETPMSG = 187 SYS_GETPMSG = 187
SYS_PUTPMSG = 188 SYS_PUTPMSG = 188
SYS_VFORK = 189 SYS_VFORK = 189
SYS_UGETRLIMIT = 190 SYS_UGETRLIMIT = 190
SYS_READAHEAD = 191 SYS_READAHEAD = 191
SYS_PCICONFIG_READ = 198 SYS_PCICONFIG_READ = 198
SYS_PCICONFIG_WRITE = 199 SYS_PCICONFIG_WRITE = 199
SYS_PCICONFIG_IOBASE = 200 SYS_PCICONFIG_IOBASE = 200
SYS_MULTIPLEXER = 201 SYS_MULTIPLEXER = 201
SYS_GETDENTS64 = 202 SYS_GETDENTS64 = 202
SYS_PIVOT_ROOT = 203 SYS_PIVOT_ROOT = 203
SYS_MADVISE = 205 SYS_MADVISE = 205
SYS_MINCORE = 206 SYS_MINCORE = 206
SYS_GETTID = 207 SYS_GETTID = 207
SYS_TKILL = 208 SYS_TKILL = 208
SYS_SETXATTR = 209 SYS_SETXATTR = 209
SYS_LSETXATTR = 210 SYS_LSETXATTR = 210
SYS_FSETXATTR = 211 SYS_FSETXATTR = 211
SYS_GETXATTR = 212 SYS_GETXATTR = 212
SYS_LGETXATTR = 213 SYS_LGETXATTR = 213
SYS_FGETXATTR = 214 SYS_FGETXATTR = 214
SYS_LISTXATTR = 215 SYS_LISTXATTR = 215
SYS_LLISTXATTR = 216 SYS_LLISTXATTR = 216
SYS_FLISTXATTR = 217 SYS_FLISTXATTR = 217
SYS_REMOVEXATTR = 218 SYS_REMOVEXATTR = 218
SYS_LREMOVEXATTR = 219 SYS_LREMOVEXATTR = 219
SYS_FREMOVEXATTR = 220 SYS_FREMOVEXATTR = 220
SYS_FUTEX = 221 SYS_FUTEX = 221
SYS_SCHED_SETAFFINITY = 222 SYS_SCHED_SETAFFINITY = 222
SYS_SCHED_GETAFFINITY = 223 SYS_SCHED_GETAFFINITY = 223
SYS_TUXCALL = 225 SYS_TUXCALL = 225
SYS_IO_SETUP = 227 SYS_IO_SETUP = 227
SYS_IO_DESTROY = 228 SYS_IO_DESTROY = 228
SYS_IO_GETEVENTS = 229 SYS_IO_GETEVENTS = 229
SYS_IO_SUBMIT = 230 SYS_IO_SUBMIT = 230
SYS_IO_CANCEL = 231 SYS_IO_CANCEL = 231
SYS_SET_TID_ADDRESS = 232 SYS_SET_TID_ADDRESS = 232
SYS_FADVISE64 = 233 SYS_FADVISE64 = 233
SYS_EXIT_GROUP = 234 SYS_EXIT_GROUP = 234
SYS_LOOKUP_DCOOKIE = 235 SYS_LOOKUP_DCOOKIE = 235
SYS_EPOLL_CREATE = 236 SYS_EPOLL_CREATE = 236
SYS_EPOLL_CTL = 237 SYS_EPOLL_CTL = 237
SYS_EPOLL_WAIT = 238 SYS_EPOLL_WAIT = 238
SYS_REMAP_FILE_PAGES = 239 SYS_REMAP_FILE_PAGES = 239
SYS_TIMER_CREATE = 240 SYS_TIMER_CREATE = 240
SYS_TIMER_SETTIME = 241 SYS_TIMER_SETTIME = 241
SYS_TIMER_GETTIME = 242 SYS_TIMER_GETTIME = 242
SYS_TIMER_GETOVERRUN = 243 SYS_TIMER_GETOVERRUN = 243
SYS_TIMER_DELETE = 244 SYS_TIMER_DELETE = 244
SYS_CLOCK_SETTIME = 245 SYS_CLOCK_SETTIME = 245
SYS_CLOCK_GETTIME = 246 SYS_CLOCK_GETTIME = 246
SYS_CLOCK_GETRES = 247 SYS_CLOCK_GETRES = 247
SYS_CLOCK_NANOSLEEP = 248 SYS_CLOCK_NANOSLEEP = 248
SYS_SWAPCONTEXT = 249 SYS_SWAPCONTEXT = 249
SYS_TGKILL = 250 SYS_TGKILL = 250
SYS_UTIMES = 251 SYS_UTIMES = 251
SYS_STATFS64 = 252 SYS_STATFS64 = 252
SYS_FSTATFS64 = 253 SYS_FSTATFS64 = 253
SYS_RTAS = 255 SYS_RTAS = 255
SYS_SYS_DEBUG_SETCONTEXT = 256 SYS_SYS_DEBUG_SETCONTEXT = 256
SYS_MIGRATE_PAGES = 258 SYS_MIGRATE_PAGES = 258
SYS_MBIND = 259 SYS_MBIND = 259
SYS_GET_MEMPOLICY = 260 SYS_GET_MEMPOLICY = 260
SYS_SET_MEMPOLICY = 261 SYS_SET_MEMPOLICY = 261
SYS_MQ_OPEN = 262 SYS_MQ_OPEN = 262
SYS_MQ_UNLINK = 263 SYS_MQ_UNLINK = 263
SYS_MQ_TIMEDSEND = 264 SYS_MQ_TIMEDSEND = 264
SYS_MQ_TIMEDRECEIVE = 265 SYS_MQ_TIMEDRECEIVE = 265
SYS_MQ_NOTIFY = 266 SYS_MQ_NOTIFY = 266
SYS_MQ_GETSETATTR = 267 SYS_MQ_GETSETATTR = 267
SYS_KEXEC_LOAD = 268 SYS_KEXEC_LOAD = 268
SYS_ADD_KEY = 269 SYS_ADD_KEY = 269
SYS_REQUEST_KEY = 270 SYS_REQUEST_KEY = 270
SYS_KEYCTL = 271 SYS_KEYCTL = 271
SYS_WAITID = 272 SYS_WAITID = 272
SYS_IOPRIO_SET = 273 SYS_IOPRIO_SET = 273
SYS_IOPRIO_GET = 274 SYS_IOPRIO_GET = 274
SYS_INOTIFY_INIT = 275 SYS_INOTIFY_INIT = 275
SYS_INOTIFY_ADD_WATCH = 276 SYS_INOTIFY_ADD_WATCH = 276
SYS_INOTIFY_RM_WATCH = 277 SYS_INOTIFY_RM_WATCH = 277
SYS_SPU_RUN = 278 SYS_SPU_RUN = 278
SYS_SPU_CREATE = 279 SYS_SPU_CREATE = 279
SYS_PSELECT6 = 280 SYS_PSELECT6 = 280
SYS_PPOLL = 281 SYS_PPOLL = 281
SYS_UNSHARE = 282 SYS_UNSHARE = 282
SYS_SPLICE = 283 SYS_SPLICE = 283
SYS_TEE = 284 SYS_TEE = 284
SYS_VMSPLICE = 285 SYS_VMSPLICE = 285
SYS_OPENAT = 286 SYS_OPENAT = 286
SYS_MKDIRAT = 287 SYS_MKDIRAT = 287
SYS_MKNODAT = 288 SYS_MKNODAT = 288
SYS_FCHOWNAT = 289 SYS_FCHOWNAT = 289
SYS_FUTIMESAT = 290 SYS_FUTIMESAT = 290
SYS_NEWFSTATAT = 291 SYS_NEWFSTATAT = 291
SYS_UNLINKAT = 292 SYS_UNLINKAT = 292
SYS_RENAMEAT = 293 SYS_RENAMEAT = 293
SYS_LINKAT = 294 SYS_LINKAT = 294
SYS_SYMLINKAT = 295 SYS_SYMLINKAT = 295
SYS_READLINKAT = 296 SYS_READLINKAT = 296
SYS_FCHMODAT = 297 SYS_FCHMODAT = 297
SYS_FACCESSAT = 298 SYS_FACCESSAT = 298
SYS_GET_ROBUST_LIST = 299 SYS_GET_ROBUST_LIST = 299
SYS_SET_ROBUST_LIST = 300 SYS_SET_ROBUST_LIST = 300
SYS_MOVE_PAGES = 301 SYS_MOVE_PAGES = 301
SYS_GETCPU = 302 SYS_GETCPU = 302
SYS_EPOLL_PWAIT = 303 SYS_EPOLL_PWAIT = 303
SYS_UTIMENSAT = 304 SYS_UTIMENSAT = 304
SYS_SIGNALFD = 305 SYS_SIGNALFD = 305
SYS_TIMERFD_CREATE = 306 SYS_TIMERFD_CREATE = 306
SYS_EVENTFD = 307 SYS_EVENTFD = 307
SYS_SYNC_FILE_RANGE2 = 308 SYS_SYNC_FILE_RANGE2 = 308
SYS_FALLOCATE = 309 SYS_FALLOCATE = 309
SYS_SUBPAGE_PROT = 310 SYS_SUBPAGE_PROT = 310
SYS_TIMERFD_SETTIME = 311 SYS_TIMERFD_SETTIME = 311
SYS_TIMERFD_GETTIME = 312 SYS_TIMERFD_GETTIME = 312
SYS_SIGNALFD4 = 313 SYS_SIGNALFD4 = 313
SYS_EVENTFD2 = 314 SYS_EVENTFD2 = 314
SYS_EPOLL_CREATE1 = 315 SYS_EPOLL_CREATE1 = 315
SYS_DUP3 = 316 SYS_DUP3 = 316
SYS_PIPE2 = 317 SYS_PIPE2 = 317
SYS_INOTIFY_INIT1 = 318 SYS_INOTIFY_INIT1 = 318
SYS_PERF_EVENT_OPEN = 319 SYS_PERF_EVENT_OPEN = 319
SYS_PREADV = 320 SYS_PREADV = 320
SYS_PWRITEV = 321 SYS_PWRITEV = 321
SYS_RT_TGSIGQUEUEINFO = 322 SYS_RT_TGSIGQUEUEINFO = 322
SYS_FANOTIFY_INIT = 323 SYS_FANOTIFY_INIT = 323
SYS_FANOTIFY_MARK = 324 SYS_FANOTIFY_MARK = 324
SYS_PRLIMIT64 = 325 SYS_PRLIMIT64 = 325
SYS_SOCKET = 326 SYS_SOCKET = 326
SYS_BIND = 327 SYS_BIND = 327
SYS_CONNECT = 328 SYS_CONNECT = 328
SYS_LISTEN = 329 SYS_LISTEN = 329
SYS_ACCEPT = 330 SYS_ACCEPT = 330
SYS_GETSOCKNAME = 331 SYS_GETSOCKNAME = 331
SYS_GETPEERNAME = 332 SYS_GETPEERNAME = 332
SYS_SOCKETPAIR = 333 SYS_SOCKETPAIR = 333
SYS_SEND = 334 SYS_SEND = 334
SYS_SENDTO = 335 SYS_SENDTO = 335
SYS_RECV = 336 SYS_RECV = 336
SYS_RECVFROM = 337 SYS_RECVFROM = 337
SYS_SHUTDOWN = 338 SYS_SHUTDOWN = 338
SYS_SETSOCKOPT = 339 SYS_SETSOCKOPT = 339
SYS_GETSOCKOPT = 340 SYS_GETSOCKOPT = 340
SYS_SENDMSG = 341 SYS_SENDMSG = 341
SYS_RECVMSG = 342 SYS_RECVMSG = 342
SYS_RECVMMSG = 343 SYS_RECVMMSG = 343
SYS_ACCEPT4 = 344 SYS_ACCEPT4 = 344
SYS_NAME_TO_HANDLE_AT = 345 SYS_NAME_TO_HANDLE_AT = 345
SYS_OPEN_BY_HANDLE_AT = 346 SYS_OPEN_BY_HANDLE_AT = 346
SYS_CLOCK_ADJTIME = 347 SYS_CLOCK_ADJTIME = 347
SYS_SYNCFS = 348 SYS_SYNCFS = 348
SYS_SENDMMSG = 349 SYS_SENDMMSG = 349
SYS_SETNS = 350 SYS_SETNS = 350
SYS_PROCESS_VM_READV = 351 SYS_PROCESS_VM_READV = 351
SYS_PROCESS_VM_WRITEV = 352 SYS_PROCESS_VM_WRITEV = 352
SYS_FINIT_MODULE = 353 SYS_FINIT_MODULE = 353
SYS_KCMP = 354 SYS_KCMP = 354
SYS_SCHED_SETATTR = 355 SYS_SCHED_SETATTR = 355
SYS_SCHED_GETATTR = 356 SYS_SCHED_GETATTR = 356
SYS_RENAMEAT2 = 357 SYS_RENAMEAT2 = 357
SYS_SECCOMP = 358 SYS_SECCOMP = 358
SYS_GETRANDOM = 359 SYS_GETRANDOM = 359
SYS_MEMFD_CREATE = 360 SYS_MEMFD_CREATE = 360
SYS_BPF = 361 SYS_BPF = 361
SYS_EXECVEAT = 362 SYS_EXECVEAT = 362
SYS_SWITCH_ENDIAN = 363 SYS_SWITCH_ENDIAN = 363
SYS_USERFAULTFD = 364 SYS_USERFAULTFD = 364
SYS_MEMBARRIER = 365 SYS_MEMBARRIER = 365
SYS_MLOCK2 = 378 SYS_MLOCK2 = 378
SYS_COPY_FILE_RANGE = 379 SYS_COPY_FILE_RANGE = 379
SYS_PREADV2 = 380 SYS_PREADV2 = 380
SYS_PWRITEV2 = 381 SYS_PWRITEV2 = 381
SYS_KEXEC_FILE_LOAD = 382 SYS_KEXEC_FILE_LOAD = 382
SYS_STATX = 383 SYS_STATX = 383
SYS_PKEY_ALLOC = 384 SYS_PKEY_ALLOC = 384
SYS_PKEY_FREE = 385 SYS_PKEY_FREE = 385
SYS_PKEY_MPROTECT = 386 SYS_PKEY_MPROTECT = 386
SYS_RSEQ = 387 SYS_RSEQ = 387
SYS_IO_PGETEVENTS = 388 SYS_IO_PGETEVENTS = 388
SYS_SEMTIMEDOP = 392 SYS_SEMTIMEDOP = 392
SYS_SEMGET = 393 SYS_SEMGET = 393
SYS_SEMCTL = 394 SYS_SEMCTL = 394
SYS_SHMGET = 395 SYS_SHMGET = 395
SYS_SHMCTL = 396 SYS_SHMCTL = 396
SYS_SHMAT = 397 SYS_SHMAT = 397
SYS_SHMDT = 398 SYS_SHMDT = 398
SYS_MSGGET = 399 SYS_MSGGET = 399
SYS_MSGSND = 400 SYS_MSGSND = 400
SYS_MSGRCV = 401 SYS_MSGRCV = 401
SYS_MSGCTL = 402 SYS_MSGCTL = 402
SYS_PIDFD_SEND_SIGNAL = 424 SYS_PIDFD_SEND_SIGNAL = 424
SYS_IO_URING_SETUP = 425 SYS_IO_URING_SETUP = 425
SYS_IO_URING_ENTER = 426 SYS_IO_URING_ENTER = 426
SYS_IO_URING_REGISTER = 427 SYS_IO_URING_REGISTER = 427
SYS_OPEN_TREE = 428 SYS_OPEN_TREE = 428
SYS_MOVE_MOUNT = 429 SYS_MOVE_MOUNT = 429
SYS_FSOPEN = 430 SYS_FSOPEN = 430
SYS_FSCONFIG = 431 SYS_FSCONFIG = 431
SYS_FSMOUNT = 432 SYS_FSMOUNT = 432
SYS_FSPICK = 433 SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434 SYS_PIDFD_OPEN = 434
SYS_CLONE3 = 435 SYS_CLONE3 = 435
SYS_CLOSE_RANGE = 436 SYS_CLOSE_RANGE = 436
SYS_OPENAT2 = 437 SYS_OPENAT2 = 437
SYS_PIDFD_GETFD = 438 SYS_PIDFD_GETFD = 438
SYS_FACCESSAT2 = 439 SYS_FACCESSAT2 = 439
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_QUOTACTL_FD = 443
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View File

@ -7,302 +7,306 @@
package unix package unix
const ( const (
SYS_IO_SETUP = 0 SYS_IO_SETUP = 0
SYS_IO_DESTROY = 1 SYS_IO_DESTROY = 1
SYS_IO_SUBMIT = 2 SYS_IO_SUBMIT = 2
SYS_IO_CANCEL = 3 SYS_IO_CANCEL = 3
SYS_IO_GETEVENTS = 4 SYS_IO_GETEVENTS = 4
SYS_SETXATTR = 5 SYS_SETXATTR = 5
SYS_LSETXATTR = 6 SYS_LSETXATTR = 6
SYS_FSETXATTR = 7 SYS_FSETXATTR = 7
SYS_GETXATTR = 8 SYS_GETXATTR = 8
SYS_LGETXATTR = 9 SYS_LGETXATTR = 9
SYS_FGETXATTR = 10 SYS_FGETXATTR = 10
SYS_LISTXATTR = 11 SYS_LISTXATTR = 11
SYS_LLISTXATTR = 12 SYS_LLISTXATTR = 12
SYS_FLISTXATTR = 13 SYS_FLISTXATTR = 13
SYS_REMOVEXATTR = 14 SYS_REMOVEXATTR = 14
SYS_LREMOVEXATTR = 15 SYS_LREMOVEXATTR = 15
SYS_FREMOVEXATTR = 16 SYS_FREMOVEXATTR = 16
SYS_GETCWD = 17 SYS_GETCWD = 17
SYS_LOOKUP_DCOOKIE = 18 SYS_LOOKUP_DCOOKIE = 18
SYS_EVENTFD2 = 19 SYS_EVENTFD2 = 19
SYS_EPOLL_CREATE1 = 20 SYS_EPOLL_CREATE1 = 20
SYS_EPOLL_CTL = 21 SYS_EPOLL_CTL = 21
SYS_EPOLL_PWAIT = 22 SYS_EPOLL_PWAIT = 22
SYS_DUP = 23 SYS_DUP = 23
SYS_DUP3 = 24 SYS_DUP3 = 24
SYS_FCNTL = 25 SYS_FCNTL = 25
SYS_INOTIFY_INIT1 = 26 SYS_INOTIFY_INIT1 = 26
SYS_INOTIFY_ADD_WATCH = 27 SYS_INOTIFY_ADD_WATCH = 27
SYS_INOTIFY_RM_WATCH = 28 SYS_INOTIFY_RM_WATCH = 28
SYS_IOCTL = 29 SYS_IOCTL = 29
SYS_IOPRIO_SET = 30 SYS_IOPRIO_SET = 30
SYS_IOPRIO_GET = 31 SYS_IOPRIO_GET = 31
SYS_FLOCK = 32 SYS_FLOCK = 32
SYS_MKNODAT = 33 SYS_MKNODAT = 33
SYS_MKDIRAT = 34 SYS_MKDIRAT = 34
SYS_UNLINKAT = 35 SYS_UNLINKAT = 35
SYS_SYMLINKAT = 36 SYS_SYMLINKAT = 36
SYS_LINKAT = 37 SYS_LINKAT = 37
SYS_UMOUNT2 = 39 SYS_UMOUNT2 = 39
SYS_MOUNT = 40 SYS_MOUNT = 40
SYS_PIVOT_ROOT = 41 SYS_PIVOT_ROOT = 41
SYS_NFSSERVCTL = 42 SYS_NFSSERVCTL = 42
SYS_STATFS = 43 SYS_STATFS = 43
SYS_FSTATFS = 44 SYS_FSTATFS = 44
SYS_TRUNCATE = 45 SYS_TRUNCATE = 45
SYS_FTRUNCATE = 46 SYS_FTRUNCATE = 46
SYS_FALLOCATE = 47 SYS_FALLOCATE = 47
SYS_FACCESSAT = 48 SYS_FACCESSAT = 48
SYS_CHDIR = 49 SYS_CHDIR = 49
SYS_FCHDIR = 50 SYS_FCHDIR = 50
SYS_CHROOT = 51 SYS_CHROOT = 51
SYS_FCHMOD = 52 SYS_FCHMOD = 52
SYS_FCHMODAT = 53 SYS_FCHMODAT = 53
SYS_FCHOWNAT = 54 SYS_FCHOWNAT = 54
SYS_FCHOWN = 55 SYS_FCHOWN = 55
SYS_OPENAT = 56 SYS_OPENAT = 56
SYS_CLOSE = 57 SYS_CLOSE = 57
SYS_VHANGUP = 58 SYS_VHANGUP = 58
SYS_PIPE2 = 59 SYS_PIPE2 = 59
SYS_QUOTACTL = 60 SYS_QUOTACTL = 60
SYS_GETDENTS64 = 61 SYS_GETDENTS64 = 61
SYS_LSEEK = 62 SYS_LSEEK = 62
SYS_READ = 63 SYS_READ = 63
SYS_WRITE = 64 SYS_WRITE = 64
SYS_READV = 65 SYS_READV = 65
SYS_WRITEV = 66 SYS_WRITEV = 66
SYS_PREAD64 = 67 SYS_PREAD64 = 67
SYS_PWRITE64 = 68 SYS_PWRITE64 = 68
SYS_PREADV = 69 SYS_PREADV = 69
SYS_PWRITEV = 70 SYS_PWRITEV = 70
SYS_SENDFILE = 71 SYS_SENDFILE = 71
SYS_PSELECT6 = 72 SYS_PSELECT6 = 72
SYS_PPOLL = 73 SYS_PPOLL = 73
SYS_SIGNALFD4 = 74 SYS_SIGNALFD4 = 74
SYS_VMSPLICE = 75 SYS_VMSPLICE = 75
SYS_SPLICE = 76 SYS_SPLICE = 76
SYS_TEE = 77 SYS_TEE = 77
SYS_READLINKAT = 78 SYS_READLINKAT = 78
SYS_FSTATAT = 79 SYS_FSTATAT = 79
SYS_FSTAT = 80 SYS_FSTAT = 80
SYS_SYNC = 81 SYS_SYNC = 81
SYS_FSYNC = 82 SYS_FSYNC = 82
SYS_FDATASYNC = 83 SYS_FDATASYNC = 83
SYS_SYNC_FILE_RANGE = 84 SYS_SYNC_FILE_RANGE = 84
SYS_TIMERFD_CREATE = 85 SYS_TIMERFD_CREATE = 85
SYS_TIMERFD_SETTIME = 86 SYS_TIMERFD_SETTIME = 86
SYS_TIMERFD_GETTIME = 87 SYS_TIMERFD_GETTIME = 87
SYS_UTIMENSAT = 88 SYS_UTIMENSAT = 88
SYS_ACCT = 89 SYS_ACCT = 89
SYS_CAPGET = 90 SYS_CAPGET = 90
SYS_CAPSET = 91 SYS_CAPSET = 91
SYS_PERSONALITY = 92 SYS_PERSONALITY = 92
SYS_EXIT = 93 SYS_EXIT = 93
SYS_EXIT_GROUP = 94 SYS_EXIT_GROUP = 94
SYS_WAITID = 95 SYS_WAITID = 95
SYS_SET_TID_ADDRESS = 96 SYS_SET_TID_ADDRESS = 96
SYS_UNSHARE = 97 SYS_UNSHARE = 97
SYS_FUTEX = 98 SYS_FUTEX = 98
SYS_SET_ROBUST_LIST = 99 SYS_SET_ROBUST_LIST = 99
SYS_GET_ROBUST_LIST = 100 SYS_GET_ROBUST_LIST = 100
SYS_NANOSLEEP = 101 SYS_NANOSLEEP = 101
SYS_GETITIMER = 102 SYS_GETITIMER = 102
SYS_SETITIMER = 103 SYS_SETITIMER = 103
SYS_KEXEC_LOAD = 104 SYS_KEXEC_LOAD = 104
SYS_INIT_MODULE = 105 SYS_INIT_MODULE = 105
SYS_DELETE_MODULE = 106 SYS_DELETE_MODULE = 106
SYS_TIMER_CREATE = 107 SYS_TIMER_CREATE = 107
SYS_TIMER_GETTIME = 108 SYS_TIMER_GETTIME = 108
SYS_TIMER_GETOVERRUN = 109 SYS_TIMER_GETOVERRUN = 109
SYS_TIMER_SETTIME = 110 SYS_TIMER_SETTIME = 110
SYS_TIMER_DELETE = 111 SYS_TIMER_DELETE = 111
SYS_CLOCK_SETTIME = 112 SYS_CLOCK_SETTIME = 112
SYS_CLOCK_GETTIME = 113 SYS_CLOCK_GETTIME = 113
SYS_CLOCK_GETRES = 114 SYS_CLOCK_GETRES = 114
SYS_CLOCK_NANOSLEEP = 115 SYS_CLOCK_NANOSLEEP = 115
SYS_SYSLOG = 116 SYS_SYSLOG = 116
SYS_PTRACE = 117 SYS_PTRACE = 117
SYS_SCHED_SETPARAM = 118 SYS_SCHED_SETPARAM = 118
SYS_SCHED_SETSCHEDULER = 119 SYS_SCHED_SETSCHEDULER = 119
SYS_SCHED_GETSCHEDULER = 120 SYS_SCHED_GETSCHEDULER = 120
SYS_SCHED_GETPARAM = 121 SYS_SCHED_GETPARAM = 121
SYS_SCHED_SETAFFINITY = 122 SYS_SCHED_SETAFFINITY = 122
SYS_SCHED_GETAFFINITY = 123 SYS_SCHED_GETAFFINITY = 123
SYS_SCHED_YIELD = 124 SYS_SCHED_YIELD = 124
SYS_SCHED_GET_PRIORITY_MAX = 125 SYS_SCHED_GET_PRIORITY_MAX = 125
SYS_SCHED_GET_PRIORITY_MIN = 126 SYS_SCHED_GET_PRIORITY_MIN = 126
SYS_SCHED_RR_GET_INTERVAL = 127 SYS_SCHED_RR_GET_INTERVAL = 127
SYS_RESTART_SYSCALL = 128 SYS_RESTART_SYSCALL = 128
SYS_KILL = 129 SYS_KILL = 129
SYS_TKILL = 130 SYS_TKILL = 130
SYS_TGKILL = 131 SYS_TGKILL = 131
SYS_SIGALTSTACK = 132 SYS_SIGALTSTACK = 132
SYS_RT_SIGSUSPEND = 133 SYS_RT_SIGSUSPEND = 133
SYS_RT_SIGACTION = 134 SYS_RT_SIGACTION = 134
SYS_RT_SIGPROCMASK = 135 SYS_RT_SIGPROCMASK = 135
SYS_RT_SIGPENDING = 136 SYS_RT_SIGPENDING = 136
SYS_RT_SIGTIMEDWAIT = 137 SYS_RT_SIGTIMEDWAIT = 137
SYS_RT_SIGQUEUEINFO = 138 SYS_RT_SIGQUEUEINFO = 138
SYS_RT_SIGRETURN = 139 SYS_RT_SIGRETURN = 139
SYS_SETPRIORITY = 140 SYS_SETPRIORITY = 140
SYS_GETPRIORITY = 141 SYS_GETPRIORITY = 141
SYS_REBOOT = 142 SYS_REBOOT = 142
SYS_SETREGID = 143 SYS_SETREGID = 143
SYS_SETGID = 144 SYS_SETGID = 144
SYS_SETREUID = 145 SYS_SETREUID = 145
SYS_SETUID = 146 SYS_SETUID = 146
SYS_SETRESUID = 147 SYS_SETRESUID = 147
SYS_GETRESUID = 148 SYS_GETRESUID = 148
SYS_SETRESGID = 149 SYS_SETRESGID = 149
SYS_GETRESGID = 150 SYS_GETRESGID = 150
SYS_SETFSUID = 151 SYS_SETFSUID = 151
SYS_SETFSGID = 152 SYS_SETFSGID = 152
SYS_TIMES = 153 SYS_TIMES = 153
SYS_SETPGID = 154 SYS_SETPGID = 154
SYS_GETPGID = 155 SYS_GETPGID = 155
SYS_GETSID = 156 SYS_GETSID = 156
SYS_SETSID = 157 SYS_SETSID = 157
SYS_GETGROUPS = 158 SYS_GETGROUPS = 158
SYS_SETGROUPS = 159 SYS_SETGROUPS = 159
SYS_UNAME = 160 SYS_UNAME = 160
SYS_SETHOSTNAME = 161 SYS_SETHOSTNAME = 161
SYS_SETDOMAINNAME = 162 SYS_SETDOMAINNAME = 162
SYS_GETRLIMIT = 163 SYS_GETRLIMIT = 163
SYS_SETRLIMIT = 164 SYS_SETRLIMIT = 164
SYS_GETRUSAGE = 165 SYS_GETRUSAGE = 165
SYS_UMASK = 166 SYS_UMASK = 166
SYS_PRCTL = 167 SYS_PRCTL = 167
SYS_GETCPU = 168 SYS_GETCPU = 168
SYS_GETTIMEOFDAY = 169 SYS_GETTIMEOFDAY = 169
SYS_SETTIMEOFDAY = 170 SYS_SETTIMEOFDAY = 170
SYS_ADJTIMEX = 171 SYS_ADJTIMEX = 171
SYS_GETPID = 172 SYS_GETPID = 172
SYS_GETPPID = 173 SYS_GETPPID = 173
SYS_GETUID = 174 SYS_GETUID = 174
SYS_GETEUID = 175 SYS_GETEUID = 175
SYS_GETGID = 176 SYS_GETGID = 176
SYS_GETEGID = 177 SYS_GETEGID = 177
SYS_GETTID = 178 SYS_GETTID = 178
SYS_SYSINFO = 179 SYS_SYSINFO = 179
SYS_MQ_OPEN = 180 SYS_MQ_OPEN = 180
SYS_MQ_UNLINK = 181 SYS_MQ_UNLINK = 181
SYS_MQ_TIMEDSEND = 182 SYS_MQ_TIMEDSEND = 182
SYS_MQ_TIMEDRECEIVE = 183 SYS_MQ_TIMEDRECEIVE = 183
SYS_MQ_NOTIFY = 184 SYS_MQ_NOTIFY = 184
SYS_MQ_GETSETATTR = 185 SYS_MQ_GETSETATTR = 185
SYS_MSGGET = 186 SYS_MSGGET = 186
SYS_MSGCTL = 187 SYS_MSGCTL = 187
SYS_MSGRCV = 188 SYS_MSGRCV = 188
SYS_MSGSND = 189 SYS_MSGSND = 189
SYS_SEMGET = 190 SYS_SEMGET = 190
SYS_SEMCTL = 191 SYS_SEMCTL = 191
SYS_SEMTIMEDOP = 192 SYS_SEMTIMEDOP = 192
SYS_SEMOP = 193 SYS_SEMOP = 193
SYS_SHMGET = 194 SYS_SHMGET = 194
SYS_SHMCTL = 195 SYS_SHMCTL = 195
SYS_SHMAT = 196 SYS_SHMAT = 196
SYS_SHMDT = 197 SYS_SHMDT = 197
SYS_SOCKET = 198 SYS_SOCKET = 198
SYS_SOCKETPAIR = 199 SYS_SOCKETPAIR = 199
SYS_BIND = 200 SYS_BIND = 200
SYS_LISTEN = 201 SYS_LISTEN = 201
SYS_ACCEPT = 202 SYS_ACCEPT = 202
SYS_CONNECT = 203 SYS_CONNECT = 203
SYS_GETSOCKNAME = 204 SYS_GETSOCKNAME = 204
SYS_GETPEERNAME = 205 SYS_GETPEERNAME = 205
SYS_SENDTO = 206 SYS_SENDTO = 206
SYS_RECVFROM = 207 SYS_RECVFROM = 207
SYS_SETSOCKOPT = 208 SYS_SETSOCKOPT = 208
SYS_GETSOCKOPT = 209 SYS_GETSOCKOPT = 209
SYS_SHUTDOWN = 210 SYS_SHUTDOWN = 210
SYS_SENDMSG = 211 SYS_SENDMSG = 211
SYS_RECVMSG = 212 SYS_RECVMSG = 212
SYS_READAHEAD = 213 SYS_READAHEAD = 213
SYS_BRK = 214 SYS_BRK = 214
SYS_MUNMAP = 215 SYS_MUNMAP = 215
SYS_MREMAP = 216 SYS_MREMAP = 216
SYS_ADD_KEY = 217 SYS_ADD_KEY = 217
SYS_REQUEST_KEY = 218 SYS_REQUEST_KEY = 218
SYS_KEYCTL = 219 SYS_KEYCTL = 219
SYS_CLONE = 220 SYS_CLONE = 220
SYS_EXECVE = 221 SYS_EXECVE = 221
SYS_MMAP = 222 SYS_MMAP = 222
SYS_FADVISE64 = 223 SYS_FADVISE64 = 223
SYS_SWAPON = 224 SYS_SWAPON = 224
SYS_SWAPOFF = 225 SYS_SWAPOFF = 225
SYS_MPROTECT = 226 SYS_MPROTECT = 226
SYS_MSYNC = 227 SYS_MSYNC = 227
SYS_MLOCK = 228 SYS_MLOCK = 228
SYS_MUNLOCK = 229 SYS_MUNLOCK = 229
SYS_MLOCKALL = 230 SYS_MLOCKALL = 230
SYS_MUNLOCKALL = 231 SYS_MUNLOCKALL = 231
SYS_MINCORE = 232 SYS_MINCORE = 232
SYS_MADVISE = 233 SYS_MADVISE = 233
SYS_REMAP_FILE_PAGES = 234 SYS_REMAP_FILE_PAGES = 234
SYS_MBIND = 235 SYS_MBIND = 235
SYS_GET_MEMPOLICY = 236 SYS_GET_MEMPOLICY = 236
SYS_SET_MEMPOLICY = 237 SYS_SET_MEMPOLICY = 237
SYS_MIGRATE_PAGES = 238 SYS_MIGRATE_PAGES = 238
SYS_MOVE_PAGES = 239 SYS_MOVE_PAGES = 239
SYS_RT_TGSIGQUEUEINFO = 240 SYS_RT_TGSIGQUEUEINFO = 240
SYS_PERF_EVENT_OPEN = 241 SYS_PERF_EVENT_OPEN = 241
SYS_ACCEPT4 = 242 SYS_ACCEPT4 = 242
SYS_RECVMMSG = 243 SYS_RECVMMSG = 243
SYS_ARCH_SPECIFIC_SYSCALL = 244 SYS_ARCH_SPECIFIC_SYSCALL = 244
SYS_WAIT4 = 260 SYS_WAIT4 = 260
SYS_PRLIMIT64 = 261 SYS_PRLIMIT64 = 261
SYS_FANOTIFY_INIT = 262 SYS_FANOTIFY_INIT = 262
SYS_FANOTIFY_MARK = 263 SYS_FANOTIFY_MARK = 263
SYS_NAME_TO_HANDLE_AT = 264 SYS_NAME_TO_HANDLE_AT = 264
SYS_OPEN_BY_HANDLE_AT = 265 SYS_OPEN_BY_HANDLE_AT = 265
SYS_CLOCK_ADJTIME = 266 SYS_CLOCK_ADJTIME = 266
SYS_SYNCFS = 267 SYS_SYNCFS = 267
SYS_SETNS = 268 SYS_SETNS = 268
SYS_SENDMMSG = 269 SYS_SENDMMSG = 269
SYS_PROCESS_VM_READV = 270 SYS_PROCESS_VM_READV = 270
SYS_PROCESS_VM_WRITEV = 271 SYS_PROCESS_VM_WRITEV = 271
SYS_KCMP = 272 SYS_KCMP = 272
SYS_FINIT_MODULE = 273 SYS_FINIT_MODULE = 273
SYS_SCHED_SETATTR = 274 SYS_SCHED_SETATTR = 274
SYS_SCHED_GETATTR = 275 SYS_SCHED_GETATTR = 275
SYS_RENAMEAT2 = 276 SYS_RENAMEAT2 = 276
SYS_SECCOMP = 277 SYS_SECCOMP = 277
SYS_GETRANDOM = 278 SYS_GETRANDOM = 278
SYS_MEMFD_CREATE = 279 SYS_MEMFD_CREATE = 279
SYS_BPF = 280 SYS_BPF = 280
SYS_EXECVEAT = 281 SYS_EXECVEAT = 281
SYS_USERFAULTFD = 282 SYS_USERFAULTFD = 282
SYS_MEMBARRIER = 283 SYS_MEMBARRIER = 283
SYS_MLOCK2 = 284 SYS_MLOCK2 = 284
SYS_COPY_FILE_RANGE = 285 SYS_COPY_FILE_RANGE = 285
SYS_PREADV2 = 286 SYS_PREADV2 = 286
SYS_PWRITEV2 = 287 SYS_PWRITEV2 = 287
SYS_PKEY_MPROTECT = 288 SYS_PKEY_MPROTECT = 288
SYS_PKEY_ALLOC = 289 SYS_PKEY_ALLOC = 289
SYS_PKEY_FREE = 290 SYS_PKEY_FREE = 290
SYS_STATX = 291 SYS_STATX = 291
SYS_IO_PGETEVENTS = 292 SYS_IO_PGETEVENTS = 292
SYS_RSEQ = 293 SYS_RSEQ = 293
SYS_KEXEC_FILE_LOAD = 294 SYS_KEXEC_FILE_LOAD = 294
SYS_PIDFD_SEND_SIGNAL = 424 SYS_PIDFD_SEND_SIGNAL = 424
SYS_IO_URING_SETUP = 425 SYS_IO_URING_SETUP = 425
SYS_IO_URING_ENTER = 426 SYS_IO_URING_ENTER = 426
SYS_IO_URING_REGISTER = 427 SYS_IO_URING_REGISTER = 427
SYS_OPEN_TREE = 428 SYS_OPEN_TREE = 428
SYS_MOVE_MOUNT = 429 SYS_MOVE_MOUNT = 429
SYS_FSOPEN = 430 SYS_FSOPEN = 430
SYS_FSCONFIG = 431 SYS_FSCONFIG = 431
SYS_FSMOUNT = 432 SYS_FSMOUNT = 432
SYS_FSPICK = 433 SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434 SYS_PIDFD_OPEN = 434
SYS_CLONE3 = 435 SYS_CLONE3 = 435
SYS_CLOSE_RANGE = 436 SYS_CLOSE_RANGE = 436
SYS_OPENAT2 = 437 SYS_OPENAT2 = 437
SYS_PIDFD_GETFD = 438 SYS_PIDFD_GETFD = 438
SYS_FACCESSAT2 = 439 SYS_FACCESSAT2 = 439
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_QUOTACTL_FD = 443
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View File

@ -7,365 +7,369 @@
package unix package unix
const ( const (
SYS_EXIT = 1 SYS_EXIT = 1
SYS_FORK = 2 SYS_FORK = 2
SYS_READ = 3 SYS_READ = 3
SYS_WRITE = 4 SYS_WRITE = 4
SYS_OPEN = 5 SYS_OPEN = 5
SYS_CLOSE = 6 SYS_CLOSE = 6
SYS_RESTART_SYSCALL = 7 SYS_RESTART_SYSCALL = 7
SYS_CREAT = 8 SYS_CREAT = 8
SYS_LINK = 9 SYS_LINK = 9
SYS_UNLINK = 10 SYS_UNLINK = 10
SYS_EXECVE = 11 SYS_EXECVE = 11
SYS_CHDIR = 12 SYS_CHDIR = 12
SYS_MKNOD = 14 SYS_MKNOD = 14
SYS_CHMOD = 15 SYS_CHMOD = 15
SYS_LSEEK = 19 SYS_LSEEK = 19
SYS_GETPID = 20 SYS_GETPID = 20
SYS_MOUNT = 21 SYS_MOUNT = 21
SYS_UMOUNT = 22 SYS_UMOUNT = 22
SYS_PTRACE = 26 SYS_PTRACE = 26
SYS_ALARM = 27 SYS_ALARM = 27
SYS_PAUSE = 29 SYS_PAUSE = 29
SYS_UTIME = 30 SYS_UTIME = 30
SYS_ACCESS = 33 SYS_ACCESS = 33
SYS_NICE = 34 SYS_NICE = 34
SYS_SYNC = 36 SYS_SYNC = 36
SYS_KILL = 37 SYS_KILL = 37
SYS_RENAME = 38 SYS_RENAME = 38
SYS_MKDIR = 39 SYS_MKDIR = 39
SYS_RMDIR = 40 SYS_RMDIR = 40
SYS_DUP = 41 SYS_DUP = 41
SYS_PIPE = 42 SYS_PIPE = 42
SYS_TIMES = 43 SYS_TIMES = 43
SYS_BRK = 45 SYS_BRK = 45
SYS_SIGNAL = 48 SYS_SIGNAL = 48
SYS_ACCT = 51 SYS_ACCT = 51
SYS_UMOUNT2 = 52 SYS_UMOUNT2 = 52
SYS_IOCTL = 54 SYS_IOCTL = 54
SYS_FCNTL = 55 SYS_FCNTL = 55
SYS_SETPGID = 57 SYS_SETPGID = 57
SYS_UMASK = 60 SYS_UMASK = 60
SYS_CHROOT = 61 SYS_CHROOT = 61
SYS_USTAT = 62 SYS_USTAT = 62
SYS_DUP2 = 63 SYS_DUP2 = 63
SYS_GETPPID = 64 SYS_GETPPID = 64
SYS_GETPGRP = 65 SYS_GETPGRP = 65
SYS_SETSID = 66 SYS_SETSID = 66
SYS_SIGACTION = 67 SYS_SIGACTION = 67
SYS_SIGSUSPEND = 72 SYS_SIGSUSPEND = 72
SYS_SIGPENDING = 73 SYS_SIGPENDING = 73
SYS_SETHOSTNAME = 74 SYS_SETHOSTNAME = 74
SYS_SETRLIMIT = 75 SYS_SETRLIMIT = 75
SYS_GETRUSAGE = 77 SYS_GETRUSAGE = 77
SYS_GETTIMEOFDAY = 78 SYS_GETTIMEOFDAY = 78
SYS_SETTIMEOFDAY = 79 SYS_SETTIMEOFDAY = 79
SYS_SYMLINK = 83 SYS_SYMLINK = 83
SYS_READLINK = 85 SYS_READLINK = 85
SYS_USELIB = 86 SYS_USELIB = 86
SYS_SWAPON = 87 SYS_SWAPON = 87
SYS_REBOOT = 88 SYS_REBOOT = 88
SYS_READDIR = 89 SYS_READDIR = 89
SYS_MMAP = 90 SYS_MMAP = 90
SYS_MUNMAP = 91 SYS_MUNMAP = 91
SYS_TRUNCATE = 92 SYS_TRUNCATE = 92
SYS_FTRUNCATE = 93 SYS_FTRUNCATE = 93
SYS_FCHMOD = 94 SYS_FCHMOD = 94
SYS_GETPRIORITY = 96 SYS_GETPRIORITY = 96
SYS_SETPRIORITY = 97 SYS_SETPRIORITY = 97
SYS_STATFS = 99 SYS_STATFS = 99
SYS_FSTATFS = 100 SYS_FSTATFS = 100
SYS_SOCKETCALL = 102 SYS_SOCKETCALL = 102
SYS_SYSLOG = 103 SYS_SYSLOG = 103
SYS_SETITIMER = 104 SYS_SETITIMER = 104
SYS_GETITIMER = 105 SYS_GETITIMER = 105
SYS_STAT = 106 SYS_STAT = 106
SYS_LSTAT = 107 SYS_LSTAT = 107
SYS_FSTAT = 108 SYS_FSTAT = 108
SYS_LOOKUP_DCOOKIE = 110 SYS_LOOKUP_DCOOKIE = 110
SYS_VHANGUP = 111 SYS_VHANGUP = 111
SYS_IDLE = 112 SYS_IDLE = 112
SYS_WAIT4 = 114 SYS_WAIT4 = 114
SYS_SWAPOFF = 115 SYS_SWAPOFF = 115
SYS_SYSINFO = 116 SYS_SYSINFO = 116
SYS_IPC = 117 SYS_IPC = 117
SYS_FSYNC = 118 SYS_FSYNC = 118
SYS_SIGRETURN = 119 SYS_SIGRETURN = 119
SYS_CLONE = 120 SYS_CLONE = 120
SYS_SETDOMAINNAME = 121 SYS_SETDOMAINNAME = 121
SYS_UNAME = 122 SYS_UNAME = 122
SYS_ADJTIMEX = 124 SYS_ADJTIMEX = 124
SYS_MPROTECT = 125 SYS_MPROTECT = 125
SYS_SIGPROCMASK = 126 SYS_SIGPROCMASK = 126
SYS_CREATE_MODULE = 127 SYS_CREATE_MODULE = 127
SYS_INIT_MODULE = 128 SYS_INIT_MODULE = 128
SYS_DELETE_MODULE = 129 SYS_DELETE_MODULE = 129
SYS_GET_KERNEL_SYMS = 130 SYS_GET_KERNEL_SYMS = 130
SYS_QUOTACTL = 131 SYS_QUOTACTL = 131
SYS_GETPGID = 132 SYS_GETPGID = 132
SYS_FCHDIR = 133 SYS_FCHDIR = 133
SYS_BDFLUSH = 134 SYS_BDFLUSH = 134
SYS_SYSFS = 135 SYS_SYSFS = 135
SYS_PERSONALITY = 136 SYS_PERSONALITY = 136
SYS_AFS_SYSCALL = 137 SYS_AFS_SYSCALL = 137
SYS_GETDENTS = 141 SYS_GETDENTS = 141
SYS_SELECT = 142 SYS_SELECT = 142
SYS_FLOCK = 143 SYS_FLOCK = 143
SYS_MSYNC = 144 SYS_MSYNC = 144
SYS_READV = 145 SYS_READV = 145
SYS_WRITEV = 146 SYS_WRITEV = 146
SYS_GETSID = 147 SYS_GETSID = 147
SYS_FDATASYNC = 148 SYS_FDATASYNC = 148
SYS__SYSCTL = 149 SYS__SYSCTL = 149
SYS_MLOCK = 150 SYS_MLOCK = 150
SYS_MUNLOCK = 151 SYS_MUNLOCK = 151
SYS_MLOCKALL = 152 SYS_MLOCKALL = 152
SYS_MUNLOCKALL = 153 SYS_MUNLOCKALL = 153
SYS_SCHED_SETPARAM = 154 SYS_SCHED_SETPARAM = 154
SYS_SCHED_GETPARAM = 155 SYS_SCHED_GETPARAM = 155
SYS_SCHED_SETSCHEDULER = 156 SYS_SCHED_SETSCHEDULER = 156
SYS_SCHED_GETSCHEDULER = 157 SYS_SCHED_GETSCHEDULER = 157
SYS_SCHED_YIELD = 158 SYS_SCHED_YIELD = 158
SYS_SCHED_GET_PRIORITY_MAX = 159 SYS_SCHED_GET_PRIORITY_MAX = 159
SYS_SCHED_GET_PRIORITY_MIN = 160 SYS_SCHED_GET_PRIORITY_MIN = 160
SYS_SCHED_RR_GET_INTERVAL = 161 SYS_SCHED_RR_GET_INTERVAL = 161
SYS_NANOSLEEP = 162 SYS_NANOSLEEP = 162
SYS_MREMAP = 163 SYS_MREMAP = 163
SYS_QUERY_MODULE = 167 SYS_QUERY_MODULE = 167
SYS_POLL = 168 SYS_POLL = 168
SYS_NFSSERVCTL = 169 SYS_NFSSERVCTL = 169
SYS_PRCTL = 172 SYS_PRCTL = 172
SYS_RT_SIGRETURN = 173 SYS_RT_SIGRETURN = 173
SYS_RT_SIGACTION = 174 SYS_RT_SIGACTION = 174
SYS_RT_SIGPROCMASK = 175 SYS_RT_SIGPROCMASK = 175
SYS_RT_SIGPENDING = 176 SYS_RT_SIGPENDING = 176
SYS_RT_SIGTIMEDWAIT = 177 SYS_RT_SIGTIMEDWAIT = 177
SYS_RT_SIGQUEUEINFO = 178 SYS_RT_SIGQUEUEINFO = 178
SYS_RT_SIGSUSPEND = 179 SYS_RT_SIGSUSPEND = 179
SYS_PREAD64 = 180 SYS_PREAD64 = 180
SYS_PWRITE64 = 181 SYS_PWRITE64 = 181
SYS_GETCWD = 183 SYS_GETCWD = 183
SYS_CAPGET = 184 SYS_CAPGET = 184
SYS_CAPSET = 185 SYS_CAPSET = 185
SYS_SIGALTSTACK = 186 SYS_SIGALTSTACK = 186
SYS_SENDFILE = 187 SYS_SENDFILE = 187
SYS_GETPMSG = 188 SYS_GETPMSG = 188
SYS_PUTPMSG = 189 SYS_PUTPMSG = 189
SYS_VFORK = 190 SYS_VFORK = 190
SYS_GETRLIMIT = 191 SYS_GETRLIMIT = 191
SYS_LCHOWN = 198 SYS_LCHOWN = 198
SYS_GETUID = 199 SYS_GETUID = 199
SYS_GETGID = 200 SYS_GETGID = 200
SYS_GETEUID = 201 SYS_GETEUID = 201
SYS_GETEGID = 202 SYS_GETEGID = 202
SYS_SETREUID = 203 SYS_SETREUID = 203
SYS_SETREGID = 204 SYS_SETREGID = 204
SYS_GETGROUPS = 205 SYS_GETGROUPS = 205
SYS_SETGROUPS = 206 SYS_SETGROUPS = 206
SYS_FCHOWN = 207 SYS_FCHOWN = 207
SYS_SETRESUID = 208 SYS_SETRESUID = 208
SYS_GETRESUID = 209 SYS_GETRESUID = 209
SYS_SETRESGID = 210 SYS_SETRESGID = 210
SYS_GETRESGID = 211 SYS_GETRESGID = 211
SYS_CHOWN = 212 SYS_CHOWN = 212
SYS_SETUID = 213 SYS_SETUID = 213
SYS_SETGID = 214 SYS_SETGID = 214
SYS_SETFSUID = 215 SYS_SETFSUID = 215
SYS_SETFSGID = 216 SYS_SETFSGID = 216
SYS_PIVOT_ROOT = 217 SYS_PIVOT_ROOT = 217
SYS_MINCORE = 218 SYS_MINCORE = 218
SYS_MADVISE = 219 SYS_MADVISE = 219
SYS_GETDENTS64 = 220 SYS_GETDENTS64 = 220
SYS_READAHEAD = 222 SYS_READAHEAD = 222
SYS_SETXATTR = 224 SYS_SETXATTR = 224
SYS_LSETXATTR = 225 SYS_LSETXATTR = 225
SYS_FSETXATTR = 226 SYS_FSETXATTR = 226
SYS_GETXATTR = 227 SYS_GETXATTR = 227
SYS_LGETXATTR = 228 SYS_LGETXATTR = 228
SYS_FGETXATTR = 229 SYS_FGETXATTR = 229
SYS_LISTXATTR = 230 SYS_LISTXATTR = 230
SYS_LLISTXATTR = 231 SYS_LLISTXATTR = 231
SYS_FLISTXATTR = 232 SYS_FLISTXATTR = 232
SYS_REMOVEXATTR = 233 SYS_REMOVEXATTR = 233
SYS_LREMOVEXATTR = 234 SYS_LREMOVEXATTR = 234
SYS_FREMOVEXATTR = 235 SYS_FREMOVEXATTR = 235
SYS_GETTID = 236 SYS_GETTID = 236
SYS_TKILL = 237 SYS_TKILL = 237
SYS_FUTEX = 238 SYS_FUTEX = 238
SYS_SCHED_SETAFFINITY = 239 SYS_SCHED_SETAFFINITY = 239
SYS_SCHED_GETAFFINITY = 240 SYS_SCHED_GETAFFINITY = 240
SYS_TGKILL = 241 SYS_TGKILL = 241
SYS_IO_SETUP = 243 SYS_IO_SETUP = 243
SYS_IO_DESTROY = 244 SYS_IO_DESTROY = 244
SYS_IO_GETEVENTS = 245 SYS_IO_GETEVENTS = 245
SYS_IO_SUBMIT = 246 SYS_IO_SUBMIT = 246
SYS_IO_CANCEL = 247 SYS_IO_CANCEL = 247
SYS_EXIT_GROUP = 248 SYS_EXIT_GROUP = 248
SYS_EPOLL_CREATE = 249 SYS_EPOLL_CREATE = 249
SYS_EPOLL_CTL = 250 SYS_EPOLL_CTL = 250
SYS_EPOLL_WAIT = 251 SYS_EPOLL_WAIT = 251
SYS_SET_TID_ADDRESS = 252 SYS_SET_TID_ADDRESS = 252
SYS_FADVISE64 = 253 SYS_FADVISE64 = 253
SYS_TIMER_CREATE = 254 SYS_TIMER_CREATE = 254
SYS_TIMER_SETTIME = 255 SYS_TIMER_SETTIME = 255
SYS_TIMER_GETTIME = 256 SYS_TIMER_GETTIME = 256
SYS_TIMER_GETOVERRUN = 257 SYS_TIMER_GETOVERRUN = 257
SYS_TIMER_DELETE = 258 SYS_TIMER_DELETE = 258
SYS_CLOCK_SETTIME = 259 SYS_CLOCK_SETTIME = 259
SYS_CLOCK_GETTIME = 260 SYS_CLOCK_GETTIME = 260
SYS_CLOCK_GETRES = 261 SYS_CLOCK_GETRES = 261
SYS_CLOCK_NANOSLEEP = 262 SYS_CLOCK_NANOSLEEP = 262
SYS_STATFS64 = 265 SYS_STATFS64 = 265
SYS_FSTATFS64 = 266 SYS_FSTATFS64 = 266
SYS_REMAP_FILE_PAGES = 267 SYS_REMAP_FILE_PAGES = 267
SYS_MBIND = 268 SYS_MBIND = 268
SYS_GET_MEMPOLICY = 269 SYS_GET_MEMPOLICY = 269
SYS_SET_MEMPOLICY = 270 SYS_SET_MEMPOLICY = 270
SYS_MQ_OPEN = 271 SYS_MQ_OPEN = 271
SYS_MQ_UNLINK = 272 SYS_MQ_UNLINK = 272
SYS_MQ_TIMEDSEND = 273 SYS_MQ_TIMEDSEND = 273
SYS_MQ_TIMEDRECEIVE = 274 SYS_MQ_TIMEDRECEIVE = 274
SYS_MQ_NOTIFY = 275 SYS_MQ_NOTIFY = 275
SYS_MQ_GETSETATTR = 276 SYS_MQ_GETSETATTR = 276
SYS_KEXEC_LOAD = 277 SYS_KEXEC_LOAD = 277
SYS_ADD_KEY = 278 SYS_ADD_KEY = 278
SYS_REQUEST_KEY = 279 SYS_REQUEST_KEY = 279
SYS_KEYCTL = 280 SYS_KEYCTL = 280
SYS_WAITID = 281 SYS_WAITID = 281
SYS_IOPRIO_SET = 282 SYS_IOPRIO_SET = 282
SYS_IOPRIO_GET = 283 SYS_IOPRIO_GET = 283
SYS_INOTIFY_INIT = 284 SYS_INOTIFY_INIT = 284
SYS_INOTIFY_ADD_WATCH = 285 SYS_INOTIFY_ADD_WATCH = 285
SYS_INOTIFY_RM_WATCH = 286 SYS_INOTIFY_RM_WATCH = 286
SYS_MIGRATE_PAGES = 287 SYS_MIGRATE_PAGES = 287
SYS_OPENAT = 288 SYS_OPENAT = 288
SYS_MKDIRAT = 289 SYS_MKDIRAT = 289
SYS_MKNODAT = 290 SYS_MKNODAT = 290
SYS_FCHOWNAT = 291 SYS_FCHOWNAT = 291
SYS_FUTIMESAT = 292 SYS_FUTIMESAT = 292
SYS_NEWFSTATAT = 293 SYS_NEWFSTATAT = 293
SYS_UNLINKAT = 294 SYS_UNLINKAT = 294
SYS_RENAMEAT = 295 SYS_RENAMEAT = 295
SYS_LINKAT = 296 SYS_LINKAT = 296
SYS_SYMLINKAT = 297 SYS_SYMLINKAT = 297
SYS_READLINKAT = 298 SYS_READLINKAT = 298
SYS_FCHMODAT = 299 SYS_FCHMODAT = 299
SYS_FACCESSAT = 300 SYS_FACCESSAT = 300
SYS_PSELECT6 = 301 SYS_PSELECT6 = 301
SYS_PPOLL = 302 SYS_PPOLL = 302
SYS_UNSHARE = 303 SYS_UNSHARE = 303
SYS_SET_ROBUST_LIST = 304 SYS_SET_ROBUST_LIST = 304
SYS_GET_ROBUST_LIST = 305 SYS_GET_ROBUST_LIST = 305
SYS_SPLICE = 306 SYS_SPLICE = 306
SYS_SYNC_FILE_RANGE = 307 SYS_SYNC_FILE_RANGE = 307
SYS_TEE = 308 SYS_TEE = 308
SYS_VMSPLICE = 309 SYS_VMSPLICE = 309
SYS_MOVE_PAGES = 310 SYS_MOVE_PAGES = 310
SYS_GETCPU = 311 SYS_GETCPU = 311
SYS_EPOLL_PWAIT = 312 SYS_EPOLL_PWAIT = 312
SYS_UTIMES = 313 SYS_UTIMES = 313
SYS_FALLOCATE = 314 SYS_FALLOCATE = 314
SYS_UTIMENSAT = 315 SYS_UTIMENSAT = 315
SYS_SIGNALFD = 316 SYS_SIGNALFD = 316
SYS_TIMERFD = 317 SYS_TIMERFD = 317
SYS_EVENTFD = 318 SYS_EVENTFD = 318
SYS_TIMERFD_CREATE = 319 SYS_TIMERFD_CREATE = 319
SYS_TIMERFD_SETTIME = 320 SYS_TIMERFD_SETTIME = 320
SYS_TIMERFD_GETTIME = 321 SYS_TIMERFD_GETTIME = 321
SYS_SIGNALFD4 = 322 SYS_SIGNALFD4 = 322
SYS_EVENTFD2 = 323 SYS_EVENTFD2 = 323
SYS_INOTIFY_INIT1 = 324 SYS_INOTIFY_INIT1 = 324
SYS_PIPE2 = 325 SYS_PIPE2 = 325
SYS_DUP3 = 326 SYS_DUP3 = 326
SYS_EPOLL_CREATE1 = 327 SYS_EPOLL_CREATE1 = 327
SYS_PREADV = 328 SYS_PREADV = 328
SYS_PWRITEV = 329 SYS_PWRITEV = 329
SYS_RT_TGSIGQUEUEINFO = 330 SYS_RT_TGSIGQUEUEINFO = 330
SYS_PERF_EVENT_OPEN = 331 SYS_PERF_EVENT_OPEN = 331
SYS_FANOTIFY_INIT = 332 SYS_FANOTIFY_INIT = 332
SYS_FANOTIFY_MARK = 333 SYS_FANOTIFY_MARK = 333
SYS_PRLIMIT64 = 334 SYS_PRLIMIT64 = 334
SYS_NAME_TO_HANDLE_AT = 335 SYS_NAME_TO_HANDLE_AT = 335
SYS_OPEN_BY_HANDLE_AT = 336 SYS_OPEN_BY_HANDLE_AT = 336
SYS_CLOCK_ADJTIME = 337 SYS_CLOCK_ADJTIME = 337
SYS_SYNCFS = 338 SYS_SYNCFS = 338
SYS_SETNS = 339 SYS_SETNS = 339
SYS_PROCESS_VM_READV = 340 SYS_PROCESS_VM_READV = 340
SYS_PROCESS_VM_WRITEV = 341 SYS_PROCESS_VM_WRITEV = 341
SYS_S390_RUNTIME_INSTR = 342 SYS_S390_RUNTIME_INSTR = 342
SYS_KCMP = 343 SYS_KCMP = 343
SYS_FINIT_MODULE = 344 SYS_FINIT_MODULE = 344
SYS_SCHED_SETATTR = 345 SYS_SCHED_SETATTR = 345
SYS_SCHED_GETATTR = 346 SYS_SCHED_GETATTR = 346
SYS_RENAMEAT2 = 347 SYS_RENAMEAT2 = 347
SYS_SECCOMP = 348 SYS_SECCOMP = 348
SYS_GETRANDOM = 349 SYS_GETRANDOM = 349
SYS_MEMFD_CREATE = 350 SYS_MEMFD_CREATE = 350
SYS_BPF = 351 SYS_BPF = 351
SYS_S390_PCI_MMIO_WRITE = 352 SYS_S390_PCI_MMIO_WRITE = 352
SYS_S390_PCI_MMIO_READ = 353 SYS_S390_PCI_MMIO_READ = 353
SYS_EXECVEAT = 354 SYS_EXECVEAT = 354
SYS_USERFAULTFD = 355 SYS_USERFAULTFD = 355
SYS_MEMBARRIER = 356 SYS_MEMBARRIER = 356
SYS_RECVMMSG = 357 SYS_RECVMMSG = 357
SYS_SENDMMSG = 358 SYS_SENDMMSG = 358
SYS_SOCKET = 359 SYS_SOCKET = 359
SYS_SOCKETPAIR = 360 SYS_SOCKETPAIR = 360
SYS_BIND = 361 SYS_BIND = 361
SYS_CONNECT = 362 SYS_CONNECT = 362
SYS_LISTEN = 363 SYS_LISTEN = 363
SYS_ACCEPT4 = 364 SYS_ACCEPT4 = 364
SYS_GETSOCKOPT = 365 SYS_GETSOCKOPT = 365
SYS_SETSOCKOPT = 366 SYS_SETSOCKOPT = 366
SYS_GETSOCKNAME = 367 SYS_GETSOCKNAME = 367
SYS_GETPEERNAME = 368 SYS_GETPEERNAME = 368
SYS_SENDTO = 369 SYS_SENDTO = 369
SYS_SENDMSG = 370 SYS_SENDMSG = 370
SYS_RECVFROM = 371 SYS_RECVFROM = 371
SYS_RECVMSG = 372 SYS_RECVMSG = 372
SYS_SHUTDOWN = 373 SYS_SHUTDOWN = 373
SYS_MLOCK2 = 374 SYS_MLOCK2 = 374
SYS_COPY_FILE_RANGE = 375 SYS_COPY_FILE_RANGE = 375
SYS_PREADV2 = 376 SYS_PREADV2 = 376
SYS_PWRITEV2 = 377 SYS_PWRITEV2 = 377
SYS_S390_GUARDED_STORAGE = 378 SYS_S390_GUARDED_STORAGE = 378
SYS_STATX = 379 SYS_STATX = 379
SYS_S390_STHYI = 380 SYS_S390_STHYI = 380
SYS_KEXEC_FILE_LOAD = 381 SYS_KEXEC_FILE_LOAD = 381
SYS_IO_PGETEVENTS = 382 SYS_IO_PGETEVENTS = 382
SYS_RSEQ = 383 SYS_RSEQ = 383
SYS_PKEY_MPROTECT = 384 SYS_PKEY_MPROTECT = 384
SYS_PKEY_ALLOC = 385 SYS_PKEY_ALLOC = 385
SYS_PKEY_FREE = 386 SYS_PKEY_FREE = 386
SYS_SEMTIMEDOP = 392 SYS_SEMTIMEDOP = 392
SYS_SEMGET = 393 SYS_SEMGET = 393
SYS_SEMCTL = 394 SYS_SEMCTL = 394
SYS_SHMGET = 395 SYS_SHMGET = 395
SYS_SHMCTL = 396 SYS_SHMCTL = 396
SYS_SHMAT = 397 SYS_SHMAT = 397
SYS_SHMDT = 398 SYS_SHMDT = 398
SYS_MSGGET = 399 SYS_MSGGET = 399
SYS_MSGSND = 400 SYS_MSGSND = 400
SYS_MSGRCV = 401 SYS_MSGRCV = 401
SYS_MSGCTL = 402 SYS_MSGCTL = 402
SYS_PIDFD_SEND_SIGNAL = 424 SYS_PIDFD_SEND_SIGNAL = 424
SYS_IO_URING_SETUP = 425 SYS_IO_URING_SETUP = 425
SYS_IO_URING_ENTER = 426 SYS_IO_URING_ENTER = 426
SYS_IO_URING_REGISTER = 427 SYS_IO_URING_REGISTER = 427
SYS_OPEN_TREE = 428 SYS_OPEN_TREE = 428
SYS_MOVE_MOUNT = 429 SYS_MOVE_MOUNT = 429
SYS_FSOPEN = 430 SYS_FSOPEN = 430
SYS_FSCONFIG = 431 SYS_FSCONFIG = 431
SYS_FSMOUNT = 432 SYS_FSMOUNT = 432
SYS_FSPICK = 433 SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434 SYS_PIDFD_OPEN = 434
SYS_CLONE3 = 435 SYS_CLONE3 = 435
SYS_CLOSE_RANGE = 436 SYS_CLOSE_RANGE = 436
SYS_OPENAT2 = 437 SYS_OPENAT2 = 437
SYS_PIDFD_GETFD = 438 SYS_PIDFD_GETFD = 438
SYS_FACCESSAT2 = 439 SYS_FACCESSAT2 = 439
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_QUOTACTL_FD = 443
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View File

@ -7,379 +7,383 @@
package unix package unix
const ( const (
SYS_RESTART_SYSCALL = 0 SYS_RESTART_SYSCALL = 0
SYS_EXIT = 1 SYS_EXIT = 1
SYS_FORK = 2 SYS_FORK = 2
SYS_READ = 3 SYS_READ = 3
SYS_WRITE = 4 SYS_WRITE = 4
SYS_OPEN = 5 SYS_OPEN = 5
SYS_CLOSE = 6 SYS_CLOSE = 6
SYS_WAIT4 = 7 SYS_WAIT4 = 7
SYS_CREAT = 8 SYS_CREAT = 8
SYS_LINK = 9 SYS_LINK = 9
SYS_UNLINK = 10 SYS_UNLINK = 10
SYS_EXECV = 11 SYS_EXECV = 11
SYS_CHDIR = 12 SYS_CHDIR = 12
SYS_CHOWN = 13 SYS_CHOWN = 13
SYS_MKNOD = 14 SYS_MKNOD = 14
SYS_CHMOD = 15 SYS_CHMOD = 15
SYS_LCHOWN = 16 SYS_LCHOWN = 16
SYS_BRK = 17 SYS_BRK = 17
SYS_PERFCTR = 18 SYS_PERFCTR = 18
SYS_LSEEK = 19 SYS_LSEEK = 19
SYS_GETPID = 20 SYS_GETPID = 20
SYS_CAPGET = 21 SYS_CAPGET = 21
SYS_CAPSET = 22 SYS_CAPSET = 22
SYS_SETUID = 23 SYS_SETUID = 23
SYS_GETUID = 24 SYS_GETUID = 24
SYS_VMSPLICE = 25 SYS_VMSPLICE = 25
SYS_PTRACE = 26 SYS_PTRACE = 26
SYS_ALARM = 27 SYS_ALARM = 27
SYS_SIGALTSTACK = 28 SYS_SIGALTSTACK = 28
SYS_PAUSE = 29 SYS_PAUSE = 29
SYS_UTIME = 30 SYS_UTIME = 30
SYS_ACCESS = 33 SYS_ACCESS = 33
SYS_NICE = 34 SYS_NICE = 34
SYS_SYNC = 36 SYS_SYNC = 36
SYS_KILL = 37 SYS_KILL = 37
SYS_STAT = 38 SYS_STAT = 38
SYS_SENDFILE = 39 SYS_SENDFILE = 39
SYS_LSTAT = 40 SYS_LSTAT = 40
SYS_DUP = 41 SYS_DUP = 41
SYS_PIPE = 42 SYS_PIPE = 42
SYS_TIMES = 43 SYS_TIMES = 43
SYS_UMOUNT2 = 45 SYS_UMOUNT2 = 45
SYS_SETGID = 46 SYS_SETGID = 46
SYS_GETGID = 47 SYS_GETGID = 47
SYS_SIGNAL = 48 SYS_SIGNAL = 48
SYS_GETEUID = 49 SYS_GETEUID = 49
SYS_GETEGID = 50 SYS_GETEGID = 50
SYS_ACCT = 51 SYS_ACCT = 51
SYS_MEMORY_ORDERING = 52 SYS_MEMORY_ORDERING = 52
SYS_IOCTL = 54 SYS_IOCTL = 54
SYS_REBOOT = 55 SYS_REBOOT = 55
SYS_SYMLINK = 57 SYS_SYMLINK = 57
SYS_READLINK = 58 SYS_READLINK = 58
SYS_EXECVE = 59 SYS_EXECVE = 59
SYS_UMASK = 60 SYS_UMASK = 60
SYS_CHROOT = 61 SYS_CHROOT = 61
SYS_FSTAT = 62 SYS_FSTAT = 62
SYS_FSTAT64 = 63 SYS_FSTAT64 = 63
SYS_GETPAGESIZE = 64 SYS_GETPAGESIZE = 64
SYS_MSYNC = 65 SYS_MSYNC = 65
SYS_VFORK = 66 SYS_VFORK = 66
SYS_PREAD64 = 67 SYS_PREAD64 = 67
SYS_PWRITE64 = 68 SYS_PWRITE64 = 68
SYS_MMAP = 71 SYS_MMAP = 71
SYS_MUNMAP = 73 SYS_MUNMAP = 73
SYS_MPROTECT = 74 SYS_MPROTECT = 74
SYS_MADVISE = 75 SYS_MADVISE = 75
SYS_VHANGUP = 76 SYS_VHANGUP = 76
SYS_MINCORE = 78 SYS_MINCORE = 78
SYS_GETGROUPS = 79 SYS_GETGROUPS = 79
SYS_SETGROUPS = 80 SYS_SETGROUPS = 80
SYS_GETPGRP = 81 SYS_GETPGRP = 81
SYS_SETITIMER = 83 SYS_SETITIMER = 83
SYS_SWAPON = 85 SYS_SWAPON = 85
SYS_GETITIMER = 86 SYS_GETITIMER = 86
SYS_SETHOSTNAME = 88 SYS_SETHOSTNAME = 88
SYS_DUP2 = 90 SYS_DUP2 = 90
SYS_FCNTL = 92 SYS_FCNTL = 92
SYS_SELECT = 93 SYS_SELECT = 93
SYS_FSYNC = 95 SYS_FSYNC = 95
SYS_SETPRIORITY = 96 SYS_SETPRIORITY = 96
SYS_SOCKET = 97 SYS_SOCKET = 97
SYS_CONNECT = 98 SYS_CONNECT = 98
SYS_ACCEPT = 99 SYS_ACCEPT = 99
SYS_GETPRIORITY = 100 SYS_GETPRIORITY = 100
SYS_RT_SIGRETURN = 101 SYS_RT_SIGRETURN = 101
SYS_RT_SIGACTION = 102 SYS_RT_SIGACTION = 102
SYS_RT_SIGPROCMASK = 103 SYS_RT_SIGPROCMASK = 103
SYS_RT_SIGPENDING = 104 SYS_RT_SIGPENDING = 104
SYS_RT_SIGTIMEDWAIT = 105 SYS_RT_SIGTIMEDWAIT = 105
SYS_RT_SIGQUEUEINFO = 106 SYS_RT_SIGQUEUEINFO = 106
SYS_RT_SIGSUSPEND = 107 SYS_RT_SIGSUSPEND = 107
SYS_SETRESUID = 108 SYS_SETRESUID = 108
SYS_GETRESUID = 109 SYS_GETRESUID = 109
SYS_SETRESGID = 110 SYS_SETRESGID = 110
SYS_GETRESGID = 111 SYS_GETRESGID = 111
SYS_RECVMSG = 113 SYS_RECVMSG = 113
SYS_SENDMSG = 114 SYS_SENDMSG = 114
SYS_GETTIMEOFDAY = 116 SYS_GETTIMEOFDAY = 116
SYS_GETRUSAGE = 117 SYS_GETRUSAGE = 117
SYS_GETSOCKOPT = 118 SYS_GETSOCKOPT = 118
SYS_GETCWD = 119 SYS_GETCWD = 119
SYS_READV = 120 SYS_READV = 120
SYS_WRITEV = 121 SYS_WRITEV = 121
SYS_SETTIMEOFDAY = 122 SYS_SETTIMEOFDAY = 122
SYS_FCHOWN = 123 SYS_FCHOWN = 123
SYS_FCHMOD = 124 SYS_FCHMOD = 124
SYS_RECVFROM = 125 SYS_RECVFROM = 125
SYS_SETREUID = 126 SYS_SETREUID = 126
SYS_SETREGID = 127 SYS_SETREGID = 127
SYS_RENAME = 128 SYS_RENAME = 128
SYS_TRUNCATE = 129 SYS_TRUNCATE = 129
SYS_FTRUNCATE = 130 SYS_FTRUNCATE = 130
SYS_FLOCK = 131 SYS_FLOCK = 131
SYS_LSTAT64 = 132 SYS_LSTAT64 = 132
SYS_SENDTO = 133 SYS_SENDTO = 133
SYS_SHUTDOWN = 134 SYS_SHUTDOWN = 134
SYS_SOCKETPAIR = 135 SYS_SOCKETPAIR = 135
SYS_MKDIR = 136 SYS_MKDIR = 136
SYS_RMDIR = 137 SYS_RMDIR = 137
SYS_UTIMES = 138 SYS_UTIMES = 138
SYS_STAT64 = 139 SYS_STAT64 = 139
SYS_SENDFILE64 = 140 SYS_SENDFILE64 = 140
SYS_GETPEERNAME = 141 SYS_GETPEERNAME = 141
SYS_FUTEX = 142 SYS_FUTEX = 142
SYS_GETTID = 143 SYS_GETTID = 143
SYS_GETRLIMIT = 144 SYS_GETRLIMIT = 144
SYS_SETRLIMIT = 145 SYS_SETRLIMIT = 145
SYS_PIVOT_ROOT = 146 SYS_PIVOT_ROOT = 146
SYS_PRCTL = 147 SYS_PRCTL = 147
SYS_PCICONFIG_READ = 148 SYS_PCICONFIG_READ = 148
SYS_PCICONFIG_WRITE = 149 SYS_PCICONFIG_WRITE = 149
SYS_GETSOCKNAME = 150 SYS_GETSOCKNAME = 150
SYS_INOTIFY_INIT = 151 SYS_INOTIFY_INIT = 151
SYS_INOTIFY_ADD_WATCH = 152 SYS_INOTIFY_ADD_WATCH = 152
SYS_POLL = 153 SYS_POLL = 153
SYS_GETDENTS64 = 154 SYS_GETDENTS64 = 154
SYS_INOTIFY_RM_WATCH = 156 SYS_INOTIFY_RM_WATCH = 156
SYS_STATFS = 157 SYS_STATFS = 157
SYS_FSTATFS = 158 SYS_FSTATFS = 158
SYS_UMOUNT = 159 SYS_UMOUNT = 159
SYS_SCHED_SET_AFFINITY = 160 SYS_SCHED_SET_AFFINITY = 160
SYS_SCHED_GET_AFFINITY = 161 SYS_SCHED_GET_AFFINITY = 161
SYS_GETDOMAINNAME = 162 SYS_GETDOMAINNAME = 162
SYS_SETDOMAINNAME = 163 SYS_SETDOMAINNAME = 163
SYS_UTRAP_INSTALL = 164 SYS_UTRAP_INSTALL = 164
SYS_QUOTACTL = 165 SYS_QUOTACTL = 165
SYS_SET_TID_ADDRESS = 166 SYS_SET_TID_ADDRESS = 166
SYS_MOUNT = 167 SYS_MOUNT = 167
SYS_USTAT = 168 SYS_USTAT = 168
SYS_SETXATTR = 169 SYS_SETXATTR = 169
SYS_LSETXATTR = 170 SYS_LSETXATTR = 170
SYS_FSETXATTR = 171 SYS_FSETXATTR = 171
SYS_GETXATTR = 172 SYS_GETXATTR = 172
SYS_LGETXATTR = 173 SYS_LGETXATTR = 173
SYS_GETDENTS = 174 SYS_GETDENTS = 174
SYS_SETSID = 175 SYS_SETSID = 175
SYS_FCHDIR = 176 SYS_FCHDIR = 176
SYS_FGETXATTR = 177 SYS_FGETXATTR = 177
SYS_LISTXATTR = 178 SYS_LISTXATTR = 178
SYS_LLISTXATTR = 179 SYS_LLISTXATTR = 179
SYS_FLISTXATTR = 180 SYS_FLISTXATTR = 180
SYS_REMOVEXATTR = 181 SYS_REMOVEXATTR = 181
SYS_LREMOVEXATTR = 182 SYS_LREMOVEXATTR = 182
SYS_SIGPENDING = 183 SYS_SIGPENDING = 183
SYS_QUERY_MODULE = 184 SYS_QUERY_MODULE = 184
SYS_SETPGID = 185 SYS_SETPGID = 185
SYS_FREMOVEXATTR = 186 SYS_FREMOVEXATTR = 186
SYS_TKILL = 187 SYS_TKILL = 187
SYS_EXIT_GROUP = 188 SYS_EXIT_GROUP = 188
SYS_UNAME = 189 SYS_UNAME = 189
SYS_INIT_MODULE = 190 SYS_INIT_MODULE = 190
SYS_PERSONALITY = 191 SYS_PERSONALITY = 191
SYS_REMAP_FILE_PAGES = 192 SYS_REMAP_FILE_PAGES = 192
SYS_EPOLL_CREATE = 193 SYS_EPOLL_CREATE = 193
SYS_EPOLL_CTL = 194 SYS_EPOLL_CTL = 194
SYS_EPOLL_WAIT = 195 SYS_EPOLL_WAIT = 195
SYS_IOPRIO_SET = 196 SYS_IOPRIO_SET = 196
SYS_GETPPID = 197 SYS_GETPPID = 197
SYS_SIGACTION = 198 SYS_SIGACTION = 198
SYS_SGETMASK = 199 SYS_SGETMASK = 199
SYS_SSETMASK = 200 SYS_SSETMASK = 200
SYS_SIGSUSPEND = 201 SYS_SIGSUSPEND = 201
SYS_OLDLSTAT = 202 SYS_OLDLSTAT = 202
SYS_USELIB = 203 SYS_USELIB = 203
SYS_READDIR = 204 SYS_READDIR = 204
SYS_READAHEAD = 205 SYS_READAHEAD = 205
SYS_SOCKETCALL = 206 SYS_SOCKETCALL = 206
SYS_SYSLOG = 207 SYS_SYSLOG = 207
SYS_LOOKUP_DCOOKIE = 208 SYS_LOOKUP_DCOOKIE = 208
SYS_FADVISE64 = 209 SYS_FADVISE64 = 209
SYS_FADVISE64_64 = 210 SYS_FADVISE64_64 = 210
SYS_TGKILL = 211 SYS_TGKILL = 211
SYS_WAITPID = 212 SYS_WAITPID = 212
SYS_SWAPOFF = 213 SYS_SWAPOFF = 213
SYS_SYSINFO = 214 SYS_SYSINFO = 214
SYS_IPC = 215 SYS_IPC = 215
SYS_SIGRETURN = 216 SYS_SIGRETURN = 216
SYS_CLONE = 217 SYS_CLONE = 217
SYS_IOPRIO_GET = 218 SYS_IOPRIO_GET = 218
SYS_ADJTIMEX = 219 SYS_ADJTIMEX = 219
SYS_SIGPROCMASK = 220 SYS_SIGPROCMASK = 220
SYS_CREATE_MODULE = 221 SYS_CREATE_MODULE = 221
SYS_DELETE_MODULE = 222 SYS_DELETE_MODULE = 222
SYS_GET_KERNEL_SYMS = 223 SYS_GET_KERNEL_SYMS = 223
SYS_GETPGID = 224 SYS_GETPGID = 224
SYS_BDFLUSH = 225 SYS_BDFLUSH = 225
SYS_SYSFS = 226 SYS_SYSFS = 226
SYS_AFS_SYSCALL = 227 SYS_AFS_SYSCALL = 227
SYS_SETFSUID = 228 SYS_SETFSUID = 228
SYS_SETFSGID = 229 SYS_SETFSGID = 229
SYS__NEWSELECT = 230 SYS__NEWSELECT = 230
SYS_SPLICE = 232 SYS_SPLICE = 232
SYS_STIME = 233 SYS_STIME = 233
SYS_STATFS64 = 234 SYS_STATFS64 = 234
SYS_FSTATFS64 = 235 SYS_FSTATFS64 = 235
SYS__LLSEEK = 236 SYS__LLSEEK = 236
SYS_MLOCK = 237 SYS_MLOCK = 237
SYS_MUNLOCK = 238 SYS_MUNLOCK = 238
SYS_MLOCKALL = 239 SYS_MLOCKALL = 239
SYS_MUNLOCKALL = 240 SYS_MUNLOCKALL = 240
SYS_SCHED_SETPARAM = 241 SYS_SCHED_SETPARAM = 241
SYS_SCHED_GETPARAM = 242 SYS_SCHED_GETPARAM = 242
SYS_SCHED_SETSCHEDULER = 243 SYS_SCHED_SETSCHEDULER = 243
SYS_SCHED_GETSCHEDULER = 244 SYS_SCHED_GETSCHEDULER = 244
SYS_SCHED_YIELD = 245 SYS_SCHED_YIELD = 245
SYS_SCHED_GET_PRIORITY_MAX = 246 SYS_SCHED_GET_PRIORITY_MAX = 246
SYS_SCHED_GET_PRIORITY_MIN = 247 SYS_SCHED_GET_PRIORITY_MIN = 247
SYS_SCHED_RR_GET_INTERVAL = 248 SYS_SCHED_RR_GET_INTERVAL = 248
SYS_NANOSLEEP = 249 SYS_NANOSLEEP = 249
SYS_MREMAP = 250 SYS_MREMAP = 250
SYS__SYSCTL = 251 SYS__SYSCTL = 251
SYS_GETSID = 252 SYS_GETSID = 252
SYS_FDATASYNC = 253 SYS_FDATASYNC = 253
SYS_NFSSERVCTL = 254 SYS_NFSSERVCTL = 254
SYS_SYNC_FILE_RANGE = 255 SYS_SYNC_FILE_RANGE = 255
SYS_CLOCK_SETTIME = 256 SYS_CLOCK_SETTIME = 256
SYS_CLOCK_GETTIME = 257 SYS_CLOCK_GETTIME = 257
SYS_CLOCK_GETRES = 258 SYS_CLOCK_GETRES = 258
SYS_CLOCK_NANOSLEEP = 259 SYS_CLOCK_NANOSLEEP = 259
SYS_SCHED_GETAFFINITY = 260 SYS_SCHED_GETAFFINITY = 260
SYS_SCHED_SETAFFINITY = 261 SYS_SCHED_SETAFFINITY = 261
SYS_TIMER_SETTIME = 262 SYS_TIMER_SETTIME = 262
SYS_TIMER_GETTIME = 263 SYS_TIMER_GETTIME = 263
SYS_TIMER_GETOVERRUN = 264 SYS_TIMER_GETOVERRUN = 264
SYS_TIMER_DELETE = 265 SYS_TIMER_DELETE = 265
SYS_TIMER_CREATE = 266 SYS_TIMER_CREATE = 266
SYS_VSERVER = 267 SYS_VSERVER = 267
SYS_IO_SETUP = 268 SYS_IO_SETUP = 268
SYS_IO_DESTROY = 269 SYS_IO_DESTROY = 269
SYS_IO_SUBMIT = 270 SYS_IO_SUBMIT = 270
SYS_IO_CANCEL = 271 SYS_IO_CANCEL = 271
SYS_IO_GETEVENTS = 272 SYS_IO_GETEVENTS = 272
SYS_MQ_OPEN = 273 SYS_MQ_OPEN = 273
SYS_MQ_UNLINK = 274 SYS_MQ_UNLINK = 274
SYS_MQ_TIMEDSEND = 275 SYS_MQ_TIMEDSEND = 275
SYS_MQ_TIMEDRECEIVE = 276 SYS_MQ_TIMEDRECEIVE = 276
SYS_MQ_NOTIFY = 277 SYS_MQ_NOTIFY = 277
SYS_MQ_GETSETATTR = 278 SYS_MQ_GETSETATTR = 278
SYS_WAITID = 279 SYS_WAITID = 279
SYS_TEE = 280 SYS_TEE = 280
SYS_ADD_KEY = 281 SYS_ADD_KEY = 281
SYS_REQUEST_KEY = 282 SYS_REQUEST_KEY = 282
SYS_KEYCTL = 283 SYS_KEYCTL = 283
SYS_OPENAT = 284 SYS_OPENAT = 284
SYS_MKDIRAT = 285 SYS_MKDIRAT = 285
SYS_MKNODAT = 286 SYS_MKNODAT = 286
SYS_FCHOWNAT = 287 SYS_FCHOWNAT = 287
SYS_FUTIMESAT = 288 SYS_FUTIMESAT = 288
SYS_FSTATAT64 = 289 SYS_FSTATAT64 = 289
SYS_UNLINKAT = 290 SYS_UNLINKAT = 290
SYS_RENAMEAT = 291 SYS_RENAMEAT = 291
SYS_LINKAT = 292 SYS_LINKAT = 292
SYS_SYMLINKAT = 293 SYS_SYMLINKAT = 293
SYS_READLINKAT = 294 SYS_READLINKAT = 294
SYS_FCHMODAT = 295 SYS_FCHMODAT = 295
SYS_FACCESSAT = 296 SYS_FACCESSAT = 296
SYS_PSELECT6 = 297 SYS_PSELECT6 = 297
SYS_PPOLL = 298 SYS_PPOLL = 298
SYS_UNSHARE = 299 SYS_UNSHARE = 299
SYS_SET_ROBUST_LIST = 300 SYS_SET_ROBUST_LIST = 300
SYS_GET_ROBUST_LIST = 301 SYS_GET_ROBUST_LIST = 301
SYS_MIGRATE_PAGES = 302 SYS_MIGRATE_PAGES = 302
SYS_MBIND = 303 SYS_MBIND = 303
SYS_GET_MEMPOLICY = 304 SYS_GET_MEMPOLICY = 304
SYS_SET_MEMPOLICY = 305 SYS_SET_MEMPOLICY = 305
SYS_KEXEC_LOAD = 306 SYS_KEXEC_LOAD = 306
SYS_MOVE_PAGES = 307 SYS_MOVE_PAGES = 307
SYS_GETCPU = 308 SYS_GETCPU = 308
SYS_EPOLL_PWAIT = 309 SYS_EPOLL_PWAIT = 309
SYS_UTIMENSAT = 310 SYS_UTIMENSAT = 310
SYS_SIGNALFD = 311 SYS_SIGNALFD = 311
SYS_TIMERFD_CREATE = 312 SYS_TIMERFD_CREATE = 312
SYS_EVENTFD = 313 SYS_EVENTFD = 313
SYS_FALLOCATE = 314 SYS_FALLOCATE = 314
SYS_TIMERFD_SETTIME = 315 SYS_TIMERFD_SETTIME = 315
SYS_TIMERFD_GETTIME = 316 SYS_TIMERFD_GETTIME = 316
SYS_SIGNALFD4 = 317 SYS_SIGNALFD4 = 317
SYS_EVENTFD2 = 318 SYS_EVENTFD2 = 318
SYS_EPOLL_CREATE1 = 319 SYS_EPOLL_CREATE1 = 319
SYS_DUP3 = 320 SYS_DUP3 = 320
SYS_PIPE2 = 321 SYS_PIPE2 = 321
SYS_INOTIFY_INIT1 = 322 SYS_INOTIFY_INIT1 = 322
SYS_ACCEPT4 = 323 SYS_ACCEPT4 = 323
SYS_PREADV = 324 SYS_PREADV = 324
SYS_PWRITEV = 325 SYS_PWRITEV = 325
SYS_RT_TGSIGQUEUEINFO = 326 SYS_RT_TGSIGQUEUEINFO = 326
SYS_PERF_EVENT_OPEN = 327 SYS_PERF_EVENT_OPEN = 327
SYS_RECVMMSG = 328 SYS_RECVMMSG = 328
SYS_FANOTIFY_INIT = 329 SYS_FANOTIFY_INIT = 329
SYS_FANOTIFY_MARK = 330 SYS_FANOTIFY_MARK = 330
SYS_PRLIMIT64 = 331 SYS_PRLIMIT64 = 331
SYS_NAME_TO_HANDLE_AT = 332 SYS_NAME_TO_HANDLE_AT = 332
SYS_OPEN_BY_HANDLE_AT = 333 SYS_OPEN_BY_HANDLE_AT = 333
SYS_CLOCK_ADJTIME = 334 SYS_CLOCK_ADJTIME = 334
SYS_SYNCFS = 335 SYS_SYNCFS = 335
SYS_SENDMMSG = 336 SYS_SENDMMSG = 336
SYS_SETNS = 337 SYS_SETNS = 337
SYS_PROCESS_VM_READV = 338 SYS_PROCESS_VM_READV = 338
SYS_PROCESS_VM_WRITEV = 339 SYS_PROCESS_VM_WRITEV = 339
SYS_KERN_FEATURES = 340 SYS_KERN_FEATURES = 340
SYS_KCMP = 341 SYS_KCMP = 341
SYS_FINIT_MODULE = 342 SYS_FINIT_MODULE = 342
SYS_SCHED_SETATTR = 343 SYS_SCHED_SETATTR = 343
SYS_SCHED_GETATTR = 344 SYS_SCHED_GETATTR = 344
SYS_RENAMEAT2 = 345 SYS_RENAMEAT2 = 345
SYS_SECCOMP = 346 SYS_SECCOMP = 346
SYS_GETRANDOM = 347 SYS_GETRANDOM = 347
SYS_MEMFD_CREATE = 348 SYS_MEMFD_CREATE = 348
SYS_BPF = 349 SYS_BPF = 349
SYS_EXECVEAT = 350 SYS_EXECVEAT = 350
SYS_MEMBARRIER = 351 SYS_MEMBARRIER = 351
SYS_USERFAULTFD = 352 SYS_USERFAULTFD = 352
SYS_BIND = 353 SYS_BIND = 353
SYS_LISTEN = 354 SYS_LISTEN = 354
SYS_SETSOCKOPT = 355 SYS_SETSOCKOPT = 355
SYS_MLOCK2 = 356 SYS_MLOCK2 = 356
SYS_COPY_FILE_RANGE = 357 SYS_COPY_FILE_RANGE = 357
SYS_PREADV2 = 358 SYS_PREADV2 = 358
SYS_PWRITEV2 = 359 SYS_PWRITEV2 = 359
SYS_STATX = 360 SYS_STATX = 360
SYS_IO_PGETEVENTS = 361 SYS_IO_PGETEVENTS = 361
SYS_PKEY_MPROTECT = 362 SYS_PKEY_MPROTECT = 362
SYS_PKEY_ALLOC = 363 SYS_PKEY_ALLOC = 363
SYS_PKEY_FREE = 364 SYS_PKEY_FREE = 364
SYS_RSEQ = 365 SYS_RSEQ = 365
SYS_SEMTIMEDOP = 392 SYS_SEMTIMEDOP = 392
SYS_SEMGET = 393 SYS_SEMGET = 393
SYS_SEMCTL = 394 SYS_SEMCTL = 394
SYS_SHMGET = 395 SYS_SHMGET = 395
SYS_SHMCTL = 396 SYS_SHMCTL = 396
SYS_SHMAT = 397 SYS_SHMAT = 397
SYS_SHMDT = 398 SYS_SHMDT = 398
SYS_MSGGET = 399 SYS_MSGGET = 399
SYS_MSGSND = 400 SYS_MSGSND = 400
SYS_MSGRCV = 401 SYS_MSGRCV = 401
SYS_MSGCTL = 402 SYS_MSGCTL = 402
SYS_PIDFD_SEND_SIGNAL = 424 SYS_PIDFD_SEND_SIGNAL = 424
SYS_IO_URING_SETUP = 425 SYS_IO_URING_SETUP = 425
SYS_IO_URING_ENTER = 426 SYS_IO_URING_ENTER = 426
SYS_IO_URING_REGISTER = 427 SYS_IO_URING_REGISTER = 427
SYS_OPEN_TREE = 428 SYS_OPEN_TREE = 428
SYS_MOVE_MOUNT = 429 SYS_MOVE_MOUNT = 429
SYS_FSOPEN = 430 SYS_FSOPEN = 430
SYS_FSCONFIG = 431 SYS_FSCONFIG = 431
SYS_FSMOUNT = 432 SYS_FSMOUNT = 432
SYS_FSPICK = 433 SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434 SYS_PIDFD_OPEN = 434
SYS_CLOSE_RANGE = 436 SYS_CLOSE_RANGE = 436
SYS_OPENAT2 = 437 SYS_OPENAT2 = 437
SYS_PIDFD_GETFD = 438 SYS_PIDFD_GETFD = 438
SYS_FACCESSAT2 = 439 SYS_FACCESSAT2 = 439
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_QUOTACTL_FD = 443
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View File

@ -535,3 +535,107 @@ type CtlInfo struct {
Id uint32 Id uint32
Name [96]byte Name [96]byte
} }
const SizeofKinfoProc = 0x288
type Eproc struct {
Paddr uintptr
Sess uintptr
Pcred Pcred
Ucred Ucred
Vm Vmspace
Ppid int32
Pgid int32
Jobc int16
Tdev int32
Tpgid int32
Tsess uintptr
Wmesg [8]int8
Xsize int32
Xrssize int16
Xccount int16
Xswrss int16
Flag int32
Login [12]int8
Spare [4]int32
_ [4]byte
}
type ExternProc struct {
P_starttime Timeval
P_vmspace *Vmspace
P_sigacts uintptr
P_flag int32
P_stat int8
P_pid int32
P_oppid int32
P_dupfd int32
User_stack *int8
Exit_thread *byte
P_debugger int32
Sigwait int32
P_estcpu uint32
P_cpticks int32
P_pctcpu uint32
P_wchan *byte
P_wmesg *int8
P_swtime uint32
P_slptime uint32
P_realtimer Itimerval
P_rtime Timeval
P_uticks uint64
P_sticks uint64
P_iticks uint64
P_traceflag int32
P_tracep uintptr
P_siglist int32
P_textvp uintptr
P_holdcnt int32
P_sigmask uint32
P_sigignore uint32
P_sigcatch uint32
P_priority uint8
P_usrpri uint8
P_nice int8
P_comm [17]int8
P_pgrp uintptr
P_addr uintptr
P_xstat uint16
P_acflag uint16
P_ru *Rusage
}
type Itimerval struct {
Interval Timeval
Value Timeval
}
type KinfoProc struct {
Proc ExternProc
Eproc Eproc
}
type Vmspace struct {
Dummy int32
Dummy2 *int8
Dummy3 [5]int32
Dummy4 [3]*int8
}
type Pcred struct {
Pc_lock [72]int8
Pc_ucred uintptr
P_ruid uint32
P_svuid uint32
P_rgid uint32
P_svgid uint32
P_refcnt int32
_ [4]byte
}
type Ucred struct {
Ref int32
Uid uint32
Ngroups int16
Groups [16]uint32
}

View File

@ -535,3 +535,107 @@ type CtlInfo struct {
Id uint32 Id uint32
Name [96]byte Name [96]byte
} }
const SizeofKinfoProc = 0x288
type Eproc struct {
Paddr uintptr
Sess uintptr
Pcred Pcred
Ucred Ucred
Vm Vmspace
Ppid int32
Pgid int32
Jobc int16
Tdev int32
Tpgid int32
Tsess uintptr
Wmesg [8]int8
Xsize int32
Xrssize int16
Xccount int16
Xswrss int16
Flag int32
Login [12]int8
Spare [4]int32
_ [4]byte
}
type ExternProc struct {
P_starttime Timeval
P_vmspace *Vmspace
P_sigacts uintptr
P_flag int32
P_stat int8
P_pid int32
P_oppid int32
P_dupfd int32
User_stack *int8
Exit_thread *byte
P_debugger int32
Sigwait int32
P_estcpu uint32
P_cpticks int32
P_pctcpu uint32
P_wchan *byte
P_wmesg *int8
P_swtime uint32
P_slptime uint32
P_realtimer Itimerval
P_rtime Timeval
P_uticks uint64
P_sticks uint64
P_iticks uint64
P_traceflag int32
P_tracep uintptr
P_siglist int32
P_textvp uintptr
P_holdcnt int32
P_sigmask uint32
P_sigignore uint32
P_sigcatch uint32
P_priority uint8
P_usrpri uint8
P_nice int8
P_comm [17]int8
P_pgrp uintptr
P_addr uintptr
P_xstat uint16
P_acflag uint16
P_ru *Rusage
}
type Itimerval struct {
Interval Timeval
Value Timeval
}
type KinfoProc struct {
Proc ExternProc
Eproc Eproc
}
type Vmspace struct {
Dummy int32
Dummy2 *int8
Dummy3 [5]int32
Dummy4 [3]*int8
}
type Pcred struct {
Pc_lock [72]int8
Pc_ucred uintptr
P_ruid uint32
P_svuid uint32
P_rgid uint32
P_svgid uint32
P_refcnt int32
_ [4]byte
}
type Ucred struct {
Ref int32
Uid uint32
Ngroups int16
Groups [16]uint32
}

View File

@ -31,6 +31,8 @@ type Timeval struct {
Usec int32 Usec int32
} }
type Time_t int32
type Rusage struct { type Rusage struct {
Utime Timeval Utime Timeval
Stime Timeval Stime Timeval

View File

@ -31,6 +31,8 @@ type Timeval struct {
Usec int64 Usec int64
} }
type Time_t int64
type Rusage struct { type Rusage struct {
Utime Timeval Utime Timeval
Stime Timeval Stime Timeval

View File

@ -33,6 +33,8 @@ type Timeval struct {
_ [4]byte _ [4]byte
} }
type Time_t int32
type Rusage struct { type Rusage struct {
Utime Timeval Utime Timeval
Stime Timeval Stime Timeval

View File

@ -31,6 +31,8 @@ type Timeval struct {
Usec int64 Usec int64
} }
type Time_t int64
type Rusage struct { type Rusage struct {
Utime Timeval Utime Timeval
Stime Timeval Stime Timeval

View File

@ -13,6 +13,8 @@ const (
I_STR = 0x5308 I_STR = 0x5308
I_POP = 0x5303 I_POP = 0x5303
I_PUSH = 0x5302 I_PUSH = 0x5302
I_LINK = 0x530c
I_UNLINK = 0x530d
I_PLINK = 0x5316 I_PLINK = 0x5316
I_PUNLINK = 0x5317 I_PUNLINK = 0x5317

View File

@ -452,6 +452,11 @@ type CanFilter struct {
Mask uint32 Mask uint32
} }
type TCPRepairOpt struct {
Code uint32
Val uint32
}
const ( const (
SizeofSockaddrInet4 = 0x10 SizeofSockaddrInet4 = 0x10
SizeofSockaddrInet6 = 0x1c SizeofSockaddrInet6 = 0x1c
@ -484,6 +489,7 @@ const (
SizeofUcred = 0xc SizeofUcred = 0xc
SizeofTCPInfo = 0x68 SizeofTCPInfo = 0x68
SizeofCanFilter = 0x8 SizeofCanFilter = 0x8
SizeofTCPRepairOpt = 0x8
) )
const ( const (
@ -681,6 +687,16 @@ type NdMsg struct {
Type uint8 Type uint8
} }
const (
ICMP_FILTER = 0x1
ICMPV6_FILTER = 0x1
ICMPV6_FILTER_BLOCK = 0x1
ICMPV6_FILTER_BLOCKOTHERS = 0x3
ICMPV6_FILTER_PASS = 0x2
ICMPV6_FILTER_PASSONLY = 0x4
)
const ( const (
SizeofSockFilter = 0x8 SizeofSockFilter = 0x8
) )
@ -1001,7 +1017,7 @@ const (
PERF_COUNT_SW_EMULATION_FAULTS = 0x8 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
PERF_COUNT_SW_DUMMY = 0x9 PERF_COUNT_SW_DUMMY = 0x9
PERF_COUNT_SW_BPF_OUTPUT = 0xa PERF_COUNT_SW_BPF_OUTPUT = 0xa
PERF_COUNT_SW_MAX = 0xb PERF_COUNT_SW_MAX = 0xc
PERF_SAMPLE_IP = 0x1 PERF_SAMPLE_IP = 0x1
PERF_SAMPLE_TID = 0x2 PERF_SAMPLE_TID = 0x2
PERF_SAMPLE_TIME = 0x4 PERF_SAMPLE_TIME = 0x4
@ -1773,6 +1789,8 @@ const (
NFPROTO_NUMPROTO = 0xd NFPROTO_NUMPROTO = 0xd
) )
const SO_ORIGINAL_DST = 0x50
type Nfgenmsg struct { type Nfgenmsg struct {
Nfgen_family uint8 Nfgen_family uint8
Version uint8 Version uint8
@ -2338,8 +2356,8 @@ const (
SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000
SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000
SOF_TIMESTAMPING_LAST = 0x4000 SOF_TIMESTAMPING_LAST = 0x8000
SOF_TIMESTAMPING_MASK = 0x7fff SOF_TIMESTAMPING_MASK = 0xffff
SCM_TSTAMP_SND = 0x0 SCM_TSTAMP_SND = 0x0
SCM_TSTAMP_SCHED = 0x1 SCM_TSTAMP_SCHED = 0x1
@ -2915,7 +2933,7 @@ const (
DEVLINK_CMD_TRAP_POLICER_NEW = 0x47 DEVLINK_CMD_TRAP_POLICER_NEW = 0x47
DEVLINK_CMD_TRAP_POLICER_DEL = 0x48 DEVLINK_CMD_TRAP_POLICER_DEL = 0x48
DEVLINK_CMD_HEALTH_REPORTER_TEST = 0x49 DEVLINK_CMD_HEALTH_REPORTER_TEST = 0x49
DEVLINK_CMD_MAX = 0x49 DEVLINK_CMD_MAX = 0x4d
DEVLINK_PORT_TYPE_NOTSET = 0x0 DEVLINK_PORT_TYPE_NOTSET = 0x0
DEVLINK_PORT_TYPE_AUTO = 0x1 DEVLINK_PORT_TYPE_AUTO = 0x1
DEVLINK_PORT_TYPE_ETH = 0x2 DEVLINK_PORT_TYPE_ETH = 0x2
@ -3138,7 +3156,7 @@ const (
DEVLINK_ATTR_RELOAD_ACTION_INFO = 0xa2 DEVLINK_ATTR_RELOAD_ACTION_INFO = 0xa2
DEVLINK_ATTR_RELOAD_ACTION_STATS = 0xa3 DEVLINK_ATTR_RELOAD_ACTION_STATS = 0xa3
DEVLINK_ATTR_PORT_PCI_SF_NUMBER = 0xa4 DEVLINK_ATTR_PORT_PCI_SF_NUMBER = 0xa4
DEVLINK_ATTR_MAX = 0xa4 DEVLINK_ATTR_MAX = 0xa9
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0 DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1 DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0 DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
@ -3434,7 +3452,7 @@ const (
ETHTOOL_MSG_CABLE_TEST_ACT = 0x1a ETHTOOL_MSG_CABLE_TEST_ACT = 0x1a
ETHTOOL_MSG_CABLE_TEST_TDR_ACT = 0x1b ETHTOOL_MSG_CABLE_TEST_TDR_ACT = 0x1b
ETHTOOL_MSG_TUNNEL_INFO_GET = 0x1c ETHTOOL_MSG_TUNNEL_INFO_GET = 0x1c
ETHTOOL_MSG_USER_MAX = 0x1c ETHTOOL_MSG_USER_MAX = 0x21
ETHTOOL_MSG_KERNEL_NONE = 0x0 ETHTOOL_MSG_KERNEL_NONE = 0x0
ETHTOOL_MSG_STRSET_GET_REPLY = 0x1 ETHTOOL_MSG_STRSET_GET_REPLY = 0x1
ETHTOOL_MSG_LINKINFO_GET_REPLY = 0x2 ETHTOOL_MSG_LINKINFO_GET_REPLY = 0x2
@ -3465,7 +3483,7 @@ const (
ETHTOOL_MSG_CABLE_TEST_NTF = 0x1b ETHTOOL_MSG_CABLE_TEST_NTF = 0x1b
ETHTOOL_MSG_CABLE_TEST_TDR_NTF = 0x1c ETHTOOL_MSG_CABLE_TEST_TDR_NTF = 0x1c
ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY = 0x1d ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY = 0x1d
ETHTOOL_MSG_KERNEL_MAX = 0x1d ETHTOOL_MSG_KERNEL_MAX = 0x22
ETHTOOL_A_HEADER_UNSPEC = 0x0 ETHTOOL_A_HEADER_UNSPEC = 0x0
ETHTOOL_A_HEADER_DEV_INDEX = 0x1 ETHTOOL_A_HEADER_DEV_INDEX = 0x1
ETHTOOL_A_HEADER_DEV_NAME = 0x2 ETHTOOL_A_HEADER_DEV_NAME = 0x2
@ -3905,3 +3923,16 @@ const (
NFC_SDP_ATTR_URI = 0x1 NFC_SDP_ATTR_URI = 0x1
NFC_SDP_ATTR_SAP = 0x2 NFC_SDP_ATTR_SAP = 0x2
) )
type LandlockRulesetAttr struct {
Access_fs uint64
}
type LandlockPathBeneathAttr struct {
Allowed_access uint64
Parent_fd int32
}
const (
LANDLOCK_RULE_PATH_BENEATH = 0x1
)

View File

@ -170,6 +170,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [16]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x58 SizeofSockaddrNFCLLCP = 0x58
SizeofIovec = 0x8 SizeofIovec = 0x8
@ -630,3 +635,7 @@ const (
PPS_GETCAP = 0x800470a3 PPS_GETCAP = 0x800470a3
PPS_FETCH = 0xc00470a4 PPS_FETCH = 0xc00470a4
) )
const (
PIDFD_NONBLOCK = 0x800
)

View File

@ -173,6 +173,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10
@ -648,3 +653,7 @@ const (
PPS_GETCAP = 0x800870a3 PPS_GETCAP = 0x800870a3
PPS_FETCH = 0xc00870a4 PPS_FETCH = 0xc00870a4
) )
const (
PIDFD_NONBLOCK = 0x800
)

View File

@ -176,6 +176,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [16]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x58 SizeofSockaddrNFCLLCP = 0x58
SizeofIovec = 0x8 SizeofIovec = 0x8
@ -625,3 +630,7 @@ const (
PPS_GETCAP = 0x800470a3 PPS_GETCAP = 0x800470a3
PPS_FETCH = 0xc00470a4 PPS_FETCH = 0xc00470a4
) )
const (
PIDFD_NONBLOCK = 0x800
)

View File

@ -174,6 +174,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10
@ -627,3 +632,7 @@ const (
PPS_GETCAP = 0x800870a3 PPS_GETCAP = 0x800870a3
PPS_FETCH = 0xc00870a4 PPS_FETCH = 0xc00870a4
) )
const (
PIDFD_NONBLOCK = 0x800
)

View File

@ -175,6 +175,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [16]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x58 SizeofSockaddrNFCLLCP = 0x58
SizeofIovec = 0x8 SizeofIovec = 0x8
@ -631,3 +636,7 @@ const (
PPS_GETCAP = 0x400470a3 PPS_GETCAP = 0x400470a3
PPS_FETCH = 0xc00470a4 PPS_FETCH = 0xc00470a4
) )
const (
PIDFD_NONBLOCK = 0x80
)

View File

@ -174,6 +174,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10
@ -630,3 +635,7 @@ const (
PPS_GETCAP = 0x400870a3 PPS_GETCAP = 0x400870a3
PPS_FETCH = 0xc00870a4 PPS_FETCH = 0xc00870a4
) )
const (
PIDFD_NONBLOCK = 0x80
)

View File

@ -174,6 +174,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10
@ -630,3 +635,7 @@ const (
PPS_GETCAP = 0x400870a3 PPS_GETCAP = 0x400870a3
PPS_FETCH = 0xc00870a4 PPS_FETCH = 0xc00870a4
) )
const (
PIDFD_NONBLOCK = 0x80
)

View File

@ -175,6 +175,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [16]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x58 SizeofSockaddrNFCLLCP = 0x58
SizeofIovec = 0x8 SizeofIovec = 0x8
@ -631,3 +636,7 @@ const (
PPS_GETCAP = 0x400470a3 PPS_GETCAP = 0x400470a3
PPS_FETCH = 0xc00470a4 PPS_FETCH = 0xc00470a4
) )
const (
PIDFD_NONBLOCK = 0x80
)

View File

@ -176,6 +176,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [16]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x58 SizeofSockaddrNFCLLCP = 0x58
SizeofIovec = 0x8 SizeofIovec = 0x8
@ -637,3 +642,7 @@ const (
PPS_GETCAP = 0x400470a3 PPS_GETCAP = 0x400470a3
PPS_FETCH = 0xc00470a4 PPS_FETCH = 0xc00470a4
) )
const (
PIDFD_NONBLOCK = 0x800
)

View File

@ -175,6 +175,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10
@ -637,3 +642,7 @@ const (
PPS_GETCAP = 0x400870a3 PPS_GETCAP = 0x400870a3
PPS_FETCH = 0xc00870a4 PPS_FETCH = 0xc00870a4
) )
const (
PIDFD_NONBLOCK = 0x800
)

View File

@ -175,6 +175,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10
@ -637,3 +642,7 @@ const (
PPS_GETCAP = 0x400870a3 PPS_GETCAP = 0x400870a3
PPS_FETCH = 0xc00870a4 PPS_FETCH = 0xc00870a4
) )
const (
PIDFD_NONBLOCK = 0x800
)

Some files were not shown because too many files have changed in this diff Show More