chore(deps): stop tracking vendored modules
- commit
- bdb7c71a2ff1ba7d0b058ac92dea14f87de2fe68
- author
- brice · · 2026-07-22 07:22 UTC
- parent
- 659be60
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
3329 files · +2 -1396109
M .gitignore +2 -2
| @@ -16,8 +16,8 @@ dumber.exe | |||
| 16 | 16 | # Output of the go coverage tool | |
| 17 | 17 | *.out | |
| 18 | 18 | ||
| 19 | - | # Dependency directories (remove the comment below to include it) | |
| 20 | - | # vendor/ | |
| 19 | + | # Dependency directories | |
| 20 | + | vendor/ | |
| 21 | 21 | ||
| 22 | 22 | # Go workspace file | |
| 23 | 23 | go.work | |
| @@ -16,8 +16,8 @@ dumber.exe | |||||
| 16 | # Output of the go coverage tool | 16 | # Output of the go coverage tool | ||
| 17 | *.out | 17 | *.out | ||
| 18 | 18 | ||||
| 19 | - | # Dependency directories (remove the comment below to include it) | 19 | + | # Dependency directories |
| 20 | - | # vendor/ | 20 | + | vendor/ |
| 21 | 21 | ||||
| 22 | # Go workspace file | 22 | # Go workspace file | ||
| 23 | go.work | 23 | go.work | ||
D vendor/github.com/a-h/parse/.gitignore +0 -1 generated file: collapsed
D vendor/github.com/a-h/parse/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/a-h/parse/README.md +0 -145 generated file: collapsed
D vendor/github.com/a-h/parse/all.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/parse/any.go +0 -22 generated file: collapsed
D vendor/github.com/a-h/parse/convert.go +0 -14 generated file: collapsed
D vendor/github.com/a-h/parse/digits.go +0 -4 generated file: collapsed
D vendor/github.com/a-h/parse/eof.go +0 -15 generated file: collapsed
D vendor/github.com/a-h/parse/error.go +0 -21 generated file: collapsed
D vendor/github.com/a-h/parse/input.go +0 -79 generated file: collapsed
D vendor/github.com/a-h/parse/optional.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/parse/or.go +0 -37 generated file: collapsed
D vendor/github.com/a-h/parse/regexp.go +0 -46 generated file: collapsed
D vendor/github.com/a-h/parse/rune.go +0 -58 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof2.go +0 -27 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof3.go +0 -35 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof4.go +0 -41 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof5.go +0 -48 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof6.go +0 -55 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof7.go +0 -62 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof8.go +0 -69 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof9.go +0 -76 generated file: collapsed
D vendor/github.com/a-h/parse/string.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/parse/stringfrom.go +0 -30 generated file: collapsed
D vendor/github.com/a-h/parse/stringuntil.go +0 -49 generated file: collapsed
D vendor/github.com/a-h/parse/then.go +0 -9 generated file: collapsed
D vendor/github.com/a-h/parse/times.go +0 -83 generated file: collapsed
D vendor/github.com/a-h/parse/tuples.go +0 -69 generated file: collapsed
D vendor/github.com/a-h/parse/types.go +0 -33 generated file: collapsed
D vendor/github.com/a-h/parse/until.go +0 -68 generated file: collapsed
D vendor/github.com/a-h/parse/whitespace.go +0 -29 generated file: collapsed
D vendor/github.com/a-h/templ/.dockerignore +0 -3 generated file: collapsed
D vendor/github.com/a-h/templ/.envrc +0 -1 generated file: collapsed
D vendor/github.com/a-h/templ/.gitignore +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/.goreleaser.yaml +0 -72 generated file: collapsed
D vendor/github.com/a-h/templ/.ignore +0 -9 generated file: collapsed
D vendor/github.com/a-h/templ/.version +0 -1 generated file: collapsed
D vendor/github.com/a-h/templ/CODE_OF_CONDUCT.md +0 -128 generated file: collapsed
D vendor/github.com/a-h/templ/CONTRIBUTING.md +0 -247 generated file: collapsed
D vendor/github.com/a-h/templ/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/a-h/templ/README.md +0 -194 generated file: collapsed
D vendor/github.com/a-h/templ/SECURITY.md +0 -9 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/fmtcmd/main.go +0 -132 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/fmtcmd/testdata.txtar +0 -66 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/cmd.go +0 -452 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/eventhandler.go +0 -349 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/fatalerror.go +0 -23 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/main.go +0 -237 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/modcheck/modcheck.go +0 -82 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/proxy/proxy.go +0 -385 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/proxy/script.js +0 -10 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/run/run_unix.go +0 -88 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/run/run_windows.go +0 -75 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/sse/server.go +0 -84 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/watcher/watch.go +0 -166 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/infocmd/main.go +0 -195 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/handler.go +0 -130 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/list.templ +0 -22 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/list_templ.go +0 -114 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/main.go +0 -145 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/pls/main.go +0 -128 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/client.go +0 -146 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/diagnosticcache.go +0 -61 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/documentcontents.go +0 -215 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/rewrite.go +0 -24 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/server.go +0 -1464 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/snippets.go +0 -111 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/sourcemapcache.go +0 -60 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/stdrwc.go +0 -50 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/main.go +0 -280 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/processor/processor.go +0 -66 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/sloghandler/handler.go +0 -120 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/visualize/sourcemapvisualisation.templ +0 -68 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/visualize/sourcemapvisualisation_templ.go +0 -295 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/visualize/types.go +0 -87 generated file: collapsed
D vendor/github.com/a-h/templ/cosign.pub +0 -4 generated file: collapsed
D vendor/github.com/a-h/templ/flake.lock +0 -87 generated file: collapsed
D vendor/github.com/a-h/templ/flake.nix +0 -99 generated file: collapsed
D vendor/github.com/a-h/templ/flush.go +0 -36 generated file: collapsed
D vendor/github.com/a-h/templ/fragment.go +0 -73 generated file: collapsed
D vendor/github.com/a-h/templ/generator/generator.go +0 -1829 generated file: collapsed
D vendor/github.com/a-h/templ/generator/rangewriter.go +0 -122 generated file: collapsed
D vendor/github.com/a-h/templ/handler.go +0 -163 generated file: collapsed
D vendor/github.com/a-h/templ/ide-demo.gif +0 -0 binary file: no text diff
binary file: no text diff
D vendor/github.com/a-h/templ/internal/format/scriptelement.go +0 -96 generated file: collapsed
D vendor/github.com/a-h/templ/internal/format/styleelement.go +0 -25 generated file: collapsed
D vendor/github.com/a-h/templ/internal/format/templ.go +0 -102 generated file: collapsed
D vendor/github.com/a-h/templ/internal/htmlfind/htmlfind.go +0 -67 generated file: collapsed
D vendor/github.com/a-h/templ/internal/imports/process.go +0 -218 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/docheader.go +0 -27 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/docheaderparser.go +0 -53 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/pkgloader.go +0 -55 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/pkgtraverser.go +0 -110 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/templdoclazyloader.go +0 -161 generated file: collapsed
D vendor/github.com/a-h/templ/internal/prettier/prettier.go +0 -133 generated file: collapsed
D vendor/github.com/a-h/templ/internal/prettier/testdata.txtar +0 -12 generated file: collapsed
D vendor/github.com/a-h/templ/internal/skipdir/skipdir.go +0 -20 generated file: collapsed
D vendor/github.com/a-h/templ/internal/syncmap/map.go +0 -49 generated file: collapsed
D vendor/github.com/a-h/templ/internal/syncset/set.go +0 -42 generated file: collapsed
D vendor/github.com/a-h/templ/join.go +0 -19 generated file: collapsed
D vendor/github.com/a-h/templ/js.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/jsonscript.go +0 -85 generated file: collapsed
D vendor/github.com/a-h/templ/jsonstring.go +0 -14 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/LICENSE +0 -29 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/codes.go +0 -86 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/conn.go +0 -244 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/errors.go +0 -70 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/handler.go +0 -120 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/jsonrpc2.go +0 -7 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/message.go +0 -354 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/serve.go +0 -131 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/stream.go +0 -225 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/wire.go +0 -140 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/base.go +0 -95 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/basic.go +0 -705 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/callhierarchy.go +0 -103 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/capabilities_client.go +0 -1068 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/capabilities_server.go +0 -523 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/client.go +0 -412 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/context.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/deprecated.go +0 -264 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/diagnostics.go +0 -149 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/doc.go +0 -23 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/errors.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/general.go +0 -461 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/handler.go +0 -88 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/language.go +0 -1401 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/progress.go +0 -119 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/protocol.go +0 -41 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/registration.go +0 -44 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/selectionrange.go +0 -110 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/semantic_token.go +0 -179 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/server.go +0 -1893 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/text.go +0 -111 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/util.go +0 -9 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/version.go +0 -7 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/window.go +0 -111 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/workspace.go +0 -213 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/uri/uri.go +0 -245 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/xcontext/xcontext.go +0 -22 generated file: collapsed
D vendor/github.com/a-h/templ/once.go +0 -63 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/calltemplateparser.go +0 -37 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/childrenparser.go +0 -25 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/conditionalattributeparser.go +0 -103 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/cssparser.go +0 -200 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/diagnostics.go +0 -64 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/doctypeparser.go +0 -33 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/elementparser.go +0 -605 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/expressionparser.go +0 -246 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/fallthroughparser.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/forexpressionparser.go +0 -57 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/fuzz.sh +0 -5 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/gocodeparser.go +0 -64 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/gocommentparser.go +0 -66 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goexpression/fuzz.sh +0 -19 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goexpression/parse.go +0 -343 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goexpression/scanner.go +0 -180 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goparser.go +0 -70 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/htmlcommentparser.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/ifexpressionparser.go +0 -144 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/packageparser.go +0 -32 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/parser.go +0 -55 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/raw.go +0 -67 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/scriptparser.go +0 -336 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/scripttemplateparser.go +0 -91 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/sourcemap.go +0 -134 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/stringexpressionparser.go +0 -44 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/structure.go +0 -43 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/switchexpressionparser.go +0 -171 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/templatefile.go +0 -195 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/templateparser.go +0 -154 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/templelementparser.go +0 -59 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/textparser.go +0 -53 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/types.go +0 -1537 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/visitor.go +0 -36 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/visitor/visitor.go +0 -357 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/whitespaceparser.go +0 -14 generated file: collapsed
D vendor/github.com/a-h/templ/runtime.go +0 -736 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/buffer.go +0 -62 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/bufferpool.go +0 -38 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/builder.go +0 -8 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/runtime.go +0 -21 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/scriptelement.go +0 -107 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/styleattribute.go +0 -217 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/watchmode.go +0 -181 generated file: collapsed
D vendor/github.com/a-h/templ/safehtml/style.go +0 -199 generated file: collapsed
D vendor/github.com/a-h/templ/scripttemplate.go +0 -150 generated file: collapsed
D vendor/github.com/a-h/templ/templ.png +0 -0 binary file: no text diff
binary file: no text diff
D vendor/github.com/a-h/templ/url.go +0 -31 generated file: collapsed
D vendor/github.com/a-h/templ/version.go +0 -10 generated file: collapsed
D vendor/github.com/a-h/templ/watchmode.go +0 -105 generated file: collapsed
D vendor/github.com/andybalholm/brotli/.gitignore +0 -2 generated file: collapsed
D vendor/github.com/andybalholm/brotli/LICENSE +0 -19 generated file: collapsed
D vendor/github.com/andybalholm/brotli/README.md +0 -19 generated file: collapsed
D vendor/github.com/andybalholm/brotli/backward_references.go +0 -185 generated file: collapsed
D vendor/github.com/andybalholm/brotli/backward_references_hq.go +0 -796 generated file: collapsed
D vendor/github.com/andybalholm/brotli/bit_cost.go +0 -436 generated file: collapsed
D vendor/github.com/andybalholm/brotli/bit_reader.go +0 -266 generated file: collapsed
D vendor/github.com/andybalholm/brotli/bitwriter.go +0 -56 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter.go +0 -144 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter_command.go +0 -434 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter_distance.go +0 -433 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter_literal.go +0 -433 generated file: collapsed
D vendor/github.com/andybalholm/brotli/brotli_bit_stream.go +0 -1435 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster.go +0 -30 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster_command.go +0 -164 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster_distance.go +0 -326 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster_literal.go +0 -326 generated file: collapsed
D vendor/github.com/andybalholm/brotli/command.go +0 -254 generated file: collapsed
D vendor/github.com/andybalholm/brotli/compress_fragment.go +0 -834 generated file: collapsed
D vendor/github.com/andybalholm/brotli/compress_fragment_two_pass.go +0 -775 generated file: collapsed
D vendor/github.com/andybalholm/brotli/constants.go +0 -77 generated file: collapsed
D vendor/github.com/andybalholm/brotli/context.go +0 -2176 generated file: collapsed
D vendor/github.com/andybalholm/brotli/decode.go +0 -2570 generated file: collapsed
D vendor/github.com/andybalholm/brotli/dictionary.go +0 -122890 generated file: collapsed
D vendor/github.com/andybalholm/brotli/dictionary_hash.go +0 -32779 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encode.go +0 -1220 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encoder.go +0 -177 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encoder_dict.go +0 -22 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encoder_fast.go +0 -197 generated file: collapsed
D vendor/github.com/andybalholm/brotli/entropy_encode.go +0 -592 generated file: collapsed
D vendor/github.com/andybalholm/brotli/entropy_encode_static.go +0 -4399 generated file: collapsed
D vendor/github.com/andybalholm/brotli/fast_log.go +0 -290 generated file: collapsed
D vendor/github.com/andybalholm/brotli/find_match_length.go +0 -45 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/LICENSE +0 -27 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/README.md +0 -2 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/gzip.go +0 -65 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/huffman_bit_writer.go +0 -517 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/huffman_code.go +0 -346 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/token.go +0 -80 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/writer.go +0 -66 generated file: collapsed
D vendor/github.com/andybalholm/brotli/h10.go +0 -287 generated file: collapsed
D vendor/github.com/andybalholm/brotli/h5.go +0 -214 generated file: collapsed
D vendor/github.com/andybalholm/brotli/h6.go +0 -216 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash.go +0 -342 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_composite.go +0 -93 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_forgetful_chain.go +0 -252 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_longest_match_quickly.go +0 -214 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_rolling.go +0 -168 generated file: collapsed
D vendor/github.com/andybalholm/brotli/histogram.go +0 -226 generated file: collapsed
D vendor/github.com/andybalholm/brotli/http.go +0 -189 generated file: collapsed
D vendor/github.com/andybalholm/brotli/huffman.go +0 -653 generated file: collapsed
D vendor/github.com/andybalholm/brotli/literal_cost.go +0 -182 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/bargain1.go +0 -212 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/bargain2.go +0 -248 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/bargain3.go +0 -278 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/emitter.go +0 -34 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/m0.go +0 -175 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/m4.go +0 -339 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/matchfinder.go +0 -103 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/pathfinder.go +0 -328 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/textencoder.go +0 -53 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/trio.go +0 -326 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/zdfast.go +0 -258 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/zfast.go +0 -206 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/zm.go +0 -301 generated file: collapsed
D vendor/github.com/andybalholm/brotli/memory.go +0 -66 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock.go +0 -574 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock_command.go +0 -165 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock_distance.go +0 -165 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock_literal.go +0 -165 generated file: collapsed
D vendor/github.com/andybalholm/brotli/params.go +0 -37 generated file: collapsed
D vendor/github.com/andybalholm/brotli/platform.go +0 -103 generated file: collapsed
D vendor/github.com/andybalholm/brotli/prefix.go +0 -30 generated file: collapsed
D vendor/github.com/andybalholm/brotli/prefix_dec.go +0 -723 generated file: collapsed
D vendor/github.com/andybalholm/brotli/quality.go +0 -196 generated file: collapsed
D vendor/github.com/andybalholm/brotli/reader.go +0 -126 generated file: collapsed
D vendor/github.com/andybalholm/brotli/ringbuffer.go +0 -134 generated file: collapsed
D vendor/github.com/andybalholm/brotli/state.go +0 -313 generated file: collapsed
D vendor/github.com/andybalholm/brotli/static_dict.go +0 -662 generated file: collapsed
D vendor/github.com/andybalholm/brotli/static_dict_lut.go +0 -75094 generated file: collapsed
D vendor/github.com/andybalholm/brotli/symbol_list.go +0 -22 generated file: collapsed
D vendor/github.com/andybalholm/brotli/transform.go +0 -641 generated file: collapsed
D vendor/github.com/andybalholm/brotli/utf8_util.go +0 -70 generated file: collapsed
D vendor/github.com/andybalholm/brotli/util.go +0 -7 generated file: collapsed
D vendor/github.com/andybalholm/brotli/write_bits.go +0 -52 generated file: collapsed
D vendor/github.com/andybalholm/brotli/writer.go +0 -162 generated file: collapsed
D vendor/github.com/atotto/clipboard/.travis.yml +0 -22 generated file: collapsed
D vendor/github.com/atotto/clipboard/LICENSE +0 -27 generated file: collapsed
D vendor/github.com/atotto/clipboard/README.md +0 -48 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard.go +0 -20 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_darwin.go +0 -52 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_plan9.go +0 -42 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_unix.go +0 -149 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_windows.go +0 -157 generated file: collapsed
D vendor/github.com/aymanbagabas/go-osc52/v2/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/aymanbagabas/go-osc52/v2/README.md +0 -83 generated file: collapsed
D vendor/github.com/aymanbagabas/go-osc52/v2/osc52.go +0 -305 generated file: collapsed
D vendor/github.com/bnema/purego-cef/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/bridge.go +0 -783 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_accessibility_handler_gen.go +0 -135 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_app_gen.go +0 -255 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_audio_handler_gen.go +0 -222 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_auth_callback_gen.go +0 -80 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_base_gen.go +0 -13 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_browser_gen.go +0 -1340 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_browser_process_handler_gen.go +0 -280 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_callback_gen.go +0 -173 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_client_gen.go +0 -691 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_command_handler_gen.go +0 -228 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_command_line_gen.go +0 -282 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_component_updater_gen.go +0 -323 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_context_menu_handler_gen.go +0 -633 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_cookie_gen.go +0 -430 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_crash_util_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_devtools_message_observer_gen.go +0 -219 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_dialog_handler_gen.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_display_handler_gen.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_dom_gen.go +0 -578 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_download_handler_gen.go +0 -308 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_download_item_gen.go +0 -255 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_drag_data_gen.go +0 -329 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_drag_handler_gen.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_file_util_gen.go +0 -74 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_find_handler_gen.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_focus_handler_gen.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_frame_gen.go +0 -284 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_frame_handler_gen.go +0 -214 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_i18n_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_image_gen.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_jsdialog_handler_gen.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_keyboard_handler_gen.go +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_life_span_handler_gen.go +0 -261 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_load_handler_gen.go +0 -198 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_media_router_gen.go +0 -771 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_menu_model_delegate_gen.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_menu_model_gen.go +0 -607 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_navigation_entry_gen.go +0 -150 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_origin_whitelist_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_parser_gen.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_path_util_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_permission_handler_gen.go +0 -303 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_preference_gen.go +0 -289 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_print_handler_gen.go +0 -364 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_print_settings_gen.go +0 -283 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_process_message_gen.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_process_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_registration_gen.go +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_render_handler_gen.go +0 -562 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_render_process_handler_gen.go +0 -325 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_context_gen.go +0 -515 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_context_handler_gen.go +0 -150 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_gen.go +0 -576 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_handler_gen.go +0 -490 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_gen.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_handler_gen.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_handler_gen.go +0 -392 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_request_handler_gen.go +0 -469 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_response_filter_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_response_gen.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_scheme_gen.go +0 -175 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_server_gen.go +0 -470 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_shared_memory_region_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_shared_process_message_builder_gen.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_ssl_info_gen.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_ssl_status_gen.go +0 -105 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_stream_gen.go +0 -698 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_string_visitor_gen.go +0 -113 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_task_gen.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_task_manager_gen.go +0 -150 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_thread_gen.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_trace_gen.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_color_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_component_gen.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_content_settings_gen.go +0 -155 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_gen.go +0 -1631 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_geometry_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_linux_gen.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_osr_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_runtime_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_unresponsive_process_callback_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_urlrequest_gen.go +0 -363 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_v8_gen.go +0 -1825 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_values_gen.go +0 -1139 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_waitable_event_gen.go +0 -126 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_x509_certificate_gen.go +0 -300 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_xml_reader_gen.go +0 -354 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_zip_reader_gen.go +0 -201 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/doc.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/init.go +0 -191 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/.gitkeep +0 -0
no textual change.
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_app.go +0 -261 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_browser.go +0 -929 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_browser_process_handler.go +0 -345 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_client.go +0 -934 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_context_menu_handler.go +0 -487 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_dialog_handler.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_display_handler.go +0 -743 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_focus_handler.go +0 -180 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_frame.go +0 -1093 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_keyboard_handler.go +0 -169 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_life_span_handler.go +0 -407 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_load_handler.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_process_message.go +0 -307 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_raw_client.go +0 -934 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_raw_life_span_handler.go +0 -409 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_render_handler.go +0 -959 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_render_process_handler.go +0 -491 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_request.go +0 -1010 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_request_context.go +0 -1167 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_request_handler.go +0 -760 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_response.go +0 -768 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/opaque_types.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/string_list.go +0 -46 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_api_version_test__gen.go +0 -1391 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_test_helpers_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_test_server_gen.go +0 -282 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_translator_test__gen.go +0 -1534 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/v8_helpers.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_box_layout_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_delegate_gen.go +0 -348 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_gen.go +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_button_delegate_gen.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_button_gen.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_display_gen.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_fill_layout_gen.go +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_label_button_gen.go +0 -176 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_layout_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_delegate_gen.go +0 -160 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_gen.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_overlay_controller_gen.go +0 -224 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_panel_delegate_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_panel_gen.go +0 -181 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_scroll_view_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_delegate_gen.go +0 -137 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_gen.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_view_delegate_gen.go +0 -362 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_view_gen.go +0 -515 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_window_delegate_gen.go +0 -682 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_window_gen.go +0 -436 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/window_info_helpers.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/bridge.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_accessibility_handler_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_app_gen.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_audio_handler_gen.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_auth_callback_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_base_gen.go +0 -77 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_browser_gen.go +0 -1091 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_browser_process_handler_gen.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_callback_gen.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_client_gen.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_command_handler_gen.go +0 -80 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_command_line_gen.go +0 -255 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_component_updater_gen.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_context_menu_handler_gen.go +0 -381 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_cookie_gen.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_crash_util_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_devtools_message_observer_gen.go +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_dialog_handler_gen.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_display_handler_gen.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_dom_gen.go +0 -478 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_download_handler_gen.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_download_item_gen.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_drag_data_gen.go +0 -318 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_drag_handler_gen.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_file_util_gen.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_find_handler_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_focus_handler_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_frame_gen.go +0 -303 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_frame_handler_gen.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_i18n_util_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_image_gen.go +0 -164 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_jsdialog_handler_gen.go +0 -77 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_keyboard_handler_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_life_span_handler_gen.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_load_handler_gen.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_media_router_gen.go +0 -341 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_menu_model_delegate_gen.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_menu_model_gen.go +0 -637 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_navigation_entry_gen.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_origin_whitelist_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_parser_gen.go +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_path_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_permission_handler_gen.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_preference_gen.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_print_handler_gen.go +0 -126 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_print_settings_gen.go +0 -265 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_process_message_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_process_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_registration_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_render_handler_gen.go +0 -212 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_render_process_handler_gen.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_context_gen.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_context_handler_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_gen.go +0 -444 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_handler_gen.go +0 -166 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_bundle_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_bundle_handler_gen.go +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_handler_gen.go +0 -126 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_request_handler_gen.go +0 -148 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_response_filter_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_response_gen.go +0 -208 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_scheme_gen.go +0 -51 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_server_gen.go +0 -257 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_shared_memory_region_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_shared_process_message_builder_gen.go +0 -65 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_ssl_info_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_ssl_status_gen.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_stream_gen.go +0 -268 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_string_visitor_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_task_gen.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_task_manager_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_thread_gen.go +0 -65 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_trace_gen.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_color_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_component_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_content_settings_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_gen.go +0 -482 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_geometry_gen.go +0 -37 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_linux_gen.go +0 -51 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_osr_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_runtime_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_unresponsive_process_callback_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_urlrequest_gen.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_v8_gen.go +0 -1137 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_values_gen.go +0 -1002 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_waitable_event_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_x509_certificate_gen.go +0 -217 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_xml_reader_gen.go +0 -340 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_zip_reader_gen.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/doc.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_gen.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_darwin_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_default_gen.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_linux_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_windows_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_api_version_test__gen.go +0 -772 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_test_helpers_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_test_server_gen.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_translator_test__gen.go +0 -967 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_box_layout_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_browser_view_delegate_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_browser_view_gen.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_button_delegate_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_button_gen.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_display_gen.go +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_fill_layout_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_label_button_gen.go +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_layout_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_menu_button_delegate_gen.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_menu_button_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_overlay_controller_gen.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_panel_delegate_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_panel_gen.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_scroll_view_gen.go +0 -102 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_delegate_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_gen.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_view_delegate_gen.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_view_gen.go +0 -589 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_window_delegate_gen.go +0 -278 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_window_gen.go +0 -485 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/cefapi/contract.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/engine.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/helpers.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/init.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/marshal.go +0 -146 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/refcount.go +0 -185 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/loader/loader.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_accessibility_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_app_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_audio_handler_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_auth_callback_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_base_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_browser_gen.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_browser_process_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_client_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_command_handler_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_command_line_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_component_updater_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_context_menu_handler_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_cookie_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_devtools_message_observer_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_dialog_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_display_handler_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_dom_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_download_handler_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_download_item_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_drag_data_gen.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_drag_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_find_handler_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_focus_handler_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_frame_gen.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_frame_handler_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_image_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_jsdialog_handler_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_keyboard_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_life_span_handler_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_load_handler_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_media_router_gen.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_menu_model_delegate_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_menu_model_gen.go +0 -63 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_navigation_entry_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_permission_handler_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_preference_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_print_handler_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_print_settings_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_process_message_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_registration_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_render_handler_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_render_process_handler_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_context_gen.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_context_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_handler_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_bundle_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_bundle_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_handler_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_request_handler_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_response_filter_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_response_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_scheme_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_server_gen.go +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_shared_memory_region_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_shared_process_message_builder_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_ssl_info_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_ssl_status_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_stream_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_string_visitor_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_task_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_task_manager_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_thread_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_trace_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_color_gen.go +0 -5 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_component_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_content_settings_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_gen.go +0 -256 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_geometry_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_linux_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_osr_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_runtime_gen.go +0 -5 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_unresponsive_process_callback_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_urlrequest_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_v8_gen.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_values_gen.go +0 -110 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_waitable_event_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_x509_certificate_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_xml_reader_gen.go +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_zip_reader_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/opaque_types.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_api_version_test__gen.go +0 -105 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_test_server_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_translator_test__gen.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_box_layout_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_browser_view_delegate_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_browser_view_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_button_delegate_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_button_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_display_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_fill_layout_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_label_button_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_layout_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_menu_button_delegate_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_menu_button_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_overlay_controller_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_panel_delegate_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_panel_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_scroll_view_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_textfield_delegate_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_textfield_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_view_delegate_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_view_gen.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_window_delegate_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_window_gen.go +0 -49 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/capi.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_app_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_auth_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_browser_gen.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_command_line_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_component_updater_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_context_menu_handler_gen.go +0 -44 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_cookie_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_crash_util_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_dialog_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_dom_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_download_handler_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_download_item_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_drag_data_gen.go +0 -44 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_file_util_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_frame_gen.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_i18n_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_image_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_jsdialog_handler_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_media_router_gen.go +0 -49 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_menu_model_gen.go +0 -73 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_navigation_entry_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_origin_whitelist_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_parser_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_path_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_permission_handler_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_preference_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_print_handler_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_print_settings_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_process_message_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_process_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_registration_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_context_gen.go +0 -42 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_gen.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_handler_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_resource_bundle_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_resource_handler_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_response_gen.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_scheme_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_server_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_shared_memory_region_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_shared_process_message_builder_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_ssl_info_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_ssl_status_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_stream_gen.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_task_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_task_manager_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_thread_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_trace_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_types_linux_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_unresponsive_process_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_urlrequest_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_v8_gen.go +0 -140 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_values_gen.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_waitable_event_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_x509_certificate_gen.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_xml_reader_gen.go +0 -46 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_zip_reader_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_api_version_test__gen.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_test_helpers_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_test_server_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_translator_test__gen.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_box_layout_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_browser_view_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_button_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_display_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_fill_layout_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_label_button_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_layout_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_menu_button_delegate_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_menu_button_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_overlay_controller_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_panel_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_scroll_view_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_textfield_gen.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_view_gen.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_window_gen.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/.gitignore +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/Makefile +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/README.md +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/browser_settings.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/command_line.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/diagnostics.go +0 -137 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/doc.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/handlers.go +0 -284 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/input.go +0 -277 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/accelerated_paint.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/command_line.go +0 -108 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/window_info.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cutil/cstring.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/format.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/frame.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/modifier.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/attrs.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/display.go +0 -70 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/extensions.go +0 -47 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/importer.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/loader.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/types.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gl/copy.go +0 -513 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gl/loader.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gl/timer_query.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgdk/renderer.go +0 -980 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/accelerated_renderer.go +0 -476 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/context.go +0 -172 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/gl.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/glib.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/input_bridge.go +0 -1037 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/main_thread.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/render_signal.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/profile/recorder.go +0 -352 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/options.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/osr_backing_scale.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/profile.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/refresh_rate.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/render_stack.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/size_observation.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/view.go +0 -1171 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/window_info.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/.gitkeep +0 -0
no textual change.
D vendor/github.com/bnema/purego-pipewire/internal/capi/adapters_gen.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/init_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/loop_gen.go +0 -53 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/loop_lock.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/register.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/register_all.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/stream_ops.go +0 -272 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/stream_params.go +0 -172 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/stream_playback_gen.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/context.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/core.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/loop.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/player.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/player_rt.go +0 -207 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/player_state.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/pwbuffer.go +0 -173 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/registry.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/runtime.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/stream.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/loader/loader.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/.gitkeep +0 -0
no textual change.
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/capi.go +0 -5 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/capi_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/init_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/loop_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/stream_ops.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/stream_playback_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/context.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/core.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/interfaces.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/player.go +0 -218 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/registry.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/runtime.go +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/stream.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/driver/driver.go +0 -390 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/driver/register.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/bridge.go +0 -1461 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/enums_gen.go +0 -863 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/functions_gen.go +0 -358 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/register_gen.go +0 -377 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/variadic_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/db.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/errors.go +0 -51 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/rows.go +0 -194 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/stmt.go +0 -128 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/loader/loader.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/in/ports_gen.go +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/auth_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/backup_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/bind_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/blob_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/capi_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/column_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/config_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/context_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/exec_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/func_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/hook_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/lifecycle_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/memory_gen.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/metadata_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/misc_gen.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/prepare_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/result_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/serialize_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/str_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/trace_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/value_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/vfs_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/vtab_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/wal_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/sqlite/sqlite_gen.go +0 -49 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/internal/libwebp/generated_symbols.go +0 -513 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/internal/libwebp/loader.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/internal/libwebp/types.go +0 -164 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/libwebp/libwebp.go +0 -880 collapsed to keep the page light
D vendor/github.com/bnema/purego/.gitignore +0 -1 collapsed to keep the page light
D vendor/github.com/bnema/purego/LICENSE +0 -201 collapsed to keep the page light
D vendor/github.com/bnema/purego/README.md +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/purego/abi_amd64.h +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego/abi_arm64.h +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/abi_loong64.h +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/cgo.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlerror.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_android.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_darwin.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_freebsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_linux.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_netbsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_nocgo_freebsd.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_nocgo_linux.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_nocgo_netbsd.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_playground.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_stubs.s +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego/func.go +0 -677 collapsed to keep the page light
D vendor/github.com/bnema/purego/gen.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/purego/go_runtime.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego/hostlayout_go123.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego/hostlayout_nogo123.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/cgo/dlfcn_cgo_unix.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/cgo/empty.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/cgo/syscall_cgo_unix.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_amd64.h +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_arm64.h +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_loong64.h +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_ppc64x.h +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_riscv64.h +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_386.s +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_amd64.s +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_arm.s +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_arm64.s +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_loong64.s +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_ppc64le.s +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_riscv64.s +0 -37 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_s390x.s +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/callbacks.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/doc.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/fakecgo.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/freebsd.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_darwin.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_freebsd.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_libinit.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_linux.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_netbsd.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_setenv.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_util.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/iscgo.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_darwin.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_freebsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_linux.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_netbsd.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/linux.go +0 -184 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/netbsd.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/setenv.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_386.s +0 -121 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_amd64.s +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_arm.s +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_arm64.s +0 -81 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_386.s +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_amd64.s +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_arm.s +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_arm64.s +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_loong64.s +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_ppc64le.s +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_riscv64.s +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_loong64.s +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_ppc64le.s +0 -128 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_riscv64.s +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_darwin.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_freebsd.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_linux.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_netbsd.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_darwin.s +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_freebsd.s +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_linux.s +0 -46 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_netbsd.s +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_stubs.s +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/strings/strings.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/xreflect/reflect_go124.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/xreflect/reflect_go125.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego/is_ios.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego/nocgo.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_386.go +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_abi_helpers.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_amd64.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_arm.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_arm64.go +0 -759 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_loong64.go +0 -216 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_ppc64le.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_riscv64.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_s390x.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_386.s +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_amd64.s +0 -170 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_arm.s +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_arm64.s +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_loong64.s +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_ppc64le.s +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_riscv64.s +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_s390x.s +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_386.s +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_arm.s +0 -89 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_arm64.s +0 -75 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_loong64.s +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_ppc64le.s +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_riscv64.s +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_s390x.s +0 -109 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall.go +0 -108 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_32bit.go +0 -115 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_cgo_linux.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_notstackargs.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_stackargs.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_unix.go +0 -693 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_windows.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_386.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_amd64.s +0 -2014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_arm.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_arm64.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_loong64.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_ppc64le.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_riscv64.s +0 -4051 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_s390x.s +0 -4015 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/internal/core/core.go +0 -515 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +0 -2056 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +0 -2083 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +0 -80 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +0 -812 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +0 -1214 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +0 -313 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +0 -388 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +0 -969 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +0 -493 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +0 -593 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +0 -704 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +0 -382 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +0 -1019 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +0 -523 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +0 -562 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +0 -568 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +0 -572 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +0 -399 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +0 -398 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +0 -871 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +0 -258 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +0 -605 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +0 -548 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +0 -816 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +0 -954 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +0 -1077 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +0 -300 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +0 -791 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +0 -1049 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +0 -815 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +0 -566 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +0 -378 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +0 -1296 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +0 -1218 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +0 -559 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +0 -859 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +0 -1906 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +0 -999 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +0 -690 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +0 -520 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +0 -586 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +0 -672 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +0 -603 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +0 -715 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +0 -480 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +0 -441 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +0 -285 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +0 -246 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +0 -561 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +0 -386 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +0 -1144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +0 -1118 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +0 -289 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +0 -381 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +0 -889 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +0 -477 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +0 -175 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +0 -971 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +0 -559 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +0 -420 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +0 -519 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +0 -287 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +0 -491 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +0 -802 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +0 -529 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +0 -970 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +0 -2327 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +0 -387 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +0 -717 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +0 -1196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +0 -938 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +0 -1890 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +0 -470 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +0 -547 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +0 -599 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +0 -480 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +0 -685 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +0 -945 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +0 -687 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/cairo/main.go +0 -947 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +0 -329 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +0 -414 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +0 -278 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +0 -245 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +0 -517 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +0 -279 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +0 -331 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +0 -619 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +0 -160 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +0 -741 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +0 -244 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +0 -299 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +0 -625 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder_extra.go +0 -47 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +0 -73 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +0 -171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +0 -896 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +0 -1449 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +0 -474 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +0 -424 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +0 -318 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +0 -508 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +0 -113 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkkeysyms.go +0 -4904 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +0 -304 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +0 -460 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +0 -382 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +0 -575 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +0 -57 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +0 -214 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +0 -311 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +0 -190 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -63 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +0 -710 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +0 -716 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +0 -751 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +0 -196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +0 -853 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +0 -746 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-features.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +0 -549 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +0 -552 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +0 -125 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +0 -1783 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +0 -94 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gaction.go +0 -663 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +0 -852 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +0 -434 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +0 -2242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +0 -2213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +0 -715 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +0 -339 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +0 -325 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +0 -556 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +0 -314 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +0 -617 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +0 -327 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +0 -266 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +0 -349 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +0 -235 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +0 -496 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +0 -674 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +0 -416 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +0 -330 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +0 -152 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +0 -199 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +0 -1909 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +0 -182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +0 -291 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +0 -542 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +0 -579 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +0 -70 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +0 -753 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +0 -392 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +0 -110 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +0 -274 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +0 -390 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +0 -719 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +0 -268 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +0 -169 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +0 -267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +0 -1102 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +0 -311 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +0 -213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +0 -134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +0 -361 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +0 -1459 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +0 -1041 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +0 -175 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfile.go +0 -7039 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +0 -139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +0 -768 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +0 -190 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +0 -1682 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +0 -513 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +0 -619 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +0 -388 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +0 -614 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gicon.go +0 -378 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +0 -556 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +0 -280 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +0 -869 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +0 -2410 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +0 -347 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giostream.go +0 -723 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +0 -1144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +0 -348 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +0 -236 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +0 -411 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +0 -167 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +0 -610 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +0 -772 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmenuexporter.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +0 -993 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmount.go +0 -1422 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +0 -1017 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +0 -336 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +0 -412 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +0 -272 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +0 -283 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +0 -1272 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +0 -305 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +0 -384 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +0 -136 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +0 -315 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +0 -352 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -301 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +0 -298 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +0 -180 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +0 -1053 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gresource.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +0 -1862 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +0 -676 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +0 -592 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +0 -433 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +0 -489 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +0 -618 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +0 -446 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +0 -2007 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +0 -249 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +0 -253 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +0 -955 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +0 -298 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +0 -397 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +0 -619 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +0 -406 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +0 -633 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +0 -412 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtask.go +0 -1352 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +0 -125 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +0 -228 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +0 -291 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -63 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +0 -309 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +0 -499 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +0 -764 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +0 -319 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +0 -836 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +0 -886 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +0 -518 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +0 -328 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +0 -90 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +0 -267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +0 -211 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +0 -370 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +0 -341 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +0 -698 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +0 -1140 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +0 -1182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +0 -307 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +0 -213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +0 -188 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/garray.go +0 -817 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +0 -448 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +0 -404 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +0 -91 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +0 -958 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gcache.go +0 -118 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +0 -222 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +0 -457 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +0 -286 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdate.go +0 -850 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +0 -1084 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdir.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/genviron.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gerror.go +0 -285 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +0 -806 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghash.go +0 -742 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +0 -205 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghook.go +0 -260 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +0 -1139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +0 -1174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/glibconfig.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/glist.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmacros.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmain.go +0 -2568 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +0 -178 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +0 -788 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmem.go +0 -532 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +0 -1030 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gnode.go +0 -439 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/goption.go +0 -666 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +0 -205 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gquark.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +0 -503 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grand.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +0 -200 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +0 -134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gregex.go +0 -1625 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grel.go +0 -204 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +0 -483 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +0 -603 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gshell.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gslice.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gslist.go +0 -47 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +0 -607 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +0 -381 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +0 -1164 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstring.go +0 -622 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +0 -176 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +0 -1491 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gthread.go +0 -2487 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +0 -278 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +0 -378 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtree.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +0 -1703 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/guri.go +0 -1112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gutils.go +0 -766 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/guuid.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gvariant-parser.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gvariant.go +0 -3134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gvarianttype.go +0 -730 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gversion.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gversionmacros.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/main.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more_other.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more_sysv.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more_windows.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gmodule/gmodule.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gmodule/gmoduleconf.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gmodule/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gbinding.go +0 -361 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gbindinggroup.go +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gboxed.go +0 -58 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gclosure.go +0 -549 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/genums.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/glib-types.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gmarshal.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gobject.go +0 -2267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gparam.go +0 -935 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gparamspecs.go +0 -1291 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gsignal.go +0 -839 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gsignalgroup.go +0 -265 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gsourceclosure.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gtype.go +0 -1702 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gtypemodule.go +0 -380 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gtypeplugin.go +0 -191 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvalue.go +0 -951 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvaluearray.go +0 -212 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvaluecollector.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvaluetypes.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/main.go +0 -37 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/more.go +0 -160 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/types/types.go +0 -3 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-box.go +0 -408 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-config.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-euler.go +0 -408 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-frustum.go +0 -161 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-macros.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-matrix.go +0 -885 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-plane.go +0 -220 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-point.go +0 -196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-point3d.go +0 -235 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-quad.go +0 -140 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-quaternion.go +0 -331 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-ray.go +0 -274 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-rect.go +0 -485 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-size.go +0 -137 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-sphere.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-triangle.go +0 -244 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-types.go +0 -53 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec2.go +0 -331 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec3.go +0 -417 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec4.go +0 -431 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskblendnode.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskblurnode.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskbordernode.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskbroadwayrenderer.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcaironode.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcairorenderer.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskclipnode.go +0 -94 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcolormatrixnode.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcolornode.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfer.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfernode.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcompositenode.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskconicgradientnode.go +0 -123 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcontainernode.go +0 -89 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcopynode.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcrossfadenode.go +0 -105 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskdebugnode.go +0 -91 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskenums.go +0 -592 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskfillnode.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskglrenderer.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskglshader.go +0 -682 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskglshadernode.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskinsetshadownode.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskisolationnode.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsklineargradientnode.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskmasknode.go +0 -109 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskopacitynode.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskoutsetshadownode.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskpastenode.go +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskpath.go +0 -118 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskpathpoint.go +0 -189 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskradialgradientnode.go +0 -188 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrenderer.go +0 -227 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrendernode.go +0 -338 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrenderreplay.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrepeatnode.go +0 -94 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskroundedclipnode.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskroundedrect.go +0 -191 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskshadownode.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskstroke.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskstrokenode.go +0 -115 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsksubsurfacenode.go +0 -92 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktextnode.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktexturenode.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktexturescalenode.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktransform.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktransformnode.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktypes.go +0 -2171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskvulkanrenderer.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaboutdialog.go +0 -1303 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccelgroup.go +0 -174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessible.go +0 -857 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblehypertext.go +0 -484 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblerange.go +0 -111 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessibletext.go +0 -579 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkactionable.go +0 -361 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkactionbar.go +0 -460 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkadjustment.go +0 -604 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkalertdialog.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooser.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserbutton.go +0 -656 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserdialog.go +0 -551 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserwidget.go +0 -681 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkapplication.go +0 -1023 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkapplicationwindow.go +0 -944 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaspectframe.go +0 -517 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkassistant.go +0 -1046 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkatcontext.go +0 -140 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbinlayout.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbitset.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbookmarklist.go +0 -318 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkboolfilter.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkborder.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbox.go +0 -592 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkboxlayout.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuildable.go +0 -717 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilder.go +0 -1015 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderlistitemfactory.go +0 -206 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderscope.go +0 -347 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbutton.go +0 -910 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcalendar.go +0 -836 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellarea.go +0 -1892 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareabox.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareacontext.go +0 -431 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcelleditable.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcelllayout.go +0 -649 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderer.go +0 -1060 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendereraccel.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderercombo.go +0 -163 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererpixbuf.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererprogress.go +0 -210 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspin.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspinner.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertext.go +0 -764 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertoggle.go +0 -224 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellview.go +0 -691 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterbox.go +0 -560 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterlayout.go +0 -268 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcheckbutton.go +0 -872 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorbutton.go +0 -565 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooser.go +0 -317 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserdialog.go +0 -510 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserwidget.go +0 -415 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialog.go +0 -242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialogbutton.go +0 -482 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorutils.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnview.go +0 -935 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcell.go +0 -213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcolumn.go +0 -472 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewrow.go +0 -337 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewsorter.go +0 -171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcombobox.go +0 -1338 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcomboboxtext.go +0 -649 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraint.go +0 -362 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintguide.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintlayout.go +0 -552 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcssenums.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcsserror.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcsslocation.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcssprovider.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcsssection.go +0 -201 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomfilter.go +0 -108 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomlayout.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomsorter.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdebug.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdialog.go +0 -1015 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdialogerror.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdirectorylist.go +0 -415 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdragicon.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdragsource.go +0 -384 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdrawingarea.go +0 -598 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdropcontrollermotion.go +0 -227 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdropdown.go +0 -757 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptarget.go +0 -536 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptargetasync.go +0 -340 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeditable.go +0 -1116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeditablelabel.go +0 -686 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkemojichooser.go +0 -463 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkentry.go +0 -2296 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkentrybuffer.go +0 -665 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkentrycompletion.go +0 -772 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkenums.go +0 -2235 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontroller.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerfocus.go +0 -199 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerkey.go +0 -234 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerlegacy.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollermotion.go +0 -204 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerscroll.go +0 -281 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkexpander.go +0 -730 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkexpression.go +0 -975 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooser.go +0 -711 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserdialog.go +0 -934 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechoosernative.go +0 -662 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserwidget.go +0 -1084 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfiledialog.go +0 -714 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilefilter.go +0 -324 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilelauncher.go +0 -249 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilter.go +0 -485 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilterlistmodel.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfixed.go +0 -447 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfixedlayout.go +0 -196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkflattenlistmodel.go +0 -251 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkflowbox.go +0 -1649 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontbutton.go +0 -759 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooser.go +0 -773 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserdialog.go +0 -643 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserwidget.go +0 -532 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialog.go +0 -411 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialogbutton.go +0 -712 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkframe.go +0 -559 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesture.go +0 -650 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureclick.go +0 -188 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturedrag.go +0 -184 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturelongpress.go +0 -180 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturepan.go +0 -134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturerotate.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturesingle.go +0 -229 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturestylus.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureswipe.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturezoom.go +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkglarea.go +0 -1007 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgraphicsoffload.go +0 -491 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgrid.go +0 -789 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgridlayout.go +0 -494 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgridview.go +0 -759 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkheaderbar.go +0 -635 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkiconpaintable.go +0 -349 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkicontheme.go +0 -535 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkiconview.go +0 -1817 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimage.go +0 -879 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontext.go +0 -1256 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontextsimple.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimmodule.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimmulticontext.go +0 -229 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkinfobar.go +0 -705 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkinscription.go +0 -881 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklabel.go +0 -1759 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutchild.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutmanager.go +0 -407 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklevelbar.go +0 -714 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklinkbutton.go +0 -583 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistbase.go +0 -454 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistbox.go +0 -1802 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistheader.go +0 -181 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistitem.go +0 -383 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistitemfactory.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkliststore.go +0 -945 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistview.go +0 -815 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklockbutton.go +0 -571 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmain.go +0 -183 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmaplistmodel.go +0 -312 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmediacontrols.go +0 -377 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmediafile.go +0 -560 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmediastream.go +0 -1173 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmenubutton.go +0 -917 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmessagedialog.go +0 -751 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmountoperation.go +0 -286 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmultifilter.go +0 -518 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmultiselection.go +0 -351 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmultisorter.go +0 -216 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknative.go +0 -185 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknativedialog.go +0 -474 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknoselection.go +0 -356 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknotebook.go +0 -1572 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknumericsorter.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkorientable.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlay.go +0 -489 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlaylayout.go +0 -207 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpadcontroller.go +0 -223 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetup.go +0 -454 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetupunixdialog.go +0 -497 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpaned.go +0 -930 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpapersize.go +0 -375 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentry.go +0 -756 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentrybuffer.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpicture.go +0 -835 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopover.go +0 -931 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopoverbin.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenu.go +0 -627 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenubar.go +0 -407 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintcontext.go +0 -272 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintdialog.go +0 -488 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprinter.go +0 -564 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintjob.go +0 -486 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperation.go +0 -1921 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperationpreview.go +0 -444 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintsettings.go +0 -1024 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintunixdialog.go +0 -756 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprogressbar.go +0 -659 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrange.go +0 -968 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrecentmanager.go +0 -913 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrender.go +0 -171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrevealer.go +0 -539 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkroot.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscale.go +0 -736 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscalebutton.go +0 -726 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscrollable.go +0 -266 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscrollbar.go +0 -406 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscrolledwindow.go +0 -1169 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksearchbar.go +0 -534 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksearchentry.go +0 -970 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksectionmodel.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkselectionfiltermodel.go +0 -208 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkselectionmodel.go +0 -606 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkseparator.go +0 -351 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksettings.go +0 -1332 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcut.go +0 -210 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutaction.go +0 -640 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutcontroller.go +0 -330 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutlabel.go +0 -419 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutmanager.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutsgroup.go +0 -414 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutssection.go +0 -510 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutsshortcut.go +0 -540 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutswindow.go +0 -597 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcuttrigger.go +0 -605 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshow.go +0 -53 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksignallistitemfactory.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksingleselection.go +0 -505 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksizegroup.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksizerequest.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkslicelistmodel.go +0 -320 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksnapshot.go +0 -864 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksorter.go +0 -482 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksortlistmodel.go +0 -401 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkspinbutton.go +0 -1420 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkspinner.go +0 -397 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstack.go +0 -1398 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstacksidebar.go +0 -371 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstackswitcher.go +0 -394 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstatusbar.go +0 -464 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstringfilter.go +0 -242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstringlist.go +0 -396 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstringsorter.go +0 -199 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstylecontext.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstyleprovider.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksvg.go +0 -877 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkswitch.go +0 -598 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksymbolicpaintable.go +0 -174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktestatcontext.go +0 -92 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktestutils.go +0 -65 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktext.go +0 -1750 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextbuffer.go +0 -2305 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextchild.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextiter.go +0 -1468 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextmark.go +0 -252 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktexttag.go +0 -1574 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktexttagtable.go +0 -238 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextview.go +0 -2855 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktogglebutton.go +0 -667 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktooltip.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreednd.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeexpander.go +0 -611 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreelistmodel.go +0 -593 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreelistrowsorter.go +0 -125 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodel.go +0 -1898 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodelfilter.go +0 -741 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodelsort.go +0 -688 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeselection.go +0 -334 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreesortable.go +0 -379 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreestore.go +0 -899 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeview.go +0 -2734 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeviewcolumn.go +0 -1028 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktypes.go +0 -534 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkurilauncher.go +0 -174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkversion.go +0 -139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkvideo.go +0 -630 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkviewport.go +0 -504 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkvolumebutton.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwidget.go +0 -5777 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwidgetpaintable.go +0 -258 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindow.go +0 -2182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowcontrols.go +0 -551 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowgroup.go +0 -231 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowhandle.go +0 -383 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCClass.go +0 -519 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCContext.go +0 -414 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCException.go +0 -252 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCOptions.go +0 -234 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCValue.go +0 -1092 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCVersion.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCVirtualMachine.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCWeakValue.go +0 -123 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/layershell/gtk4-layer-shell.go +0 -354 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-attributes.go +0 -1850 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-bidi-type.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-break.go +0 -139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-color.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-context.go +0 -430 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-coverage.go +0 -202 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-direction.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-features.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-font.go +0 -2354 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-fontmap.go +0 -573 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-fontset-simple.go +0 -102 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-fontset.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-glyph-item.go +0 -307 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-glyph.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-gravity.go +0 -143 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-item.go +0 -253 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-language.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-layout.go +0 -1847 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-markup.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-matrix.go +0 -248 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-renderer.go +0 -789 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-script.go +0 -419 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-tabs.go +0 -283 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-types.go +0 -246 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-utils.go +0 -302 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-basic.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-digest.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain-basic.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain-digest.go +0 -155 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-manager.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-negotiate.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-ntlm.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth.go +0 -540 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cache.go +0 -242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-content-decoder.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-content-sniffer.go +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar-db.go +0 -110 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar-text.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar.go +0 -467 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-date-utils.go +0 -67 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-form.go +0 -146 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-headers.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-enforcer-db.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-enforcer.go +0 -308 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-policy.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-logger.go +0 -265 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-message-body.go +0 -285 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-message-headers.go +0 -642 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-message.go +0 -1445 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-multipart-input-stream.go +0 -254 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-multipart.go +0 -161 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-server-message.go +0 -700 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-server.go +0 -1002 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-session-feature.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-session.go +0 -1397 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-status.go +0 -193 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-tld.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-types.go +0 -854 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-uri-utils.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-version.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-connection.go +0 -636 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension-deflate.go +0 -66 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension-manager.go +0 -70 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension.go +0 -328 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket.go +0 -264 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitApplicationInfo.go +0 -133 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitAuthenticationRequest.go +0 -343 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitAutomationSession.go +0 -212 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitBackForwardList.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitBackForwardListItem.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitClipboardPermissionRequest.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitColorChooserRequest.go +0 -182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenu.go +0 -344 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenuActions.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenuItem.go +0 -276 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitCookieManager.go +0 -347 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitCredential.go +0 -187 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitDeviceInfoPermissionRequest.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitDownload.go +0 -429 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitEditingCommands.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitEditorState.go +0 -193 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitError.go +0 -328 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFaviconDatabase.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFeature.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFileChooserRequest.go +0 -219 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFindController.go +0 -351 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFormSubmissionRequest.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitGeolocationManager.go +0 -281 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitGeolocationPermissionRequest.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitHitTestResult.go +0 -354 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitImage.go +0 -267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitInputMethodContext.go +0 -1260 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitMediaKeySystemPermissionRequest.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitMemoryPressureSettings.go +0 -215 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNavigationAction.go +0 -183 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNavigationPolicyDecision.go +0 -92 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNetworkProxySettings.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNetworkSession.go +0 -423 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNotification.go +0 -210 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNotificationPermissionRequest.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitOptionMenu.go +0 -184 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitOptionMenuItem.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPermissionRequest.go +0 -149 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPermissionStateQuery.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPointerLockPermissionRequest.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPolicyDecision.go +0 -341 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPrintOperation.go +0 -273 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitResponsePolicyDecision.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitScriptDialog.go +0 -177 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitSecurityManager.go +0 -218 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitSecurityOrigin.go +0 -163 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitSettings.go +0 -2622 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIRequest.go +0 -148 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIResponse.go +0 -194 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURISchemeRequest.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURISchemeResponse.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIUtilities.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContent.go +0 -323 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContentFilterStore.go +0 -289 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContentManager.go +0 -432 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserMediaPermissionRequest.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserMessage.go +0 -230 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitVersion.go +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebContext.go +0 -650 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebExtension.go +0 -617 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebExtensionMatchPattern.go +0 -264 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebInspector.go +0 -388 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebResource.go +0 -280 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebView.go +0 -4734 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewBase.go +0 -444 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewGtk4.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewSessionState.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteData.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteDataAccessPermissionRequest.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteDataManager.go +0 -545 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsitePolicies.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWindowProperties.go +0 -338 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitXRPermissionRequest.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/more.go +0 -234 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/.gitignore +0 -25 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/LICENSE +0 -20 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/README.md +0 -30 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/backoff.go +0 -66 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/context.go +0 -62 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/exponential.go +0 -216 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/retry.go +0 -146 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/ticker.go +0 -97 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/timer.go +0 -35 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/tries.go +0 -38 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/cursor/cursor.go +0 -221 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/help/help.go +0 -240 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/key/key.go +0 -140 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/README.md +0 -71 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/defaultitem.go +0 -229 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/keys.go +0 -97 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/list.go +0 -1330 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/style.go +0 -99 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/paginator/paginator.go +0 -214 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/runeutil/runeutil.go +0 -102 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/spinner/spinner.go +0 -224 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/table/table.go +0 -450 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/textinput/textinput.go +0 -890 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/viewport/keymap.go +0 -60 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/viewport/viewport.go +0 -544 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.gitattributes +0 -1 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.gitignore +0 -23 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.golangci.yml +0 -44 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.goreleaser.yml +0 -5 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/README.md +0 -400 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/Taskfile.yaml +0 -14 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/commands.go +0 -222 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/exec.go +0 -133 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/focus.go +0 -9 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/inputreader_other.go +0 -19 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/inputreader_windows.go +0 -129 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key.go +0 -715 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key_other.go +0 -13 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key_sequences.go +0 -130 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key_windows.go +0 -441 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/logging.go +0 -53 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/mouse.go +0 -308 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/nil_renderer.go +0 -29 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/options.go +0 -252 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/renderer.go +0 -88 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/screen.go +0 -248 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/signals_unix.go +0 -33 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/signals_windows.go +0 -10 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/standard_renderer.go +0 -790 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tea.go +0 -941 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tea_init.go +0 -22 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tty.go +0 -141 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tty_unix.go +0 -49 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tty_windows.go +0 -68 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/.golangci.yml +0 -47 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/.goreleaser.yml +0 -6 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/README.md +0 -109 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/doc.go +0 -4 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/env.go +0 -294 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/env_other.go +0 -8 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/env_windows.go +0 -40 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/profile.go +0 -108 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/writer.go +0 -171 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/.golangci.yml +0 -41 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/.goreleaser.yml +0 -5 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/README.md +0 -815 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/Taskfile.yaml +0 -19 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/align.go +0 -83 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/ansi_unix.go +0 -7 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/ansi_windows.go +0 -22 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/borders.go +0 -490 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/color.go +0 -172 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/get.go +0 -556 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/join.go +0 -175 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/position.go +0 -154 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/ranges.go +0 -48 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/renderer.go +0 -181 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/runes.go +0 -43 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/set.go +0 -799 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/size.go +0 -41 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/style.go +0 -588 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/unset.go +0 -331 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/whitespace.go +0 -83 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/ansi.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/ascii.go +0 -8 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/background.go +0 -178 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/c0.go +0 -79 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/c1.go +0 -72 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/charset.go +0 -55 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/clipboard.go +0 -75 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/color.go +0 -784 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/ctrl.go +0 -156 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/cursor.go +0 -637 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/cwd.go +0 -26 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/doc.go +0 -7 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/finalterm.go +0 -67 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/focus.go +0 -9 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/graphics.go +0 -62 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/hyperlink.go +0 -28 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/inband.go +0 -24 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/iterm2.go +0 -18 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/keypad.go +0 -28 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/kitty.go +0 -90 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/method.go +0 -196 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/mode.go +0 -690 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/mode_deprecated.go +0 -495 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/modes.go +0 -65 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/mouse.go +0 -172 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/notification.go +0 -32 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/palette.go +0 -34 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser.go +0 -417 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser/const.go +0 -79 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser/seq.go +0 -136 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser/transition_table.go +0 -273 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser_decode.go +0 -525 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser_handler.go +0 -60 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser_sync.go +0 -29 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/passthrough.go +0 -60 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/paste.go +0 -7 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/progress.go +0 -49 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/reset.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/screen.go +0 -410 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/sgr.go +0 -79 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/status.go +0 -168 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/style.go +0 -819 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/termcap.go +0 -41 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/title.go +0 -48 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/truncate.go +0 -290 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/urxvt.go +0 -17 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/util.go +0 -92 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/width.go +0 -107 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/winop.go +0 -59 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/wrap.go +0 -472 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/xterm.go +0 -138 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/buffer.go +0 -474 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/cell.go +0 -487 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/errors.go +0 -6 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/geom.go +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/hardscroll.go +0 -273 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/hashmap.go +0 -301 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/link.go +0 -14 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/pen.go +0 -92 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/screen.go +0 -1514 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/sequence.go +0 -131 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/style.go +0 -31 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/tabstop.go +0 -137 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/utils.go +0 -24 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/wrap.go +0 -191 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/writer.go +0 -340 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term.go +0 -51 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_other.go +0 -39 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_plan9.go +0 -118 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_unix.go +0 -96 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_unix_bsd.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_unix_other.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_windows.go +0 -87 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/terminal.go +0 -12 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/util.go +0 -47 collapsed to keep the page light
D vendor/github.com/cli/browser/LICENSE +0 -23 collapsed to keep the page light
D vendor/github.com/cli/browser/README.md +0 -20 collapsed to keep the page light
D vendor/github.com/cli/browser/browser.go +0 -57 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_darwin.go +0 -5 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_freebsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_linux.go +0 -21 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_netbsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_openbsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_unsupported.go +0 -12 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_windows.go +0 -7 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/.gitignore +0 -3 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/AGENTS.md +0 -51 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/CHANGELOG.md +0 -129 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/README.md +0 -190 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/gen.go +0 -3 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/graphemes.go +0 -73 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/options.go +0 -30 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/trie.go +0 -1699 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/truncate.go +0 -149 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/width.go +0 -239 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/README.md +0 -120 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi.go +0 -138 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi8.go +0 -79 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/iterator.go +0 -144 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/reader.go +0 -25 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/splitfunc.go +0 -205 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/trie.go +0 -1717 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md +0 -21 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/md2man/debug.go +0 -62 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go +0 -24 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go +0 -416 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/LICENSE +0 -15 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/bypass.go +0 -145 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/bypasssafe.go +0 -38 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/common.go +0 -341 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/config.go +0 -306 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/doc.go +0 -211 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/dump.go +0 -509 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/format.go +0 -419 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/spew.go +0 -148 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/.golangci.yml +0 -24 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/README.md +0 -2 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/keycodes.go +0 -205 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/mode.go +0 -82 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/read.go +0 -154 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/records.go +0 -486 collapsed to keep the page light
D vendor/github.com/fatih/color/LICENSE.md +0 -20 collapsed to keep the page light
D vendor/github.com/fatih/color/README.md +0 -189 collapsed to keep the page light
D vendor/github.com/fatih/color/color.go +0 -733 collapsed to keep the page light
D vendor/github.com/fatih/color/color_windows.go +0 -22 collapsed to keep the page light
D vendor/github.com/fatih/color/doc.go +0 -134 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/.gitignore +0 -10 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/.mailmap +0 -2 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/CHANGELOG.md +0 -651 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md +0 -147 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/LICENSE +0 -25 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/README.md +0 -214 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_fen.go +0 -469 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_inotify.go +0 -597 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_kqueue.go +0 -735 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_other.go +0 -22 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_windows.go +0 -702 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/fsnotify.go +0 -526 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/darwin.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_darwin.go +0 -15 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_dragonfly.go +0 -15 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_freebsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_kqueue.go +0 -32 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_linux.go +0 -56 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_netbsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_openbsd.go +0 -16 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_solaris.go +0 -45 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_windows.go +0 -40 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/freebsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/internal.go +0 -2 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/unix.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/unix2.go +0 -25 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/windows.go +0 -40 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/shared.go +0 -64 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/staticcheck.conf +0 -3 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/system_bsd.go +0 -7 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/system_darwin.go +0 -8 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.editorconfig +0 -24 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.envrc +0 -7 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.gitignore +0 -10 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.golangci.yaml +0 -48 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/CHANGELOG.md +0 -104 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/README.md +0 -81 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/decode_hooks.go +0 -714 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/devenv.lock +0 -103 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/devenv.nix +0 -14 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/devenv.yaml +0 -4 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/errors.go +0 -244 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/internal/errors/errors.go +0 -11 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/internal/errors/join.go +0 -9 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/internal/errors/join_go1_19.go +0 -61 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/mapstructure.go +0 -1948 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/reflect_go1_19.go +0 -44 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/reflect_go1_20.go +0 -10 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/.cirrus.yml +0 -11 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/.golangci.yml +0 -13 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/CONTRIBUTING.md +0 -50 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/LICENSE +0 -25 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/MAINTAINERS +0 -3 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/README.md +0 -47 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/SECURITY.md +0 -13 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth.go +0 -257 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_anonymous.go +0 -16 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_default_other.go +0 -7 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_default_windows.go +0 -5 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_external.go +0 -26 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_sha1_windows.go +0 -109 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/call.go +0 -66 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn.go +0 -1009 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_darwin.go +0 -36 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_other.go +0 -83 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_unix.go +0 -40 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_windows.go +0 -13 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/dbus.go +0 -427 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/decoder.go +0 -376 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/default_handler.go +0 -338 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/doc.go +0 -70 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/encoder.go +0 -235 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/escape.go +0 -84 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/export.go +0 -484 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/match.go +0 -89 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/message.go +0 -393 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/object.go +0 -181 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/sequence.go +0 -24 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/sequential_handler.go +0 -125 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/server_interfaces.go +0 -107 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/sig.go +0 -298 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_darwin.go +0 -6 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_generic.go +0 -52 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_nonce_tcp.go +0 -41 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_tcp.go +0 -41 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unix.go +0 -291 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_dragonfly.go +0 -95 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_freebsd.go +0 -94 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_linux.go +0 -25 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_netbsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_openbsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_zos.go +0 -6 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/variant.go +0 -169 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/variant_lexer.go +0 -284 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/variant_parser.go +0 -815 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/LICENSE +0 -201 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/README.md +0 -23 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/trap_others.go +0 -16 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/trap_windows.go +0 -42 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/.gitignore +0 -101 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/CHANGELOG.md +0 -72 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/LICENSE +0 -7 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/README.md +0 -490 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/colorgens.go +0 -67 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/colors.go +0 -1156 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/happy_palettegen.go +0 -29 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/hexcolor.go +0 -91 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/hsluv-snapshot-rev4.json +0 -1 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/hsluv.go +0 -208 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/rand.go +0 -22 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/soft_palettegen.go +0 -192 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/sort.go +0 -191 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/warm_palettegen.go +0 -29 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/widegamut.go +0 -290 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/README.md +0 -48 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/colorable_others.go +0 -38 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/colorable_windows.go +0 -1047 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/go.test.sh +0 -12 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/noncolorable.go +0 -57 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/LICENSE +0 -9 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/README.md +0 -50 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/doc.go +0 -2 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/go.test.sh +0 -12 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_bsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_others.go +0 -17 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_plan9.go +0 -23 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_solaris.go +0 -21 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_tcgets.go +0 -20 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_windows.go +0 -136 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/README.md +0 -23 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/localereader.go +0 -19 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/localereader_unix.go +0 -11 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/localereader_windows.go +0 -85 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/README.md +0 -27 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/benchstat.txt +0 -43 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/new.txt +0 -54 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/old.txt +0 -54 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth.go +0 -420 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_appengine.go +0 -9 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_js.go +0 -9 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_posix.go +0 -81 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_table.go +0 -488 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_windows.go +0 -34 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/LICENSE.txt +0 -24 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/README.md +0 -85 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/env.go +0 -53 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/interpolate.go +0 -213 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/parser.go +0 -281 collapsed to keep the page light
D vendor/github.com/muesli/ansi/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/muesli/ansi/.golangci.yml +0 -27 collapsed to keep the page light
D vendor/github.com/muesli/ansi/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/muesli/ansi/README.md +0 -31 collapsed to keep the page light
D vendor/github.com/muesli/ansi/ansi.go +0 -7 collapsed to keep the page light
D vendor/github.com/muesli/ansi/buffer.go +0 -40 collapsed to keep the page light
D vendor/github.com/muesli/ansi/compressor/writer.go +0 -132 collapsed to keep the page light
D vendor/github.com/muesli/ansi/writer.go +0 -76 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/.golangci-soft.yml +0 -47 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/.golangci.yml +0 -29 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/README.md +0 -64 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader.go +0 -93 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_bsd.go +0 -146 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_default.go +0 -12 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_linux.go +0 -154 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_select.go +0 -136 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_unix.go +0 -18 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_windows.go +0 -244 collapsed to keep the page light
D vendor/github.com/muesli/termenv/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/muesli/termenv/.golangci-soft.yml +0 -43 collapsed to keep the page light
D vendor/github.com/muesli/termenv/.golangci.yml +0 -28 collapsed to keep the page light
D vendor/github.com/muesli/termenv/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/muesli/termenv/README.md +0 -431 collapsed to keep the page light
D vendor/github.com/muesli/termenv/ansi_compat.md +0 -65 collapsed to keep the page light
D vendor/github.com/muesli/termenv/ansicolors.go +0 -281 collapsed to keep the page light
D vendor/github.com/muesli/termenv/color.go +0 -205 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_linux.go +0 -8 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_solaris.go +0 -8 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_unix.go +0 -13 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_zos.go +0 -8 collapsed to keep the page light
D vendor/github.com/muesli/termenv/copy.go +0 -37 collapsed to keep the page light
D vendor/github.com/muesli/termenv/hyperlink.go +0 -11 collapsed to keep the page light
D vendor/github.com/muesli/termenv/notification.go +0 -11 collapsed to keep the page light
D vendor/github.com/muesli/termenv/output.go +0 -205 collapsed to keep the page light
D vendor/github.com/muesli/termenv/profile.go +0 -112 collapsed to keep the page light
D vendor/github.com/muesli/termenv/screen.go +0 -590 collapsed to keep the page light
D vendor/github.com/muesli/termenv/style.go +0 -126 collapsed to keep the page light
D vendor/github.com/muesli/termenv/templatehelper.go +0 -88 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv.go +0 -115 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_other.go +0 -30 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_posix.go +0 -17 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_solaris.go +0 -22 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_unix.go +0 -301 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_windows.go +0 -140 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/.gitignore +0 -24 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/README.md +0 -35 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/atomic.go +0 -73 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/file_unix.go +0 -14 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/file_windows.go +0 -33 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/zfile_windows.go +0 -27 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.dockerignore +0 -2 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.gitattributes +0 -4 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.gitignore +0 -8 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.golangci.toml +0 -76 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.goreleaser.yaml +0 -128 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/AGENTS.md +0 -73 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/CONTRIBUTING.md +0 -254 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/Dockerfile +0 -6 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/README.md +0 -327 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/SECURITY.md +0 -16 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/capability_baseline.txt +0 -1 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/caps.sh +0 -101 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/ci.sh +0 -293 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/decode.go +0 -538 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/decode_fused.go +0 -362 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/doc.go +0 -2 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/errors.go +0 -233 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/parserbridge/parserbridge.go +0 -37 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/tracker/key.go +0 -49 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/tracker/seen.go +0 -450 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/tracker/tracker.go +0 -2 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/localtime.go +0 -121 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/marshaler.go +0 -1697 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/strict.go +0 -108 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/test-go-versions.sh +0 -597 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/toml.abnf +0 -246 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/types.go +0 -24 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unmarshaler.go +0 -2396 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/ast.go +0 -124 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/bridge.go +0 -21 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/doc.go +0 -3 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/kind.go +0 -83 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/marshaler.go +0 -29 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/parser.go +0 -1686 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/unmarshaler.go +0 -43 collapsed to keep the page light
D vendor/github.com/pmezard/go-difflib/LICENSE +0 -27 collapsed to keep the page light
D vendor/github.com/pmezard/go-difflib/difflib/difflib.go +0 -772 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/.gitignore +0 -22 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/.golangci.yaml +0 -31 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/.goreleaser.yaml +0 -37 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/CHANGELOG.md +0 -350 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/Makefile +0 -150 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/README.md +0 -500 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/create.go +0 -116 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/dialect/querier.go +0 -25 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/dialect/querier_extended.go +0 -22 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/dialects.go +0 -214 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/doc.go +0 -14 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/sql_extended.go +0 -23 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/store.go +0 -66 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/store_extended.go +0 -33 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/db.go +0 -48 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/dialect.go +0 -74 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/down.go +0 -107 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/fix.go +0 -54 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/globals.go +0 -104 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/goose.go +0 -141 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/helpers.go +0 -84 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/install.sh +0 -37 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/controller/store.go +0 -37 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/clickhouse.go +0 -53 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/dsql.go +0 -66 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/mysql.go +0 -62 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/postgres.go +0 -70 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/redshift.go +0 -52 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/spanner.go +0 -50 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/sqlite3.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/sqlserver.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/starrocks.go +0 -54 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/tidb.go +0 -52 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/turso.go +0 -14 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/vertica.go +0 -54 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/ydb.go +0 -72 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/gooseutil/resolve.go +0 -118 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/legacystore/legacystore.go +0 -173 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/sqlparser/parse.go +0 -59 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/sqlparser/parser.go +0 -394 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/store/postgres.go +0 -282 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/store/store.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/table/config.go +0 -28 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/table/locker.go +0 -237 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/locker.go +0 -32 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/postgres.go +0 -165 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/session_locker_options.go +0 -98 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/table_locker_options.go +0 -136 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/log.go +0 -36 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/migrate.go +0 -379 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/migration.go +0 -398 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/migration_sql.go +0 -115 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/osfs.go +0 -28 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider.go +0 -669 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_collect.go +0 -196 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_errors.go +0 -48 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_options.go +0 -280 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_run.go +0 -535 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_types.go +0 -91 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/redo.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/register.go +0 -133 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/reset.go +0 -64 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/status.go +0 -64 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/up.go +0 -221 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/version.go +0 -52 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/LICENSE.txt +0 -21 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/README.md +0 -137 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/doc.go +0 -108 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/eastasianwidth.go +0 -2588 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/emojipresentation.go +0 -295 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/gen_breaktest.go +0 -215 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/gen_properties.go +0 -261 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/grapheme.go +0 -331 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/graphemeproperties.go +0 -1915 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/graphemerules.go +0 -176 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/line.go +0 -134 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/lineproperties.go +0 -3554 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/linerules.go +0 -626 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/properties.go +0 -208 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/sentence.go +0 -90 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/sentenceproperties.go +0 -2845 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/sentencerules.go +0 -276 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/step.go +0 -242 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/width.go +0 -61 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/word.go +0 -89 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/wordproperties.go +0 -1883 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/wordrules.go +0 -282 collapsed to keep the page light
D vendor/github.com/rs/zerolog/.gitignore +0 -27 collapsed to keep the page light
D vendor/github.com/rs/zerolog/CONTRIBUTING.md +0 -43 collapsed to keep the page light
D vendor/github.com/rs/zerolog/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/rs/zerolog/README.md +0 -858 collapsed to keep the page light
D vendor/github.com/rs/zerolog/array.go +0 -276 collapsed to keep the page light
D vendor/github.com/rs/zerolog/console.go +0 -535 collapsed to keep the page light
D vendor/github.com/rs/zerolog/context.go +0 -535 collapsed to keep the page light
D vendor/github.com/rs/zerolog/ctx.go +0 -51 collapsed to keep the page light
D vendor/github.com/rs/zerolog/encoder.go +0 -56 collapsed to keep the page light
D vendor/github.com/rs/zerolog/encoder_cbor.go +0 -45 collapsed to keep the page light
D vendor/github.com/rs/zerolog/encoder_json.go +0 -51 collapsed to keep the page light
D vendor/github.com/rs/zerolog/event.go +0 -919 collapsed to keep the page light
D vendor/github.com/rs/zerolog/example.jsonl +0 -7 collapsed to keep the page light
D vendor/github.com/rs/zerolog/fields.go +0 -312 collapsed to keep the page light
D vendor/github.com/rs/zerolog/globals.go +0 -208 collapsed to keep the page light
D vendor/github.com/rs/zerolog/globals_118.go +0 -30 collapsed to keep the page light
D vendor/github.com/rs/zerolog/go112.go +0 -7 collapsed to keep the page light
D vendor/github.com/rs/zerolog/hook.go +0 -64 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/README.md +0 -56 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/base.go +0 -19 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/cbor.go +0 -102 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/decode_stream.go +0 -654 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/string.go +0 -117 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/time.go +0 -111 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/types.go +0 -524 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/base.go +0 -19 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/bytes.go +0 -85 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/string.go +0 -149 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/time.go +0 -124 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/types.go +0 -466 collapsed to keep the page light
D vendor/github.com/rs/zerolog/log.go +0 -528 collapsed to keep the page light
D vendor/github.com/rs/zerolog/not_go112.go +0 -5 collapsed to keep the page light
D vendor/github.com/rs/zerolog/pretty.png +0 -0 binary file: no text diff
binary file: no text diff
D vendor/github.com/rs/zerolog/sampler.go +0 -137 collapsed to keep the page light
D vendor/github.com/rs/zerolog/slog.go +0 -247 collapsed to keep the page light
D vendor/github.com/rs/zerolog/syslog.go +0 -89 collapsed to keep the page light
D vendor/github.com/rs/zerolog/writer.go +0 -355 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/.gitignore +0 -8 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/.travis.yml +0 -17 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/LICENSE.txt +0 -29 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/README.md +0 -335 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/block.go +0 -1612 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/doc.go +0 -46 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/entities.go +0 -2236 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/esc.go +0 -70 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/html.go +0 -952 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/inline.go +0 -1228 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/markdown.go +0 -950 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/node.go +0 -360 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/smartypants.go +0 -457 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.editorconfig +0 -21 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.envrc +0 -4 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.gitignore +0 -5 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.golangci.yaml +0 -37 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/LICENSE +0 -19 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/README.md +0 -37 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/devenv.lock +0 -103 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/devenv.nix +0 -17 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/devenv.yaml +0 -4 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/file_type.go +0 -32 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/finder.go +0 -171 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/glob.go +0 -5 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/glob_windows.go +0 -8 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/helpers.go +0 -41 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/internal/queue/eager.go +0 -53 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/internal/queue/queue.go +0 -8 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/justfile +0 -14 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/.editorconfig +0 -18 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/CONTRIBUTING.md +0 -1 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/Makefile +0 -59 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/README.md +0 -186 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/fuzzy.go +0 -263 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/LICENSE +0 -202 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/README.md +0 -185 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff.go +0 -134 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff_constant.go +0 -25 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff_exponential.go +0 -47 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff_fibonacci.go +0 -56 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/rand.go +0 -54 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/retry.go +0 -104 collapsed to keep the page light
D vendor/github.com/spf13/afero/.editorconfig +0 -15 collapsed to keep the page light
D vendor/github.com/spf13/afero/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/spf13/afero/.golangci.yaml +0 -48 collapsed to keep the page light
D vendor/github.com/spf13/afero/LICENSE.txt +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/afero/README.md +0 -474 collapsed to keep the page light
D vendor/github.com/spf13/afero/afero.go +0 -111 collapsed to keep the page light
D vendor/github.com/spf13/afero/appveyor.yml +0 -10 collapsed to keep the page light
D vendor/github.com/spf13/afero/basepath.go +0 -222 collapsed to keep the page light
D vendor/github.com/spf13/afero/cacheOnReadFs.go +0 -315 collapsed to keep the page light
D vendor/github.com/spf13/afero/const_bsds.go +0 -23 collapsed to keep the page light
D vendor/github.com/spf13/afero/const_win_unix.go +0 -22 collapsed to keep the page light
D vendor/github.com/spf13/afero/copyOnWriteFs.go +0 -332 collapsed to keep the page light
D vendor/github.com/spf13/afero/httpFs.go +0 -114 collapsed to keep the page light
D vendor/github.com/spf13/afero/internal/common/adapters.go +0 -27 collapsed to keep the page light
D vendor/github.com/spf13/afero/iofs.go +0 -302 collapsed to keep the page light
D vendor/github.com/spf13/afero/ioutil.go +0 -243 collapsed to keep the page light
D vendor/github.com/spf13/afero/lstater.go +0 -27 collapsed to keep the page light
D vendor/github.com/spf13/afero/match.go +0 -110 collapsed to keep the page light
D vendor/github.com/spf13/afero/mem/dir.go +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/afero/mem/dirmap.go +0 -43 collapsed to keep the page light
D vendor/github.com/spf13/afero/mem/file.go +0 -373 collapsed to keep the page light
D vendor/github.com/spf13/afero/memmap.go +0 -463 collapsed to keep the page light
D vendor/github.com/spf13/afero/os.go +0 -113 collapsed to keep the page light
D vendor/github.com/spf13/afero/path.go +0 -106 collapsed to keep the page light
D vendor/github.com/spf13/afero/readonlyfs.go +0 -96 collapsed to keep the page light
D vendor/github.com/spf13/afero/regexpfs.go +0 -223 collapsed to keep the page light
D vendor/github.com/spf13/afero/symlink.go +0 -55 collapsed to keep the page light
D vendor/github.com/spf13/afero/unionFile.go +0 -331 collapsed to keep the page light
D vendor/github.com/spf13/afero/util.go +0 -329 collapsed to keep the page light
D vendor/github.com/spf13/cast/.editorconfig +0 -15 collapsed to keep the page light
D vendor/github.com/spf13/cast/.gitignore +0 -25 collapsed to keep the page light
D vendor/github.com/spf13/cast/.golangci.yaml +0 -39 collapsed to keep the page light
D vendor/github.com/spf13/cast/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/spf13/cast/Makefile +0 -40 collapsed to keep the page light
D vendor/github.com/spf13/cast/README.md +0 -79 collapsed to keep the page light
D vendor/github.com/spf13/cast/alias.go +0 -69 collapsed to keep the page light
D vendor/github.com/spf13/cast/basic.go +0 -131 collapsed to keep the page light
D vendor/github.com/spf13/cast/cast.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/cast/indirect.go +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/cast/internal/time.go +0 -79 collapsed to keep the page light
D vendor/github.com/spf13/cast/internal/timeformattype_string.go +0 -27 collapsed to keep the page light
D vendor/github.com/spf13/cast/map.go +0 -212 collapsed to keep the page light
D vendor/github.com/spf13/cast/number.go +0 -549 collapsed to keep the page light
D vendor/github.com/spf13/cast/slice.go +0 -106 collapsed to keep the page light
D vendor/github.com/spf13/cast/time.go +0 -116 collapsed to keep the page light
D vendor/github.com/spf13/cast/zz_generated.go +0 -261 collapsed to keep the page light
D vendor/github.com/spf13/cobra/.gitignore +0 -39 collapsed to keep the page light
D vendor/github.com/spf13/cobra/.golangci.yml +0 -66 collapsed to keep the page light
D vendor/github.com/spf13/cobra/.mailmap +0 -3 collapsed to keep the page light
D vendor/github.com/spf13/cobra/CONDUCT.md +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/cobra/CONTRIBUTING.md +0 -50 collapsed to keep the page light
D vendor/github.com/spf13/cobra/LICENSE.txt +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/cobra/MAINTAINERS +0 -13 collapsed to keep the page light
D vendor/github.com/spf13/cobra/Makefile +0 -35 collapsed to keep the page light
D vendor/github.com/spf13/cobra/README.md +0 -133 collapsed to keep the page light
D vendor/github.com/spf13/cobra/SECURITY.md +0 -105 collapsed to keep the page light
D vendor/github.com/spf13/cobra/active_help.go +0 -60 collapsed to keep the page light
D vendor/github.com/spf13/cobra/args.go +0 -131 collapsed to keep the page light
D vendor/github.com/spf13/cobra/bash_completions.go +0 -709 collapsed to keep the page light
D vendor/github.com/spf13/cobra/bash_completionsV2.go +0 -484 collapsed to keep the page light
D vendor/github.com/spf13/cobra/cobra.go +0 -246 collapsed to keep the page light
D vendor/github.com/spf13/cobra/command.go +0 -2072 collapsed to keep the page light
D vendor/github.com/spf13/cobra/command_notwin.go +0 -20 collapsed to keep the page light
D vendor/github.com/spf13/cobra/command_win.go +0 -41 collapsed to keep the page light
D vendor/github.com/spf13/cobra/completions.go +0 -1020 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/man_docs.go +0 -246 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/md_docs.go +0 -158 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/rest_docs.go +0 -186 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/util.go +0 -52 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/yaml_docs.go +0 -175 collapsed to keep the page light
D vendor/github.com/spf13/cobra/fish_completions.go +0 -292 collapsed to keep the page light
D vendor/github.com/spf13/cobra/flag_groups.go +0 -290 collapsed to keep the page light
D vendor/github.com/spf13/cobra/powershell_completions.go +0 -350 collapsed to keep the page light
D vendor/github.com/spf13/cobra/shell_completions.go +0 -98 collapsed to keep the page light
D vendor/github.com/spf13/cobra/zsh_completions.go +0 -308 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.editorconfig +0 -12 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.golangci.yaml +0 -4 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.travis.yml +0 -22 collapsed to keep the page light
D vendor/github.com/spf13/pflag/LICENSE +0 -28 collapsed to keep the page light
D vendor/github.com/spf13/pflag/README.md +0 -323 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bool.go +0 -94 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bool_func.go +0 -40 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bool_slice.go +0 -185 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bytes.go +0 -209 collapsed to keep the page light
D vendor/github.com/spf13/pflag/count.go +0 -96 collapsed to keep the page light
D vendor/github.com/spf13/pflag/duration.go +0 -86 collapsed to keep the page light
D vendor/github.com/spf13/pflag/duration_slice.go +0 -166 collapsed to keep the page light
D vendor/github.com/spf13/pflag/errors.go +0 -149 collapsed to keep the page light
D vendor/github.com/spf13/pflag/flag.go +0 -1289 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float32.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float32_slice.go +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float64.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float64_slice.go +0 -166 collapsed to keep the page light
D vendor/github.com/spf13/pflag/func.go +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/pflag/golangflag.go +0 -161 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int16.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int32.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int32_slice.go +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int64.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int64_slice.go +0 -166 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int8.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int_slice.go +0 -158 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ip.go +0 -97 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ip_slice.go +0 -186 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ipmask.go +0 -122 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ipnet.go +0 -98 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ipnet_slice.go +0 -147 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string.go +0 -80 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_array.go +0 -125 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_slice.go +0 -163 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_to_int.go +0 -149 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_to_int64.go +0 -149 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_to_string.go +0 -168 collapsed to keep the page light
D vendor/github.com/spf13/pflag/text.go +0 -81 collapsed to keep the page light
D vendor/github.com/spf13/pflag/time.go +0 -124 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint16.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint32.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint64.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint8.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint_slice.go +0 -168 collapsed to keep the page light
D vendor/github.com/spf13/viper/.editorconfig +0 -21 collapsed to keep the page light
D vendor/github.com/spf13/viper/.envrc +0 -4 collapsed to keep the page light
D vendor/github.com/spf13/viper/.gitignore +0 -8 collapsed to keep the page light
D vendor/github.com/spf13/viper/.golangci.yaml +0 -118 collapsed to keep the page light
D vendor/github.com/spf13/viper/.yamlignore +0 -2 collapsed to keep the page light
D vendor/github.com/spf13/viper/.yamllint.yaml +0 -6 collapsed to keep the page light
D vendor/github.com/spf13/viper/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/spf13/viper/Makefile +0 -87 collapsed to keep the page light
D vendor/github.com/spf13/viper/README.md +0 -931 collapsed to keep the page light
D vendor/github.com/spf13/viper/TROUBLESHOOTING.md +0 -32 collapsed to keep the page light
D vendor/github.com/spf13/viper/UPGRADE.md +0 -147 collapsed to keep the page light
D vendor/github.com/spf13/viper/encoding.go +0 -181 collapsed to keep the page light
D vendor/github.com/spf13/viper/experimental.go +0 -8 collapsed to keep the page light
D vendor/github.com/spf13/viper/file.go +0 -104 collapsed to keep the page light
D vendor/github.com/spf13/viper/finder.go +0 -55 collapsed to keep the page light
D vendor/github.com/spf13/viper/flags.go +0 -57 collapsed to keep the page light
D vendor/github.com/spf13/viper/flake.lock +0 -255 collapsed to keep the page light
D vendor/github.com/spf13/viper/flake.nix +0 -61 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/dotenv/codec.go +0 -61 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/dotenv/map_utils.go +0 -41 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/json/codec.go +0 -17 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/toml/codec.go +0 -16 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/yaml/codec.go +0 -14 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/bind_struct.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/bind_struct_default.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/finder.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/finder_default.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/logger.go +0 -31 collapsed to keep the page light
D vendor/github.com/spf13/viper/remote.go +0 -259 collapsed to keep the page light
D vendor/github.com/spf13/viper/util.go +0 -211 collapsed to keep the page light
D vendor/github.com/spf13/viper/viper.go +0 -2077 collapsed to keep the page light
D vendor/github.com/stretchr/objx/.codeclimate.yml +0 -21 collapsed to keep the page light
D vendor/github.com/stretchr/objx/.gitignore +0 -11 collapsed to keep the page light
D vendor/github.com/stretchr/objx/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/stretchr/objx/README.md +0 -91 collapsed to keep the page light
D vendor/github.com/stretchr/objx/Taskfile.yml +0 -27 collapsed to keep the page light
D vendor/github.com/stretchr/objx/accessors.go +0 -197 collapsed to keep the page light
D vendor/github.com/stretchr/objx/conversions.go +0 -280 collapsed to keep the page light
D vendor/github.com/stretchr/objx/doc.go +0 -66 collapsed to keep the page light
D vendor/github.com/stretchr/objx/map.go +0 -214 collapsed to keep the page light
D vendor/github.com/stretchr/objx/mutations.go +0 -77 collapsed to keep the page light
D vendor/github.com/stretchr/objx/security.go +0 -12 collapsed to keep the page light
D vendor/github.com/stretchr/objx/tests.go +0 -17 collapsed to keep the page light
D vendor/github.com/stretchr/objx/type_specific.go +0 -346 collapsed to keep the page light
D vendor/github.com/stretchr/objx/type_specific_codegen.go +0 -2261 collapsed to keep the page light
D vendor/github.com/stretchr/objx/value.go +0 -159 collapsed to keep the page light
D vendor/github.com/stretchr/testify/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_compare.go +0 -495 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_format.go +0 -866 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl +0 -5 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_forward.go +0 -1723 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl +0 -5 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_order.go +0 -81 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertions.go +0 -2295 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/doc.go +0 -50 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/errors.go +0 -10 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/forward_assertions.go +0 -16 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/http_assertions.go +0 -165 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/yaml/yaml_custom.go +0 -24 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/yaml/yaml_default.go +0 -36 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go +0 -17 collapsed to keep the page light
D vendor/github.com/stretchr/testify/mock/doc.go +0 -44 collapsed to keep the page light
D vendor/github.com/stretchr/testify/mock/mock.go +0 -1298 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/doc.go +0 -31 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/forward_requirements.go +0 -16 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require.go +0 -2180 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require.go.tmpl +0 -6 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require_forward.go +0 -1724 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require_forward.go.tmpl +0 -5 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/requirements.go +0 -29 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.env +0 -1 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.env.invalid +0 -1 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.gitignore +0 -4 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.golangci.yaml +0 -7 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/CHANGELOG.md +0 -105 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/README.md +0 -129 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/gotenv.go +0 -409 collapsed to keep the page light
D vendor/github.com/xo/terminfo/.gitignore +0 -9 collapsed to keep the page light
D vendor/github.com/xo/terminfo/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/xo/terminfo/README.md +0 -139 collapsed to keep the page light
D vendor/github.com/xo/terminfo/caps.go +0 -31 collapsed to keep the page light
D vendor/github.com/xo/terminfo/capvals.go +0 -1525 collapsed to keep the page light
D vendor/github.com/xo/terminfo/color.go +0 -88 collapsed to keep the page light
D vendor/github.com/xo/terminfo/dec.go +0 -245 collapsed to keep the page light
D vendor/github.com/xo/terminfo/load.go +0 -64 collapsed to keep the page light
D vendor/github.com/xo/terminfo/param.go +0 -405 collapsed to keep the page light
D vendor/github.com/xo/terminfo/stack.go +0 -48 collapsed to keep the page light
D vendor/github.com/xo/terminfo/terminfo.go +0 -479 collapsed to keep the page light
D vendor/go.uber.org/multierr/.codecov.yml +0 -15 collapsed to keep the page light
D vendor/go.uber.org/multierr/.gitignore +0 -4 collapsed to keep the page light
D vendor/go.uber.org/multierr/CHANGELOG.md +0 -95 collapsed to keep the page light
D vendor/go.uber.org/multierr/LICENSE.txt +0 -19 collapsed to keep the page light
D vendor/go.uber.org/multierr/Makefile +0 -38 collapsed to keep the page light
D vendor/go.uber.org/multierr/README.md +0 -43 collapsed to keep the page light
D vendor/go.uber.org/multierr/error.go +0 -646 collapsed to keep the page light
D vendor/go.uber.org/multierr/error_post_go120.go +0 -48 collapsed to keep the page light
D vendor/go.uber.org/multierr/error_pre_go120.go +0 -79 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/LICENSE +0 -50 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/NOTICE +0 -13 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/README.md +0 -171 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/apic.go +0 -747 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/decode.go +0 -1018 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/emitterc.go +0 -2054 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/encode.go +0 -577 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/parserc.go +0 -1274 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/readerc.go +0 -434 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/resolve.go +0 -326 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/scannerc.go +0 -3040 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/sorter.go +0 -134 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/writerc.go +0 -48 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/yaml.go +0 -703 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/yamlh.go +0 -811 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/yamlprivateh.go +0 -198 collapsed to keep the page light
D vendor/golang.org/x/image/LICENSE +0 -27 collapsed to keep the page light
D vendor/golang.org/x/image/PATENTS +0 -22 collapsed to keep the page light
D vendor/golang.org/x/image/draw/draw.go +0 -67 collapsed to keep the page light
D vendor/golang.org/x/image/draw/impl.go +0 -8426 collapsed to keep the page light
D vendor/golang.org/x/image/draw/scale.go +0 -525 collapsed to keep the page light
D vendor/golang.org/x/image/math/f64/f64.go +0 -37 collapsed to keep the page light
D vendor/golang.org/x/mod/LICENSE +0 -27 collapsed to keep the page light
D vendor/golang.org/x/mod/PATENTS +0 -22 collapsed to keep the page light
D vendor/golang.org/x/mod/internal/lazyregexp/lazyre.go +0 -78 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/print.go +0 -184 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/read.go +0 -962 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/rule.go +0 -1951 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/work.go +0 -333 collapsed to keep the page light
D vendor/golang.org/x/mod/module/module.go +0 -840 collapsed to keep the page light
D vendor/golang.org/x/mod/module/pseudo.go +0 -250 collapsed to keep the page light
D vendor/golang.org/x/mod/semver/semver.go +0 -407 collapsed to keep the page light
D vendor/golang.org/x/net/LICENSE +0 -27 collapsed to keep the page light
D vendor/golang.org/x/net/PATENTS +0 -22 collapsed to keep the page light
D vendor/golang.org/x/net/html/atom/atom.go +0 -78 collapsed to keep the page light
D vendor/golang.org/x/net/html/atom/table.go +0 -785 collapsed to keep the page light
D vendor/golang.org/x/net/html/const.go +0 -111 collapsed to keep the page light
D vendor/golang.org/x/net/html/doc.go +0 -122 collapsed to keep the page light
D vendor/golang.org/x/net/html/doctype.go +0 -156 collapsed to keep the page light
D vendor/golang.org/x/net/html/entity.go +0 -2252 collapsed to keep the page light
D vendor/golang.org/x/net/html/escape.go +0 -379 collapsed to keep the page light
D vendor/golang.org/x/net/html/foreign.go +0 -221 collapsed to keep the page light
D vendor/golang.org/x/net/html/iter.go +0 -54 collapsed to keep the page light
D vendor/golang.org/x/net/html/node.go +0 -230 collapsed to keep the page light
D vendor/golang.org/x/net/html/nodetype_string.go +0 -31 collapsed to keep the page light
D vendor/golang.org/x/net/html/parse.go +0 -2378 collapsed to keep the page light
D vendor/golang.org/x/net/html/render.go +0 -316 collapsed to keep the page light
D vendor/golang.org/x/net/html/token.go +0 -1322 collapsed to keep the page light
D vendor/golang.org/x/net/idna/idna.go +0 -880 collapsed to keep the page light
D vendor/golang.org/x/net/idna/punycode.go +0 -220 collapsed to keep the page light
D vendor/golang.org/x/net/idna/tables15.0.0.go +0 -5144 collapsed to keep the page light
D vendor/golang.org/x/net/idna/tables17.0.0.go +0 -5302 collapsed to keep the page light
D vendor/golang.org/x/net/idna/trie.go +0 -51 collapsed to keep the page light
D vendor/golang.org/x/net/idna/trieval.go +0 -119 collapsed to keep the page light
D vendor/golang.org/x/net/publicsuffix/data/children +0 -0 binary file: no text diff
binary file: no text diff
D vendor/golang.org/x/net/publicsuffix/data/nodes +0 -0 binary file: no text diff
binary file: no text diff
D vendor/golang.org/x/net/publicsuffix/data/text +0 -1 collapsed to keep the page light
D vendor/golang.org/x/net/publicsuffix/list.go +0 -210 collapsed to keep the page light
D vendor/golang.org/x/net/publicsuffix/table.go +0 -70 collapsed to keep the page light
D vendor/golang.org/x/sync/LICENSE +0 -27 collapsed to keep the page light
D vendor/golang.org/x/sync/PATENTS +0 -22 collapsed to keep the page light
D vendor/golang.org/x/sync/errgroup/errgroup.go +0 -151 collapsed to keep the page light
D vendor/golang.org/x/sys/LICENSE +0 -27 collapsed to keep the page light
D vendor/golang.org/x/sys/PATENTS +0 -22 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/.gitignore +0 -2 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/README.md +0 -184 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/affinity_linux.go +0 -189 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/aliases.go +0 -13 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_aix_ppc64.s +0 -17 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_bsd_386.s +0 -27 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_bsd_amd64.s +0 -27 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_bsd_arm.s +0 -27 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_bsd_arm64.s +0 -27 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s +0 -29 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s +0 -27 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_linux_386.s +0 -65 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_linux_amd64.s +0 -57 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_linux_arm.s +0 -56 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_linux_arm64.s +0 -50 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_linux_loong64.s +0 -51 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_linux_mips64x.s +0 -54 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_linux_mipsx.s +0 -52 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s +0 -42 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_linux_riscv64.s +0 -47 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_linux_s390x.s +0 -54 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s +0 -29 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_solaris_amd64.s +0 -17 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/asm_zos_s390x.s +0 -382 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/auxv.go +0 -36 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/auxv_unsupported.go +0 -13 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/bluetooth_linux.go +0 -36 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/bpxsvc_zos.go +0 -657 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/bpxsvc_zos.s +0 -192 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/cap_freebsd.go +0 -195 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/constants.go +0 -13 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/dev_aix_ppc.go +0 -26 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/dev_aix_ppc64.go +0 -28 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/dev_darwin.go +0 -24 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/dev_dragonfly.go +0 -30 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/dev_freebsd.go +0 -30 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/dev_linux.go +0 -42 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/dev_netbsd.go +0 -29 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/dev_openbsd.go +0 -29 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/dev_zos.go +0 -28 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/dirent.go +0 -102 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/endian_big.go +0 -9 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/endian_little.go +0 -9 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/env_unix.go +0 -31 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/fcntl.go +0 -36 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/fcntl_darwin.go +0 -24 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go +0 -13 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/fdset.go +0 -27 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/gccgo.go +0 -59 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/gccgo_c.c +0 -44 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go +0 -20 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/ifreq_linux.go +0 -139 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/ioctl_linux.go +0 -334 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/ioctl_signed.go +0 -74 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/ioctl_unsigned.go +0 -74 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/ioctl_zos.go +0 -71 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/mkall.sh +0 -250 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/mkerrors.sh +0 -814 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/mmap_nomremap.go +0 -13 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/mremap.go +0 -57 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/pagesize_unix.go +0 -15 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/pledge_openbsd.go +0 -111 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/ptrace_darwin.go +0 -11 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/ptrace_ios.go +0 -11 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/race.go +0 -30 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/race0.go +0 -25 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/readdirent_getdents.go +0 -12 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/readdirent_getdirentries.go +0 -19 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/readv_unix.go +0 -103 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go +0 -16 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/sockcmsg_linux.go +0 -85 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/sockcmsg_unix.go +0 -106 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go +0 -46 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/sockcmsg_zos.go +0 -58 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/symaddr_zos_s390x.s +0 -75 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall.go +0 -86 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_aix.go +0 -582 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_aix_ppc.go +0 -52 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go +0 -83 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_bsd.go +0 -609 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_darwin.go +0 -711 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go +0 -50 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go +0 -50 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go +0 -26 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_dragonfly.go +0 -359 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go +0 -56 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_freebsd.go +0 -455 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_freebsd_386.go +0 -64 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go +0 -64 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go +0 -60 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go +0 -60 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go +0 -60 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_hurd.go +0 -30 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_hurd_386.go +0 -28 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_illumos.go +0 -78 collapsed to keep the page light
D vendor/golang.org/x/sys/unix/syscall_linux.go +0 -2574
| @@ -1,2574 +0,0 @@ | |||
| 1 | - | // Copyright 2009 The Go Authors. All rights reserved. | |
| 2 | - | // Use of this source code is governed by a BSD-style | |
| 3 | - | // license that can be found in the LICENSE file. | |
| 4 | - | ||
| 5 | - | // Linux system calls. | |
| 6 | - | // This file is compiled as ordinary Go code, | |
| 7 | - | // but it is also input to mksyscall, | |
| 8 | - | // which parses the //sys lines and generates system call stubs. | |
| 9 | - | // Note that sometimes we use a lowercase //sys name and | |
| 10 | - | // wrap it in our own nicer implementation. | |
| 11 | - | ||
| 12 | - | package unix | |
| 13 | - | ||
| 14 | - | import ( | |
| 15 | - | "encoding/binary" | |
| 16 | - | "slices" | |
| 17 | - | "strconv" | |
| 18 | - | "syscall" | |
| 19 | - | "time" | |
| 20 | - | "unsafe" | |
| 21 | - | ) | |
| 22 | - | ||
| 23 | - | /* | |
| 24 | - | * Wrapped | |
| 25 | - | */ | |
| 26 | - | ||
| 27 | - | func Access(path string, mode uint32) (err error) { | |
| 28 | - | return Faccessat(AT_FDCWD, path, mode, 0) | |
| 29 | - | } | |
| 30 | - | ||
| 31 | - | func Chmod(path string, mode uint32) (err error) { | |
| 32 | - | return Fchmodat(AT_FDCWD, path, mode, 0) | |
| 33 | - | } | |
| 34 | - | ||
| 35 | - | func Chown(path string, uid int, gid int) (err error) { | |
| 36 | - | return Fchownat(AT_FDCWD, path, uid, gid, 0) | |
| 37 | - | } | |
| 38 | - | ||
| 39 | - | func Creat(path string, mode uint32) (fd int, err error) { | |
| 40 | - | return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode) | |
| 41 | - | } | |
| 42 | - | ||
| 43 | - | func EpollCreate(size int) (fd int, err error) { | |
| 44 | - | if size <= 0 { | |
| 45 | - | return -1, EINVAL | |
| 46 | - | } | |
| 47 | - | return EpollCreate1(0) | |
| 48 | - | } | |
| 49 | - | ||
| 50 | - | //sys FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) | |
| 51 | - | //sys fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) | |
| 52 | - | ||
| 53 | - | func FanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname string) (err error) { | |
| 54 | - | if pathname == "" { | |
| 55 | - | return fanotifyMark(fd, flags, mask, dirFd, nil) | |
| 56 | - | } | |
| 57 | - | p, err := BytePtrFromString(pathname) | |
| 58 | - | if err != nil { | |
| 59 | - | return err | |
| 60 | - | } | |
| 61 | - | return fanotifyMark(fd, flags, mask, dirFd, p) | |
| 62 | - | } | |
| 63 | - | ||
| 64 | - | //sys fchmodat(dirfd int, path string, mode uint32) (err error) | |
| 65 | - | //sys fchmodat2(dirfd int, path string, mode uint32, flags int) (err error) | |
| 66 | - | ||
| 67 | - | func Fchmodat(dirfd int, path string, mode uint32, flags int) error { | |
| 68 | - | // Linux fchmodat doesn't support the flags parameter, but fchmodat2 does. | |
| 69 | - | // Try fchmodat2 if flags are specified. | |
| 70 | - | if flags != 0 { | |
| 71 | - | err := fchmodat2(dirfd, path, mode, flags) | |
| 72 | - | if err == ENOSYS { | |
| 73 | - | // fchmodat2 isn't available. If the flags are known to be valid, | |
| 74 | - | // return EOPNOTSUPP to indicate that fchmodat doesn't support them. | |
| 75 | - | if flags&^(AT_SYMLINK_NOFOLLOW|AT_EMPTY_PATH) != 0 { | |
| 76 | - | return EINVAL | |
| 77 | - | } else if flags&(AT_SYMLINK_NOFOLLOW|AT_EMPTY_PATH) != 0 { | |
| 78 | - | return EOPNOTSUPP | |
| 79 | - | } | |
| 80 | - | } | |
| 81 | - | return err | |
| 82 | - | } | |
| 83 | - | return fchmodat(dirfd, path, mode) | |
| 84 | - | } | |
| 85 | - | ||
| 86 | - | func InotifyInit() (fd int, err error) { | |
| 87 | - | return InotifyInit1(0) | |
| 88 | - | } | |
| 89 | - | ||
| 90 | - | //sys ioctl(fd int, req uint, arg uintptr) (err error) = SYS_IOCTL | |
| 91 | - | //sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL | |
| 92 | - | ||
| 93 | - | // ioctl itself should not be exposed directly, but additional get/set functions | |
| 94 | - | // for specific types are permissible. These are defined in ioctl.go and | |
| 95 | - | // ioctl_linux.go. | |
| 96 | - | // | |
| 97 | - | // The third argument to ioctl is often a pointer but sometimes an integer. | |
| 98 | - | // Callers should use ioctlPtr when the third argument is a pointer and ioctl | |
| 99 | - | // when the third argument is an integer. | |
| 100 | - | // | |
| 101 | - | // TODO: some existing code incorrectly uses ioctl when it should use ioctlPtr. | |
| 102 | - | ||
| 103 | - | //sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) | |
| 104 | - | ||
| 105 | - | func Link(oldpath string, newpath string) (err error) { | |
| 106 | - | return Linkat(AT_FDCWD, oldpath, AT_FDCWD, newpath, 0) | |
| 107 | - | } | |
| 108 | - | ||
| 109 | - | func Mkdir(path string, mode uint32) (err error) { | |
| 110 | - | return Mkdirat(AT_FDCWD, path, mode) | |
| 111 | - | } | |
| 112 | - | ||
| 113 | - | func Mknod(path string, mode uint32, dev int) (err error) { | |
| 114 | - | return Mknodat(AT_FDCWD, path, mode, dev) | |
| 115 | - | } | |
| 116 | - | ||
| 117 | - | func Open(path string, mode int, perm uint32) (fd int, err error) { | |
| 118 | - | return openat(AT_FDCWD, path, mode|O_LARGEFILE, perm) | |
| 119 | - | } | |
| 120 | - | ||
| 121 | - | //sys openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) | |
| 122 | - | ||
| 123 | - | func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { | |
| 124 | - | return openat(dirfd, path, flags|O_LARGEFILE, mode) | |
| 125 | - | } | |
| 126 | - | ||
| 127 | - | //sys openat2(dirfd int, path string, open_how *OpenHow, size int) (fd int, err error) | |
| 128 | - | ||
| 129 | - | func Openat2(dirfd int, path string, how *OpenHow) (fd int, err error) { | |
| 130 | - | return openat2(dirfd, path, how, SizeofOpenHow) | |
| 131 | - | } | |
| 132 | - | ||
| 133 | - | func Pipe(p []int) error { | |
| 134 | - | return Pipe2(p, 0) | |
| 135 | - | } | |
| 136 | - | ||
| 137 | - | //sysnb pipe2(p *[2]_C_int, flags int) (err error) | |
| 138 | - | ||
| 139 | - | func Pipe2(p []int, flags int) error { | |
| 140 | - | if len(p) != 2 { | |
| 141 | - | return EINVAL | |
| 142 | - | } | |
| 143 | - | var pp [2]_C_int | |
| 144 | - | err := pipe2(&pp, flags) | |
| 145 | - | if err == nil { | |
| 146 | - | p[0] = int(pp[0]) | |
| 147 | - | p[1] = int(pp[1]) | |
| 148 | - | } | |
| 149 | - | return err | |
| 150 | - | } | |
| 151 | - | ||
| 152 | - | //sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) | |
| 153 | - | ||
| 154 | - | func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | |
| 155 | - | if len(fds) == 0 { | |
| 156 | - | return ppoll(nil, 0, timeout, sigmask) | |
| 157 | - | } | |
| 158 | - | return ppoll(&fds[0], len(fds), timeout, sigmask) | |
| 159 | - | } | |
| 160 | - | ||
| 161 | - | func Poll(fds []PollFd, timeout int) (n int, err error) { | |
| 162 | - | var ts *Timespec | |
| 163 | - | if timeout >= 0 { | |
| 164 | - | ts = new(Timespec) | |
| 165 | - | *ts = NsecToTimespec(int64(timeout) * 1e6) | |
| 166 | - | } | |
| 167 | - | return Ppoll(fds, ts, nil) | |
| 168 | - | } | |
| 169 | - | ||
| 170 | - | //sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error) | |
| 171 | - | ||
| 172 | - | func Readlink(path string, buf []byte) (n int, err error) { | |
| 173 | - | return Readlinkat(AT_FDCWD, path, buf) | |
| 174 | - | } | |
| 175 | - | ||
| 176 | - | func Rename(oldpath string, newpath string) (err error) { | |
| 177 | - | return Renameat(AT_FDCWD, oldpath, AT_FDCWD, newpath) | |
| 178 | - | } | |
| 179 | - | ||
| 180 | - | func Rmdir(path string) error { | |
| 181 | - | return Unlinkat(AT_FDCWD, path, AT_REMOVEDIR) | |
| 182 | - | } | |
| 183 | - | ||
| 184 | - | //sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error) | |
| 185 | - | ||
| 186 | - | func Symlink(oldpath string, newpath string) (err error) { | |
| 187 | - | return Symlinkat(oldpath, AT_FDCWD, newpath) | |
| 188 | - | } | |
| 189 | - | ||
| 190 | - | func Unlink(path string) error { | |
| 191 | - | return Unlinkat(AT_FDCWD, path, 0) | |
| 192 | - | } | |
| 193 | - | ||
| 194 | - | //sys Unlinkat(dirfd int, path string, flags int) (err error) | |
| 195 | - | ||
| 196 | - | func Utimes(path string, tv []Timeval) error { | |
| 197 | - | if tv == nil { | |
| 198 | - | err := utimensat(AT_FDCWD, path, nil, 0) | |
| 199 | - | if err != ENOSYS { | |
| 200 | - | return err | |
| 201 | - | } | |
| 202 | - | return utimes(path, nil) | |
| 203 | - | } | |
| 204 | - | if len(tv) != 2 { | |
| 205 | - | return EINVAL | |
| 206 | - | } | |
| 207 | - | var ts [2]Timespec | |
| 208 | - | ts[0] = NsecToTimespec(TimevalToNsec(tv[0])) | |
| 209 | - | ts[1] = NsecToTimespec(TimevalToNsec(tv[1])) | |
| 210 | - | err := utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) | |
| 211 | - | if err != ENOSYS { | |
| 212 | - | return err | |
| 213 | - | } | |
| 214 | - | return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) | |
| 215 | - | } | |
| 216 | - | ||
| 217 | - | //sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) | |
| 218 | - | ||
| 219 | - | func UtimesNano(path string, ts []Timespec) error { | |
| 220 | - | return UtimesNanoAt(AT_FDCWD, path, ts, 0) | |
| 221 | - | } | |
| 222 | - | ||
| 223 | - | func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error { | |
| 224 | - | if ts == nil { | |
| 225 | - | return utimensat(dirfd, path, nil, flags) | |
| 226 | - | } | |
| 227 | - | if len(ts) != 2 { | |
| 228 | - | return EINVAL | |
| 229 | - | } | |
| 230 | - | return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags) | |
| 231 | - | } | |
| 232 | - | ||
| 233 | - | func Futimesat(dirfd int, path string, tv []Timeval) error { | |
| 234 | - | if tv == nil { | |
| 235 | - | return futimesat(dirfd, path, nil) | |
| 236 | - | } | |
| 237 | - | if len(tv) != 2 { | |
| 238 | - | return EINVAL | |
| 239 | - | } | |
| 240 | - | return futimesat(dirfd, path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) | |
| 241 | - | } | |
| 242 | - | ||
| 243 | - | func Futimes(fd int, tv []Timeval) (err error) { | |
| 244 | - | // Believe it or not, this is the best we can do on Linux | |
| 245 | - | // (and is what glibc does). | |
| 246 | - | return Utimes("/proc/self/fd/"+strconv.Itoa(fd), tv) | |
| 247 | - | } | |
| 248 | - | ||
| 249 | - | const ImplementsGetwd = true | |
| 250 | - | ||
| 251 | - | //sys Getcwd(buf []byte) (n int, err error) | |
| 252 | - | ||
| 253 | - | func Getwd() (wd string, err error) { | |
| 254 | - | var buf [PathMax]byte | |
| 255 | - | n, err := Getcwd(buf[0:]) | |
| 256 | - | if err != nil { | |
| 257 | - | return "", err | |
| 258 | - | } | |
| 259 | - | // Getcwd returns the number of bytes written to buf, including the NUL. | |
| 260 | - | if n < 1 || n > len(buf) || buf[n-1] != 0 { | |
| 261 | - | return "", EINVAL | |
| 262 | - | } | |
| 263 | - | // In some cases, Linux can return a path that starts with the | |
| 264 | - | // "(unreachable)" prefix, which can potentially be a valid relative | |
| 265 | - | // path. To work around that, return ENOENT if path is not absolute. | |
| 266 | - | if buf[0] != '/' { | |
| 267 | - | return "", ENOENT | |
| 268 | - | } | |
| 269 | - | ||
| 270 | - | return string(buf[0 : n-1]), nil | |
| 271 | - | } | |
| 272 | - | ||
| 273 | - | func Getgroups() (gids []int, err error) { | |
| 274 | - | n, err := getgroups(0, nil) | |
| 275 | - | if err != nil { | |
| 276 | - | return nil, err | |
| 277 | - | } | |
| 278 | - | if n == 0 { | |
| 279 | - | return nil, nil | |
| 280 | - | } | |
| 281 | - | ||
| 282 | - | // Sanity check group count. Max is 1<<16 on Linux. | |
| 283 | - | if n < 0 || n > 1<<20 { | |
| 284 | - | return nil, EINVAL | |
| 285 | - | } | |
| 286 | - | ||
| 287 | - | a := make([]_Gid_t, n) | |
| 288 | - | n, err = getgroups(n, &a[0]) | |
| 289 | - | if err != nil { | |
| 290 | - | return nil, err | |
| 291 | - | } | |
| 292 | - | gids = make([]int, n) | |
| 293 | - | for i, v := range a[0:n] { | |
| 294 | - | gids[i] = int(v) | |
| 295 | - | } | |
| 296 | - | return | |
| 297 | - | } | |
| 298 | - | ||
| 299 | - | func Setgroups(gids []int) (err error) { | |
| 300 | - | if len(gids) == 0 { | |
| 301 | - | return setgroups(0, nil) | |
| 302 | - | } | |
| 303 | - | ||
| 304 | - | a := make([]_Gid_t, len(gids)) | |
| 305 | - | for i, v := range gids { | |
| 306 | - | a[i] = _Gid_t(v) | |
| 307 | - | } | |
| 308 | - | return setgroups(len(a), &a[0]) | |
| 309 | - | } | |
| 310 | - | ||
| 311 | - | type WaitStatus uint32 | |
| 312 | - | ||
| 313 | - | // Wait status is 7 bits at bottom, either 0 (exited), | |
| 314 | - | // 0x7F (stopped), or a signal number that caused an exit. | |
| 315 | - | // The 0x80 bit is whether there was a core dump. | |
| 316 | - | // An extra number (exit code, signal causing a stop) | |
| 317 | - | // is in the high bits. At least that's the idea. | |
| 318 | - | // There are various irregularities. For example, the | |
| 319 | - | // "continued" status is 0xFFFF, distinguishing itself | |
| 320 | - | // from stopped via the core dump bit. | |
| 321 | - | ||
| 322 | - | const ( | |
| 323 | - | mask = 0x7F | |
| 324 | - | core = 0x80 | |
| 325 | - | exited = 0x00 | |
| 326 | - | stopped = 0x7F | |
| 327 | - | shift = 8 | |
| 328 | - | ) | |
| 329 | - | ||
| 330 | - | func (w WaitStatus) Exited() bool { return w&mask == exited } | |
| 331 | - | ||
| 332 | - | func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != exited } | |
| 333 | - | ||
| 334 | - | func (w WaitStatus) Stopped() bool { return w&0xFF == stopped } | |
| 335 | - | ||
| 336 | - | func (w WaitStatus) Continued() bool { return w == 0xFFFF } | |
| 337 | - | ||
| 338 | - | func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 } | |
| 339 | - | ||
| 340 | - | func (w WaitStatus) ExitStatus() int { | |
| 341 | - | if !w.Exited() { | |
| 342 | - | return -1 | |
| 343 | - | } | |
| 344 | - | return int(w>>shift) & 0xFF | |
| 345 | - | } | |
| 346 | - | ||
| 347 | - | func (w WaitStatus) Signal() syscall.Signal { | |
| 348 | - | if !w.Signaled() { | |
| 349 | - | return -1 | |
| 350 | - | } | |
| 351 | - | return syscall.Signal(w & mask) | |
| 352 | - | } | |
| 353 | - | ||
| 354 | - | func (w WaitStatus) StopSignal() syscall.Signal { | |
| 355 | - | if !w.Stopped() { | |
| 356 | - | return -1 | |
| 357 | - | } | |
| 358 | - | return syscall.Signal(w>>shift) & 0xFF | |
| 359 | - | } | |
| 360 | - | ||
| 361 | - | func (w WaitStatus) TrapCause() int { | |
| 362 | - | if w.StopSignal() != SIGTRAP { | |
| 363 | - | return -1 | |
| 364 | - | } | |
| 365 | - | return int(w>>shift) >> 8 | |
| 366 | - | } | |
| 367 | - | ||
| 368 | - | //sys wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) | |
| 369 | - | ||
| 370 | - | func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) { | |
| 371 | - | var status _C_int | |
| 372 | - | wpid, err = wait4(pid, &status, options, rusage) | |
| 373 | - | if wstatus != nil { | |
| 374 | - | *wstatus = WaitStatus(status) | |
| 375 | - | } | |
| 376 | - | return | |
| 377 | - | } | |
| 378 | - | ||
| 379 | - | //sys Waitid(idType int, id int, info *Siginfo, options int, rusage *Rusage) (err error) | |
| 380 | - | ||
| 381 | - | func Mkfifo(path string, mode uint32) error { | |
| 382 | - | return Mknod(path, mode|S_IFIFO, 0) | |
| 383 | - | } | |
| 384 | - | ||
| 385 | - | func Mkfifoat(dirfd int, path string, mode uint32) error { | |
| 386 | - | return Mknodat(dirfd, path, mode|S_IFIFO, 0) | |
| 387 | - | } | |
| 388 | - | ||
| 389 | - | func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 390 | - | if sa.Port < 0 || sa.Port > 0xFFFF { | |
| 391 | - | return nil, 0, EINVAL | |
| 392 | - | } | |
| 393 | - | sa.raw.Family = AF_INET | |
| 394 | - | p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) | |
| 395 | - | p[0] = byte(sa.Port >> 8) | |
| 396 | - | p[1] = byte(sa.Port) | |
| 397 | - | sa.raw.Addr = sa.Addr | |
| 398 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrInet4, nil | |
| 399 | - | } | |
| 400 | - | ||
| 401 | - | func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 402 | - | if sa.Port < 0 || sa.Port > 0xFFFF { | |
| 403 | - | return nil, 0, EINVAL | |
| 404 | - | } | |
| 405 | - | sa.raw.Family = AF_INET6 | |
| 406 | - | p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) | |
| 407 | - | p[0] = byte(sa.Port >> 8) | |
| 408 | - | p[1] = byte(sa.Port) | |
| 409 | - | sa.raw.Scope_id = sa.ZoneId | |
| 410 | - | sa.raw.Addr = sa.Addr | |
| 411 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrInet6, nil | |
| 412 | - | } | |
| 413 | - | ||
| 414 | - | func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 415 | - | name := sa.Name | |
| 416 | - | n := len(name) | |
| 417 | - | if n >= len(sa.raw.Path) { | |
| 418 | - | return nil, 0, EINVAL | |
| 419 | - | } | |
| 420 | - | sa.raw.Family = AF_UNIX | |
| 421 | - | for i := range n { | |
| 422 | - | sa.raw.Path[i] = int8(name[i]) | |
| 423 | - | } | |
| 424 | - | // length is family (uint16), name, NUL. | |
| 425 | - | sl := _Socklen(2) | |
| 426 | - | if n > 0 { | |
| 427 | - | sl += _Socklen(n) + 1 | |
| 428 | - | } | |
| 429 | - | if sa.raw.Path[0] == '@' || (sa.raw.Path[0] == 0 && sl > 3) { | |
| 430 | - | // Check sl > 3 so we don't change unnamed socket behavior. | |
| 431 | - | sa.raw.Path[0] = 0 | |
| 432 | - | // Don't count trailing NUL for abstract address. | |
| 433 | - | sl-- | |
| 434 | - | } | |
| 435 | - | ||
| 436 | - | return unsafe.Pointer(&sa.raw), sl, nil | |
| 437 | - | } | |
| 438 | - | ||
| 439 | - | // SockaddrLinklayer implements the Sockaddr interface for AF_PACKET type sockets. | |
| 440 | - | type SockaddrLinklayer struct { | |
| 441 | - | Protocol uint16 | |
| 442 | - | Ifindex int | |
| 443 | - | Hatype uint16 | |
| 444 | - | Pkttype uint8 | |
| 445 | - | Halen uint8 | |
| 446 | - | Addr [8]byte | |
| 447 | - | raw RawSockaddrLinklayer | |
| 448 | - | } | |
| 449 | - | ||
| 450 | - | func (sa *SockaddrLinklayer) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 451 | - | if sa.Ifindex < 0 || sa.Ifindex > 0x7fffffff { | |
| 452 | - | return nil, 0, EINVAL | |
| 453 | - | } | |
| 454 | - | sa.raw.Family = AF_PACKET | |
| 455 | - | sa.raw.Protocol = sa.Protocol | |
| 456 | - | sa.raw.Ifindex = int32(sa.Ifindex) | |
| 457 | - | sa.raw.Hatype = sa.Hatype | |
| 458 | - | sa.raw.Pkttype = sa.Pkttype | |
| 459 | - | sa.raw.Halen = sa.Halen | |
| 460 | - | sa.raw.Addr = sa.Addr | |
| 461 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrLinklayer, nil | |
| 462 | - | } | |
| 463 | - | ||
| 464 | - | // SockaddrNetlink implements the Sockaddr interface for AF_NETLINK type sockets. | |
| 465 | - | type SockaddrNetlink struct { | |
| 466 | - | Family uint16 | |
| 467 | - | Pad uint16 | |
| 468 | - | Pid uint32 | |
| 469 | - | Groups uint32 | |
| 470 | - | raw RawSockaddrNetlink | |
| 471 | - | } | |
| 472 | - | ||
| 473 | - | func (sa *SockaddrNetlink) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 474 | - | sa.raw.Family = AF_NETLINK | |
| 475 | - | sa.raw.Pad = sa.Pad | |
| 476 | - | sa.raw.Pid = sa.Pid | |
| 477 | - | sa.raw.Groups = sa.Groups | |
| 478 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrNetlink, nil | |
| 479 | - | } | |
| 480 | - | ||
| 481 | - | // SockaddrHCI implements the Sockaddr interface for AF_BLUETOOTH type sockets | |
| 482 | - | // using the HCI protocol. | |
| 483 | - | type SockaddrHCI struct { | |
| 484 | - | Dev uint16 | |
| 485 | - | Channel uint16 | |
| 486 | - | raw RawSockaddrHCI | |
| 487 | - | } | |
| 488 | - | ||
| 489 | - | func (sa *SockaddrHCI) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 490 | - | sa.raw.Family = AF_BLUETOOTH | |
| 491 | - | sa.raw.Dev = sa.Dev | |
| 492 | - | sa.raw.Channel = sa.Channel | |
| 493 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrHCI, nil | |
| 494 | - | } | |
| 495 | - | ||
| 496 | - | // SockaddrL2 implements the Sockaddr interface for AF_BLUETOOTH type sockets | |
| 497 | - | // using the L2CAP protocol. | |
| 498 | - | type SockaddrL2 struct { | |
| 499 | - | PSM uint16 | |
| 500 | - | CID uint16 | |
| 501 | - | Addr [6]uint8 | |
| 502 | - | AddrType uint8 | |
| 503 | - | raw RawSockaddrL2 | |
| 504 | - | } | |
| 505 | - | ||
| 506 | - | func (sa *SockaddrL2) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 507 | - | sa.raw.Family = AF_BLUETOOTH | |
| 508 | - | psm := (*[2]byte)(unsafe.Pointer(&sa.raw.Psm)) | |
| 509 | - | psm[0] = byte(sa.PSM) | |
| 510 | - | psm[1] = byte(sa.PSM >> 8) | |
| 511 | - | for i := range len(sa.Addr) { | |
| 512 | - | sa.raw.Bdaddr[i] = sa.Addr[len(sa.Addr)-1-i] | |
| 513 | - | } | |
| 514 | - | cid := (*[2]byte)(unsafe.Pointer(&sa.raw.Cid)) | |
| 515 | - | cid[0] = byte(sa.CID) | |
| 516 | - | cid[1] = byte(sa.CID >> 8) | |
| 517 | - | sa.raw.Bdaddr_type = sa.AddrType | |
| 518 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrL2, nil | |
| 519 | - | } | |
| 520 | - | ||
| 521 | - | // SockaddrRFCOMM implements the Sockaddr interface for AF_BLUETOOTH type sockets | |
| 522 | - | // using the RFCOMM protocol. | |
| 523 | - | // | |
| 524 | - | // Server example: | |
| 525 | - | // | |
| 526 | - | // fd, _ := Socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM) | |
| 527 | - | // _ = unix.Bind(fd, &unix.SockaddrRFCOMM{ | |
| 528 | - | // Channel: 1, | |
| 529 | - | // Addr: [6]uint8{0, 0, 0, 0, 0, 0}, // BDADDR_ANY or 00:00:00:00:00:00 | |
| 530 | - | // }) | |
| 531 | - | // _ = Listen(fd, 1) | |
| 532 | - | // nfd, sa, _ := Accept(fd) | |
| 533 | - | // fmt.Printf("conn addr=%v fd=%d", sa.(*unix.SockaddrRFCOMM).Addr, nfd) | |
| 534 | - | // Read(nfd, buf) | |
| 535 | - | // | |
| 536 | - | // Client example: | |
| 537 | - | // | |
| 538 | - | // fd, _ := Socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM) | |
| 539 | - | // _ = Connect(fd, &SockaddrRFCOMM{ | |
| 540 | - | // Channel: 1, | |
| 541 | - | // Addr: [6]byte{0x11, 0x22, 0x33, 0xaa, 0xbb, 0xcc}, // CC:BB:AA:33:22:11 | |
| 542 | - | // }) | |
| 543 | - | // Write(fd, []byte(`hello`)) | |
| 544 | - | type SockaddrRFCOMM struct { | |
| 545 | - | // Addr represents a bluetooth address, byte ordering is little-endian. | |
| 546 | - | Addr [6]uint8 | |
| 547 | - | ||
| 548 | - | // Channel is a designated bluetooth channel, only 1-30 are available for use. | |
| 549 | - | // Since Linux 2.6.7 and further zero value is the first available channel. | |
| 550 | - | Channel uint8 | |
| 551 | - | ||
| 552 | - | raw RawSockaddrRFCOMM | |
| 553 | - | } | |
| 554 | - | ||
| 555 | - | func (sa *SockaddrRFCOMM) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 556 | - | sa.raw.Family = AF_BLUETOOTH | |
| 557 | - | sa.raw.Channel = sa.Channel | |
| 558 | - | sa.raw.Bdaddr = sa.Addr | |
| 559 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrRFCOMM, nil | |
| 560 | - | } | |
| 561 | - | ||
| 562 | - | // SockaddrCAN implements the Sockaddr interface for AF_CAN type sockets. | |
| 563 | - | // The RxID and TxID fields are used for transport protocol addressing in | |
| 564 | - | // (CAN_TP16, CAN_TP20, CAN_MCNET, and CAN_ISOTP), they can be left with | |
| 565 | - | // zero values for CAN_RAW and CAN_BCM sockets as they have no meaning. | |
| 566 | - | // | |
| 567 | - | // The SockaddrCAN struct must be bound to the socket file descriptor | |
| 568 | - | // using Bind before the CAN socket can be used. | |
| 569 | - | // | |
| 570 | - | // // Read one raw CAN frame | |
| 571 | - | // fd, _ := Socket(AF_CAN, SOCK_RAW, CAN_RAW) | |
| 572 | - | // addr := &SockaddrCAN{Ifindex: index} | |
| 573 | - | // Bind(fd, addr) | |
| 574 | - | // frame := make([]byte, 16) | |
| 575 | - | // Read(fd, frame) | |
| 576 | - | // | |
| 577 | - | // The full SocketCAN documentation can be found in the linux kernel | |
| 578 | - | // archives at: https://www.kernel.org/doc/Documentation/networking/can.txt | |
| 579 | - | type SockaddrCAN struct { | |
| 580 | - | Ifindex int | |
| 581 | - | RxID uint32 | |
| 582 | - | TxID uint32 | |
| 583 | - | raw RawSockaddrCAN | |
| 584 | - | } | |
| 585 | - | ||
| 586 | - | func (sa *SockaddrCAN) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 587 | - | if sa.Ifindex < 0 || sa.Ifindex > 0x7fffffff { | |
| 588 | - | return nil, 0, EINVAL | |
| 589 | - | } | |
| 590 | - | sa.raw.Family = AF_CAN | |
| 591 | - | sa.raw.Ifindex = int32(sa.Ifindex) | |
| 592 | - | rx := (*[4]byte)(unsafe.Pointer(&sa.RxID)) | |
| 593 | - | for i := range 4 { | |
| 594 | - | sa.raw.Addr[i] = rx[i] | |
| 595 | - | } | |
| 596 | - | tx := (*[4]byte)(unsafe.Pointer(&sa.TxID)) | |
| 597 | - | for i := range 4 { | |
| 598 | - | sa.raw.Addr[i+4] = tx[i] | |
| 599 | - | } | |
| 600 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrCAN, nil | |
| 601 | - | } | |
| 602 | - | ||
| 603 | - | // SockaddrCANJ1939 implements the Sockaddr interface for AF_CAN using J1939 | |
| 604 | - | // protocol (https://en.wikipedia.org/wiki/SAE_J1939). For more information | |
| 605 | - | // on the purposes of the fields, check the official linux kernel documentation | |
| 606 | - | // available here: https://www.kernel.org/doc/Documentation/networking/j1939.rst | |
| 607 | - | type SockaddrCANJ1939 struct { | |
| 608 | - | Ifindex int | |
| 609 | - | Name uint64 | |
| 610 | - | PGN uint32 | |
| 611 | - | Addr uint8 | |
| 612 | - | raw RawSockaddrCAN | |
| 613 | - | } | |
| 614 | - | ||
| 615 | - | func (sa *SockaddrCANJ1939) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 616 | - | if sa.Ifindex < 0 || sa.Ifindex > 0x7fffffff { | |
| 617 | - | return nil, 0, EINVAL | |
| 618 | - | } | |
| 619 | - | sa.raw.Family = AF_CAN | |
| 620 | - | sa.raw.Ifindex = int32(sa.Ifindex) | |
| 621 | - | n := (*[8]byte)(unsafe.Pointer(&sa.Name)) | |
| 622 | - | for i := range 8 { | |
| 623 | - | sa.raw.Addr[i] = n[i] | |
| 624 | - | } | |
| 625 | - | p := (*[4]byte)(unsafe.Pointer(&sa.PGN)) | |
| 626 | - | for i := range 4 { | |
| 627 | - | sa.raw.Addr[i+8] = p[i] | |
| 628 | - | } | |
| 629 | - | sa.raw.Addr[12] = sa.Addr | |
| 630 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrCAN, nil | |
| 631 | - | } | |
| 632 | - | ||
| 633 | - | // SockaddrALG implements the Sockaddr interface for AF_ALG type sockets. | |
| 634 | - | // SockaddrALG enables userspace access to the Linux kernel's cryptography | |
| 635 | - | // subsystem. The Type and Name fields specify which type of hash or cipher | |
| 636 | - | // should be used with a given socket. | |
| 637 | - | // | |
| 638 | - | // To create a file descriptor that provides access to a hash or cipher, both | |
| 639 | - | // Bind and Accept must be used. Once the setup process is complete, input | |
| 640 | - | // data can be written to the socket, processed by the kernel, and then read | |
| 641 | - | // back as hash output or ciphertext. | |
| 642 | - | // | |
| 643 | - | // Here is an example of using an AF_ALG socket with SHA1 hashing. | |
| 644 | - | // The initial socket setup process is as follows: | |
| 645 | - | // | |
| 646 | - | // // Open a socket to perform SHA1 hashing. | |
| 647 | - | // fd, _ := unix.Socket(unix.AF_ALG, unix.SOCK_SEQPACKET, 0) | |
| 648 | - | // addr := &unix.SockaddrALG{Type: "hash", Name: "sha1"} | |
| 649 | - | // unix.Bind(fd, addr) | |
| 650 | - | // // Note: unix.Accept does not work at this time; must invoke accept() | |
| 651 | - | // // manually using unix.Syscall. | |
| 652 | - | // hashfd, _, _ := unix.Syscall(unix.SYS_ACCEPT, uintptr(fd), 0, 0) | |
| 653 | - | // | |
| 654 | - | // Once a file descriptor has been returned from Accept, it may be used to | |
| 655 | - | // perform SHA1 hashing. The descriptor is not safe for concurrent use, but | |
| 656 | - | // may be re-used repeatedly with subsequent Write and Read operations. | |
| 657 | - | // | |
| 658 | - | // When hashing a small byte slice or string, a single Write and Read may | |
| 659 | - | // be used: | |
| 660 | - | // | |
| 661 | - | // // Assume hashfd is already configured using the setup process. | |
| 662 | - | // hash := os.NewFile(hashfd, "sha1") | |
| 663 | - | // // Hash an input string and read the results. Each Write discards | |
| 664 | - | // // previous hash state. Read always reads the current state. | |
| 665 | - | // b := make([]byte, 20) | |
| 666 | - | // for i := 0; i < 2; i++ { | |
| 667 | - | // io.WriteString(hash, "Hello, world.") | |
| 668 | - | // hash.Read(b) | |
| 669 | - | // fmt.Println(hex.EncodeToString(b)) | |
| 670 | - | // } | |
| 671 | - | // // Output: | |
| 672 | - | // // 2ae01472317d1935a84797ec1983ae243fc6aa28 | |
| 673 | - | // // 2ae01472317d1935a84797ec1983ae243fc6aa28 | |
| 674 | - | // | |
| 675 | - | // For hashing larger byte slices, or byte streams such as those read from | |
| 676 | - | // a file or socket, use Sendto with MSG_MORE to instruct the kernel to update | |
| 677 | - | // the hash digest instead of creating a new one for a given chunk and finalizing it. | |
| 678 | - | // | |
| 679 | - | // // Assume hashfd and addr are already configured using the setup process. | |
| 680 | - | // hash := os.NewFile(hashfd, "sha1") | |
| 681 | - | // // Hash the contents of a file. | |
| 682 | - | // f, _ := os.Open("/tmp/linux-4.10-rc7.tar.xz") | |
| 683 | - | // b := make([]byte, 4096) | |
| 684 | - | // for { | |
| 685 | - | // n, err := f.Read(b) | |
| 686 | - | // if err == io.EOF { | |
| 687 | - | // break | |
| 688 | - | // } | |
| 689 | - | // unix.Sendto(hashfd, b[:n], unix.MSG_MORE, addr) | |
| 690 | - | // } | |
| 691 | - | // hash.Read(b) | |
| 692 | - | // fmt.Println(hex.EncodeToString(b)) | |
| 693 | - | // // Output: 85cdcad0c06eef66f805ecce353bec9accbeecc5 | |
| 694 | - | // | |
| 695 | - | // For more information, see: http://www.chronox.de/crypto-API/crypto/userspace-if.html. | |
| 696 | - | type SockaddrALG struct { | |
| 697 | - | Type string | |
| 698 | - | Name string | |
| 699 | - | Feature uint32 | |
| 700 | - | Mask uint32 | |
| 701 | - | raw RawSockaddrALG | |
| 702 | - | } | |
| 703 | - | ||
| 704 | - | func (sa *SockaddrALG) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 705 | - | // Leave room for NUL byte terminator. | |
| 706 | - | if len(sa.Type) > len(sa.raw.Type)-1 { | |
| 707 | - | return nil, 0, EINVAL | |
| 708 | - | } | |
| 709 | - | if len(sa.Name) > len(sa.raw.Name)-1 { | |
| 710 | - | return nil, 0, EINVAL | |
| 711 | - | } | |
| 712 | - | ||
| 713 | - | sa.raw.Family = AF_ALG | |
| 714 | - | sa.raw.Feat = sa.Feature | |
| 715 | - | sa.raw.Mask = sa.Mask | |
| 716 | - | ||
| 717 | - | copy(sa.raw.Type[:], sa.Type) | |
| 718 | - | copy(sa.raw.Name[:], sa.Name) | |
| 719 | - | ||
| 720 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrALG, nil | |
| 721 | - | } | |
| 722 | - | ||
| 723 | - | // SockaddrVM implements the Sockaddr interface for AF_VSOCK type sockets. | |
| 724 | - | // SockaddrVM provides access to Linux VM sockets: a mechanism that enables | |
| 725 | - | // bidirectional communication between a hypervisor and its guest virtual | |
| 726 | - | // machines. | |
| 727 | - | type SockaddrVM struct { | |
| 728 | - | // CID and Port specify a context ID and port address for a VM socket. | |
| 729 | - | // Guests have a unique CID, and hosts may have a well-known CID of: | |
| 730 | - | // - VMADDR_CID_HYPERVISOR: refers to the hypervisor process. | |
| 731 | - | // - VMADDR_CID_LOCAL: refers to local communication (loopback). | |
| 732 | - | // - VMADDR_CID_HOST: refers to other processes on the host. | |
| 733 | - | CID uint32 | |
| 734 | - | Port uint32 | |
| 735 | - | Flags uint8 | |
| 736 | - | raw RawSockaddrVM | |
| 737 | - | } | |
| 738 | - | ||
| 739 | - | func (sa *SockaddrVM) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 740 | - | sa.raw.Family = AF_VSOCK | |
| 741 | - | sa.raw.Port = sa.Port | |
| 742 | - | sa.raw.Cid = sa.CID | |
| 743 | - | sa.raw.Flags = sa.Flags | |
| 744 | - | ||
| 745 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrVM, nil | |
| 746 | - | } | |
| 747 | - | ||
| 748 | - | type SockaddrXDP struct { | |
| 749 | - | Flags uint16 | |
| 750 | - | Ifindex uint32 | |
| 751 | - | QueueID uint32 | |
| 752 | - | SharedUmemFD uint32 | |
| 753 | - | raw RawSockaddrXDP | |
| 754 | - | } | |
| 755 | - | ||
| 756 | - | func (sa *SockaddrXDP) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 757 | - | sa.raw.Family = AF_XDP | |
| 758 | - | sa.raw.Flags = sa.Flags | |
| 759 | - | sa.raw.Ifindex = sa.Ifindex | |
| 760 | - | sa.raw.Queue_id = sa.QueueID | |
| 761 | - | sa.raw.Shared_umem_fd = sa.SharedUmemFD | |
| 762 | - | ||
| 763 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrXDP, nil | |
| 764 | - | } | |
| 765 | - | ||
| 766 | - | // This constant mirrors the #define of PX_PROTO_OE in | |
| 767 | - | // linux/if_pppox.h. We're defining this by hand here instead of | |
| 768 | - | // autogenerating through mkerrors.sh because including | |
| 769 | - | // linux/if_pppox.h causes some declaration conflicts with other | |
| 770 | - | // includes (linux/if_pppox.h includes linux/in.h, which conflicts | |
| 771 | - | // with netinet/in.h). Given that we only need a single zero constant | |
| 772 | - | // out of that file, it's cleaner to just define it by hand here. | |
| 773 | - | const px_proto_oe = 0 | |
| 774 | - | ||
| 775 | - | type SockaddrPPPoE struct { | |
| 776 | - | SID uint16 | |
| 777 | - | Remote []byte | |
| 778 | - | Dev string | |
| 779 | - | raw RawSockaddrPPPoX | |
| 780 | - | } | |
| 781 | - | ||
| 782 | - | func (sa *SockaddrPPPoE) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 783 | - | if len(sa.Remote) != 6 { | |
| 784 | - | return nil, 0, EINVAL | |
| 785 | - | } | |
| 786 | - | if len(sa.Dev) > IFNAMSIZ-1 { | |
| 787 | - | return nil, 0, EINVAL | |
| 788 | - | } | |
| 789 | - | ||
| 790 | - | *(*uint16)(unsafe.Pointer(&sa.raw[0])) = AF_PPPOX | |
| 791 | - | // This next field is in host-endian byte order. We can't use the | |
| 792 | - | // same unsafe pointer cast as above, because this value is not | |
| 793 | - | // 32-bit aligned and some architectures don't allow unaligned | |
| 794 | - | // access. | |
| 795 | - | // | |
| 796 | - | // However, the value of px_proto_oe is 0, so we can use | |
| 797 | - | // encoding/binary helpers to write the bytes without worrying | |
| 798 | - | // about the ordering. | |
| 799 | - | binary.BigEndian.PutUint32(sa.raw[2:6], px_proto_oe) | |
| 800 | - | // This field is deliberately big-endian, unlike the previous | |
| 801 | - | // one. The kernel expects SID to be in network byte order. | |
| 802 | - | binary.BigEndian.PutUint16(sa.raw[6:8], sa.SID) | |
| 803 | - | copy(sa.raw[8:14], sa.Remote) | |
| 804 | - | clear(sa.raw[14 : 14+IFNAMSIZ]) | |
| 805 | - | copy(sa.raw[14:], sa.Dev) | |
| 806 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrPPPoX, nil | |
| 807 | - | } | |
| 808 | - | ||
| 809 | - | // SockaddrTIPC implements the Sockaddr interface for AF_TIPC type sockets. | |
| 810 | - | // For more information on TIPC, see: http://tipc.sourceforge.net/. | |
| 811 | - | type SockaddrTIPC struct { | |
| 812 | - | // Scope is the publication scopes when binding service/service range. | |
| 813 | - | // Should be set to TIPC_CLUSTER_SCOPE or TIPC_NODE_SCOPE. | |
| 814 | - | Scope int | |
| 815 | - | ||
| 816 | - | // Addr is the type of address used to manipulate a socket. Addr must be | |
| 817 | - | // one of: | |
| 818 | - | // - *TIPCSocketAddr: "id" variant in the C addr union | |
| 819 | - | // - *TIPCServiceRange: "nameseq" variant in the C addr union | |
| 820 | - | // - *TIPCServiceName: "name" variant in the C addr union | |
| 821 | - | // | |
| 822 | - | // If nil, EINVAL will be returned when the structure is used. | |
| 823 | - | Addr TIPCAddr | |
| 824 | - | ||
| 825 | - | raw RawSockaddrTIPC | |
| 826 | - | } | |
| 827 | - | ||
| 828 | - | // TIPCAddr is implemented by types that can be used as an address for | |
| 829 | - | // SockaddrTIPC. It is only implemented by *TIPCSocketAddr, *TIPCServiceRange, | |
| 830 | - | // and *TIPCServiceName. | |
| 831 | - | type TIPCAddr interface { | |
| 832 | - | tipcAddrtype() uint8 | |
| 833 | - | tipcAddr() [12]byte | |
| 834 | - | } | |
| 835 | - | ||
| 836 | - | func (sa *TIPCSocketAddr) tipcAddr() [12]byte { | |
| 837 | - | var out [12]byte | |
| 838 | - | copy(out[:], (*(*[unsafe.Sizeof(TIPCSocketAddr{})]byte)(unsafe.Pointer(sa)))[:]) | |
| 839 | - | return out | |
| 840 | - | } | |
| 841 | - | ||
| 842 | - | func (sa *TIPCSocketAddr) tipcAddrtype() uint8 { return TIPC_SOCKET_ADDR } | |
| 843 | - | ||
| 844 | - | func (sa *TIPCServiceRange) tipcAddr() [12]byte { | |
| 845 | - | var out [12]byte | |
| 846 | - | copy(out[:], (*(*[unsafe.Sizeof(TIPCServiceRange{})]byte)(unsafe.Pointer(sa)))[:]) | |
| 847 | - | return out | |
| 848 | - | } | |
| 849 | - | ||
| 850 | - | func (sa *TIPCServiceRange) tipcAddrtype() uint8 { return TIPC_SERVICE_RANGE } | |
| 851 | - | ||
| 852 | - | func (sa *TIPCServiceName) tipcAddr() [12]byte { | |
| 853 | - | var out [12]byte | |
| 854 | - | copy(out[:], (*(*[unsafe.Sizeof(TIPCServiceName{})]byte)(unsafe.Pointer(sa)))[:]) | |
| 855 | - | return out | |
| 856 | - | } | |
| 857 | - | ||
| 858 | - | func (sa *TIPCServiceName) tipcAddrtype() uint8 { return TIPC_SERVICE_ADDR } | |
| 859 | - | ||
| 860 | - | func (sa *SockaddrTIPC) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 861 | - | if sa.Addr == nil { | |
| 862 | - | return nil, 0, EINVAL | |
| 863 | - | } | |
| 864 | - | sa.raw.Family = AF_TIPC | |
| 865 | - | sa.raw.Scope = int8(sa.Scope) | |
| 866 | - | sa.raw.Addrtype = sa.Addr.tipcAddrtype() | |
| 867 | - | sa.raw.Addr = sa.Addr.tipcAddr() | |
| 868 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrTIPC, nil | |
| 869 | - | } | |
| 870 | - | ||
| 871 | - | // SockaddrL2TPIP implements the Sockaddr interface for IPPROTO_L2TP/AF_INET sockets. | |
| 872 | - | type SockaddrL2TPIP struct { | |
| 873 | - | Addr [4]byte | |
| 874 | - | ConnId uint32 | |
| 875 | - | raw RawSockaddrL2TPIP | |
| 876 | - | } | |
| 877 | - | ||
| 878 | - | func (sa *SockaddrL2TPIP) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 879 | - | sa.raw.Family = AF_INET | |
| 880 | - | sa.raw.Conn_id = sa.ConnId | |
| 881 | - | sa.raw.Addr = sa.Addr | |
| 882 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrL2TPIP, nil | |
| 883 | - | } | |
| 884 | - | ||
| 885 | - | // SockaddrL2TPIP6 implements the Sockaddr interface for IPPROTO_L2TP/AF_INET6 sockets. | |
| 886 | - | type SockaddrL2TPIP6 struct { | |
| 887 | - | Addr [16]byte | |
| 888 | - | ZoneId uint32 | |
| 889 | - | ConnId uint32 | |
| 890 | - | raw RawSockaddrL2TPIP6 | |
| 891 | - | } | |
| 892 | - | ||
| 893 | - | func (sa *SockaddrL2TPIP6) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 894 | - | sa.raw.Family = AF_INET6 | |
| 895 | - | sa.raw.Conn_id = sa.ConnId | |
| 896 | - | sa.raw.Scope_id = sa.ZoneId | |
| 897 | - | sa.raw.Addr = sa.Addr | |
| 898 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrL2TPIP6, nil | |
| 899 | - | } | |
| 900 | - | ||
| 901 | - | // SockaddrIUCV implements the Sockaddr interface for AF_IUCV sockets. | |
| 902 | - | type SockaddrIUCV struct { | |
| 903 | - | UserID string | |
| 904 | - | Name string | |
| 905 | - | raw RawSockaddrIUCV | |
| 906 | - | } | |
| 907 | - | ||
| 908 | - | func (sa *SockaddrIUCV) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 909 | - | sa.raw.Family = AF_IUCV | |
| 910 | - | // These are EBCDIC encoded by the kernel, but we still need to pad them | |
| 911 | - | // with blanks. Initializing with blanks allows the caller to feed in either | |
| 912 | - | // a padded or an unpadded string. | |
| 913 | - | for i := range 8 { | |
| 914 | - | sa.raw.Nodeid[i] = ' ' | |
| 915 | - | sa.raw.User_id[i] = ' ' | |
| 916 | - | sa.raw.Name[i] = ' ' | |
| 917 | - | } | |
| 918 | - | if len(sa.UserID) > 8 || len(sa.Name) > 8 { | |
| 919 | - | return nil, 0, EINVAL | |
| 920 | - | } | |
| 921 | - | for i, b := range []byte(sa.UserID[:]) { | |
| 922 | - | sa.raw.User_id[i] = int8(b) | |
| 923 | - | } | |
| 924 | - | for i, b := range []byte(sa.Name[:]) { | |
| 925 | - | sa.raw.Name[i] = int8(b) | |
| 926 | - | } | |
| 927 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrIUCV, nil | |
| 928 | - | } | |
| 929 | - | ||
| 930 | - | type SockaddrNFC struct { | |
| 931 | - | DeviceIdx uint32 | |
| 932 | - | TargetIdx uint32 | |
| 933 | - | NFCProtocol uint32 | |
| 934 | - | raw RawSockaddrNFC | |
| 935 | - | } | |
| 936 | - | ||
| 937 | - | func (sa *SockaddrNFC) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 938 | - | sa.raw.Sa_family = AF_NFC | |
| 939 | - | sa.raw.Dev_idx = sa.DeviceIdx | |
| 940 | - | sa.raw.Target_idx = sa.TargetIdx | |
| 941 | - | sa.raw.Nfc_protocol = sa.NFCProtocol | |
| 942 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrNFC, nil | |
| 943 | - | } | |
| 944 | - | ||
| 945 | - | type SockaddrNFCLLCP struct { | |
| 946 | - | DeviceIdx uint32 | |
| 947 | - | TargetIdx uint32 | |
| 948 | - | NFCProtocol uint32 | |
| 949 | - | DestinationSAP uint8 | |
| 950 | - | SourceSAP uint8 | |
| 951 | - | ServiceName string | |
| 952 | - | raw RawSockaddrNFCLLCP | |
| 953 | - | } | |
| 954 | - | ||
| 955 | - | func (sa *SockaddrNFCLLCP) sockaddr() (unsafe.Pointer, _Socklen, error) { | |
| 956 | - | sa.raw.Sa_family = AF_NFC | |
| 957 | - | sa.raw.Dev_idx = sa.DeviceIdx | |
| 958 | - | sa.raw.Target_idx = sa.TargetIdx | |
| 959 | - | sa.raw.Nfc_protocol = sa.NFCProtocol | |
| 960 | - | sa.raw.Dsap = sa.DestinationSAP | |
| 961 | - | sa.raw.Ssap = sa.SourceSAP | |
| 962 | - | if len(sa.ServiceName) > len(sa.raw.Service_name) { | |
| 963 | - | return nil, 0, EINVAL | |
| 964 | - | } | |
| 965 | - | copy(sa.raw.Service_name[:], sa.ServiceName) | |
| 966 | - | sa.raw.SetServiceNameLen(len(sa.ServiceName)) | |
| 967 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrNFCLLCP, nil | |
| 968 | - | } | |
| 969 | - | ||
| 970 | - | var socketProtocol = func(fd int) (int, error) { | |
| 971 | - | return GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL) | |
| 972 | - | } | |
| 973 | - | ||
| 974 | - | func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { | |
| 975 | - | switch rsa.Addr.Family { | |
| 976 | - | case AF_NETLINK: | |
| 977 | - | pp := (*RawSockaddrNetlink)(unsafe.Pointer(rsa)) | |
| 978 | - | sa := new(SockaddrNetlink) | |
| 979 | - | sa.Family = pp.Family | |
| 980 | - | sa.Pad = pp.Pad | |
| 981 | - | sa.Pid = pp.Pid | |
| 982 | - | sa.Groups = pp.Groups | |
| 983 | - | return sa, nil | |
| 984 | - | ||
| 985 | - | case AF_PACKET: | |
| 986 | - | pp := (*RawSockaddrLinklayer)(unsafe.Pointer(rsa)) | |
| 987 | - | sa := new(SockaddrLinklayer) | |
| 988 | - | sa.Protocol = pp.Protocol | |
| 989 | - | sa.Ifindex = int(pp.Ifindex) | |
| 990 | - | sa.Hatype = pp.Hatype | |
| 991 | - | sa.Pkttype = pp.Pkttype | |
| 992 | - | sa.Halen = pp.Halen | |
| 993 | - | sa.Addr = pp.Addr | |
| 994 | - | return sa, nil | |
| 995 | - | ||
| 996 | - | case AF_UNIX: | |
| 997 | - | pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa)) | |
| 998 | - | sa := new(SockaddrUnix) | |
| 999 | - | if pp.Path[0] == 0 { | |
| 1000 | - | // "Abstract" Unix domain socket. | |
| 1001 | - | // Rewrite leading NUL as @ for textual display. | |
| 1002 | - | // (This is the standard convention.) | |
| 1003 | - | // Not friendly to overwrite in place, | |
| 1004 | - | // but the callers below don't care. | |
| 1005 | - | pp.Path[0] = '@' | |
| 1006 | - | } | |
| 1007 | - | ||
| 1008 | - | // Assume path ends at NUL. | |
| 1009 | - | // This is not technically the Linux semantics for | |
| 1010 | - | // abstract Unix domain sockets--they are supposed | |
| 1011 | - | // to be uninterpreted fixed-size binary blobs--but | |
| 1012 | - | // everyone uses this convention. | |
| 1013 | - | n := 0 | |
| 1014 | - | for n < len(pp.Path) && pp.Path[n] != 0 { | |
| 1015 | - | n++ | |
| 1016 | - | } | |
| 1017 | - | sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n)) | |
| 1018 | - | return sa, nil | |
| 1019 | - | ||
| 1020 | - | case AF_INET: | |
| 1021 | - | proto, err := socketProtocol(fd) | |
| 1022 | - | if err != nil { | |
| 1023 | - | return nil, err | |
| 1024 | - | } | |
| 1025 | - | ||
| 1026 | - | switch proto { | |
| 1027 | - | case IPPROTO_L2TP: | |
| 1028 | - | pp := (*RawSockaddrL2TPIP)(unsafe.Pointer(rsa)) | |
| 1029 | - | sa := new(SockaddrL2TPIP) | |
| 1030 | - | sa.ConnId = pp.Conn_id | |
| 1031 | - | sa.Addr = pp.Addr | |
| 1032 | - | return sa, nil | |
| 1033 | - | default: | |
| 1034 | - | pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa)) | |
| 1035 | - | sa := new(SockaddrInet4) | |
| 1036 | - | p := (*[2]byte)(unsafe.Pointer(&pp.Port)) | |
| 1037 | - | sa.Port = int(p[0])<<8 + int(p[1]) | |
| 1038 | - | sa.Addr = pp.Addr | |
| 1039 | - | return sa, nil | |
| 1040 | - | } | |
| 1041 | - | ||
| 1042 | - | case AF_INET6: | |
| 1043 | - | proto, err := socketProtocol(fd) | |
| 1044 | - | if err != nil { | |
| 1045 | - | return nil, err | |
| 1046 | - | } | |
| 1047 | - | ||
| 1048 | - | switch proto { | |
| 1049 | - | case IPPROTO_L2TP: | |
| 1050 | - | pp := (*RawSockaddrL2TPIP6)(unsafe.Pointer(rsa)) | |
| 1051 | - | sa := new(SockaddrL2TPIP6) | |
| 1052 | - | sa.ConnId = pp.Conn_id | |
| 1053 | - | sa.ZoneId = pp.Scope_id | |
| 1054 | - | sa.Addr = pp.Addr | |
| 1055 | - | return sa, nil | |
| 1056 | - | default: | |
| 1057 | - | pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa)) | |
| 1058 | - | sa := new(SockaddrInet6) | |
| 1059 | - | p := (*[2]byte)(unsafe.Pointer(&pp.Port)) | |
| 1060 | - | sa.Port = int(p[0])<<8 + int(p[1]) | |
| 1061 | - | sa.ZoneId = pp.Scope_id | |
| 1062 | - | sa.Addr = pp.Addr | |
| 1063 | - | return sa, nil | |
| 1064 | - | } | |
| 1065 | - | ||
| 1066 | - | case AF_VSOCK: | |
| 1067 | - | pp := (*RawSockaddrVM)(unsafe.Pointer(rsa)) | |
| 1068 | - | sa := &SockaddrVM{ | |
| 1069 | - | CID: pp.Cid, | |
| 1070 | - | Port: pp.Port, | |
| 1071 | - | Flags: pp.Flags, | |
| 1072 | - | } | |
| 1073 | - | return sa, nil | |
| 1074 | - | case AF_BLUETOOTH: | |
| 1075 | - | proto, err := socketProtocol(fd) | |
| 1076 | - | if err != nil { | |
| 1077 | - | return nil, err | |
| 1078 | - | } | |
| 1079 | - | // only BTPROTO_L2CAP and BTPROTO_RFCOMM can accept connections | |
| 1080 | - | switch proto { | |
| 1081 | - | case BTPROTO_L2CAP: | |
| 1082 | - | pp := (*RawSockaddrL2)(unsafe.Pointer(rsa)) | |
| 1083 | - | sa := &SockaddrL2{ | |
| 1084 | - | PSM: pp.Psm, | |
| 1085 | - | CID: pp.Cid, | |
| 1086 | - | Addr: pp.Bdaddr, | |
| 1087 | - | AddrType: pp.Bdaddr_type, | |
| 1088 | - | } | |
| 1089 | - | return sa, nil | |
| 1090 | - | case BTPROTO_RFCOMM: | |
| 1091 | - | pp := (*RawSockaddrRFCOMM)(unsafe.Pointer(rsa)) | |
| 1092 | - | sa := &SockaddrRFCOMM{ | |
| 1093 | - | Channel: pp.Channel, | |
| 1094 | - | Addr: pp.Bdaddr, | |
| 1095 | - | } | |
| 1096 | - | return sa, nil | |
| 1097 | - | } | |
| 1098 | - | case AF_XDP: | |
| 1099 | - | pp := (*RawSockaddrXDP)(unsafe.Pointer(rsa)) | |
| 1100 | - | sa := &SockaddrXDP{ | |
| 1101 | - | Flags: pp.Flags, | |
| 1102 | - | Ifindex: pp.Ifindex, | |
| 1103 | - | QueueID: pp.Queue_id, | |
| 1104 | - | SharedUmemFD: pp.Shared_umem_fd, | |
| 1105 | - | } | |
| 1106 | - | return sa, nil | |
| 1107 | - | case AF_PPPOX: | |
| 1108 | - | pp := (*RawSockaddrPPPoX)(unsafe.Pointer(rsa)) | |
| 1109 | - | if binary.BigEndian.Uint32(pp[2:6]) != px_proto_oe { | |
| 1110 | - | return nil, EINVAL | |
| 1111 | - | } | |
| 1112 | - | sa := &SockaddrPPPoE{ | |
| 1113 | - | SID: binary.BigEndian.Uint16(pp[6:8]), | |
| 1114 | - | Remote: pp[8:14], | |
| 1115 | - | } | |
| 1116 | - | for i := 14; i < 14+IFNAMSIZ; i++ { | |
| 1117 | - | if pp[i] == 0 { | |
| 1118 | - | sa.Dev = string(pp[14:i]) | |
| 1119 | - | break | |
| 1120 | - | } | |
| 1121 | - | } | |
| 1122 | - | return sa, nil | |
| 1123 | - | case AF_TIPC: | |
| 1124 | - | pp := (*RawSockaddrTIPC)(unsafe.Pointer(rsa)) | |
| 1125 | - | ||
| 1126 | - | sa := &SockaddrTIPC{ | |
| 1127 | - | Scope: int(pp.Scope), | |
| 1128 | - | } | |
| 1129 | - | ||
| 1130 | - | // Determine which union variant is present in pp.Addr by checking | |
| 1131 | - | // pp.Addrtype. | |
| 1132 | - | switch pp.Addrtype { | |
| 1133 | - | case TIPC_SERVICE_RANGE: | |
| 1134 | - | sa.Addr = (*TIPCServiceRange)(unsafe.Pointer(&pp.Addr)) | |
| 1135 | - | case TIPC_SERVICE_ADDR: | |
| 1136 | - | sa.Addr = (*TIPCServiceName)(unsafe.Pointer(&pp.Addr)) | |
| 1137 | - | case TIPC_SOCKET_ADDR: | |
| 1138 | - | sa.Addr = (*TIPCSocketAddr)(unsafe.Pointer(&pp.Addr)) | |
| 1139 | - | default: | |
| 1140 | - | return nil, EINVAL | |
| 1141 | - | } | |
| 1142 | - | ||
| 1143 | - | return sa, nil | |
| 1144 | - | case AF_IUCV: | |
| 1145 | - | pp := (*RawSockaddrIUCV)(unsafe.Pointer(rsa)) | |
| 1146 | - | ||
| 1147 | - | var user [8]byte | |
| 1148 | - | var name [8]byte | |
| 1149 | - | ||
| 1150 | - | for i := range 8 { | |
| 1151 | - | user[i] = byte(pp.User_id[i]) | |
| 1152 | - | name[i] = byte(pp.Name[i]) | |
| 1153 | - | } | |
| 1154 | - | ||
| 1155 | - | sa := &SockaddrIUCV{ | |
| 1156 | - | UserID: string(user[:]), | |
| 1157 | - | Name: string(name[:]), | |
| 1158 | - | } | |
| 1159 | - | return sa, nil | |
| 1160 | - | ||
| 1161 | - | case AF_CAN: | |
| 1162 | - | proto, err := socketProtocol(fd) | |
| 1163 | - | if err != nil { | |
| 1164 | - | return nil, err | |
| 1165 | - | } | |
| 1166 | - | ||
| 1167 | - | pp := (*RawSockaddrCAN)(unsafe.Pointer(rsa)) | |
| 1168 | - | ||
| 1169 | - | switch proto { | |
| 1170 | - | case CAN_J1939: | |
| 1171 | - | sa := &SockaddrCANJ1939{ | |
| 1172 | - | Ifindex: int(pp.Ifindex), | |
| 1173 | - | } | |
| 1174 | - | name := (*[8]byte)(unsafe.Pointer(&sa.Name)) | |
| 1175 | - | for i := range 8 { | |
| 1176 | - | name[i] = pp.Addr[i] | |
| 1177 | - | } | |
| 1178 | - | pgn := (*[4]byte)(unsafe.Pointer(&sa.PGN)) | |
| 1179 | - | for i := range 4 { | |
| 1180 | - | pgn[i] = pp.Addr[i+8] | |
| 1181 | - | } | |
| 1182 | - | addr := (*[1]byte)(unsafe.Pointer(&sa.Addr)) | |
| 1183 | - | addr[0] = pp.Addr[12] | |
| 1184 | - | return sa, nil | |
| 1185 | - | default: | |
| 1186 | - | sa := &SockaddrCAN{ | |
| 1187 | - | Ifindex: int(pp.Ifindex), | |
| 1188 | - | } | |
| 1189 | - | rx := (*[4]byte)(unsafe.Pointer(&sa.RxID)) | |
| 1190 | - | for i := range 4 { | |
| 1191 | - | rx[i] = pp.Addr[i] | |
| 1192 | - | } | |
| 1193 | - | tx := (*[4]byte)(unsafe.Pointer(&sa.TxID)) | |
| 1194 | - | for i := range 4 { | |
| 1195 | - | tx[i] = pp.Addr[i+4] | |
| 1196 | - | } | |
| 1197 | - | return sa, nil | |
| 1198 | - | } | |
| 1199 | - | case AF_NFC: | |
| 1200 | - | proto, err := socketProtocol(fd) | |
| 1201 | - | if err != nil { | |
| 1202 | - | return nil, err | |
| 1203 | - | } | |
| 1204 | - | switch proto { | |
| 1205 | - | case NFC_SOCKPROTO_RAW: | |
| 1206 | - | pp := (*RawSockaddrNFC)(unsafe.Pointer(rsa)) | |
| 1207 | - | sa := &SockaddrNFC{ | |
| 1208 | - | DeviceIdx: pp.Dev_idx, | |
| 1209 | - | TargetIdx: pp.Target_idx, | |
| 1210 | - | NFCProtocol: pp.Nfc_protocol, | |
| 1211 | - | } | |
| 1212 | - | return sa, nil | |
| 1213 | - | case NFC_SOCKPROTO_LLCP: | |
| 1214 | - | pp := (*RawSockaddrNFCLLCP)(unsafe.Pointer(rsa)) | |
| 1215 | - | if uint64(pp.Service_name_len) > uint64(len(pp.Service_name)) { | |
| 1216 | - | return nil, EINVAL | |
| 1217 | - | } | |
| 1218 | - | sa := &SockaddrNFCLLCP{ | |
| 1219 | - | DeviceIdx: pp.Dev_idx, | |
| 1220 | - | TargetIdx: pp.Target_idx, | |
| 1221 | - | NFCProtocol: pp.Nfc_protocol, | |
| 1222 | - | DestinationSAP: pp.Dsap, | |
| 1223 | - | SourceSAP: pp.Ssap, | |
| 1224 | - | ServiceName: string(pp.Service_name[:pp.Service_name_len]), | |
| 1225 | - | } | |
| 1226 | - | return sa, nil | |
| 1227 | - | default: | |
| 1228 | - | return nil, EINVAL | |
| 1229 | - | } | |
| 1230 | - | } | |
| 1231 | - | return nil, EAFNOSUPPORT | |
| 1232 | - | } | |
| 1233 | - | ||
| 1234 | - | func Accept(fd int) (nfd int, sa Sockaddr, err error) { | |
| 1235 | - | var rsa RawSockaddrAny | |
| 1236 | - | var len _Socklen = SizeofSockaddrAny | |
| 1237 | - | nfd, err = accept4(fd, &rsa, &len, 0) | |
| 1238 | - | if err != nil { | |
| 1239 | - | return | |
| 1240 | - | } | |
| 1241 | - | sa, err = anyToSockaddr(fd, &rsa) | |
| 1242 | - | if err != nil { | |
| 1243 | - | Close(nfd) | |
| 1244 | - | nfd = 0 | |
| 1245 | - | } | |
| 1246 | - | return | |
| 1247 | - | } | |
| 1248 | - | ||
| 1249 | - | func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) { | |
| 1250 | - | var rsa RawSockaddrAny | |
| 1251 | - | var len _Socklen = SizeofSockaddrAny | |
| 1252 | - | nfd, err = accept4(fd, &rsa, &len, flags) | |
| 1253 | - | if err != nil { | |
| 1254 | - | return | |
| 1255 | - | } | |
| 1256 | - | if len > SizeofSockaddrAny { | |
| 1257 | - | panic("RawSockaddrAny too small") | |
| 1258 | - | } | |
| 1259 | - | sa, err = anyToSockaddr(fd, &rsa) | |
| 1260 | - | if err != nil { | |
| 1261 | - | Close(nfd) | |
| 1262 | - | nfd = 0 | |
| 1263 | - | } | |
| 1264 | - | return | |
| 1265 | - | } | |
| 1266 | - | ||
| 1267 | - | func Getsockname(fd int) (sa Sockaddr, err error) { | |
| 1268 | - | var rsa RawSockaddrAny | |
| 1269 | - | var len _Socklen = SizeofSockaddrAny | |
| 1270 | - | if err = getsockname(fd, &rsa, &len); err != nil { | |
| 1271 | - | return | |
| 1272 | - | } | |
| 1273 | - | return anyToSockaddr(fd, &rsa) | |
| 1274 | - | } | |
| 1275 | - | ||
| 1276 | - | func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) { | |
| 1277 | - | var value IPMreqn | |
| 1278 | - | vallen := _Socklen(SizeofIPMreqn) | |
| 1279 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) | |
| 1280 | - | return &value, err | |
| 1281 | - | } | |
| 1282 | - | ||
| 1283 | - | func GetsockoptUcred(fd, level, opt int) (*Ucred, error) { | |
| 1284 | - | var value Ucred | |
| 1285 | - | vallen := _Socklen(SizeofUcred) | |
| 1286 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) | |
| 1287 | - | return &value, err | |
| 1288 | - | } | |
| 1289 | - | ||
| 1290 | - | func GetsockoptTCPInfo(fd, level, opt int) (*TCPInfo, error) { | |
| 1291 | - | var value TCPInfo | |
| 1292 | - | vallen := _Socklen(SizeofTCPInfo) | |
| 1293 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) | |
| 1294 | - | return &value, err | |
| 1295 | - | } | |
| 1296 | - | ||
| 1297 | - | // GetsockoptTCPCCVegasInfo returns algorithm specific congestion control information for a socket using the "vegas" | |
| 1298 | - | // algorithm. | |
| 1299 | - | // | |
| 1300 | - | // The socket's congestion control algorighm can be retrieved via [GetsockoptString] with the [TCP_CONGESTION] option: | |
| 1301 | - | // | |
| 1302 | - | // algo, err := unix.GetsockoptString(fd, unix.IPPROTO_TCP, unix.TCP_CONGESTION) | |
| 1303 | - | func GetsockoptTCPCCVegasInfo(fd, level, opt int) (*TCPVegasInfo, error) { | |
| 1304 | - | var value [SizeofTCPCCInfo / 4]uint32 // ensure proper alignment | |
| 1305 | - | vallen := _Socklen(SizeofTCPCCInfo) | |
| 1306 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen) | |
| 1307 | - | out := (*TCPVegasInfo)(unsafe.Pointer(&value[0])) | |
| 1308 | - | return out, err | |
| 1309 | - | } | |
| 1310 | - | ||
| 1311 | - | // GetsockoptTCPCCDCTCPInfo returns algorithm specific congestion control information for a socket using the "dctp" | |
| 1312 | - | // algorithm. | |
| 1313 | - | // | |
| 1314 | - | // The socket's congestion control algorighm can be retrieved via [GetsockoptString] with the [TCP_CONGESTION] option: | |
| 1315 | - | // | |
| 1316 | - | // algo, err := unix.GetsockoptString(fd, unix.IPPROTO_TCP, unix.TCP_CONGESTION) | |
| 1317 | - | func GetsockoptTCPCCDCTCPInfo(fd, level, opt int) (*TCPDCTCPInfo, error) { | |
| 1318 | - | var value [SizeofTCPCCInfo / 4]uint32 // ensure proper alignment | |
| 1319 | - | vallen := _Socklen(SizeofTCPCCInfo) | |
| 1320 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen) | |
| 1321 | - | out := (*TCPDCTCPInfo)(unsafe.Pointer(&value[0])) | |
| 1322 | - | return out, err | |
| 1323 | - | } | |
| 1324 | - | ||
| 1325 | - | // GetsockoptTCPCCBBRInfo returns algorithm specific congestion control information for a socket using the "bbr" | |
| 1326 | - | // algorithm. | |
| 1327 | - | // | |
| 1328 | - | // The socket's congestion control algorighm can be retrieved via [GetsockoptString] with the [TCP_CONGESTION] option: | |
| 1329 | - | // | |
| 1330 | - | // algo, err := unix.GetsockoptString(fd, unix.IPPROTO_TCP, unix.TCP_CONGESTION) | |
| 1331 | - | func GetsockoptTCPCCBBRInfo(fd, level, opt int) (*TCPBBRInfo, error) { | |
| 1332 | - | var value [SizeofTCPCCInfo / 4]uint32 // ensure proper alignment | |
| 1333 | - | vallen := _Socklen(SizeofTCPCCInfo) | |
| 1334 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen) | |
| 1335 | - | out := (*TCPBBRInfo)(unsafe.Pointer(&value[0])) | |
| 1336 | - | return out, err | |
| 1337 | - | } | |
| 1338 | - | ||
| 1339 | - | // GetsockoptString returns the string value of the socket option opt for the | |
| 1340 | - | // socket associated with fd at the given socket level. | |
| 1341 | - | func GetsockoptString(fd, level, opt int) (string, error) { | |
| 1342 | - | buf := make([]byte, 256) | |
| 1343 | - | vallen := _Socklen(len(buf)) | |
| 1344 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&buf[0]), &vallen) | |
| 1345 | - | if err != nil { | |
| 1346 | - | if err == ERANGE { | |
| 1347 | - | buf = make([]byte, vallen) | |
| 1348 | - | err = getsockopt(fd, level, opt, unsafe.Pointer(&buf[0]), &vallen) | |
| 1349 | - | } | |
| 1350 | - | if err != nil { | |
| 1351 | - | return "", err | |
| 1352 | - | } | |
| 1353 | - | } | |
| 1354 | - | return ByteSliceToString(buf[:vallen]), nil | |
| 1355 | - | } | |
| 1356 | - | ||
| 1357 | - | func GetsockoptTpacketStats(fd, level, opt int) (*TpacketStats, error) { | |
| 1358 | - | var value TpacketStats | |
| 1359 | - | vallen := _Socklen(SizeofTpacketStats) | |
| 1360 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) | |
| 1361 | - | return &value, err | |
| 1362 | - | } | |
| 1363 | - | ||
| 1364 | - | func GetsockoptTpacketStatsV3(fd, level, opt int) (*TpacketStatsV3, error) { | |
| 1365 | - | var value TpacketStatsV3 | |
| 1366 | - | vallen := _Socklen(SizeofTpacketStatsV3) | |
| 1367 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) | |
| 1368 | - | return &value, err | |
| 1369 | - | } | |
| 1370 | - | ||
| 1371 | - | func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) { | |
| 1372 | - | return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq)) | |
| 1373 | - | } | |
| 1374 | - | ||
| 1375 | - | func SetsockoptPacketMreq(fd, level, opt int, mreq *PacketMreq) error { | |
| 1376 | - | return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq)) | |
| 1377 | - | } | |
| 1378 | - | ||
| 1379 | - | // SetsockoptSockFprog attaches a classic BPF or an extended BPF program to a | |
| 1380 | - | // socket to filter incoming packets. See 'man 7 socket' for usage information. | |
| 1381 | - | func SetsockoptSockFprog(fd, level, opt int, fprog *SockFprog) error { | |
| 1382 | - | return setsockopt(fd, level, opt, unsafe.Pointer(fprog), unsafe.Sizeof(*fprog)) | |
| 1383 | - | } | |
| 1384 | - | ||
| 1385 | - | func SetsockoptCanRawFilter(fd, level, opt int, filter []CanFilter) error { | |
| 1386 | - | var p unsafe.Pointer | |
| 1387 | - | if len(filter) > 0 { | |
| 1388 | - | p = unsafe.Pointer(&filter[0]) | |
| 1389 | - | } | |
| 1390 | - | return setsockopt(fd, level, opt, p, uintptr(len(filter)*SizeofCanFilter)) | |
| 1391 | - | } | |
| 1392 | - | ||
| 1393 | - | func SetsockoptTpacketReq(fd, level, opt int, tp *TpacketReq) error { | |
| 1394 | - | return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp)) | |
| 1395 | - | } | |
| 1396 | - | ||
| 1397 | - | func SetsockoptTpacketReq3(fd, level, opt int, tp *TpacketReq3) error { | |
| 1398 | - | return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp)) | |
| 1399 | - | } | |
| 1400 | - | ||
| 1401 | - | func SetsockoptTCPRepairOpt(fd, level, opt int, o []TCPRepairOpt) (err error) { | |
| 1402 | - | if len(o) == 0 { | |
| 1403 | - | return EINVAL | |
| 1404 | - | } | |
| 1405 | - | return setsockopt(fd, level, opt, unsafe.Pointer(&o[0]), uintptr(SizeofTCPRepairOpt*len(o))) | |
| 1406 | - | } | |
| 1407 | - | ||
| 1408 | - | func SetsockoptTCPMD5Sig(fd, level, opt int, s *TCPMD5Sig) error { | |
| 1409 | - | return setsockopt(fd, level, opt, unsafe.Pointer(s), unsafe.Sizeof(*s)) | |
| 1410 | - | } | |
| 1411 | - | ||
| 1412 | - | // Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html) | |
| 1413 | - | ||
| 1414 | - | // KeyctlInt calls keyctl commands in which each argument is an int. | |
| 1415 | - | // These commands are KEYCTL_REVOKE, KEYCTL_CHOWN, KEYCTL_CLEAR, KEYCTL_LINK, | |
| 1416 | - | // KEYCTL_UNLINK, KEYCTL_NEGATE, KEYCTL_SET_REQKEY_KEYRING, KEYCTL_SET_TIMEOUT, | |
| 1417 | - | // KEYCTL_ASSUME_AUTHORITY, KEYCTL_SESSION_TO_PARENT, KEYCTL_REJECT, | |
| 1418 | - | // KEYCTL_INVALIDATE, and KEYCTL_GET_PERSISTENT. | |
| 1419 | - | //sys KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) = SYS_KEYCTL | |
| 1420 | - | ||
| 1421 | - | // KeyctlBuffer calls keyctl commands in which the third and fourth | |
| 1422 | - | // arguments are a buffer and its length, respectively. | |
| 1423 | - | // These commands are KEYCTL_UPDATE, KEYCTL_READ, and KEYCTL_INSTANTIATE. | |
| 1424 | - | //sys KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) = SYS_KEYCTL | |
| 1425 | - | ||
| 1426 | - | // KeyctlString calls keyctl commands which return a string. | |
| 1427 | - | // These commands are KEYCTL_DESCRIBE and KEYCTL_GET_SECURITY. | |
| 1428 | - | func KeyctlString(cmd int, id int) (string, error) { | |
| 1429 | - | // We must loop as the string data may change in between the syscalls. | |
| 1430 | - | // We could allocate a large buffer here to reduce the chance that the | |
| 1431 | - | // syscall needs to be called twice; however, this is unnecessary as | |
| 1432 | - | // the performance loss is negligible. | |
| 1433 | - | var buffer []byte | |
| 1434 | - | for { | |
| 1435 | - | // Try to fill the buffer with data | |
| 1436 | - | length, err := KeyctlBuffer(cmd, id, buffer, 0) | |
| 1437 | - | if err != nil { | |
| 1438 | - | return "", err | |
| 1439 | - | } | |
| 1440 | - | ||
| 1441 | - | // Check if the data was written | |
| 1442 | - | if length <= len(buffer) { | |
| 1443 | - | // Exclude the null terminator | |
| 1444 | - | return string(buffer[:length-1]), nil | |
| 1445 | - | } | |
| 1446 | - | ||
| 1447 | - | // Make a bigger buffer if needed | |
| 1448 | - | buffer = make([]byte, length) | |
| 1449 | - | } | |
| 1450 | - | } | |
| 1451 | - | ||
| 1452 | - | // Keyctl commands with special signatures. | |
| 1453 | - | ||
| 1454 | - | // KeyctlGetKeyringID implements the KEYCTL_GET_KEYRING_ID command. | |
| 1455 | - | // See the full documentation at: | |
| 1456 | - | // http://man7.org/linux/man-pages/man3/keyctl_get_keyring_ID.3.html | |
| 1457 | - | func KeyctlGetKeyringID(id int, create bool) (ringid int, err error) { | |
| 1458 | - | createInt := 0 | |
| 1459 | - | if create { | |
| 1460 | - | createInt = 1 | |
| 1461 | - | } | |
| 1462 | - | return KeyctlInt(KEYCTL_GET_KEYRING_ID, id, createInt, 0, 0) | |
| 1463 | - | } | |
| 1464 | - | ||
| 1465 | - | // KeyctlSetperm implements the KEYCTL_SETPERM command. The perm value is the | |
| 1466 | - | // key handle permission mask as described in the "keyctl setperm" section of | |
| 1467 | - | // http://man7.org/linux/man-pages/man1/keyctl.1.html. | |
| 1468 | - | // See the full documentation at: | |
| 1469 | - | // http://man7.org/linux/man-pages/man3/keyctl_setperm.3.html | |
| 1470 | - | func KeyctlSetperm(id int, perm uint32) error { | |
| 1471 | - | _, err := KeyctlInt(KEYCTL_SETPERM, id, int(perm), 0, 0) | |
| 1472 | - | return err | |
| 1473 | - | } | |
| 1474 | - | ||
| 1475 | - | //sys keyctlJoin(cmd int, arg2 string) (ret int, err error) = SYS_KEYCTL | |
| 1476 | - | ||
| 1477 | - | // KeyctlJoinSessionKeyring implements the KEYCTL_JOIN_SESSION_KEYRING command. | |
| 1478 | - | // See the full documentation at: | |
| 1479 | - | // http://man7.org/linux/man-pages/man3/keyctl_join_session_keyring.3.html | |
| 1480 | - | func KeyctlJoinSessionKeyring(name string) (ringid int, err error) { | |
| 1481 | - | return keyctlJoin(KEYCTL_JOIN_SESSION_KEYRING, name) | |
| 1482 | - | } | |
| 1483 | - | ||
| 1484 | - | //sys keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) = SYS_KEYCTL | |
| 1485 | - | ||
| 1486 | - | // KeyctlSearch implements the KEYCTL_SEARCH command. | |
| 1487 | - | // See the full documentation at: | |
| 1488 | - | // http://man7.org/linux/man-pages/man3/keyctl_search.3.html | |
| 1489 | - | func KeyctlSearch(ringid int, keyType, description string, destRingid int) (id int, err error) { | |
| 1490 | - | return keyctlSearch(KEYCTL_SEARCH, ringid, keyType, description, destRingid) | |
| 1491 | - | } | |
| 1492 | - | ||
| 1493 | - | //sys keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) = SYS_KEYCTL | |
| 1494 | - | ||
| 1495 | - | // KeyctlInstantiateIOV implements the KEYCTL_INSTANTIATE_IOV command. This | |
| 1496 | - | // command is similar to KEYCTL_INSTANTIATE, except that the payload is a slice | |
| 1497 | - | // of Iovec (each of which represents a buffer) instead of a single buffer. | |
| 1498 | - | // See the full documentation at: | |
| 1499 | - | // http://man7.org/linux/man-pages/man3/keyctl_instantiate_iov.3.html | |
| 1500 | - | func KeyctlInstantiateIOV(id int, payload []Iovec, ringid int) error { | |
| 1501 | - | return keyctlIOV(KEYCTL_INSTANTIATE_IOV, id, payload, ringid) | |
| 1502 | - | } | |
| 1503 | - | ||
| 1504 | - | //sys keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) = SYS_KEYCTL | |
| 1505 | - | ||
| 1506 | - | // KeyctlDHCompute implements the KEYCTL_DH_COMPUTE command. This command | |
| 1507 | - | // computes a Diffie-Hellman shared secret based on the provide params. The | |
| 1508 | - | // secret is written to the provided buffer and the returned size is the number | |
| 1509 | - | // of bytes written (returning an error if there is insufficient space in the | |
| 1510 | - | // buffer). If a nil buffer is passed in, this function returns the minimum | |
| 1511 | - | // buffer length needed to store the appropriate data. Note that this differs | |
| 1512 | - | // from KEYCTL_READ's behavior which always returns the requested payload size. | |
| 1513 | - | // See the full documentation at: | |
| 1514 | - | // http://man7.org/linux/man-pages/man3/keyctl_dh_compute.3.html | |
| 1515 | - | func KeyctlDHCompute(params *KeyctlDHParams, buffer []byte) (size int, err error) { | |
| 1516 | - | return keyctlDH(KEYCTL_DH_COMPUTE, params, buffer) | |
| 1517 | - | } | |
| 1518 | - | ||
| 1519 | - | // KeyctlRestrictKeyring implements the KEYCTL_RESTRICT_KEYRING command. This | |
| 1520 | - | // command limits the set of keys that can be linked to the keyring, regardless | |
| 1521 | - | // of keyring permissions. The command requires the "setattr" permission. | |
| 1522 | - | // | |
| 1523 | - | // When called with an empty keyType the command locks the keyring, preventing | |
| 1524 | - | // any further keys from being linked to the keyring. | |
| 1525 | - | // | |
| 1526 | - | // The "asymmetric" keyType defines restrictions requiring key payloads to be | |
| 1527 | - | // DER encoded X.509 certificates signed by keys in another keyring. Restrictions | |
| 1528 | - | // for "asymmetric" include "builtin_trusted", "builtin_and_secondary_trusted", | |
| 1529 | - | // "key_or_keyring:<key>", and "key_or_keyring:<key>:chain". | |
| 1530 | - | // | |
| 1531 | - | // As of Linux 4.12, only the "asymmetric" keyType defines type-specific | |
| 1532 | - | // restrictions. | |
| 1533 | - | // | |
| 1534 | - | // See the full documentation at: | |
| 1535 | - | // http://man7.org/linux/man-pages/man3/keyctl_restrict_keyring.3.html | |
| 1536 | - | // http://man7.org/linux/man-pages/man2/keyctl.2.html | |
| 1537 | - | func KeyctlRestrictKeyring(ringid int, keyType string, restriction string) error { | |
| 1538 | - | if keyType == "" { | |
| 1539 | - | return keyctlRestrictKeyring(KEYCTL_RESTRICT_KEYRING, ringid) | |
| 1540 | - | } | |
| 1541 | - | return keyctlRestrictKeyringByType(KEYCTL_RESTRICT_KEYRING, ringid, keyType, restriction) | |
| 1542 | - | } | |
| 1543 | - | ||
| 1544 | - | //sys keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) = SYS_KEYCTL | |
| 1545 | - | //sys keyctlRestrictKeyring(cmd int, arg2 int) (err error) = SYS_KEYCTL | |
| 1546 | - | ||
| 1547 | - | func recvmsgRaw(fd int, iov []Iovec, oob []byte, flags int, rsa *RawSockaddrAny) (n, oobn int, recvflags int, err error) { | |
| 1548 | - | var msg Msghdr | |
| 1549 | - | msg.Name = (*byte)(unsafe.Pointer(rsa)) | |
| 1550 | - | msg.Namelen = uint32(SizeofSockaddrAny) | |
| 1551 | - | var dummy byte | |
| 1552 | - | if len(oob) > 0 { | |
| 1553 | - | if emptyIovecs(iov) { | |
| 1554 | - | var sockType int | |
| 1555 | - | sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE) | |
| 1556 | - | if err != nil { | |
| 1557 | - | return | |
| 1558 | - | } | |
| 1559 | - | // receive at least one normal byte | |
| 1560 | - | if sockType != SOCK_DGRAM { | |
| 1561 | - | var iova [1]Iovec | |
| 1562 | - | iova[0].Base = &dummy | |
| 1563 | - | iova[0].SetLen(1) | |
| 1564 | - | iov = iova[:] | |
| 1565 | - | } | |
| 1566 | - | } | |
| 1567 | - | msg.Control = &oob[0] | |
| 1568 | - | msg.SetControllen(len(oob)) | |
| 1569 | - | } | |
| 1570 | - | if len(iov) > 0 { | |
| 1571 | - | msg.Iov = &iov[0] | |
| 1572 | - | msg.SetIovlen(len(iov)) | |
| 1573 | - | } | |
| 1574 | - | if n, err = recvmsg(fd, &msg, flags); err != nil { | |
| 1575 | - | return | |
| 1576 | - | } | |
| 1577 | - | oobn = int(msg.Controllen) | |
| 1578 | - | recvflags = int(msg.Flags) | |
| 1579 | - | return | |
| 1580 | - | } | |
| 1581 | - | ||
| 1582 | - | func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Socklen, flags int) (n int, err error) { | |
| 1583 | - | var msg Msghdr | |
| 1584 | - | msg.Name = (*byte)(ptr) | |
| 1585 | - | msg.Namelen = uint32(salen) | |
| 1586 | - | var dummy byte | |
| 1587 | - | var empty bool | |
| 1588 | - | if len(oob) > 0 { | |
| 1589 | - | empty = emptyIovecs(iov) | |
| 1590 | - | if empty { | |
| 1591 | - | var sockType int | |
| 1592 | - | sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE) | |
| 1593 | - | if err != nil { | |
| 1594 | - | return 0, err | |
| 1595 | - | } | |
| 1596 | - | // send at least one normal byte | |
| 1597 | - | if sockType != SOCK_DGRAM { | |
| 1598 | - | var iova [1]Iovec | |
| 1599 | - | iova[0].Base = &dummy | |
| 1600 | - | iova[0].SetLen(1) | |
| 1601 | - | iov = iova[:] | |
| 1602 | - | } | |
| 1603 | - | } | |
| 1604 | - | msg.Control = &oob[0] | |
| 1605 | - | msg.SetControllen(len(oob)) | |
| 1606 | - | } | |
| 1607 | - | if len(iov) > 0 { | |
| 1608 | - | msg.Iov = &iov[0] | |
| 1609 | - | msg.SetIovlen(len(iov)) | |
| 1610 | - | } | |
| 1611 | - | if n, err = sendmsg(fd, &msg, flags); err != nil { | |
| 1612 | - | return 0, err | |
| 1613 | - | } | |
| 1614 | - | if len(oob) > 0 && empty { | |
| 1615 | - | n = 0 | |
| 1616 | - | } | |
| 1617 | - | return n, nil | |
| 1618 | - | } | |
| 1619 | - | ||
| 1620 | - | // BindToDevice binds the socket associated with fd to device. | |
| 1621 | - | func BindToDevice(fd int, device string) (err error) { | |
| 1622 | - | return SetsockoptString(fd, SOL_SOCKET, SO_BINDTODEVICE, device) | |
| 1623 | - | } | |
| 1624 | - | ||
| 1625 | - | //sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error) | |
| 1626 | - | //sys ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) = SYS_PTRACE | |
| 1627 | - | ||
| 1628 | - | func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err error) { | |
| 1629 | - | // The peek requests are machine-size oriented, so we wrap it | |
| 1630 | - | // to retrieve arbitrary-length data. | |
| 1631 | - | ||
| 1632 | - | // The ptrace syscall differs from glibc's ptrace. | |
| 1633 | - | // Peeks returns the word in *data, not as the return value. | |
| 1634 | - | ||
| 1635 | - | var buf [SizeofPtr]byte | |
| 1636 | - | ||
| 1637 | - | // Leading edge. PEEKTEXT/PEEKDATA don't require aligned | |
| 1638 | - | // access (PEEKUSER warns that it might), but if we don't | |
| 1639 | - | // align our reads, we might straddle an unmapped page | |
| 1640 | - | // boundary and not get the bytes leading up to the page | |
| 1641 | - | // boundary. | |
| 1642 | - | n := 0 | |
| 1643 | - | if addr%SizeofPtr != 0 { | |
| 1644 | - | err = ptracePtr(req, pid, addr-addr%SizeofPtr, unsafe.Pointer(&buf[0])) | |
| 1645 | - | if err != nil { | |
| 1646 | - | return 0, err | |
| 1647 | - | } | |
| 1648 | - | n += copy(out, buf[addr%SizeofPtr:]) | |
| 1649 | - | out = out[n:] | |
| 1650 | - | } | |
| 1651 | - | ||
| 1652 | - | // Remainder. | |
| 1653 | - | for len(out) > 0 { | |
| 1654 | - | // We use an internal buffer to guarantee alignment. | |
| 1655 | - | // It's not documented if this is necessary, but we're paranoid. | |
| 1656 | - | err = ptracePtr(req, pid, addr+uintptr(n), unsafe.Pointer(&buf[0])) | |
| 1657 | - | if err != nil { | |
| 1658 | - | return n, err | |
| 1659 | - | } | |
| 1660 | - | copied := copy(out, buf[0:]) | |
| 1661 | - | n += copied | |
| 1662 | - | out = out[copied:] | |
| 1663 | - | } | |
| 1664 | - | ||
| 1665 | - | return n, nil | |
| 1666 | - | } | |
| 1667 | - | ||
| 1668 | - | func PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error) { | |
| 1669 | - | return ptracePeek(PTRACE_PEEKTEXT, pid, addr, out) | |
| 1670 | - | } | |
| 1671 | - | ||
| 1672 | - | func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) { | |
| 1673 | - | return ptracePeek(PTRACE_PEEKDATA, pid, addr, out) | |
| 1674 | - | } | |
| 1675 | - | ||
| 1676 | - | func PtracePeekUser(pid int, addr uintptr, out []byte) (count int, err error) { | |
| 1677 | - | return ptracePeek(PTRACE_PEEKUSR, pid, addr, out) | |
| 1678 | - | } | |
| 1679 | - | ||
| 1680 | - | func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (count int, err error) { | |
| 1681 | - | // As for ptracePeek, we need to align our accesses to deal | |
| 1682 | - | // with the possibility of straddling an invalid page. | |
| 1683 | - | ||
| 1684 | - | // Leading edge. | |
| 1685 | - | n := 0 | |
| 1686 | - | if addr%SizeofPtr != 0 { | |
| 1687 | - | var buf [SizeofPtr]byte | |
| 1688 | - | err = ptracePtr(peekReq, pid, addr-addr%SizeofPtr, unsafe.Pointer(&buf[0])) | |
| 1689 | - | if err != nil { | |
| 1690 | - | return 0, err | |
| 1691 | - | } | |
| 1692 | - | n += copy(buf[addr%SizeofPtr:], data) | |
| 1693 | - | word := *((*uintptr)(unsafe.Pointer(&buf[0]))) | |
| 1694 | - | err = ptrace(pokeReq, pid, addr-addr%SizeofPtr, word) | |
| 1695 | - | if err != nil { | |
| 1696 | - | return 0, err | |
| 1697 | - | } | |
| 1698 | - | data = data[n:] | |
| 1699 | - | } | |
| 1700 | - | ||
| 1701 | - | // Interior. | |
| 1702 | - | for len(data) > SizeofPtr { | |
| 1703 | - | word := *((*uintptr)(unsafe.Pointer(&data[0]))) | |
| 1704 | - | err = ptrace(pokeReq, pid, addr+uintptr(n), word) | |
| 1705 | - | if err != nil { | |
| 1706 | - | return n, err | |
| 1707 | - | } | |
| 1708 | - | n += SizeofPtr | |
| 1709 | - | data = data[SizeofPtr:] | |
| 1710 | - | } | |
| 1711 | - | ||
| 1712 | - | // Trailing edge. | |
| 1713 | - | if len(data) > 0 { | |
| 1714 | - | var buf [SizeofPtr]byte | |
| 1715 | - | err = ptracePtr(peekReq, pid, addr+uintptr(n), unsafe.Pointer(&buf[0])) | |
| 1716 | - | if err != nil { | |
| 1717 | - | return n, err | |
| 1718 | - | } | |
| 1719 | - | copy(buf[0:], data) | |
| 1720 | - | word := *((*uintptr)(unsafe.Pointer(&buf[0]))) | |
| 1721 | - | err = ptrace(pokeReq, pid, addr+uintptr(n), word) | |
| 1722 | - | if err != nil { | |
| 1723 | - | return n, err | |
| 1724 | - | } | |
| 1725 | - | n += len(data) | |
| 1726 | - | } | |
| 1727 | - | ||
| 1728 | - | return n, nil | |
| 1729 | - | } | |
| 1730 | - | ||
| 1731 | - | func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error) { | |
| 1732 | - | return ptracePoke(PTRACE_POKETEXT, PTRACE_PEEKTEXT, pid, addr, data) | |
| 1733 | - | } | |
| 1734 | - | ||
| 1735 | - | func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error) { | |
| 1736 | - | return ptracePoke(PTRACE_POKEDATA, PTRACE_PEEKDATA, pid, addr, data) | |
| 1737 | - | } | |
| 1738 | - | ||
| 1739 | - | func PtracePokeUser(pid int, addr uintptr, data []byte) (count int, err error) { | |
| 1740 | - | return ptracePoke(PTRACE_POKEUSR, PTRACE_PEEKUSR, pid, addr, data) | |
| 1741 | - | } | |
| 1742 | - | ||
| 1743 | - | // elfNT_PRSTATUS is a copy of the debug/elf.NT_PRSTATUS constant so | |
| 1744 | - | // x/sys/unix doesn't need to depend on debug/elf and thus | |
| 1745 | - | // compress/zlib, debug/dwarf, and other packages. | |
| 1746 | - | const elfNT_PRSTATUS = 1 | |
| 1747 | - | ||
| 1748 | - | func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) { | |
| 1749 | - | var iov Iovec | |
| 1750 | - | iov.Base = (*byte)(unsafe.Pointer(regsout)) | |
| 1751 | - | iov.SetLen(int(unsafe.Sizeof(*regsout))) | |
| 1752 | - | return ptracePtr(PTRACE_GETREGSET, pid, uintptr(elfNT_PRSTATUS), unsafe.Pointer(&iov)) | |
| 1753 | - | } | |
| 1754 | - | ||
| 1755 | - | func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) { | |
| 1756 | - | var iov Iovec | |
| 1757 | - | iov.Base = (*byte)(unsafe.Pointer(regs)) | |
| 1758 | - | iov.SetLen(int(unsafe.Sizeof(*regs))) | |
| 1759 | - | return ptracePtr(PTRACE_SETREGSET, pid, uintptr(elfNT_PRSTATUS), unsafe.Pointer(&iov)) | |
| 1760 | - | } | |
| 1761 | - | ||
| 1762 | - | func PtraceSetOptions(pid int, options int) (err error) { | |
| 1763 | - | return ptrace(PTRACE_SETOPTIONS, pid, 0, uintptr(options)) | |
| 1764 | - | } | |
| 1765 | - | ||
| 1766 | - | func PtraceGetEventMsg(pid int) (msg uint, err error) { | |
| 1767 | - | var data _C_long | |
| 1768 | - | err = ptracePtr(PTRACE_GETEVENTMSG, pid, 0, unsafe.Pointer(&data)) | |
| 1769 | - | msg = uint(data) | |
| 1770 | - | return | |
| 1771 | - | } | |
| 1772 | - | ||
| 1773 | - | func PtraceCont(pid int, signal int) (err error) { | |
| 1774 | - | return ptrace(PTRACE_CONT, pid, 0, uintptr(signal)) | |
| 1775 | - | } | |
| 1776 | - | ||
| 1777 | - | func PtraceSyscall(pid int, signal int) (err error) { | |
| 1778 | - | return ptrace(PTRACE_SYSCALL, pid, 0, uintptr(signal)) | |
| 1779 | - | } | |
| 1780 | - | ||
| 1781 | - | func PtraceSingleStep(pid int) (err error) { return ptrace(PTRACE_SINGLESTEP, pid, 0, 0) } | |
| 1782 | - | ||
| 1783 | - | func PtraceInterrupt(pid int) (err error) { return ptrace(PTRACE_INTERRUPT, pid, 0, 0) } | |
| 1784 | - | ||
| 1785 | - | func PtraceAttach(pid int) (err error) { return ptrace(PTRACE_ATTACH, pid, 0, 0) } | |
| 1786 | - | ||
| 1787 | - | func PtraceSeize(pid int) (err error) { return ptrace(PTRACE_SEIZE, pid, 0, 0) } | |
| 1788 | - | ||
| 1789 | - | func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0) } | |
| 1790 | - | ||
| 1791 | - | //sys reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) | |
| 1792 | - | ||
| 1793 | - | func Reboot(cmd int) (err error) { | |
| 1794 | - | return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "") | |
| 1795 | - | } | |
| 1796 | - | ||
| 1797 | - | func direntIno(buf []byte) (uint64, bool) { | |
| 1798 | - | return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino)) | |
| 1799 | - | } | |
| 1800 | - | ||
| 1801 | - | func direntReclen(buf []byte) (uint64, bool) { | |
| 1802 | - | return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) | |
| 1803 | - | } | |
| 1804 | - | ||
| 1805 | - | func direntNamlen(buf []byte) (uint64, bool) { | |
| 1806 | - | reclen, ok := direntReclen(buf) | |
| 1807 | - | if !ok { | |
| 1808 | - | return 0, false | |
| 1809 | - | } | |
| 1810 | - | return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true | |
| 1811 | - | } | |
| 1812 | - | ||
| 1813 | - | //sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) | |
| 1814 | - | ||
| 1815 | - | func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) { | |
| 1816 | - | // Certain file systems get rather angry and EINVAL if you give | |
| 1817 | - | // them an empty string of data, rather than NULL. | |
| 1818 | - | if data == "" { | |
| 1819 | - | return mount(source, target, fstype, flags, nil) | |
| 1820 | - | } | |
| 1821 | - | datap, err := BytePtrFromString(data) | |
| 1822 | - | if err != nil { | |
| 1823 | - | return err | |
| 1824 | - | } | |
| 1825 | - | return mount(source, target, fstype, flags, datap) | |
| 1826 | - | } | |
| 1827 | - | ||
| 1828 | - | //sys mountSetattr(dirfd int, pathname string, flags uint, attr *MountAttr, size uintptr) (err error) = SYS_MOUNT_SETATTR | |
| 1829 | - | ||
| 1830 | - | // MountSetattr is a wrapper for mount_setattr(2). | |
| 1831 | - | // https://man7.org/linux/man-pages/man2/mount_setattr.2.html | |
| 1832 | - | // | |
| 1833 | - | // Requires kernel >= 5.12. | |
| 1834 | - | func MountSetattr(dirfd int, pathname string, flags uint, attr *MountAttr) error { | |
| 1835 | - | return mountSetattr(dirfd, pathname, flags, attr, unsafe.Sizeof(*attr)) | |
| 1836 | - | } | |
| 1837 | - | ||
| 1838 | - | func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { | |
| 1839 | - | if raceenabled { | |
| 1840 | - | raceReleaseMerge(unsafe.Pointer(&ioSync)) | |
| 1841 | - | } | |
| 1842 | - | return sendfile(outfd, infd, offset, count) | |
| 1843 | - | } | |
| 1844 | - | ||
| 1845 | - | // Sendto | |
| 1846 | - | // Recvfrom | |
| 1847 | - | // Socketpair | |
| 1848 | - | ||
| 1849 | - | /* | |
| 1850 | - | * Direct access | |
| 1851 | - | */ | |
| 1852 | - | //sys Acct(path string) (err error) | |
| 1853 | - | //sys AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) | |
| 1854 | - | //sys Adjtimex(buf *Timex) (state int, err error) | |
| 1855 | - | //sysnb Capget(hdr *CapUserHeader, data *CapUserData) (err error) | |
| 1856 | - | //sysnb Capset(hdr *CapUserHeader, data *CapUserData) (err error) | |
| 1857 | - | //sys Chdir(path string) (err error) | |
| 1858 | - | //sys Chroot(path string) (err error) | |
| 1859 | - | //sys ClockAdjtime(clockid int32, buf *Timex) (state int, err error) | |
| 1860 | - | //sys ClockGetres(clockid int32, res *Timespec) (err error) | |
| 1861 | - | //sys ClockGettime(clockid int32, time *Timespec) (err error) | |
| 1862 | - | //sys ClockSettime(clockid int32, time *Timespec) (err error) | |
| 1863 | - | //sys ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) | |
| 1864 | - | //sys Close(fd int) (err error) | |
| 1865 | - | //sys CloseRange(first uint, last uint, flags uint) (err error) | |
| 1866 | - | //sys CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) | |
| 1867 | - | //sys DeleteModule(name string, flags int) (err error) | |
| 1868 | - | //sys Dup(oldfd int) (fd int, err error) | |
| 1869 | - | ||
| 1870 | - | func Dup2(oldfd, newfd int) error { | |
| 1871 | - | return Dup3(oldfd, newfd, 0) | |
| 1872 | - | } | |
| 1873 | - | ||
| 1874 | - | //sys Dup3(oldfd int, newfd int, flags int) (err error) | |
| 1875 | - | //sysnb EpollCreate1(flag int) (fd int, err error) | |
| 1876 | - | //sysnb EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) | |
| 1877 | - | //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT | |
| 1878 | - | //sys Eventfd(initval uint, flags int) (fd int, err error) = SYS_EVENTFD2 | |
| 1879 | - | //sys Exit(code int) = SYS_EXIT_GROUP | |
| 1880 | - | //sys Fallocate(fd int, mode uint32, off int64, len int64) (err error) | |
| 1881 | - | //sys Fchdir(fd int) (err error) | |
| 1882 | - | //sys Fchmod(fd int, mode uint32) (err error) | |
| 1883 | - | //sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) | |
| 1884 | - | //sys Fdatasync(fd int) (err error) | |
| 1885 | - | //sys Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) | |
| 1886 | - | //sys FinitModule(fd int, params string, flags int) (err error) | |
| 1887 | - | //sys Flistxattr(fd int, dest []byte) (sz int, err error) | |
| 1888 | - | //sys Flock(fd int, how int) (err error) | |
| 1889 | - | //sys Fremovexattr(fd int, attr string) (err error) | |
| 1890 | - | //sys Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) | |
| 1891 | - | //sys Fsync(fd int) (err error) | |
| 1892 | - | //sys Fsmount(fd int, flags int, mountAttrs int) (fsfd int, err error) | |
| 1893 | - | //sys Fsopen(fsName string, flags int) (fd int, err error) | |
| 1894 | - | //sys Fspick(dirfd int, pathName string, flags int) (fd int, err error) | |
| 1895 | - | ||
| 1896 | - | //sys fsconfig(fd int, cmd uint, key *byte, value *byte, aux int) (err error) | |
| 1897 | - | ||
| 1898 | - | func fsconfigCommon(fd int, cmd uint, key string, value *byte, aux int) (err error) { | |
| 1899 | - | var keyp *byte | |
| 1900 | - | if keyp, err = BytePtrFromString(key); err != nil { | |
| 1901 | - | return | |
| 1902 | - | } | |
| 1903 | - | return fsconfig(fd, cmd, keyp, value, aux) | |
| 1904 | - | } | |
| 1905 | - | ||
| 1906 | - | // FsconfigSetFlag is equivalent to fsconfig(2) called | |
| 1907 | - | // with cmd == FSCONFIG_SET_FLAG. | |
| 1908 | - | // | |
| 1909 | - | // fd is the filesystem context to act upon. | |
| 1910 | - | // key the parameter key to set. | |
| 1911 | - | func FsconfigSetFlag(fd int, key string) (err error) { | |
| 1912 | - | return fsconfigCommon(fd, FSCONFIG_SET_FLAG, key, nil, 0) | |
| 1913 | - | } | |
| 1914 | - | ||
| 1915 | - | // FsconfigSetString is equivalent to fsconfig(2) called | |
| 1916 | - | // with cmd == FSCONFIG_SET_STRING. | |
| 1917 | - | // | |
| 1918 | - | // fd is the filesystem context to act upon. | |
| 1919 | - | // key the parameter key to set. | |
| 1920 | - | // value is the parameter value to set. | |
| 1921 | - | func FsconfigSetString(fd int, key string, value string) (err error) { | |
| 1922 | - | var valuep *byte | |
| 1923 | - | if valuep, err = BytePtrFromString(value); err != nil { | |
| 1924 | - | return | |
| 1925 | - | } | |
| 1926 | - | return fsconfigCommon(fd, FSCONFIG_SET_STRING, key, valuep, 0) | |
| 1927 | - | } | |
| 1928 | - | ||
| 1929 | - | // FsconfigSetBinary is equivalent to fsconfig(2) called | |
| 1930 | - | // with cmd == FSCONFIG_SET_BINARY. | |
| 1931 | - | // | |
| 1932 | - | // fd is the filesystem context to act upon. | |
| 1933 | - | // key the parameter key to set. | |
| 1934 | - | // value is the parameter value to set. | |
| 1935 | - | func FsconfigSetBinary(fd int, key string, value []byte) (err error) { | |
| 1936 | - | if len(value) == 0 { | |
| 1937 | - | return EINVAL | |
| 1938 | - | } | |
| 1939 | - | return fsconfigCommon(fd, FSCONFIG_SET_BINARY, key, &value[0], len(value)) | |
| 1940 | - | } | |
| 1941 | - | ||
| 1942 | - | // FsconfigSetPath is equivalent to fsconfig(2) called | |
| 1943 | - | // with cmd == FSCONFIG_SET_PATH. | |
| 1944 | - | // | |
| 1945 | - | // fd is the filesystem context to act upon. | |
| 1946 | - | // key the parameter key to set. | |
| 1947 | - | // path is a non-empty path for specified key. | |
| 1948 | - | // atfd is a file descriptor at which to start lookup from or AT_FDCWD. | |
| 1949 | - | func FsconfigSetPath(fd int, key string, path string, atfd int) (err error) { | |
| 1950 | - | var valuep *byte | |
| 1951 | - | if valuep, err = BytePtrFromString(path); err != nil { | |
| 1952 | - | return | |
| 1953 | - | } | |
| 1954 | - | return fsconfigCommon(fd, FSCONFIG_SET_PATH, key, valuep, atfd) | |
| 1955 | - | } | |
| 1956 | - | ||
| 1957 | - | // FsconfigSetPathEmpty is equivalent to fsconfig(2) called | |
| 1958 | - | // with cmd == FSCONFIG_SET_PATH_EMPTY. The same as | |
| 1959 | - | // FconfigSetPath but with AT_PATH_EMPTY implied. | |
| 1960 | - | func FsconfigSetPathEmpty(fd int, key string, path string, atfd int) (err error) { | |
| 1961 | - | var valuep *byte | |
| 1962 | - | if valuep, err = BytePtrFromString(path); err != nil { | |
| 1963 | - | return | |
| 1964 | - | } | |
| 1965 | - | return fsconfigCommon(fd, FSCONFIG_SET_PATH_EMPTY, key, valuep, atfd) | |
| 1966 | - | } | |
| 1967 | - | ||
| 1968 | - | // FsconfigSetFd is equivalent to fsconfig(2) called | |
| 1969 | - | // with cmd == FSCONFIG_SET_FD. | |
| 1970 | - | // | |
| 1971 | - | // fd is the filesystem context to act upon. | |
| 1972 | - | // key the parameter key to set. | |
| 1973 | - | // value is a file descriptor to be assigned to specified key. | |
| 1974 | - | func FsconfigSetFd(fd int, key string, value int) (err error) { | |
| 1975 | - | return fsconfigCommon(fd, FSCONFIG_SET_FD, key, nil, value) | |
| 1976 | - | } | |
| 1977 | - | ||
| 1978 | - | // FsconfigCreate is equivalent to fsconfig(2) called | |
| 1979 | - | // with cmd == FSCONFIG_CMD_CREATE. | |
| 1980 | - | // | |
| 1981 | - | // fd is the filesystem context to act upon. | |
| 1982 | - | func FsconfigCreate(fd int) (err error) { | |
| 1983 | - | return fsconfig(fd, FSCONFIG_CMD_CREATE, nil, nil, 0) | |
| 1984 | - | } | |
| 1985 | - | ||
| 1986 | - | // FsconfigReconfigure is equivalent to fsconfig(2) called | |
| 1987 | - | // with cmd == FSCONFIG_CMD_RECONFIGURE. | |
| 1988 | - | // | |
| 1989 | - | // fd is the filesystem context to act upon. | |
| 1990 | - | func FsconfigReconfigure(fd int) (err error) { | |
| 1991 | - | return fsconfig(fd, FSCONFIG_CMD_RECONFIGURE, nil, nil, 0) | |
| 1992 | - | } | |
| 1993 | - | ||
| 1994 | - | //sys Getdents(fd int, buf []byte) (n int, err error) = SYS_GETDENTS64 | |
| 1995 | - | //sysnb Getpgid(pid int) (pgid int, err error) | |
| 1996 | - | ||
| 1997 | - | func Getpgrp() (pid int) { | |
| 1998 | - | pid, _ = Getpgid(0) | |
| 1999 | - | return | |
| 2000 | - | } | |
| 2001 | - | ||
| 2002 | - | //sysnb Getpid() (pid int) | |
| 2003 | - | //sysnb Getppid() (ppid int) | |
| 2004 | - | //sys Getpriority(which int, who int) (prio int, err error) | |
| 2005 | - | ||
| 2006 | - | func Getrandom(buf []byte, flags int) (n int, err error) { | |
| 2007 | - | vdsoRet, supported := vgetrandom(buf, uint32(flags)) | |
| 2008 | - | if supported { | |
| 2009 | - | if vdsoRet < 0 { | |
| 2010 | - | return 0, errnoErr(syscall.Errno(-vdsoRet)) | |
| 2011 | - | } | |
| 2012 | - | return vdsoRet, nil | |
| 2013 | - | } | |
| 2014 | - | var p *byte | |
| 2015 | - | if len(buf) > 0 { | |
| 2016 | - | p = &buf[0] | |
| 2017 | - | } | |
| 2018 | - | r, _, e := Syscall(SYS_GETRANDOM, uintptr(unsafe.Pointer(p)), uintptr(len(buf)), uintptr(flags)) | |
| 2019 | - | if e != 0 { | |
| 2020 | - | return 0, errnoErr(e) | |
| 2021 | - | } | |
| 2022 | - | return int(r), nil | |
| 2023 | - | } | |
| 2024 | - | ||
| 2025 | - | //sysnb Getrusage(who int, rusage *Rusage) (err error) | |
| 2026 | - | //sysnb Getsid(pid int) (sid int, err error) | |
| 2027 | - | //sysnb Gettid() (tid int) | |
| 2028 | - | //sys Getxattr(path string, attr string, dest []byte) (sz int, err error) | |
| 2029 | - | //sys InitModule(moduleImage []byte, params string) (err error) | |
| 2030 | - | //sys InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) | |
| 2031 | - | //sysnb InotifyInit1(flags int) (fd int, err error) | |
| 2032 | - | //sysnb InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) | |
| 2033 | - | //sysnb Kill(pid int, sig syscall.Signal) (err error) | |
| 2034 | - | //sys Klogctl(typ int, buf []byte) (n int, err error) = SYS_SYSLOG | |
| 2035 | - | //sys Lgetxattr(path string, attr string, dest []byte) (sz int, err error) | |
| 2036 | - | //sys Listxattr(path string, dest []byte) (sz int, err error) | |
| 2037 | - | //sys Llistxattr(path string, dest []byte) (sz int, err error) | |
| 2038 | - | //sys Lremovexattr(path string, attr string) (err error) | |
| 2039 | - | //sys Lsetxattr(path string, attr string, data []byte, flags int) (err error) | |
| 2040 | - | //sys MemfdCreate(name string, flags int) (fd int, err error) | |
| 2041 | - | //sys Mkdirat(dirfd int, path string, mode uint32) (err error) | |
| 2042 | - | //sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error) | |
| 2043 | - | //sys MoveMount(fromDirfd int, fromPathName string, toDirfd int, toPathName string, flags int) (err error) | |
| 2044 | - | //sys Nanosleep(time *Timespec, leftover *Timespec) (err error) | |
| 2045 | - | //sys OpenTree(dfd int, fileName string, flags uint) (r int, err error) | |
| 2046 | - | //sys PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) | |
| 2047 | - | //sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT | |
| 2048 | - | //sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) | |
| 2049 | - | //sys pselect6(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *sigset_argpack) (n int, err error) | |
| 2050 | - | //sys read(fd int, p []byte) (n int, err error) | |
| 2051 | - | //sys Removexattr(path string, attr string) (err error) | |
| 2052 | - | //sys Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) | |
| 2053 | - | //sys RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) | |
| 2054 | - | //sys Setdomainname(p []byte) (err error) | |
| 2055 | - | //sys Sethostname(p []byte) (err error) | |
| 2056 | - | //sysnb Setpgid(pid int, pgid int) (err error) | |
| 2057 | - | //sysnb Setsid() (pid int, err error) | |
| 2058 | - | //sysnb Settimeofday(tv *Timeval) (err error) | |
| 2059 | - | //sys Setns(fd int, nstype int) (err error) | |
| 2060 | - | ||
| 2061 | - | //go:linkname syscall_prlimit syscall.prlimit | |
| 2062 | - | func syscall_prlimit(pid, resource int, newlimit, old *syscall.Rlimit) error | |
| 2063 | - | ||
| 2064 | - | func Prlimit(pid, resource int, newlimit, old *Rlimit) error { | |
| 2065 | - | // Just call the syscall version, because as of Go 1.21 | |
| 2066 | - | // it will affect starting a new process. | |
| 2067 | - | return syscall_prlimit(pid, resource, (*syscall.Rlimit)(newlimit), (*syscall.Rlimit)(old)) | |
| 2068 | - | } | |
| 2069 | - | ||
| 2070 | - | // PrctlRetInt performs a prctl operation specified by option and further | |
| 2071 | - | // optional arguments arg2 through arg5 depending on option. It returns a | |
| 2072 | - | // non-negative integer that is returned by the prctl syscall. | |
| 2073 | - | func PrctlRetInt(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (int, error) { | |
| 2074 | - | ret, _, err := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) | |
| 2075 | - | if err != 0 { | |
| 2076 | - | return 0, err | |
| 2077 | - | } | |
| 2078 | - | return int(ret), nil | |
| 2079 | - | } | |
| 2080 | - | ||
| 2081 | - | func Setuid(uid int) (err error) { | |
| 2082 | - | return syscall.Setuid(uid) | |
| 2083 | - | } | |
| 2084 | - | ||
| 2085 | - | func Setgid(gid int) (err error) { | |
| 2086 | - | return syscall.Setgid(gid) | |
| 2087 | - | } | |
| 2088 | - | ||
| 2089 | - | func Setreuid(ruid, euid int) (err error) { | |
| 2090 | - | return syscall.Setreuid(ruid, euid) | |
| 2091 | - | } | |
| 2092 | - | ||
| 2093 | - | func Setregid(rgid, egid int) (err error) { | |
| 2094 | - | return syscall.Setregid(rgid, egid) | |
| 2095 | - | } | |
| 2096 | - | ||
| 2097 | - | func Setresuid(ruid, euid, suid int) (err error) { | |
| 2098 | - | return syscall.Setresuid(ruid, euid, suid) | |
| 2099 | - | } | |
| 2100 | - | ||
| 2101 | - | func Setresgid(rgid, egid, sgid int) (err error) { | |
| 2102 | - | return syscall.Setresgid(rgid, egid, sgid) | |
| 2103 | - | } | |
| 2104 | - | ||
| 2105 | - | // SetfsgidRetGid sets fsgid for current thread and returns previous fsgid set. | |
| 2106 | - | // setfsgid(2) will return a non-nil error only if its caller lacks CAP_SETUID capability. | |
| 2107 | - | // If the call fails due to other reasons, current fsgid will be returned. | |
| 2108 | - | func SetfsgidRetGid(gid int) (int, error) { | |
| 2109 | - | return setfsgid(gid) | |
| 2110 | - | } | |
| 2111 | - | ||
| 2112 | - | // SetfsuidRetUid sets fsuid for current thread and returns previous fsuid set. | |
| 2113 | - | // setfsgid(2) will return a non-nil error only if its caller lacks CAP_SETUID capability | |
| 2114 | - | // If the call fails due to other reasons, current fsuid will be returned. | |
| 2115 | - | func SetfsuidRetUid(uid int) (int, error) { | |
| 2116 | - | return setfsuid(uid) | |
| 2117 | - | } | |
| 2118 | - | ||
| 2119 | - | func Setfsgid(gid int) error { | |
| 2120 | - | _, err := setfsgid(gid) | |
| 2121 | - | return err | |
| 2122 | - | } | |
| 2123 | - | ||
| 2124 | - | func Setfsuid(uid int) error { | |
| 2125 | - | _, err := setfsuid(uid) | |
| 2126 | - | return err | |
| 2127 | - | } | |
| 2128 | - | ||
| 2129 | - | func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) { | |
| 2130 | - | return signalfd(fd, sigmask, _C__NSIG/8, flags) | |
| 2131 | - | } | |
| 2132 | - | ||
| 2133 | - | //sys Setpriority(which int, who int, prio int) (err error) | |
| 2134 | - | //sys Setxattr(path string, attr string, data []byte, flags int) (err error) | |
| 2135 | - | //sys signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) = SYS_SIGNALFD4 | |
| 2136 | - | //sys Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) | |
| 2137 | - | //sys Sync() | |
| 2138 | - | //sys Syncfs(fd int) (err error) | |
| 2139 | - | //sysnb Sysinfo(info *Sysinfo_t) (err error) | |
| 2140 | - | //sys Tee(rfd int, wfd int, len int, flags int) (n int64, err error) | |
| 2141 | - | //sysnb TimerfdCreate(clockid int, flags int) (fd int, err error) | |
| 2142 | - | //sysnb TimerfdGettime(fd int, currValue *ItimerSpec) (err error) | |
| 2143 | - | //sysnb TimerfdSettime(fd int, flags int, newValue *ItimerSpec, oldValue *ItimerSpec) (err error) | |
| 2144 | - | //sysnb Tgkill(tgid int, tid int, sig syscall.Signal) (err error) | |
| 2145 | - | //sysnb Times(tms *Tms) (ticks uintptr, err error) | |
| 2146 | - | //sysnb Umask(mask int) (oldmask int) | |
| 2147 | - | //sysnb Uname(buf *Utsname) (err error) | |
| 2148 | - | //sys Unmount(target string, flags int) (err error) = SYS_UMOUNT2 | |
| 2149 | - | //sys Unshare(flags int) (err error) | |
| 2150 | - | //sys write(fd int, p []byte) (n int, err error) | |
| 2151 | - | //sys exitThread(code int) (err error) = SYS_EXIT | |
| 2152 | - | //sys readv(fd int, iovs []Iovec) (n int, err error) = SYS_READV | |
| 2153 | - | //sys writev(fd int, iovs []Iovec) (n int, err error) = SYS_WRITEV | |
| 2154 | - | //sys preadvSyscall(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) = SYS_PREADV | |
| 2155 | - | //sys pwritevSyscall(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) = SYS_PWRITEV | |
| 2156 | - | //sys preadv2Syscall(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PREADV2 | |
| 2157 | - | //sys pwritev2Syscall(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PWRITEV2 | |
| 2158 | - | ||
| 2159 | - | // offs2lohi splits offs into its low and high order bits. | |
| 2160 | - | func offs2lohi(offs int64) (lo, hi uintptr) { | |
| 2161 | - | const longBits = SizeofLong * 8 | |
| 2162 | - | return uintptr(offs), uintptr(uint64(offs) >> (longBits - 1) >> 1) // two shifts to avoid false positive in vet | |
| 2163 | - | } | |
| 2164 | - | ||
| 2165 | - | func preadv(fd int, iovecs []Iovec, offset int64) (n int, err error) { | |
| 2166 | - | lo, hi := offs2lohi(offset) | |
| 2167 | - | return preadvSyscall(fd, iovecs, lo, hi) | |
| 2168 | - | } | |
| 2169 | - | ||
| 2170 | - | func Preadv2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) { | |
| 2171 | - | iovecs := make([]Iovec, 0, minIovec) | |
| 2172 | - | iovecs = appendBytes(iovecs, iovs) | |
| 2173 | - | lo, hi := offs2lohi(offset) | |
| 2174 | - | n, err = preadv2Syscall(fd, iovecs, lo, hi, flags) | |
| 2175 | - | readvRaceDetect(iovecs, n, err) | |
| 2176 | - | return n, err | |
| 2177 | - | } | |
| 2178 | - | ||
| 2179 | - | func pwritev(fd int, iovecs []Iovec, offset int64) (n int, err error) { | |
| 2180 | - | lo, hi := offs2lohi(offset) | |
| 2181 | - | return pwritevSyscall(fd, iovecs, lo, hi) | |
| 2182 | - | } | |
| 2183 | - | ||
| 2184 | - | func Pwritev2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) { | |
| 2185 | - | iovecs := make([]Iovec, 0, minIovec) | |
| 2186 | - | iovecs = appendBytes(iovecs, iovs) | |
| 2187 | - | if raceenabled { | |
| 2188 | - | raceReleaseMerge(unsafe.Pointer(&ioSync)) | |
| 2189 | - | } | |
| 2190 | - | lo, hi := offs2lohi(offset) | |
| 2191 | - | n, err = pwritev2Syscall(fd, iovecs, lo, hi, flags) | |
| 2192 | - | writevRaceDetect(iovecs, n) | |
| 2193 | - | return n, err | |
| 2194 | - | } | |
| 2195 | - | ||
| 2196 | - | // mmap varies by architecture; see syscall_linux_*.go. | |
| 2197 | - | //sys munmap(addr uintptr, length uintptr) (err error) | |
| 2198 | - | //sys mremap(oldaddr uintptr, oldlength uintptr, newlength uintptr, flags int, newaddr uintptr) (xaddr uintptr, err error) | |
| 2199 | - | //sys Madvise(b []byte, advice int) (err error) | |
| 2200 | - | //sys Mprotect(b []byte, prot int) (err error) | |
| 2201 | - | //sys Mlock(b []byte) (err error) | |
| 2202 | - | //sys Mlockall(flags int) (err error) | |
| 2203 | - | //sys Msync(b []byte, flags int) (err error) | |
| 2204 | - | //sys Munlock(b []byte) (err error) | |
| 2205 | - | //sys Munlockall() (err error) | |
| 2206 | - | ||
| 2207 | - | const ( | |
| 2208 | - | mremapFixed = MREMAP_FIXED | |
| 2209 | - | mremapDontunmap = MREMAP_DONTUNMAP | |
| 2210 | - | mremapMaymove = MREMAP_MAYMOVE | |
| 2211 | - | ) | |
| 2212 | - | ||
| 2213 | - | // Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd, | |
| 2214 | - | // using the specified flags. | |
| 2215 | - | func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) { | |
| 2216 | - | var p unsafe.Pointer | |
| 2217 | - | if len(iovs) > 0 { | |
| 2218 | - | p = unsafe.Pointer(&iovs[0]) | |
| 2219 | - | } | |
| 2220 | - | ||
| 2221 | - | n, _, errno := Syscall6(SYS_VMSPLICE, uintptr(fd), uintptr(p), uintptr(len(iovs)), uintptr(flags), 0, 0) | |
| 2222 | - | if errno != 0 { | |
| 2223 | - | return 0, syscall.Errno(errno) | |
| 2224 | - | } | |
| 2225 | - | ||
| 2226 | - | return int(n), nil | |
| 2227 | - | } | |
| 2228 | - | ||
| 2229 | - | func isGroupMember(gid int) bool { | |
| 2230 | - | groups, err := Getgroups() | |
| 2231 | - | if err != nil { | |
| 2232 | - | return false | |
| 2233 | - | } | |
| 2234 | - | ||
| 2235 | - | return slices.Contains(groups, gid) | |
| 2236 | - | } | |
| 2237 | - | ||
| 2238 | - | func isCapDacOverrideSet() bool { | |
| 2239 | - | hdr := CapUserHeader{Version: LINUX_CAPABILITY_VERSION_3} | |
| 2240 | - | data := [2]CapUserData{} | |
| 2241 | - | err := Capget(&hdr, &data[0]) | |
| 2242 | - | ||
| 2243 | - | return err == nil && data[0].Effective&(1<<CAP_DAC_OVERRIDE) != 0 | |
| 2244 | - | } | |
| 2245 | - | ||
| 2246 | - | //sys faccessat(dirfd int, path string, mode uint32) (err error) | |
| 2247 | - | //sys Faccessat2(dirfd int, path string, mode uint32, flags int) (err error) | |
| 2248 | - | ||
| 2249 | - | func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { | |
| 2250 | - | if flags == 0 { | |
| 2251 | - | return faccessat(dirfd, path, mode) | |
| 2252 | - | } | |
| 2253 | - | ||
| 2254 | - | if err := Faccessat2(dirfd, path, mode, flags); err != ENOSYS && err != EPERM { | |
| 2255 | - | return err | |
| 2256 | - | } | |
| 2257 | - | ||
| 2258 | - | // The Linux kernel faccessat system call does not take any flags. | |
| 2259 | - | // The glibc faccessat implements the flags itself; see | |
| 2260 | - | // https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/faccessat.c;hb=HEAD | |
| 2261 | - | // Because people naturally expect syscall.Faccessat to act | |
| 2262 | - | // like C faccessat, we do the same. | |
| 2263 | - | ||
| 2264 | - | if flags & ^(AT_SYMLINK_NOFOLLOW|AT_EACCESS) != 0 { | |
| 2265 | - | return EINVAL | |
| 2266 | - | } | |
| 2267 | - | ||
| 2268 | - | var st Stat_t | |
| 2269 | - | if err := Fstatat(dirfd, path, &st, flags&AT_SYMLINK_NOFOLLOW); err != nil { | |
| 2270 | - | return err | |
| 2271 | - | } | |
| 2272 | - | ||
| 2273 | - | mode &= 7 | |
| 2274 | - | if mode == 0 { | |
| 2275 | - | return nil | |
| 2276 | - | } | |
| 2277 | - | ||
| 2278 | - | var uid int | |
| 2279 | - | if flags&AT_EACCESS != 0 { | |
| 2280 | - | uid = Geteuid() | |
| 2281 | - | if uid != 0 && isCapDacOverrideSet() { | |
| 2282 | - | // If CAP_DAC_OVERRIDE is set, file access check is | |
| 2283 | - | // done by the kernel in the same way as for root | |
| 2284 | - | // (see generic_permission() in the Linux sources). | |
| 2285 | - | uid = 0 | |
| 2286 | - | } | |
| 2287 | - | } else { | |
| 2288 | - | uid = Getuid() | |
| 2289 | - | } | |
| 2290 | - | ||
| 2291 | - | if uid == 0 { | |
| 2292 | - | if mode&1 == 0 { | |
| 2293 | - | // Root can read and write any file. | |
| 2294 | - | return nil | |
| 2295 | - | } | |
| 2296 | - | if st.Mode&0111 != 0 { | |
| 2297 | - | // Root can execute any file that anybody can execute. | |
| 2298 | - | return nil | |
| 2299 | - | } | |
| 2300 | - | return EACCES | |
| 2301 | - | } | |
| 2302 | - | ||
| 2303 | - | var fmode uint32 | |
| 2304 | - | if uint32(uid) == st.Uid { | |
| 2305 | - | fmode = (st.Mode >> 6) & 7 | |
| 2306 | - | } else { | |
| 2307 | - | var gid int | |
| 2308 | - | if flags&AT_EACCESS != 0 { | |
| 2309 | - | gid = Getegid() | |
| 2310 | - | } else { | |
| 2311 | - | gid = Getgid() | |
| 2312 | - | } | |
| 2313 | - | ||
| 2314 | - | if uint32(gid) == st.Gid || isGroupMember(int(st.Gid)) { | |
| 2315 | - | fmode = (st.Mode >> 3) & 7 | |
| 2316 | - | } else { | |
| 2317 | - | fmode = st.Mode & 7 | |
| 2318 | - | } | |
| 2319 | - | } | |
| 2320 | - | ||
| 2321 | - | if fmode&mode == mode { | |
| 2322 | - | return nil | |
| 2323 | - | } | |
| 2324 | - | ||
| 2325 | - | return EACCES | |
| 2326 | - | } | |
| 2327 | - | ||
| 2328 | - | //sys nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) = SYS_NAME_TO_HANDLE_AT | |
| 2329 | - | //sys openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) = SYS_OPEN_BY_HANDLE_AT | |
| 2330 | - | ||
| 2331 | - | // fileHandle is the argument to nameToHandleAt and openByHandleAt. We | |
| 2332 | - | // originally tried to generate it via unix/linux/types.go with "type | |
| 2333 | - | // fileHandle C.struct_file_handle" but that generated empty structs | |
| 2334 | - | // for mips64 and mips64le. Instead, hard code it for now (it's the | |
| 2335 | - | // same everywhere else) until the mips64 generator issue is fixed. | |
| 2336 | - | type fileHandle struct { | |
| 2337 | - | Bytes uint32 | |
| 2338 | - | Type int32 | |
| 2339 | - | } | |
| 2340 | - | ||
| 2341 | - | // FileHandle represents the C struct file_handle used by | |
| 2342 | - | // name_to_handle_at (see NameToHandleAt) and open_by_handle_at (see | |
| 2343 | - | // OpenByHandleAt). | |
| 2344 | - | type FileHandle struct { | |
| 2345 | - | *fileHandle | |
| 2346 | - | } | |
| 2347 | - | ||
| 2348 | - | // NewFileHandle constructs a FileHandle. | |
| 2349 | - | func NewFileHandle(handleType int32, handle []byte) FileHandle { | |
| 2350 | - | const hdrSize = unsafe.Sizeof(fileHandle{}) | |
| 2351 | - | buf := make([]byte, hdrSize+uintptr(len(handle))) | |
| 2352 | - | copy(buf[hdrSize:], handle) | |
| 2353 | - | fh := (*fileHandle)(unsafe.Pointer(&buf[0])) | |
| 2354 | - | fh.Type = handleType | |
| 2355 | - | fh.Bytes = uint32(len(handle)) | |
| 2356 | - | return FileHandle{fh} | |
| 2357 | - | } | |
| 2358 | - | ||
| 2359 | - | func (fh *FileHandle) Size() int { return int(fh.fileHandle.Bytes) } | |
| 2360 | - | func (fh *FileHandle) Type() int32 { return fh.fileHandle.Type } | |
| 2361 | - | func (fh *FileHandle) Bytes() []byte { | |
| 2362 | - | n := fh.Size() | |
| 2363 | - | if n == 0 { | |
| 2364 | - | return nil | |
| 2365 | - | } | |
| 2366 | - | return unsafe.Slice((*byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&fh.fileHandle.Type))+4)), n) | |
| 2367 | - | } | |
| 2368 | - | ||
| 2369 | - | // NameToHandleAt wraps the name_to_handle_at system call; it obtains | |
| 2370 | - | // a handle for a path name. | |
| 2371 | - | func NameToHandleAt(dirfd int, path string, flags int) (handle FileHandle, mountID int, err error) { | |
| 2372 | - | var mid _C_int | |
| 2373 | - | // Try first with a small buffer, assuming the handle will | |
| 2374 | - | // only be 32 bytes. | |
| 2375 | - | size := uint32(32 + unsafe.Sizeof(fileHandle{})) | |
| 2376 | - | didResize := false | |
| 2377 | - | for { | |
| 2378 | - | buf := make([]byte, size) | |
| 2379 | - | fh := (*fileHandle)(unsafe.Pointer(&buf[0])) | |
| 2380 | - | fh.Bytes = size - uint32(unsafe.Sizeof(fileHandle{})) | |
| 2381 | - | err = nameToHandleAt(dirfd, path, fh, &mid, flags) | |
| 2382 | - | if err == EOVERFLOW { | |
| 2383 | - | if didResize { | |
| 2384 | - | // We shouldn't need to resize more than once | |
| 2385 | - | return | |
| 2386 | - | } | |
| 2387 | - | didResize = true | |
| 2388 | - | size = fh.Bytes + uint32(unsafe.Sizeof(fileHandle{})) | |
| 2389 | - | continue | |
| 2390 | - | } | |
| 2391 | - | if err != nil { | |
| 2392 | - | return | |
| 2393 | - | } | |
| 2394 | - | return FileHandle{fh}, int(mid), nil | |
| 2395 | - | } | |
| 2396 | - | } | |
| 2397 | - | ||
| 2398 | - | // OpenByHandleAt wraps the open_by_handle_at system call; it opens a | |
| 2399 | - | // file via a handle as previously returned by NameToHandleAt. | |
| 2400 | - | func OpenByHandleAt(mountFD int, handle FileHandle, flags int) (fd int, err error) { | |
| 2401 | - | return openByHandleAt(mountFD, handle.fileHandle, flags) | |
| 2402 | - | } | |
| 2403 | - | ||
| 2404 | - | // Klogset wraps the sys_syslog system call; it sets console_loglevel to | |
| 2405 | - | // the value specified by arg and passes a dummy pointer to bufp. | |
| 2406 | - | func Klogset(typ int, arg int) (err error) { | |
| 2407 | - | var p unsafe.Pointer | |
| 2408 | - | _, _, errno := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(p), uintptr(arg)) | |
| 2409 | - | if errno != 0 { | |
| 2410 | - | return errnoErr(errno) | |
| 2411 | - | } | |
| 2412 | - | return nil | |
| 2413 | - | } | |
| 2414 | - | ||
| 2415 | - | // RemoteIovec is Iovec with the pointer replaced with an integer. | |
| 2416 | - | // It is used for ProcessVMReadv and ProcessVMWritev, where the pointer | |
| 2417 | - | // refers to a location in a different process' address space, which | |
| 2418 | - | // would confuse the Go garbage collector. | |
| 2419 | - | type RemoteIovec struct { | |
| 2420 | - | Base uintptr | |
| 2421 | - | Len int | |
| 2422 | - | } | |
| 2423 | - | ||
| 2424 | - | //sys ProcessVMReadv(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) = SYS_PROCESS_VM_READV | |
| 2425 | - | //sys ProcessVMWritev(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) = SYS_PROCESS_VM_WRITEV | |
| 2426 | - | ||
| 2427 | - | //sys PidfdOpen(pid int, flags int) (fd int, err error) = SYS_PIDFD_OPEN | |
| 2428 | - | //sys PidfdGetfd(pidfd int, targetfd int, flags int) (fd int, err error) = SYS_PIDFD_GETFD | |
| 2429 | - | //sys PidfdSendSignal(pidfd int, sig Signal, info *Siginfo, flags int) (err error) = SYS_PIDFD_SEND_SIGNAL | |
| 2430 | - | ||
| 2431 | - | //sys shmat(id int, addr uintptr, flag int) (ret uintptr, err error) | |
| 2432 | - | //sys shmctl(id int, cmd int, buf *SysvShmDesc) (result int, err error) | |
| 2433 | - | //sys shmdt(addr uintptr) (err error) | |
| 2434 | - | //sys shmget(key int, size int, flag int) (id int, err error) | |
| 2435 | - | ||
| 2436 | - | //sys getitimer(which int, currValue *Itimerval) (err error) | |
| 2437 | - | //sys setitimer(which int, newValue *Itimerval, oldValue *Itimerval) (err error) | |
| 2438 | - | ||
| 2439 | - | // MakeItimerval creates an Itimerval from interval and value durations. | |
| 2440 | - | func MakeItimerval(interval, value time.Duration) Itimerval { | |
| 2441 | - | return Itimerval{ | |
| 2442 | - | Interval: NsecToTimeval(interval.Nanoseconds()), | |
| 2443 | - | Value: NsecToTimeval(value.Nanoseconds()), | |
| 2444 | - | } | |
| 2445 | - | } | |
| 2446 | - | ||
| 2447 | - | // A value which may be passed to the which parameter for Getitimer and | |
| 2448 | - | // Setitimer. | |
| 2449 | - | type ItimerWhich int | |
| 2450 | - | ||
| 2451 | - | // Possible which values for Getitimer and Setitimer. | |
| 2452 | - | const ( | |
| 2453 | - | ItimerReal ItimerWhich = ITIMER_REAL | |
| 2454 | - | ItimerVirtual ItimerWhich = ITIMER_VIRTUAL | |
| 2455 | - | ItimerProf ItimerWhich = ITIMER_PROF | |
| 2456 | - | ) | |
| 2457 | - | ||
| 2458 | - | // Getitimer wraps getitimer(2) to return the current value of the timer | |
| 2459 | - | // specified by which. | |
| 2460 | - | func Getitimer(which ItimerWhich) (Itimerval, error) { | |
| 2461 | - | var it Itimerval | |
| 2462 | - | if err := getitimer(int(which), &it); err != nil { | |
| 2463 | - | return Itimerval{}, err | |
| 2464 | - | } | |
| 2465 | - | ||
| 2466 | - | return it, nil | |
| 2467 | - | } | |
| 2468 | - | ||
| 2469 | - | // Setitimer wraps setitimer(2) to arm or disarm the timer specified by which. | |
| 2470 | - | // It returns the previous value of the timer. | |
| 2471 | - | // | |
| 2472 | - | // If the Itimerval argument is the zero value, the timer will be disarmed. | |
| 2473 | - | func Setitimer(which ItimerWhich, it Itimerval) (Itimerval, error) { | |
| 2474 | - | var prev Itimerval | |
| 2475 | - | if err := setitimer(int(which), &it, &prev); err != nil { | |
| 2476 | - | return Itimerval{}, err | |
| 2477 | - | } | |
| 2478 | - | ||
| 2479 | - | return prev, nil | |
| 2480 | - | } | |
| 2481 | - | ||
| 2482 | - | //sysnb rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr) (err error) = SYS_RT_SIGPROCMASK | |
| 2483 | - | ||
| 2484 | - | func PthreadSigmask(how int, set, oldset *Sigset_t) error { | |
| 2485 | - | if oldset != nil { | |
| 2486 | - | // Explicitly clear in case Sigset_t is larger than _C__NSIG. | |
| 2487 | - | *oldset = Sigset_t{} | |
| 2488 | - | } | |
| 2489 | - | return rtSigprocmask(how, set, oldset, _C__NSIG/8) | |
| 2490 | - | } | |
| 2491 | - | ||
| 2492 | - | //sysnb getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) | |
| 2493 | - | //sysnb getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) | |
| 2494 | - | ||
| 2495 | - | func Getresuid() (ruid, euid, suid int) { | |
| 2496 | - | var r, e, s _C_int | |
| 2497 | - | getresuid(&r, &e, &s) | |
| 2498 | - | return int(r), int(e), int(s) | |
| 2499 | - | } | |
| 2500 | - | ||
| 2501 | - | func Getresgid() (rgid, egid, sgid int) { | |
| 2502 | - | var r, e, s _C_int | |
| 2503 | - | getresgid(&r, &e, &s) | |
| 2504 | - | return int(r), int(e), int(s) | |
| 2505 | - | } | |
| 2506 | - | ||
| 2507 | - | // Pselect is a wrapper around the Linux pselect6 system call. | |
| 2508 | - | // This version does not modify the timeout argument. | |
| 2509 | - | func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | |
| 2510 | - | // Per https://man7.org/linux/man-pages/man2/select.2.html#NOTES, | |
| 2511 | - | // The Linux pselect6() system call modifies its timeout argument. | |
| 2512 | - | // [Not modifying the argument] is the behavior required by POSIX.1-2001. | |
| 2513 | - | var mutableTimeout *Timespec | |
| 2514 | - | if timeout != nil { | |
| 2515 | - | mutableTimeout = new(Timespec) | |
| 2516 | - | *mutableTimeout = *timeout | |
| 2517 | - | } | |
| 2518 | - | ||
| 2519 | - | // The final argument of the pselect6() system call is not a | |
| 2520 | - | // sigset_t * pointer, but is instead a structure | |
| 2521 | - | var kernelMask *sigset_argpack | |
| 2522 | - | if sigmask != nil { | |
| 2523 | - | wordBits := 32 << (^uintptr(0) >> 63) // see math.intSize | |
| 2524 | - | ||
| 2525 | - | // A sigset stores one bit per signal, | |
| 2526 | - | // offset by 1 (because signal 0 does not exist). | |
| 2527 | - | // So the number of words needed is ⌈__C_NSIG - 1 / wordBits⌉. | |
| 2528 | - | sigsetWords := (_C__NSIG - 1 + wordBits - 1) / (wordBits) | |
| 2529 | - | ||
| 2530 | - | sigsetBytes := uintptr(sigsetWords * (wordBits / 8)) | |
| 2531 | - | kernelMask = &sigset_argpack{ | |
| 2532 | - | ss: sigmask, | |
| 2533 | - | ssLen: sigsetBytes, | |
| 2534 | - | } | |
| 2535 | - | } | |
| 2536 | - | ||
| 2537 | - | return pselect6(nfd, r, w, e, mutableTimeout, kernelMask) | |
| 2538 | - | } | |
| 2539 | - | ||
| 2540 | - | //sys schedSetattr(pid int, attr *SchedAttr, flags uint) (err error) | |
| 2541 | - | //sys schedGetattr(pid int, attr *SchedAttr, size uint, flags uint) (err error) | |
| 2542 | - | ||
| 2543 | - | // SchedSetAttr is a wrapper for sched_setattr(2) syscall. | |
| 2544 | - | // https://man7.org/linux/man-pages/man2/sched_setattr.2.html | |
| 2545 | - | func SchedSetAttr(pid int, attr *SchedAttr, flags uint) error { | |
| 2546 | - | if attr == nil { | |
| 2547 | - | return EINVAL | |
| 2548 | - | } | |
| 2549 | - | attr.Size = SizeofSchedAttr | |
| 2550 | - | return schedSetattr(pid, attr, flags) | |
| 2551 | - | } | |
| 2552 | - | ||
| 2553 | - | // SchedGetAttr is a wrapper for sched_getattr(2) syscall. | |
| 2554 | - | // https://man7.org/linux/man-pages/man2/sched_getattr.2.html | |
| 2555 | - | func SchedGetAttr(pid int, flags uint) (*SchedAttr, error) { | |
| 2556 | - | attr := &SchedAttr{} | |
| 2557 | - | if err := schedGetattr(pid, attr, SizeofSchedAttr, flags); err != nil { | |
| 2558 | - | return nil, err | |
| 2559 | - | } | |
| 2560 | - | return attr, nil | |
| 2561 | - | } | |
| 2562 | - | ||
| 2563 | - | //sys Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) (err error) | |
| 2564 | - | //sys Mseal(b []byte, flags uint) (err error) | |
| 2565 | - | ||
| 2566 | - | //sys setMemPolicy(mode int, mask unsafe.Pointer, size uintptr) (err error) = SYS_SET_MEMPOLICY | |
| 2567 | - | ||
| 2568 | - | func SetMemPolicy(mode int, mask *CPUSet) error { | |
| 2569 | - | return setMemPolicy(mode, unsafe.Pointer(mask), _CPU_SETSIZE) | |
| 2570 | - | } | |
| 2571 | - | ||
| 2572 | - | func SetMemPolicyDynamic(mode int, mask CPUSetDynamic) error { | |
| 2573 | - | return setMemPolicy(mode, mask.pointer(), mask.size()) | |
| 2574 | - | } | |
| @@ -1,2574 +0,0 @@ | |||||
| 1 | - | // Copyright 2009 The Go Authors. All rights reserved. | |||
| 2 | - | // Use of this source code is governed by a BSD-style | |||
| 3 | - | // license that can be found in the LICENSE file. | |||
| 4 | - | ||||
| 5 | - | // Linux system calls. | |||
| 6 | - | // This file is compiled as ordinary Go code, | |||
| 7 | - | // but it is also input to mksyscall, | |||
| 8 | - | // which parses the //sys lines and generates system call stubs. | |||
| 9 | - | // Note that sometimes we use a lowercase //sys name and | |||
| 10 | - | // wrap it in our own nicer implementation. | |||
| 11 | - | ||||
| 12 | - | package unix | |||
| 13 | - | ||||
| 14 | - | import ( | |||
| 15 | - | "encoding/binary" | |||
| 16 | - | "slices" | |||
| 17 | - | "strconv" | |||
| 18 | - | "syscall" | |||
| 19 | - | "time" | |||
| 20 | - | "unsafe" | |||
| 21 | - | ) | |||
| 22 | - | ||||
| 23 | - | /* | |||
| 24 | - | * Wrapped | |||
| 25 | - | */ | |||
| 26 | - | ||||
| 27 | - | func Access(path string, mode uint32) (err error) { | |||
| 28 | - | return Faccessat(AT_FDCWD, path, mode, 0) | |||
| 29 | - | } | |||
| 30 | - | ||||
| 31 | - | func Chmod(path string, mode uint32) (err error) { | |||
| 32 | - | return Fchmodat(AT_FDCWD, path, mode, 0) | |||
| 33 | - | } | |||
| 34 | - | ||||
| 35 | - | func Chown(path string, uid int, gid int) (err error) { | |||
| 36 | - | return Fchownat(AT_FDCWD, path, uid, gid, 0) | |||
| 37 | - | } | |||
| 38 | - | ||||
| 39 | - | func Creat(path string, mode uint32) (fd int, err error) { | |||
| 40 | - | return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode) | |||
| 41 | - | } | |||
| 42 | - | ||||
| 43 | - | func EpollCreate(size int) (fd int, err error) { | |||
| 44 | - | if size <= 0 { | |||
| 45 | - | return -1, EINVAL | |||
| 46 | - | } | |||
| 47 | - | return EpollCreate1(0) | |||
| 48 | - | } | |||
| 49 | - | ||||
| 50 | - | //sys FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) | |||
| 51 | - | //sys fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) | |||
| 52 | - | ||||
| 53 | - | func FanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname string) (err error) { | |||
| 54 | - | if pathname == "" { | |||
| 55 | - | return fanotifyMark(fd, flags, mask, dirFd, nil) | |||
| 56 | - | } | |||
| 57 | - | p, err := BytePtrFromString(pathname) | |||
| 58 | - | if err != nil { | |||
| 59 | - | return err | |||
| 60 | - | } | |||
| 61 | - | return fanotifyMark(fd, flags, mask, dirFd, p) | |||
| 62 | - | } | |||
| 63 | - | ||||
| 64 | - | //sys fchmodat(dirfd int, path string, mode uint32) (err error) | |||
| 65 | - | //sys fchmodat2(dirfd int, path string, mode uint32, flags int) (err error) | |||
| 66 | - | ||||
| 67 | - | func Fchmodat(dirfd int, path string, mode uint32, flags int) error { | |||
| 68 | - | // Linux fchmodat doesn't support the flags parameter, but fchmodat2 does. | |||
| 69 | - | // Try fchmodat2 if flags are specified. | |||
| 70 | - | if flags != 0 { | |||
| 71 | - | err := fchmodat2(dirfd, path, mode, flags) | |||
| 72 | - | if err == ENOSYS { | |||
| 73 | - | // fchmodat2 isn't available. If the flags are known to be valid, | |||
| 74 | - | // return EOPNOTSUPP to indicate that fchmodat doesn't support them. | |||
| 75 | - | if flags&^(AT_SYMLINK_NOFOLLOW|AT_EMPTY_PATH) != 0 { | |||
| 76 | - | return EINVAL | |||
| 77 | - | } else if flags&(AT_SYMLINK_NOFOLLOW|AT_EMPTY_PATH) != 0 { | |||
| 78 | - | return EOPNOTSUPP | |||
| 79 | - | } | |||
| 80 | - | } | |||
| 81 | - | return err | |||
| 82 | - | } | |||
| 83 | - | return fchmodat(dirfd, path, mode) | |||
| 84 | - | } | |||
| 85 | - | ||||
| 86 | - | func InotifyInit() (fd int, err error) { | |||
| 87 | - | return InotifyInit1(0) | |||
| 88 | - | } | |||
| 89 | - | ||||
| 90 | - | //sys ioctl(fd int, req uint, arg uintptr) (err error) = SYS_IOCTL | |||
| 91 | - | //sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL | |||
| 92 | - | ||||
| 93 | - | // ioctl itself should not be exposed directly, but additional get/set functions | |||
| 94 | - | // for specific types are permissible. These are defined in ioctl.go and | |||
| 95 | - | // ioctl_linux.go. | |||
| 96 | - | // | |||
| 97 | - | // The third argument to ioctl is often a pointer but sometimes an integer. | |||
| 98 | - | // Callers should use ioctlPtr when the third argument is a pointer and ioctl | |||
| 99 | - | // when the third argument is an integer. | |||
| 100 | - | // | |||
| 101 | - | // TODO: some existing code incorrectly uses ioctl when it should use ioctlPtr. | |||
| 102 | - | ||||
| 103 | - | //sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) | |||
| 104 | - | ||||
| 105 | - | func Link(oldpath string, newpath string) (err error) { | |||
| 106 | - | return Linkat(AT_FDCWD, oldpath, AT_FDCWD, newpath, 0) | |||
| 107 | - | } | |||
| 108 | - | ||||
| 109 | - | func Mkdir(path string, mode uint32) (err error) { | |||
| 110 | - | return Mkdirat(AT_FDCWD, path, mode) | |||
| 111 | - | } | |||
| 112 | - | ||||
| 113 | - | func Mknod(path string, mode uint32, dev int) (err error) { | |||
| 114 | - | return Mknodat(AT_FDCWD, path, mode, dev) | |||
| 115 | - | } | |||
| 116 | - | ||||
| 117 | - | func Open(path string, mode int, perm uint32) (fd int, err error) { | |||
| 118 | - | return openat(AT_FDCWD, path, mode|O_LARGEFILE, perm) | |||
| 119 | - | } | |||
| 120 | - | ||||
| 121 | - | //sys openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) | |||
| 122 | - | ||||
| 123 | - | func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { | |||
| 124 | - | return openat(dirfd, path, flags|O_LARGEFILE, mode) | |||
| 125 | - | } | |||
| 126 | - | ||||
| 127 | - | //sys openat2(dirfd int, path string, open_how *OpenHow, size int) (fd int, err error) | |||
| 128 | - | ||||
| 129 | - | func Openat2(dirfd int, path string, how *OpenHow) (fd int, err error) { | |||
| 130 | - | return openat2(dirfd, path, how, SizeofOpenHow) | |||
| 131 | - | } | |||
| 132 | - | ||||
| 133 | - | func Pipe(p []int) error { | |||
| 134 | - | return Pipe2(p, 0) | |||
| 135 | - | } | |||
| 136 | - | ||||
| 137 | - | //sysnb pipe2(p *[2]_C_int, flags int) (err error) | |||
| 138 | - | ||||
| 139 | - | func Pipe2(p []int, flags int) error { | |||
| 140 | - | if len(p) != 2 { | |||
| 141 | - | return EINVAL | |||
| 142 | - | } | |||
| 143 | - | var pp [2]_C_int | |||
| 144 | - | err := pipe2(&pp, flags) | |||
| 145 | - | if err == nil { | |||
| 146 | - | p[0] = int(pp[0]) | |||
| 147 | - | p[1] = int(pp[1]) | |||
| 148 | - | } | |||
| 149 | - | return err | |||
| 150 | - | } | |||
| 151 | - | ||||
| 152 | - | //sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) | |||
| 153 | - | ||||
| 154 | - | func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | |||
| 155 | - | if len(fds) == 0 { | |||
| 156 | - | return ppoll(nil, 0, timeout, sigmask) | |||
| 157 | - | } | |||
| 158 | - | return ppoll(&fds[0], len(fds), timeout, sigmask) | |||
| 159 | - | } | |||
| 160 | - | ||||
| 161 | - | func Poll(fds []PollFd, timeout int) (n int, err error) { | |||
| 162 | - | var ts *Timespec | |||
| 163 | - | if timeout >= 0 { | |||
| 164 | - | ts = new(Timespec) | |||
| 165 | - | *ts = NsecToTimespec(int64(timeout) * 1e6) | |||
| 166 | - | } | |||
| 167 | - | return Ppoll(fds, ts, nil) | |||
| 168 | - | } | |||
| 169 | - | ||||
| 170 | - | //sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error) | |||
| 171 | - | ||||
| 172 | - | func Readlink(path string, buf []byte) (n int, err error) { | |||
| 173 | - | return Readlinkat(AT_FDCWD, path, buf) | |||
| 174 | - | } | |||
| 175 | - | ||||
| 176 | - | func Rename(oldpath string, newpath string) (err error) { | |||
| 177 | - | return Renameat(AT_FDCWD, oldpath, AT_FDCWD, newpath) | |||
| 178 | - | } | |||
| 179 | - | ||||
| 180 | - | func Rmdir(path string) error { | |||
| 181 | - | return Unlinkat(AT_FDCWD, path, AT_REMOVEDIR) | |||
| 182 | - | } | |||
| 183 | - | ||||
| 184 | - | //sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error) | |||
| 185 | - | ||||
| 186 | - | func Symlink(oldpath string, newpath string) (err error) { | |||
| 187 | - | return Symlinkat(oldpath, AT_FDCWD, newpath) | |||
| 188 | - | } | |||
| 189 | - | ||||
| 190 | - | func Unlink(path string) error { | |||
| 191 | - | return Unlinkat(AT_FDCWD, path, 0) | |||
| 192 | - | } | |||
| 193 | - | ||||
| 194 | - | //sys Unlinkat(dirfd int, path string, flags int) (err error) | |||
| 195 | - | ||||
| 196 | - | func Utimes(path string, tv []Timeval) error { | |||
| 197 | - | if tv == nil { | |||
| 198 | - | err := utimensat(AT_FDCWD, path, nil, 0) | |||
| 199 | - | if err != ENOSYS { | |||
| 200 | - | return err | |||
| 201 | - | } | |||
| 202 | - | return utimes(path, nil) | |||
| 203 | - | } | |||
| 204 | - | if len(tv) != 2 { | |||
| 205 | - | return EINVAL | |||
| 206 | - | } | |||
| 207 | - | var ts [2]Timespec | |||
| 208 | - | ts[0] = NsecToTimespec(TimevalToNsec(tv[0])) | |||
| 209 | - | ts[1] = NsecToTimespec(TimevalToNsec(tv[1])) | |||
| 210 | - | err := utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) | |||
| 211 | - | if err != ENOSYS { | |||
| 212 | - | return err | |||
| 213 | - | } | |||
| 214 | - | return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) | |||
| 215 | - | } | |||
| 216 | - | ||||
| 217 | - | //sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) | |||
| 218 | - | ||||
| 219 | - | func UtimesNano(path string, ts []Timespec) error { | |||
| 220 | - | return UtimesNanoAt(AT_FDCWD, path, ts, 0) | |||
| 221 | - | } | |||
| 222 | - | ||||
| 223 | - | func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error { | |||
| 224 | - | if ts == nil { | |||
| 225 | - | return utimensat(dirfd, path, nil, flags) | |||
| 226 | - | } | |||
| 227 | - | if len(ts) != 2 { | |||
| 228 | - | return EINVAL | |||
| 229 | - | } | |||
| 230 | - | return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags) | |||
| 231 | - | } | |||
| 232 | - | ||||
| 233 | - | func Futimesat(dirfd int, path string, tv []Timeval) error { | |||
| 234 | - | if tv == nil { | |||
| 235 | - | return futimesat(dirfd, path, nil) | |||
| 236 | - | } | |||
| 237 | - | if len(tv) != 2 { | |||
| 238 | - | return EINVAL | |||
| 239 | - | } | |||
| 240 | - | return futimesat(dirfd, path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) | |||
| 241 | - | } | |||
| 242 | - | ||||
| 243 | - | func Futimes(fd int, tv []Timeval) (err error) { | |||
| 244 | - | // Believe it or not, this is the best we can do on Linux | |||
| 245 | - | // (and is what glibc does). | |||
| 246 | - | return Utimes("/proc/self/fd/"+strconv.Itoa(fd), tv) | |||
| 247 | - | } | |||
| 248 | - | ||||
| 249 | - | const ImplementsGetwd = true | |||
| 250 | - | ||||
| 251 | - | //sys Getcwd(buf []byte) (n int, err error) | |||
| 252 | - | ||||
| 253 | - | func Getwd() (wd string, err error) { | |||
| 254 | - | var buf [PathMax]byte | |||
| 255 | - | n, err := Getcwd(buf[0:]) | |||
| 256 | - | if err != nil { | |||
| 257 | - | return "", err | |||
| 258 | - | } | |||
| 259 | - | // Getcwd returns the number of bytes written to buf, including the NUL. | |||
| 260 | - | if n < 1 || n > len(buf) || buf[n-1] != 0 { | |||
| 261 | - | return "", EINVAL | |||
| 262 | - | } | |||
| 263 | - | // In some cases, Linux can return a path that starts with the | |||
| 264 | - | // "(unreachable)" prefix, which can potentially be a valid relative | |||
| 265 | - | // path. To work around that, return ENOENT if path is not absolute. | |||
| 266 | - | if buf[0] != '/' { | |||
| 267 | - | return "", ENOENT | |||
| 268 | - | } | |||
| 269 | - | ||||
| 270 | - | return string(buf[0 : n-1]), nil | |||
| 271 | - | } | |||
| 272 | - | ||||
| 273 | - | func Getgroups() (gids []int, err error) { | |||
| 274 | - | n, err := getgroups(0, nil) | |||
| 275 | - | if err != nil { | |||
| 276 | - | return nil, err | |||
| 277 | - | } | |||
| 278 | - | if n == 0 { | |||
| 279 | - | return nil, nil | |||
| 280 | - | } | |||
| 281 | - | ||||
| 282 | - | // Sanity check group count. Max is 1<<16 on Linux. | |||
| 283 | - | if n < 0 || n > 1<<20 { | |||
| 284 | - | return nil, EINVAL | |||
| 285 | - | } | |||
| 286 | - | ||||
| 287 | - | a := make([]_Gid_t, n) | |||
| 288 | - | n, err = getgroups(n, &a[0]) | |||
| 289 | - | if err != nil { | |||
| 290 | - | return nil, err | |||
| 291 | - | } | |||
| 292 | - | gids = make([]int, n) | |||
| 293 | - | for i, v := range a[0:n] { | |||
| 294 | - | gids[i] = int(v) | |||
| 295 | - | } | |||
| 296 | - | return | |||
| 297 | - | } | |||
| 298 | - | ||||
| 299 | - | func Setgroups(gids []int) (err error) { | |||
| 300 | - | if len(gids) == 0 { | |||
| 301 | - | return setgroups(0, nil) | |||
| 302 | - | } | |||
| 303 | - | ||||
| 304 | - | a := make([]_Gid_t, len(gids)) | |||
| 305 | - | for i, v := range gids { | |||
| 306 | - | a[i] = _Gid_t(v) | |||
| 307 | - | } | |||
| 308 | - | return setgroups(len(a), &a[0]) | |||
| 309 | - | } | |||
| 310 | - | ||||
| 311 | - | type WaitStatus uint32 | |||
| 312 | - | ||||
| 313 | - | // Wait status is 7 bits at bottom, either 0 (exited), | |||
| 314 | - | // 0x7F (stopped), or a signal number that caused an exit. | |||
| 315 | - | // The 0x80 bit is whether there was a core dump. | |||
| 316 | - | // An extra number (exit code, signal causing a stop) | |||
| 317 | - | // is in the high bits. At least that's the idea. | |||
| 318 | - | // There are various irregularities. For example, the | |||
| 319 | - | // "continued" status is 0xFFFF, distinguishing itself | |||
| 320 | - | // from stopped via the core dump bit. | |||
| 321 | - | ||||
| 322 | - | const ( | |||
| 323 | - | mask = 0x7F | |||
| 324 | - | core = 0x80 | |||
| 325 | - | exited = 0x00 | |||
| 326 | - | stopped = 0x7F | |||
| 327 | - | shift = 8 | |||
| 328 | - | ) | |||
| 329 | - | ||||
| 330 | - | func (w WaitStatus) Exited() bool { return w&mask == exited } | |||
| 331 | - | ||||
| 332 | - | func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != exited } | |||
| 333 | - | ||||
| 334 | - | func (w WaitStatus) Stopped() bool { return w&0xFF == stopped } | |||
| 335 | - | ||||
| 336 | - | func (w WaitStatus) Continued() bool { return w == 0xFFFF } | |||
| 337 | - | ||||
| 338 | - | func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 } | |||
| 339 | - | ||||
| 340 | - | func (w WaitStatus) ExitStatus() int { | |||
| 341 | - | if !w.Exited() { | |||
| 342 | - | return -1 | |||
| 343 | - | } | |||
| 344 | - | return int(w>>shift) & 0xFF | |||
| 345 | - | } | |||
| 346 | - | ||||
| 347 | - | func (w WaitStatus) Signal() syscall.Signal { | |||
| 348 | - | if !w.Signaled() { | |||
| 349 | - | return -1 | |||
| 350 | - | } | |||
| 351 | - | return syscall.Signal(w & mask) | |||
| 352 | - | } | |||
| 353 | - | ||||
| 354 | - | func (w WaitStatus) StopSignal() syscall.Signal { | |||
| 355 | - | if !w.Stopped() { | |||
| 356 | - | return -1 | |||
| 357 | - | } | |||
| 358 | - | return syscall.Signal(w>>shift) & 0xFF | |||
| 359 | - | } | |||
| 360 | - | ||||
| 361 | - | func (w WaitStatus) TrapCause() int { | |||
| 362 | - | if w.StopSignal() != SIGTRAP { | |||
| 363 | - | return -1 | |||
| 364 | - | } | |||
| 365 | - | return int(w>>shift) >> 8 | |||
| 366 | - | } | |||
| 367 | - | ||||
| 368 | - | //sys wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) | |||
| 369 | - | ||||
| 370 | - | func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) { | |||
| 371 | - | var status _C_int | |||
| 372 | - | wpid, err = wait4(pid, &status, options, rusage) | |||
| 373 | - | if wstatus != nil { | |||
| 374 | - | *wstatus = WaitStatus(status) | |||
| 375 | - | } | |||
| 376 | - | return | |||
| 377 | - | } | |||
| 378 | - | ||||
| 379 | - | //sys Waitid(idType int, id int, info *Siginfo, options int, rusage *Rusage) (err error) | |||
| 380 | - | ||||
| 381 | - | func Mkfifo(path string, mode uint32) error { | |||
| 382 | - | return Mknod(path, mode|S_IFIFO, 0) | |||
| 383 | - | } | |||
| 384 | - | ||||
| 385 | - | func Mkfifoat(dirfd int, path string, mode uint32) error { | |||
| 386 | - | return Mknodat(dirfd, path, mode|S_IFIFO, 0) | |||
| 387 | - | } | |||
| 388 | - | ||||
| 389 | - | func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 390 | - | if sa.Port < 0 || sa.Port > 0xFFFF { | |||
| 391 | - | return nil, 0, EINVAL | |||
| 392 | - | } | |||
| 393 | - | sa.raw.Family = AF_INET | |||
| 394 | - | p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) | |||
| 395 | - | p[0] = byte(sa.Port >> 8) | |||
| 396 | - | p[1] = byte(sa.Port) | |||
| 397 | - | sa.raw.Addr = sa.Addr | |||
| 398 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrInet4, nil | |||
| 399 | - | } | |||
| 400 | - | ||||
| 401 | - | func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 402 | - | if sa.Port < 0 || sa.Port > 0xFFFF { | |||
| 403 | - | return nil, 0, EINVAL | |||
| 404 | - | } | |||
| 405 | - | sa.raw.Family = AF_INET6 | |||
| 406 | - | p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) | |||
| 407 | - | p[0] = byte(sa.Port >> 8) | |||
| 408 | - | p[1] = byte(sa.Port) | |||
| 409 | - | sa.raw.Scope_id = sa.ZoneId | |||
| 410 | - | sa.raw.Addr = sa.Addr | |||
| 411 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrInet6, nil | |||
| 412 | - | } | |||
| 413 | - | ||||
| 414 | - | func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 415 | - | name := sa.Name | |||
| 416 | - | n := len(name) | |||
| 417 | - | if n >= len(sa.raw.Path) { | |||
| 418 | - | return nil, 0, EINVAL | |||
| 419 | - | } | |||
| 420 | - | sa.raw.Family = AF_UNIX | |||
| 421 | - | for i := range n { | |||
| 422 | - | sa.raw.Path[i] = int8(name[i]) | |||
| 423 | - | } | |||
| 424 | - | // length is family (uint16), name, NUL. | |||
| 425 | - | sl := _Socklen(2) | |||
| 426 | - | if n > 0 { | |||
| 427 | - | sl += _Socklen(n) + 1 | |||
| 428 | - | } | |||
| 429 | - | if sa.raw.Path[0] == '@' || (sa.raw.Path[0] == 0 && sl > 3) { | |||
| 430 | - | // Check sl > 3 so we don't change unnamed socket behavior. | |||
| 431 | - | sa.raw.Path[0] = 0 | |||
| 432 | - | // Don't count trailing NUL for abstract address. | |||
| 433 | - | sl-- | |||
| 434 | - | } | |||
| 435 | - | ||||
| 436 | - | return unsafe.Pointer(&sa.raw), sl, nil | |||
| 437 | - | } | |||
| 438 | - | ||||
| 439 | - | // SockaddrLinklayer implements the Sockaddr interface for AF_PACKET type sockets. | |||
| 440 | - | type SockaddrLinklayer struct { | |||
| 441 | - | Protocol uint16 | |||
| 442 | - | Ifindex int | |||
| 443 | - | Hatype uint16 | |||
| 444 | - | Pkttype uint8 | |||
| 445 | - | Halen uint8 | |||
| 446 | - | Addr [8]byte | |||
| 447 | - | raw RawSockaddrLinklayer | |||
| 448 | - | } | |||
| 449 | - | ||||
| 450 | - | func (sa *SockaddrLinklayer) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 451 | - | if sa.Ifindex < 0 || sa.Ifindex > 0x7fffffff { | |||
| 452 | - | return nil, 0, EINVAL | |||
| 453 | - | } | |||
| 454 | - | sa.raw.Family = AF_PACKET | |||
| 455 | - | sa.raw.Protocol = sa.Protocol | |||
| 456 | - | sa.raw.Ifindex = int32(sa.Ifindex) | |||
| 457 | - | sa.raw.Hatype = sa.Hatype | |||
| 458 | - | sa.raw.Pkttype = sa.Pkttype | |||
| 459 | - | sa.raw.Halen = sa.Halen | |||
| 460 | - | sa.raw.Addr = sa.Addr | |||
| 461 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrLinklayer, nil | |||
| 462 | - | } | |||
| 463 | - | ||||
| 464 | - | // SockaddrNetlink implements the Sockaddr interface for AF_NETLINK type sockets. | |||
| 465 | - | type SockaddrNetlink struct { | |||
| 466 | - | Family uint16 | |||
| 467 | - | Pad uint16 | |||
| 468 | - | Pid uint32 | |||
| 469 | - | Groups uint32 | |||
| 470 | - | raw RawSockaddrNetlink | |||
| 471 | - | } | |||
| 472 | - | ||||
| 473 | - | func (sa *SockaddrNetlink) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 474 | - | sa.raw.Family = AF_NETLINK | |||
| 475 | - | sa.raw.Pad = sa.Pad | |||
| 476 | - | sa.raw.Pid = sa.Pid | |||
| 477 | - | sa.raw.Groups = sa.Groups | |||
| 478 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrNetlink, nil | |||
| 479 | - | } | |||
| 480 | - | ||||
| 481 | - | // SockaddrHCI implements the Sockaddr interface for AF_BLUETOOTH type sockets | |||
| 482 | - | // using the HCI protocol. | |||
| 483 | - | type SockaddrHCI struct { | |||
| 484 | - | Dev uint16 | |||
| 485 | - | Channel uint16 | |||
| 486 | - | raw RawSockaddrHCI | |||
| 487 | - | } | |||
| 488 | - | ||||
| 489 | - | func (sa *SockaddrHCI) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 490 | - | sa.raw.Family = AF_BLUETOOTH | |||
| 491 | - | sa.raw.Dev = sa.Dev | |||
| 492 | - | sa.raw.Channel = sa.Channel | |||
| 493 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrHCI, nil | |||
| 494 | - | } | |||
| 495 | - | ||||
| 496 | - | // SockaddrL2 implements the Sockaddr interface for AF_BLUETOOTH type sockets | |||
| 497 | - | // using the L2CAP protocol. | |||
| 498 | - | type SockaddrL2 struct { | |||
| 499 | - | PSM uint16 | |||
| 500 | - | CID uint16 | |||
| 501 | - | Addr [6]uint8 | |||
| 502 | - | AddrType uint8 | |||
| 503 | - | raw RawSockaddrL2 | |||
| 504 | - | } | |||
| 505 | - | ||||
| 506 | - | func (sa *SockaddrL2) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 507 | - | sa.raw.Family = AF_BLUETOOTH | |||
| 508 | - | psm := (*[2]byte)(unsafe.Pointer(&sa.raw.Psm)) | |||
| 509 | - | psm[0] = byte(sa.PSM) | |||
| 510 | - | psm[1] = byte(sa.PSM >> 8) | |||
| 511 | - | for i := range len(sa.Addr) { | |||
| 512 | - | sa.raw.Bdaddr[i] = sa.Addr[len(sa.Addr)-1-i] | |||
| 513 | - | } | |||
| 514 | - | cid := (*[2]byte)(unsafe.Pointer(&sa.raw.Cid)) | |||
| 515 | - | cid[0] = byte(sa.CID) | |||
| 516 | - | cid[1] = byte(sa.CID >> 8) | |||
| 517 | - | sa.raw.Bdaddr_type = sa.AddrType | |||
| 518 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrL2, nil | |||
| 519 | - | } | |||
| 520 | - | ||||
| 521 | - | // SockaddrRFCOMM implements the Sockaddr interface for AF_BLUETOOTH type sockets | |||
| 522 | - | // using the RFCOMM protocol. | |||
| 523 | - | // | |||
| 524 | - | // Server example: | |||
| 525 | - | // | |||
| 526 | - | // fd, _ := Socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM) | |||
| 527 | - | // _ = unix.Bind(fd, &unix.SockaddrRFCOMM{ | |||
| 528 | - | // Channel: 1, | |||
| 529 | - | // Addr: [6]uint8{0, 0, 0, 0, 0, 0}, // BDADDR_ANY or 00:00:00:00:00:00 | |||
| 530 | - | // }) | |||
| 531 | - | // _ = Listen(fd, 1) | |||
| 532 | - | // nfd, sa, _ := Accept(fd) | |||
| 533 | - | // fmt.Printf("conn addr=%v fd=%d", sa.(*unix.SockaddrRFCOMM).Addr, nfd) | |||
| 534 | - | // Read(nfd, buf) | |||
| 535 | - | // | |||
| 536 | - | // Client example: | |||
| 537 | - | // | |||
| 538 | - | // fd, _ := Socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM) | |||
| 539 | - | // _ = Connect(fd, &SockaddrRFCOMM{ | |||
| 540 | - | // Channel: 1, | |||
| 541 | - | // Addr: [6]byte{0x11, 0x22, 0x33, 0xaa, 0xbb, 0xcc}, // CC:BB:AA:33:22:11 | |||
| 542 | - | // }) | |||
| 543 | - | // Write(fd, []byte(`hello`)) | |||
| 544 | - | type SockaddrRFCOMM struct { | |||
| 545 | - | // Addr represents a bluetooth address, byte ordering is little-endian. | |||
| 546 | - | Addr [6]uint8 | |||
| 547 | - | ||||
| 548 | - | // Channel is a designated bluetooth channel, only 1-30 are available for use. | |||
| 549 | - | // Since Linux 2.6.7 and further zero value is the first available channel. | |||
| 550 | - | Channel uint8 | |||
| 551 | - | ||||
| 552 | - | raw RawSockaddrRFCOMM | |||
| 553 | - | } | |||
| 554 | - | ||||
| 555 | - | func (sa *SockaddrRFCOMM) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 556 | - | sa.raw.Family = AF_BLUETOOTH | |||
| 557 | - | sa.raw.Channel = sa.Channel | |||
| 558 | - | sa.raw.Bdaddr = sa.Addr | |||
| 559 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrRFCOMM, nil | |||
| 560 | - | } | |||
| 561 | - | ||||
| 562 | - | // SockaddrCAN implements the Sockaddr interface for AF_CAN type sockets. | |||
| 563 | - | // The RxID and TxID fields are used for transport protocol addressing in | |||
| 564 | - | // (CAN_TP16, CAN_TP20, CAN_MCNET, and CAN_ISOTP), they can be left with | |||
| 565 | - | // zero values for CAN_RAW and CAN_BCM sockets as they have no meaning. | |||
| 566 | - | // | |||
| 567 | - | // The SockaddrCAN struct must be bound to the socket file descriptor | |||
| 568 | - | // using Bind before the CAN socket can be used. | |||
| 569 | - | // | |||
| 570 | - | // // Read one raw CAN frame | |||
| 571 | - | // fd, _ := Socket(AF_CAN, SOCK_RAW, CAN_RAW) | |||
| 572 | - | // addr := &SockaddrCAN{Ifindex: index} | |||
| 573 | - | // Bind(fd, addr) | |||
| 574 | - | // frame := make([]byte, 16) | |||
| 575 | - | // Read(fd, frame) | |||
| 576 | - | // | |||
| 577 | - | // The full SocketCAN documentation can be found in the linux kernel | |||
| 578 | - | // archives at: https://www.kernel.org/doc/Documentation/networking/can.txt | |||
| 579 | - | type SockaddrCAN struct { | |||
| 580 | - | Ifindex int | |||
| 581 | - | RxID uint32 | |||
| 582 | - | TxID uint32 | |||
| 583 | - | raw RawSockaddrCAN | |||
| 584 | - | } | |||
| 585 | - | ||||
| 586 | - | func (sa *SockaddrCAN) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 587 | - | if sa.Ifindex < 0 || sa.Ifindex > 0x7fffffff { | |||
| 588 | - | return nil, 0, EINVAL | |||
| 589 | - | } | |||
| 590 | - | sa.raw.Family = AF_CAN | |||
| 591 | - | sa.raw.Ifindex = int32(sa.Ifindex) | |||
| 592 | - | rx := (*[4]byte)(unsafe.Pointer(&sa.RxID)) | |||
| 593 | - | for i := range 4 { | |||
| 594 | - | sa.raw.Addr[i] = rx[i] | |||
| 595 | - | } | |||
| 596 | - | tx := (*[4]byte)(unsafe.Pointer(&sa.TxID)) | |||
| 597 | - | for i := range 4 { | |||
| 598 | - | sa.raw.Addr[i+4] = tx[i] | |||
| 599 | - | } | |||
| 600 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrCAN, nil | |||
| 601 | - | } | |||
| 602 | - | ||||
| 603 | - | // SockaddrCANJ1939 implements the Sockaddr interface for AF_CAN using J1939 | |||
| 604 | - | // protocol (https://en.wikipedia.org/wiki/SAE_J1939). For more information | |||
| 605 | - | // on the purposes of the fields, check the official linux kernel documentation | |||
| 606 | - | // available here: https://www.kernel.org/doc/Documentation/networking/j1939.rst | |||
| 607 | - | type SockaddrCANJ1939 struct { | |||
| 608 | - | Ifindex int | |||
| 609 | - | Name uint64 | |||
| 610 | - | PGN uint32 | |||
| 611 | - | Addr uint8 | |||
| 612 | - | raw RawSockaddrCAN | |||
| 613 | - | } | |||
| 614 | - | ||||
| 615 | - | func (sa *SockaddrCANJ1939) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 616 | - | if sa.Ifindex < 0 || sa.Ifindex > 0x7fffffff { | |||
| 617 | - | return nil, 0, EINVAL | |||
| 618 | - | } | |||
| 619 | - | sa.raw.Family = AF_CAN | |||
| 620 | - | sa.raw.Ifindex = int32(sa.Ifindex) | |||
| 621 | - | n := (*[8]byte)(unsafe.Pointer(&sa.Name)) | |||
| 622 | - | for i := range 8 { | |||
| 623 | - | sa.raw.Addr[i] = n[i] | |||
| 624 | - | } | |||
| 625 | - | p := (*[4]byte)(unsafe.Pointer(&sa.PGN)) | |||
| 626 | - | for i := range 4 { | |||
| 627 | - | sa.raw.Addr[i+8] = p[i] | |||
| 628 | - | } | |||
| 629 | - | sa.raw.Addr[12] = sa.Addr | |||
| 630 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrCAN, nil | |||
| 631 | - | } | |||
| 632 | - | ||||
| 633 | - | // SockaddrALG implements the Sockaddr interface for AF_ALG type sockets. | |||
| 634 | - | // SockaddrALG enables userspace access to the Linux kernel's cryptography | |||
| 635 | - | // subsystem. The Type and Name fields specify which type of hash or cipher | |||
| 636 | - | // should be used with a given socket. | |||
| 637 | - | // | |||
| 638 | - | // To create a file descriptor that provides access to a hash or cipher, both | |||
| 639 | - | // Bind and Accept must be used. Once the setup process is complete, input | |||
| 640 | - | // data can be written to the socket, processed by the kernel, and then read | |||
| 641 | - | // back as hash output or ciphertext. | |||
| 642 | - | // | |||
| 643 | - | // Here is an example of using an AF_ALG socket with SHA1 hashing. | |||
| 644 | - | // The initial socket setup process is as follows: | |||
| 645 | - | // | |||
| 646 | - | // // Open a socket to perform SHA1 hashing. | |||
| 647 | - | // fd, _ := unix.Socket(unix.AF_ALG, unix.SOCK_SEQPACKET, 0) | |||
| 648 | - | // addr := &unix.SockaddrALG{Type: "hash", Name: "sha1"} | |||
| 649 | - | // unix.Bind(fd, addr) | |||
| 650 | - | // // Note: unix.Accept does not work at this time; must invoke accept() | |||
| 651 | - | // // manually using unix.Syscall. | |||
| 652 | - | // hashfd, _, _ := unix.Syscall(unix.SYS_ACCEPT, uintptr(fd), 0, 0) | |||
| 653 | - | // | |||
| 654 | - | // Once a file descriptor has been returned from Accept, it may be used to | |||
| 655 | - | // perform SHA1 hashing. The descriptor is not safe for concurrent use, but | |||
| 656 | - | // may be re-used repeatedly with subsequent Write and Read operations. | |||
| 657 | - | // | |||
| 658 | - | // When hashing a small byte slice or string, a single Write and Read may | |||
| 659 | - | // be used: | |||
| 660 | - | // | |||
| 661 | - | // // Assume hashfd is already configured using the setup process. | |||
| 662 | - | // hash := os.NewFile(hashfd, "sha1") | |||
| 663 | - | // // Hash an input string and read the results. Each Write discards | |||
| 664 | - | // // previous hash state. Read always reads the current state. | |||
| 665 | - | // b := make([]byte, 20) | |||
| 666 | - | // for i := 0; i < 2; i++ { | |||
| 667 | - | // io.WriteString(hash, "Hello, world.") | |||
| 668 | - | // hash.Read(b) | |||
| 669 | - | // fmt.Println(hex.EncodeToString(b)) | |||
| 670 | - | // } | |||
| 671 | - | // // Output: | |||
| 672 | - | // // 2ae01472317d1935a84797ec1983ae243fc6aa28 | |||
| 673 | - | // // 2ae01472317d1935a84797ec1983ae243fc6aa28 | |||
| 674 | - | // | |||
| 675 | - | // For hashing larger byte slices, or byte streams such as those read from | |||
| 676 | - | // a file or socket, use Sendto with MSG_MORE to instruct the kernel to update | |||
| 677 | - | // the hash digest instead of creating a new one for a given chunk and finalizing it. | |||
| 678 | - | // | |||
| 679 | - | // // Assume hashfd and addr are already configured using the setup process. | |||
| 680 | - | // hash := os.NewFile(hashfd, "sha1") | |||
| 681 | - | // // Hash the contents of a file. | |||
| 682 | - | // f, _ := os.Open("/tmp/linux-4.10-rc7.tar.xz") | |||
| 683 | - | // b := make([]byte, 4096) | |||
| 684 | - | // for { | |||
| 685 | - | // n, err := f.Read(b) | |||
| 686 | - | // if err == io.EOF { | |||
| 687 | - | // break | |||
| 688 | - | // } | |||
| 689 | - | // unix.Sendto(hashfd, b[:n], unix.MSG_MORE, addr) | |||
| 690 | - | // } | |||
| 691 | - | // hash.Read(b) | |||
| 692 | - | // fmt.Println(hex.EncodeToString(b)) | |||
| 693 | - | // // Output: 85cdcad0c06eef66f805ecce353bec9accbeecc5 | |||
| 694 | - | // | |||
| 695 | - | // For more information, see: http://www.chronox.de/crypto-API/crypto/userspace-if.html. | |||
| 696 | - | type SockaddrALG struct { | |||
| 697 | - | Type string | |||
| 698 | - | Name string | |||
| 699 | - | Feature uint32 | |||
| 700 | - | Mask uint32 | |||
| 701 | - | raw RawSockaddrALG | |||
| 702 | - | } | |||
| 703 | - | ||||
| 704 | - | func (sa *SockaddrALG) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 705 | - | // Leave room for NUL byte terminator. | |||
| 706 | - | if len(sa.Type) > len(sa.raw.Type)-1 { | |||
| 707 | - | return nil, 0, EINVAL | |||
| 708 | - | } | |||
| 709 | - | if len(sa.Name) > len(sa.raw.Name)-1 { | |||
| 710 | - | return nil, 0, EINVAL | |||
| 711 | - | } | |||
| 712 | - | ||||
| 713 | - | sa.raw.Family = AF_ALG | |||
| 714 | - | sa.raw.Feat = sa.Feature | |||
| 715 | - | sa.raw.Mask = sa.Mask | |||
| 716 | - | ||||
| 717 | - | copy(sa.raw.Type[:], sa.Type) | |||
| 718 | - | copy(sa.raw.Name[:], sa.Name) | |||
| 719 | - | ||||
| 720 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrALG, nil | |||
| 721 | - | } | |||
| 722 | - | ||||
| 723 | - | // SockaddrVM implements the Sockaddr interface for AF_VSOCK type sockets. | |||
| 724 | - | // SockaddrVM provides access to Linux VM sockets: a mechanism that enables | |||
| 725 | - | // bidirectional communication between a hypervisor and its guest virtual | |||
| 726 | - | // machines. | |||
| 727 | - | type SockaddrVM struct { | |||
| 728 | - | // CID and Port specify a context ID and port address for a VM socket. | |||
| 729 | - | // Guests have a unique CID, and hosts may have a well-known CID of: | |||
| 730 | - | // - VMADDR_CID_HYPERVISOR: refers to the hypervisor process. | |||
| 731 | - | // - VMADDR_CID_LOCAL: refers to local communication (loopback). | |||
| 732 | - | // - VMADDR_CID_HOST: refers to other processes on the host. | |||
| 733 | - | CID uint32 | |||
| 734 | - | Port uint32 | |||
| 735 | - | Flags uint8 | |||
| 736 | - | raw RawSockaddrVM | |||
| 737 | - | } | |||
| 738 | - | ||||
| 739 | - | func (sa *SockaddrVM) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 740 | - | sa.raw.Family = AF_VSOCK | |||
| 741 | - | sa.raw.Port = sa.Port | |||
| 742 | - | sa.raw.Cid = sa.CID | |||
| 743 | - | sa.raw.Flags = sa.Flags | |||
| 744 | - | ||||
| 745 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrVM, nil | |||
| 746 | - | } | |||
| 747 | - | ||||
| 748 | - | type SockaddrXDP struct { | |||
| 749 | - | Flags uint16 | |||
| 750 | - | Ifindex uint32 | |||
| 751 | - | QueueID uint32 | |||
| 752 | - | SharedUmemFD uint32 | |||
| 753 | - | raw RawSockaddrXDP | |||
| 754 | - | } | |||
| 755 | - | ||||
| 756 | - | func (sa *SockaddrXDP) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 757 | - | sa.raw.Family = AF_XDP | |||
| 758 | - | sa.raw.Flags = sa.Flags | |||
| 759 | - | sa.raw.Ifindex = sa.Ifindex | |||
| 760 | - | sa.raw.Queue_id = sa.QueueID | |||
| 761 | - | sa.raw.Shared_umem_fd = sa.SharedUmemFD | |||
| 762 | - | ||||
| 763 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrXDP, nil | |||
| 764 | - | } | |||
| 765 | - | ||||
| 766 | - | // This constant mirrors the #define of PX_PROTO_OE in | |||
| 767 | - | // linux/if_pppox.h. We're defining this by hand here instead of | |||
| 768 | - | // autogenerating through mkerrors.sh because including | |||
| 769 | - | // linux/if_pppox.h causes some declaration conflicts with other | |||
| 770 | - | // includes (linux/if_pppox.h includes linux/in.h, which conflicts | |||
| 771 | - | // with netinet/in.h). Given that we only need a single zero constant | |||
| 772 | - | // out of that file, it's cleaner to just define it by hand here. | |||
| 773 | - | const px_proto_oe = 0 | |||
| 774 | - | ||||
| 775 | - | type SockaddrPPPoE struct { | |||
| 776 | - | SID uint16 | |||
| 777 | - | Remote []byte | |||
| 778 | - | Dev string | |||
| 779 | - | raw RawSockaddrPPPoX | |||
| 780 | - | } | |||
| 781 | - | ||||
| 782 | - | func (sa *SockaddrPPPoE) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 783 | - | if len(sa.Remote) != 6 { | |||
| 784 | - | return nil, 0, EINVAL | |||
| 785 | - | } | |||
| 786 | - | if len(sa.Dev) > IFNAMSIZ-1 { | |||
| 787 | - | return nil, 0, EINVAL | |||
| 788 | - | } | |||
| 789 | - | ||||
| 790 | - | *(*uint16)(unsafe.Pointer(&sa.raw[0])) = AF_PPPOX | |||
| 791 | - | // This next field is in host-endian byte order. We can't use the | |||
| 792 | - | // same unsafe pointer cast as above, because this value is not | |||
| 793 | - | // 32-bit aligned and some architectures don't allow unaligned | |||
| 794 | - | // access. | |||
| 795 | - | // | |||
| 796 | - | // However, the value of px_proto_oe is 0, so we can use | |||
| 797 | - | // encoding/binary helpers to write the bytes without worrying | |||
| 798 | - | // about the ordering. | |||
| 799 | - | binary.BigEndian.PutUint32(sa.raw[2:6], px_proto_oe) | |||
| 800 | - | // This field is deliberately big-endian, unlike the previous | |||
| 801 | - | // one. The kernel expects SID to be in network byte order. | |||
| 802 | - | binary.BigEndian.PutUint16(sa.raw[6:8], sa.SID) | |||
| 803 | - | copy(sa.raw[8:14], sa.Remote) | |||
| 804 | - | clear(sa.raw[14 : 14+IFNAMSIZ]) | |||
| 805 | - | copy(sa.raw[14:], sa.Dev) | |||
| 806 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrPPPoX, nil | |||
| 807 | - | } | |||
| 808 | - | ||||
| 809 | - | // SockaddrTIPC implements the Sockaddr interface for AF_TIPC type sockets. | |||
| 810 | - | // For more information on TIPC, see: http://tipc.sourceforge.net/. | |||
| 811 | - | type SockaddrTIPC struct { | |||
| 812 | - | // Scope is the publication scopes when binding service/service range. | |||
| 813 | - | // Should be set to TIPC_CLUSTER_SCOPE or TIPC_NODE_SCOPE. | |||
| 814 | - | Scope int | |||
| 815 | - | ||||
| 816 | - | // Addr is the type of address used to manipulate a socket. Addr must be | |||
| 817 | - | // one of: | |||
| 818 | - | // - *TIPCSocketAddr: "id" variant in the C addr union | |||
| 819 | - | // - *TIPCServiceRange: "nameseq" variant in the C addr union | |||
| 820 | - | // - *TIPCServiceName: "name" variant in the C addr union | |||
| 821 | - | // | |||
| 822 | - | // If nil, EINVAL will be returned when the structure is used. | |||
| 823 | - | Addr TIPCAddr | |||
| 824 | - | ||||
| 825 | - | raw RawSockaddrTIPC | |||
| 826 | - | } | |||
| 827 | - | ||||
| 828 | - | // TIPCAddr is implemented by types that can be used as an address for | |||
| 829 | - | // SockaddrTIPC. It is only implemented by *TIPCSocketAddr, *TIPCServiceRange, | |||
| 830 | - | // and *TIPCServiceName. | |||
| 831 | - | type TIPCAddr interface { | |||
| 832 | - | tipcAddrtype() uint8 | |||
| 833 | - | tipcAddr() [12]byte | |||
| 834 | - | } | |||
| 835 | - | ||||
| 836 | - | func (sa *TIPCSocketAddr) tipcAddr() [12]byte { | |||
| 837 | - | var out [12]byte | |||
| 838 | - | copy(out[:], (*(*[unsafe.Sizeof(TIPCSocketAddr{})]byte)(unsafe.Pointer(sa)))[:]) | |||
| 839 | - | return out | |||
| 840 | - | } | |||
| 841 | - | ||||
| 842 | - | func (sa *TIPCSocketAddr) tipcAddrtype() uint8 { return TIPC_SOCKET_ADDR } | |||
| 843 | - | ||||
| 844 | - | func (sa *TIPCServiceRange) tipcAddr() [12]byte { | |||
| 845 | - | var out [12]byte | |||
| 846 | - | copy(out[:], (*(*[unsafe.Sizeof(TIPCServiceRange{})]byte)(unsafe.Pointer(sa)))[:]) | |||
| 847 | - | return out | |||
| 848 | - | } | |||
| 849 | - | ||||
| 850 | - | func (sa *TIPCServiceRange) tipcAddrtype() uint8 { return TIPC_SERVICE_RANGE } | |||
| 851 | - | ||||
| 852 | - | func (sa *TIPCServiceName) tipcAddr() [12]byte { | |||
| 853 | - | var out [12]byte | |||
| 854 | - | copy(out[:], (*(*[unsafe.Sizeof(TIPCServiceName{})]byte)(unsafe.Pointer(sa)))[:]) | |||
| 855 | - | return out | |||
| 856 | - | } | |||
| 857 | - | ||||
| 858 | - | func (sa *TIPCServiceName) tipcAddrtype() uint8 { return TIPC_SERVICE_ADDR } | |||
| 859 | - | ||||
| 860 | - | func (sa *SockaddrTIPC) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 861 | - | if sa.Addr == nil { | |||
| 862 | - | return nil, 0, EINVAL | |||
| 863 | - | } | |||
| 864 | - | sa.raw.Family = AF_TIPC | |||
| 865 | - | sa.raw.Scope = int8(sa.Scope) | |||
| 866 | - | sa.raw.Addrtype = sa.Addr.tipcAddrtype() | |||
| 867 | - | sa.raw.Addr = sa.Addr.tipcAddr() | |||
| 868 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrTIPC, nil | |||
| 869 | - | } | |||
| 870 | - | ||||
| 871 | - | // SockaddrL2TPIP implements the Sockaddr interface for IPPROTO_L2TP/AF_INET sockets. | |||
| 872 | - | type SockaddrL2TPIP struct { | |||
| 873 | - | Addr [4]byte | |||
| 874 | - | ConnId uint32 | |||
| 875 | - | raw RawSockaddrL2TPIP | |||
| 876 | - | } | |||
| 877 | - | ||||
| 878 | - | func (sa *SockaddrL2TPIP) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 879 | - | sa.raw.Family = AF_INET | |||
| 880 | - | sa.raw.Conn_id = sa.ConnId | |||
| 881 | - | sa.raw.Addr = sa.Addr | |||
| 882 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrL2TPIP, nil | |||
| 883 | - | } | |||
| 884 | - | ||||
| 885 | - | // SockaddrL2TPIP6 implements the Sockaddr interface for IPPROTO_L2TP/AF_INET6 sockets. | |||
| 886 | - | type SockaddrL2TPIP6 struct { | |||
| 887 | - | Addr [16]byte | |||
| 888 | - | ZoneId uint32 | |||
| 889 | - | ConnId uint32 | |||
| 890 | - | raw RawSockaddrL2TPIP6 | |||
| 891 | - | } | |||
| 892 | - | ||||
| 893 | - | func (sa *SockaddrL2TPIP6) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 894 | - | sa.raw.Family = AF_INET6 | |||
| 895 | - | sa.raw.Conn_id = sa.ConnId | |||
| 896 | - | sa.raw.Scope_id = sa.ZoneId | |||
| 897 | - | sa.raw.Addr = sa.Addr | |||
| 898 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrL2TPIP6, nil | |||
| 899 | - | } | |||
| 900 | - | ||||
| 901 | - | // SockaddrIUCV implements the Sockaddr interface for AF_IUCV sockets. | |||
| 902 | - | type SockaddrIUCV struct { | |||
| 903 | - | UserID string | |||
| 904 | - | Name string | |||
| 905 | - | raw RawSockaddrIUCV | |||
| 906 | - | } | |||
| 907 | - | ||||
| 908 | - | func (sa *SockaddrIUCV) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 909 | - | sa.raw.Family = AF_IUCV | |||
| 910 | - | // These are EBCDIC encoded by the kernel, but we still need to pad them | |||
| 911 | - | // with blanks. Initializing with blanks allows the caller to feed in either | |||
| 912 | - | // a padded or an unpadded string. | |||
| 913 | - | for i := range 8 { | |||
| 914 | - | sa.raw.Nodeid[i] = ' ' | |||
| 915 | - | sa.raw.User_id[i] = ' ' | |||
| 916 | - | sa.raw.Name[i] = ' ' | |||
| 917 | - | } | |||
| 918 | - | if len(sa.UserID) > 8 || len(sa.Name) > 8 { | |||
| 919 | - | return nil, 0, EINVAL | |||
| 920 | - | } | |||
| 921 | - | for i, b := range []byte(sa.UserID[:]) { | |||
| 922 | - | sa.raw.User_id[i] = int8(b) | |||
| 923 | - | } | |||
| 924 | - | for i, b := range []byte(sa.Name[:]) { | |||
| 925 | - | sa.raw.Name[i] = int8(b) | |||
| 926 | - | } | |||
| 927 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrIUCV, nil | |||
| 928 | - | } | |||
| 929 | - | ||||
| 930 | - | type SockaddrNFC struct { | |||
| 931 | - | DeviceIdx uint32 | |||
| 932 | - | TargetIdx uint32 | |||
| 933 | - | NFCProtocol uint32 | |||
| 934 | - | raw RawSockaddrNFC | |||
| 935 | - | } | |||
| 936 | - | ||||
| 937 | - | func (sa *SockaddrNFC) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 938 | - | sa.raw.Sa_family = AF_NFC | |||
| 939 | - | sa.raw.Dev_idx = sa.DeviceIdx | |||
| 940 | - | sa.raw.Target_idx = sa.TargetIdx | |||
| 941 | - | sa.raw.Nfc_protocol = sa.NFCProtocol | |||
| 942 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrNFC, nil | |||
| 943 | - | } | |||
| 944 | - | ||||
| 945 | - | type SockaddrNFCLLCP struct { | |||
| 946 | - | DeviceIdx uint32 | |||
| 947 | - | TargetIdx uint32 | |||
| 948 | - | NFCProtocol uint32 | |||
| 949 | - | DestinationSAP uint8 | |||
| 950 | - | SourceSAP uint8 | |||
| 951 | - | ServiceName string | |||
| 952 | - | raw RawSockaddrNFCLLCP | |||
| 953 | - | } | |||
| 954 | - | ||||
| 955 | - | func (sa *SockaddrNFCLLCP) sockaddr() (unsafe.Pointer, _Socklen, error) { | |||
| 956 | - | sa.raw.Sa_family = AF_NFC | |||
| 957 | - | sa.raw.Dev_idx = sa.DeviceIdx | |||
| 958 | - | sa.raw.Target_idx = sa.TargetIdx | |||
| 959 | - | sa.raw.Nfc_protocol = sa.NFCProtocol | |||
| 960 | - | sa.raw.Dsap = sa.DestinationSAP | |||
| 961 | - | sa.raw.Ssap = sa.SourceSAP | |||
| 962 | - | if len(sa.ServiceName) > len(sa.raw.Service_name) { | |||
| 963 | - | return nil, 0, EINVAL | |||
| 964 | - | } | |||
| 965 | - | copy(sa.raw.Service_name[:], sa.ServiceName) | |||
| 966 | - | sa.raw.SetServiceNameLen(len(sa.ServiceName)) | |||
| 967 | - | return unsafe.Pointer(&sa.raw), SizeofSockaddrNFCLLCP, nil | |||
| 968 | - | } | |||
| 969 | - | ||||
| 970 | - | var socketProtocol = func(fd int) (int, error) { | |||
| 971 | - | return GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL) | |||
| 972 | - | } | |||
| 973 | - | ||||
| 974 | - | func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { | |||
| 975 | - | switch rsa.Addr.Family { | |||
| 976 | - | case AF_NETLINK: | |||
| 977 | - | pp := (*RawSockaddrNetlink)(unsafe.Pointer(rsa)) | |||
| 978 | - | sa := new(SockaddrNetlink) | |||
| 979 | - | sa.Family = pp.Family | |||
| 980 | - | sa.Pad = pp.Pad | |||
| 981 | - | sa.Pid = pp.Pid | |||
| 982 | - | sa.Groups = pp.Groups | |||
| 983 | - | return sa, nil | |||
| 984 | - | ||||
| 985 | - | case AF_PACKET: | |||
| 986 | - | pp := (*RawSockaddrLinklayer)(unsafe.Pointer(rsa)) | |||
| 987 | - | sa := new(SockaddrLinklayer) | |||
| 988 | - | sa.Protocol = pp.Protocol | |||
| 989 | - | sa.Ifindex = int(pp.Ifindex) | |||
| 990 | - | sa.Hatype = pp.Hatype | |||
| 991 | - | sa.Pkttype = pp.Pkttype | |||
| 992 | - | sa.Halen = pp.Halen | |||
| 993 | - | sa.Addr = pp.Addr | |||
| 994 | - | return sa, nil | |||
| 995 | - | ||||
| 996 | - | case AF_UNIX: | |||
| 997 | - | pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa)) | |||
| 998 | - | sa := new(SockaddrUnix) | |||
| 999 | - | if pp.Path[0] == 0 { | |||
| 1000 | - | // "Abstract" Unix domain socket. | |||
| 1001 | - | // Rewrite leading NUL as @ for textual display. | |||
| 1002 | - | // (This is the standard convention.) | |||
| 1003 | - | // Not friendly to overwrite in place, | |||
| 1004 | - | // but the callers below don't care. | |||
| 1005 | - | pp.Path[0] = '@' | |||
| 1006 | - | } | |||
| 1007 | - | ||||
| 1008 | - | // Assume path ends at NUL. | |||
| 1009 | - | // This is not technically the Linux semantics for | |||
| 1010 | - | // abstract Unix domain sockets--they are supposed | |||
| 1011 | - | // to be uninterpreted fixed-size binary blobs--but | |||
| 1012 | - | // everyone uses this convention. | |||
| 1013 | - | n := 0 | |||
| 1014 | - | for n < len(pp.Path) && pp.Path[n] != 0 { | |||
| 1015 | - | n++ | |||
| 1016 | - | } | |||
| 1017 | - | sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n)) | |||
| 1018 | - | return sa, nil | |||
| 1019 | - | ||||
| 1020 | - | case AF_INET: | |||
| 1021 | - | proto, err := socketProtocol(fd) | |||
| 1022 | - | if err != nil { | |||
| 1023 | - | return nil, err | |||
| 1024 | - | } | |||
| 1025 | - | ||||
| 1026 | - | switch proto { | |||
| 1027 | - | case IPPROTO_L2TP: | |||
| 1028 | - | pp := (*RawSockaddrL2TPIP)(unsafe.Pointer(rsa)) | |||
| 1029 | - | sa := new(SockaddrL2TPIP) | |||
| 1030 | - | sa.ConnId = pp.Conn_id | |||
| 1031 | - | sa.Addr = pp.Addr | |||
| 1032 | - | return sa, nil | |||
| 1033 | - | default: | |||
| 1034 | - | pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa)) | |||
| 1035 | - | sa := new(SockaddrInet4) | |||
| 1036 | - | p := (*[2]byte)(unsafe.Pointer(&pp.Port)) | |||
| 1037 | - | sa.Port = int(p[0])<<8 + int(p[1]) | |||
| 1038 | - | sa.Addr = pp.Addr | |||
| 1039 | - | return sa, nil | |||
| 1040 | - | } | |||
| 1041 | - | ||||
| 1042 | - | case AF_INET6: | |||
| 1043 | - | proto, err := socketProtocol(fd) | |||
| 1044 | - | if err != nil { | |||
| 1045 | - | return nil, err | |||
| 1046 | - | } | |||
| 1047 | - | ||||
| 1048 | - | switch proto { | |||
| 1049 | - | case IPPROTO_L2TP: | |||
| 1050 | - | pp := (*RawSockaddrL2TPIP6)(unsafe.Pointer(rsa)) | |||
| 1051 | - | sa := new(SockaddrL2TPIP6) | |||
| 1052 | - | sa.ConnId = pp.Conn_id | |||
| 1053 | - | sa.ZoneId = pp.Scope_id | |||
| 1054 | - | sa.Addr = pp.Addr | |||
| 1055 | - | return sa, nil | |||
| 1056 | - | default: | |||
| 1057 | - | pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa)) | |||
| 1058 | - | sa := new(SockaddrInet6) | |||
| 1059 | - | p := (*[2]byte)(unsafe.Pointer(&pp.Port)) | |||
| 1060 | - | sa.Port = int(p[0])<<8 + int(p[1]) | |||
| 1061 | - | sa.ZoneId = pp.Scope_id | |||
| 1062 | - | sa.Addr = pp.Addr | |||
| 1063 | - | return sa, nil | |||
| 1064 | - | } | |||
| 1065 | - | ||||
| 1066 | - | case AF_VSOCK: | |||
| 1067 | - | pp := (*RawSockaddrVM)(unsafe.Pointer(rsa)) | |||
| 1068 | - | sa := &SockaddrVM{ | |||
| 1069 | - | CID: pp.Cid, | |||
| 1070 | - | Port: pp.Port, | |||
| 1071 | - | Flags: pp.Flags, | |||
| 1072 | - | } | |||
| 1073 | - | return sa, nil | |||
| 1074 | - | case AF_BLUETOOTH: | |||
| 1075 | - | proto, err := socketProtocol(fd) | |||
| 1076 | - | if err != nil { | |||
| 1077 | - | return nil, err | |||
| 1078 | - | } | |||
| 1079 | - | // only BTPROTO_L2CAP and BTPROTO_RFCOMM can accept connections | |||
| 1080 | - | switch proto { | |||
| 1081 | - | case BTPROTO_L2CAP: | |||
| 1082 | - | pp := (*RawSockaddrL2)(unsafe.Pointer(rsa)) | |||
| 1083 | - | sa := &SockaddrL2{ | |||
| 1084 | - | PSM: pp.Psm, | |||
| 1085 | - | CID: pp.Cid, | |||
| 1086 | - | Addr: pp.Bdaddr, | |||
| 1087 | - | AddrType: pp.Bdaddr_type, | |||
| 1088 | - | } | |||
| 1089 | - | return sa, nil | |||
| 1090 | - | case BTPROTO_RFCOMM: | |||
| 1091 | - | pp := (*RawSockaddrRFCOMM)(unsafe.Pointer(rsa)) | |||
| 1092 | - | sa := &SockaddrRFCOMM{ | |||
| 1093 | - | Channel: pp.Channel, | |||
| 1094 | - | Addr: pp.Bdaddr, | |||
| 1095 | - | } | |||
| 1096 | - | return sa, nil | |||
| 1097 | - | } | |||
| 1098 | - | case AF_XDP: | |||
| 1099 | - | pp := (*RawSockaddrXDP)(unsafe.Pointer(rsa)) | |||
| 1100 | - | sa := &SockaddrXDP{ | |||
| 1101 | - | Flags: pp.Flags, | |||
| 1102 | - | Ifindex: pp.Ifindex, | |||
| 1103 | - | QueueID: pp.Queue_id, | |||
| 1104 | - | SharedUmemFD: pp.Shared_umem_fd, | |||
| 1105 | - | } | |||
| 1106 | - | return sa, nil | |||
| 1107 | - | case AF_PPPOX: | |||
| 1108 | - | pp := (*RawSockaddrPPPoX)(unsafe.Pointer(rsa)) | |||
| 1109 | - | if binary.BigEndian.Uint32(pp[2:6]) != px_proto_oe { | |||
| 1110 | - | return nil, EINVAL | |||
| 1111 | - | } | |||
| 1112 | - | sa := &SockaddrPPPoE{ | |||
| 1113 | - | SID: binary.BigEndian.Uint16(pp[6:8]), | |||
| 1114 | - | Remote: pp[8:14], | |||
| 1115 | - | } | |||
| 1116 | - | for i := 14; i < 14+IFNAMSIZ; i++ { | |||
| 1117 | - | if pp[i] == 0 { | |||
| 1118 | - | sa.Dev = string(pp[14:i]) | |||
| 1119 | - | break | |||
| 1120 | - | } | |||
| 1121 | - | } | |||
| 1122 | - | return sa, nil | |||
| 1123 | - | case AF_TIPC: | |||
| 1124 | - | pp := (*RawSockaddrTIPC)(unsafe.Pointer(rsa)) | |||
| 1125 | - | ||||
| 1126 | - | sa := &SockaddrTIPC{ | |||
| 1127 | - | Scope: int(pp.Scope), | |||
| 1128 | - | } | |||
| 1129 | - | ||||
| 1130 | - | // Determine which union variant is present in pp.Addr by checking | |||
| 1131 | - | // pp.Addrtype. | |||
| 1132 | - | switch pp.Addrtype { | |||
| 1133 | - | case TIPC_SERVICE_RANGE: | |||
| 1134 | - | sa.Addr = (*TIPCServiceRange)(unsafe.Pointer(&pp.Addr)) | |||
| 1135 | - | case TIPC_SERVICE_ADDR: | |||
| 1136 | - | sa.Addr = (*TIPCServiceName)(unsafe.Pointer(&pp.Addr)) | |||
| 1137 | - | case TIPC_SOCKET_ADDR: | |||
| 1138 | - | sa.Addr = (*TIPCSocketAddr)(unsafe.Pointer(&pp.Addr)) | |||
| 1139 | - | default: | |||
| 1140 | - | return nil, EINVAL | |||
| 1141 | - | } | |||
| 1142 | - | ||||
| 1143 | - | return sa, nil | |||
| 1144 | - | case AF_IUCV: | |||
| 1145 | - | pp := (*RawSockaddrIUCV)(unsafe.Pointer(rsa)) | |||
| 1146 | - | ||||
| 1147 | - | var user [8]byte | |||
| 1148 | - | var name [8]byte | |||
| 1149 | - | ||||
| 1150 | - | for i := range 8 { | |||
| 1151 | - | user[i] = byte(pp.User_id[i]) | |||
| 1152 | - | name[i] = byte(pp.Name[i]) | |||
| 1153 | - | } | |||
| 1154 | - | ||||
| 1155 | - | sa := &SockaddrIUCV{ | |||
| 1156 | - | UserID: string(user[:]), | |||
| 1157 | - | Name: string(name[:]), | |||
| 1158 | - | } | |||
| 1159 | - | return sa, nil | |||
| 1160 | - | ||||
| 1161 | - | case AF_CAN: | |||
| 1162 | - | proto, err := socketProtocol(fd) | |||
| 1163 | - | if err != nil { | |||
| 1164 | - | return nil, err | |||
| 1165 | - | } | |||
| 1166 | - | ||||
| 1167 | - | pp := (*RawSockaddrCAN)(unsafe.Pointer(rsa)) | |||
| 1168 | - | ||||
| 1169 | - | switch proto { | |||
| 1170 | - | case CAN_J1939: | |||
| 1171 | - | sa := &SockaddrCANJ1939{ | |||
| 1172 | - | Ifindex: int(pp.Ifindex), | |||
| 1173 | - | } | |||
| 1174 | - | name := (*[8]byte)(unsafe.Pointer(&sa.Name)) | |||
| 1175 | - | for i := range 8 { | |||
| 1176 | - | name[i] = pp.Addr[i] | |||
| 1177 | - | } | |||
| 1178 | - | pgn := (*[4]byte)(unsafe.Pointer(&sa.PGN)) | |||
| 1179 | - | for i := range 4 { | |||
| 1180 | - | pgn[i] = pp.Addr[i+8] | |||
| 1181 | - | } | |||
| 1182 | - | addr := (*[1]byte)(unsafe.Pointer(&sa.Addr)) | |||
| 1183 | - | addr[0] = pp.Addr[12] | |||
| 1184 | - | return sa, nil | |||
| 1185 | - | default: | |||
| 1186 | - | sa := &SockaddrCAN{ | |||
| 1187 | - | Ifindex: int(pp.Ifindex), | |||
| 1188 | - | } | |||
| 1189 | - | rx := (*[4]byte)(unsafe.Pointer(&sa.RxID)) | |||
| 1190 | - | for i := range 4 { | |||
| 1191 | - | rx[i] = pp.Addr[i] | |||
| 1192 | - | } | |||
| 1193 | - | tx := (*[4]byte)(unsafe.Pointer(&sa.TxID)) | |||
| 1194 | - | for i := range 4 { | |||
| 1195 | - | tx[i] = pp.Addr[i+4] | |||
| 1196 | - | } | |||
| 1197 | - | return sa, nil | |||
| 1198 | - | } | |||
| 1199 | - | case AF_NFC: | |||
| 1200 | - | proto, err := socketProtocol(fd) | |||
| 1201 | - | if err != nil { | |||
| 1202 | - | return nil, err | |||
| 1203 | - | } | |||
| 1204 | - | switch proto { | |||
| 1205 | - | case NFC_SOCKPROTO_RAW: | |||
| 1206 | - | pp := (*RawSockaddrNFC)(unsafe.Pointer(rsa)) | |||
| 1207 | - | sa := &SockaddrNFC{ | |||
| 1208 | - | DeviceIdx: pp.Dev_idx, | |||
| 1209 | - | TargetIdx: pp.Target_idx, | |||
| 1210 | - | NFCProtocol: pp.Nfc_protocol, | |||
| 1211 | - | } | |||
| 1212 | - | return sa, nil | |||
| 1213 | - | case NFC_SOCKPROTO_LLCP: | |||
| 1214 | - | pp := (*RawSockaddrNFCLLCP)(unsafe.Pointer(rsa)) | |||
| 1215 | - | if uint64(pp.Service_name_len) > uint64(len(pp.Service_name)) { | |||
| 1216 | - | return nil, EINVAL | |||
| 1217 | - | } | |||
| 1218 | - | sa := &SockaddrNFCLLCP{ | |||
| 1219 | - | DeviceIdx: pp.Dev_idx, | |||
| 1220 | - | TargetIdx: pp.Target_idx, | |||
| 1221 | - | NFCProtocol: pp.Nfc_protocol, | |||
| 1222 | - | DestinationSAP: pp.Dsap, | |||
| 1223 | - | SourceSAP: pp.Ssap, | |||
| 1224 | - | ServiceName: string(pp.Service_name[:pp.Service_name_len]), | |||
| 1225 | - | } | |||
| 1226 | - | return sa, nil | |||
| 1227 | - | default: | |||
| 1228 | - | return nil, EINVAL | |||
| 1229 | - | } | |||
| 1230 | - | } | |||
| 1231 | - | return nil, EAFNOSUPPORT | |||
| 1232 | - | } | |||
| 1233 | - | ||||
| 1234 | - | func Accept(fd int) (nfd int, sa Sockaddr, err error) { | |||
| 1235 | - | var rsa RawSockaddrAny | |||
| 1236 | - | var len _Socklen = SizeofSockaddrAny | |||
| 1237 | - | nfd, err = accept4(fd, &rsa, &len, 0) | |||
| 1238 | - | if err != nil { | |||
| 1239 | - | return | |||
| 1240 | - | } | |||
| 1241 | - | sa, err = anyToSockaddr(fd, &rsa) | |||
| 1242 | - | if err != nil { | |||
| 1243 | - | Close(nfd) | |||
| 1244 | - | nfd = 0 | |||
| 1245 | - | } | |||
| 1246 | - | return | |||
| 1247 | - | } | |||
| 1248 | - | ||||
| 1249 | - | func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) { | |||
| 1250 | - | var rsa RawSockaddrAny | |||
| 1251 | - | var len _Socklen = SizeofSockaddrAny | |||
| 1252 | - | nfd, err = accept4(fd, &rsa, &len, flags) | |||
| 1253 | - | if err != nil { | |||
| 1254 | - | return | |||
| 1255 | - | } | |||
| 1256 | - | if len > SizeofSockaddrAny { | |||
| 1257 | - | panic("RawSockaddrAny too small") | |||
| 1258 | - | } | |||
| 1259 | - | sa, err = anyToSockaddr(fd, &rsa) | |||
| 1260 | - | if err != nil { | |||
| 1261 | - | Close(nfd) | |||
| 1262 | - | nfd = 0 | |||
| 1263 | - | } | |||
| 1264 | - | return | |||
| 1265 | - | } | |||
| 1266 | - | ||||
| 1267 | - | func Getsockname(fd int) (sa Sockaddr, err error) { | |||
| 1268 | - | var rsa RawSockaddrAny | |||
| 1269 | - | var len _Socklen = SizeofSockaddrAny | |||
| 1270 | - | if err = getsockname(fd, &rsa, &len); err != nil { | |||
| 1271 | - | return | |||
| 1272 | - | } | |||
| 1273 | - | return anyToSockaddr(fd, &rsa) | |||
| 1274 | - | } | |||
| 1275 | - | ||||
| 1276 | - | func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) { | |||
| 1277 | - | var value IPMreqn | |||
| 1278 | - | vallen := _Socklen(SizeofIPMreqn) | |||
| 1279 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) | |||
| 1280 | - | return &value, err | |||
| 1281 | - | } | |||
| 1282 | - | ||||
| 1283 | - | func GetsockoptUcred(fd, level, opt int) (*Ucred, error) { | |||
| 1284 | - | var value Ucred | |||
| 1285 | - | vallen := _Socklen(SizeofUcred) | |||
| 1286 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) | |||
| 1287 | - | return &value, err | |||
| 1288 | - | } | |||
| 1289 | - | ||||
| 1290 | - | func GetsockoptTCPInfo(fd, level, opt int) (*TCPInfo, error) { | |||
| 1291 | - | var value TCPInfo | |||
| 1292 | - | vallen := _Socklen(SizeofTCPInfo) | |||
| 1293 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) | |||
| 1294 | - | return &value, err | |||
| 1295 | - | } | |||
| 1296 | - | ||||
| 1297 | - | // GetsockoptTCPCCVegasInfo returns algorithm specific congestion control information for a socket using the "vegas" | |||
| 1298 | - | // algorithm. | |||
| 1299 | - | // | |||
| 1300 | - | // The socket's congestion control algorighm can be retrieved via [GetsockoptString] with the [TCP_CONGESTION] option: | |||
| 1301 | - | // | |||
| 1302 | - | // algo, err := unix.GetsockoptString(fd, unix.IPPROTO_TCP, unix.TCP_CONGESTION) | |||
| 1303 | - | func GetsockoptTCPCCVegasInfo(fd, level, opt int) (*TCPVegasInfo, error) { | |||
| 1304 | - | var value [SizeofTCPCCInfo / 4]uint32 // ensure proper alignment | |||
| 1305 | - | vallen := _Socklen(SizeofTCPCCInfo) | |||
| 1306 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen) | |||
| 1307 | - | out := (*TCPVegasInfo)(unsafe.Pointer(&value[0])) | |||
| 1308 | - | return out, err | |||
| 1309 | - | } | |||
| 1310 | - | ||||
| 1311 | - | // GetsockoptTCPCCDCTCPInfo returns algorithm specific congestion control information for a socket using the "dctp" | |||
| 1312 | - | // algorithm. | |||
| 1313 | - | // | |||
| 1314 | - | // The socket's congestion control algorighm can be retrieved via [GetsockoptString] with the [TCP_CONGESTION] option: | |||
| 1315 | - | // | |||
| 1316 | - | // algo, err := unix.GetsockoptString(fd, unix.IPPROTO_TCP, unix.TCP_CONGESTION) | |||
| 1317 | - | func GetsockoptTCPCCDCTCPInfo(fd, level, opt int) (*TCPDCTCPInfo, error) { | |||
| 1318 | - | var value [SizeofTCPCCInfo / 4]uint32 // ensure proper alignment | |||
| 1319 | - | vallen := _Socklen(SizeofTCPCCInfo) | |||
| 1320 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen) | |||
| 1321 | - | out := (*TCPDCTCPInfo)(unsafe.Pointer(&value[0])) | |||
| 1322 | - | return out, err | |||
| 1323 | - | } | |||
| 1324 | - | ||||
| 1325 | - | // GetsockoptTCPCCBBRInfo returns algorithm specific congestion control information for a socket using the "bbr" | |||
| 1326 | - | // algorithm. | |||
| 1327 | - | // | |||
| 1328 | - | // The socket's congestion control algorighm can be retrieved via [GetsockoptString] with the [TCP_CONGESTION] option: | |||
| 1329 | - | // | |||
| 1330 | - | // algo, err := unix.GetsockoptString(fd, unix.IPPROTO_TCP, unix.TCP_CONGESTION) | |||
| 1331 | - | func GetsockoptTCPCCBBRInfo(fd, level, opt int) (*TCPBBRInfo, error) { | |||
| 1332 | - | var value [SizeofTCPCCInfo / 4]uint32 // ensure proper alignment | |||
| 1333 | - | vallen := _Socklen(SizeofTCPCCInfo) | |||
| 1334 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen) | |||
| 1335 | - | out := (*TCPBBRInfo)(unsafe.Pointer(&value[0])) | |||
| 1336 | - | return out, err | |||
| 1337 | - | } | |||
| 1338 | - | ||||
| 1339 | - | // GetsockoptString returns the string value of the socket option opt for the | |||
| 1340 | - | // socket associated with fd at the given socket level. | |||
| 1341 | - | func GetsockoptString(fd, level, opt int) (string, error) { | |||
| 1342 | - | buf := make([]byte, 256) | |||
| 1343 | - | vallen := _Socklen(len(buf)) | |||
| 1344 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&buf[0]), &vallen) | |||
| 1345 | - | if err != nil { | |||
| 1346 | - | if err == ERANGE { | |||
| 1347 | - | buf = make([]byte, vallen) | |||
| 1348 | - | err = getsockopt(fd, level, opt, unsafe.Pointer(&buf[0]), &vallen) | |||
| 1349 | - | } | |||
| 1350 | - | if err != nil { | |||
| 1351 | - | return "", err | |||
| 1352 | - | } | |||
| 1353 | - | } | |||
| 1354 | - | return ByteSliceToString(buf[:vallen]), nil | |||
| 1355 | - | } | |||
| 1356 | - | ||||
| 1357 | - | func GetsockoptTpacketStats(fd, level, opt int) (*TpacketStats, error) { | |||
| 1358 | - | var value TpacketStats | |||
| 1359 | - | vallen := _Socklen(SizeofTpacketStats) | |||
| 1360 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) | |||
| 1361 | - | return &value, err | |||
| 1362 | - | } | |||
| 1363 | - | ||||
| 1364 | - | func GetsockoptTpacketStatsV3(fd, level, opt int) (*TpacketStatsV3, error) { | |||
| 1365 | - | var value TpacketStatsV3 | |||
| 1366 | - | vallen := _Socklen(SizeofTpacketStatsV3) | |||
| 1367 | - | err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) | |||
| 1368 | - | return &value, err | |||
| 1369 | - | } | |||
| 1370 | - | ||||
| 1371 | - | func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) { | |||
| 1372 | - | return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq)) | |||
| 1373 | - | } | |||
| 1374 | - | ||||
| 1375 | - | func SetsockoptPacketMreq(fd, level, opt int, mreq *PacketMreq) error { | |||
| 1376 | - | return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq)) | |||
| 1377 | - | } | |||
| 1378 | - | ||||
| 1379 | - | // SetsockoptSockFprog attaches a classic BPF or an extended BPF program to a | |||
| 1380 | - | // socket to filter incoming packets. See 'man 7 socket' for usage information. | |||
| 1381 | - | func SetsockoptSockFprog(fd, level, opt int, fprog *SockFprog) error { | |||
| 1382 | - | return setsockopt(fd, level, opt, unsafe.Pointer(fprog), unsafe.Sizeof(*fprog)) | |||
| 1383 | - | } | |||
| 1384 | - | ||||
| 1385 | - | func SetsockoptCanRawFilter(fd, level, opt int, filter []CanFilter) error { | |||
| 1386 | - | var p unsafe.Pointer | |||
| 1387 | - | if len(filter) > 0 { | |||
| 1388 | - | p = unsafe.Pointer(&filter[0]) | |||
| 1389 | - | } | |||
| 1390 | - | return setsockopt(fd, level, opt, p, uintptr(len(filter)*SizeofCanFilter)) | |||
| 1391 | - | } | |||
| 1392 | - | ||||
| 1393 | - | func SetsockoptTpacketReq(fd, level, opt int, tp *TpacketReq) error { | |||
| 1394 | - | return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp)) | |||
| 1395 | - | } | |||
| 1396 | - | ||||
| 1397 | - | func SetsockoptTpacketReq3(fd, level, opt int, tp *TpacketReq3) error { | |||
| 1398 | - | return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp)) | |||
| 1399 | - | } | |||
| 1400 | - | ||||
| 1401 | - | func SetsockoptTCPRepairOpt(fd, level, opt int, o []TCPRepairOpt) (err error) { | |||
| 1402 | - | if len(o) == 0 { | |||
| 1403 | - | return EINVAL | |||
| 1404 | - | } | |||
| 1405 | - | return setsockopt(fd, level, opt, unsafe.Pointer(&o[0]), uintptr(SizeofTCPRepairOpt*len(o))) | |||
| 1406 | - | } | |||
| 1407 | - | ||||
| 1408 | - | func SetsockoptTCPMD5Sig(fd, level, opt int, s *TCPMD5Sig) error { | |||
| 1409 | - | return setsockopt(fd, level, opt, unsafe.Pointer(s), unsafe.Sizeof(*s)) | |||
| 1410 | - | } | |||
| 1411 | - | ||||
| 1412 | - | // Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html) | |||
| 1413 | - | ||||
| 1414 | - | // KeyctlInt calls keyctl commands in which each argument is an int. | |||
| 1415 | - | // These commands are KEYCTL_REVOKE, KEYCTL_CHOWN, KEYCTL_CLEAR, KEYCTL_LINK, | |||
| 1416 | - | // KEYCTL_UNLINK, KEYCTL_NEGATE, KEYCTL_SET_REQKEY_KEYRING, KEYCTL_SET_TIMEOUT, | |||
| 1417 | - | // KEYCTL_ASSUME_AUTHORITY, KEYCTL_SESSION_TO_PARENT, KEYCTL_REJECT, | |||
| 1418 | - | // KEYCTL_INVALIDATE, and KEYCTL_GET_PERSISTENT. | |||
| 1419 | - | //sys KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) = SYS_KEYCTL | |||
| 1420 | - | ||||
| 1421 | - | // KeyctlBuffer calls keyctl commands in which the third and fourth | |||
| 1422 | - | // arguments are a buffer and its length, respectively. | |||
| 1423 | - | // These commands are KEYCTL_UPDATE, KEYCTL_READ, and KEYCTL_INSTANTIATE. | |||
| 1424 | - | //sys KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) = SYS_KEYCTL | |||
| 1425 | - | ||||
| 1426 | - | // KeyctlString calls keyctl commands which return a string. | |||
| 1427 | - | // These commands are KEYCTL_DESCRIBE and KEYCTL_GET_SECURITY. | |||
| 1428 | - | func KeyctlString(cmd int, id int) (string, error) { | |||
| 1429 | - | // We must loop as the string data may change in between the syscalls. | |||
| 1430 | - | // We could allocate a large buffer here to reduce the chance that the | |||
| 1431 | - | // syscall needs to be called twice; however, this is unnecessary as | |||
| 1432 | - | // the performance loss is negligible. | |||
| 1433 | - | var buffer []byte | |||
| 1434 | - | for { | |||
| 1435 | - | // Try to fill the buffer with data | |||
| 1436 | - | length, err := KeyctlBuffer(cmd, id, buffer, 0) | |||
| 1437 | - | if err != nil { | |||
| 1438 | - | return "", err | |||
| 1439 | - | } | |||
| 1440 | - | ||||
| 1441 | - | // Check if the data was written | |||
| 1442 | - | if length <= len(buffer) { | |||
| 1443 | - | // Exclude the null terminator | |||
| 1444 | - | return string(buffer[:length-1]), nil | |||
| 1445 | - | } | |||
| 1446 | - | ||||
| 1447 | - | // Make a bigger buffer if needed | |||
| 1448 | - | buffer = make([]byte, length) | |||
| 1449 | - | } | |||
| 1450 | - | } | |||
| 1451 | - | ||||
| 1452 | - | // Keyctl commands with special signatures. | |||
| 1453 | - | ||||
| 1454 | - | // KeyctlGetKeyringID implements the KEYCTL_GET_KEYRING_ID command. | |||
| 1455 | - | // See the full documentation at: | |||
| 1456 | - | // http://man7.org/linux/man-pages/man3/keyctl_get_keyring_ID.3.html | |||
| 1457 | - | func KeyctlGetKeyringID(id int, create bool) (ringid int, err error) { | |||
| 1458 | - | createInt := 0 | |||
| 1459 | - | if create { | |||
| 1460 | - | createInt = 1 | |||
| 1461 | - | } | |||
| 1462 | - | return KeyctlInt(KEYCTL_GET_KEYRING_ID, id, createInt, 0, 0) | |||
| 1463 | - | } | |||
| 1464 | - | ||||
| 1465 | - | // KeyctlSetperm implements the KEYCTL_SETPERM command. The perm value is the | |||
| 1466 | - | // key handle permission mask as described in the "keyctl setperm" section of | |||
| 1467 | - | // http://man7.org/linux/man-pages/man1/keyctl.1.html. | |||
| 1468 | - | // See the full documentation at: | |||
| 1469 | - | // http://man7.org/linux/man-pages/man3/keyctl_setperm.3.html | |||
| 1470 | - | func KeyctlSetperm(id int, perm uint32) error { | |||
| 1471 | - | _, err := KeyctlInt(KEYCTL_SETPERM, id, int(perm), 0, 0) | |||
| 1472 | - | return err | |||
| 1473 | - | } | |||
| 1474 | - | ||||
| 1475 | - | //sys keyctlJoin(cmd int, arg2 string) (ret int, err error) = SYS_KEYCTL | |||
| 1476 | - | ||||
| 1477 | - | // KeyctlJoinSessionKeyring implements the KEYCTL_JOIN_SESSION_KEYRING command. | |||
| 1478 | - | // See the full documentation at: | |||
| 1479 | - | // http://man7.org/linux/man-pages/man3/keyctl_join_session_keyring.3.html | |||
| 1480 | - | func KeyctlJoinSessionKeyring(name string) (ringid int, err error) { | |||
| 1481 | - | return keyctlJoin(KEYCTL_JOIN_SESSION_KEYRING, name) | |||
| 1482 | - | } | |||
| 1483 | - | ||||
| 1484 | - | //sys keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) = SYS_KEYCTL | |||
| 1485 | - | ||||
| 1486 | - | // KeyctlSearch implements the KEYCTL_SEARCH command. | |||
| 1487 | - | // See the full documentation at: | |||
| 1488 | - | // http://man7.org/linux/man-pages/man3/keyctl_search.3.html | |||
| 1489 | - | func KeyctlSearch(ringid int, keyType, description string, destRingid int) (id int, err error) { | |||
| 1490 | - | return keyctlSearch(KEYCTL_SEARCH, ringid, keyType, description, destRingid) | |||
| 1491 | - | } | |||
| 1492 | - | ||||
| 1493 | - | //sys keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) = SYS_KEYCTL | |||
| 1494 | - | ||||
| 1495 | - | // KeyctlInstantiateIOV implements the KEYCTL_INSTANTIATE_IOV command. This | |||
| 1496 | - | // command is similar to KEYCTL_INSTANTIATE, except that the payload is a slice | |||
| 1497 | - | // of Iovec (each of which represents a buffer) instead of a single buffer. | |||
| 1498 | - | // See the full documentation at: | |||
| 1499 | - | // http://man7.org/linux/man-pages/man3/keyctl_instantiate_iov.3.html | |||
| 1500 | - | func KeyctlInstantiateIOV(id int, payload []Iovec, ringid int) error { | |||
| 1501 | - | return keyctlIOV(KEYCTL_INSTANTIATE_IOV, id, payload, ringid) | |||
| 1502 | - | } | |||
| 1503 | - | ||||
| 1504 | - | //sys keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) = SYS_KEYCTL | |||
| 1505 | - | ||||
| 1506 | - | // KeyctlDHCompute implements the KEYCTL_DH_COMPUTE command. This command | |||
| 1507 | - | // computes a Diffie-Hellman shared secret based on the provide params. The | |||
| 1508 | - | // secret is written to the provided buffer and the returned size is the number | |||
| 1509 | - | // of bytes written (returning an error if there is insufficient space in the | |||
| 1510 | - | // buffer). If a nil buffer is passed in, this function returns the minimum | |||
| 1511 | - | // buffer length needed to store the appropriate data. Note that this differs | |||
| 1512 | - | // from KEYCTL_READ's behavior which always returns the requested payload size. | |||
| 1513 | - | // See the full documentation at: | |||
| 1514 | - | // http://man7.org/linux/man-pages/man3/keyctl_dh_compute.3.html | |||
| 1515 | - | func KeyctlDHCompute(params *KeyctlDHParams, buffer []byte) (size int, err error) { | |||
| 1516 | - | return keyctlDH(KEYCTL_DH_COMPUTE, params, buffer) | |||
| 1517 | - | } | |||
| 1518 | - | ||||
| 1519 | - | // KeyctlRestrictKeyring implements the KEYCTL_RESTRICT_KEYRING command. This | |||
| 1520 | - | // command limits the set of keys that can be linked to the keyring, regardless | |||
| 1521 | - | // of keyring permissions. The command requires the "setattr" permission. | |||
| 1522 | - | // | |||
| 1523 | - | // When called with an empty keyType the command locks the keyring, preventing | |||
| 1524 | - | // any further keys from being linked to the keyring. | |||
| 1525 | - | // | |||
| 1526 | - | // The "asymmetric" keyType defines restrictions requiring key payloads to be | |||
| 1527 | - | // DER encoded X.509 certificates signed by keys in another keyring. Restrictions | |||
| 1528 | - | // for "asymmetric" include "builtin_trusted", "builtin_and_secondary_trusted", | |||
| 1529 | - | // "key_or_keyring:<key>", and "key_or_keyring:<key>:chain". | |||
| 1530 | - | // | |||
| 1531 | - | // As of Linux 4.12, only the "asymmetric" keyType defines type-specific | |||
| 1532 | - | // restrictions. | |||
| 1533 | - | // | |||
| 1534 | - | // See the full documentation at: | |||
| 1535 | - | // http://man7.org/linux/man-pages/man3/keyctl_restrict_keyring.3.html | |||
| 1536 | - | // http://man7.org/linux/man-pages/man2/keyctl.2.html | |||
| 1537 | - | func KeyctlRestrictKeyring(ringid int, keyType string, restriction string) error { | |||
| 1538 | - | if keyType == "" { | |||
| 1539 | - | return keyctlRestrictKeyring(KEYCTL_RESTRICT_KEYRING, ringid) | |||
| 1540 | - | } | |||
| 1541 | - | return keyctlRestrictKeyringByType(KEYCTL_RESTRICT_KEYRING, ringid, keyType, restriction) | |||
| 1542 | - | } | |||
| 1543 | - | ||||
| 1544 | - | //sys keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) = SYS_KEYCTL | |||
| 1545 | - | //sys keyctlRestrictKeyring(cmd int, arg2 int) (err error) = SYS_KEYCTL | |||
| 1546 | - | ||||
| 1547 | - | func recvmsgRaw(fd int, iov []Iovec, oob []byte, flags int, rsa *RawSockaddrAny) (n, oobn int, recvflags int, err error) { | |||
| 1548 | - | var msg Msghdr | |||
| 1549 | - | msg.Name = (*byte)(unsafe.Pointer(rsa)) | |||
| 1550 | - | msg.Namelen = uint32(SizeofSockaddrAny) | |||
| 1551 | - | var dummy byte | |||
| 1552 | - | if len(oob) > 0 { | |||
| 1553 | - | if emptyIovecs(iov) { | |||
| 1554 | - | var sockType int | |||
| 1555 | - | sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE) | |||
| 1556 | - | if err != nil { | |||
| 1557 | - | return | |||
| 1558 | - | } | |||
| 1559 | - | // receive at least one normal byte | |||
| 1560 | - | if sockType != SOCK_DGRAM { | |||
| 1561 | - | var iova [1]Iovec | |||
| 1562 | - | iova[0].Base = &dummy | |||
| 1563 | - | iova[0].SetLen(1) | |||
| 1564 | - | iov = iova[:] | |||
| 1565 | - | } | |||
| 1566 | - | } | |||
| 1567 | - | msg.Control = &oob[0] | |||
| 1568 | - | msg.SetControllen(len(oob)) | |||
| 1569 | - | } | |||
| 1570 | - | if len(iov) > 0 { | |||
| 1571 | - | msg.Iov = &iov[0] | |||
| 1572 | - | msg.SetIovlen(len(iov)) | |||
| 1573 | - | } | |||
| 1574 | - | if n, err = recvmsg(fd, &msg, flags); err != nil { | |||
| 1575 | - | return | |||
| 1576 | - | } | |||
| 1577 | - | oobn = int(msg.Controllen) | |||
| 1578 | - | recvflags = int(msg.Flags) | |||
| 1579 | - | return | |||
| 1580 | - | } | |||
| 1581 | - | ||||
| 1582 | - | func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Socklen, flags int) (n int, err error) { | |||
| 1583 | - | var msg Msghdr | |||
| 1584 | - | msg.Name = (*byte)(ptr) | |||
| 1585 | - | msg.Namelen = uint32(salen) | |||
| 1586 | - | var dummy byte | |||
| 1587 | - | var empty bool | |||
| 1588 | - | if len(oob) > 0 { | |||
| 1589 | - | empty = emptyIovecs(iov) | |||
| 1590 | - | if empty { | |||
| 1591 | - | var sockType int | |||
| 1592 | - | sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE) | |||
| 1593 | - | if err != nil { | |||
| 1594 | - | return 0, err | |||
| 1595 | - | } | |||
| 1596 | - | // send at least one normal byte | |||
| 1597 | - | if sockType != SOCK_DGRAM { | |||
| 1598 | - | var iova [1]Iovec | |||
| 1599 | - | iova[0].Base = &dummy | |||
| 1600 | - | iova[0].SetLen(1) | |||
| 1601 | - | iov = iova[:] | |||
| 1602 | - | } | |||
| 1603 | - | } | |||
| 1604 | - | msg.Control = &oob[0] | |||
| 1605 | - | msg.SetControllen(len(oob)) | |||
| 1606 | - | } | |||
| 1607 | - | if len(iov) > 0 { | |||
| 1608 | - | msg.Iov = &iov[0] | |||
| 1609 | - | msg.SetIovlen(len(iov)) | |||
| 1610 | - | } | |||
| 1611 | - | if n, err = sendmsg(fd, &msg, flags); err != nil { | |||
| 1612 | - | return 0, err | |||
| 1613 | - | } | |||
| 1614 | - | if len(oob) > 0 && empty { | |||
| 1615 | - | n = 0 | |||
| 1616 | - | } | |||
| 1617 | - | return n, nil | |||
| 1618 | - | } | |||
| 1619 | - | ||||
| 1620 | - | // BindToDevice binds the socket associated with fd to device. | |||
| 1621 | - | func BindToDevice(fd int, device string) (err error) { | |||
| 1622 | - | return SetsockoptString(fd, SOL_SOCKET, SO_BINDTODEVICE, device) | |||
| 1623 | - | } | |||
| 1624 | - | ||||
| 1625 | - | //sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error) | |||
| 1626 | - | //sys ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) = SYS_PTRACE | |||
| 1627 | - | ||||
| 1628 | - | func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err error) { | |||
| 1629 | - | // The peek requests are machine-size oriented, so we wrap it | |||
| 1630 | - | // to retrieve arbitrary-length data. | |||
| 1631 | - | ||||
| 1632 | - | // The ptrace syscall differs from glibc's ptrace. | |||
| 1633 | - | // Peeks returns the word in *data, not as the return value. | |||
| 1634 | - | ||||
| 1635 | - | var buf [SizeofPtr]byte | |||
| 1636 | - | ||||
| 1637 | - | // Leading edge. PEEKTEXT/PEEKDATA don't require aligned | |||
| 1638 | - | // access (PEEKUSER warns that it might), but if we don't | |||
| 1639 | - | // align our reads, we might straddle an unmapped page | |||
| 1640 | - | // boundary and not get the bytes leading up to the page | |||
| 1641 | - | // boundary. | |||
| 1642 | - | n := 0 | |||
| 1643 | - | if addr%SizeofPtr != 0 { | |||
| 1644 | - | err = ptracePtr(req, pid, addr-addr%SizeofPtr, unsafe.Pointer(&buf[0])) | |||
| 1645 | - | if err != nil { | |||
| 1646 | - | return 0, err | |||
| 1647 | - | } | |||
| 1648 | - | n += copy(out, buf[addr%SizeofPtr:]) | |||
| 1649 | - | out = out[n:] | |||
| 1650 | - | } | |||
| 1651 | - | ||||
| 1652 | - | // Remainder. | |||
| 1653 | - | for len(out) > 0 { | |||
| 1654 | - | // We use an internal buffer to guarantee alignment. | |||
| 1655 | - | // It's not documented if this is necessary, but we're paranoid. | |||
| 1656 | - | err = ptracePtr(req, pid, addr+uintptr(n), unsafe.Pointer(&buf[0])) | |||
| 1657 | - | if err != nil { | |||
| 1658 | - | return n, err | |||
| 1659 | - | } | |||
| 1660 | - | copied := copy(out, buf[0:]) | |||
| 1661 | - | n += copied | |||
| 1662 | - | out = out[copied:] | |||
| 1663 | - | } | |||
| 1664 | - | ||||
| 1665 | - | return n, nil | |||
| 1666 | - | } | |||
| 1667 | - | ||||
| 1668 | - | func PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error) { | |||
| 1669 | - | return ptracePeek(PTRACE_PEEKTEXT, pid, addr, out) | |||
| 1670 | - | } | |||
| 1671 | - | ||||
| 1672 | - | func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) { | |||
| 1673 | - | return ptracePeek(PTRACE_PEEKDATA, pid, addr, out) | |||
| 1674 | - | } | |||
| 1675 | - | ||||
| 1676 | - | func PtracePeekUser(pid int, addr uintptr, out []byte) (count int, err error) { | |||
| 1677 | - | return ptracePeek(PTRACE_PEEKUSR, pid, addr, out) | |||
| 1678 | - | } | |||
| 1679 | - | ||||
| 1680 | - | func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (count int, err error) { | |||
| 1681 | - | // As for ptracePeek, we need to align our accesses to deal | |||
| 1682 | - | // with the possibility of straddling an invalid page. | |||
| 1683 | - | ||||
| 1684 | - | // Leading edge. | |||
| 1685 | - | n := 0 | |||
| 1686 | - | if addr%SizeofPtr != 0 { | |||
| 1687 | - | var buf [SizeofPtr]byte | |||
| 1688 | - | err = ptracePtr(peekReq, pid, addr-addr%SizeofPtr, unsafe.Pointer(&buf[0])) | |||
| 1689 | - | if err != nil { | |||
| 1690 | - | return 0, err | |||
| 1691 | - | } | |||
| 1692 | - | n += copy(buf[addr%SizeofPtr:], data) | |||
| 1693 | - | word := *((*uintptr)(unsafe.Pointer(&buf[0]))) | |||
| 1694 | - | err = ptrace(pokeReq, pid, addr-addr%SizeofPtr, word) | |||
| 1695 | - | if err != nil { | |||
| 1696 | - | return 0, err | |||
| 1697 | - | } | |||
| 1698 | - | data = data[n:] | |||
| 1699 | - | } | |||
| 1700 | - | ||||
| 1701 | - | // Interior. | |||
| 1702 | - | for len(data) > SizeofPtr { | |||
| 1703 | - | word := *((*uintptr)(unsafe.Pointer(&data[0]))) | |||
| 1704 | - | err = ptrace(pokeReq, pid, addr+uintptr(n), word) | |||
| 1705 | - | if err != nil { | |||
| 1706 | - | return n, err | |||
| 1707 | - | } | |||
| 1708 | - | n += SizeofPtr | |||
| 1709 | - | data = data[SizeofPtr:] | |||
| 1710 | - | } | |||
| 1711 | - | ||||
| 1712 | - | // Trailing edge. | |||
| 1713 | - | if len(data) > 0 { | |||
| 1714 | - | var buf [SizeofPtr]byte | |||
| 1715 | - | err = ptracePtr(peekReq, pid, addr+uintptr(n), unsafe.Pointer(&buf[0])) | |||
| 1716 | - | if err != nil { | |||
| 1717 | - | return n, err | |||
| 1718 | - | } | |||
| 1719 | - | copy(buf[0:], data) | |||
| 1720 | - | word := *((*uintptr)(unsafe.Pointer(&buf[0]))) | |||
| 1721 | - | err = ptrace(pokeReq, pid, addr+uintptr(n), word) | |||
| 1722 | - | if err != nil { | |||
| 1723 | - | return n, err | |||
| 1724 | - | } | |||
| 1725 | - | n += len(data) | |||
| 1726 | - | } | |||
| 1727 | - | ||||
| 1728 | - | return n, nil | |||
| 1729 | - | } | |||
| 1730 | - | ||||
| 1731 | - | func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error) { | |||
| 1732 | - | return ptracePoke(PTRACE_POKETEXT, PTRACE_PEEKTEXT, pid, addr, data) | |||
| 1733 | - | } | |||
| 1734 | - | ||||
| 1735 | - | func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error) { | |||
| 1736 | - | return ptracePoke(PTRACE_POKEDATA, PTRACE_PEEKDATA, pid, addr, data) | |||
| 1737 | - | } | |||
| 1738 | - | ||||
| 1739 | - | func PtracePokeUser(pid int, addr uintptr, data []byte) (count int, err error) { | |||
| 1740 | - | return ptracePoke(PTRACE_POKEUSR, PTRACE_PEEKUSR, pid, addr, data) | |||
| 1741 | - | } | |||
| 1742 | - | ||||
| 1743 | - | // elfNT_PRSTATUS is a copy of the debug/elf.NT_PRSTATUS constant so | |||
| 1744 | - | // x/sys/unix doesn't need to depend on debug/elf and thus | |||
| 1745 | - | // compress/zlib, debug/dwarf, and other packages. | |||
| 1746 | - | const elfNT_PRSTATUS = 1 | |||
| 1747 | - | ||||
| 1748 | - | func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) { | |||
| 1749 | - | var iov Iovec | |||
| 1750 | - | iov.Base = (*byte)(unsafe.Pointer(regsout)) | |||
| 1751 | - | iov.SetLen(int(unsafe.Sizeof(*regsout))) | |||
| 1752 | - | return ptracePtr(PTRACE_GETREGSET, pid, uintptr(elfNT_PRSTATUS), unsafe.Pointer(&iov)) | |||
| 1753 | - | } | |||
| 1754 | - | ||||
| 1755 | - | func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) { | |||
| 1756 | - | var iov Iovec | |||
| 1757 | - | iov.Base = (*byte)(unsafe.Pointer(regs)) | |||
| 1758 | - | iov.SetLen(int(unsafe.Sizeof(*regs))) | |||
| 1759 | - | return ptracePtr(PTRACE_SETREGSET, pid, uintptr(elfNT_PRSTATUS), unsafe.Pointer(&iov)) | |||
| 1760 | - | } | |||
| 1761 | - | ||||
| 1762 | - | func PtraceSetOptions(pid int, options int) (err error) { | |||
| 1763 | - | return ptrace(PTRACE_SETOPTIONS, pid, 0, uintptr(options)) | |||
| 1764 | - | } | |||
| 1765 | - | ||||
| 1766 | - | func PtraceGetEventMsg(pid int) (msg uint, err error) { | |||
| 1767 | - | var data _C_long | |||
| 1768 | - | err = ptracePtr(PTRACE_GETEVENTMSG, pid, 0, unsafe.Pointer(&data)) | |||
| 1769 | - | msg = uint(data) | |||
| 1770 | - | return | |||
| 1771 | - | } | |||
| 1772 | - | ||||
| 1773 | - | func PtraceCont(pid int, signal int) (err error) { | |||
| 1774 | - | return ptrace(PTRACE_CONT, pid, 0, uintptr(signal)) | |||
| 1775 | - | } | |||
| 1776 | - | ||||
| 1777 | - | func PtraceSyscall(pid int, signal int) (err error) { | |||
| 1778 | - | return ptrace(PTRACE_SYSCALL, pid, 0, uintptr(signal)) | |||
| 1779 | - | } | |||
| 1780 | - | ||||
| 1781 | - | func PtraceSingleStep(pid int) (err error) { return ptrace(PTRACE_SINGLESTEP, pid, 0, 0) } | |||
| 1782 | - | ||||
| 1783 | - | func PtraceInterrupt(pid int) (err error) { return ptrace(PTRACE_INTERRUPT, pid, 0, 0) } | |||
| 1784 | - | ||||
| 1785 | - | func PtraceAttach(pid int) (err error) { return ptrace(PTRACE_ATTACH, pid, 0, 0) } | |||
| 1786 | - | ||||
| 1787 | - | func PtraceSeize(pid int) (err error) { return ptrace(PTRACE_SEIZE, pid, 0, 0) } | |||
| 1788 | - | ||||
| 1789 | - | func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0) } | |||
| 1790 | - | ||||
| 1791 | - | //sys reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) | |||
| 1792 | - | ||||
| 1793 | - | func Reboot(cmd int) (err error) { | |||
| 1794 | - | return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "") | |||
| 1795 | - | } | |||
| 1796 | - | ||||
| 1797 | - | func direntIno(buf []byte) (uint64, bool) { | |||
| 1798 | - | return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino)) | |||
| 1799 | - | } | |||
| 1800 | - | ||||
| 1801 | - | func direntReclen(buf []byte) (uint64, bool) { | |||
| 1802 | - | return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) | |||
| 1803 | - | } | |||
| 1804 | - | ||||
| 1805 | - | func direntNamlen(buf []byte) (uint64, bool) { | |||
| 1806 | - | reclen, ok := direntReclen(buf) | |||
| 1807 | - | if !ok { | |||
| 1808 | - | return 0, false | |||
| 1809 | - | } | |||
| 1810 | - | return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true | |||
| 1811 | - | } | |||
| 1812 | - | ||||
| 1813 | - | //sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) | |||
| 1814 | - | ||||
| 1815 | - | func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) { | |||
| 1816 | - | // Certain file systems get rather angry and EINVAL if you give | |||
| 1817 | - | // them an empty string of data, rather than NULL. | |||
| 1818 | - | if data == "" { | |||
| 1819 | - | return mount(source, target, fstype, flags, nil) | |||
| 1820 | - | } | |||
| 1821 | - | datap, err := BytePtrFromString(data) | |||
| 1822 | - | if err != nil { | |||
| 1823 | - | return err | |||
| 1824 | - | } | |||
| 1825 | - | return mount(source, target, fstype, flags, datap) | |||
| 1826 | - | } | |||
| 1827 | - | ||||
| 1828 | - | //sys mountSetattr(dirfd int, pathname string, flags uint, attr *MountAttr, size uintptr) (err error) = SYS_MOUNT_SETATTR | |||
| 1829 | - | ||||
| 1830 | - | // MountSetattr is a wrapper for mount_setattr(2). | |||
| 1831 | - | // https://man7.org/linux/man-pages/man2/mount_setattr.2.html | |||
| 1832 | - | // | |||
| 1833 | - | // Requires kernel >= 5.12. | |||
| 1834 | - | func MountSetattr(dirfd int, pathname string, flags uint, attr *MountAttr) error { | |||
| 1835 | - | return mountSetattr(dirfd, pathname, flags, attr, unsafe.Sizeof(*attr)) | |||
| 1836 | - | } | |||
| 1837 | - | ||||
| 1838 | - | func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { | |||
| 1839 | - | if raceenabled { | |||
| 1840 | - | raceReleaseMerge(unsafe.Pointer(&ioSync)) | |||
| 1841 | - | } | |||
| 1842 | - | return sendfile(outfd, infd, offset, count) | |||
| 1843 | - | } | |||
| 1844 | - | ||||
| 1845 | - | // Sendto | |||
| 1846 | - | // Recvfrom | |||
| 1847 | - | // Socketpair | |||
| 1848 | - | ||||
| 1849 | - | /* | |||
| 1850 | - | * Direct access | |||
| 1851 | - | */ | |||
| 1852 | - | //sys Acct(path string) (err error) | |||
| 1853 | - | //sys AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) | |||
| 1854 | - | //sys Adjtimex(buf *Timex) (state int, err error) | |||
| 1855 | - | //sysnb Capget(hdr *CapUserHeader, data *CapUserData) (err error) | |||
| 1856 | - | //sysnb Capset(hdr *CapUserHeader, data *CapUserData) (err error) | |||
| 1857 | - | //sys Chdir(path string) (err error) | |||
| 1858 | - | //sys Chroot(path string) (err error) | |||
| 1859 | - | //sys ClockAdjtime(clockid int32, buf *Timex) (state int, err error) | |||
| 1860 | - | //sys ClockGetres(clockid int32, res *Timespec) (err error) | |||
| 1861 | - | //sys ClockGettime(clockid int32, time *Timespec) (err error) | |||
| 1862 | - | //sys ClockSettime(clockid int32, time *Timespec) (err error) | |||
| 1863 | - | //sys ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) | |||
| 1864 | - | //sys Close(fd int) (err error) | |||
| 1865 | - | //sys CloseRange(first uint, last uint, flags uint) (err error) | |||
| 1866 | - | //sys CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) | |||
| 1867 | - | //sys DeleteModule(name string, flags int) (err error) | |||
| 1868 | - | //sys Dup(oldfd int) (fd int, err error) | |||
| 1869 | - | ||||
| 1870 | - | func Dup2(oldfd, newfd int) error { | |||
| 1871 | - | return Dup3(oldfd, newfd, 0) | |||
| 1872 | - | } | |||
| 1873 | - | ||||
| 1874 | - | //sys Dup3(oldfd int, newfd int, flags int) (err error) | |||
| 1875 | - | //sysnb EpollCreate1(flag int) (fd int, err error) | |||
| 1876 | - | //sysnb EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) | |||
| 1877 | - | //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT | |||
| 1878 | - | //sys Eventfd(initval uint, flags int) (fd int, err error) = SYS_EVENTFD2 | |||
| 1879 | - | //sys Exit(code int) = SYS_EXIT_GROUP | |||
| 1880 | - | //sys Fallocate(fd int, mode uint32, off int64, len int64) (err error) | |||
| 1881 | - | //sys Fchdir(fd int) (err error) | |||
| 1882 | - | //sys Fchmod(fd int, mode uint32) (err error) | |||
| 1883 | - | //sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) | |||
| 1884 | - | //sys Fdatasync(fd int) (err error) | |||
| 1885 | - | //sys Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) | |||
| 1886 | - | //sys FinitModule(fd int, params string, flags int) (err error) | |||
| 1887 | - | //sys Flistxattr(fd int, dest []byte) (sz int, err error) | |||
| 1888 | - | //sys Flock(fd int, how int) (err error) | |||
| 1889 | - | //sys Fremovexattr(fd int, attr string) (err error) | |||
| 1890 | - | //sys Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) | |||
| 1891 | - | //sys Fsync(fd int) (err error) | |||
| 1892 | - | //sys Fsmount(fd int, flags int, mountAttrs int) (fsfd int, err error) | |||
| 1893 | - | //sys Fsopen(fsName string, flags int) (fd int, err error) | |||
| 1894 | - | //sys Fspick(dirfd int, pathName string, flags int) (fd int, err error) | |||
| 1895 | - | ||||
| 1896 | - | //sys fsconfig(fd int, cmd uint, key *byte, value *byte, aux int) (err error) | |||
| 1897 | - | ||||
| 1898 | - | func fsconfigCommon(fd int, cmd uint, key string, value *byte, aux int) (err error) { | |||
| 1899 | - | var keyp *byte | |||
| 1900 | - | if keyp, err = BytePtrFromString(key); err != nil { | |||
| 1901 | - | return | |||
| 1902 | - | } | |||
| 1903 | - | return fsconfig(fd, cmd, keyp, value, aux) | |||
| 1904 | - | } | |||
| 1905 | - | ||||
| 1906 | - | // FsconfigSetFlag is equivalent to fsconfig(2) called | |||
| 1907 | - | // with cmd == FSCONFIG_SET_FLAG. | |||
| 1908 | - | // | |||
| 1909 | - | // fd is the filesystem context to act upon. | |||
| 1910 | - | // key the parameter key to set. | |||
| 1911 | - | func FsconfigSetFlag(fd int, key string) (err error) { | |||
| 1912 | - | return fsconfigCommon(fd, FSCONFIG_SET_FLAG, key, nil, 0) | |||
| 1913 | - | } | |||
| 1914 | - | ||||
| 1915 | - | // FsconfigSetString is equivalent to fsconfig(2) called | |||
| 1916 | - | // with cmd == FSCONFIG_SET_STRING. | |||
| 1917 | - | // | |||
| 1918 | - | // fd is the filesystem context to act upon. | |||
| 1919 | - | // key the parameter key to set. | |||
| 1920 | - | // value is the parameter value to set. | |||
| 1921 | - | func FsconfigSetString(fd int, key string, value string) (err error) { | |||
| 1922 | - | var valuep *byte | |||
| 1923 | - | if valuep, err = BytePtrFromString(value); err != nil { | |||
| 1924 | - | return | |||
| 1925 | - | } | |||
| 1926 | - | return fsconfigCommon(fd, FSCONFIG_SET_STRING, key, valuep, 0) | |||
| 1927 | - | } | |||
| 1928 | - | ||||
| 1929 | - | // FsconfigSetBinary is equivalent to fsconfig(2) called | |||
| 1930 | - | // with cmd == FSCONFIG_SET_BINARY. | |||
| 1931 | - | // | |||
| 1932 | - | // fd is the filesystem context to act upon. | |||
| 1933 | - | // key the parameter key to set. | |||
| 1934 | - | // value is the parameter value to set. | |||
| 1935 | - | func FsconfigSetBinary(fd int, key string, value []byte) (err error) { | |||
| 1936 | - | if len(value) == 0 { | |||
| 1937 | - | return EINVAL | |||
| 1938 | - | } | |||
| 1939 | - | return fsconfigCommon(fd, FSCONFIG_SET_BINARY, key, &value[0], len(value)) | |||
| 1940 | - | } | |||
| 1941 | - | ||||
| 1942 | - | // FsconfigSetPath is equivalent to fsconfig(2) called | |||
| 1943 | - | // with cmd == FSCONFIG_SET_PATH. | |||
| 1944 | - | // | |||
| 1945 | - | // fd is the filesystem context to act upon. | |||
| 1946 | - | // key the parameter key to set. | |||
| 1947 | - | // path is a non-empty path for specified key. | |||
| 1948 | - | // atfd is a file descriptor at which to start lookup from or AT_FDCWD. | |||
| 1949 | - | func FsconfigSetPath(fd int, key string, path string, atfd int) (err error) { | |||
| 1950 | - | var valuep *byte | |||
| 1951 | - | if valuep, err = BytePtrFromString(path); err != nil { | |||
| 1952 | - | return | |||
| 1953 | - | } | |||
| 1954 | - | return fsconfigCommon(fd, FSCONFIG_SET_PATH, key, valuep, atfd) | |||
| 1955 | - | } | |||
| 1956 | - | ||||
| 1957 | - | // FsconfigSetPathEmpty is equivalent to fsconfig(2) called | |||
| 1958 | - | // with cmd == FSCONFIG_SET_PATH_EMPTY. The same as | |||
| 1959 | - | // FconfigSetPath but with AT_PATH_EMPTY implied. | |||
| 1960 | - | func FsconfigSetPathEmpty(fd int, key string, path string, atfd int) (err error) { | |||
| 1961 | - | var valuep *byte | |||
| 1962 | - | if valuep, err = BytePtrFromString(path); err != nil { | |||
| 1963 | - | return | |||
| 1964 | - | } | |||
| 1965 | - | return fsconfigCommon(fd, FSCONFIG_SET_PATH_EMPTY, key, valuep, atfd) | |||
| 1966 | - | } | |||
| 1967 | - | ||||
| 1968 | - | // FsconfigSetFd is equivalent to fsconfig(2) called | |||
| 1969 | - | // with cmd == FSCONFIG_SET_FD. | |||
| 1970 | - | // | |||
| 1971 | - | // fd is the filesystem context to act upon. | |||
| 1972 | - | // key the parameter key to set. | |||
| 1973 | - | // value is a file descriptor to be assigned to specified key. | |||
| 1974 | - | func FsconfigSetFd(fd int, key string, value int) (err error) { | |||
| 1975 | - | return fsconfigCommon(fd, FSCONFIG_SET_FD, key, nil, value) | |||
| 1976 | - | } | |||
| 1977 | - | ||||
| 1978 | - | // FsconfigCreate is equivalent to fsconfig(2) called | |||
| 1979 | - | // with cmd == FSCONFIG_CMD_CREATE. | |||
| 1980 | - | // | |||
| 1981 | - | // fd is the filesystem context to act upon. | |||
| 1982 | - | func FsconfigCreate(fd int) (err error) { | |||
| 1983 | - | return fsconfig(fd, FSCONFIG_CMD_CREATE, nil, nil, 0) | |||
| 1984 | - | } | |||
| 1985 | - | ||||
| 1986 | - | // FsconfigReconfigure is equivalent to fsconfig(2) called | |||
| 1987 | - | // with cmd == FSCONFIG_CMD_RECONFIGURE. | |||
| 1988 | - | // | |||
| 1989 | - | // fd is the filesystem context to act upon. | |||
| 1990 | - | func FsconfigReconfigure(fd int) (err error) { | |||
| 1991 | - | return fsconfig(fd, FSCONFIG_CMD_RECONFIGURE, nil, nil, 0) | |||
| 1992 | - | } | |||
| 1993 | - | ||||
| 1994 | - | //sys Getdents(fd int, buf []byte) (n int, err error) = SYS_GETDENTS64 | |||
| 1995 | - | //sysnb Getpgid(pid int) (pgid int, err error) | |||
| 1996 | - | ||||
| 1997 | - | func Getpgrp() (pid int) { | |||
| 1998 | - | pid, _ = Getpgid(0) | |||
| 1999 | - | return | |||
| 2000 | - | } | |||
| 2001 | - | ||||
| 2002 | - | //sysnb Getpid() (pid int) | |||
| 2003 | - | //sysnb Getppid() (ppid int) | |||
| 2004 | - | //sys Getpriority(which int, who int) (prio int, err error) | |||
| 2005 | - | ||||
| 2006 | - | func Getrandom(buf []byte, flags int) (n int, err error) { | |||
| 2007 | - | vdsoRet, supported := vgetrandom(buf, uint32(flags)) | |||
| 2008 | - | if supported { | |||
| 2009 | - | if vdsoRet < 0 { | |||
| 2010 | - | return 0, errnoErr(syscall.Errno(-vdsoRet)) | |||
| 2011 | - | } | |||
| 2012 | - | return vdsoRet, nil | |||
| 2013 | - | } | |||
| 2014 | - | var p *byte | |||
| 2015 | - | if len(buf) > 0 { | |||
| 2016 | - | p = &buf[0] | |||
| 2017 | - | } | |||
| 2018 | - | r, _, e := Syscall(SYS_GETRANDOM, uintptr(unsafe.Pointer(p)), uintptr(len(buf)), uintptr(flags)) | |||
| 2019 | - | if e != 0 { | |||
| 2020 | - | return 0, errnoErr(e) | |||
| 2021 | - | } | |||
| 2022 | - | return int(r), nil | |||
| 2023 | - | } | |||
| 2024 | - | ||||
| 2025 | - | //sysnb Getrusage(who int, rusage *Rusage) (err error) | |||
| 2026 | - | //sysnb Getsid(pid int) (sid int, err error) | |||
| 2027 | - | //sysnb Gettid() (tid int) | |||
| 2028 | - | //sys Getxattr(path string, attr string, dest []byte) (sz int, err error) | |||
| 2029 | - | //sys InitModule(moduleImage []byte, params string) (err error) | |||
| 2030 | - | //sys InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) | |||
| 2031 | - | //sysnb InotifyInit1(flags int) (fd int, err error) | |||
| 2032 | - | //sysnb InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) | |||
| 2033 | - | //sysnb Kill(pid int, sig syscall.Signal) (err error) | |||
| 2034 | - | //sys Klogctl(typ int, buf []byte) (n int, err error) = SYS_SYSLOG | |||
| 2035 | - | //sys Lgetxattr(path string, attr string, dest []byte) (sz int, err error) | |||
| 2036 | - | //sys Listxattr(path string, dest []byte) (sz int, err error) | |||
| 2037 | - | //sys Llistxattr(path string, dest []byte) (sz int, err error) | |||
| 2038 | - | //sys Lremovexattr(path string, attr string) (err error) | |||
| 2039 | - | //sys Lsetxattr(path string, attr string, data []byte, flags int) (err error) | |||
| 2040 | - | //sys MemfdCreate(name string, flags int) (fd int, err error) | |||
| 2041 | - | //sys Mkdirat(dirfd int, path string, mode uint32) (err error) | |||
| 2042 | - | //sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error) | |||
| 2043 | - | //sys MoveMount(fromDirfd int, fromPathName string, toDirfd int, toPathName string, flags int) (err error) | |||
| 2044 | - | //sys Nanosleep(time *Timespec, leftover *Timespec) (err error) | |||
| 2045 | - | //sys OpenTree(dfd int, fileName string, flags uint) (r int, err error) | |||
| 2046 | - | //sys PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) | |||
| 2047 | - | //sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT | |||
| 2048 | - | //sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) | |||
| 2049 | - | //sys pselect6(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *sigset_argpack) (n int, err error) | |||
| 2050 | - | //sys read(fd int, p []byte) (n int, err error) | |||
| 2051 | - | //sys Removexattr(path string, attr string) (err error) | |||
| 2052 | - | //sys Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) | |||
| 2053 | - | //sys RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) | |||
| 2054 | - | //sys Setdomainname(p []byte) (err error) | |||
| 2055 | - | //sys Sethostname(p []byte) (err error) | |||
| 2056 | - | //sysnb Setpgid(pid int, pgid int) (err error) | |||
| 2057 | - | //sysnb Setsid() (pid int, err error) | |||
| 2058 | - | //sysnb Settimeofday(tv *Timeval) (err error) | |||
| 2059 | - | //sys Setns(fd int, nstype int) (err error) | |||
| 2060 | - | ||||
| 2061 | - | //go:linkname syscall_prlimit syscall.prlimit | |||
| 2062 | - | func syscall_prlimit(pid, resource int, newlimit, old *syscall.Rlimit) error | |||
| 2063 | - | ||||
| 2064 | - | func Prlimit(pid, resource int, newlimit, old *Rlimit) error { | |||
| 2065 | - | // Just call the syscall version, because as of Go 1.21 | |||
| 2066 | - | // it will affect starting a new process. | |||
| 2067 | - | return syscall_prlimit(pid, resource, (*syscall.Rlimit)(newlimit), (*syscall.Rlimit)(old)) | |||
| 2068 | - | } | |||
| 2069 | - | ||||
| 2070 | - | // PrctlRetInt performs a prctl operation specified by option and further | |||
| 2071 | - | // optional arguments arg2 through arg5 depending on option. It returns a | |||
| 2072 | - | // non-negative integer that is returned by the prctl syscall. | |||
| 2073 | - | func PrctlRetInt(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (int, error) { | |||
| 2074 | - | ret, _, err := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) | |||
| 2075 | - | if err != 0 { | |||
| 2076 | - | return 0, err | |||
| 2077 | - | } | |||
| 2078 | - | return int(ret), nil | |||
| 2079 | - | } | |||
| 2080 | - | ||||
| 2081 | - | func Setuid(uid int) (err error) { | |||
| 2082 | - | return syscall.Setuid(uid) | |||
| 2083 | - | } | |||
| 2084 | - | ||||
| 2085 | - | func Setgid(gid int) (err error) { | |||
| 2086 | - | return syscall.Setgid(gid) | |||
| 2087 | - | } | |||
| 2088 | - | ||||
| 2089 | - | func Setreuid(ruid, euid int) (err error) { | |||
| 2090 | - | return syscall.Setreuid(ruid, euid) | |||
| 2091 | - | } | |||
| 2092 | - | ||||
| 2093 | - | func Setregid(rgid, egid int) (err error) { | |||
| 2094 | - | return syscall.Setregid(rgid, egid) | |||
| 2095 | - | } | |||
| 2096 | - | ||||
| 2097 | - | func Setresuid(ruid, euid, suid int) (err error) { | |||
| 2098 | - | return syscall.Setresuid(ruid, euid, suid) | |||
| 2099 | - | } | |||
| 2100 | - | ||||
| 2101 | - | func Setresgid(rgid, egid, sgid int) (err error) { | |||
| 2102 | - | return syscall.Setresgid(rgid, egid, sgid) | |||
| 2103 | - | } | |||
| 2104 | - | ||||
| 2105 | - | // SetfsgidRetGid sets fsgid for current thread and returns previous fsgid set. | |||
| 2106 | - | // setfsgid(2) will return a non-nil error only if its caller lacks CAP_SETUID capability. | |||
| 2107 | - | // If the call fails due to other reasons, current fsgid will be returned. | |||
| 2108 | - | func SetfsgidRetGid(gid int) (int, error) { | |||
| 2109 | - | return setfsgid(gid) | |||
| 2110 | - | } | |||
| 2111 | - | ||||
| 2112 | - | // SetfsuidRetUid sets fsuid for current thread and returns previous fsuid set. | |||
| 2113 | - | // setfsgid(2) will return a non-nil error only if its caller lacks CAP_SETUID capability | |||
| 2114 | - | // If the call fails due to other reasons, current fsuid will be returned. | |||
| 2115 | - | func SetfsuidRetUid(uid int) (int, error) { | |||
| 2116 | - | return setfsuid(uid) | |||
| 2117 | - | } | |||
| 2118 | - | ||||
| 2119 | - | func Setfsgid(gid int) error { | |||
| 2120 | - | _, err := setfsgid(gid) | |||
| 2121 | - | return err | |||
| 2122 | - | } | |||
| 2123 | - | ||||
| 2124 | - | func Setfsuid(uid int) error { | |||
| 2125 | - | _, err := setfsuid(uid) | |||
| 2126 | - | return err | |||
| 2127 | - | } | |||
| 2128 | - | ||||
| 2129 | - | func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) { | |||
| 2130 | - | return signalfd(fd, sigmask, _C__NSIG/8, flags) | |||
| 2131 | - | } | |||
| 2132 | - | ||||
| 2133 | - | //sys Setpriority(which int, who int, prio int) (err error) | |||
| 2134 | - | //sys Setxattr(path string, attr string, data []byte, flags int) (err error) | |||
| 2135 | - | //sys signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) = SYS_SIGNALFD4 | |||
| 2136 | - | //sys Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) | |||
| 2137 | - | //sys Sync() | |||
| 2138 | - | //sys Syncfs(fd int) (err error) | |||
| 2139 | - | //sysnb Sysinfo(info *Sysinfo_t) (err error) | |||
| 2140 | - | //sys Tee(rfd int, wfd int, len int, flags int) (n int64, err error) | |||
| 2141 | - | //sysnb TimerfdCreate(clockid int, flags int) (fd int, err error) | |||
| 2142 | - | //sysnb TimerfdGettime(fd int, currValue *ItimerSpec) (err error) | |||
| 2143 | - | //sysnb TimerfdSettime(fd int, flags int, newValue *ItimerSpec, oldValue *ItimerSpec) (err error) | |||
| 2144 | - | //sysnb Tgkill(tgid int, tid int, sig syscall.Signal) (err error) | |||
| 2145 | - | //sysnb Times(tms *Tms) (ticks uintptr, err error) | |||
| 2146 | - | //sysnb Umask(mask int) (oldmask int) | |||
| 2147 | - | //sysnb Uname(buf *Utsname) (err error) | |||
| 2148 | - | //sys Unmount(target string, flags int) (err error) = SYS_UMOUNT2 | |||
| 2149 | - | //sys Unshare(flags int) (err error) | |||
| 2150 | - | //sys write(fd int, p []byte) (n int, err error) | |||
| 2151 | - | //sys exitThread(code int) (err error) = SYS_EXIT | |||
| 2152 | - | //sys readv(fd int, iovs []Iovec) (n int, err error) = SYS_READV | |||
| 2153 | - | //sys writev(fd int, iovs []Iovec) (n int, err error) = SYS_WRITEV | |||
| 2154 | - | //sys preadvSyscall(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) = SYS_PREADV | |||
| 2155 | - | //sys pwritevSyscall(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) = SYS_PWRITEV | |||
| 2156 | - | //sys preadv2Syscall(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PREADV2 | |||
| 2157 | - | //sys pwritev2Syscall(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PWRITEV2 | |||
| 2158 | - | ||||
| 2159 | - | // offs2lohi splits offs into its low and high order bits. | |||
| 2160 | - | func offs2lohi(offs int64) (lo, hi uintptr) { | |||
| 2161 | - | const longBits = SizeofLong * 8 | |||
| 2162 | - | return uintptr(offs), uintptr(uint64(offs) >> (longBits - 1) >> 1) // two shifts to avoid false positive in vet | |||
| 2163 | - | } | |||
| 2164 | - | ||||
| 2165 | - | func preadv(fd int, iovecs []Iovec, offset int64) (n int, err error) { | |||
| 2166 | - | lo, hi := offs2lohi(offset) | |||
| 2167 | - | return preadvSyscall(fd, iovecs, lo, hi) | |||
| 2168 | - | } | |||
| 2169 | - | ||||
| 2170 | - | func Preadv2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) { | |||
| 2171 | - | iovecs := make([]Iovec, 0, minIovec) | |||
| 2172 | - | iovecs = appendBytes(iovecs, iovs) | |||
| 2173 | - | lo, hi := offs2lohi(offset) | |||
| 2174 | - | n, err = preadv2Syscall(fd, iovecs, lo, hi, flags) | |||
| 2175 | - | readvRaceDetect(iovecs, n, err) | |||
| 2176 | - | return n, err | |||
| 2177 | - | } | |||
| 2178 | - | ||||
| 2179 | - | func pwritev(fd int, iovecs []Iovec, offset int64) (n int, err error) { | |||
| 2180 | - | lo, hi := offs2lohi(offset) | |||
| 2181 | - | return pwritevSyscall(fd, iovecs, lo, hi) | |||
| 2182 | - | } | |||
| 2183 | - | ||||
| 2184 | - | func Pwritev2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) { | |||
| 2185 | - | iovecs := make([]Iovec, 0, minIovec) | |||
| 2186 | - | iovecs = appendBytes(iovecs, iovs) | |||
| 2187 | - | if raceenabled { | |||
| 2188 | - | raceReleaseMerge(unsafe.Pointer(&ioSync)) | |||
| 2189 | - | } | |||
| 2190 | - | lo, hi := offs2lohi(offset) | |||
| 2191 | - | n, err = pwritev2Syscall(fd, iovecs, lo, hi, flags) | |||
| 2192 | - | writevRaceDetect(iovecs, n) | |||
| 2193 | - | return n, err | |||
| 2194 | - | } | |||
| 2195 | - | ||||
| 2196 | - | // mmap varies by architecture; see syscall_linux_*.go. | |||
| 2197 | - | //sys munmap(addr uintptr, length uintptr) (err error) | |||
| 2198 | - | //sys mremap(oldaddr uintptr, oldlength uintptr, newlength uintptr, flags int, newaddr uintptr) (xaddr uintptr, err error) | |||
| 2199 | - | //sys Madvise(b []byte, advice int) (err error) | |||
| 2200 | - | //sys Mprotect(b []byte, prot int) (err error) | |||
| 2201 | - | //sys Mlock(b []byte) (err error) | |||
| 2202 | - | //sys Mlockall(flags int) (err error) | |||
| 2203 | - | //sys Msync(b []byte, flags int) (err error) | |||
| 2204 | - | //sys Munlock(b []byte) (err error) | |||
| 2205 | - | //sys Munlockall() (err error) | |||
| 2206 | - | ||||
| 2207 | - | const ( | |||
| 2208 | - | mremapFixed = MREMAP_FIXED | |||
| 2209 | - | mremapDontunmap = MREMAP_DONTUNMAP | |||
| 2210 | - | mremapMaymove = MREMAP_MAYMOVE | |||
| 2211 | - | ) | |||
| 2212 | - | ||||
| 2213 | - | // Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd, | |||
| 2214 | - | // using the specified flags. | |||
| 2215 | - | func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) { | |||
| 2216 | - | var p unsafe.Pointer | |||
| 2217 | - | if len(iovs) > 0 { | |||
| 2218 | - | p = unsafe.Pointer(&iovs[0]) | |||
| 2219 | - | } | |||
| 2220 | - | ||||
| 2221 | - | n, _, errno := Syscall6(SYS_VMSPLICE, uintptr(fd), uintptr(p), uintptr(len(iovs)), uintptr(flags), 0, 0) | |||
| 2222 | - | if errno != 0 { | |||
| 2223 | - | return 0, syscall.Errno(errno) | |||
| 2224 | - | } | |||
| 2225 | - | ||||
| 2226 | - | return int(n), nil | |||
| 2227 | - | } | |||
| 2228 | - | ||||
| 2229 | - | func isGroupMember(gid int) bool { | |||
| 2230 | - | groups, err := Getgroups() | |||
| 2231 | - | if err != nil { | |||
| 2232 | - | return false | |||
| 2233 | - | } | |||
| 2234 | - | ||||
| 2235 | - | return slices.Contains(groups, gid) | |||
| 2236 | - | } | |||
| 2237 | - | ||||
| 2238 | - | func isCapDacOverrideSet() bool { | |||
| 2239 | - | hdr := CapUserHeader{Version: LINUX_CAPABILITY_VERSION_3} | |||
| 2240 | - | data := [2]CapUserData{} | |||
| 2241 | - | err := Capget(&hdr, &data[0]) | |||
| 2242 | - | ||||
| 2243 | - | return err == nil && data[0].Effective&(1<<CAP_DAC_OVERRIDE) != 0 | |||
| 2244 | - | } | |||
| 2245 | - | ||||
| 2246 | - | //sys faccessat(dirfd int, path string, mode uint32) (err error) | |||
| 2247 | - | //sys Faccessat2(dirfd int, path string, mode uint32, flags int) (err error) | |||
| 2248 | - | ||||
| 2249 | - | func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { | |||
| 2250 | - | if flags == 0 { | |||
| 2251 | - | return faccessat(dirfd, path, mode) | |||
| 2252 | - | } | |||
| 2253 | - | ||||
| 2254 | - | if err := Faccessat2(dirfd, path, mode, flags); err != ENOSYS && err != EPERM { | |||
| 2255 | - | return err | |||
| 2256 | - | } | |||
| 2257 | - | ||||
| 2258 | - | // The Linux kernel faccessat system call does not take any flags. | |||
| 2259 | - | // The glibc faccessat implements the flags itself; see | |||
| 2260 | - | // https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/faccessat.c;hb=HEAD | |||
| 2261 | - | // Because people naturally expect syscall.Faccessat to act | |||
| 2262 | - | // like C faccessat, we do the same. | |||
| 2263 | - | ||||
| 2264 | - | if flags & ^(AT_SYMLINK_NOFOLLOW|AT_EACCESS) != 0 { | |||
| 2265 | - | return EINVAL | |||
| 2266 | - | } | |||
| 2267 | - | ||||
| 2268 | - | var st Stat_t | |||
| 2269 | - | if err := Fstatat(dirfd, path, &st, flags&AT_SYMLINK_NOFOLLOW); err != nil { | |||
| 2270 | - | return err | |||
| 2271 | - | } | |||
| 2272 | - | ||||
| 2273 | - | mode &= 7 | |||
| 2274 | - | if mode == 0 { | |||
| 2275 | - | return nil | |||
| 2276 | - | } | |||
| 2277 | - | ||||
| 2278 | - | var uid int | |||
| 2279 | - | if flags&AT_EACCESS != 0 { | |||
| 2280 | - | uid = Geteuid() | |||
| 2281 | - | if uid != 0 && isCapDacOverrideSet() { | |||
| 2282 | - | // If CAP_DAC_OVERRIDE is set, file access check is | |||
| 2283 | - | // done by the kernel in the same way as for root | |||
| 2284 | - | // (see generic_permission() in the Linux sources). | |||
| 2285 | - | uid = 0 | |||
| 2286 | - | } | |||
| 2287 | - | } else { | |||
| 2288 | - | uid = Getuid() | |||
| 2289 | - | } | |||
| 2290 | - | ||||
| 2291 | - | if uid == 0 { | |||
| 2292 | - | if mode&1 == 0 { | |||
| 2293 | - | // Root can read and write any file. | |||
| 2294 | - | return nil | |||
| 2295 | - | } | |||
| 2296 | - | if st.Mode&0111 != 0 { | |||
| 2297 | - | // Root can execute any file that anybody can execute. | |||
| 2298 | - | return nil | |||
| 2299 | - | } | |||
| 2300 | - | return EACCES | |||
| 2301 | - | } | |||
| 2302 | - | ||||
| 2303 | - | var fmode uint32 | |||
| 2304 | - | if uint32(uid) == st.Uid { | |||
| 2305 | - | fmode = (st.Mode >> 6) & 7 | |||
| 2306 | - | } else { | |||
| 2307 | - | var gid int | |||
| 2308 | - | if flags&AT_EACCESS != 0 { | |||
| 2309 | - | gid = Getegid() | |||
| 2310 | - | } else { | |||
| 2311 | - | gid = Getgid() | |||
| 2312 | - | } | |||
| 2313 | - | ||||
| 2314 | - | if uint32(gid) == st.Gid || isGroupMember(int(st.Gid)) { | |||
| 2315 | - | fmode = (st.Mode >> 3) & 7 | |||
| 2316 | - | } else { | |||
| 2317 | - | fmode = st.Mode & 7 | |||
| 2318 | - | } | |||
| 2319 | - | } | |||
| 2320 | - | ||||
| 2321 | - | if fmode&mode == mode { | |||
| 2322 | - | return nil | |||
| 2323 | - | } | |||
| 2324 | - | ||||
| 2325 | - | return EACCES | |||
| 2326 | - | } | |||
| 2327 | - | ||||
| 2328 | - | //sys nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) = SYS_NAME_TO_HANDLE_AT | |||
| 2329 | - | //sys openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) = SYS_OPEN_BY_HANDLE_AT | |||
| 2330 | - | ||||
| 2331 | - | // fileHandle is the argument to nameToHandleAt and openByHandleAt. We | |||
| 2332 | - | // originally tried to generate it via unix/linux/types.go with "type | |||
| 2333 | - | // fileHandle C.struct_file_handle" but that generated empty structs | |||
| 2334 | - | // for mips64 and mips64le. Instead, hard code it for now (it's the | |||
| 2335 | - | // same everywhere else) until the mips64 generator issue is fixed. | |||
| 2336 | - | type fileHandle struct { | |||
| 2337 | - | Bytes uint32 | |||
| 2338 | - | Type int32 | |||
| 2339 | - | } | |||
| 2340 | - | ||||
| 2341 | - | // FileHandle represents the C struct file_handle used by | |||
| 2342 | - | // name_to_handle_at (see NameToHandleAt) and open_by_handle_at (see | |||
| 2343 | - | // OpenByHandleAt). | |||
| 2344 | - | type FileHandle struct { | |||
| 2345 | - | *fileHandle | |||
| 2346 | - | } | |||
| 2347 | - | ||||
| 2348 | - | // NewFileHandle constructs a FileHandle. | |||
| 2349 | - | func NewFileHandle(handleType int32, handle []byte) FileHandle { | |||
| 2350 | - | const hdrSize = unsafe.Sizeof(fileHandle{}) | |||
| 2351 | - | buf := make([]byte, hdrSize+uintptr(len(handle))) | |||
| 2352 | - | copy(buf[hdrSize:], handle) | |||
| 2353 | - | fh := (*fileHandle)(unsafe.Pointer(&buf[0])) | |||
| 2354 | - | fh.Type = handleType | |||
| 2355 | - | fh.Bytes = uint32(len(handle)) | |||
| 2356 | - | return FileHandle{fh} | |||
| 2357 | - | } | |||
| 2358 | - | ||||
| 2359 | - | func (fh *FileHandle) Size() int { return int(fh.fileHandle.Bytes) } | |||
| 2360 | - | func (fh *FileHandle) Type() int32 { return fh.fileHandle.Type } | |||
| 2361 | - | func (fh *FileHandle) Bytes() []byte { | |||
| 2362 | - | n := fh.Size() | |||
| 2363 | - | if n == 0 { | |||
| 2364 | - | return nil | |||
| 2365 | - | } | |||
| 2366 | - | return unsafe.Slice((*byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&fh.fileHandle.Type))+4)), n) | |||
| 2367 | - | } | |||
| 2368 | - | ||||
| 2369 | - | // NameToHandleAt wraps the name_to_handle_at system call; it obtains | |||
| 2370 | - | // a handle for a path name. | |||
| 2371 | - | func NameToHandleAt(dirfd int, path string, flags int) (handle FileHandle, mountID int, err error) { | |||
| 2372 | - | var mid _C_int | |||
| 2373 | - | // Try first with a small buffer, assuming the handle will | |||
| 2374 | - | // only be 32 bytes. | |||
| 2375 | - | size := uint32(32 + unsafe.Sizeof(fileHandle{})) | |||
| 2376 | - | didResize := false | |||
| 2377 | - | for { | |||
| 2378 | - | buf := make([]byte, size) | |||
| 2379 | - | fh := (*fileHandle)(unsafe.Pointer(&buf[0])) | |||
| 2380 | - | fh.Bytes = size - uint32(unsafe.Sizeof(fileHandle{})) | |||
| 2381 | - | err = nameToHandleAt(dirfd, path, fh, &mid, flags) | |||
| 2382 | - | if err == EOVERFLOW { | |||
| 2383 | - | if didResize { | |||
| 2384 | - | // We shouldn't need to resize more than once | |||
| 2385 | - | return | |||
| 2386 | - | } | |||
| 2387 | - | didResize = true | |||
| 2388 | - | size = fh.Bytes + uint32(unsafe.Sizeof(fileHandle{})) | |||
| 2389 | - | continue | |||
| 2390 | - | } | |||
| 2391 | - | if err != nil { | |||
| 2392 | - | return | |||
| 2393 | - | } | |||
| 2394 | - | return FileHandle{fh}, int(mid), nil | |||
| 2395 | - | } | |||
| 2396 | - | } | |||
| 2397 | - | ||||
| 2398 | - | // OpenByHandleAt wraps the open_by_handle_at system call; it opens a | |||
| 2399 | - | // file via a handle as previously returned by NameToHandleAt. | |||
| 2400 | - | func OpenByHandleAt(mountFD int, handle FileHandle, flags int) (fd int, err error) { | |||
| 2401 | - | return openByHandleAt(mountFD, handle.fileHandle, flags) | |||
| 2402 | - | } | |||
| 2403 | - | ||||
| 2404 | - | // Klogset wraps the sys_syslog system call; it sets console_loglevel to | |||
| 2405 | - | // the value specified by arg and passes a dummy pointer to bufp. | |||
| 2406 | - | func Klogset(typ int, arg int) (err error) { | |||
| 2407 | - | var p unsafe.Pointer | |||
| 2408 | - | _, _, errno := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(p), uintptr(arg)) | |||
| 2409 | - | if errno != 0 { | |||
| 2410 | - | return errnoErr(errno) | |||
| 2411 | - | } | |||
| 2412 | - | return nil | |||
| 2413 | - | } | |||
| 2414 | - | ||||
| 2415 | - | // RemoteIovec is Iovec with the pointer replaced with an integer. | |||
| 2416 | - | // It is used for ProcessVMReadv and ProcessVMWritev, where the pointer | |||
| 2417 | - | // refers to a location in a different process' address space, which | |||
| 2418 | - | // would confuse the Go garbage collector. | |||
| 2419 | - | type RemoteIovec struct { | |||
| 2420 | - | Base uintptr | |||
| 2421 | - | Len int | |||
| 2422 | - | } | |||
| 2423 | - | ||||
| 2424 | - | //sys ProcessVMReadv(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) = SYS_PROCESS_VM_READV | |||
| 2425 | - | //sys ProcessVMWritev(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) = SYS_PROCESS_VM_WRITEV | |||
| 2426 | - | ||||
| 2427 | - | //sys PidfdOpen(pid int, flags int) (fd int, err error) = SYS_PIDFD_OPEN | |||
| 2428 | - | //sys PidfdGetfd(pidfd int, targetfd int, flags int) (fd int, err error) = SYS_PIDFD_GETFD | |||
| 2429 | - | //sys PidfdSendSignal(pidfd int, sig Signal, info *Siginfo, flags int) (err error) = SYS_PIDFD_SEND_SIGNAL | |||
| 2430 | - | ||||
| 2431 | - | //sys shmat(id int, addr uintptr, flag int) (ret uintptr, err error) | |||
| 2432 | - | //sys shmctl(id int, cmd int, buf *SysvShmDesc) (result int, err error) | |||
| 2433 | - | //sys shmdt(addr uintptr) (err error) | |||
| 2434 | - | //sys shmget(key int, size int, flag int) (id int, err error) | |||
| 2435 | - | ||||
| 2436 | - | //sys getitimer(which int, currValue *Itimerval) (err error) | |||
| 2437 | - | //sys setitimer(which int, newValue *Itimerval, oldValue *Itimerval) (err error) | |||
| 2438 | - | ||||
| 2439 | - | // MakeItimerval creates an Itimerval from interval and value durations. | |||
| 2440 | - | func MakeItimerval(interval, value time.Duration) Itimerval { | |||
| 2441 | - | return Itimerval{ | |||
| 2442 | - | Interval: NsecToTimeval(interval.Nanoseconds()), | |||
| 2443 | - | Value: NsecToTimeval(value.Nanoseconds()), | |||
| 2444 | - | } | |||
| 2445 | - | } | |||
| 2446 | - | ||||
| 2447 | - | // A value which may be passed to the which parameter for Getitimer and | |||
| 2448 | - | // Setitimer. | |||
| 2449 | - | type ItimerWhich int | |||
| 2450 | - | ||||
| 2451 | - | // Possible which values for Getitimer and Setitimer. | |||
| 2452 | - | const ( | |||
| 2453 | - | ItimerReal ItimerWhich = ITIMER_REAL | |||
| 2454 | - | ItimerVirtual ItimerWhich = ITIMER_VIRTUAL | |||
| 2455 | - | ItimerProf ItimerWhich = ITIMER_PROF | |||
| 2456 | - | ) | |||
| 2457 | - | ||||
| 2458 | - | // Getitimer wraps getitimer(2) to return the current value of the timer | |||
| 2459 | - | // specified by which. | |||
| 2460 | - | func Getitimer(which ItimerWhich) (Itimerval, error) { | |||
| 2461 | - | var it Itimerval | |||
| 2462 | - | if err := getitimer(int(which), &it); err != nil { | |||
| 2463 | - | return Itimerval{}, err | |||
| 2464 | - | } | |||
| 2465 | - | ||||
| 2466 | - | return it, nil | |||
| 2467 | - | } | |||
| 2468 | - | ||||
| 2469 | - | // Setitimer wraps setitimer(2) to arm or disarm the timer specified by which. | |||
| 2470 | - | // It returns the previous value of the timer. | |||
| 2471 | - | // | |||
| 2472 | - | // If the Itimerval argument is the zero value, the timer will be disarmed. | |||
| 2473 | - | func Setitimer(which ItimerWhich, it Itimerval) (Itimerval, error) { | |||
| 2474 | - | var prev Itimerval | |||
| 2475 | - | if err := setitimer(int(which), &it, &prev); err != nil { | |||
| 2476 | - | return Itimerval{}, err | |||
| 2477 | - | } | |||
| 2478 | - | ||||
| 2479 | - | return prev, nil | |||
| 2480 | - | } | |||
| 2481 | - | ||||
| 2482 | - | //sysnb rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr) (err error) = SYS_RT_SIGPROCMASK | |||
| 2483 | - | ||||
| 2484 | - | func PthreadSigmask(how int, set, oldset *Sigset_t) error { | |||
| 2485 | - | if oldset != nil { | |||
| 2486 | - | // Explicitly clear in case Sigset_t is larger than _C__NSIG. | |||
| 2487 | - | *oldset = Sigset_t{} | |||
| 2488 | - | } | |||
| 2489 | - | return rtSigprocmask(how, set, oldset, _C__NSIG/8) | |||
| 2490 | - | } | |||
| 2491 | - | ||||
| 2492 | - | //sysnb getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) | |||
| 2493 | - | //sysnb getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) | |||
| 2494 | - | ||||
| 2495 | - | func Getresuid() (ruid, euid, suid int) { | |||
| 2496 | - | var r, e, s _C_int | |||
| 2497 | - | getresuid(&r, &e, &s) | |||
| 2498 | - | return int(r), int(e), int(s) | |||
| 2499 | - | } | |||
| 2500 | - | ||||
| 2501 | - | func Getresgid() (rgid, egid, sgid int) { | |||
| 2502 | - | var r, e, s _C_int | |||
| 2503 | - | getresgid(&r, &e, &s) | |||
| 2504 | - | return int(r), int(e), int(s) | |||
| 2505 | - | } | |||
| 2506 | - | ||||
| 2507 | - | // Pselect is a wrapper around the Linux pselect6 system call. | |||
| 2508 | - | // This version does not modify the timeout argument. | |||
| 2509 | - | func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | |||
| 2510 | - | // Per https://man7.org/linux/man-pages/man2/select.2.html#NOTES, | |||
| 2511 | - | // The Linux pselect6() system call modifies its timeout argument. | |||
| 2512 | - | // [Not modifying the argument] is the behavior required by POSIX.1-2001. | |||
| 2513 | - | var mutableTimeout *Timespec | |||
| 2514 | - | if timeout != nil { | |||
| 2515 | - | mutableTimeout = new(Timespec) | |||
| 2516 | - | *mutableTimeout = *timeout | |||
| 2517 | - | } | |||
| 2518 | - | ||||
| 2519 | - | // The final argument of the pselect6() system call is not a | |||
| 2520 | - | // sigset_t * pointer, but is instead a structure | |||
| 2521 | - | var kernelMask *sigset_argpack | |||
| 2522 | - | if sigmask != nil { | |||
| 2523 | - | wordBits := 32 << (^uintptr(0) >> 63) // see math.intSize | |||
| 2524 | - | ||||
| 2525 | - | // A sigset stores one bit per signal, | |||
| 2526 | - | // offset by 1 (because signal 0 does not exist). | |||
| 2527 | - | // So the number of words needed is ⌈__C_NSIG - 1 / wordBits⌉. | |||
| 2528 | - | sigsetWords := (_C__NSIG - 1 + wordBits - 1) / (wordBits) | |||
| 2529 | - | ||||
| 2530 | - | sigsetBytes := uintptr(sigsetWords * (wordBits / 8)) | |||
| 2531 | - | kernelMask = &sigset_argpack{ | |||
| 2532 | - | ss: sigmask, | |||
| 2533 | - | ssLen: sigsetBytes, | |||
| 2534 | - | } | |||
| 2535 | - | } | |||
| 2536 | - | ||||
| 2537 | - | return pselect6(nfd, r, w, e, mutableTimeout, kernelMask) | |||
| 2538 | - | } | |||
| 2539 | - | ||||
| 2540 | - | //sys schedSetattr(pid int, attr *SchedAttr, flags uint) (err error) | |||
| 2541 | - | //sys schedGetattr(pid int, attr *SchedAttr, size uint, flags uint) (err error) | |||
| 2542 | - | ||||
| 2543 | - | // SchedSetAttr is a wrapper for sched_setattr(2) syscall. | |||
| 2544 | - | // https://man7.org/linux/man-pages/man2/sched_setattr.2.html | |||
| 2545 | - | func SchedSetAttr(pid int, attr *SchedAttr, flags uint) error { | |||
| 2546 | - | if attr == nil { | |||
| 2547 | - | return EINVAL | |||
| 2548 | - | } | |||
| 2549 | - | attr.Size = SizeofSchedAttr | |||
| 2550 | - | return schedSetattr(pid, attr, flags) | |||
| 2551 | - | } | |||
| 2552 | - | ||||
| 2553 | - | // SchedGetAttr is a wrapper for sched_getattr(2) syscall. | |||
| 2554 | - | // https://man7.org/linux/man-pages/man2/sched_getattr.2.html | |||
| 2555 | - | func SchedGetAttr(pid int, flags uint) (*SchedAttr, error) { | |||
| 2556 | - | attr := &SchedAttr{} | |||
| 2557 | - | if err := schedGetattr(pid, attr, SizeofSchedAttr, flags); err != nil { | |||
| 2558 | - | return nil, err | |||
| 2559 | - | } | |||
| 2560 | - | return attr, nil | |||
| 2561 | - | } | |||
| 2562 | - | ||||
| 2563 | - | //sys Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) (err error) | |||
| 2564 | - | //sys Mseal(b []byte, flags uint) (err error) | |||
| 2565 | - | ||||
| 2566 | - | //sys setMemPolicy(mode int, mask unsafe.Pointer, size uintptr) (err error) = SYS_SET_MEMPOLICY | |||
| 2567 | - | ||||
| 2568 | - | func SetMemPolicy(mode int, mask *CPUSet) error { | |||
| 2569 | - | return setMemPolicy(mode, unsafe.Pointer(mask), _CPU_SETSIZE) | |||
| 2570 | - | } | |||
| 2571 | - | ||||
| 2572 | - | func SetMemPolicyDynamic(mode int, mask CPUSetDynamic) error { | |||
| 2573 | - | return setMemPolicy(mode, mask.pointer(), mask.size()) | |||
| 2574 | - | } | |||