Update dependencies (#1831)

This commit is contained in:
Wim 2022-05-09 23:00:23 +02:00 committed by GitHub
parent 700b95546b
commit 1e55dd47f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
306 changed files with 435896 additions and 195113 deletions

18
go.mod
View File

@ -12,8 +12,8 @@ require (
github.com/davecgh/go-spew v1.1.1
github.com/fsnotify/fsnotify v1.5.4
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1
github.com/gomarkdown/markdown v0.0.0-20220419181919-412bcf14cd2e
github.com/google/gops v0.3.22
github.com/gomarkdown/markdown v0.0.0-20220509074759-a57bf950ab8c
github.com/google/gops v0.3.23
github.com/gorilla/schema v1.2.0
github.com/gorilla/websocket v1.5.0
github.com/harmony-development/shibshib v0.0.0-20220101224523-c98059d09cfa
@ -22,7 +22,7 @@ require (
github.com/keybase/go-keybase-chat-bot v0.0.0-20220322223021-75d497527469
github.com/kyokomi/emoji/v2 v2.2.9
github.com/labstack/echo/v4 v4.7.2
github.com/lrstanley/girc v0.0.0-20220429030656-4462c51ec0bc
github.com/lrstanley/girc v0.0.0-20220507183218-96757fe3d2a2
github.com/matterbridge/Rocket.Chat.Go.SDK v0.0.0-20211016222428-79310a412696
github.com/matterbridge/go-xmpp v0.0.0-20211030125215-791a06c5f1be
github.com/matterbridge/gomatrix v0.0.0-20220411225302-271e5088ea27
@ -47,7 +47,7 @@ require (
github.com/writeas/go-strip-markdown v2.0.1+incompatible
github.com/yaegashi/msgraph.go v0.1.4
github.com/zfjagann/golang-ring v0.0.0-20220330170733-19bcea1b6289
go.mau.fi/whatsmeow v0.0.0-20220429163952-136d7f5726e9
go.mau.fi/whatsmeow v0.0.0-20220504135614-f1f2a9d231fb
golang.org/x/image v0.0.0-20220413100746-70e8d0d3baa9
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5
golang.org/x/text v0.3.7
@ -55,7 +55,7 @@ require (
google.golang.org/protobuf v1.28.0
gopkg.in/olahol/melody.v1 v1.0.0-20170518105555-d52139073376
layeh.com/gumble v0.0.0-20200818122324-146f9205029b
modernc.org/sqlite v1.17.0
modernc.org/sqlite v1.17.2
)
require (
@ -147,11 +147,11 @@ require (
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
lukechampine.com/uint128 v1.1.1 // indirect
modernc.org/cc/v3 v3.35.26 // indirect
modernc.org/ccgo/v3 v3.16.2 // indirect
modernc.org/libc v1.15.0 // indirect
modernc.org/cc/v3 v3.36.0 // indirect
modernc.org/ccgo/v3 v3.16.6 // indirect
modernc.org/libc v1.16.7 // indirect
modernc.org/mathutil v1.4.1 // indirect
modernc.org/memory v1.0.7 // indirect
modernc.org/memory v1.1.1 // indirect
modernc.org/opt v0.1.1 // indirect
modernc.org/strutil v1.1.1 // indirect
modernc.org/token v1.0.0 // indirect

75
go.sum
View File

@ -711,8 +711,8 @@ github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEW
github.com/golang/snappy v0.0.2/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/gomarkdown/markdown v0.0.0-20220419181919-412bcf14cd2e h1:eF2U4VaZBPyxJZQxz8b0ulG3Dw2yQ2kGRJ9Io/cGQeE=
github.com/gomarkdown/markdown v0.0.0-20220419181919-412bcf14cd2e/go.mod h1:JDGcbDT52eL4fju3sZ4TeHGsQwhG9nbDV21aMyhwPoA=
github.com/gomarkdown/markdown v0.0.0-20220509074759-a57bf950ab8c h1:yGxnjZegu9T/94575b5UGf2uDDYN3elzreWYpkhw2f4=
github.com/gomarkdown/markdown v0.0.0-20220509074759-a57bf950ab8c/go.mod h1:JDGcbDT52eL4fju3sZ4TeHGsQwhG9nbDV21aMyhwPoA=
github.com/gomodule/redigo v1.7.1-0.20190724094224-574c33c3df38/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4=
github.com/gomodule/redigo v2.0.0+incompatible/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4=
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
@ -739,8 +739,8 @@ github.com/google/go-github/v35 v35.2.0/go.mod h1:s0515YVTI+IMrDoy9Y4pHt9ShGpzHv
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/gops v0.3.22 h1:lyvhDxfPLHAOR2xIYwjPhN387qHxyU21Sk9sz/GhmhQ=
github.com/google/gops v0.3.22/go.mod h1:7diIdLsqpCihPSX3fQagksT/Ku/y4RL9LHTlKyEUDl8=
github.com/google/gops v0.3.23 h1:OjsHRINl5FiIyTc8jivIg4UN0GY6Nh32SL8KRbl8GQo=
github.com/google/gops v0.3.23/go.mod h1:7diIdLsqpCihPSX3fQagksT/Ku/y4RL9LHTlKyEUDl8=
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
@ -1077,8 +1077,8 @@ github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/lib/pq v1.10.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/lrstanley/girc v0.0.0-20220429030656-4462c51ec0bc h1:ROrRSOh6B8ItKCdFHvKQ8lpCzz0zf2SkGHqZ3nssEY8=
github.com/lrstanley/girc v0.0.0-20220429030656-4462c51ec0bc/go.mod h1:lgrnhcF8bg/Bd5HA5DOb4Z+uGqUqGnp4skr+J2GwVgI=
github.com/lrstanley/girc v0.0.0-20220507183218-96757fe3d2a2 h1:iqJKGIChW2+aPIpnofEZAKgCNwG2tqytB2a1rJS6B6w=
github.com/lrstanley/girc v0.0.0-20220507183218-96757fe3d2a2/go.mod h1:lgrnhcF8bg/Bd5HA5DOb4Z+uGqUqGnp4skr+J2GwVgI=
github.com/lunixbochs/vtclean v1.0.0/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI=
github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w=
github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
@ -1760,8 +1760,8 @@ go.etcd.io/etcd/client/v2 v2.305.1/go.mod h1:pMEacxZW7o8pg4CrFE7pquyCJJzZvkvdD2R
go.etcd.io/etcd/client/v2 v2.305.2/go.mod h1:2D7ZejHVMIfog1221iLSYlQRzrtECw3kz4I4VAQm3qI=
go.mau.fi/libsignal v0.0.0-20220425070825-c40c839ee6a0 h1:3IQF2bgAyibdo77hTejwuJe4jlypj9QaE4xCQuxrThM=
go.mau.fi/libsignal v0.0.0-20220425070825-c40c839ee6a0/go.mod h1:kBOXTvYyDG/q1Ihgvd4J6WenGPh7wtEGvPKF6vmf5ak=
go.mau.fi/whatsmeow v0.0.0-20220429163952-136d7f5726e9 h1:0F5gvbPeJy+osJIF+SeqSiV/AL2413FpTMLNv4YiVqA=
go.mau.fi/whatsmeow v0.0.0-20220429163952-136d7f5726e9/go.mod h1:iUBgOLNaqShLrR17u0kIiRptIGFH+nbT1tRhaWBEX/c=
go.mau.fi/whatsmeow v0.0.0-20220504135614-f1f2a9d231fb h1:xI4HiJwBMmztBXFzjKWt7Ea8xmOO7LyYCYV0/ROU7kY=
go.mau.fi/whatsmeow v0.0.0-20220504135614-f1f2a9d231fb/go.mod h1:iUBgOLNaqShLrR17u0kIiRptIGFH+nbT1tRhaWBEX/c=
go.mongodb.org/mongo-driver v1.1.0/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM=
go.mongodb.org/mongo-driver v1.7.0/go.mod h1:Q4oFMbo1+MSNqICAdYMlC/zSTrwCogR4R8NzkI+yfU8=
go.mozilla.org/pkcs7 v0.0.0-20200128120323-432b2356ecb1/go.mod h1:SNgMg+EgDFwmvSmLRTNKC5fegJjB7v23qTQ0XLGUNHk=
@ -2620,12 +2620,10 @@ modernc.org/cc/v3 v3.35.15/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g
modernc.org/cc/v3 v3.35.16/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
modernc.org/cc/v3 v3.35.17/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
modernc.org/cc/v3 v3.35.18/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
modernc.org/cc/v3 v3.35.20/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
modernc.org/cc/v3 v3.35.22/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
modernc.org/cc/v3 v3.35.24/go.mod h1:NFUHyPn4ekoC/JHeZFfZurN6ixxawE1BnVonP/oahEI=
modernc.org/cc/v3 v3.35.25/go.mod h1:NFUHyPn4ekoC/JHeZFfZurN6ixxawE1BnVonP/oahEI=
modernc.org/cc/v3 v3.35.26 h1:S4B+fg6/9krLtfZ9lr7pfKiESopiv+Sm6lUUI3oc0fY=
modernc.org/cc/v3 v3.35.26/go.mod h1:NFUHyPn4ekoC/JHeZFfZurN6ixxawE1BnVonP/oahEI=
modernc.org/cc/v3 v3.36.0 h1:0kmRkTmqNidmu3c7BNDSdVHCxXCkWLmWmCIVX4LUboo=
modernc.org/cc/v3 v3.36.0/go.mod h1:NFUHyPn4ekoC/JHeZFfZurN6ixxawE1BnVonP/oahEI=
modernc.org/ccgo/v3 v3.0.0-20220428102840-41399a37e894/go.mod h1:eI31LL8EwEBKPpNpA4bU1/i+sKOwOrQy8D87zWUcRZc=
modernc.org/ccgo/v3 v3.0.0-20220430103911-bc99d88307be/go.mod h1:bwdAnOoaIt8Ax9YdWGjxWsdkPcZyRPHqrOvJxaKAKGw=
modernc.org/ccgo/v3 v3.9.2/go.mod h1:gnJpy6NIVqkETT+L5zPsQFj7L2kkhfPMzOghRNv/CFo=
modernc.org/ccgo/v3 v3.9.5/go.mod h1:umuo2EP2oDSBnD3ckjaVUXMrmeAw8C8OSICVa0iFf60=
modernc.org/ccgo/v3 v3.10.0/go.mod h1:c0yBmkRFi7uW4J7fwx/JiijwOjeAeR2NoSaRVFPmjMw=
@ -2666,19 +2664,9 @@ modernc.org/ccgo/v3 v3.12.88/go.mod h1:0MFzUHIuSIthpVZyMWiFYMwjiFnhrN5MkvBrUwON+
modernc.org/ccgo/v3 v3.12.90/go.mod h1:obhSc3CdivCRpYZmrvO88TXlW0NvoSVvdh/ccRjJYko=
modernc.org/ccgo/v3 v3.12.92/go.mod h1:5yDdN7ti9KWPi5bRVWPl8UNhpEAtCjuEE7ayQnzzqHA=
modernc.org/ccgo/v3 v3.12.95/go.mod h1:ZcLyvtocXYi8uF+9Ebm3G8EF8HNY5hGomBqthDp4eC8=
modernc.org/ccgo/v3 v3.13.1/go.mod h1:aBYVOUfIlcSnrsRVU8VRS35y2DIfpgkmVkYZ0tpIXi4=
modernc.org/ccgo/v3 v3.15.9/go.mod h1:md59wBwDT2LznX/OTCPoVS6KIsdRgY8xqQwBV+hkTH0=
modernc.org/ccgo/v3 v3.15.10/go.mod h1:wQKxoFn0ynxMuCLfFD09c8XPUCc8obfchoVR9Cn0fI8=
modernc.org/ccgo/v3 v3.15.12/go.mod h1:VFePOWoCd8uDGRJpq/zfJ29D0EVzMSyID8LCMWYbX6I=
modernc.org/ccgo/v3 v3.15.14/go.mod h1:144Sz2iBCKogb9OKwsu7hQEub3EVgOlyI8wMUPGKUXQ=
modernc.org/ccgo/v3 v3.15.15/go.mod h1:z5qltXjU4PJl0pE5nhYQCvA9DhPHiWsl5GWl89+NSYE=
modernc.org/ccgo/v3 v3.15.16/go.mod h1:XbKRMeMWMdq712Tr5ECgATYMrzJ+g9zAZEj2ktzBe24=
modernc.org/ccgo/v3 v3.15.17/go.mod h1:bofnFkpRFf5gLY+mBZIyTW6FEcp26xi2lgOFk2Rlvs0=
modernc.org/ccgo/v3 v3.15.19/go.mod h1:TDJj+DxR26pkDteH2E5WQDj/xlmtsX7JdzkJkaZhOVU=
modernc.org/ccgo/v3 v3.16.0/go.mod h1:w55kPTAqvRMAYS3Lwij6qhqIuBEYS3Z8QtDkjD8cnik=
modernc.org/ccgo/v3 v3.16.1/go.mod h1:w55kPTAqvRMAYS3Lwij6qhqIuBEYS3Z8QtDkjD8cnik=
modernc.org/ccgo/v3 v3.16.2 h1:FUklsEMps3Y2heuTOmn/l6mv83nQgCjW3nsU+1JXzuQ=
modernc.org/ccgo/v3 v3.16.2/go.mod h1:w55kPTAqvRMAYS3Lwij6qhqIuBEYS3Z8QtDkjD8cnik=
modernc.org/ccgo/v3 v3.16.4/go.mod h1:tGtX0gE9Jn7hdZFeU88slbTh1UtCYKusWOoCJuvkWsQ=
modernc.org/ccgo/v3 v3.16.6 h1:3l18poV+iUemQ98O3X5OMr97LOqlzis+ytivU4NqGhA=
modernc.org/ccgo/v3 v3.16.6/go.mod h1:tGtX0gE9Jn7hdZFeU88slbTh1UtCYKusWOoCJuvkWsQ=
modernc.org/ccorpus v1.11.1/go.mod h1:2gEUTrWqdpH2pXsmTM1ZkjeSrUWDpjMu2T6m29L/ErQ=
modernc.org/ccorpus v1.11.6 h1:J16RXiiqiCgua6+ZvQot4yUuUy8zxgqbqEEUuGPlISk=
modernc.org/ccorpus v1.11.6/go.mod h1:2gEUTrWqdpH2pXsmTM1ZkjeSrUWDpjMu2T6m29L/ErQ=
@ -2689,6 +2677,7 @@ modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk=
modernc.org/httpfs v1.0.6 h1:AAgIpFZRXuYnkjftxTAZwMIiwEqAfk8aVB2/oA6nAeM=
modernc.org/httpfs v1.0.6/go.mod h1:7dosgurJGp0sPaRanU53W4xZYKh14wfzX420oZADeHM=
modernc.org/internal v1.0.0/go.mod h1:VUD/+JAkhCpvkUitlEOnhpVxCgsBI90oTzSCRcqQVSM=
modernc.org/libc v0.0.0-20220428101251-2d5f3daf273b/go.mod h1:p7Mg4+koNjc8jkqwcoFBJx7tXkpj00G77X7A72jXPXA=
modernc.org/libc v1.7.13-0.20210308123627-12f642a52bb8/go.mod h1:U1eq8YWr/Kc1RWCMFUWEdkTg8OTcfLw2kY8EDwl039w=
modernc.org/libc v1.9.5/go.mod h1:U1eq8YWr/Kc1RWCMFUWEdkTg8OTcfLw2kY8EDwl039w=
modernc.org/libc v1.9.8/go.mod h1:U1eq8YWr/Kc1RWCMFUWEdkTg8OTcfLw2kY8EDwl039w=
@ -2731,17 +2720,10 @@ modernc.org/libc v1.11.98/go.mod h1:ynK5sbjsU77AP+nn61+k+wxUGRx9rOFcIqWYYMaDZ4c=
modernc.org/libc v1.11.99/go.mod h1:wLLYgEiY2D17NbBOEp+mIJJJBGSiy7fLL4ZrGGZ+8jI=
modernc.org/libc v1.11.101/go.mod h1:wLLYgEiY2D17NbBOEp+mIJJJBGSiy7fLL4ZrGGZ+8jI=
modernc.org/libc v1.11.104/go.mod h1:2MH3DaF/gCU8i/UBiVE1VFRos4o523M7zipmwH8SIgQ=
modernc.org/libc v1.12.0/go.mod h1:2MH3DaF/gCU8i/UBiVE1VFRos4o523M7zipmwH8SIgQ=
modernc.org/libc v1.14.1/go.mod h1:npFeGWjmZTjFeWALQLrvklVmAxv4m80jnG3+xI8FdJk=
modernc.org/libc v1.14.2/go.mod h1:MX1GBLnRLNdvmK9azU9LCxZ5lMyhrbEMK8rG3X/Fe34=
modernc.org/libc v1.14.3/go.mod h1:GPIvQVOVPizzlqyRX3l756/3ppsAgg1QgPxjr5Q4agQ=
modernc.org/libc v1.14.6/go.mod h1:2PJHINagVxO4QW/5OQdRrvMYo+bm5ClpUFfyXCYl9ak=
modernc.org/libc v1.14.7/go.mod h1:f8xfWXW8LW41qb4X5+huVQo5dcfPlq7Cbny2TDheMv0=
modernc.org/libc v1.14.8/go.mod h1:9+JCLb1MWSY23smyOpIPbd5ED+rSS/ieiDWUpdyO3mo=
modernc.org/libc v1.14.10/go.mod h1:y1MtIWhwpJFpLYm6grAThtuXJKEsY6xkdZmXbRngIdo=
modernc.org/libc v1.14.12/go.mod h1:fJdoe23MHu2ruPQkFPPqCpToDi5cckzsbmkI6Ez0LqQ=
modernc.org/libc v1.15.0 h1:/CTHjQ1QO5mkLDeQICuA9Vh0YvhQTMqtCF2urQTaod8=
modernc.org/libc v1.15.0/go.mod h1:H1OKCu+NYa9+uQG8WsP7DndMBP61I4PWH8ivWhbdoWQ=
modernc.org/libc v1.16.0/go.mod h1:N4LD6DBE9cf+Dzf9buBlzVJndKr/iJHG97vGLHYnb5A=
modernc.org/libc v1.16.1/go.mod h1:JjJE0eu4yeK7tab2n4S1w8tlWd9MxXLRzheaRnAKymU=
modernc.org/libc v1.16.7 h1:qzQtHhsZNpVPpeCu+aMIQldXeV1P0vRhSqCL0nOIJOA=
modernc.org/libc v1.16.7/go.mod h1:hYIV5VZczAmGZAnG15Vdngn5HSF5cSkbvfz2B7GRuVU=
modernc.org/lldb v1.0.0/go.mod h1:jcRvJGWfCGodDZz8BPwiKMJxGJngQ/5DrRapkQnLob8=
modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k=
modernc.org/mathutil v1.1.1/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
@ -2751,31 +2733,30 @@ modernc.org/mathutil v1.4.1 h1:ij3fYGe8zBF4Vu+g0oT7mB06r8sqGWKuJu1yXeR4by8=
modernc.org/mathutil v1.4.1/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
modernc.org/memory v1.0.4/go.mod h1:nV2OApxradM3/OVbs2/0OsP6nPfakXpi50C7dcoHXlc=
modernc.org/memory v1.0.5/go.mod h1:B7OYswTRnfGg+4tDH1t1OeUNnsy2viGTdME4tzd+IjM=
modernc.org/memory v1.0.6/go.mod h1:/0wo5ibyrQiaoUoH7f9D8dnglAmILJ5/cxZlRECf+Nw=
modernc.org/memory v1.0.7 h1:UE3cxTRFa5tfUibAV7Jqq8P7zRY0OlJg+yWVIIaluEE=
modernc.org/memory v1.0.7/go.mod h1:/0wo5ibyrQiaoUoH7f9D8dnglAmILJ5/cxZlRECf+Nw=
modernc.org/memory v1.1.1 h1:bDOL0DIDLQv7bWhP3gMvIrnoFw+Eo6F7a2QK9HPDiFU=
modernc.org/memory v1.1.1/go.mod h1:/0wo5ibyrQiaoUoH7f9D8dnglAmILJ5/cxZlRECf+Nw=
modernc.org/opt v0.1.1 h1:/0RX92k9vwVeDXj+Xn23DKp2VJubL7k8qNffND6qn3A=
modernc.org/opt v0.1.1/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0=
modernc.org/ql v1.0.0/go.mod h1:xGVyrLIatPcO2C1JvI/Co8c0sr6y91HKFNy4pt9JXEY=
modernc.org/sortutil v1.1.0/go.mod h1:ZyL98OQHJgH9IEfN71VsamvJgrtRX9Dj2gX+vH86L1k=
modernc.org/sqlite v1.10.6/go.mod h1:Z9FEjUtZP4qFEg6/SiADg9XCER7aYy9a/j7Pg9P7CPs=
modernc.org/sqlite v1.14.3/go.mod h1:xMpicS1i2MJ4C8+Ap0vYBqTwYfpFvdnPE6brbFOtV2Y=
modernc.org/sqlite v1.17.0 h1:yF5JlxCzQOn2WzyfGAPvHbMNx98ifXLno7a97qggXjE=
modernc.org/sqlite v1.17.0/go.mod h1:yMNaeEckF88G+PcfRcZRwGE+XnBkzWl/j15bPsDm4QM=
modernc.org/sqlite v1.17.2 h1:TjmF36Wi5QcPYqRoAacV1cAyJ7xB/CD0ExpVUEMebnw=
modernc.org/sqlite v1.17.2/go.mod h1:GOQmuiXd6pTTes1Fi2s9apiCcD/wbKQtBZ0Nw6/etjM=
modernc.org/strutil v1.1.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs=
modernc.org/strutil v1.1.1 h1:xv+J1BXY3Opl2ALrBwyfEikFAj8pmqcpnfmuwUwcozs=
modernc.org/strutil v1.1.1/go.mod h1:DE+MQQ/hjKBZS2zNInV5hhcipt5rLPWkmpbGeW5mmdw=
modernc.org/tcl v1.5.2/go.mod h1:pmJYOLgpiys3oI4AeAafkcUfE+TKKilminxNyU/+Zlo=
modernc.org/tcl v1.9.2/go.mod h1:aw7OnlIoiuJgu1gwbTZtrKnGpDqH9wyH++jZcxdqNsg=
modernc.org/tcl v1.12.0 h1:Mw2Ukszv5qZbwk/wC9HkDjxhPD4exnd/7/zVxqrB4rY=
modernc.org/tcl v1.12.0/go.mod h1:9zyAWctRV6IAkMTBeGLyYYqcBrTlVy3ubqiY3dzMfwI=
modernc.org/tcl v1.13.1 h1:npxzTwFTZYM8ghWicVIX1cRWzj7Nd8i6AqqX2p+IYao=
modernc.org/tcl v1.13.1/go.mod h1:XOLfOwzhkljL4itZkK6T72ckMgvj0BDsnKNdZVUOecw=
modernc.org/token v1.0.0 h1:a0jaWiNMDhDUtqOj09wvjWWAqd3q7WpBulmL9H2egsk=
modernc.org/token v1.0.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
modernc.org/z v1.0.1-0.20210308123920-1f282aa71362/go.mod h1:8/SRk5C/HgiQWCgXdfpb+1RvhORdkz5sw72d3jjtyqA=
modernc.org/z v1.0.1/go.mod h1:8/SRk5C/HgiQWCgXdfpb+1RvhORdkz5sw72d3jjtyqA=
modernc.org/z v1.2.20/go.mod h1:zU9FiF4PbHdOTUxw+IF8j7ArBMRPsHgq10uVPt6xTzo=
modernc.org/z v1.4.0 h1:IpbQb3bOi5Fz17UVGU/mSor8sKIu/7pdCsmGGnQHcxs=
modernc.org/z v1.4.0/go.mod h1:x6vxerH3hHCPGA3DAM5pERRzuyJEO4UGVfdQC4NZYl0=
modernc.org/z v1.5.1 h1:RTNHdsrOpeoSeOF4FbzTo8gBYByaJ5xT7NgZ9ZqRiJM=
modernc.org/z v1.5.1/go.mod h1:eWFB510QWW5Th9YGZT81s+LwvaAs3Q2yr4sP0rmLkv8=
modernc.org/zappy v1.0.0/go.mod h1:hHe+oGahLVII/aTTyWK/b53VDHMAGCBYYeZ9sn83HC4=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/goversion v1.2.0/go.mod h1:Eih9y/uIBS3ulggl7KNJ09xGSLcuNaLgmvvqa07sgfo=

View File

@ -858,12 +858,9 @@ func isFenceLine(data []byte, syntax *string, oldmarker string) (end int, marker
return 0, ""
}
// TODO(shurcooL): It's probably a good idea to simplify the 2 code paths here
// into one, always get the syntax, and discard it if the caller doesn't care.
if syntax != nil {
syn := 0
// if just read the beginning marker, read the syntax
if oldmarker == "" {
i = skipChar(data, i, ' ')
if i >= n {
if i == n {
return i, marker
@ -871,41 +868,15 @@ func isFenceLine(data []byte, syntax *string, oldmarker string) (end int, marker
return 0, ""
}
syntaxStart := i
if data[i] == '{' {
i++
syntaxStart++
for i < n && data[i] != '}' && data[i] != '\n' {
syn++
i++
}
if i >= n || data[i] != '}' {
return 0, ""
}
// strip all whitespace at the beginning and the end
// of the {} block
for syn > 0 && isSpace(data[syntaxStart]) {
syntaxStart++
syn--
}
for syn > 0 && isSpace(data[syntaxStart+syn-1]) {
syn--
}
i++
} else {
for i < n && !isSpace(data[i]) {
syn++
i++
}
syntaxStart, syntaxLen := syntaxRange(data, &i)
if syntaxStart == 0 && syntaxLen == 0 {
return 0, ""
}
*syntax = string(data[syntaxStart : syntaxStart+syn])
// caller wants the syntax
if syntax != nil {
*syntax = string(data[syntaxStart : syntaxStart+syntaxLen])
}
}
i = skipChar(data, i, ' ')
@ -918,6 +889,47 @@ func isFenceLine(data []byte, syntax *string, oldmarker string) (end int, marker
return i + 1, marker // Take newline into account.
}
func syntaxRange(data []byte, iout *int) (int, int) {
n := len(data)
syn := 0
i := *iout
syntaxStart := i
if data[i] == '{' {
i++
syntaxStart++
for i < n && data[i] != '}' && data[i] != '\n' {
syn++
i++
}
if i >= n || data[i] != '}' {
return 0, 0
}
// strip all whitespace at the beginning and the end
// of the {} block
for syn > 0 && isSpace(data[syntaxStart]) {
syntaxStart++
syn--
}
for syn > 0 && isSpace(data[syntaxStart+syn-1]) {
syn--
}
i++
} else {
for i < n && !isSpace(data[i]) {
syn++
i++
}
}
*iout = i
return syntaxStart, syn
}
// fencedCodeBlock returns the end index if data contains a fenced code block at the beginning,
// or 0 otherwise. It writes to out if doRender is true, otherwise it has no side effects.
// If doRender is true, a final newline is mandatory to recognize the fenced code block.
@ -1416,7 +1428,7 @@ gatherlines:
// we need to add leadingWhiteSpaces + 1 spaces in the beginning of the chunk
if indentIndex >= 4 && p.dliPrefix(chunk) <= 0 {
leadingWhiteSpaces := skipChar(chunk, 0, ' ')
chunk = data[ line+indentIndex - (leadingWhiteSpaces + 1) : i]
chunk = data[line+indentIndex-(leadingWhiteSpaces+1) : i]
}
// to be a nested list, it must be indented more

View File

@ -131,7 +131,11 @@ func codeSpan(p *Parser, data []byte, offset int) (int, ast.Node) {
// find the next delimiter
i, end := 0, 0
hasLFBeforeDelimiter := false
for end = nb; end < len(data) && i < nb; end++ {
if data[end] == '\n' {
hasLFBeforeDelimiter = true
}
if data[end] == '`' {
i++
} else {
@ -144,6 +148,18 @@ func codeSpan(p *Parser, data []byte, offset int) (int, ast.Node) {
return 0, nil
}
// If there are non-space chars after the ending delimiter and before a '\n',
// flag that this is not a well formed fenced code block.
hasCharsAfterDelimiter := false
for j := end; j < len(data); j++ {
if data[j] == '\n' {
break
}
if !isSpace(data[j]) {
hasCharsAfterDelimiter = true
}
}
// trim outside whitespace
fBegin := nb
for fBegin < end && data[fBegin] == ' ' {
@ -155,14 +171,31 @@ func codeSpan(p *Parser, data []byte, offset int) (int, ast.Node) {
fEnd--
}
// render the code span
if fBegin != fEnd {
code := &ast.Code{}
code.Literal = data[fBegin:fEnd]
return end, code
if fBegin == fEnd {
return end, nil
}
return end, nil
// if delimiter has 3 backticks
if nb == 3 {
i := fBegin
syntaxStart, syntaxLen := syntaxRange(data, &i)
// If we found a '\n' before the end marker and there are only spaces
// after the end marker, then this is a code block.
if hasLFBeforeDelimiter && !hasCharsAfterDelimiter {
codeblock := &ast.CodeBlock{
IsFenced: true,
Info: data[syntaxStart : syntaxStart+syntaxLen],
}
codeblock.Literal = data[i:fEnd]
return end, codeblock
}
}
// render the code span
code := &ast.Code{}
code.Literal = data[fBegin:fEnd]
return end, code
}
// newline preceded by two spaces becomes <br>
@ -781,7 +814,7 @@ func entity(p *Parser, data []byte, offset int) (int, ast.Node) {
codepoint, err = strconv.ParseUint(string(ent[2:len(ent)-1]), 10, 64)
}
if err == nil { // only if conversion was valid return here.
return end, newTextNode([]byte(string(codepoint)))
return end, newTextNode([]byte(string(rune(codepoint))))
}
return end, newTextNode(ent)

View File

@ -10,6 +10,7 @@ indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 100
[*.tf]
indent_size = 2
@ -21,7 +22,7 @@ indent_size = 4
[*.md]
trim_trailing_whitespace = false
[*.{md,py,sh,yml,yaml}]
[*.{md,py,sh,yml,yaml,js,ts,vue,css}]
max_line_length = 105
[*.{yml,yaml,toml}]
@ -32,6 +33,10 @@ indent_size = 2
insert_final_newline = ignore
[*.html]
max_line_length = 140
indent_size = 2
[*.{js,ts,vue,css}]
indent_size = 2
[Makefile]

View File

@ -112,6 +112,8 @@ type Client struct {
AutoTrustIdentity bool
DebugDecodeBeforeSend bool
OneMessageAtATime bool
messageSendLock sync.Mutex
uniqueID string
idCounter uint32
@ -262,7 +264,7 @@ func (cli *Client) onDisconnect(ns *socket.NoiseSocket, remote bool) {
defer cli.socketLock.Unlock()
if cli.socket == ns {
cli.socket = nil
cli.clearResponseWaiters()
cli.clearResponseWaiters(xmlStreamEndNode)
if !cli.isExpectedDisconnect() && remote {
cli.Log.Debugf("Emitting Disconnected event")
go cli.dispatchEvent(&events.Disconnected{})
@ -294,9 +296,9 @@ func (cli *Client) autoReconnect() {
return
}
for {
cli.AutoReconnectErrors++
autoReconnectDelay := time.Duration(cli.AutoReconnectErrors) * 2 * time.Second
cli.Log.Debugf("Automatically reconnecting after %v", autoReconnectDelay)
cli.AutoReconnectErrors++
time.Sleep(autoReconnectDelay)
err := cli.Connect()
if errors.Is(err, ErrAlreadyConnected) {
@ -489,30 +491,35 @@ func (cli *Client) handlerQueueLoop(ctx context.Context) {
}
}
func (cli *Client) sendNode(node waBinary.Node) error {
func (cli *Client) sendNodeDebug(node waBinary.Node) ([]byte, error) {
cli.socketLock.RLock()
sock := cli.socket
cli.socketLock.RUnlock()
if sock == nil {
return ErrNotConnected
return nil, ErrNotConnected
}
payload, err := waBinary.Marshal(node)
if err != nil {
return fmt.Errorf("failed to marshal node: %w", err)
return nil, fmt.Errorf("failed to marshal node: %w", err)
}
if cli.DebugDecodeBeforeSend {
var decoded *waBinary.Node
decoded, err = waBinary.Unmarshal(payload[1:])
if err != nil {
cli.Log.Infof("Malformed payload: %s", base64.URLEncoding.EncodeToString(payload))
return fmt.Errorf("failed to decode the binary we just produced: %w", err)
return nil, fmt.Errorf("failed to decode the binary we just produced: %w", err)
}
node = *decoded
}
cli.sendLog.Debugf("%s", node.XMLString())
return sock.SendFrame(payload)
return payload, sock.SendFrame(payload)
}
func (cli *Client) sendNode(node waBinary.Node) error {
_, err := cli.sendNodeDebug(node)
return err
}
func (cli *Client) dispatchEvent(evt interface{}) {

View File

@ -17,6 +17,7 @@ import (
func (cli *Client) handleStreamError(node *waBinary.Node) {
atomic.StoreUint32(&cli.isLoggedIn, 0)
cli.clearResponseWaiters(node)
code, _ := node.Attrs["code"].(string)
conflict, _ := node.GetOptionalChildByTag("conflict")
conflictType := conflict.AttrGetter().OptionalString("type")

View File

@ -15,11 +15,10 @@ import (
// Miscellaneous errors
var (
ErrNoSession = errors.New("can't encrypt message for device: no signal session established")
ErrIQTimedOut = errors.New("info query timed out")
ErrIQDisconnected = errors.New("websocket disconnected before info query returned response")
ErrNotConnected = errors.New("websocket not connected")
ErrNotLoggedIn = errors.New("the store doesn't contain a device JID")
ErrNoSession = errors.New("can't encrypt message for device: no signal session established")
ErrIQTimedOut = errors.New("info query timed out")
ErrNotConnected = errors.New("websocket not connected")
ErrNotLoggedIn = errors.New("the store doesn't contain a device JID")
ErrAlreadyConnected = errors.New("websocket is already connected")
@ -47,6 +46,10 @@ var (
ErrBusinessMessageLinkNotFound = errors.New("that business message link does not exist or has been revoked")
// ErrInvalidImageFormat is returned by SetGroupPhoto if the given photo is not in the correct format.
ErrInvalidImageFormat = errors.New("the given data is not a valid image")
// ErrMediaNotAvailableOnPhone is returned by DecryptMediaRetryNotification if the given event contains error code 2.
ErrMediaNotAvailableOnPhone = errors.New("media no longer available on phone")
// ErrUnknownMediaRetryError is returned by DecryptMediaRetryNotification if the given event contains an unknown error code.
ErrUnknownMediaRetryError = errors.New("unknown media retry error")
)
// Some errors that Client.SendMessage can return
@ -54,7 +57,6 @@ var (
ErrBroadcastListUnsupported = errors.New("sending to broadcast lists is not yet supported")
ErrUnknownServer = errors.New("can't send message to unknown server")
ErrRecipientADJID = errors.New("message recipient must be normal (non-AD) JID")
ErrSendDisconnected = errors.New("websocket disconnected before message send returned response")
)
// Some errors that Client.Download can return
@ -157,3 +159,23 @@ type ElementMissingError struct {
func (eme *ElementMissingError) Error() string {
return fmt.Sprintf("missing <%s> element in %s", eme.Tag, eme.In)
}
var ErrIQDisconnected = &DisconnectedError{Action: "info query"}
// DisconnectedError is returned if the websocket disconnects before an info query or other request gets a response.
type DisconnectedError struct {
Action string
Node *waBinary.Node
}
func (err *DisconnectedError) Error() string {
return fmt.Sprintf("websocket disconnected before %s returned response", err.Action)
}
func (err *DisconnectedError) Is(other error) bool {
otherDisc, ok := other.(*DisconnectedError)
if !ok {
return false
}
return otherDisc.Action == err.Action
}

View File

@ -105,20 +105,22 @@ func (cli *Client) SendMediaRetryReceipt(message *types.MessageInfo, mediaKey []
// DecryptMediaRetryNotification decrypts a media retry notification using the media key.
func DecryptMediaRetryNotification(evt *events.MediaRetry, mediaKey []byte) (*waProto.MediaRetryNotification, error) {
gcm, err := prepareMediaRetryGCM(mediaKey)
if err != nil {
return nil, err
}
plaintext, err := gcm.Open(nil, evt.IV, evt.Ciphertext, []byte(evt.MessageID))
if err != nil {
return nil, fmt.Errorf("failed to decrypt notification: %w", err)
}
var notif waProto.MediaRetryNotification
err = proto.Unmarshal(plaintext, &notif)
if err != nil {
var plaintext []byte
if evt.Error != nil && evt.Ciphertext == nil {
if evt.Error.Code == 2 {
return nil, ErrMediaNotAvailableOnPhone
}
return nil, fmt.Errorf("%w (code: %d)", ErrUnknownMediaRetryError, evt.Error.Code)
} else if gcm, err := prepareMediaRetryGCM(mediaKey); err != nil {
return nil, err
} else if plaintext, err = gcm.Open(nil, evt.IV, evt.Ciphertext, []byte(evt.MessageID)); err != nil {
return nil, fmt.Errorf("failed to decrypt notification: %w", err)
} else if err = proto.Unmarshal(plaintext, &notif); err != nil {
return nil, fmt.Errorf("failed to unmarshal notification (invalid encryption key?): %w", err)
} else {
return &notif, nil
}
return &notif, nil
}
func parseMediaRetryNotification(node *waBinary.Node) (*events.MediaRetry, error) {
@ -141,6 +143,14 @@ func parseMediaRetryNotification(node *waBinary.Node) (*events.MediaRetry, error
return nil, fmt.Errorf("missing attributes in <rmr> tag: %w", rmrAG.Error())
}
errNode, ok := node.GetOptionalChildByTag("error")
if ok {
evt.Error = &events.MediaRetryError{
Code: errNode.AttrGetter().Int("code"),
}
return &evt, nil
}
evt.Ciphertext, ok = node.GetChildByTag("encrypt", "enc_p").Content.([]byte)
if !ok {
return nil, &ElementMissingError{Tag: "enc_p", In: fmt.Sprintf("retry notification %s", evt.MessageID)}
@ -153,7 +163,6 @@ func parseMediaRetryNotification(node *waBinary.Node) (*events.MediaRetry, error
}
func (cli *Client) handleMediaRetryNotification(node *waBinary.Node) {
// TODO handle errors (e.g. <error code="2"/>)
evt, err := parseMediaRetryNotification(node)
if err != nil {
cli.Log.Warnf("Failed to parse media retry notification: %v", err)

View File

@ -8,6 +8,7 @@ package whatsmeow
import (
"context"
"encoding/base64"
"strconv"
"sync/atomic"
"time"
@ -20,13 +21,17 @@ func (cli *Client) generateRequestID() string {
return cli.uniqueID + strconv.FormatUint(uint64(atomic.AddUint32(&cli.idCounter, 1)), 10)
}
var closedNode = &waBinary.Node{Tag: "xmlstreamend"}
var xmlStreamEndNode = &waBinary.Node{Tag: "xmlstreamend"}
func (cli *Client) clearResponseWaiters() {
func isDisconnectNode(node *waBinary.Node) bool {
return node == xmlStreamEndNode || node.Tag == "stream:error"
}
func (cli *Client) clearResponseWaiters(node *waBinary.Node) {
cli.responseWaitersLock.Lock()
for _, waiter := range cli.responseWaiters {
select {
case waiter <- closedNode:
case waiter <- node:
default:
close(waiter)
}
@ -86,7 +91,7 @@ type infoQuery struct {
Context context.Context
}
func (cli *Client) sendIQAsync(query infoQuery) (<-chan *waBinary.Node, error) {
func (cli *Client) sendIQAsyncDebug(query infoQuery) (<-chan *waBinary.Node, []byte, error) {
if len(query.ID) == 0 {
query.ID = cli.generateRequestID()
}
@ -102,20 +107,25 @@ func (cli *Client) sendIQAsync(query infoQuery) (<-chan *waBinary.Node, error) {
if !query.Target.IsEmpty() {
attrs["target"] = query.Target
}
err := cli.sendNode(waBinary.Node{
data, err := cli.sendNodeDebug(waBinary.Node{
Tag: "iq",
Attrs: attrs,
Content: query.Content,
})
if err != nil {
cli.cancelResponse(query.ID, waiter)
return nil, err
return nil, data, err
}
return waiter, nil
return waiter, data, nil
}
func (cli *Client) sendIQAsync(query infoQuery) (<-chan *waBinary.Node, error) {
ch, _, err := cli.sendIQAsyncDebug(query)
return ch, err
}
func (cli *Client) sendIQ(query infoQuery) (*waBinary.Node, error) {
resChan, err := cli.sendIQAsync(query)
resChan, data, err := cli.sendIQAsyncDebug(query)
if err != nil {
return nil, err
}
@ -127,8 +137,11 @@ func (cli *Client) sendIQ(query infoQuery) (*waBinary.Node, error) {
}
select {
case res := <-resChan:
if res == closedNode {
return nil, ErrIQDisconnected
if isDisconnectNode(res) {
if cli.DebugDecodeBeforeSend && res.Tag == "stream:error" && res.GetChildByTag("xml-not-well-formed").Tag != "" {
cli.Log.Debugf("Info query that was interrupted by xml-not-well-formed: %s", base64.URLEncoding.EncodeToString(data))
}
return nil, &DisconnectedError{Action: "info query", Node: res}
}
resType, _ := res.Attrs["type"].(string)
if res.Tag != "iq" || (resType != "result" && resType != "error") {

View File

@ -148,6 +148,13 @@ func (cli *Client) handleRetryReceipt(receipt *events.Receipt, node *waBinary.No
} else if bundle == nil {
return fmt.Errorf("didn't get prekey bundle for %s (response size: %d)", senderAD, len(keys))
}
if retryCount > 3 {
cli.Log.Debugf("Erasing existing session for %s due to retry receipt with count>3", receipt.Sender)
err = cli.Store.Sessions.DeleteSession(receipt.Sender.SignalAddress().String())
if err != nil {
return fmt.Errorf("failed to delete session for %s: %w", senderAD, err)
}
}
}
encrypted, includeDeviceIdentity, err := cli.encryptMessageForDevice(plaintext, receipt.Sender, bundle)
if err != nil {
@ -161,6 +168,9 @@ func (cli *Client) handleRetryReceipt(receipt *events.Receipt, node *waBinary.No
"id": messageID,
"t": timestamp.Unix(),
}
if !receipt.IsGroup {
attrs["device_fanout"] = false
}
if participant, ok := node.Attrs["participant"]; ok {
attrs["participant"] = participant
}

View File

@ -73,15 +73,21 @@ func (cli *Client) SendMessage(to types.JID, id types.MessageID, message *waProt
id = GenerateMessageID()
}
if cli.OneMessageAtATime {
cli.messageSendLock.Lock()
defer cli.messageSendLock.Unlock()
}
cli.addRecentMessage(to, id, message)
respChan := cli.waitResponse(id)
var err error
var phash string
var data []byte
switch to.Server {
case types.GroupServer:
phash, err = cli.sendGroup(to, id, message)
phash, data, err = cli.sendGroup(to, id, message)
case types.DefaultUserServer:
err = cli.sendDM(to, id, message)
data, err = cli.sendDM(to, id, message)
case types.BroadcastServer:
err = ErrBroadcastListUnsupported
default:
@ -92,8 +98,11 @@ func (cli *Client) SendMessage(to types.JID, id types.MessageID, message *waProt
return time.Time{}, err
}
resp := <-respChan
if resp == closedNode {
return time.Time{}, ErrSendDisconnected
if isDisconnectNode(resp) {
if cli.DebugDecodeBeforeSend && resp.Tag == "stream:error" && resp.GetChildByTag("xml-not-well-formed").Tag != "" {
cli.Log.Debugf("Message that was interrupted by xml-not-well-formed: %s", base64.URLEncoding.EncodeToString(data))
}
return time.Time{}, &DisconnectedError{Action: "message send", Node: resp}
}
ag := resp.AttrGetter()
ts := time.Unix(ag.Int64("t"), 0)
@ -137,22 +146,22 @@ func participantListHashV2(participants []types.JID) string {
return fmt.Sprintf("2:%s", base64.RawStdEncoding.EncodeToString(hash[:6]))
}
func (cli *Client) sendGroup(to types.JID, id types.MessageID, message *waProto.Message) (string, error) {
func (cli *Client) sendGroup(to types.JID, id types.MessageID, message *waProto.Message) (string, []byte, error) {
participants, err := cli.getGroupMembers(to)
if err != nil {
return "", fmt.Errorf("failed to get group members: %w", err)
return "", nil, fmt.Errorf("failed to get group members: %w", err)
}
plaintext, _, err := marshalMessage(to, message)
if err != nil {
return "", err
return "", nil, err
}
builder := groups.NewGroupSessionBuilder(cli.Store, pbSerializer)
senderKeyName := protocol.NewSenderKeyName(to.String(), cli.Store.ID.SignalAddress())
signalSKDMessage, err := builder.Create(senderKeyName)
if err != nil {
return "", fmt.Errorf("failed to create sender key distribution message to send %s to %s: %w", id, to, err)
return "", nil, fmt.Errorf("failed to create sender key distribution message to send %s to %s: %w", id, to, err)
}
skdMessage := &waProto.Message{
SenderKeyDistributionMessage: &waProto.SenderKeyDistributionMessage{
@ -162,19 +171,19 @@ func (cli *Client) sendGroup(to types.JID, id types.MessageID, message *waProto.
}
skdPlaintext, err := proto.Marshal(skdMessage)
if err != nil {
return "", fmt.Errorf("failed to marshal sender key distribution message to send %s to %s: %w", id, to, err)
return "", nil, fmt.Errorf("failed to marshal sender key distribution message to send %s to %s: %w", id, to, err)
}
cipher := groups.NewGroupCipher(builder, senderKeyName, cli.Store)
encrypted, err := cipher.Encrypt(padMessage(plaintext))
if err != nil {
return "", fmt.Errorf("failed to encrypt group message to send %s to %s: %w", id, to, err)
return "", nil, fmt.Errorf("failed to encrypt group message to send %s to %s: %w", id, to, err)
}
ciphertext := encrypted.SignedSerialize()
node, allDevices, err := cli.prepareMessageNode(to, id, message, participants, skdPlaintext, nil)
if err != nil {
return "", err
return "", nil, err
}
phash := participantListHashV2(allDevices)
@ -185,28 +194,28 @@ func (cli *Client) sendGroup(to types.JID, id types.MessageID, message *waProto.
Attrs: waBinary.Attrs{"v": "2", "type": "skmsg"},
})
err = cli.sendNode(*node)
data, err := cli.sendNodeDebug(*node)
if err != nil {
return "", fmt.Errorf("failed to send message node: %w", err)
return "", nil, fmt.Errorf("failed to send message node: %w", err)
}
return phash, nil
return phash, data, nil
}
func (cli *Client) sendDM(to types.JID, id types.MessageID, message *waProto.Message) error {
func (cli *Client) sendDM(to types.JID, id types.MessageID, message *waProto.Message) ([]byte, error) {
messagePlaintext, deviceSentMessagePlaintext, err := marshalMessage(to, message)
if err != nil {
return err
return nil, err
}
node, _, err := cli.prepareMessageNode(to, id, message, []types.JID{to, *cli.Store.ID}, messagePlaintext, deviceSentMessagePlaintext)
node, _, err := cli.prepareMessageNode(to, id, message, []types.JID{to, cli.Store.ID.ToNonAD()}, messagePlaintext, deviceSentMessagePlaintext)
if err != nil {
return err
return nil, err
}
err = cli.sendNode(*node)
data, err := cli.sendNodeDebug(*node)
if err != nil {
return fmt.Errorf("failed to send message node: %w", err)
return nil, fmt.Errorf("failed to send message node: %w", err)
}
return nil
return data, nil
}
func (cli *Client) prepareMessageNode(to types.JID, id types.MessageID, message *waProto.Message, participants []types.JID, plaintext, dsmPlaintext []byte) (*waBinary.Node, []types.JID, error) {
@ -307,7 +316,7 @@ func (cli *Client) encryptMessageForDevices(allDevices []types.JID, id string, m
if len(retryDevices) > 0 {
bundles, err := cli.fetchPreKeys(retryDevices)
if err != nil {
cli.Log.Warnf("Failed to fetch prekeys for %d to retry encryption: %v", retryDevices, err)
cli.Log.Warnf("Failed to fetch prekeys for %v to retry encryption: %v", retryDevices, err)
} else {
for _, jid := range retryDevices {
resp := bundles[jid]

View File

@ -347,11 +347,18 @@ type OfflineSyncCompleted struct {
Count int
}
type MediaRetryError struct {
Code int
}
// MediaRetry is emitted when the phone sends a response to a media retry request.
type MediaRetry struct {
Ciphertext []byte
IV []byte
// Sometimes there's an unencrypted media retry error. In these cases, Ciphertext and IV will be nil.
Error *MediaRetryError
Timestamp time.Time // The time of the response.
MessageID types.MessageID // The ID of the message.

View File

@ -9,6 +9,7 @@ var (
"amd64": binary.LittleEndian,
"arm": binary.LittleEndian,
"arm64": binary.LittleEndian,
"ppc64le": binary.LittleEndian,
"riscv64": binary.LittleEndian,
"s390x": binary.BigEndian,
}
@ -17,6 +18,7 @@ var (
{"linux", "arm"}: false,
{"linux", "arm64"}: false,
{"linux", "s390x"}: false,
{"linux", "ppc64le"}: false,
{"linux", "riscv64"}: false,
{"darwin", "amd64"}: true,
@ -550,4 +552,44 @@ var abiTypes = map[[2]string]map[Kind]ABIType{
Float64x: {16, 16, 16},
Float128: {16, 16, 16},
},
// gcc (Debian 10.2.1-6) 10.2.1 20210110
{"linux", "ppc64le"}: {
Void: {1, 1, 1},
Bool: {1, 1, 1},
Char: {1, 1, 1},
SChar: {1, 1, 1},
UChar: {1, 1, 1},
Short: {2, 2, 2},
UShort: {2, 2, 2},
Enum: {4, 4, 4},
Int: {4, 4, 4},
UInt: {4, 4, 4},
Long: {8, 8, 8},
ULong: {8, 8, 8},
LongLong: {8, 8, 8},
ULongLong: {8, 8, 8},
Ptr: {8, 8, 8},
Function: {8, 8, 8},
Float: {4, 4, 4},
Double: {8, 8, 8},
LongDouble: {16, 16, 16},
Int8: {1, 1, 1},
UInt8: {1, 1, 1},
Int16: {2, 2, 2},
UInt16: {2, 2, 2},
Int32: {4, 4, 4},
UInt32: {4, 4, 4},
Int64: {8, 8, 8},
UInt64: {8, 8, 8},
Int128: {16, 16, 16},
UInt128: {16, 16, 16},
Float32: {4, 4, 4},
Float32x: {8, 8, 8},
Float64: {8, 8, 8},
Float64x: {16, 16, 16},
Float128: {16, 16, 16},
Decimal32: {4, 4, 4},
Decimal64: {8, 8, 8},
Decimal128: {16, 16, 16},
},
}

30
vendor/modernc.org/ccgo/v3/lib/go.go generated vendored
View File

@ -1012,6 +1012,8 @@ func (p *project) isArray(f *function, n declarator, t cc.Type) (r bool) {
return p.detectArray(f, n.(cc.Node), false, true, nil)
}
var home = os.Getenv("HOME")
// Return n's position with path reduced to baseName(path) unless
// p.task.fullPathComments is true.
func (p *project) pos(n cc.Node) (r token.Position) {
@ -1019,9 +1021,15 @@ func (p *project) pos(n cc.Node) (r token.Position) {
return r
}
r = token.Position(n.Position())
if r.IsValid() && !p.task.fullPathComments {
r.Filename = filepath.Base(r.Filename)
if r = token.Position(n.Position()); r.IsValid() {
switch {
case p.task.fullPathComments:
if strings.HasPrefix(r.Filename, home) {
r.Filename = "$HOME" + r.Filename[len(home):]
}
default:
r.Filename = filepath.Base(r.Filename)
}
}
return r
}
@ -1491,7 +1499,7 @@ func (p *project) layoutDefines() error {
}
name = p.scope.take(cc.String(name))
p.defines[nm] = define{name, val}
p.defineLines = append(p.defineLines, fmt.Sprintf("%s = %s", name, src))
p.defineLines = append(p.defineLines, fmt.Sprintf("%s = %s // %v:", name, src, p.pos(m)))
}
}
return nil
@ -3929,9 +3937,9 @@ func (p *project) convertToUint128(n cc.Node, op cc.Operand, to cc.Type, flags f
func (p *project) convertNil(n cc.Node, to cc.Type, flags flags) string {
switch to.Kind() {
case cc.Int128:
panic(todo("", pos(n)))
panic(todo("", p.pos(n)))
case cc.UInt128:
panic(todo("", pos(n)))
panic(todo("", p.pos(n)))
}
p.w("%s(", p.typ(n, to))
@ -4025,15 +4033,15 @@ func (p *project) convertInt(n cc.Node, op cc.Operand, to cc.Type, flags flags)
from := op.Type()
switch from.Kind() {
case cc.Int128:
panic(todo("", pos(n)))
panic(todo("", p.pos(n)))
case cc.UInt128:
panic(todo("", pos(n)))
panic(todo("", p.pos(n)))
}
switch to.Kind() {
case cc.Int128:
panic(todo("", pos(n)))
panic(todo("", p.pos(n)))
case cc.UInt128:
panic(todo("", pos(n)))
panic(todo("", p.pos(n)))
}
force := flags&fForceConv != 0
@ -12048,7 +12056,7 @@ func (p *project) intConst(n cc.Node, src string, op cc.Operand, to cc.Type, fla
defer p.w(")")
// ok
default:
panic(todo("%v: %v -> %v", pos(n), op.Type(), to))
panic(todo("%v: %v -> %v", p.pos(n), op.Type(), to))
}
src = strings.TrimRight(src, "luLU")

View File

@ -326,7 +326,7 @@ func (p *project) containingStructField(part *cc.Initializer, off uintptr, t cc.
}
}
panic(todo("%v: internal error", pos(part)))
panic(todo("%v: internal error", p.pos(part)))
}
func (p *project) initializerUnion(tag string, off uintptr, f *function, s []*cc.Initializer, t cc.Type, sc cc.StorageClass, tld *tld, lm, tm map[*cc.Initializer][]cc.StringID) {
@ -376,7 +376,7 @@ func (p *project) initializerUnion(tag string, off uintptr, f *function, s []*cc
}
continue
default:
panic(todo("%v: %v <- %T", pos(part), et, x))
panic(todo("%v: %v <- %T", p.pos(part), et, x))
}
case p.isWCharType(et):
panic(todo(""))

8
vendor/modernc.org/libc/Makefile generated vendored
View File

@ -96,6 +96,10 @@ linux_s390x:
CCGO_CPP=s390x-linux-gnu-cpp TARGET_GOOS=linux TARGET_GOARCH=s390x go generate
GOOS=linux GOARCH=s390x go build -v ./...
linux_ppc64le:
CCGO_CPP=powerpc64le-linux-gnu-cpp TARGET_GOOS=linux TARGET_GOARCH=ppc64le go generate
GOOS=linux GOARCH=ppc64le go build -v ./...
# only on openbsd/amd64
openbsd_amd64:
@echo "Should be executed only on openbsd/amd64."
@ -137,6 +141,10 @@ build_all_targets:
GOOS=linux GOARCH=arm go test -c -o /dev/null
GOOS=linux GOARCH=arm64 go build -v ./...
GOOS=linux GOARCH=arm64 go test -c -o /dev/null
GOOS=linux GOARCH=ppc64le go test -c -o /dev/null
GOOS=linux GOARCH=ppc64le go test -c -o /dev/null
GOOS=linux GOARCH=riscv64 go build -v ./...
GOOS=linux GOARCH=riscv64 go build -v ./...
GOOS=linux GOARCH=s390x go build -v ./...
GOOS=linux GOARCH=s390x go test -c -o /dev/null
GOOS=netbsd GOARCH=amd64 go build -v ./...

View File

@ -117,11 +117,14 @@ var CAPI = map[string]struct{}{
"__sincosf_stret": {},
"__sincospi_stret": {},
"__sincospif_stret": {},
"__srget": {},
"__stderrp": {},
"__stdinp": {},
"__stdoutp": {},
"__strchrnul": {},
"__strncasecmp_l": {},
"__svfscanf": {},
"__swbuf": {},
"__sync_add_and_fetch_uint32": {},
"__sync_sub_and_fetch_uint32": {},
"__tolower": {},

View File

@ -93,11 +93,16 @@ var CAPI = map[string]struct{}{
"__isalnum_l": {},
"__isalpha_l": {},
"__isdigit_l": {},
"__islower_l": {},
"__isnan": {},
"__isnanf": {},
"__isnanl": {},
"__isoc99_sscanf": {},
"__isprint_l": {},
"__isspace_l": {},
"__isthreaded": {},
"__isupper_l": {},
"__isxdigit_l": {},
"__lookup_ipliteral": {},
"__lookup_name": {},
"__lookup_serv": {},
@ -143,6 +148,7 @@ var CAPI = map[string]struct{}{
"backtrace": {},
"backtrace_symbols_fd": {},
"bind": {},
"bsearch": {},
"bzero": {},
"calloc": {},
"ceil": {},
@ -270,9 +276,14 @@ var CAPI = map[string]struct{}{
"isascii": {},
"isatty": {},
"isdigit": {},
"islower": {},
"isnan": {},
"isnanf": {},
"isnanl": {},
"isprint": {},
"isspace": {},
"isupper": {},
"isxdigit": {},
"kill": {},
"ldexp": {},
"link": {},

View File

@ -110,6 +110,7 @@ var CAPI = map[string]struct{}{
"__runes_for_locale": {},
"__shgetc": {},
"__shlim": {},
"__srget": {},
"__stderrp": {},
"__stdinp": {},
"__stdoutp": {},

523
vendor/modernc.org/libc/capi_linux_ppc64le.go generated vendored Normal file
View File

@ -0,0 +1,523 @@
// Code generated by 'go generate' - DO NOT EDIT.
package libc // import "modernc.org/libc"
var CAPI = map[string]struct{}{
"_IO_putc": {},
"___errno_location": {},
"__assert_fail": {},
"__builtin___memcpy_chk": {},
"__builtin___memmove_chk": {},
"__builtin___memset_chk": {},
"__builtin___snprintf_chk": {},
"__builtin___sprintf_chk": {},
"__builtin___strcat_chk": {},
"__builtin___strcpy_chk": {},
"__builtin___strncpy_chk": {},
"__builtin___vsnprintf_chk": {},
"__builtin_abort": {},
"__builtin_abs": {},
"__builtin_add_overflowInt64": {},
"__builtin_add_overflowUint32": {},
"__builtin_add_overflowUint64": {},
"__builtin_bswap16": {},
"__builtin_bswap32": {},
"__builtin_bswap64": {},
"__builtin_bzero": {},
"__builtin_clz": {},
"__builtin_clzl": {},
"__builtin_clzll": {},
"__builtin_constant_p_impl": {},
"__builtin_copysign": {},
"__builtin_copysignf": {},
"__builtin_copysignl": {},
"__builtin_exit": {},
"__builtin_expect": {},
"__builtin_fabs": {},
"__builtin_fabsf": {},
"__builtin_fabsl": {},
"__builtin_free": {},
"__builtin_getentropy": {},
"__builtin_huge_val": {},
"__builtin_huge_valf": {},
"__builtin_inf": {},
"__builtin_inff": {},
"__builtin_infl": {},
"__builtin_isnan": {},
"__builtin_isunordered": {},
"__builtin_malloc": {},
"__builtin_memcmp": {},
"__builtin_memcpy": {},
"__builtin_memset": {},
"__builtin_mmap": {},
"__builtin_mul_overflowInt64": {},
"__builtin_mul_overflowUint128": {},
"__builtin_mul_overflowUint64": {},
"__builtin_nan": {},
"__builtin_nanf": {},
"__builtin_nanl": {},
"__builtin_object_size": {},
"__builtin_popcount": {},
"__builtin_popcountl": {},
"__builtin_prefetch": {},
"__builtin_printf": {},
"__builtin_snprintf": {},
"__builtin_sprintf": {},
"__builtin_strchr": {},
"__builtin_strcmp": {},
"__builtin_strcpy": {},
"__builtin_strlen": {},
"__builtin_sub_overflowInt64": {},
"__builtin_trap": {},
"__builtin_unreachable": {},
"__ccgo_dmesg": {},
"__ccgo_getMutexType": {},
"__ccgo_in6addr_anyp": {},
"__ccgo_pthreadAttrGetDetachState": {},
"__ccgo_pthreadMutexattrGettype": {},
"__ccgo_sqlite3_log": {},
"__cmsg_nxthdr": {},
"__ctype_b_loc": {},
"__ctype_get_mb_cur_max": {},
"__errno_location": {},
"__floatscan": {},
"__fpclassify": {},
"__fpclassifyf": {},
"__fpclassifyl": {},
"__fsmu8": {},
"__h_errno_location": {},
"__inet_aton": {},
"__intscan": {},
"__isalnum_l": {},
"__isalpha_l": {},
"__isdigit_l": {},
"__islower_l": {},
"__isnan": {},
"__isnanf": {},
"__isnanl": {},
"__isoc99_sscanf": {},
"__isprint_l": {},
"__isupper_l": {},
"__isxdigit_l": {},
"__lockfile": {},
"__lookup_ipliteral": {},
"__lookup_name": {},
"__lookup_serv": {},
"__shgetc": {},
"__shlim": {},
"__strncasecmp_l": {},
"__sync_add_and_fetch_uint32": {},
"__sync_sub_and_fetch_uint32": {},
"__syscall1": {},
"__syscall3": {},
"__syscall4": {},
"__toread": {},
"__toread_needs_stdio_exit": {},
"__uflow": {},
"__unlockfile": {},
"_exit": {},
"_longjmp": {},
"_obstack_begin": {},
"_obstack_newchunk": {},
"_setjmp": {},
"abort": {},
"abs": {},
"accept": {},
"access": {},
"acos": {},
"acosh": {},
"alarm": {},
"asin": {},
"asinh": {},
"atan": {},
"atan2": {},
"atanh": {},
"atexit": {},
"atof": {},
"atoi": {},
"atol": {},
"backtrace": {},
"backtrace_symbols_fd": {},
"bind": {},
"bsearch": {},
"bzero": {},
"calloc": {},
"ceil": {},
"ceilf": {},
"cfgetospeed": {},
"cfsetispeed": {},
"cfsetospeed": {},
"chdir": {},
"chmod": {},
"chown": {},
"clock_gettime": {},
"close": {},
"closedir": {},
"confstr": {},
"connect": {},
"copysign": {},
"copysignf": {},
"copysignl": {},
"cos": {},
"cosf": {},
"cosh": {},
"ctime": {},
"ctime_r": {},
"dlclose": {},
"dlerror": {},
"dlopen": {},
"dlsym": {},
"dup2": {},
"dup3": {},
"endpwent": {},
"environ": {},
"execvp": {},
"exit": {},
"exp": {},
"fabs": {},
"fabsf": {},
"fabsl": {},
"faccessat": {},
"fchmod": {},
"fchmodat": {},
"fchown": {},
"fchownat": {},
"fclose": {},
"fcntl": {},
"fcntl64": {},
"fdopen": {},
"ferror": {},
"fflush": {},
"fgetc": {},
"fgets": {},
"fileno": {},
"floor": {},
"fmod": {},
"fmodl": {},
"fopen": {},
"fopen64": {},
"fork": {},
"fprintf": {},
"fputc": {},
"fputs": {},
"fread": {},
"free": {},
"freeaddrinfo": {},
"frexp": {},
"fscanf": {},
"fseek": {},
"fstat": {},
"fstat64": {},
"fstatfs": {},
"fsync": {},
"ftell": {},
"ftruncate": {},
"ftruncate64": {},
"fts64_close": {},
"fts64_open": {},
"fts64_read": {},
"fts_close": {},
"fts_open": {},
"fts_read": {},
"fwrite": {},
"gai_strerror": {},
"getaddrinfo": {},
"getc": {},
"getcwd": {},
"getegid": {},
"getentropy": {},
"getenv": {},
"geteuid": {},
"getgid": {},
"getgrgid": {},
"getgrgid_r": {},
"getgrnam": {},
"getgrnam_r": {},
"gethostbyaddr": {},
"gethostbyaddr_r": {},
"gethostbyname": {},
"gethostbyname2": {},
"gethostbyname2_r": {},
"gethostbyname_r": {},
"gethostname": {},
"getnameinfo": {},
"getpeername": {},
"getpid": {},
"getpwnam": {},
"getpwnam_r": {},
"getpwuid": {},
"getpwuid_r": {},
"getrandom": {},
"getresgid": {},
"getresuid": {},
"getrlimit": {},
"getrlimit64": {},
"getrusage": {},
"getservbyname": {},
"getsockname": {},
"getsockopt": {},
"gettimeofday": {},
"getuid": {},
"gmtime_r": {},
"h_errno": {},
"htonl": {},
"htons": {},
"hypot": {},
"inet_ntoa": {},
"inet_ntop": {},
"inet_pton": {},
"initstate": {},
"initstate_r": {},
"ioctl": {},
"isalnum": {},
"isalpha": {},
"isascii": {},
"isatty": {},
"isdigit": {},
"islower": {},
"isnan": {},
"isnanf": {},
"isnanl": {},
"isprint": {},
"isupper": {},
"iswalnum": {},
"iswspace": {},
"isxdigit": {},
"kill": {},
"ldexp": {},
"link": {},
"linkat": {},
"listen": {},
"localeconv": {},
"localtime": {},
"localtime_r": {},
"log": {},
"log10": {},
"longjmp": {},
"lrand48": {},
"lseek": {},
"lseek64": {},
"lstat": {},
"lstat64": {},
"malloc": {},
"mblen": {},
"mbrtowc": {},
"mbsinit": {},
"mbstowcs": {},
"mbtowc": {},
"memchr": {},
"memcmp": {},
"memcpy": {},
"memmove": {},
"memset": {},
"mkdir": {},
"mkdirat": {},
"mkfifo": {},
"mknod": {},
"mknodat": {},
"mkostemp": {},
"mkstemp": {},
"mkstemp64": {},
"mkstemps": {},
"mkstemps64": {},
"mktime": {},
"mmap": {},
"mmap64": {},
"modf": {},
"mremap": {},
"munmap": {},
"nanf": {},
"nl_langinfo": {},
"ntohs": {},
"obstack_free": {},
"obstack_vprintf": {},
"open": {},
"open64": {},
"openat": {},
"opendir": {},
"openpty": {},
"pathconf": {},
"pause": {},
"pclose": {},
"perror": {},
"pipe": {},
"pipe2": {},
"poll": {},
"popen": {},
"posix_fadvise": {},
"pow": {},
"printf": {},
"pselect": {},
"pthread_attr_destroy": {},
"pthread_attr_getdetachstate": {},
"pthread_attr_init": {},
"pthread_attr_setdetachstate": {},
"pthread_attr_setscope": {},
"pthread_attr_setstacksize": {},
"pthread_cond_broadcast": {},
"pthread_cond_destroy": {},
"pthread_cond_init": {},
"pthread_cond_signal": {},
"pthread_cond_timedwait": {},
"pthread_cond_wait": {},
"pthread_create": {},
"pthread_detach": {},
"pthread_equal": {},
"pthread_exit": {},
"pthread_getspecific": {},
"pthread_join": {},
"pthread_key_create": {},
"pthread_key_delete": {},
"pthread_mutex_destroy": {},
"pthread_mutex_init": {},
"pthread_mutex_lock": {},
"pthread_mutex_trylock": {},
"pthread_mutex_unlock": {},
"pthread_mutexattr_destroy": {},
"pthread_mutexattr_init": {},
"pthread_mutexattr_settype": {},
"pthread_self": {},
"pthread_setspecific": {},
"putc": {},
"putchar": {},
"puts": {},
"pwrite": {},
"qsort": {},
"raise": {},
"rand": {},
"rand_r": {},
"random": {},
"random_r": {},
"read": {},
"readdir": {},
"readdir64": {},
"readlink": {},
"readlinkat": {},
"readv": {},
"realloc": {},
"reallocarray": {},
"realpath": {},
"recv": {},
"recvfrom": {},
"recvmsg": {},
"remove": {},
"rename": {},
"renameat2": {},
"rewind": {},
"rindex": {},
"rint": {},
"rmdir": {},
"round": {},
"scalbn": {},
"scalbnl": {},
"sched_yield": {},
"select": {},
"send": {},
"sendmsg": {},
"sendto": {},
"setbuf": {},
"setenv": {},
"setjmp": {},
"setlocale": {},
"setrlimit": {},
"setrlimit64": {},
"setsid": {},
"setsockopt": {},
"setstate": {},
"setvbuf": {},
"shmat": {},
"shmctl": {},
"shmdt": {},
"shutdown": {},
"sigaction": {},
"signal": {},
"sin": {},
"sinf": {},
"sinh": {},
"sleep": {},
"snprintf": {},
"socket": {},
"sprintf": {},
"sqrt": {},
"srand48": {},
"sscanf": {},
"stat": {},
"stat64": {},
"stderr": {},
"stdin": {},
"stdout": {},
"strcasecmp": {},
"strcat": {},
"strchr": {},
"strcmp": {},
"strcpy": {},
"strcspn": {},
"strdup": {},
"strerror": {},
"strerror_r": {},
"strlcat": {},
"strlcpy": {},
"strlen": {},
"strncasecmp": {},
"strncat": {},
"strncmp": {},
"strncpy": {},
"strnlen": {},
"strpbrk": {},
"strrchr": {},
"strspn": {},
"strstr": {},
"strtod": {},
"strtof": {},
"strtoimax": {},
"strtok": {},
"strtol": {},
"strtold": {},
"strtoll": {},
"strtoul": {},
"strtoull": {},
"strtoumax": {},
"symlink": {},
"symlinkat": {},
"sysconf": {},
"system": {},
"tan": {},
"tanh": {},
"tcgetattr": {},
"tcsendbreak": {},
"tcsetattr": {},
"time": {},
"tmpfile": {},
"tolower": {},
"toupper": {},
"trunc": {},
"tzset": {},
"umask": {},
"uname": {},
"ungetc": {},
"unlink": {},
"unlinkat": {},
"unsetenv": {},
"usleep": {},
"utime": {},
"utimensat": {},
"utimes": {},
"uuid_copy": {},
"uuid_generate_random": {},
"uuid_parse": {},
"uuid_unparse": {},
"vasprintf": {},
"vfprintf": {},
"vfscanf": {},
"vprintf": {},
"vsnprintf": {},
"vsprintf": {},
"vsscanf": {},
"waitpid": {},
"wcschr": {},
"wctomb": {},
"wcwidth": {},
"write": {},
"writev": {},
"zero_struct_address": {},
}

View File

@ -98,6 +98,7 @@ var CAPI = map[string]struct{}{
"__isnanf": {},
"__isnanl": {},
"__isoc99_sscanf": {},
"__isprint_l": {},
"__isthreaded": {},
"__lookup_ipliteral": {},
"__lookup_name": {},
@ -107,6 +108,7 @@ var CAPI = map[string]struct{}{
"__sF": {},
"__shgetc": {},
"__shlim": {},
"__srget": {},
"__stderrp": {},
"__stdinp": {},
"__stdoutp": {},
@ -278,6 +280,7 @@ var CAPI = map[string]struct{}{
"isnan": {},
"isnanf": {},
"isnanl": {},
"isprint": {},
"kill": {},
"ldexp": {},
"link": {},

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_freebsd_386.go -pkgname errno', DO NOT EDIT.
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_freebsd_386.go -pkgname errno', DO NOT EDIT.
package errno

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_freebsd_amd64.go -pkgname errno', DO NOT EDIT.
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_freebsd_amd64.go -pkgname errno', DO NOT EDIT.
package errno

5
vendor/modernc.org/libc/errno/capi_linux_ppc64le.go generated vendored Normal file
View File

@ -0,0 +1,5 @@
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_linux_ppc64le.go -pkgname errno', DO NOT EDIT.
package errno
var CAPI = map[string]struct{}{}

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_netbsd_amd64.go -pkgname errno', DO NOT EDIT.
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_netbsd_amd64.go -pkgname errno', DO NOT EDIT.
package errno

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_openbsd_amd64.go -pkgname errno', DO NOT EDIT.
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_openbsd_amd64.go -pkgname errno', DO NOT EDIT.
package errno

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_freebsd_386.go -pkgname errno', DO NOT EDIT.
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_freebsd_386.go -pkgname errno', DO NOT EDIT.
package errno
@ -15,116 +15,116 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
E2BIG = 7
EACCES = 13
EADDRINUSE = 48
EADDRNOTAVAIL = 49
EAFNOSUPPORT = 47
EAGAIN = 35
EALREADY = 37
EAUTH = 80
EBADF = 9
EBADMSG = 89
EBADRPC = 72
EBUSY = 16
ECANCELED = 85
ECAPMODE = 94
ECHILD = 10
ECONNABORTED = 53
ECONNREFUSED = 61
ECONNRESET = 54
EDEADLK = 11
EDESTADDRREQ = 39
EDOM = 33
EDOOFUS = 88
EDQUOT = 69
EEXIST = 17
EFAULT = 14
EFBIG = 27
EFTYPE = 79
EHOSTDOWN = 64
EHOSTUNREACH = 65
EIDRM = 82
EILSEQ = 86
EINPROGRESS = 36
EINTEGRITY = 97
EINTR = 4
EINVAL = 22
EIO = 5
EISCONN = 56
EISDIR = 21
ELAST = 97
ELOOP = 62
EMFILE = 24
EMLINK = 31
EMSGSIZE = 40
EMULTIHOP = 90
ENAMETOOLONG = 63
ENEEDAUTH = 81
ENETDOWN = 50
ENETRESET = 52
ENETUNREACH = 51
ENFILE = 23
ENOATTR = 87
ENOBUFS = 55
ENODEV = 19
ENOENT = 2
ENOEXEC = 8
ENOLCK = 77
ENOLINK = 91
ENOMEM = 12
ENOMSG = 83
ENOPROTOOPT = 42
ENOSPC = 28
ENOSYS = 78
ENOTBLK = 15
ENOTCAPABLE = 93
ENOTCONN = 57
ENOTDIR = 20
ENOTEMPTY = 66
ENOTRECOVERABLE = 95
ENOTSOCK = 38
ENOTSUP = 45
ENOTTY = 25
ENXIO = 6
EOPNOTSUPP = 45
EOVERFLOW = 84
EOWNERDEAD = 96
EPERM = 1
EPFNOSUPPORT = 46
EPIPE = 32
EPROCLIM = 67
EPROCUNAVAIL = 76
EPROGMISMATCH = 75
EPROGUNAVAIL = 74
EPROTO = 92
EPROTONOSUPPORT = 43
EPROTOTYPE = 41
ERANGE = 34
EREMOTE = 71
EROFS = 30
ERPCMISMATCH = 73
ESHUTDOWN = 58
ESOCKTNOSUPPORT = 44
ESPIPE = 29
ESRCH = 3
ESTALE = 70
ETIMEDOUT = 60
ETOOMANYREFS = 59
ETXTBSY = 26
EUSERS = 68
EWOULDBLOCK = 35
EXDEV = 18
X_ERRNO_T_DEFINED = 0
X_FILE_OFFSET_BITS = 64
X_ILP32 = 1
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_SYS_CDEFS_H_ = 0
X_SYS_ERRNO_H_ = 0
I386 = 1
Unix = 1
E2BIG = 7 // errno.h:57:1:
EACCES = 13 // errno.h:64:1:
EADDRINUSE = 48 // errno.h:112:1:
EADDRNOTAVAIL = 49 // errno.h:113:1:
EAFNOSUPPORT = 47 // errno.h:111:1:
EAGAIN = 35 // errno.h:94:1:
EALREADY = 37 // errno.h:98:1:
EAUTH = 80 // errno.h:161:1:
EBADF = 9 // errno.h:59:1:
EBADMSG = 89 // errno.h:173:1:
EBADRPC = 72 // errno.h:149:1:
EBUSY = 16 // errno.h:69:1:
ECANCELED = 85 // errno.h:166:1:
ECAPMODE = 94 // errno.h:180:1:
ECHILD = 10 // errno.h:60:1:
ECONNABORTED = 53 // errno.h:119:1:
ECONNREFUSED = 61 // errno.h:127:1:
ECONNRESET = 54 // errno.h:120:1:
EDEADLK = 11 // errno.h:61:1:
EDESTADDRREQ = 39 // errno.h:102:1:
EDOM = 33 // errno.h:90:1:
EDOOFUS = 88 // errno.h:170:1:
EDQUOT = 69 // errno.h:144:1:
EEXIST = 17 // errno.h:70:1:
EFAULT = 14 // errno.h:65:1:
EFBIG = 27 // errno.h:82:1:
EFTYPE = 79 // errno.h:160:1:
EHOSTDOWN = 64 // errno.h:135:1:
EHOSTUNREACH = 65 // errno.h:136:1:
EIDRM = 82 // errno.h:163:1:
EILSEQ = 86 // errno.h:167:1:
EINPROGRESS = 36 // errno.h:97:1:
EINTEGRITY = 97 // errno.h:183:1:
EINTR = 4 // errno.h:54:1:
EINVAL = 22 // errno.h:75:1:
EIO = 5 // errno.h:55:1:
EISCONN = 56 // errno.h:122:1:
EISDIR = 21 // errno.h:74:1:
ELAST = 97 // errno.h:187:1:
ELOOP = 62 // errno.h:129:1:
EMFILE = 24 // errno.h:77:1:
EMLINK = 31 // errno.h:86:1:
EMSGSIZE = 40 // errno.h:103:1:
EMULTIHOP = 90 // errno.h:174:1:
ENAMETOOLONG = 63 // errno.h:131:1:
ENEEDAUTH = 81 // errno.h:162:1:
ENETDOWN = 50 // errno.h:116:1:
ENETRESET = 52 // errno.h:118:1:
ENETUNREACH = 51 // errno.h:117:1:
ENFILE = 23 // errno.h:76:1:
ENOATTR = 87 // errno.h:168:1:
ENOBUFS = 55 // errno.h:121:1:
ENODEV = 19 // errno.h:72:1:
ENOENT = 2 // errno.h:52:1:
ENOEXEC = 8 // errno.h:58:1:
ENOLCK = 77 // errno.h:156:1:
ENOLINK = 91 // errno.h:175:1:
ENOMEM = 12 // errno.h:63:1:
ENOMSG = 83 // errno.h:164:1:
ENOPROTOOPT = 42 // errno.h:105:1:
ENOSPC = 28 // errno.h:83:1:
ENOSYS = 78 // errno.h:157:1:
ENOTBLK = 15 // errno.h:67:1:
ENOTCAPABLE = 93 // errno.h:179:1:
ENOTCONN = 57 // errno.h:123:1:
ENOTDIR = 20 // errno.h:73:1:
ENOTEMPTY = 66 // errno.h:138:1:
ENOTRECOVERABLE = 95 // errno.h:181:1:
ENOTSOCK = 38 // errno.h:101:1:
ENOTSUP = 45 // errno.h:109:1:
ENOTTY = 25 // errno.h:78:1:
ENXIO = 6 // errno.h:56:1:
EOPNOTSUPP = 45 // errno.h:108:1:
EOVERFLOW = 84 // errno.h:165:1:
EOWNERDEAD = 96 // errno.h:182:1:
EPERM = 1 // errno.h:51:1:
EPFNOSUPPORT = 46 // errno.h:110:1:
EPIPE = 32 // errno.h:87:1:
EPROCLIM = 67 // errno.h:142:1:
EPROCUNAVAIL = 76 // errno.h:153:1:
EPROGMISMATCH = 75 // errno.h:152:1:
EPROGUNAVAIL = 74 // errno.h:151:1:
EPROTO = 92 // errno.h:176:1:
EPROTONOSUPPORT = 43 // errno.h:106:1:
EPROTOTYPE = 41 // errno.h:104:1:
ERANGE = 34 // errno.h:91:1:
EREMOTE = 71 // errno.h:148:1:
EROFS = 30 // errno.h:85:1:
ERPCMISMATCH = 73 // errno.h:150:1:
ESHUTDOWN = 58 // errno.h:124:1:
ESOCKTNOSUPPORT = 44 // errno.h:107:1:
ESPIPE = 29 // errno.h:84:1:
ESRCH = 3 // errno.h:53:1:
ESTALE = 70 // errno.h:147:1:
ETIMEDOUT = 60 // errno.h:126:1:
ETOOMANYREFS = 59 // errno.h:125:1:
ETXTBSY = 26 // errno.h:80:1:
EUSERS = 68 // errno.h:143:1:
EWOULDBLOCK = 35 // errno.h:96:1:
EXDEV = 18 // errno.h:71:1:
X_ERRNO_T_DEFINED = 0 // errno.h:203:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_ILP32 = 1 // <predefined>:1:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_ERRNO_H_ = 0 // errno.h:41:1:
I386 = 1 // <predefined>:335:1:
Unix = 1 // <predefined>:336:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_freebsd_amd64.go -pkgname errno', DO NOT EDIT.
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_freebsd_amd64.go -pkgname errno', DO NOT EDIT.
package errno
@ -15,115 +15,115 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
E2BIG = 7
EACCES = 13
EADDRINUSE = 48
EADDRNOTAVAIL = 49
EAFNOSUPPORT = 47
EAGAIN = 35
EALREADY = 37
EAUTH = 80
EBADF = 9
EBADMSG = 89
EBADRPC = 72
EBUSY = 16
ECANCELED = 85
ECAPMODE = 94
ECHILD = 10
ECONNABORTED = 53
ECONNREFUSED = 61
ECONNRESET = 54
EDEADLK = 11
EDESTADDRREQ = 39
EDOM = 33
EDOOFUS = 88
EDQUOT = 69
EEXIST = 17
EFAULT = 14
EFBIG = 27
EFTYPE = 79
EHOSTDOWN = 64
EHOSTUNREACH = 65
EIDRM = 82
EILSEQ = 86
EINPROGRESS = 36
EINTEGRITY = 97
EINTR = 4
EINVAL = 22
EIO = 5
EISCONN = 56
EISDIR = 21
ELAST = 97
ELOOP = 62
EMFILE = 24
EMLINK = 31
EMSGSIZE = 40
EMULTIHOP = 90
ENAMETOOLONG = 63
ENEEDAUTH = 81
ENETDOWN = 50
ENETRESET = 52
ENETUNREACH = 51
ENFILE = 23
ENOATTR = 87
ENOBUFS = 55
ENODEV = 19
ENOENT = 2
ENOEXEC = 8
ENOLCK = 77
ENOLINK = 91
ENOMEM = 12
ENOMSG = 83
ENOPROTOOPT = 42
ENOSPC = 28
ENOSYS = 78
ENOTBLK = 15
ENOTCAPABLE = 93
ENOTCONN = 57
ENOTDIR = 20
ENOTEMPTY = 66
ENOTRECOVERABLE = 95
ENOTSOCK = 38
ENOTSUP = 45
ENOTTY = 25
ENXIO = 6
EOPNOTSUPP = 45
EOVERFLOW = 84
EOWNERDEAD = 96
EPERM = 1
EPFNOSUPPORT = 46
EPIPE = 32
EPROCLIM = 67
EPROCUNAVAIL = 76
EPROGMISMATCH = 75
EPROGUNAVAIL = 74
EPROTO = 92
EPROTONOSUPPORT = 43
EPROTOTYPE = 41
ERANGE = 34
EREMOTE = 71
EROFS = 30
ERPCMISMATCH = 73
ESHUTDOWN = 58
ESOCKTNOSUPPORT = 44
ESPIPE = 29
ESRCH = 3
ESTALE = 70
ETIMEDOUT = 60
ETOOMANYREFS = 59
ETXTBSY = 26
EUSERS = 68
EWOULDBLOCK = 35
EXDEV = 18
X_ERRNO_T_DEFINED = 0
X_FILE_OFFSET_BITS = 64
X_LP64 = 1
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_SYS_CDEFS_H_ = 0
X_SYS_ERRNO_H_ = 0
Unix = 1
E2BIG = 7 // errno.h:57:1:
EACCES = 13 // errno.h:64:1:
EADDRINUSE = 48 // errno.h:112:1:
EADDRNOTAVAIL = 49 // errno.h:113:1:
EAFNOSUPPORT = 47 // errno.h:111:1:
EAGAIN = 35 // errno.h:94:1:
EALREADY = 37 // errno.h:98:1:
EAUTH = 80 // errno.h:161:1:
EBADF = 9 // errno.h:59:1:
EBADMSG = 89 // errno.h:173:1:
EBADRPC = 72 // errno.h:149:1:
EBUSY = 16 // errno.h:69:1:
ECANCELED = 85 // errno.h:166:1:
ECAPMODE = 94 // errno.h:180:1:
ECHILD = 10 // errno.h:60:1:
ECONNABORTED = 53 // errno.h:119:1:
ECONNREFUSED = 61 // errno.h:127:1:
ECONNRESET = 54 // errno.h:120:1:
EDEADLK = 11 // errno.h:61:1:
EDESTADDRREQ = 39 // errno.h:102:1:
EDOM = 33 // errno.h:90:1:
EDOOFUS = 88 // errno.h:170:1:
EDQUOT = 69 // errno.h:144:1:
EEXIST = 17 // errno.h:70:1:
EFAULT = 14 // errno.h:65:1:
EFBIG = 27 // errno.h:82:1:
EFTYPE = 79 // errno.h:160:1:
EHOSTDOWN = 64 // errno.h:135:1:
EHOSTUNREACH = 65 // errno.h:136:1:
EIDRM = 82 // errno.h:163:1:
EILSEQ = 86 // errno.h:167:1:
EINPROGRESS = 36 // errno.h:97:1:
EINTEGRITY = 97 // errno.h:183:1:
EINTR = 4 // errno.h:54:1:
EINVAL = 22 // errno.h:75:1:
EIO = 5 // errno.h:55:1:
EISCONN = 56 // errno.h:122:1:
EISDIR = 21 // errno.h:74:1:
ELAST = 97 // errno.h:187:1:
ELOOP = 62 // errno.h:129:1:
EMFILE = 24 // errno.h:77:1:
EMLINK = 31 // errno.h:86:1:
EMSGSIZE = 40 // errno.h:103:1:
EMULTIHOP = 90 // errno.h:174:1:
ENAMETOOLONG = 63 // errno.h:131:1:
ENEEDAUTH = 81 // errno.h:162:1:
ENETDOWN = 50 // errno.h:116:1:
ENETRESET = 52 // errno.h:118:1:
ENETUNREACH = 51 // errno.h:117:1:
ENFILE = 23 // errno.h:76:1:
ENOATTR = 87 // errno.h:168:1:
ENOBUFS = 55 // errno.h:121:1:
ENODEV = 19 // errno.h:72:1:
ENOENT = 2 // errno.h:52:1:
ENOEXEC = 8 // errno.h:58:1:
ENOLCK = 77 // errno.h:156:1:
ENOLINK = 91 // errno.h:175:1:
ENOMEM = 12 // errno.h:63:1:
ENOMSG = 83 // errno.h:164:1:
ENOPROTOOPT = 42 // errno.h:105:1:
ENOSPC = 28 // errno.h:83:1:
ENOSYS = 78 // errno.h:157:1:
ENOTBLK = 15 // errno.h:67:1:
ENOTCAPABLE = 93 // errno.h:179:1:
ENOTCONN = 57 // errno.h:123:1:
ENOTDIR = 20 // errno.h:73:1:
ENOTEMPTY = 66 // errno.h:138:1:
ENOTRECOVERABLE = 95 // errno.h:181:1:
ENOTSOCK = 38 // errno.h:101:1:
ENOTSUP = 45 // errno.h:109:1:
ENOTTY = 25 // errno.h:78:1:
ENXIO = 6 // errno.h:56:1:
EOPNOTSUPP = 45 // errno.h:108:1:
EOVERFLOW = 84 // errno.h:165:1:
EOWNERDEAD = 96 // errno.h:182:1:
EPERM = 1 // errno.h:51:1:
EPFNOSUPPORT = 46 // errno.h:110:1:
EPIPE = 32 // errno.h:87:1:
EPROCLIM = 67 // errno.h:142:1:
EPROCUNAVAIL = 76 // errno.h:153:1:
EPROGMISMATCH = 75 // errno.h:152:1:
EPROGUNAVAIL = 74 // errno.h:151:1:
EPROTO = 92 // errno.h:176:1:
EPROTONOSUPPORT = 43 // errno.h:106:1:
EPROTOTYPE = 41 // errno.h:104:1:
ERANGE = 34 // errno.h:91:1:
EREMOTE = 71 // errno.h:148:1:
EROFS = 30 // errno.h:85:1:
ERPCMISMATCH = 73 // errno.h:150:1:
ESHUTDOWN = 58 // errno.h:124:1:
ESOCKTNOSUPPORT = 44 // errno.h:107:1:
ESPIPE = 29 // errno.h:84:1:
ESRCH = 3 // errno.h:53:1:
ESTALE = 70 // errno.h:147:1:
ETIMEDOUT = 60 // errno.h:126:1:
ETOOMANYREFS = 59 // errno.h:125:1:
ETXTBSY = 26 // errno.h:80:1:
EUSERS = 68 // errno.h:143:1:
EWOULDBLOCK = 35 // errno.h:96:1:
EXDEV = 18 // errno.h:71:1:
X_ERRNO_T_DEFINED = 0 // errno.h:203:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LP64 = 1 // <predefined>:1:1:
X_Nonnull = 0 // cdefs.h:783:1:
X_Null_unspecified = 0 // cdefs.h:785:1:
X_Nullable = 0 // cdefs.h:784:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_ERRNO_H_ = 0 // errno.h:41:1:
Unix = 1 // <predefined>:337:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

201
vendor/modernc.org/libc/errno/errno_linux_ppc64le.go generated vendored Normal file
View File

@ -0,0 +1,201 @@
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_linux_ppc64le.go -pkgname errno', DO NOT EDIT.
package errno
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
E2BIG = 7 // errno-base.h:11:1:
EACCES = 13 // errno-base.h:17:1:
EADDRINUSE = 98 // errno.h:81:1:
EADDRNOTAVAIL = 99 // errno.h:82:1:
EADV = 68 // errno.h:51:1:
EAFNOSUPPORT = 97 // errno.h:80:1:
EAGAIN = 11 // errno-base.h:15:1:
EALREADY = 114 // errno.h:97:1:
EBADE = 52 // errno.h:33:1:
EBADF = 9 // errno-base.h:13:1:
EBADFD = 77 // errno.h:60:1:
EBADMSG = 74 // errno.h:57:1:
EBADR = 53 // errno.h:34:1:
EBADRQC = 56 // errno.h:37:1:
EBADSLT = 57 // errno.h:38:1:
EBFONT = 59 // errno.h:42:1:
EBUSY = 16 // errno-base.h:20:1:
ECANCELED = 125 // errno.h:109:1:
ECHILD = 10 // errno-base.h:14:1:
ECHRNG = 44 // errno.h:25:1:
ECOMM = 70 // errno.h:53:1:
ECONNABORTED = 103 // errno.h:86:1:
ECONNREFUSED = 111 // errno.h:94:1:
ECONNRESET = 104 // errno.h:87:1:
EDEADLK = 35 // errno.h:7:1:
EDEADLOCK = 58 // errno.h:8:1:
EDESTADDRREQ = 89 // errno.h:72:1:
EDOM = 33 // errno-base.h:37:1:
EDOTDOT = 73 // errno.h:56:1:
EDQUOT = 122 // errno.h:105:1:
EEXIST = 17 // errno-base.h:21:1:
EFAULT = 14 // errno-base.h:18:1:
EFBIG = 27 // errno-base.h:31:1:
EHOSTDOWN = 112 // errno.h:95:1:
EHOSTUNREACH = 113 // errno.h:96:1:
EHWPOISON = 133 // errno.h:121:1:
EIDRM = 43 // errno.h:24:1:
EILSEQ = 84 // errno.h:67:1:
EINPROGRESS = 115 // errno.h:98:1:
EINTR = 4 // errno-base.h:8:1:
EINVAL = 22 // errno-base.h:26:1:
EIO = 5 // errno-base.h:9:1:
EISCONN = 106 // errno.h:89:1:
EISDIR = 21 // errno-base.h:25:1:
EISNAM = 120 // errno.h:103:1:
EKEYEXPIRED = 127 // errno.h:111:1:
EKEYREJECTED = 129 // errno.h:113:1:
EKEYREVOKED = 128 // errno.h:112:1:
EL2HLT = 51 // errno.h:32:1:
EL2NSYNC = 45 // errno.h:26:1:
EL3HLT = 46 // errno.h:27:1:
EL3RST = 47 // errno.h:28:1:
ELIBACC = 79 // errno.h:62:1:
ELIBBAD = 80 // errno.h:63:1:
ELIBEXEC = 83 // errno.h:66:1:
ELIBMAX = 82 // errno.h:65:1:
ELIBSCN = 81 // errno.h:64:1:
ELNRNG = 48 // errno.h:29:1:
ELOOP = 40 // errno.h:21:1:
EMEDIUMTYPE = 124 // errno.h:108:1:
EMFILE = 24 // errno-base.h:28:1:
EMLINK = 31 // errno-base.h:35:1:
EMSGSIZE = 90 // errno.h:73:1:
EMULTIHOP = 72 // errno.h:55:1:
ENAMETOOLONG = 36 // errno.h:8:1:
ENAVAIL = 119 // errno.h:102:1:
ENETDOWN = 100 // errno.h:83:1:
ENETRESET = 102 // errno.h:85:1:
ENETUNREACH = 101 // errno.h:84:1:
ENFILE = 23 // errno-base.h:27:1:
ENOANO = 55 // errno.h:36:1:
ENOBUFS = 105 // errno.h:88:1:
ENOCSI = 50 // errno.h:31:1:
ENODATA = 61 // errno.h:44:1:
ENODEV = 19 // errno-base.h:23:1:
ENOENT = 2 // errno-base.h:6:1:
ENOEXEC = 8 // errno-base.h:12:1:
ENOKEY = 126 // errno.h:110:1:
ENOLCK = 37 // errno.h:9:1:
ENOLINK = 67 // errno.h:50:1:
ENOMEDIUM = 123 // errno.h:107:1:
ENOMEM = 12 // errno-base.h:16:1:
ENOMSG = 42 // errno.h:23:1:
ENONET = 64 // errno.h:47:1:
ENOPKG = 65 // errno.h:48:1:
ENOPROTOOPT = 92 // errno.h:75:1:
ENOSPC = 28 // errno-base.h:32:1:
ENOSR = 63 // errno.h:46:1:
ENOSTR = 60 // errno.h:43:1:
ENOSYS = 38 // errno.h:18:1:
ENOTBLK = 15 // errno-base.h:19:1:
ENOTCONN = 107 // errno.h:90:1:
ENOTDIR = 20 // errno-base.h:24:1:
ENOTEMPTY = 39 // errno.h:20:1:
ENOTNAM = 118 // errno.h:101:1:
ENOTRECOVERABLE = 131 // errno.h:117:1:
ENOTSOCK = 88 // errno.h:71:1:
ENOTSUP = 95 // errno.h:30:1:
ENOTTY = 25 // errno-base.h:29:1:
ENOTUNIQ = 76 // errno.h:59:1:
ENXIO = 6 // errno-base.h:10:1:
EOPNOTSUPP = 95 // errno.h:78:1:
EOVERFLOW = 75 // errno.h:58:1:
EOWNERDEAD = 130 // errno.h:116:1:
EPERM = 1 // errno-base.h:5:1:
EPFNOSUPPORT = 96 // errno.h:79:1:
EPIPE = 32 // errno-base.h:36:1:
EPROTO = 71 // errno.h:54:1:
EPROTONOSUPPORT = 93 // errno.h:76:1:
EPROTOTYPE = 91 // errno.h:74:1:
ERANGE = 34 // errno-base.h:38:1:
EREMCHG = 78 // errno.h:61:1:
EREMOTE = 66 // errno.h:49:1:
EREMOTEIO = 121 // errno.h:104:1:
ERESTART = 85 // errno.h:68:1:
ERFKILL = 132 // errno.h:119:1:
EROFS = 30 // errno-base.h:34:1:
ESHUTDOWN = 108 // errno.h:91:1:
ESOCKTNOSUPPORT = 94 // errno.h:77:1:
ESPIPE = 29 // errno-base.h:33:1:
ESRCH = 3 // errno-base.h:7:1:
ESRMNT = 69 // errno.h:52:1:
ESTALE = 116 // errno.h:99:1:
ESTRPIPE = 86 // errno.h:69:1:
ETIME = 62 // errno.h:45:1:
ETIMEDOUT = 110 // errno.h:93:1:
ETOOMANYREFS = 109 // errno.h:92:1:
ETXTBSY = 26 // errno-base.h:30:1:
EUCLEAN = 117 // errno.h:100:1:
EUNATCH = 49 // errno.h:30:1:
EUSERS = 87 // errno.h:70:1:
EWOULDBLOCK = 11 // errno.h:22:1:
EXDEV = 18 // errno-base.h:22:1:
EXFULL = 54 // errno.h:35:1:
X_ARCH_PPC = 1 // <predefined>:198:1:
X_ARCH_PPC64 = 1 // <predefined>:402:1:
X_ARCH_PPCGR = 1 // <predefined>:15:1:
X_ARCH_PPCSQ = 1 // <predefined>:43:1:
X_ARCH_PWR4 = 1 // <predefined>:381:1:
X_ARCH_PWR5 = 1 // <predefined>:90:1:
X_ARCH_PWR5X = 1 // <predefined>:137:1:
X_ARCH_PWR6 = 1 // <predefined>:91:1:
X_ARCH_PWR7 = 1 // <predefined>:92:1:
X_ARCH_PWR8 = 1 // <predefined>:93:1:
X_ASM_GENERIC_ERRNO_BASE_H = 0 // errno-base.h:3:1:
X_ASM_GENERIC_ERRNO_H = 0 // errno.h:3:1:
X_ASM_POWERPC_ERRNO_H = 0 // errno.h:3:1:
X_ATFILE_SOURCE = 1 // features.h:342:1:
X_BITS_ERRNO_H = 1 // errno.h:20:1:
X_CALL_ELF = 2 // <predefined>:415:1:
X_CALL_LINUX = 1 // <predefined>:123:1:
X_DEFAULT_SOURCE = 1 // features.h:227:1:
X_ERRNO_H = 1 // errno.h:23:1:
X_FEATURES_H = 1 // features.h:19:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LITTLE_ENDIAN = 1 // <predefined>:37:1:
X_LP64 = 1 // <predefined>:335:1:
X_POSIX_C_SOURCE = 200809 // features.h:281:1:
X_POSIX_SOURCE = 1 // features.h:279:1:
X_STDC_PREDEF_H = 1 // <predefined>:203:1:
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
Linux = 1 // <predefined>:263:1:
Unix = 1 // <predefined>:222:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__ieee128 = float64 /* <builtin>:47:21 */
var _ uint8 /* gen.c:2:13: */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_netbsd_amd64.go -pkgname errno', DO NOT EDIT.
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_netbsd_amd64.go -pkgname errno', DO NOT EDIT.
package errno
@ -15,112 +15,112 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
E2BIG = 7
EACCES = 13
EADDRINUSE = 48
EADDRNOTAVAIL = 49
EAFNOSUPPORT = 47
EAGAIN = 35
EALREADY = 37
EAUTH = 80
EBADF = 9
EBADMSG = 88
EBADRPC = 72
EBUSY = 16
ECANCELED = 87
ECHILD = 10
ECONNABORTED = 53
ECONNREFUSED = 61
ECONNRESET = 54
EDEADLK = 11
EDESTADDRREQ = 39
EDOM = 33
EDQUOT = 69
EEXIST = 17
EFAULT = 14
EFBIG = 27
EFTYPE = 79
EHOSTDOWN = 64
EHOSTUNREACH = 65
EIDRM = 82
EILSEQ = 85
EINPROGRESS = 36
EINTR = 4
EINVAL = 22
EIO = 5
EISCONN = 56
EISDIR = 21
ELAST = 96
ELOOP = 62
EMFILE = 24
EMLINK = 31
EMSGSIZE = 40
EMULTIHOP = 94
ENAMETOOLONG = 63
ENEEDAUTH = 81
ENETDOWN = 50
ENETRESET = 52
ENETUNREACH = 51
ENFILE = 23
ENOATTR = 93
ENOBUFS = 55
ENODATA = 89
ENODEV = 19
ENOENT = 2
ENOEXEC = 8
ENOLCK = 77
ENOLINK = 95
ENOMEM = 12
ENOMSG = 83
ENOPROTOOPT = 42
ENOSPC = 28
ENOSR = 90
ENOSTR = 91
ENOSYS = 78
ENOTBLK = 15
ENOTCONN = 57
ENOTDIR = 20
ENOTEMPTY = 66
ENOTSOCK = 38
ENOTSUP = 86
ENOTTY = 25
ENXIO = 6
EOPNOTSUPP = 45
EOVERFLOW = 84
EPERM = 1
EPFNOSUPPORT = 46
EPIPE = 32
EPROCLIM = 67
EPROCUNAVAIL = 76
EPROGMISMATCH = 75
EPROGUNAVAIL = 74
EPROTO = 96
EPROTONOSUPPORT = 43
EPROTOTYPE = 41
ERANGE = 34
EREMOTE = 71
EROFS = 30
ERPCMISMATCH = 73
ESHUTDOWN = 58
ESOCKTNOSUPPORT = 44
ESPIPE = 29
ESRCH = 3
ESTALE = 70
ETIME = 92
ETIMEDOUT = 60
ETOOMANYREFS = 59
ETXTBSY = 26
EUSERS = 68
EWOULDBLOCK = 35
EXDEV = 18
X_ERRNO_H_ = 0
X_FILE_OFFSET_BITS = 64
X_LP64 = 1
X_NETBSD_SOURCE = 1
X_SYS_CDEFS_ELF_H_ = 0
X_SYS_CDEFS_H_ = 0
X_SYS_ERRNO_H_ = 0
X_X86_64_CDEFS_H_ = 0
E2BIG = 7 // errno.h:48:1:
EACCES = 13 // errno.h:55:1:
EADDRINUSE = 48 // errno.h:97:1:
EADDRNOTAVAIL = 49 // errno.h:98:1:
EAFNOSUPPORT = 47 // errno.h:96:1:
EAGAIN = 35 // errno.h:81:1:
EALREADY = 37 // errno.h:84:1:
EAUTH = 80 // errno.h:140:1:
EBADF = 9 // errno.h:50:1:
EBADMSG = 88 // errno.h:159:1:
EBADRPC = 72 // errno.h:130:1:
EBUSY = 16 // errno.h:58:1:
ECANCELED = 87 // errno.h:156:1:
ECHILD = 10 // errno.h:51:1:
ECONNABORTED = 53 // errno.h:104:1:
ECONNREFUSED = 61 // errno.h:112:1:
ECONNRESET = 54 // errno.h:105:1:
EDEADLK = 11 // errno.h:52:1:
EDESTADDRREQ = 39 // errno.h:88:1:
EDOM = 33 // errno.h:77:1:
EDQUOT = 69 // errno.h:125:1:
EEXIST = 17 // errno.h:59:1:
EFAULT = 14 // errno.h:56:1:
EFBIG = 27 // errno.h:69:1:
EFTYPE = 79 // errno.h:139:1:
EHOSTDOWN = 64 // errno.h:118:1:
EHOSTUNREACH = 65 // errno.h:119:1:
EIDRM = 82 // errno.h:144:1:
EILSEQ = 85 // errno.h:149:1:
EINPROGRESS = 36 // errno.h:83:1:
EINTR = 4 // errno.h:45:1:
EINVAL = 22 // errno.h:64:1:
EIO = 5 // errno.h:46:1:
EISCONN = 56 // errno.h:107:1:
EISDIR = 21 // errno.h:63:1:
ELAST = 96 // errno.h:175:1:
ELOOP = 62 // errno.h:114:1:
EMFILE = 24 // errno.h:66:1:
EMLINK = 31 // errno.h:73:1:
EMSGSIZE = 40 // errno.h:89:1:
EMULTIHOP = 94 // errno.h:171:1:
ENAMETOOLONG = 63 // errno.h:115:1:
ENEEDAUTH = 81 // errno.h:141:1:
ENETDOWN = 50 // errno.h:101:1:
ENETRESET = 52 // errno.h:103:1:
ENETUNREACH = 51 // errno.h:102:1:
ENFILE = 23 // errno.h:65:1:
ENOATTR = 93 // errno.h:168:1:
ENOBUFS = 55 // errno.h:106:1:
ENODATA = 89 // errno.h:162:1:
ENODEV = 19 // errno.h:61:1:
ENOENT = 2 // errno.h:43:1:
ENOEXEC = 8 // errno.h:49:1:
ENOLCK = 77 // errno.h:136:1:
ENOLINK = 95 // errno.h:172:1:
ENOMEM = 12 // errno.h:54:1:
ENOMSG = 83 // errno.h:145:1:
ENOPROTOOPT = 42 // errno.h:91:1:
ENOSPC = 28 // errno.h:70:1:
ENOSR = 90 // errno.h:163:1:
ENOSTR = 91 // errno.h:164:1:
ENOSYS = 78 // errno.h:137:1:
ENOTBLK = 15 // errno.h:57:1:
ENOTCONN = 57 // errno.h:108:1:
ENOTDIR = 20 // errno.h:62:1:
ENOTEMPTY = 66 // errno.h:120:1:
ENOTSOCK = 38 // errno.h:87:1:
ENOTSUP = 86 // errno.h:153:1:
ENOTTY = 25 // errno.h:67:1:
ENXIO = 6 // errno.h:47:1:
EOPNOTSUPP = 45 // errno.h:94:1:
EOVERFLOW = 84 // errno.h:146:1:
EPERM = 1 // errno.h:42:1:
EPFNOSUPPORT = 46 // errno.h:95:1:
EPIPE = 32 // errno.h:74:1:
EPROCLIM = 67 // errno.h:123:1:
EPROCUNAVAIL = 76 // errno.h:134:1:
EPROGMISMATCH = 75 // errno.h:133:1:
EPROGUNAVAIL = 74 // errno.h:132:1:
EPROTO = 96 // errno.h:173:1:
EPROTONOSUPPORT = 43 // errno.h:92:1:
EPROTOTYPE = 41 // errno.h:90:1:
ERANGE = 34 // errno.h:78:1:
EREMOTE = 71 // errno.h:129:1:
EROFS = 30 // errno.h:72:1:
ERPCMISMATCH = 73 // errno.h:131:1:
ESHUTDOWN = 58 // errno.h:109:1:
ESOCKTNOSUPPORT = 44 // errno.h:93:1:
ESPIPE = 29 // errno.h:71:1:
ESRCH = 3 // errno.h:44:1:
ESTALE = 70 // errno.h:128:1:
ETIME = 92 // errno.h:165:1:
ETIMEDOUT = 60 // errno.h:111:1:
ETOOMANYREFS = 59 // errno.h:110:1:
ETXTBSY = 26 // errno.h:68:1:
EUSERS = 68 // errno.h:124:1:
EWOULDBLOCK = 35 // errno.h:82:1:
EXDEV = 18 // errno.h:60:1:
X_ERRNO_H_ = 0 // errno.h:40:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LP64 = 1 // <predefined>:268:1:
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
X_SYS_ERRNO_H_ = 0 // errno.h:40:1:
X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_openbsd_amd64.go -pkgname errno', DO NOT EDIT.
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_openbsd_amd64.go -pkgname errno', DO NOT EDIT.
package errno
@ -15,110 +15,110 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
E2BIG = 7
EACCES = 13
EADDRINUSE = 48
EADDRNOTAVAIL = 49
EAFNOSUPPORT = 47
EAGAIN = 35
EALREADY = 37
EAUTH = 80
EBADF = 9
EBADMSG = 92
EBADRPC = 72
EBUSY = 16
ECANCELED = 88
ECHILD = 10
ECONNABORTED = 53
ECONNREFUSED = 61
ECONNRESET = 54
EDEADLK = 11
EDESTADDRREQ = 39
EDOM = 33
EDQUOT = 69
EEXIST = 17
EFAULT = 14
EFBIG = 27
EFTYPE = 79
EHOSTDOWN = 64
EHOSTUNREACH = 65
EIDRM = 89
EILSEQ = 84
EINPROGRESS = 36
EINTR = 4
EINVAL = 22
EIO = 5
EIPSEC = 82
EISCONN = 56
EISDIR = 21
ELAST = 95
ELOOP = 62
EMEDIUMTYPE = 86
EMFILE = 24
EMLINK = 31
EMSGSIZE = 40
ENAMETOOLONG = 63
ENEEDAUTH = 81
ENETDOWN = 50
ENETRESET = 52
ENETUNREACH = 51
ENFILE = 23
ENOATTR = 83
ENOBUFS = 55
ENODEV = 19
ENOENT = 2
ENOEXEC = 8
ENOLCK = 77
ENOMEDIUM = 85
ENOMEM = 12
ENOMSG = 90
ENOPROTOOPT = 42
ENOSPC = 28
ENOSYS = 78
ENOTBLK = 15
ENOTCONN = 57
ENOTDIR = 20
ENOTEMPTY = 66
ENOTRECOVERABLE = 93
ENOTSOCK = 38
ENOTSUP = 91
ENOTTY = 25
ENXIO = 6
EOPNOTSUPP = 45
EOVERFLOW = 87
EOWNERDEAD = 94
EPERM = 1
EPFNOSUPPORT = 46
EPIPE = 32
EPROCLIM = 67
EPROCUNAVAIL = 76
EPROGMISMATCH = 75
EPROGUNAVAIL = 74
EPROTO = 95
EPROTONOSUPPORT = 43
EPROTOTYPE = 41
ERANGE = 34
EREMOTE = 71
EROFS = 30
ERPCMISMATCH = 73
ESHUTDOWN = 58
ESOCKTNOSUPPORT = 44
ESPIPE = 29
ESRCH = 3
ESTALE = 70
ETIMEDOUT = 60
ETOOMANYREFS = 59
ETXTBSY = 26
EUSERS = 68
EWOULDBLOCK = 35
EXDEV = 18
X_ERRNO_H_ = 0
X_FILE_OFFSET_BITS = 64
X_LP64 = 1
X_MACHINE_CDEFS_H_ = 0
X_RET_PROTECTOR = 1
X_SYS_CDEFS_H_ = 0
Unix = 1
E2BIG = 7 // errno.h:48:1:
EACCES = 13 // errno.h:55:1:
EADDRINUSE = 48 // errno.h:103:1:
EADDRNOTAVAIL = 49 // errno.h:104:1:
EAFNOSUPPORT = 47 // errno.h:102:1:
EAGAIN = 35 // errno.h:83:1:
EALREADY = 37 // errno.h:86:1:
EAUTH = 80 // errno.h:155:1:
EBADF = 9 // errno.h:50:1:
EBADMSG = 92 // errno.h:170:1:
EBADRPC = 72 // errno.h:143:1:
EBUSY = 16 // errno.h:60:1:
ECANCELED = 88 // errno.h:166:1:
ECHILD = 10 // errno.h:51:1:
ECONNABORTED = 53 // errno.h:110:1:
ECONNREFUSED = 61 // errno.h:120:1:
ECONNRESET = 54 // errno.h:111:1:
EDEADLK = 11 // errno.h:52:1:
EDESTADDRREQ = 39 // errno.h:90:1:
EDOM = 33 // errno.h:79:1:
EDQUOT = 69 // errno.h:137:1:
EEXIST = 17 // errno.h:61:1:
EFAULT = 14 // errno.h:56:1:
EFBIG = 27 // errno.h:71:1:
EFTYPE = 79 // errno.h:154:1:
EHOSTDOWN = 64 // errno.h:127:1:
EHOSTUNREACH = 65 // errno.h:129:1:
EIDRM = 89 // errno.h:167:1:
EILSEQ = 84 // errno.h:160:1:
EINPROGRESS = 36 // errno.h:85:1:
EINTR = 4 // errno.h:45:1:
EINVAL = 22 // errno.h:66:1:
EIO = 5 // errno.h:46:1:
EIPSEC = 82 // errno.h:157:1:
EISCONN = 56 // errno.h:113:1:
EISDIR = 21 // errno.h:65:1:
ELAST = 95 // errno.h:175:1:
ELOOP = 62 // errno.h:122:1:
EMEDIUMTYPE = 86 // errno.h:163:1:
EMFILE = 24 // errno.h:68:1:
EMLINK = 31 // errno.h:75:1:
EMSGSIZE = 40 // errno.h:91:1:
ENAMETOOLONG = 63 // errno.h:123:1:
ENEEDAUTH = 81 // errno.h:156:1:
ENETDOWN = 50 // errno.h:107:1:
ENETRESET = 52 // errno.h:109:1:
ENETUNREACH = 51 // errno.h:108:1:
ENFILE = 23 // errno.h:67:1:
ENOATTR = 83 // errno.h:158:1:
ENOBUFS = 55 // errno.h:112:1:
ENODEV = 19 // errno.h:63:1:
ENOENT = 2 // errno.h:43:1:
ENOEXEC = 8 // errno.h:49:1:
ENOLCK = 77 // errno.h:150:1:
ENOMEDIUM = 85 // errno.h:162:1:
ENOMEM = 12 // errno.h:54:1:
ENOMSG = 90 // errno.h:168:1:
ENOPROTOOPT = 42 // errno.h:93:1:
ENOSPC = 28 // errno.h:72:1:
ENOSYS = 78 // errno.h:151:1:
ENOTBLK = 15 // errno.h:58:1:
ENOTCONN = 57 // errno.h:114:1:
ENOTDIR = 20 // errno.h:64:1:
ENOTEMPTY = 66 // errno.h:130:1:
ENOTRECOVERABLE = 93 // errno.h:171:1:
ENOTSOCK = 38 // errno.h:89:1:
ENOTSUP = 91 // errno.h:169:1:
ENOTTY = 25 // errno.h:69:1:
ENXIO = 6 // errno.h:47:1:
EOPNOTSUPP = 45 // errno.h:98:1:
EOVERFLOW = 87 // errno.h:165:1:
EOWNERDEAD = 94 // errno.h:172:1:
EPERM = 1 // errno.h:42:1:
EPFNOSUPPORT = 46 // errno.h:100:1:
EPIPE = 32 // errno.h:76:1:
EPROCLIM = 67 // errno.h:134:1:
EPROCUNAVAIL = 76 // errno.h:147:1:
EPROGMISMATCH = 75 // errno.h:146:1:
EPROGUNAVAIL = 74 // errno.h:145:1:
EPROTO = 95 // errno.h:173:1:
EPROTONOSUPPORT = 43 // errno.h:94:1:
EPROTOTYPE = 41 // errno.h:92:1:
ERANGE = 34 // errno.h:80:1:
EREMOTE = 71 // errno.h:142:1:
EROFS = 30 // errno.h:74:1:
ERPCMISMATCH = 73 // errno.h:144:1:
ESHUTDOWN = 58 // errno.h:116:1:
ESOCKTNOSUPPORT = 44 // errno.h:96:1:
ESPIPE = 29 // errno.h:73:1:
ESRCH = 3 // errno.h:44:1:
ESTALE = 70 // errno.h:140:1:
ETIMEDOUT = 60 // errno.h:119:1:
ETOOMANYREFS = 59 // errno.h:117:1:
ETXTBSY = 26 // errno.h:70:1:
EUSERS = 68 // errno.h:135:1:
EWOULDBLOCK = 35 // errno.h:84:1:
EXDEV = 18 // errno.h:62:1:
X_ERRNO_H_ = 0 // errno.h:40:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
X_RET_PROTECTOR = 1 // <predefined>:2:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
Unix = 1 // <predefined>:340:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_freebsd_386.go -pkgname fcntl', DO NOT EDIT.
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_freebsd_386.go -pkgname fcntl', DO NOT EDIT.
package fcntl

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_freebsd_amd64.go -pkgname fcntl', DO NOT EDIT.
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_freebsd_amd64.go -pkgname fcntl', DO NOT EDIT.
package fcntl

5
vendor/modernc.org/libc/fcntl/capi_linux_ppc64le.go generated vendored Normal file
View File

@ -0,0 +1,5 @@
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_linux_ppc64le.go -pkgname fcntl', DO NOT EDIT.
package fcntl
var CAPI = map[string]struct{}{}

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_netbsd_amd64.go -pkgname fcntl', DO NOT EDIT.
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_netbsd_amd64.go -pkgname fcntl', DO NOT EDIT.
package fcntl

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_openbsd_amd64.go -pkgname fcntl', DO NOT EDIT.
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_openbsd_amd64.go -pkgname fcntl', DO NOT EDIT.
package fcntl

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_freebsd_386.go -pkgname fcntl', DO NOT EDIT.
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_freebsd_386.go -pkgname fcntl', DO NOT EDIT.
package fcntl
@ -15,109 +15,109 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
AT_EACCESS = 0x0100
AT_EMPTY_PATH = 0x4000
AT_FDCWD = -100
AT_REMOVEDIR = 0x0800
AT_RESOLVE_BENEATH = 0x2000
AT_SYMLINK_FOLLOW = 0x0400
AT_SYMLINK_NOFOLLOW = 0x0200
FAPPEND = 8
FASYNC = 64
FDSYNC = 16777216
FD_CLOEXEC = 1
FD_NONE = -200
FFSYNC = 128
FNDELAY = 4
FNONBLOCK = 4
FRDAHEAD = 512
FREAD = 0x0001
FWRITE = 0x0002
F_ADD_SEALS = 19
F_CANCEL = 5
F_DUP2FD = 10
F_DUP2FD_CLOEXEC = 18
F_DUPFD = 0
F_DUPFD_CLOEXEC = 17
F_GETFD = 1
F_GETFL = 3
F_GETLK = 11
F_GETOWN = 5
F_GET_SEALS = 20
F_ISUNIONSTACK = 21
F_KINFO = 22
F_OGETLK = 7
F_OSETLK = 8
F_OSETLKW = 9
F_RDAHEAD = 16
F_RDLCK = 1
F_READAHEAD = 15
F_SEAL_GROW = 0x0004
F_SEAL_SEAL = 0x0001
F_SEAL_SHRINK = 0x0002
F_SEAL_WRITE = 0x0008
F_SETFD = 2
F_SETFL = 4
F_SETLK = 12
F_SETLKW = 13
F_SETLK_REMOTE = 14
F_SETOWN = 6
F_UNLCK = 2
F_UNLCKSYS = 4
F_WRLCK = 3
LOCK_EX = 0x02
LOCK_NB = 0x04
LOCK_SH = 0x01
LOCK_UN = 0x08
O_ACCMODE = 0x0003
O_APPEND = 0x0008
O_ASYNC = 0x0040
O_CLOEXEC = 0x00100000
O_CREAT = 0x0200
O_DIRECT = 0x00010000
O_DIRECTORY = 0x00020000
O_DSYNC = 0x01000000
O_EMPTY_PATH = 0x02000000
O_EXCL = 0x0800
O_EXEC = 0x00040000
O_EXLOCK = 0x0020
O_FSYNC = 0x0080
O_NDELAY = 4
O_NOCTTY = 0x8000
O_NOFOLLOW = 0x0100
O_NONBLOCK = 0x0004
O_PATH = 0x00400000
O_RDONLY = 0x0000
O_RDWR = 0x0002
O_RESOLVE_BENEATH = 0x00800000
O_SEARCH = 262144
O_SHLOCK = 0x0010
O_SYNC = 0x0080
O_TRUNC = 0x0400
O_TTY_INIT = 0x00080000
O_VERIFY = 0x00200000
O_WRONLY = 0x0001
POSIX_FADV_DONTNEED = 4
POSIX_FADV_NOREUSE = 5
POSIX_FADV_NORMAL = 0
POSIX_FADV_RANDOM = 1
POSIX_FADV_SEQUENTIAL = 2
POSIX_FADV_WILLNEED = 3
X_FILE_OFFSET_BITS = 64
X_ILP32 = 1
X_MACHINE__LIMITS_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_MODE_T_DECLARED = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_OFF_T_DECLARED = 0
X_PID_T_DECLARED = 0
X_SYS_CDEFS_H_ = 0
X_SYS_FCNTL_H_ = 0
X_SYS__TYPES_H_ = 0
I386 = 1
Unix = 1
AT_EACCESS = 0x0100 // fcntl.h:224:1:
AT_EMPTY_PATH = 0x4000 // fcntl.h:234:1:
AT_FDCWD = -100 // fcntl.h:219:1:
AT_REMOVEDIR = 0x0800 // fcntl.h:228:1:
AT_RESOLVE_BENEATH = 0x2000 // fcntl.h:232:1:
AT_SYMLINK_FOLLOW = 0x0400 // fcntl.h:227:1:
AT_SYMLINK_NOFOLLOW = 0x0200 // fcntl.h:226:1:
FAPPEND = 8 // fcntl.h:193:1:
FASYNC = 64 // fcntl.h:194:1:
FDSYNC = 16777216 // fcntl.h:196:1:
FD_CLOEXEC = 1 // fcntl.h:283:1:
FD_NONE = -200 // fcntl.h:355:1:
FFSYNC = 128 // fcntl.h:195:1:
FNDELAY = 4 // fcntl.h:198:1:
FNONBLOCK = 4 // fcntl.h:197:1:
FRDAHEAD = 512 // fcntl.h:210:1:
FREAD = 0x0001 // fcntl.h:89:1:
FWRITE = 0x0002 // fcntl.h:90:1:
F_ADD_SEALS = 19 // fcntl.h:270:1:
F_CANCEL = 5 // fcntl.h:291:1:
F_DUP2FD = 10 // fcntl.h:255:1:
F_DUP2FD_CLOEXEC = 18 // fcntl.h:269:1:
F_DUPFD = 0 // fcntl.h:242:1:
F_DUPFD_CLOEXEC = 17 // fcntl.h:266:1:
F_GETFD = 1 // fcntl.h:243:1:
F_GETFL = 3 // fcntl.h:245:1:
F_GETLK = 11 // fcntl.h:257:1:
F_GETOWN = 5 // fcntl.h:248:1:
F_GET_SEALS = 20 // fcntl.h:271:1:
F_ISUNIONSTACK = 21 // fcntl.h:272:1:
F_KINFO = 22 // fcntl.h:273:1:
F_OGETLK = 7 // fcntl.h:252:1:
F_OSETLK = 8 // fcntl.h:253:1:
F_OSETLKW = 9 // fcntl.h:254:1:
F_RDAHEAD = 16 // fcntl.h:263:1:
F_RDLCK = 1 // fcntl.h:286:1:
F_READAHEAD = 15 // fcntl.h:262:1:
F_SEAL_GROW = 0x0004 // fcntl.h:278:1:
F_SEAL_SEAL = 0x0001 // fcntl.h:276:1:
F_SEAL_SHRINK = 0x0002 // fcntl.h:277:1:
F_SEAL_WRITE = 0x0008 // fcntl.h:279:1:
F_SETFD = 2 // fcntl.h:244:1:
F_SETFL = 4 // fcntl.h:246:1:
F_SETLK = 12 // fcntl.h:258:1:
F_SETLKW = 13 // fcntl.h:259:1:
F_SETLK_REMOTE = 14 // fcntl.h:261:1:
F_SETOWN = 6 // fcntl.h:249:1:
F_UNLCK = 2 // fcntl.h:287:1:
F_UNLCKSYS = 4 // fcntl.h:290:1:
F_WRLCK = 3 // fcntl.h:288:1:
LOCK_EX = 0x02 // fcntl.h:332:1:
LOCK_NB = 0x04 // fcntl.h:333:1:
LOCK_SH = 0x01 // fcntl.h:331:1:
LOCK_UN = 0x08 // fcntl.h:334:1:
O_ACCMODE = 0x0003 // fcntl.h:78:1:
O_APPEND = 0x0008 // fcntl.h:93:1:
O_ASYNC = 0x0040 // fcntl.h:97:1:
O_CLOEXEC = 0x00100000 // fcntl.h:133:1:
O_CREAT = 0x0200 // fcntl.h:104:1:
O_DIRECT = 0x00010000 // fcntl.h:116:1:
O_DIRECTORY = 0x00020000 // fcntl.h:120:1:
O_DSYNC = 0x01000000 // fcntl.h:143:1:
O_EMPTY_PATH = 0x02000000 // fcntl.h:145:1:
O_EXCL = 0x0800 // fcntl.h:106:1:
O_EXEC = 0x00040000 // fcntl.h:121:1:
O_EXLOCK = 0x0020 // fcntl.h:96:1:
O_FSYNC = 0x0080 // fcntl.h:98:1:
O_NDELAY = 4 // fcntl.h:199:1:
O_NOCTTY = 0x8000 // fcntl.h:112:1:
O_NOFOLLOW = 0x0100 // fcntl.h:102:1:
O_NONBLOCK = 0x0004 // fcntl.h:92:1:
O_PATH = 0x00400000 // fcntl.h:138:1:
O_RDONLY = 0x0000 // fcntl.h:75:1:
O_RDWR = 0x0002 // fcntl.h:77:1:
O_RESOLVE_BENEATH = 0x00800000 // fcntl.h:139:1:
O_SEARCH = 262144 // fcntl.h:122:1:
O_SHLOCK = 0x0010 // fcntl.h:95:1:
O_SYNC = 0x0080 // fcntl.h:100:1:
O_TRUNC = 0x0400 // fcntl.h:105:1:
O_TTY_INIT = 0x00080000 // fcntl.h:131:1:
O_VERIFY = 0x00200000 // fcntl.h:137:1:
O_WRONLY = 0x0001 // fcntl.h:76:1:
POSIX_FADV_DONTNEED = 4 // fcntl.h:345:1:
POSIX_FADV_NOREUSE = 5 // fcntl.h:346:1:
POSIX_FADV_NORMAL = 0 // fcntl.h:341:1:
POSIX_FADV_RANDOM = 1 // fcntl.h:342:1:
POSIX_FADV_SEQUENTIAL = 2 // fcntl.h:343:1:
POSIX_FADV_WILLNEED = 3 // fcntl.h:344:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_ILP32 = 1 // <predefined>:1:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_MODE_T_DECLARED = 0 // fcntl.h:54:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_OFF_T_DECLARED = 0 // fcntl.h:59:1:
X_PID_T_DECLARED = 0 // fcntl.h:64:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_FCNTL_H_ = 0 // fcntl.h:41:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
I386 = 1 // <predefined>:335:1:
Unix = 1 // <predefined>:336:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_freebsd_amd64.go -pkgname fcntl', DO NOT EDIT.
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_freebsd_amd64.go -pkgname fcntl', DO NOT EDIT.
package fcntl
@ -15,104 +15,104 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
AT_EACCESS = 0x0100
AT_FDCWD = -100
AT_REMOVEDIR = 0x0800
AT_RESOLVE_BENEATH = 0x2000
AT_SYMLINK_FOLLOW = 0x0400
AT_SYMLINK_NOFOLLOW = 0x0200
FAPPEND = 8
FASYNC = 64
FDSYNC = 16777216
FD_CLOEXEC = 1
FD_NONE = -200
FFSYNC = 128
FNDELAY = 4
FNONBLOCK = 4
FRDAHEAD = 512
FREAD = 0x0001
FWRITE = 0x0002
F_ADD_SEALS = 19
F_CANCEL = 5
F_DUP2FD = 10
F_DUP2FD_CLOEXEC = 18
F_DUPFD = 0
F_DUPFD_CLOEXEC = 17
F_GETFD = 1
F_GETFL = 3
F_GETLK = 11
F_GETOWN = 5
F_GET_SEALS = 20
F_ISUNIONSTACK = 21
F_OGETLK = 7
F_OSETLK = 8
F_OSETLKW = 9
F_RDAHEAD = 16
F_RDLCK = 1
F_READAHEAD = 15
F_SEAL_GROW = 0x0004
F_SEAL_SEAL = 0x0001
F_SEAL_SHRINK = 0x0002
F_SEAL_WRITE = 0x0008
F_SETFD = 2
F_SETFL = 4
F_SETLK = 12
F_SETLKW = 13
F_SETLK_REMOTE = 14
F_SETOWN = 6
F_UNLCK = 2
F_UNLCKSYS = 4
F_WRLCK = 3
LOCK_EX = 0x02
LOCK_NB = 0x04
LOCK_SH = 0x01
LOCK_UN = 0x08
O_ACCMODE = 0x0003
O_APPEND = 0x0008
O_ASYNC = 0x0040
O_CLOEXEC = 0x00100000
O_CREAT = 0x0200
O_DIRECT = 0x00010000
O_DIRECTORY = 0x00020000
O_DSYNC = 0x01000000
O_EXCL = 0x0800
O_EXEC = 0x00040000
O_EXLOCK = 0x0020
O_FSYNC = 0x0080
O_NDELAY = 4
O_NOCTTY = 0x8000
O_NOFOLLOW = 0x0100
O_NONBLOCK = 0x0004
O_RDONLY = 0x0000
O_RDWR = 0x0002
O_RESOLVE_BENEATH = 0x00800000
O_SEARCH = 262144
O_SHLOCK = 0x0010
O_SYNC = 0x0080
O_TRUNC = 0x0400
O_TTY_INIT = 0x00080000
O_VERIFY = 0x00200000
O_WRONLY = 0x0001
POSIX_FADV_DONTNEED = 4
POSIX_FADV_NOREUSE = 5
POSIX_FADV_NORMAL = 0
POSIX_FADV_RANDOM = 1
POSIX_FADV_SEQUENTIAL = 2
POSIX_FADV_WILLNEED = 3
X_FILE_OFFSET_BITS = 64
X_LP64 = 1
X_MACHINE__LIMITS_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_MODE_T_DECLARED = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_OFF_T_DECLARED = 0
X_PID_T_DECLARED = 0
X_SYS_CDEFS_H_ = 0
X_SYS_FCNTL_H_ = 0
X_SYS__TYPES_H_ = 0
Unix = 1
AT_EACCESS = 0x0100 // fcntl.h:217:1:
AT_FDCWD = -100 // fcntl.h:212:1:
AT_REMOVEDIR = 0x0800 // fcntl.h:221:1:
AT_RESOLVE_BENEATH = 0x2000 // fcntl.h:223:1:
AT_SYMLINK_FOLLOW = 0x0400 // fcntl.h:220:1:
AT_SYMLINK_NOFOLLOW = 0x0200 // fcntl.h:219:1:
FAPPEND = 8 // fcntl.h:186:1:
FASYNC = 64 // fcntl.h:187:1:
FDSYNC = 16777216 // fcntl.h:189:1:
FD_CLOEXEC = 1 // fcntl.h:272:1:
FD_NONE = -200 // fcntl.h:343:1:
FFSYNC = 128 // fcntl.h:188:1:
FNDELAY = 4 // fcntl.h:191:1:
FNONBLOCK = 4 // fcntl.h:190:1:
FRDAHEAD = 512 // fcntl.h:203:1:
FREAD = 0x0001 // fcntl.h:89:1:
FWRITE = 0x0002 // fcntl.h:90:1:
F_ADD_SEALS = 19 // fcntl.h:260:1:
F_CANCEL = 5 // fcntl.h:280:1:
F_DUP2FD = 10 // fcntl.h:245:1:
F_DUP2FD_CLOEXEC = 18 // fcntl.h:259:1:
F_DUPFD = 0 // fcntl.h:232:1:
F_DUPFD_CLOEXEC = 17 // fcntl.h:256:1:
F_GETFD = 1 // fcntl.h:233:1:
F_GETFL = 3 // fcntl.h:235:1:
F_GETLK = 11 // fcntl.h:247:1:
F_GETOWN = 5 // fcntl.h:238:1:
F_GET_SEALS = 20 // fcntl.h:261:1:
F_ISUNIONSTACK = 21 // fcntl.h:262:1:
F_OGETLK = 7 // fcntl.h:242:1:
F_OSETLK = 8 // fcntl.h:243:1:
F_OSETLKW = 9 // fcntl.h:244:1:
F_RDAHEAD = 16 // fcntl.h:253:1:
F_RDLCK = 1 // fcntl.h:275:1:
F_READAHEAD = 15 // fcntl.h:252:1:
F_SEAL_GROW = 0x0004 // fcntl.h:267:1:
F_SEAL_SEAL = 0x0001 // fcntl.h:265:1:
F_SEAL_SHRINK = 0x0002 // fcntl.h:266:1:
F_SEAL_WRITE = 0x0008 // fcntl.h:268:1:
F_SETFD = 2 // fcntl.h:234:1:
F_SETFL = 4 // fcntl.h:236:1:
F_SETLK = 12 // fcntl.h:248:1:
F_SETLKW = 13 // fcntl.h:249:1:
F_SETLK_REMOTE = 14 // fcntl.h:251:1:
F_SETOWN = 6 // fcntl.h:239:1:
F_UNLCK = 2 // fcntl.h:276:1:
F_UNLCKSYS = 4 // fcntl.h:279:1:
F_WRLCK = 3 // fcntl.h:277:1:
LOCK_EX = 0x02 // fcntl.h:320:1:
LOCK_NB = 0x04 // fcntl.h:321:1:
LOCK_SH = 0x01 // fcntl.h:319:1:
LOCK_UN = 0x08 // fcntl.h:322:1:
O_ACCMODE = 0x0003 // fcntl.h:78:1:
O_APPEND = 0x0008 // fcntl.h:93:1:
O_ASYNC = 0x0040 // fcntl.h:97:1:
O_CLOEXEC = 0x00100000 // fcntl.h:133:1:
O_CREAT = 0x0200 // fcntl.h:104:1:
O_DIRECT = 0x00010000 // fcntl.h:116:1:
O_DIRECTORY = 0x00020000 // fcntl.h:120:1:
O_DSYNC = 0x01000000 // fcntl.h:143:1:
O_EXCL = 0x0800 // fcntl.h:106:1:
O_EXEC = 0x00040000 // fcntl.h:121:1:
O_EXLOCK = 0x0020 // fcntl.h:96:1:
O_FSYNC = 0x0080 // fcntl.h:98:1:
O_NDELAY = 4 // fcntl.h:192:1:
O_NOCTTY = 0x8000 // fcntl.h:112:1:
O_NOFOLLOW = 0x0100 // fcntl.h:102:1:
O_NONBLOCK = 0x0004 // fcntl.h:92:1:
O_RDONLY = 0x0000 // fcntl.h:75:1:
O_RDWR = 0x0002 // fcntl.h:77:1:
O_RESOLVE_BENEATH = 0x00800000 // fcntl.h:139:1:
O_SEARCH = 262144 // fcntl.h:122:1:
O_SHLOCK = 0x0010 // fcntl.h:95:1:
O_SYNC = 0x0080 // fcntl.h:100:1:
O_TRUNC = 0x0400 // fcntl.h:105:1:
O_TTY_INIT = 0x00080000 // fcntl.h:131:1:
O_VERIFY = 0x00200000 // fcntl.h:137:1:
O_WRONLY = 0x0001 // fcntl.h:76:1:
POSIX_FADV_DONTNEED = 4 // fcntl.h:333:1:
POSIX_FADV_NOREUSE = 5 // fcntl.h:334:1:
POSIX_FADV_NORMAL = 0 // fcntl.h:329:1:
POSIX_FADV_RANDOM = 1 // fcntl.h:330:1:
POSIX_FADV_SEQUENTIAL = 2 // fcntl.h:331:1:
POSIX_FADV_WILLNEED = 3 // fcntl.h:332:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_MODE_T_DECLARED = 0 // fcntl.h:54:1:
X_Nonnull = 0 // cdefs.h:783:1:
X_Null_unspecified = 0 // cdefs.h:785:1:
X_Nullable = 0 // cdefs.h:784:1:
X_OFF_T_DECLARED = 0 // fcntl.h:59:1:
X_PID_T_DECLARED = 0 // fcntl.h:64:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_FCNTL_H_ = 0 // fcntl.h:41:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
Unix = 1 // <predefined>:337:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

1103
vendor/modernc.org/libc/fcntl/fcntl_linux_ppc64le.go generated vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_netbsd_amd64.go -pkgname fcntl', DO NOT EDIT.
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_netbsd_amd64.go -pkgname fcntl', DO NOT EDIT.
package fcntl
@ -15,197 +15,197 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
AT_EACCESS = 0x100
AT_FDCWD = -100
AT_REMOVEDIR = 0x800
AT_SYMLINK_FOLLOW = 0x400
AT_SYMLINK_NOFOLLOW = 0x200
BIG_ENDIAN = 4321
BYTE_ORDER = 1234
FAPPEND = 8
FASYNC = 64
FD_CLOEXEC = 1
FD_SETSIZE = 256
FNDELAY = 4
FREAD = 0x00000001
FWRITE = 0x00000002
F_CLOSEM = 10
F_DUPFD = 0
F_DUPFD_CLOEXEC = 12
F_GETFD = 1
F_GETFL = 3
F_GETLK = 7
F_GETNOSIGPIPE = 13
F_GETOWN = 5
F_MAXFD = 11
F_PARAM_MASK = 0xfff
F_PARAM_MAX = 4095
F_RDLCK = 1
F_SETFD = 2
F_SETFL = 4
F_SETLK = 8
F_SETLKW = 9
F_SETNOSIGPIPE = 14
F_SETOWN = 6
F_UNLCK = 2
F_WRLCK = 3
INT16_MAX = 32767
INT16_MIN = -32768
INT32_MAX = 2147483647
INT32_MIN = -2147483648
INT64_MAX = 9223372036854775807
INT64_MIN = -9223372036854775808
INT8_MAX = 127
INT8_MIN = -128
INTMAX_MAX = 9223372036854775807
INTMAX_MIN = -9223372036854775808
INTPTR_MAX = 9223372036854775807
INTPTR_MIN = -9223372036854775808
INT_FAST16_MAX = 2147483647
INT_FAST16_MIN = -2147483648
INT_FAST32_MAX = 2147483647
INT_FAST32_MIN = -2147483648
INT_FAST64_MAX = 9223372036854775807
INT_FAST64_MIN = -9223372036854775808
INT_FAST8_MAX = 2147483647
INT_FAST8_MIN = -2147483648
INT_LEAST16_MAX = 32767
INT_LEAST16_MIN = -32768
INT_LEAST32_MAX = 2147483647
INT_LEAST32_MIN = -2147483648
INT_LEAST64_MAX = 9223372036854775807
INT_LEAST64_MIN = -9223372036854775808
INT_LEAST8_MAX = 127
INT_LEAST8_MIN = -128
LITTLE_ENDIAN = 1234
LOCK_EX = 0x02
LOCK_NB = 0x04
LOCK_SH = 0x01
LOCK_UN = 0x08
NBBY = 8
NFDBITS = 32
NODEVMAJOR = -1
O_ACCMODE = 0x00000003
O_ALT_IO = 0x00040000
O_APPEND = 0x00000008
O_ASYNC = 0x00000040
O_CLOEXEC = 0x00400000
O_CREAT = 0x00000200
O_DIRECT = 0x00080000
O_DIRECTORY = 0x00200000
O_DSYNC = 0x00010000
O_EXCL = 0x00000800
O_EXLOCK = 0x00000020
O_FSYNC = 128
O_NDELAY = 4
O_NOCTTY = 0x00008000
O_NOFOLLOW = 0x00000100
O_NONBLOCK = 0x00000004
O_NOSIGPIPE = 0x01000000
O_RDONLY = 0x00000000
O_RDWR = 0x00000002
O_REGULAR = 0x02000000
O_RSYNC = 0x00020000
O_SEARCH = 0x00800000
O_SHLOCK = 0x00000010
O_SYNC = 0x00000080
O_TRUNC = 0x00000400
O_WRONLY = 0x00000001
PDP_ENDIAN = 3412
POSIX_FADV_DONTNEED = 4
POSIX_FADV_NOREUSE = 5
POSIX_FADV_NORMAL = 0
POSIX_FADV_RANDOM = 1
POSIX_FADV_SEQUENTIAL = 2
POSIX_FADV_WILLNEED = 3
PTRDIFF_MAX = 9223372036854775807
PTRDIFF_MIN = -9223372036854775808
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
SIG_ATOMIC_MAX = 2147483647
SIG_ATOMIC_MIN = -2147483648
SIZE_MAX = 18446744073709551615
UINT16_MAX = 65535
UINT32_MAX = 4294967295
UINT64_MAX = 18446744073709551615
UINT8_MAX = 255
UINTMAX_MAX = 18446744073709551615
UINTPTR_MAX = 18446744073709551615
UINT_FAST16_MAX = 4294967295
UINT_FAST32_MAX = 4294967295
UINT_FAST64_MAX = 18446744073709551615
UINT_FAST8_MAX = 4294967295
UINT_LEAST16_MAX = 65535
UINT_LEAST32_MAX = 4294967295
UINT_LEAST64_MAX = 18446744073709551615
UINT_LEAST8_MAX = 255
WCHAR_MAX = 0x7fffffff
WCHAR_MIN = -2147483648
WINT_MAX = 0x7fffffff
WINT_MIN = -2147483648
X_AMD64_BYTE_SWAP_H_ = 0
X_AMD64_INT_CONST_H_ = 0
X_AMD64_INT_LIMITS_H_ = 0
X_AMD64_INT_MWGWTYPES_H_ = 0
X_AMD64_INT_TYPES_H_ = 0
X_AMD64_WCHAR_LIMITS_H_ = 0
X_BIG_ENDIAN = 4321
X_BSD_INT16_T_ = 0
X_BSD_INT32_T_ = 0
X_BSD_INT64_T_ = 0
X_BSD_INT8_T_ = 0
X_BSD_INTPTR_T_ = 0
X_BSD_UINT16_T_ = 0
X_BSD_UINT32_T_ = 0
X_BSD_UINT64_T_ = 0
X_BSD_UINT8_T_ = 0
X_BSD_UINTPTR_T_ = 0
X_BYTE_ORDER = 1234
X_FILE_OFFSET_BITS = 64
X_LIB_PTHREAD_TYPES_H = 0
X_LITTLE_ENDIAN = 1234
X_LP64 = 1
X_NETBSD_SOURCE = 1
X_PDP_ENDIAN = 3412
X_PT_BARRIERATTR_DEAD = 0xDEAD0808
X_PT_BARRIERATTR_MAGIC = 0x88880808
X_PT_BARRIER_DEAD = 0xDEAD0008
X_PT_BARRIER_MAGIC = 0x88880008
X_PT_CONDATTR_DEAD = 0xDEAD0006
X_PT_CONDATTR_MAGIC = 0x66660006
X_PT_COND_DEAD = 0xDEAD0005
X_PT_COND_MAGIC = 0x55550005
X_PT_MUTEXATTR_DEAD = 0xDEAD0004
X_PT_MUTEXATTR_MAGIC = 0x44440004
X_PT_MUTEX_DEAD = 0xDEAD0003
X_PT_MUTEX_MAGIC = 0x33330003
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909
X_PT_RWLOCKATTR_MAGIC = 0x99990909
X_PT_RWLOCK_DEAD = 0xDEAD0009
X_PT_RWLOCK_MAGIC = 0x99990009
X_PT_SPINLOCK_DEAD = 0xDEAD0007
X_PT_SPINLOCK_MAGIC = 0x77770007
X_PT_SPINLOCK_PSHARED = 0x00000001
X_QUAD_HIGHWORD = 1
X_QUAD_LOWWORD = 0
X_SIZE_T = 0
X_SYS_ANSI_H_ = 0
X_SYS_BSWAP_H_ = 0
X_SYS_CDEFS_ELF_H_ = 0
X_SYS_CDEFS_H_ = 0
X_SYS_COMMON_ANSI_H_ = 0
X_SYS_COMMON_INT_LIMITS_H_ = 0
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0
X_SYS_COMMON_INT_TYPES_H_ = 0
X_SYS_ENDIAN_H_ = 0
X_SYS_FCNTL_H_ = 0
X_SYS_FD_SET_H_ = 0
X_SYS_STDINT_H_ = 0
X_SYS_TYPES_H_ = 0
X_X86_64_BSWAP_H_ = 0
X_X86_64_CDEFS_H_ = 0
X_X86_64_TYPES_H_ = 0
AT_EACCESS = 0x100 // fcntl.h:297:1:
AT_FDCWD = -100 // fcntl.h:296:1:
AT_REMOVEDIR = 0x800 // fcntl.h:300:1:
AT_SYMLINK_FOLLOW = 0x400 // fcntl.h:299:1:
AT_SYMLINK_NOFOLLOW = 0x200 // fcntl.h:298:1:
BIG_ENDIAN = 4321 // endian.h:101:1:
BYTE_ORDER = 1234 // endian.h:103:1:
FAPPEND = 8 // fcntl.h:156:1:
FASYNC = 64 // fcntl.h:157:1:
FD_CLOEXEC = 1 // fcntl.h:199:1:
FD_SETSIZE = 256 // fd_set.h:59:1:
FNDELAY = 4 // fcntl.h:159:1:
FREAD = 0x00000001 // fcntl.h:78:1:
FWRITE = 0x00000002 // fcntl.h:79:1:
F_CLOSEM = 10 // fcntl.h:191:1:
F_DUPFD = 0 // fcntl.h:177:1:
F_DUPFD_CLOEXEC = 12 // fcntl.h:193:1:
F_GETFD = 1 // fcntl.h:178:1:
F_GETFL = 3 // fcntl.h:180:1:
F_GETLK = 7 // fcntl.h:187:1:
F_GETNOSIGPIPE = 13 // fcntl.h:194:1:
F_GETOWN = 5 // fcntl.h:184:1:
F_MAXFD = 11 // fcntl.h:192:1:
F_PARAM_MASK = 0xfff // fcntl.h:213:1:
F_PARAM_MAX = 4095 // fcntl.h:215:1:
F_RDLCK = 1 // fcntl.h:202:1:
F_SETFD = 2 // fcntl.h:179:1:
F_SETFL = 4 // fcntl.h:181:1:
F_SETLK = 8 // fcntl.h:188:1:
F_SETLKW = 9 // fcntl.h:189:1:
F_SETNOSIGPIPE = 14 // fcntl.h:195:1:
F_SETOWN = 6 // fcntl.h:185:1:
F_UNLCK = 2 // fcntl.h:203:1:
F_WRLCK = 3 // fcntl.h:204:1:
INT16_MAX = 32767 // common_int_limits.h:53:1:
INT16_MIN = -32768 // common_int_limits.h:47:1:
INT32_MAX = 2147483647 // common_int_limits.h:54:1:
INT32_MIN = -2147483648 // common_int_limits.h:48:1:
INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
INT8_MAX = 127 // common_int_limits.h:52:1:
INT8_MIN = -128 // common_int_limits.h:46:1:
INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
INTPTR_MAX = 9223372036854775807 // common_int_limits.h:105:1:
INTPTR_MIN = -9223372036854775808 // common_int_limits.h:104:1:
INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
LITTLE_ENDIAN = 1234 // endian.h:100:1:
LOCK_EX = 0x02 // fcntl.h:264:1:
LOCK_NB = 0x04 // fcntl.h:265:1:
LOCK_SH = 0x01 // fcntl.h:263:1:
LOCK_UN = 0x08 // fcntl.h:266:1:
NBBY = 8 // types.h:316:1:
NFDBITS = 32 // fd_set.h:93:1:
NODEVMAJOR = -1 // types.h:258:1:
O_ACCMODE = 0x00000003 // fcntl.h:67:1:
O_ALT_IO = 0x00040000 // fcntl.h:111:1:
O_APPEND = 0x00000008 // fcntl.h:82:1:
O_ASYNC = 0x00000040 // fcntl.h:86:1:
O_CLOEXEC = 0x00400000 // fcntl.h:116:1:
O_CREAT = 0x00000200 // fcntl.h:97:1:
O_DIRECT = 0x00080000 // fcntl.h:112:1:
O_DIRECTORY = 0x00200000 // fcntl.h:115:1:
O_DSYNC = 0x00010000 // fcntl.h:106:1:
O_EXCL = 0x00000800 // fcntl.h:99:1:
O_EXLOCK = 0x00000020 // fcntl.h:85:1:
O_FSYNC = 128 // fcntl.h:158:1:
O_NDELAY = 4 // fcntl.h:160:1:
O_NOCTTY = 0x00008000 // fcntl.h:102:1:
O_NOFOLLOW = 0x00000100 // fcntl.h:94:1:
O_NONBLOCK = 0x00000004 // fcntl.h:81:1:
O_NOSIGPIPE = 0x01000000 // fcntl.h:122:1:
O_RDONLY = 0x00000000 // fcntl.h:64:1:
O_RDWR = 0x00000002 // fcntl.h:66:1:
O_REGULAR = 0x02000000 // fcntl.h:123:1:
O_RSYNC = 0x00020000 // fcntl.h:107:1:
O_SEARCH = 0x00800000 // fcntl.h:119:1:
O_SHLOCK = 0x00000010 // fcntl.h:84:1:
O_SYNC = 0x00000080 // fcntl.h:91:1:
O_TRUNC = 0x00000400 // fcntl.h:98:1:
O_WRONLY = 0x00000001 // fcntl.h:65:1:
PDP_ENDIAN = 3412 // endian.h:102:1:
POSIX_FADV_DONTNEED = 4 // fcntl.h:288:1:
POSIX_FADV_NOREUSE = 5 // fcntl.h:289:1:
POSIX_FADV_NORMAL = 0 // fcntl.h:284:1:
POSIX_FADV_RANDOM = 1 // fcntl.h:285:1:
POSIX_FADV_SEQUENTIAL = 2 // fcntl.h:286:1:
POSIX_FADV_WILLNEED = 3 // fcntl.h:287:1:
PTRDIFF_MAX = 9223372036854775807 // common_int_limits.h:121:1:
PTRDIFF_MIN = -9223372036854775808 // common_int_limits.h:120:1:
SEEK_CUR = 1 // fcntl.h:274:1:
SEEK_END = 2 // fcntl.h:277:1:
SEEK_SET = 0 // fcntl.h:271:1:
SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
SIZE_MAX = 18446744073709551615 // common_int_limits.h:128:1:
UINT16_MAX = 65535 // common_int_limits.h:59:1:
UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
UINT8_MAX = 255 // common_int_limits.h:58:1:
UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
UINTPTR_MAX = 18446744073709551615 // common_int_limits.h:106:1:
UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
WCHAR_MAX = 0x7fffffff // wchar_limits.h:41:1:
WCHAR_MIN = -2147483648 // wchar_limits.h:40:1:
WINT_MAX = 0x7fffffff // wchar_limits.h:45:1:
WINT_MIN = -2147483648 // wchar_limits.h:44:1:
X_AMD64_BYTE_SWAP_H_ = 0 // byte_swap.h:37:1:
X_AMD64_INT_CONST_H_ = 0 // int_const.h:33:1:
X_AMD64_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
X_AMD64_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
X_AMD64_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
X_BIG_ENDIAN = 4321 // endian.h:44:1:
X_BSD_INT16_T_ = 0 // types.h:65:1:
X_BSD_INT32_T_ = 0 // types.h:75:1:
X_BSD_INT64_T_ = 0 // types.h:85:1:
X_BSD_INT8_T_ = 0 // types.h:55:1:
X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
X_BSD_UINT16_T_ = 0 // types.h:70:1:
X_BSD_UINT32_T_ = 0 // types.h:80:1:
X_BSD_UINT64_T_ = 0 // types.h:90:1:
X_BSD_UINT8_T_ = 0 // types.h:60:1:
X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
X_BYTE_ORDER = 1234 // endian_machdep.h:3:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
X_LP64 = 1 // <predefined>:268:1:
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
X_PDP_ENDIAN = 3412 // endian.h:45:1:
X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
X_QUAD_HIGHWORD = 1 // endian.h:84:1:
X_QUAD_LOWWORD = 0 // endian.h:85:1:
X_SIZE_T = 0 // types.h:279:1:
X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
X_SYS_FCNTL_H_ = 0 // fcntl.h:40:1:
X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
X_SYS_TYPES_H_ = 0 // types.h:40:1:
X_X86_64_BSWAP_H_ = 0 // bswap.h:6:1:
X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
X_X86_64_TYPES_H_ = 0 // types.h:35:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_openbsd_amd64.go -pkgname fcntl', DO NOT EDIT.
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_openbsd_amd64.go -pkgname fcntl', DO NOT EDIT.
package fcntl
@ -15,100 +15,100 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
AT_EACCESS = 0x01
AT_FDCWD = -100
AT_REMOVEDIR = 0x08
AT_SYMLINK_FOLLOW = 0x04
AT_SYMLINK_NOFOLLOW = 0x02
BIG_ENDIAN = 4321
BYTE_ORDER = 1234
FAPPEND = 8
FASYNC = 64
FD_CLOEXEC = 1
FFSYNC = 128
FNDELAY = 4
FNONBLOCK = 4
FREAD = 0x0001
FWRITE = 0x0002
F_DUPFD = 0
F_DUPFD_CLOEXEC = 10
F_GETFD = 1
F_GETFL = 3
F_GETLK = 7
F_GETOWN = 5
F_ISATTY = 11
F_RDLCK = 1
F_SETFD = 2
F_SETFL = 4
F_SETLK = 8
F_SETLKW = 9
F_SETOWN = 6
F_UNLCK = 2
F_WRLCK = 3
LITTLE_ENDIAN = 1234
LOCK_EX = 0x02
LOCK_NB = 0x04
LOCK_SH = 0x01
LOCK_UN = 0x08
O_ACCMODE = 0x0003
O_APPEND = 0x0008
O_ASYNC = 0x0040
O_CLOEXEC = 0x10000
O_CREAT = 0x0200
O_DIRECTORY = 0x20000
O_DSYNC = 128
O_EXCL = 0x0800
O_EXLOCK = 0x0020
O_FSYNC = 0x0080
O_NDELAY = 4
O_NOCTTY = 0x8000
O_NOFOLLOW = 0x0100
O_NONBLOCK = 0x0004
O_RDONLY = 0x0000
O_RDWR = 0x0002
O_RSYNC = 128
O_SHLOCK = 0x0010
O_SYNC = 0x0080
O_TRUNC = 0x0400
O_WRONLY = 0x0001
PDP_ENDIAN = 3412
X_BIG_ENDIAN = 4321
X_BYTE_ORDER = 1234
X_CLOCKID_T_DEFINED_ = 0
X_CLOCK_T_DEFINED_ = 0
X_FILE_OFFSET_BITS = 64
X_INT16_T_DEFINED_ = 0
X_INT32_T_DEFINED_ = 0
X_INT64_T_DEFINED_ = 0
X_INT8_T_DEFINED_ = 0
X_LITTLE_ENDIAN = 1234
X_LP64 = 1
X_MACHINE_CDEFS_H_ = 0
X_MACHINE_ENDIAN_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_MAX_PAGE_SHIFT = 12
X_OFF_T_DEFINED_ = 0
X_PDP_ENDIAN = 3412
X_PID_T_DEFINED_ = 0
X_QUAD_HIGHWORD = 1
X_QUAD_LOWWORD = 0
X_RET_PROTECTOR = 1
X_SIZE_T_DEFINED_ = 0
X_SSIZE_T_DEFINED_ = 0
X_STACKALIGNBYTES = 15
X_SYS_CDEFS_H_ = 0
X_SYS_ENDIAN_H_ = 0
X_SYS_FCNTL_H_ = 0
X_SYS_TYPES_H_ = 0
X_SYS__ENDIAN_H_ = 0
X_SYS__TYPES_H_ = 0
X_TIMER_T_DEFINED_ = 0
X_TIME_T_DEFINED_ = 0
X_UINT16_T_DEFINED_ = 0
X_UINT32_T_DEFINED_ = 0
X_UINT64_T_DEFINED_ = 0
X_UINT8_T_DEFINED_ = 0
Unix = 1
AT_EACCESS = 0x01 // fcntl.h:200:1:
AT_FDCWD = -100 // fcntl.h:198:1:
AT_REMOVEDIR = 0x08 // fcntl.h:203:1:
AT_SYMLINK_FOLLOW = 0x04 // fcntl.h:202:1:
AT_SYMLINK_NOFOLLOW = 0x02 // fcntl.h:201:1:
BIG_ENDIAN = 4321 // endian.h:45:1:
BYTE_ORDER = 1234 // endian.h:47:1:
FAPPEND = 8 // fcntl.h:130:1:
FASYNC = 64 // fcntl.h:131:1:
FD_CLOEXEC = 1 // fcntl.h:163:1:
FFSYNC = 128 // fcntl.h:132:1:
FNDELAY = 4 // fcntl.h:134:1:
FNONBLOCK = 4 // fcntl.h:133:1:
FREAD = 0x0001 // fcntl.h:76:1:
FWRITE = 0x0002 // fcntl.h:77:1:
F_DUPFD = 0 // fcntl.h:143:1:
F_DUPFD_CLOEXEC = 10 // fcntl.h:156:1:
F_GETFD = 1 // fcntl.h:144:1:
F_GETFL = 3 // fcntl.h:146:1:
F_GETLK = 7 // fcntl.h:152:1:
F_GETOWN = 5 // fcntl.h:149:1:
F_ISATTY = 11 // fcntl.h:159:1:
F_RDLCK = 1 // fcntl.h:166:1:
F_SETFD = 2 // fcntl.h:145:1:
F_SETFL = 4 // fcntl.h:147:1:
F_SETLK = 8 // fcntl.h:153:1:
F_SETLKW = 9 // fcntl.h:154:1:
F_SETOWN = 6 // fcntl.h:150:1:
F_UNLCK = 2 // fcntl.h:167:1:
F_WRLCK = 3 // fcntl.h:168:1:
LITTLE_ENDIAN = 1234 // endian.h:44:1:
LOCK_EX = 0x02 // fcntl.h:192:1:
LOCK_NB = 0x04 // fcntl.h:193:1:
LOCK_SH = 0x01 // fcntl.h:191:1:
LOCK_UN = 0x08 // fcntl.h:194:1:
O_ACCMODE = 0x0003 // fcntl.h:65:1:
O_APPEND = 0x0008 // fcntl.h:80:1:
O_ASYNC = 0x0040 // fcntl.h:84:1:
O_CLOEXEC = 0x10000 // fcntl.h:107:1:
O_CREAT = 0x0200 // fcntl.h:91:1:
O_DIRECTORY = 0x20000 // fcntl.h:108:1:
O_DSYNC = 128 // fcntl.h:100:1:
O_EXCL = 0x0800 // fcntl.h:93:1:
O_EXLOCK = 0x0020 // fcntl.h:83:1:
O_FSYNC = 0x0080 // fcntl.h:85:1:
O_NDELAY = 4 // fcntl.h:135:1:
O_NOCTTY = 0x8000 // fcntl.h:104:1:
O_NOFOLLOW = 0x0100 // fcntl.h:86:1:
O_NONBLOCK = 0x0004 // fcntl.h:79:1:
O_RDONLY = 0x0000 // fcntl.h:62:1:
O_RDWR = 0x0002 // fcntl.h:64:1:
O_RSYNC = 128 // fcntl.h:101:1:
O_SHLOCK = 0x0010 // fcntl.h:82:1:
O_SYNC = 0x0080 // fcntl.h:89:1:
O_TRUNC = 0x0400 // fcntl.h:92:1:
O_WRONLY = 0x0001 // fcntl.h:63:1:
PDP_ENDIAN = 3412 // endian.h:46:1:
X_BIG_ENDIAN = 4321 // _endian.h:43:1:
X_BYTE_ORDER = 1234 // endian.h:58:1:
X_CLOCKID_T_DEFINED_ = 0 // types.h:163:1:
X_CLOCK_T_DEFINED_ = 0 // types.h:158:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_INT16_T_DEFINED_ = 0 // types.h:84:1:
X_INT32_T_DEFINED_ = 0 // types.h:94:1:
X_INT64_T_DEFINED_ = 0 // types.h:104:1:
X_INT8_T_DEFINED_ = 0 // types.h:74:1:
X_LITTLE_ENDIAN = 1234 // _endian.h:42:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
X_MACHINE_ENDIAN_H_ = 0 // endian.h:28:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:36:1:
X_MAX_PAGE_SHIFT = 12 // _types.h:52:1:
X_OFF_T_DEFINED_ = 0 // types.h:193:1:
X_PDP_ENDIAN = 3412 // _endian.h:44:1:
X_PID_T_DEFINED_ = 0 // types.h:168:1:
X_QUAD_HIGHWORD = 1 // _endian.h:95:1:
X_QUAD_LOWWORD = 0 // _endian.h:96:1:
X_RET_PROTECTOR = 1 // <predefined>:2:1:
X_SIZE_T_DEFINED_ = 0 // types.h:173:1:
X_SSIZE_T_DEFINED_ = 0 // types.h:178:1:
X_STACKALIGNBYTES = 15 // _types.h:49:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:38:1:
X_SYS_FCNTL_H_ = 0 // fcntl.h:41:1:
X_SYS_TYPES_H_ = 0 // types.h:41:1:
X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1:
X_SYS__TYPES_H_ = 0 // _types.h:35:1:
X_TIMER_T_DEFINED_ = 0 // types.h:188:1:
X_TIME_T_DEFINED_ = 0 // types.h:183:1:
X_UINT16_T_DEFINED_ = 0 // types.h:89:1:
X_UINT32_T_DEFINED_ = 0 // types.h:99:1:
X_UINT64_T_DEFINED_ = 0 // types.h:109:1:
X_UINT8_T_DEFINED_ = 0 // types.h:79:1:
Unix = 1 // <predefined>:340:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fts/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fts/fts_freebsd_386.go -pkgname fts', DO NOT EDIT.
// Code generated by 'ccgo fts/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_freebsd_386.go -pkgname fts', DO NOT EDIT.
package fts

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fts/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fts/fts_freebsd_amd64.go -pkgname fts', DO NOT EDIT.
// Code generated by 'ccgo fts/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_freebsd_amd64.go -pkgname fts', DO NOT EDIT.
package fts

5
vendor/modernc.org/libc/fts/capi_linux_ppc64le.go generated vendored Normal file
View File

@ -0,0 +1,5 @@
// Code generated by 'ccgo fts/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_linux_ppc64le.go -pkgname fts', DO NOT EDIT.
package fts
var CAPI = map[string]struct{}{}

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fts/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fts/fts_netbsd_amd64.go -pkgname fts', DO NOT EDIT.
// Code generated by 'ccgo fts/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_netbsd_amd64.go -pkgname fts', DO NOT EDIT.
package fts

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fts/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fts/fts_openbsd_amd64.go -pkgname fts', DO NOT EDIT.
// Code generated by 'ccgo fts/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_openbsd_amd64.go -pkgname fts', DO NOT EDIT.
package fts

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fts/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fts/fts_freebsd_386.go -pkgname fts', DO NOT EDIT.
// Code generated by 'ccgo fts/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_freebsd_386.go -pkgname fts', DO NOT EDIT.
package fts
@ -15,220 +15,220 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
ACCESSPERMS = 511
ALLPERMS = 4095
BIG_ENDIAN = 4321
BYTE_ORDER = 1234
CLK_TCK = 128
CLOCKS_PER_SEC = 128
CLOCK_BOOTTIME = 5
CLOCK_MONOTONIC = 4
CLOCK_MONOTONIC_COARSE = 12
CLOCK_MONOTONIC_FAST = 12
CLOCK_MONOTONIC_PRECISE = 11
CLOCK_PROCESS_CPUTIME_ID = 15
CLOCK_PROF = 2
CLOCK_REALTIME = 0
CLOCK_REALTIME_COARSE = 10
CLOCK_REALTIME_FAST = 10
CLOCK_REALTIME_PRECISE = 9
CLOCK_SECOND = 13
CLOCK_THREAD_CPUTIME_ID = 14
CLOCK_UPTIME = 5
CLOCK_UPTIME_FAST = 8
CLOCK_UPTIME_PRECISE = 7
CLOCK_VIRTUAL = 1
CPUCLOCK_WHICH_PID = 0
CPUCLOCK_WHICH_TID = 1
DEFFILEMODE = 438
DST_AUST = 2
DST_CAN = 6
DST_EET = 5
DST_MET = 4
DST_NONE = 0
DST_USA = 1
DST_WET = 3
FD_SETSIZE = 1024
FTS_AGAIN = 1
FTS_COMFOLLOW = 0x001
FTS_D = 1
FTS_DC = 2
FTS_DEFAULT = 3
FTS_DNR = 4
FTS_DONTCHDIR = 0x01
FTS_DOT = 5
FTS_DP = 6
FTS_ERR = 7
FTS_F = 8
FTS_FOLLOW = 2
FTS_INIT = 9
FTS_ISW = 0x04
FTS_LOGICAL = 0x002
FTS_NAMEONLY = 0x100
FTS_NOCHDIR = 0x004
FTS_NOINSTR = 3
FTS_NOSTAT = 0x008
FTS_NS = 10
FTS_NSOK = 11
FTS_OPTIONMASK = 0x0ff
FTS_PHYSICAL = 0x010
FTS_ROOTLEVEL = 0
FTS_ROOTPARENTLEVEL = -1
FTS_SEEDOT = 0x020
FTS_SKIP = 4
FTS_SL = 12
FTS_SLNONE = 13
FTS_STOP = 0x200
FTS_SYMFOLLOW = 0x02
FTS_W = 14
FTS_WHITEOUT = 0x080
FTS_XDEV = 0x040
ITIMER_PROF = 2
ITIMER_REAL = 0
ITIMER_VIRTUAL = 1
LITTLE_ENDIAN = 1234
PDP_ENDIAN = 3412
SBT_MAX = 0x7fffffffffffffff
SF_APPEND = 0x00040000
SF_ARCHIVED = 0x00010000
SF_IMMUTABLE = 0x00020000
SF_NOUNLINK = 0x00100000
SF_SETTABLE = 0xffff0000
SF_SNAPSHOT = 0x00200000
S_BLKSIZE = 512
S_IEXEC = 64
S_IFBLK = 0060000
S_IFCHR = 0020000
S_IFDIR = 0040000
S_IFIFO = 0010000
S_IFLNK = 0120000
S_IFMT = 0170000
S_IFREG = 0100000
S_IFSOCK = 0140000
S_IFWHT = 0160000
S_IREAD = 256
S_IRGRP = 0000040
S_IROTH = 0000004
S_IRUSR = 0000400
S_IRWXG = 0000070
S_IRWXO = 0000007
S_IRWXU = 0000700
S_ISGID = 0002000
S_ISTXT = 0001000
S_ISUID = 0004000
S_ISVTX = 0001000
S_IWGRP = 0000020
S_IWOTH = 0000002
S_IWRITE = 128
S_IWUSR = 0000200
S_IXGRP = 0000010
S_IXOTH = 0000001
S_IXUSR = 0000100
TIMER_ABSTIME = 0x1
TIMER_RELTIME = 0x0
TIME_UTC = 1
UF_APPEND = 0x00000004
UF_ARCHIVE = 0x00000800
UF_HIDDEN = 0x00008000
UF_IMMUTABLE = 0x00000002
UF_NODUMP = 0x00000001
UF_NOUNLINK = 0x00000010
UF_OFFLINE = 0x00000200
UF_OPAQUE = 0x00000008
UF_READONLY = 0x00001000
UF_REPARSE = 0x00000400
UF_SETTABLE = 0x0000ffff
UF_SPARSE = 0x00000100
UF_SYSTEM = 0x00000080
UTIME_NOW = -1
UTIME_OMIT = -2
X_ACCMODE_T_DECLARED = 0
X_BIG_ENDIAN = 4321
X_BLKCNT_T_DECLARED = 0
X_BLKSIZE_T_DECLARED = 0
X_BYTE_ORDER = 1234
X_CAP_IOCTL_T_DECLARED = 0
X_CAP_RIGHTS_T_DECLARED = 0
X_CLOCKID_T_DECLARED = 0
X_CLOCK_T_DECLARED = 0
X_DEV_T_DECLARED = 0
X_FFLAGS_T_DECLARED = 0
X_FILE_OFFSET_BITS = 64
X_FSBLKCNT_T_DECLARED = 0
X_FTRUNCATE_DECLARED = 0
X_FTS_H_ = 0
X_GID_T_DECLARED = 0
X_ID_T_DECLARED = 0
X_ILP32 = 1
X_INO_T_DECLARED = 0
X_INT16_T_DECLARED = 0
X_INT32_T_DECLARED = 0
X_INT64_T_DECLARED = 0
X_INT8_T_DECLARED = 0
X_INTMAX_T_DECLARED = 0
X_INTPTR_T_DECLARED = 0
X_IN_ADDR_T_DECLARED = 0
X_IN_PORT_T_DECLARED = 0
X_KEY_T_DECLARED = 0
X_LITTLE_ENDIAN = 1234
X_LOCALE_T_DEFINED = 0
X_LSEEK_DECLARED = 0
X_LWPID_T_DECLARED = 0
X_MACHINE_ENDIAN_H_ = 0
X_MACHINE__LIMITS_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_MKNOD_DECLARED = 0
X_MMAP_DECLARED = 0
X_MODE_T_DECLARED = 0
X_MQD_T_DECLARED = 0
X_NLINK_T_DECLARED = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_OFF64_T_DECLARED = 0
X_OFF_T_DECLARED = 0
X_PDP_ENDIAN = 3412
X_PID_T_DECLARED = 0
X_PTHREAD_T_DECLARED = 0
X_QUAD_HIGHWORD = 1
X_QUAD_LOWWORD = 0
X_RLIM_T_DECLARED = 0
X_SELECT_DECLARED = 0
X_SIGSET_T_DECLARED = 0
X_SIG_MAXSIG = 128
X_SIG_WORDS = 4
X_SIZE_T_DECLARED = 0
X_SSIZE_T_DECLARED = 0
X_SUSECONDS_T_DECLARED = 0
X_SYS_CDEFS_H_ = 0
X_SYS_SELECT_H_ = 0
X_SYS_STAT_H_ = 0
X_SYS_SYS__CLOCK_ID_H = 0
X_SYS_TIMESPEC_H_ = 0
X_SYS_TIME_H_ = 0
X_SYS_TYPES_H_ = 0
X_SYS__ENDIAN_H_ = 0
X_SYS__PTHREADTYPES_H_ = 0
X_SYS__SIGSET_H_ = 0
X_SYS__STDINT_H_ = 0
X_SYS__TIMESPEC_H_ = 0
X_SYS__TIMEVAL_H_ = 0
X_SYS__TYPES_H_ = 0
X_TIMER_T_DECLARED = 0
X_TIME_H_ = 0
X_TIME_T_DECLARED = 0
X_TRUNCATE_DECLARED = 0
X_UID_T_DECLARED = 0
X_UINT16_T_DECLARED = 0
X_UINT32_T_DECLARED = 0
X_UINT64_T_DECLARED = 0
X_UINT8_T_DECLARED = 0
X_UINTMAX_T_DECLARED = 0
X_UINTPTR_T_DECLARED = 0
X_USECONDS_T_DECLARED = 0
X_XLOCALE_LOCALE1_H = 0
I386 = 1
Unix = 1
ACCESSPERMS = 511 // stat.h:298:1:
ALLPERMS = 4095 // stat.h:300:1:
BIG_ENDIAN = 4321 // _endian.h:70:1:
BYTE_ORDER = 1234 // _endian.h:72:1:
CLK_TCK = 128 // time.h:56:1:
CLOCKS_PER_SEC = 128 // time.h:60:1:
CLOCK_BOOTTIME = 5 // _clock_id.h:92:1:
CLOCK_MONOTONIC = 4 // _clock_id.h:67:1:
CLOCK_MONOTONIC_COARSE = 12 // _clock_id.h:94:1:
CLOCK_MONOTONIC_FAST = 12 // _clock_id.h:79:1:
CLOCK_MONOTONIC_PRECISE = 11 // _clock_id.h:78:1:
CLOCK_PROCESS_CPUTIME_ID = 15 // _clock_id.h:85:1:
CLOCK_PROF = 2 // _clock_id.h:64:1:
CLOCK_REALTIME = 0 // _clock_id.h:60:1:
CLOCK_REALTIME_COARSE = 10 // _clock_id.h:93:1:
CLOCK_REALTIME_FAST = 10 // _clock_id.h:77:1:
CLOCK_REALTIME_PRECISE = 9 // _clock_id.h:76:1:
CLOCK_SECOND = 13 // _clock_id.h:80:1:
CLOCK_THREAD_CPUTIME_ID = 14 // _clock_id.h:84:1:
CLOCK_UPTIME = 5 // _clock_id.h:74:1:
CLOCK_UPTIME_FAST = 8 // _clock_id.h:68:1:
CLOCK_UPTIME_PRECISE = 7 // _clock_id.h:75:1:
CLOCK_VIRTUAL = 1 // _clock_id.h:63:1:
CPUCLOCK_WHICH_PID = 0 // time.h:476:1:
CPUCLOCK_WHICH_TID = 1 // time.h:477:1:
DEFFILEMODE = 438 // stat.h:302:1:
DST_AUST = 2 // time.h:49:1:
DST_CAN = 6 // time.h:53:1:
DST_EET = 5 // time.h:52:1:
DST_MET = 4 // time.h:51:1:
DST_NONE = 0 // time.h:47:1:
DST_USA = 1 // time.h:48:1:
DST_WET = 3 // time.h:50:1:
FD_SETSIZE = 1024 // select.h:61:1:
FTS_AGAIN = 1 // fts.h:111:1:
FTS_COMFOLLOW = 0x001 // fts.h:52:1:
FTS_D = 1 // fts.h:90:1:
FTS_DC = 2 // fts.h:91:1:
FTS_DEFAULT = 3 // fts.h:92:1:
FTS_DNR = 4 // fts.h:93:1:
FTS_DONTCHDIR = 0x01 // fts.h:106:1:
FTS_DOT = 5 // fts.h:94:1:
FTS_DP = 6 // fts.h:95:1:
FTS_ERR = 7 // fts.h:96:1:
FTS_F = 8 // fts.h:97:1:
FTS_FOLLOW = 2 // fts.h:112:1:
FTS_INIT = 9 // fts.h:98:1:
FTS_ISW = 0x04 // fts.h:108:1:
FTS_LOGICAL = 0x002 // fts.h:53:1:
FTS_NAMEONLY = 0x100 // fts.h:62:1:
FTS_NOCHDIR = 0x004 // fts.h:54:1:
FTS_NOINSTR = 3 // fts.h:113:1:
FTS_NOSTAT = 0x008 // fts.h:55:1:
FTS_NS = 10 // fts.h:99:1:
FTS_NSOK = 11 // fts.h:100:1:
FTS_OPTIONMASK = 0x0ff // fts.h:60:1:
FTS_PHYSICAL = 0x010 // fts.h:56:1:
FTS_ROOTLEVEL = 0 // fts.h:87:1:
FTS_ROOTPARENTLEVEL = -1 // fts.h:86:1:
FTS_SEEDOT = 0x020 // fts.h:57:1:
FTS_SKIP = 4 // fts.h:114:1:
FTS_SL = 12 // fts.h:101:1:
FTS_SLNONE = 13 // fts.h:102:1:
FTS_STOP = 0x200 // fts.h:63:1:
FTS_SYMFOLLOW = 0x02 // fts.h:107:1:
FTS_W = 14 // fts.h:103:1:
FTS_WHITEOUT = 0x080 // fts.h:59:1:
FTS_XDEV = 0x040 // fts.h:58:1:
ITIMER_PROF = 2 // time.h:457:1:
ITIMER_REAL = 0 // time.h:455:1:
ITIMER_VIRTUAL = 1 // time.h:456:1:
LITTLE_ENDIAN = 1234 // _endian.h:69:1:
PDP_ENDIAN = 3412 // _endian.h:71:1:
SBT_MAX = 0x7fffffffffffffff // time.h:135:1:
SF_APPEND = 0x00040000 // stat.h:341:1:
SF_ARCHIVED = 0x00010000 // stat.h:339:1:
SF_IMMUTABLE = 0x00020000 // stat.h:340:1:
SF_NOUNLINK = 0x00100000 // stat.h:342:1:
SF_SETTABLE = 0xffff0000 // stat.h:338:1:
SF_SNAPSHOT = 0x00200000 // stat.h:343:1:
S_BLKSIZE = 512 // stat.h:304:1:
S_IEXEC = 64 // stat.h:256:1:
S_IFBLK = 0060000 // stat.h:274:1:
S_IFCHR = 0020000 // stat.h:272:1:
S_IFDIR = 0040000 // stat.h:273:1:
S_IFIFO = 0010000 // stat.h:271:1:
S_IFLNK = 0120000 // stat.h:276:1:
S_IFMT = 0170000 // stat.h:270:1:
S_IFREG = 0100000 // stat.h:275:1:
S_IFSOCK = 0140000 // stat.h:277:1:
S_IFWHT = 0160000 // stat.h:281:1:
S_IREAD = 256 // stat.h:254:1:
S_IRGRP = 0000040 // stat.h:260:1:
S_IROTH = 0000004 // stat.h:265:1:
S_IRUSR = 0000400 // stat.h:249:1:
S_IRWXG = 0000070 // stat.h:259:1:
S_IRWXO = 0000007 // stat.h:264:1:
S_IRWXU = 0000700 // stat.h:248:1:
S_ISGID = 0002000 // stat.h:243:1:
S_ISTXT = 0001000 // stat.h:245:1:
S_ISUID = 0004000 // stat.h:242:1:
S_ISVTX = 0001000 // stat.h:278:1:
S_IWGRP = 0000020 // stat.h:261:1:
S_IWOTH = 0000002 // stat.h:266:1:
S_IWRITE = 128 // stat.h:255:1:
S_IWUSR = 0000200 // stat.h:250:1:
S_IXGRP = 0000010 // stat.h:262:1:
S_IXOTH = 0000001 // stat.h:267:1:
S_IXUSR = 0000100 // stat.h:251:1:
TIMER_ABSTIME = 0x1 // _clock_id.h:101:1:
TIMER_RELTIME = 0x0 // _clock_id.h:98:1:
TIME_UTC = 1 // time.h:188:1:
UF_APPEND = 0x00000004 // stat.h:314:1:
UF_ARCHIVE = 0x00000800 // stat.h:330:1:
UF_HIDDEN = 0x00008000 // stat.h:333:1:
UF_IMMUTABLE = 0x00000002 // stat.h:313:1:
UF_NODUMP = 0x00000001 // stat.h:312:1:
UF_NOUNLINK = 0x00000010 // stat.h:316:1:
UF_OFFLINE = 0x00000200 // stat.h:328:1:
UF_OPAQUE = 0x00000008 // stat.h:315:1:
UF_READONLY = 0x00001000 // stat.h:331:1:
UF_REPARSE = 0x00000400 // stat.h:329:1:
UF_SETTABLE = 0x0000ffff // stat.h:311:1:
UF_SPARSE = 0x00000100 // stat.h:327:1:
UF_SYSTEM = 0x00000080 // stat.h:326:1:
UTIME_NOW = -1 // stat.h:358:1:
UTIME_OMIT = -2 // stat.h:359:1:
X_ACCMODE_T_DECLARED = 0 // types.h:166:1:
X_BIG_ENDIAN = 4321 // _endian.h:47:1:
X_BLKCNT_T_DECLARED = 0 // types.h:90:1:
X_BLKSIZE_T_DECLARED = 0 // types.h:81:1:
X_BYTE_ORDER = 1234 // _endian.h:40:1:
X_CAP_IOCTL_T_DECLARED = 0 // types.h:243:1:
X_CAP_RIGHTS_T_DECLARED = 0 // types.h:248:1:
X_CLOCKID_T_DECLARED = 0 // types.h:100:1:
X_CLOCK_T_DECLARED = 0 // types.h:95:1:
X_DEV_T_DECLARED = 0 // types.h:108:1:
X_FFLAGS_T_DECLARED = 0 // types.h:113:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FSBLKCNT_T_DECLARED = 0 // types.h:121:1:
X_FTRUNCATE_DECLARED = 0 // types.h:417:1:
X_FTS_H_ = 0 // fts.h:36:1:
X_GID_T_DECLARED = 0 // types.h:126:1:
X_ID_T_DECLARED = 0 // types.h:141:1:
X_ILP32 = 1 // <predefined>:1:1:
X_INO_T_DECLARED = 0 // types.h:146:1:
X_INT16_T_DECLARED = 0 // _stdint.h:42:1:
X_INT32_T_DECLARED = 0 // _stdint.h:47:1:
X_INT64_T_DECLARED = 0 // _stdint.h:52:1:
X_INT8_T_DECLARED = 0 // _stdint.h:37:1:
X_INTMAX_T_DECLARED = 0 // _stdint.h:85:1:
X_INTPTR_T_DECLARED = 0 // _stdint.h:77:1:
X_IN_ADDR_T_DECLARED = 0 // types.h:131:1:
X_IN_PORT_T_DECLARED = 0 // types.h:136:1:
X_KEY_T_DECLARED = 0 // types.h:151:1:
X_LITTLE_ENDIAN = 1234 // _endian.h:46:1:
X_LOCALE_T_DEFINED = 0 // _time.h:35:1:
X_LSEEK_DECLARED = 0 // types.h:421:1:
X_LWPID_T_DECLARED = 0 // types.h:156:1:
X_MACHINE_ENDIAN_H_ = 0 // endian.h:36:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_MKNOD_DECLARED = 0 // stat.h:393:1:
X_MMAP_DECLARED = 0 // types.h:425:1:
X_MODE_T_DECLARED = 0 // types.h:161:1:
X_MQD_T_DECLARED = 0 // types.h:227:1:
X_NLINK_T_DECLARED = 0 // types.h:171:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_OFF64_T_DECLARED = 0 // types.h:181:1:
X_OFF_T_DECLARED = 0 // types.h:176:1:
X_PDP_ENDIAN = 3412 // _endian.h:48:1:
X_PID_T_DECLARED = 0 // types.h:186:1:
X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1:
X_QUAD_HIGHWORD = 1 // _endian.h:55:1:
X_QUAD_LOWWORD = 0 // _endian.h:56:1:
X_RLIM_T_DECLARED = 0 // types.h:193:1:
X_SELECT_DECLARED = 0 // select.h:103:1:
X_SIGSET_T_DECLARED = 0 // select.h:50:1:
X_SIG_MAXSIG = 128 // _sigset.h:47:1:
X_SIG_WORDS = 4 // _sigset.h:46:1:
X_SIZE_T_DECLARED = 0 // types.h:202:1:
X_SSIZE_T_DECLARED = 0 // types.h:207:1:
X_SUSECONDS_T_DECLARED = 0 // types.h:212:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_SELECT_H_ = 0 // select.h:35:1:
X_SYS_STAT_H_ = 0 // stat.h:41:1:
X_SYS_SYS__CLOCK_ID_H = 0 // _clock_id.h:40:1:
X_SYS_TIMESPEC_H_ = 0 // timespec.h:37:1:
X_SYS_TIME_H_ = 0 // time.h:36:1:
X_SYS_TYPES_H_ = 0 // types.h:41:1:
X_SYS__ENDIAN_H_ = 0 // _endian.h:33:1:
X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1:
X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1:
X_SYS__STDINT_H_ = 0 // _stdint.h:33:1:
X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1:
X_SYS__TIMEVAL_H_ = 0 // _timeval.h:32:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_TIMER_T_DECLARED = 0 // types.h:222:1:
X_TIME_H_ = 0 // time.h:44:1:
X_TIME_T_DECLARED = 0 // types.h:217:1:
X_TRUNCATE_DECLARED = 0 // types.h:429:1:
X_UID_T_DECLARED = 0 // types.h:234:1:
X_UINT16_T_DECLARED = 0 // _stdint.h:62:1:
X_UINT32_T_DECLARED = 0 // _stdint.h:67:1:
X_UINT64_T_DECLARED = 0 // _stdint.h:72:1:
X_UINT8_T_DECLARED = 0 // _stdint.h:57:1:
X_UINTMAX_T_DECLARED = 0 // _stdint.h:89:1:
X_UINTPTR_T_DECLARED = 0 // _stdint.h:81:1:
X_USECONDS_T_DECLARED = 0 // types.h:239:1:
X_XLOCALE_LOCALE1_H = 0 // _time.h:45:1:
I386 = 1 // <predefined>:335:1:
Unix = 1 // <predefined>:336:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fts/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fts/fts_freebsd_amd64.go -pkgname fts', DO NOT EDIT.
// Code generated by 'ccgo fts/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_freebsd_amd64.go -pkgname fts', DO NOT EDIT.
package fts
@ -15,214 +15,214 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
ACCESSPERMS = 511
ALLPERMS = 4095
BIG_ENDIAN = 4321
BYTE_ORDER = 1234
CLK_TCK = 128
CLOCKS_PER_SEC = 128
CLOCK_MONOTONIC = 4
CLOCK_MONOTONIC_FAST = 12
CLOCK_MONOTONIC_PRECISE = 11
CLOCK_PROCESS_CPUTIME_ID = 15
CLOCK_PROF = 2
CLOCK_REALTIME = 0
CLOCK_REALTIME_FAST = 10
CLOCK_REALTIME_PRECISE = 9
CLOCK_SECOND = 13
CLOCK_THREAD_CPUTIME_ID = 14
CLOCK_UPTIME = 5
CLOCK_UPTIME_FAST = 8
CLOCK_UPTIME_PRECISE = 7
CLOCK_VIRTUAL = 1
CPUCLOCK_WHICH_PID = 0
CPUCLOCK_WHICH_TID = 1
DEFFILEMODE = 438
DST_AUST = 2
DST_CAN = 6
DST_EET = 5
DST_MET = 4
DST_NONE = 0
DST_USA = 1
DST_WET = 3
FD_SETSIZE = 1024
FTS_AGAIN = 1
FTS_COMFOLLOW = 0x001
FTS_D = 1
FTS_DC = 2
FTS_DEFAULT = 3
FTS_DNR = 4
FTS_DONTCHDIR = 0x01
FTS_DOT = 5
FTS_DP = 6
FTS_ERR = 7
FTS_F = 8
FTS_FOLLOW = 2
FTS_INIT = 9
FTS_ISW = 0x04
FTS_LOGICAL = 0x002
FTS_NAMEONLY = 0x100
FTS_NOCHDIR = 0x004
FTS_NOINSTR = 3
FTS_NOSTAT = 0x008
FTS_NS = 10
FTS_NSOK = 11
FTS_OPTIONMASK = 0x0ff
FTS_PHYSICAL = 0x010
FTS_ROOTLEVEL = 0
FTS_ROOTPARENTLEVEL = -1
FTS_SEEDOT = 0x020
FTS_SKIP = 4
FTS_SL = 12
FTS_SLNONE = 13
FTS_STOP = 0x200
FTS_SYMFOLLOW = 0x02
FTS_W = 14
FTS_WHITEOUT = 0x080
FTS_XDEV = 0x040
ITIMER_PROF = 2
ITIMER_REAL = 0
ITIMER_VIRTUAL = 1
LITTLE_ENDIAN = 1234
PDP_ENDIAN = 3412
SBT_MAX = 0x7fffffffffffffff
SF_APPEND = 0x00040000
SF_ARCHIVED = 0x00010000
SF_IMMUTABLE = 0x00020000
SF_NOUNLINK = 0x00100000
SF_SETTABLE = 0xffff0000
SF_SNAPSHOT = 0x00200000
S_BLKSIZE = 512
S_IEXEC = 64
S_IFBLK = 0060000
S_IFCHR = 0020000
S_IFDIR = 0040000
S_IFIFO = 0010000
S_IFLNK = 0120000
S_IFMT = 0170000
S_IFREG = 0100000
S_IFSOCK = 0140000
S_IFWHT = 0160000
S_IREAD = 256
S_IRGRP = 0000040
S_IROTH = 0000004
S_IRUSR = 0000400
S_IRWXG = 0000070
S_IRWXO = 0000007
S_IRWXU = 0000700
S_ISGID = 0002000
S_ISTXT = 0001000
S_ISUID = 0004000
S_ISVTX = 0001000
S_IWGRP = 0000020
S_IWOTH = 0000002
S_IWRITE = 128
S_IWUSR = 0000200
S_IXGRP = 0000010
S_IXOTH = 0000001
S_IXUSR = 0000100
TIMER_ABSTIME = 0x1
TIMER_RELTIME = 0x0
TIME_UTC = 1
UF_APPEND = 0x00000004
UF_ARCHIVE = 0x00000800
UF_HIDDEN = 0x00008000
UF_IMMUTABLE = 0x00000002
UF_NODUMP = 0x00000001
UF_NOUNLINK = 0x00000010
UF_OFFLINE = 0x00000200
UF_OPAQUE = 0x00000008
UF_READONLY = 0x00001000
UF_REPARSE = 0x00000400
UF_SETTABLE = 0x0000ffff
UF_SPARSE = 0x00000100
UF_SYSTEM = 0x00000080
UTIME_NOW = -1
UTIME_OMIT = -2
X_ACCMODE_T_DECLARED = 0
X_BIG_ENDIAN = 4321
X_BLKCNT_T_DECLARED = 0
X_BLKSIZE_T_DECLARED = 0
X_BYTE_ORDER = 1234
X_CAP_IOCTL_T_DECLARED = 0
X_CAP_RIGHTS_T_DECLARED = 0
X_CLOCKID_T_DECLARED = 0
X_CLOCK_T_DECLARED = 0
X_DEV_T_DECLARED = 0
X_FFLAGS_T_DECLARED = 0
X_FILE_OFFSET_BITS = 64
X_FSBLKCNT_T_DECLARED = 0
X_FTRUNCATE_DECLARED = 0
X_FTS_H_ = 0
X_GID_T_DECLARED = 0
X_ID_T_DECLARED = 0
X_INO_T_DECLARED = 0
X_INT16_T_DECLARED = 0
X_INT32_T_DECLARED = 0
X_INT64_T_DECLARED = 0
X_INT8_T_DECLARED = 0
X_INTMAX_T_DECLARED = 0
X_INTPTR_T_DECLARED = 0
X_IN_ADDR_T_DECLARED = 0
X_IN_PORT_T_DECLARED = 0
X_KEY_T_DECLARED = 0
X_LITTLE_ENDIAN = 1234
X_LOCALE_T_DEFINED = 0
X_LP64 = 1
X_LSEEK_DECLARED = 0
X_LWPID_T_DECLARED = 0
X_MACHINE_ENDIAN_H_ = 0
X_MACHINE__LIMITS_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_MKNOD_DECLARED = 0
X_MMAP_DECLARED = 0
X_MODE_T_DECLARED = 0
X_MQD_T_DECLARED = 0
X_NLINK_T_DECLARED = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_OFF64_T_DECLARED = 0
X_OFF_T_DECLARED = 0
X_PDP_ENDIAN = 3412
X_PID_T_DECLARED = 0
X_PTHREAD_T_DECLARED = 0
X_QUAD_HIGHWORD = 1
X_QUAD_LOWWORD = 0
X_RLIM_T_DECLARED = 0
X_SELECT_DECLARED = 0
X_SIGSET_T_DECLARED = 0
X_SIG_MAXSIG = 128
X_SIG_WORDS = 4
X_SIZE_T_DECLARED = 0
X_SSIZE_T_DECLARED = 0
X_SUSECONDS_T_DECLARED = 0
X_SYS_CDEFS_H_ = 0
X_SYS_SELECT_H_ = 0
X_SYS_STAT_H_ = 0
X_SYS_TIMESPEC_H_ = 0
X_SYS_TIME_H_ = 0
X_SYS_TYPES_H_ = 0
X_SYS__PTHREADTYPES_H_ = 0
X_SYS__SIGSET_H_ = 0
X_SYS__STDINT_H_ = 0
X_SYS__TIMESPEC_H_ = 0
X_SYS__TIMEVAL_H_ = 0
X_SYS__TYPES_H_ = 0
X_TIMER_T_DECLARED = 0
X_TIME_H_ = 0
X_TIME_T_DECLARED = 0
X_TRUNCATE_DECLARED = 0
X_UID_T_DECLARED = 0
X_UINT16_T_DECLARED = 0
X_UINT32_T_DECLARED = 0
X_UINT64_T_DECLARED = 0
X_UINT8_T_DECLARED = 0
X_UINTMAX_T_DECLARED = 0
X_UINTPTR_T_DECLARED = 0
X_USECONDS_T_DECLARED = 0
X_XLOCALE_LOCALE1_H = 0
Unix = 1
ACCESSPERMS = 511 // stat.h:298:1:
ALLPERMS = 4095 // stat.h:300:1:
BIG_ENDIAN = 4321 // endian.h:63:1:
BYTE_ORDER = 1234 // endian.h:65:1:
CLK_TCK = 128 // time.h:55:1:
CLOCKS_PER_SEC = 128 // time.h:59:1:
CLOCK_MONOTONIC = 4 // time.h:472:1:
CLOCK_MONOTONIC_FAST = 12 // time.h:479:1:
CLOCK_MONOTONIC_PRECISE = 11 // time.h:478:1:
CLOCK_PROCESS_CPUTIME_ID = 15 // time.h:482:1:
CLOCK_PROF = 2 // time.h:469:1:
CLOCK_REALTIME = 0 // time.h:465:1:
CLOCK_REALTIME_FAST = 10 // time.h:477:1:
CLOCK_REALTIME_PRECISE = 9 // time.h:476:1:
CLOCK_SECOND = 13 // time.h:480:1:
CLOCK_THREAD_CPUTIME_ID = 14 // time.h:481:1:
CLOCK_UPTIME = 5 // time.h:473:1:
CLOCK_UPTIME_FAST = 8 // time.h:475:1:
CLOCK_UPTIME_PRECISE = 7 // time.h:474:1:
CLOCK_VIRTUAL = 1 // time.h:468:1:
CPUCLOCK_WHICH_PID = 0 // time.h:491:1:
CPUCLOCK_WHICH_TID = 1 // time.h:492:1:
DEFFILEMODE = 438 // stat.h:302:1:
DST_AUST = 2 // time.h:48:1:
DST_CAN = 6 // time.h:52:1:
DST_EET = 5 // time.h:51:1:
DST_MET = 4 // time.h:50:1:
DST_NONE = 0 // time.h:46:1:
DST_USA = 1 // time.h:47:1:
DST_WET = 3 // time.h:49:1:
FD_SETSIZE = 1024 // select.h:61:1:
FTS_AGAIN = 1 // fts.h:111:1:
FTS_COMFOLLOW = 0x001 // fts.h:52:1:
FTS_D = 1 // fts.h:90:1:
FTS_DC = 2 // fts.h:91:1:
FTS_DEFAULT = 3 // fts.h:92:1:
FTS_DNR = 4 // fts.h:93:1:
FTS_DONTCHDIR = 0x01 // fts.h:106:1:
FTS_DOT = 5 // fts.h:94:1:
FTS_DP = 6 // fts.h:95:1:
FTS_ERR = 7 // fts.h:96:1:
FTS_F = 8 // fts.h:97:1:
FTS_FOLLOW = 2 // fts.h:112:1:
FTS_INIT = 9 // fts.h:98:1:
FTS_ISW = 0x04 // fts.h:108:1:
FTS_LOGICAL = 0x002 // fts.h:53:1:
FTS_NAMEONLY = 0x100 // fts.h:62:1:
FTS_NOCHDIR = 0x004 // fts.h:54:1:
FTS_NOINSTR = 3 // fts.h:113:1:
FTS_NOSTAT = 0x008 // fts.h:55:1:
FTS_NS = 10 // fts.h:99:1:
FTS_NSOK = 11 // fts.h:100:1:
FTS_OPTIONMASK = 0x0ff // fts.h:60:1:
FTS_PHYSICAL = 0x010 // fts.h:56:1:
FTS_ROOTLEVEL = 0 // fts.h:87:1:
FTS_ROOTPARENTLEVEL = -1 // fts.h:86:1:
FTS_SEEDOT = 0x020 // fts.h:57:1:
FTS_SKIP = 4 // fts.h:114:1:
FTS_SL = 12 // fts.h:101:1:
FTS_SLNONE = 13 // fts.h:102:1:
FTS_STOP = 0x200 // fts.h:63:1:
FTS_SYMFOLLOW = 0x02 // fts.h:107:1:
FTS_W = 14 // fts.h:103:1:
FTS_WHITEOUT = 0x080 // fts.h:59:1:
FTS_XDEV = 0x040 // fts.h:58:1:
ITIMER_PROF = 2 // time.h:445:1:
ITIMER_REAL = 0 // time.h:443:1:
ITIMER_VIRTUAL = 1 // time.h:444:1:
LITTLE_ENDIAN = 1234 // endian.h:62:1:
PDP_ENDIAN = 3412 // endian.h:64:1:
SBT_MAX = 0x7fffffffffffffff // time.h:134:1:
SF_APPEND = 0x00040000 // stat.h:341:1:
SF_ARCHIVED = 0x00010000 // stat.h:339:1:
SF_IMMUTABLE = 0x00020000 // stat.h:340:1:
SF_NOUNLINK = 0x00100000 // stat.h:342:1:
SF_SETTABLE = 0xffff0000 // stat.h:338:1:
SF_SNAPSHOT = 0x00200000 // stat.h:343:1:
S_BLKSIZE = 512 // stat.h:304:1:
S_IEXEC = 64 // stat.h:256:1:
S_IFBLK = 0060000 // stat.h:274:1:
S_IFCHR = 0020000 // stat.h:272:1:
S_IFDIR = 0040000 // stat.h:273:1:
S_IFIFO = 0010000 // stat.h:271:1:
S_IFLNK = 0120000 // stat.h:276:1:
S_IFMT = 0170000 // stat.h:270:1:
S_IFREG = 0100000 // stat.h:275:1:
S_IFSOCK = 0140000 // stat.h:277:1:
S_IFWHT = 0160000 // stat.h:281:1:
S_IREAD = 256 // stat.h:254:1:
S_IRGRP = 0000040 // stat.h:260:1:
S_IROTH = 0000004 // stat.h:265:1:
S_IRUSR = 0000400 // stat.h:249:1:
S_IRWXG = 0000070 // stat.h:259:1:
S_IRWXO = 0000007 // stat.h:264:1:
S_IRWXU = 0000700 // stat.h:248:1:
S_ISGID = 0002000 // stat.h:243:1:
S_ISTXT = 0001000 // stat.h:245:1:
S_ISUID = 0004000 // stat.h:242:1:
S_ISVTX = 0001000 // stat.h:278:1:
S_IWGRP = 0000020 // stat.h:261:1:
S_IWOTH = 0000002 // stat.h:266:1:
S_IWRITE = 128 // stat.h:255:1:
S_IWUSR = 0000200 // stat.h:250:1:
S_IXGRP = 0000010 // stat.h:262:1:
S_IXOTH = 0000001 // stat.h:267:1:
S_IXUSR = 0000100 // stat.h:251:1:
TIMER_ABSTIME = 0x1 // time.h:487:1:
TIMER_RELTIME = 0x0 // time.h:123:1:
TIME_UTC = 1 // time.h:216:1:
UF_APPEND = 0x00000004 // stat.h:314:1:
UF_ARCHIVE = 0x00000800 // stat.h:330:1:
UF_HIDDEN = 0x00008000 // stat.h:333:1:
UF_IMMUTABLE = 0x00000002 // stat.h:313:1:
UF_NODUMP = 0x00000001 // stat.h:312:1:
UF_NOUNLINK = 0x00000010 // stat.h:316:1:
UF_OFFLINE = 0x00000200 // stat.h:328:1:
UF_OPAQUE = 0x00000008 // stat.h:315:1:
UF_READONLY = 0x00001000 // stat.h:331:1:
UF_REPARSE = 0x00000400 // stat.h:329:1:
UF_SETTABLE = 0x0000ffff // stat.h:311:1:
UF_SPARSE = 0x00000100 // stat.h:327:1:
UF_SYSTEM = 0x00000080 // stat.h:326:1:
UTIME_NOW = -1 // stat.h:358:1:
UTIME_OMIT = -2 // stat.h:359:1:
X_ACCMODE_T_DECLARED = 0 // types.h:166:1:
X_BIG_ENDIAN = 4321 // endian.h:52:1:
X_BLKCNT_T_DECLARED = 0 // types.h:90:1:
X_BLKSIZE_T_DECLARED = 0 // types.h:81:1:
X_BYTE_ORDER = 1234 // endian.h:55:1:
X_CAP_IOCTL_T_DECLARED = 0 // types.h:243:1:
X_CAP_RIGHTS_T_DECLARED = 0 // types.h:248:1:
X_CLOCKID_T_DECLARED = 0 // types.h:100:1:
X_CLOCK_T_DECLARED = 0 // types.h:95:1:
X_DEV_T_DECLARED = 0 // types.h:108:1:
X_FFLAGS_T_DECLARED = 0 // types.h:113:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FSBLKCNT_T_DECLARED = 0 // types.h:121:1:
X_FTRUNCATE_DECLARED = 0 // types.h:417:1:
X_FTS_H_ = 0 // fts.h:36:1:
X_GID_T_DECLARED = 0 // types.h:126:1:
X_ID_T_DECLARED = 0 // types.h:141:1:
X_INO_T_DECLARED = 0 // types.h:146:1:
X_INT16_T_DECLARED = 0 // _stdint.h:42:1:
X_INT32_T_DECLARED = 0 // _stdint.h:47:1:
X_INT64_T_DECLARED = 0 // _stdint.h:52:1:
X_INT8_T_DECLARED = 0 // _stdint.h:37:1:
X_INTMAX_T_DECLARED = 0 // _stdint.h:85:1:
X_INTPTR_T_DECLARED = 0 // _stdint.h:77:1:
X_IN_ADDR_T_DECLARED = 0 // types.h:131:1:
X_IN_PORT_T_DECLARED = 0 // types.h:136:1:
X_KEY_T_DECLARED = 0 // types.h:151:1:
X_LITTLE_ENDIAN = 1234 // endian.h:51:1:
X_LOCALE_T_DEFINED = 0 // _time.h:35:1:
X_LP64 = 1 // <predefined>:1:1:
X_LSEEK_DECLARED = 0 // types.h:421:1:
X_LWPID_T_DECLARED = 0 // types.h:156:1:
X_MACHINE_ENDIAN_H_ = 0 // endian.h:36:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_MKNOD_DECLARED = 0 // stat.h:393:1:
X_MMAP_DECLARED = 0 // types.h:425:1:
X_MODE_T_DECLARED = 0 // types.h:161:1:
X_MQD_T_DECLARED = 0 // types.h:227:1:
X_NLINK_T_DECLARED = 0 // types.h:171:1:
X_Nonnull = 0 // cdefs.h:783:1:
X_Null_unspecified = 0 // cdefs.h:785:1:
X_Nullable = 0 // cdefs.h:784:1:
X_OFF64_T_DECLARED = 0 // types.h:181:1:
X_OFF_T_DECLARED = 0 // types.h:176:1:
X_PDP_ENDIAN = 3412 // endian.h:53:1:
X_PID_T_DECLARED = 0 // types.h:186:1:
X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1:
X_QUAD_HIGHWORD = 1 // endian.h:44:1:
X_QUAD_LOWWORD = 0 // endian.h:45:1:
X_RLIM_T_DECLARED = 0 // types.h:193:1:
X_SELECT_DECLARED = 0 // select.h:103:1:
X_SIGSET_T_DECLARED = 0 // select.h:50:1:
X_SIG_MAXSIG = 128 // _sigset.h:47:1:
X_SIG_WORDS = 4 // _sigset.h:46:1:
X_SIZE_T_DECLARED = 0 // types.h:202:1:
X_SSIZE_T_DECLARED = 0 // types.h:207:1:
X_SUSECONDS_T_DECLARED = 0 // types.h:212:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_SELECT_H_ = 0 // select.h:35:1:
X_SYS_STAT_H_ = 0 // stat.h:41:1:
X_SYS_TIMESPEC_H_ = 0 // timespec.h:37:1:
X_SYS_TIME_H_ = 0 // time.h:36:1:
X_SYS_TYPES_H_ = 0 // types.h:41:1:
X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1:
X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1:
X_SYS__STDINT_H_ = 0 // _stdint.h:33:1:
X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1:
X_SYS__TIMEVAL_H_ = 0 // _timeval.h:32:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_TIMER_T_DECLARED = 0 // types.h:222:1:
X_TIME_H_ = 0 // time.h:44:1:
X_TIME_T_DECLARED = 0 // types.h:217:1:
X_TRUNCATE_DECLARED = 0 // types.h:429:1:
X_UID_T_DECLARED = 0 // types.h:234:1:
X_UINT16_T_DECLARED = 0 // _stdint.h:62:1:
X_UINT32_T_DECLARED = 0 // _stdint.h:67:1:
X_UINT64_T_DECLARED = 0 // _stdint.h:72:1:
X_UINT8_T_DECLARED = 0 // _stdint.h:57:1:
X_UINTMAX_T_DECLARED = 0 // _stdint.h:89:1:
X_UINTPTR_T_DECLARED = 0 // _stdint.h:81:1:
X_USECONDS_T_DECLARED = 0 // types.h:239:1:
X_XLOCALE_LOCALE1_H = 0 // _time.h:45:1:
Unix = 1 // <predefined>:337:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

1911
vendor/modernc.org/libc/fts/fts_linux_ppc64le.go generated vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fts/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fts/fts_netbsd_amd64.go -pkgname fts', DO NOT EDIT.
// Code generated by 'ccgo fts/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_netbsd_amd64.go -pkgname fts', DO NOT EDIT.
package fts
@ -15,243 +15,243 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
ACCESSPERMS = 511
ALLPERMS = 4095
BIG_ENDIAN = 4321
BYTE_ORDER = 1234
CLOCKS_PER_SEC = 100
CLOCK_MONOTONIC = 3
CLOCK_PROCESS_CPUTIME_ID = 0x40000000
CLOCK_PROF = 2
CLOCK_REALTIME = 0
CLOCK_THREAD_CPUTIME_ID = 0x20000000
CLOCK_VIRTUAL = 1
DEFFILEMODE = 438
FD_SETSIZE = 256
FTS_AGAIN = 1
FTS_COMFOLLOW = 0x001
FTS_D = 1
FTS_DC = 2
FTS_DEFAULT = 3
FTS_DNR = 4
FTS_DONTCHDIR = 0x01
FTS_DOT = 5
FTS_DP = 6
FTS_ERR = 7
FTS_F = 8
FTS_FOLLOW = 2
FTS_INIT = 9
FTS_ISW = 0x04
FTS_LOGICAL = 0x002
FTS_NAMEONLY = 0x100
FTS_NOCHDIR = 0x004
FTS_NOINSTR = 3
FTS_NOSTAT = 0x008
FTS_NS = 10
FTS_NSOK = 11
FTS_OPTIONMASK = 0x0ff
FTS_PHYSICAL = 0x010
FTS_ROOTLEVEL = 0
FTS_ROOTPARENTLEVEL = -1
FTS_SEEDOT = 0x020
FTS_SKIP = 4
FTS_SL = 12
FTS_SLNONE = 13
FTS_STOP = 0x200
FTS_SYMFOLLOW = 0x02
FTS_W = 14
FTS_WHITEOUT = 0x080
FTS_XDEV = 0x040
INT16_MAX = 32767
INT16_MIN = -32768
INT32_MAX = 2147483647
INT32_MIN = -2147483648
INT64_MAX = 9223372036854775807
INT64_MIN = -9223372036854775808
INT8_MAX = 127
INT8_MIN = -128
INTMAX_MAX = 9223372036854775807
INTMAX_MIN = -9223372036854775808
INTPTR_MAX = 9223372036854775807
INTPTR_MIN = -9223372036854775808
INT_FAST16_MAX = 2147483647
INT_FAST16_MIN = -2147483648
INT_FAST32_MAX = 2147483647
INT_FAST32_MIN = -2147483648
INT_FAST64_MAX = 9223372036854775807
INT_FAST64_MIN = -9223372036854775808
INT_FAST8_MAX = 2147483647
INT_FAST8_MIN = -2147483648
INT_LEAST16_MAX = 32767
INT_LEAST16_MIN = -32768
INT_LEAST32_MAX = 2147483647
INT_LEAST32_MIN = -2147483648
INT_LEAST64_MAX = 9223372036854775807
INT_LEAST64_MIN = -9223372036854775808
INT_LEAST8_MAX = 127
INT_LEAST8_MIN = -128
ITIMER_MONOTONIC = 3
ITIMER_PROF = 2
ITIMER_REAL = 0
ITIMER_VIRTUAL = 1
LITTLE_ENDIAN = 1234
NBBY = 8
NFDBITS = 32
NODEVMAJOR = -1
PDP_ENDIAN = 3412
PTRDIFF_MAX = 9223372036854775807
PTRDIFF_MIN = -9223372036854775808
SF_APPEND = 0x00040000
SF_ARCHIVED = 0x00010000
SF_IMMUTABLE = 0x00020000
SF_LOG = 0x00400000
SF_SETTABLE = 0xffff0000
SF_SNAPINVAL = 0x00800000
SF_SNAPSHOT = 0x00200000
SIG_ATOMIC_MAX = 2147483647
SIG_ATOMIC_MIN = -2147483648
SIZE_MAX = 18446744073709551615
S_ARCH1 = 65536
S_ARCH2 = 131072
S_BLKSIZE = 512
S_IEXEC = 64
S_IFBLK = 24576
S_IFCHR = 8192
S_IFDIR = 16384
S_IFIFO = 4096
S_IFLNK = 40960
S_IFMT = 61440
S_IFREG = 32768
S_IFSOCK = 49152
S_IFWHT = 57344
S_IREAD = 256
S_IRGRP = 0000040
S_IROTH = 0000004
S_IRUSR = 0000400
S_IRWXG = 0000070
S_IRWXO = 0000007
S_IRWXU = 0000700
S_ISGID = 0002000
S_ISTXT = 0001000
S_ISUID = 0004000
S_ISVTX = 512
S_IWGRP = 0000020
S_IWOTH = 0000002
S_IWRITE = 128
S_IWUSR = 0000200
S_IXGRP = 0000010
S_IXOTH = 0000001
S_IXUSR = 0000100
TIMER_ABSTIME = 0x1
TIMER_RELTIME = 0x0
TIME_UTC = 1
UF_APPEND = 0x00000004
UF_IMMUTABLE = 0x00000002
UF_NODUMP = 0x00000001
UF_OPAQUE = 0x00000008
UF_SETTABLE = 0x0000ffff
UINT16_MAX = 65535
UINT32_MAX = 4294967295
UINT64_MAX = 18446744073709551615
UINT8_MAX = 255
UINTMAX_MAX = 18446744073709551615
UINTPTR_MAX = 18446744073709551615
UINT_FAST16_MAX = 4294967295
UINT_FAST32_MAX = 4294967295
UINT_FAST64_MAX = 18446744073709551615
UINT_FAST8_MAX = 4294967295
UINT_LEAST16_MAX = 65535
UINT_LEAST32_MAX = 4294967295
UINT_LEAST64_MAX = 18446744073709551615
UINT_LEAST8_MAX = 255
UTIME_NOW = 1073741823
UTIME_OMIT = 1073741822
WCHAR_MAX = 0x7fffffff
WCHAR_MIN = -2147483648
WINT_MAX = 0x7fffffff
WINT_MIN = -2147483648
X_AMD64_BYTE_SWAP_H_ = 0
X_AMD64_INT_CONST_H_ = 0
X_AMD64_INT_LIMITS_H_ = 0
X_AMD64_INT_MWGWTYPES_H_ = 0
X_AMD64_INT_TYPES_H_ = 0
X_AMD64_WCHAR_LIMITS_H_ = 0
X_BIG_ENDIAN = 4321
X_BSD_INT16_T_ = 0
X_BSD_INT32_T_ = 0
X_BSD_INT64_T_ = 0
X_BSD_INT8_T_ = 0
X_BSD_INTPTR_T_ = 0
X_BSD_UINT16_T_ = 0
X_BSD_UINT32_T_ = 0
X_BSD_UINT64_T_ = 0
X_BSD_UINT8_T_ = 0
X_BSD_UINTPTR_T_ = 0
X_BYTE_ORDER = 1234
X_FILE_OFFSET_BITS = 64
X_FTS_H_ = 0
X_LIB_PTHREAD_TYPES_H = 0
X_LITTLE_ENDIAN = 1234
X_LP64 = 1
X_NETBSD_SOURCE = 1
X_PDP_ENDIAN = 3412
X_PT_BARRIERATTR_DEAD = 0xDEAD0808
X_PT_BARRIERATTR_MAGIC = 0x88880808
X_PT_BARRIER_DEAD = 0xDEAD0008
X_PT_BARRIER_MAGIC = 0x88880008
X_PT_CONDATTR_DEAD = 0xDEAD0006
X_PT_CONDATTR_MAGIC = 0x66660006
X_PT_COND_DEAD = 0xDEAD0005
X_PT_COND_MAGIC = 0x55550005
X_PT_MUTEXATTR_DEAD = 0xDEAD0004
X_PT_MUTEXATTR_MAGIC = 0x44440004
X_PT_MUTEX_DEAD = 0xDEAD0003
X_PT_MUTEX_MAGIC = 0x33330003
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909
X_PT_RWLOCKATTR_MAGIC = 0x99990909
X_PT_RWLOCK_DEAD = 0xDEAD0009
X_PT_RWLOCK_MAGIC = 0x99990009
X_PT_SPINLOCK_DEAD = 0xDEAD0007
X_PT_SPINLOCK_MAGIC = 0x77770007
X_PT_SPINLOCK_PSHARED = 0x00000001
X_QUAD_HIGHWORD = 1
X_QUAD_LOWWORD = 0
X_SIZE_T = 0
X_SYS_ANSI_H_ = 0
X_SYS_BSWAP_H_ = 0
X_SYS_CDEFS_ELF_H_ = 0
X_SYS_CDEFS_H_ = 0
X_SYS_COMMON_ANSI_H_ = 0
X_SYS_COMMON_INT_LIMITS_H_ = 0
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0
X_SYS_COMMON_INT_TYPES_H_ = 0
X_SYS_ENDIAN_H_ = 0
X_SYS_FD_SET_H_ = 0
X_SYS_IDTYPE_H_ = 0
X_SYS_NULL_H_ = 0
X_SYS_SELECT_H_ = 0
X_SYS_SIGTYPES_H_ = 0
X_SYS_STAT_H_ = 0
X_SYS_STDINT_H_ = 0
X_SYS_TIMESPEC_H_ = 0
X_SYS_TIME_H_ = 0
X_SYS_TYPES_H_ = 0
X_S_ARCH1 = 0200000
X_S_ARCH2 = 0400000
X_S_IFBLK = 0060000
X_S_IFCHR = 0020000
X_S_IFDIR = 0040000
X_S_IFIFO = 0010000
X_S_IFLNK = 0120000
X_S_IFMT = 0170000
X_S_IFREG = 0100000
X_S_IFSOCK = 0140000
X_S_IFWHT = 0160000
X_S_ISVTX = 0001000
X_TIME_H_ = 0
X_X86_64_BSWAP_H_ = 0
X_X86_64_CDEFS_H_ = 0
X_X86_64_TYPES_H_ = 0
ACCESSPERMS = 511 // stat.h:189:1:
ALLPERMS = 4095 // stat.h:191:1:
BIG_ENDIAN = 4321 // endian.h:101:1:
BYTE_ORDER = 1234 // endian.h:103:1:
CLOCKS_PER_SEC = 100 // time.h:73:1:
CLOCK_MONOTONIC = 3 // time.h:297:1:
CLOCK_PROCESS_CPUTIME_ID = 0x40000000 // time.h:299:1:
CLOCK_PROF = 2 // time.h:296:1:
CLOCK_REALTIME = 0 // time.h:294:1:
CLOCK_THREAD_CPUTIME_ID = 0x20000000 // time.h:298:1:
CLOCK_VIRTUAL = 1 // time.h:295:1:
DEFFILEMODE = 438 // stat.h:193:1:
FD_SETSIZE = 256 // fd_set.h:59:1:
FTS_AGAIN = 1 // fts.h:128:1:
FTS_COMFOLLOW = 0x001 // fts.h:71:1:
FTS_D = 1 // fts.h:107:1:
FTS_DC = 2 // fts.h:108:1:
FTS_DEFAULT = 3 // fts.h:109:1:
FTS_DNR = 4 // fts.h:110:1:
FTS_DONTCHDIR = 0x01 // fts.h:123:1:
FTS_DOT = 5 // fts.h:111:1:
FTS_DP = 6 // fts.h:112:1:
FTS_ERR = 7 // fts.h:113:1:
FTS_F = 8 // fts.h:114:1:
FTS_FOLLOW = 2 // fts.h:129:1:
FTS_INIT = 9 // fts.h:115:1:
FTS_ISW = 0x04 // fts.h:125:1:
FTS_LOGICAL = 0x002 // fts.h:72:1:
FTS_NAMEONLY = 0x100 // fts.h:81:1:
FTS_NOCHDIR = 0x004 // fts.h:73:1:
FTS_NOINSTR = 3 // fts.h:130:1:
FTS_NOSTAT = 0x008 // fts.h:74:1:
FTS_NS = 10 // fts.h:116:1:
FTS_NSOK = 11 // fts.h:117:1:
FTS_OPTIONMASK = 0x0ff // fts.h:79:1:
FTS_PHYSICAL = 0x010 // fts.h:75:1:
FTS_ROOTLEVEL = 0 // fts.h:104:1:
FTS_ROOTPARENTLEVEL = -1 // fts.h:103:1:
FTS_SEEDOT = 0x020 // fts.h:76:1:
FTS_SKIP = 4 // fts.h:131:1:
FTS_SL = 12 // fts.h:118:1:
FTS_SLNONE = 13 // fts.h:119:1:
FTS_STOP = 0x200 // fts.h:82:1:
FTS_SYMFOLLOW = 0x02 // fts.h:124:1:
FTS_W = 14 // fts.h:120:1:
FTS_WHITEOUT = 0x080 // fts.h:78:1:
FTS_XDEV = 0x040 // fts.h:77:1:
INT16_MAX = 32767 // common_int_limits.h:53:1:
INT16_MIN = -32768 // common_int_limits.h:47:1:
INT32_MAX = 2147483647 // common_int_limits.h:54:1:
INT32_MIN = -2147483648 // common_int_limits.h:48:1:
INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
INT8_MAX = 127 // common_int_limits.h:52:1:
INT8_MIN = -128 // common_int_limits.h:46:1:
INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
INTPTR_MAX = 9223372036854775807 // common_int_limits.h:105:1:
INTPTR_MIN = -9223372036854775808 // common_int_limits.h:104:1:
INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
ITIMER_MONOTONIC = 3 // time.h:278:1:
ITIMER_PROF = 2 // time.h:277:1:
ITIMER_REAL = 0 // time.h:275:1:
ITIMER_VIRTUAL = 1 // time.h:276:1:
LITTLE_ENDIAN = 1234 // endian.h:100:1:
NBBY = 8 // types.h:316:1:
NFDBITS = 32 // fd_set.h:93:1:
NODEVMAJOR = -1 // types.h:258:1:
PDP_ENDIAN = 3412 // endian.h:102:1:
PTRDIFF_MAX = 9223372036854775807 // common_int_limits.h:121:1:
PTRDIFF_MIN = -9223372036854775808 // common_int_limits.h:120:1:
SF_APPEND = 0x00040000 // stat.h:214:1:
SF_ARCHIVED = 0x00010000 // stat.h:212:1:
SF_IMMUTABLE = 0x00020000 // stat.h:213:1:
SF_LOG = 0x00400000 // stat.h:217:1:
SF_SETTABLE = 0xffff0000 // stat.h:211:1:
SF_SNAPINVAL = 0x00800000 // stat.h:218:1:
SF_SNAPSHOT = 0x00200000 // stat.h:216:1:
SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
SIZE_MAX = 18446744073709551615 // common_int_limits.h:128:1:
S_ARCH1 = 65536 // stat.h:167:1:
S_ARCH2 = 131072 // stat.h:168:1:
S_BLKSIZE = 512 // stat.h:195:1:
S_IEXEC = 64 // stat.h:125:1:
S_IFBLK = 24576 // stat.h:156:1:
S_IFCHR = 8192 // stat.h:154:1:
S_IFDIR = 16384 // stat.h:155:1:
S_IFIFO = 4096 // stat.h:153:1:
S_IFLNK = 40960 // stat.h:158:1:
S_IFMT = 61440 // stat.h:152:1:
S_IFREG = 32768 // stat.h:157:1:
S_IFSOCK = 49152 // stat.h:162:1:
S_IFWHT = 57344 // stat.h:165:1:
S_IREAD = 256 // stat.h:123:1:
S_IRGRP = 0000040 // stat.h:129:1:
S_IROTH = 0000004 // stat.h:134:1:
S_IRUSR = 0000400 // stat.h:118:1:
S_IRWXG = 0000070 // stat.h:128:1:
S_IRWXO = 0000007 // stat.h:133:1:
S_IRWXU = 0000700 // stat.h:117:1:
S_ISGID = 0002000 // stat.h:112:1:
S_ISTXT = 0001000 // stat.h:114:1:
S_ISUID = 0004000 // stat.h:111:1:
S_ISVTX = 512 // stat.h:159:1:
S_IWGRP = 0000020 // stat.h:130:1:
S_IWOTH = 0000002 // stat.h:135:1:
S_IWRITE = 128 // stat.h:124:1:
S_IWUSR = 0000200 // stat.h:119:1:
S_IXGRP = 0000010 // stat.h:131:1:
S_IXOTH = 0000001 // stat.h:136:1:
S_IXUSR = 0000100 // stat.h:120:1:
TIMER_ABSTIME = 0x1 // time.h:304:1:
TIMER_RELTIME = 0x0 // time.h:302:1:
TIME_UTC = 1 // time.h:238:1:
UF_APPEND = 0x00000004 // stat.h:205:1:
UF_IMMUTABLE = 0x00000002 // stat.h:204:1:
UF_NODUMP = 0x00000001 // stat.h:203:1:
UF_OPAQUE = 0x00000008 // stat.h:206:1:
UF_SETTABLE = 0x0000ffff // stat.h:202:1:
UINT16_MAX = 65535 // common_int_limits.h:59:1:
UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
UINT8_MAX = 255 // common_int_limits.h:58:1:
UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
UINTPTR_MAX = 18446744073709551615 // common_int_limits.h:106:1:
UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
UTIME_NOW = 1073741823 // stat.h:235:1:
UTIME_OMIT = 1073741822 // stat.h:236:1:
WCHAR_MAX = 0x7fffffff // wchar_limits.h:41:1:
WCHAR_MIN = -2147483648 // wchar_limits.h:40:1:
WINT_MAX = 0x7fffffff // wchar_limits.h:45:1:
WINT_MIN = -2147483648 // wchar_limits.h:44:1:
X_AMD64_BYTE_SWAP_H_ = 0 // byte_swap.h:37:1:
X_AMD64_INT_CONST_H_ = 0 // int_const.h:33:1:
X_AMD64_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
X_AMD64_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
X_AMD64_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
X_BIG_ENDIAN = 4321 // endian.h:44:1:
X_BSD_INT16_T_ = 0 // types.h:65:1:
X_BSD_INT32_T_ = 0 // types.h:75:1:
X_BSD_INT64_T_ = 0 // types.h:85:1:
X_BSD_INT8_T_ = 0 // types.h:55:1:
X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
X_BSD_UINT16_T_ = 0 // types.h:70:1:
X_BSD_UINT32_T_ = 0 // types.h:80:1:
X_BSD_UINT64_T_ = 0 // types.h:90:1:
X_BSD_UINT8_T_ = 0 // types.h:60:1:
X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
X_BYTE_ORDER = 1234 // endian_machdep.h:3:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FTS_H_ = 0 // fts.h:35:1:
X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
X_LP64 = 1 // <predefined>:268:1:
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
X_PDP_ENDIAN = 3412 // endian.h:45:1:
X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
X_QUAD_HIGHWORD = 1 // endian.h:84:1:
X_QUAD_LOWWORD = 0 // endian.h:85:1:
X_SIZE_T = 0 // types.h:279:1:
X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
X_SYS_IDTYPE_H_ = 0 // idtype.h:32:1:
X_SYS_NULL_H_ = 0 // null.h:9:1:
X_SYS_SELECT_H_ = 0 // select.h:35:1:
X_SYS_SIGTYPES_H_ = 0 // sigtypes.h:40:1:
X_SYS_STAT_H_ = 0 // stat.h:40:1:
X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
X_SYS_TIMESPEC_H_ = 0 // timespec.h:38:1:
X_SYS_TIME_H_ = 0 // time.h:35:1:
X_SYS_TYPES_H_ = 0 // types.h:40:1:
X_S_ARCH1 = 0200000 // stat.h:148:1:
X_S_ARCH2 = 0400000 // stat.h:149:1:
X_S_IFBLK = 0060000 // stat.h:142:1:
X_S_IFCHR = 0020000 // stat.h:140:1:
X_S_IFDIR = 0040000 // stat.h:141:1:
X_S_IFIFO = 0010000 // stat.h:139:1:
X_S_IFLNK = 0120000 // stat.h:144:1:
X_S_IFMT = 0170000 // stat.h:138:1:
X_S_IFREG = 0100000 // stat.h:143:1:
X_S_IFSOCK = 0140000 // stat.h:146:1:
X_S_IFWHT = 0160000 // stat.h:147:1:
X_S_ISVTX = 0001000 // stat.h:145:1:
X_TIME_H_ = 0 // time.h:40:1:
X_X86_64_BSWAP_H_ = 0 // bswap.h:6:1:
X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
X_X86_64_TYPES_H_ = 0 // types.h:35:1:
)
// $NetBSD: idtype.h,v 1.5 2016/04/09 17:02:51 riastradh Exp $

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo fts/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fts/fts_openbsd_amd64.go -pkgname fts', DO NOT EDIT.
// Code generated by 'ccgo fts/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_openbsd_amd64.go -pkgname fts', DO NOT EDIT.
package fts
@ -15,154 +15,154 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
ACCESSPERMS = 511
ALLPERMS = 4095
BIG_ENDIAN = 4321
BYTE_ORDER = 1234
CLK_TCK = 100
CLOCKS_PER_SEC = 100
CLOCK_BOOTTIME = 6
CLOCK_MONOTONIC = 3
CLOCK_PROCESS_CPUTIME_ID = 2
CLOCK_REALTIME = 0
CLOCK_THREAD_CPUTIME_ID = 4
CLOCK_UPTIME = 5
DEFFILEMODE = 438
DST_AUST = 2
DST_CAN = 6
DST_EET = 5
DST_MET = 4
DST_NONE = 0
DST_USA = 1
DST_WET = 3
FD_SETSIZE = 1024
FTS_AGAIN = 1
FTS_COMFOLLOW = 0x0001
FTS_D = 1
FTS_DC = 2
FTS_DEFAULT = 3
FTS_DNR = 4
FTS_DONTCHDIR = 0x01
FTS_DOT = 5
FTS_DP = 6
FTS_ERR = 7
FTS_F = 8
FTS_FOLLOW = 2
FTS_INIT = 9
FTS_LOGICAL = 0x0002
FTS_MAXLEVEL = 0x7fffffff
FTS_NAMEONLY = 0x1000
FTS_NOCHDIR = 0x0004
FTS_NOINSTR = 3
FTS_NOSTAT = 0x0008
FTS_NS = 10
FTS_NSOK = 11
FTS_OPTIONMASK = 0x00ff
FTS_PHYSICAL = 0x0010
FTS_ROOTLEVEL = 0
FTS_ROOTPARENTLEVEL = -1
FTS_SEEDOT = 0x0020
FTS_SKIP = 4
FTS_SL = 12
FTS_SLNONE = 13
FTS_STOP = 0x2000
FTS_SYMFOLLOW = 0x02
FTS_XDEV = 0x0040
ITIMER_PROF = 2
ITIMER_REAL = 0
ITIMER_VIRTUAL = 1
LITTLE_ENDIAN = 1234
NBBY = 8
PDP_ENDIAN = 3412
SF_APPEND = 0x00040000
SF_ARCHIVED = 0x00010000
SF_IMMUTABLE = 0x00020000
SF_SETTABLE = 0xffff0000
S_BLKSIZE = 512
S_IEXEC = 64
S_IFBLK = 0060000
S_IFCHR = 0020000
S_IFDIR = 0040000
S_IFIFO = 0010000
S_IFLNK = 0120000
S_IFMT = 0170000
S_IFREG = 0100000
S_IFSOCK = 0140000
S_IREAD = 256
S_IRGRP = 0000040
S_IROTH = 0000004
S_IRUSR = 0000400
S_IRWXG = 0000070
S_IRWXO = 0000007
S_IRWXU = 0000700
S_ISGID = 0002000
S_ISTXT = 0001000
S_ISUID = 0004000
S_ISVTX = 0001000
S_IWGRP = 0000020
S_IWOTH = 0000002
S_IWRITE = 128
S_IWUSR = 0000200
S_IXGRP = 0000010
S_IXOTH = 0000001
S_IXUSR = 0000100
TIMER_ABSTIME = 0x1
TIMER_RELTIME = 0x0
TIME_UTC = 1
UF_APPEND = 0x00000004
UF_IMMUTABLE = 0x00000002
UF_NODUMP = 0x00000001
UF_OPAQUE = 0x00000008
UF_SETTABLE = 0x0000ffff
UTIME_NOW = -2
UTIME_OMIT = -1
X_BIG_ENDIAN = 4321
X_BYTE_ORDER = 1234
X_CLOCKID_T_DEFINED_ = 0
X_CLOCK_T_DEFINED_ = 0
X_FILE_OFFSET_BITS = 64
X_FTS_H_ = 0
X_INT16_T_DEFINED_ = 0
X_INT32_T_DEFINED_ = 0
X_INT64_T_DEFINED_ = 0
X_INT8_T_DEFINED_ = 0
X_LITTLE_ENDIAN = 1234
X_LOCALE_T_DEFINED_ = 0
X_LP64 = 1
X_MACHINE_CDEFS_H_ = 0
X_MACHINE_ENDIAN_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_MAX_PAGE_SHIFT = 12
X_OFF_T_DEFINED_ = 0
X_PDP_ENDIAN = 3412
X_PID_T_DEFINED_ = 0
X_QUAD_HIGHWORD = 1
X_QUAD_LOWWORD = 0
X_RET_PROTECTOR = 1
X_SELECT_DEFINED_ = 0
X_SIGSET_T_DEFINED_ = 0
X_SIZE_T_DEFINED_ = 0
X_SSIZE_T_DEFINED_ = 0
X_STACKALIGNBYTES = 15
X_SYS_CDEFS_H_ = 0
X_SYS_ENDIAN_H_ = 0
X_SYS_SELECT_H_ = 0
X_SYS_STAT_H_ = 0
X_SYS_TIME_H_ = 0
X_SYS_TYPES_H_ = 0
X_SYS__ENDIAN_H_ = 0
X_SYS__TIME_H_ = 0
X_SYS__TYPES_H_ = 0
X_TIMER_T_DEFINED_ = 0
X_TIMESPEC_DECLARED = 0
X_TIMEVAL_DECLARED = 0
X_TIME_H_ = 0
X_TIME_T_DEFINED_ = 0
X_UINT16_T_DEFINED_ = 0
X_UINT32_T_DEFINED_ = 0
X_UINT64_T_DEFINED_ = 0
X_UINT8_T_DEFINED_ = 0
Unix = 1
ACCESSPERMS = 511 // stat.h:151:1:
ALLPERMS = 4095 // stat.h:153:1:
BIG_ENDIAN = 4321 // endian.h:45:1:
BYTE_ORDER = 1234 // endian.h:47:1:
CLK_TCK = 100 // time.h:68:1:
CLOCKS_PER_SEC = 100 // time.h:71:1:
CLOCK_BOOTTIME = 6 // _time.h:40:1:
CLOCK_MONOTONIC = 3 // _time.h:37:1:
CLOCK_PROCESS_CPUTIME_ID = 2 // _time.h:36:1:
CLOCK_REALTIME = 0 // _time.h:35:1:
CLOCK_THREAD_CPUTIME_ID = 4 // _time.h:38:1:
CLOCK_UPTIME = 5 // _time.h:39:1:
DEFFILEMODE = 438 // stat.h:155:1:
DST_AUST = 2 // time.h:78:1:
DST_CAN = 6 // time.h:82:1:
DST_EET = 5 // time.h:81:1:
DST_MET = 4 // time.h:80:1:
DST_NONE = 0 // time.h:76:1:
DST_USA = 1 // time.h:77:1:
DST_WET = 3 // time.h:79:1:
FD_SETSIZE = 1024 // select.h:62:1:
FTS_AGAIN = 1 // fts.h:104:1:
FTS_COMFOLLOW = 0x0001 // fts.h:49:1:
FTS_D = 1 // fts.h:85:1:
FTS_DC = 2 // fts.h:86:1:
FTS_DEFAULT = 3 // fts.h:87:1:
FTS_DNR = 4 // fts.h:88:1:
FTS_DONTCHDIR = 0x01 // fts.h:100:1:
FTS_DOT = 5 // fts.h:89:1:
FTS_DP = 6 // fts.h:90:1:
FTS_ERR = 7 // fts.h:91:1:
FTS_F = 8 // fts.h:92:1:
FTS_FOLLOW = 2 // fts.h:105:1:
FTS_INIT = 9 // fts.h:93:1:
FTS_LOGICAL = 0x0002 // fts.h:50:1:
FTS_MAXLEVEL = 0x7fffffff // fts.h:82:1:
FTS_NAMEONLY = 0x1000 // fts.h:58:1:
FTS_NOCHDIR = 0x0004 // fts.h:51:1:
FTS_NOINSTR = 3 // fts.h:106:1:
FTS_NOSTAT = 0x0008 // fts.h:52:1:
FTS_NS = 10 // fts.h:94:1:
FTS_NSOK = 11 // fts.h:95:1:
FTS_OPTIONMASK = 0x00ff // fts.h:56:1:
FTS_PHYSICAL = 0x0010 // fts.h:53:1:
FTS_ROOTLEVEL = 0 // fts.h:81:1:
FTS_ROOTPARENTLEVEL = -1 // fts.h:80:1:
FTS_SEEDOT = 0x0020 // fts.h:54:1:
FTS_SKIP = 4 // fts.h:107:1:
FTS_SL = 12 // fts.h:96:1:
FTS_SLNONE = 13 // fts.h:97:1:
FTS_STOP = 0x2000 // fts.h:59:1:
FTS_SYMFOLLOW = 0x02 // fts.h:101:1:
FTS_XDEV = 0x0040 // fts.h:55:1:
ITIMER_PROF = 2 // time.h:146:1:
ITIMER_REAL = 0 // time.h:144:1:
ITIMER_VIRTUAL = 1 // time.h:145:1:
LITTLE_ENDIAN = 1234 // endian.h:44:1:
NBBY = 8 // select.h:111:1:
PDP_ENDIAN = 3412 // endian.h:46:1:
SF_APPEND = 0x00040000 // stat.h:175:1:
SF_ARCHIVED = 0x00010000 // stat.h:173:1:
SF_IMMUTABLE = 0x00020000 // stat.h:174:1:
SF_SETTABLE = 0xffff0000 // stat.h:172:1:
S_BLKSIZE = 512 // stat.h:157:1:
S_IEXEC = 64 // stat.h:108:1:
S_IFBLK = 0060000 // stat.h:126:1:
S_IFCHR = 0020000 // stat.h:124:1:
S_IFDIR = 0040000 // stat.h:125:1:
S_IFIFO = 0010000 // stat.h:123:1:
S_IFLNK = 0120000 // stat.h:128:1:
S_IFMT = 0170000 // stat.h:122:1:
S_IFREG = 0100000 // stat.h:127:1:
S_IFSOCK = 0140000 // stat.h:129:1:
S_IREAD = 256 // stat.h:106:1:
S_IRGRP = 0000040 // stat.h:112:1:
S_IROTH = 0000004 // stat.h:117:1:
S_IRUSR = 0000400 // stat.h:101:1:
S_IRWXG = 0000070 // stat.h:111:1:
S_IRWXO = 0000007 // stat.h:116:1:
S_IRWXU = 0000700 // stat.h:100:1:
S_ISGID = 0002000 // stat.h:95:1:
S_ISTXT = 0001000 // stat.h:97:1:
S_ISUID = 0004000 // stat.h:94:1:
S_ISVTX = 0001000 // stat.h:130:1:
S_IWGRP = 0000020 // stat.h:113:1:
S_IWOTH = 0000002 // stat.h:118:1:
S_IWRITE = 128 // stat.h:107:1:
S_IWUSR = 0000200 // stat.h:102:1:
S_IXGRP = 0000010 // stat.h:114:1:
S_IXOTH = 0000001 // stat.h:119:1:
S_IXUSR = 0000100 // stat.h:103:1:
TIMER_ABSTIME = 0x1 // _time.h:62:1:
TIMER_RELTIME = 0x0 // _time.h:61:1:
TIME_UTC = 1 // time.h:179:1:
UF_APPEND = 0x00000004 // stat.h:167:1:
UF_IMMUTABLE = 0x00000002 // stat.h:166:1:
UF_NODUMP = 0x00000001 // stat.h:165:1:
UF_OPAQUE = 0x00000008 // stat.h:168:1:
UF_SETTABLE = 0x0000ffff // stat.h:164:1:
UTIME_NOW = -2 // stat.h:188:1:
UTIME_OMIT = -1 // stat.h:189:1:
X_BIG_ENDIAN = 4321 // _endian.h:43:1:
X_BYTE_ORDER = 1234 // endian.h:58:1:
X_CLOCKID_T_DEFINED_ = 0 // types.h:163:1:
X_CLOCK_T_DEFINED_ = 0 // types.h:158:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FTS_H_ = 0 // fts.h:36:1:
X_INT16_T_DEFINED_ = 0 // types.h:84:1:
X_INT32_T_DEFINED_ = 0 // types.h:94:1:
X_INT64_T_DEFINED_ = 0 // types.h:104:1:
X_INT8_T_DEFINED_ = 0 // types.h:74:1:
X_LITTLE_ENDIAN = 1234 // _endian.h:42:1:
X_LOCALE_T_DEFINED_ = 0 // time.h:106:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
X_MACHINE_ENDIAN_H_ = 0 // endian.h:28:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:36:1:
X_MAX_PAGE_SHIFT = 12 // _types.h:52:1:
X_OFF_T_DEFINED_ = 0 // types.h:193:1:
X_PDP_ENDIAN = 3412 // _endian.h:44:1:
X_PID_T_DEFINED_ = 0 // types.h:168:1:
X_QUAD_HIGHWORD = 1 // _endian.h:95:1:
X_QUAD_LOWWORD = 0 // _endian.h:96:1:
X_RET_PROTECTOR = 1 // <predefined>:2:1:
X_SELECT_DEFINED_ = 0 // select.h:126:1:
X_SIGSET_T_DEFINED_ = 0 // select.h:121:1:
X_SIZE_T_DEFINED_ = 0 // types.h:173:1:
X_SSIZE_T_DEFINED_ = 0 // types.h:178:1:
X_STACKALIGNBYTES = 15 // _types.h:49:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:38:1:
X_SYS_SELECT_H_ = 0 // select.h:35:1:
X_SYS_STAT_H_ = 0 // stat.h:41:1:
X_SYS_TIME_H_ = 0 // time.h:36:1:
X_SYS_TYPES_H_ = 0 // types.h:41:1:
X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1:
X_SYS__TIME_H_ = 0 // _time.h:33:1:
X_SYS__TYPES_H_ = 0 // _types.h:35:1:
X_TIMER_T_DEFINED_ = 0 // types.h:188:1:
X_TIMESPEC_DECLARED = 0 // select.h:48:1:
X_TIMEVAL_DECLARED = 0 // select.h:40:1:
X_TIME_H_ = 0 // time.h:42:1:
X_TIME_T_DEFINED_ = 0 // types.h:183:1:
X_UINT16_T_DEFINED_ = 0 // types.h:89:1:
X_UINT32_T_DEFINED_ = 0 // types.h:99:1:
X_UINT64_T_DEFINED_ = 0 // types.h:109:1:
X_UINT8_T_DEFINED_ = 0 // types.h:79:1:
Unix = 1 // <predefined>:340:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo grp/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o grp/grp_freebsd_386.go -pkgname grp', DO NOT EDIT.
// Code generated by 'ccgo grp/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_freebsd_386.go -pkgname grp', DO NOT EDIT.
package grp

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo grp/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o grp/grp_freebsd_amd64.go -pkgname grp', DO NOT EDIT.
// Code generated by 'ccgo grp/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_freebsd_amd64.go -pkgname grp', DO NOT EDIT.
package grp

5
vendor/modernc.org/libc/grp/capi_linux_ppc64le.go generated vendored Normal file
View File

@ -0,0 +1,5 @@
// Code generated by 'ccgo grp/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_linux_ppc64le.go -pkgname grp', DO NOT EDIT.
package grp
var CAPI = map[string]struct{}{}

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo grp/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o grp/grp_netbsd_amd64.go -pkgname grp', DO NOT EDIT.
// Code generated by 'ccgo grp/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_netbsd_amd64.go -pkgname grp', DO NOT EDIT.
package grp

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo grp/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o grp/grp_openbsd_amd64.go -pkgname grp', DO NOT EDIT.
// Code generated by 'ccgo grp/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_openbsd_amd64.go -pkgname grp', DO NOT EDIT.
package grp

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo grp/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o grp/grp_freebsd_386.go -pkgname grp', DO NOT EDIT.
// Code generated by 'ccgo grp/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_freebsd_386.go -pkgname grp', DO NOT EDIT.
package grp
@ -15,21 +15,21 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
X_FILE_OFFSET_BITS = 64
X_GID_T_DECLARED = 0
X_GRP_H_ = 0
X_ILP32 = 1
X_MACHINE__LIMITS_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_PATH_GROUP = "/etc/group"
X_SIZE_T_DECLARED = 0
X_SYS_CDEFS_H_ = 0
X_SYS__TYPES_H_ = 0
I386 = 1
Unix = 1
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GID_T_DECLARED = 0 // grp.h:50:1:
X_GRP_H_ = 0 // grp.h:41:1:
X_ILP32 = 1 // <predefined>:1:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_PATH_GROUP = "/etc/group" // grp.h:46:1:
X_SIZE_T_DECLARED = 0 // grp.h:55:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
I386 = 1 // <predefined>:335:1:
Unix = 1 // <predefined>:336:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo grp/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o grp/grp_freebsd_amd64.go -pkgname grp', DO NOT EDIT.
// Code generated by 'ccgo grp/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_freebsd_amd64.go -pkgname grp', DO NOT EDIT.
package grp
@ -15,20 +15,20 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
X_FILE_OFFSET_BITS = 64
X_GID_T_DECLARED = 0
X_GRP_H_ = 0
X_LP64 = 1
X_MACHINE__LIMITS_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_PATH_GROUP = "/etc/group"
X_SIZE_T_DECLARED = 0
X_SYS_CDEFS_H_ = 0
X_SYS__TYPES_H_ = 0
Unix = 1
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GID_T_DECLARED = 0 // grp.h:50:1:
X_GRP_H_ = 0 // grp.h:41:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_Nonnull = 0 // cdefs.h:783:1:
X_Null_unspecified = 0 // cdefs.h:785:1:
X_Nullable = 0 // cdefs.h:784:1:
X_PATH_GROUP = "/etc/group" // grp.h:46:1:
X_SIZE_T_DECLARED = 0 // grp.h:55:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
Unix = 1 // <predefined>:337:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

791
vendor/modernc.org/libc/grp/grp_linux_ppc64le.go generated vendored Normal file
View File

@ -0,0 +1,791 @@
// Code generated by 'ccgo grp/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_linux_ppc64le.go -pkgname grp', DO NOT EDIT.
package grp
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
NSS_BUFLEN_GROUP = 1024 // grp.h:114:1:
X_ARCH_PPC = 1 // <predefined>:198:1:
X_ARCH_PPC64 = 1 // <predefined>:402:1:
X_ARCH_PPCGR = 1 // <predefined>:15:1:
X_ARCH_PPCSQ = 1 // <predefined>:43:1:
X_ARCH_PWR4 = 1 // <predefined>:381:1:
X_ARCH_PWR5 = 1 // <predefined>:90:1:
X_ARCH_PWR5X = 1 // <predefined>:137:1:
X_ARCH_PWR6 = 1 // <predefined>:91:1:
X_ARCH_PWR7 = 1 // <predefined>:92:1:
X_ARCH_PWR8 = 1 // <predefined>:93:1:
X_ATFILE_SOURCE = 1 // features.h:342:1:
X_BITS_TIME64_H = 1 // time64.h:24:1:
X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
X_BITS_TYPES_H = 1 // types.h:24:1:
X_BSD_SIZE_T_ = 0 // stddef.h:189:1:
X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1:
X_CALL_ELF = 2 // <predefined>:415:1:
X_CALL_LINUX = 1 // <predefined>:123:1:
X_DEFAULT_SOURCE = 1 // features.h:227:1:
X_FEATURES_H = 1 // features.h:19:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GCC_SIZE_T = 0 // stddef.h:195:1:
X_GRP_H = 1 // grp.h:23:1:
X_LITTLE_ENDIAN = 1 // <predefined>:37:1:
X_LP64 = 1 // <predefined>:335:1:
X_POSIX_C_SOURCE = 200809 // features.h:281:1:
X_POSIX_SOURCE = 1 // features.h:279:1:
X_SIZET_ = 0 // stddef.h:196:1:
X_SIZE_T = 0 // stddef.h:183:1:
X_SIZE_T_ = 0 // stddef.h:188:1:
X_SIZE_T_DECLARED = 0 // stddef.h:193:1:
X_SIZE_T_DEFINED = 0 // stddef.h:191:1:
X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1:
X_STDC_PREDEF_H = 1 // <predefined>:203:1:
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
X_SYS_SIZE_T_H = 0 // stddef.h:184:1:
X_T_SIZE = 0 // stddef.h:186:1:
X_T_SIZE_ = 0 // stddef.h:185:1:
Linux = 1 // <predefined>:263:1:
Unix = 1 // <predefined>:222:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__ieee128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 9.2.1 Group Database Access <grp.h>
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
// Major and minor version number of the GNU C library package. Use
// these macros to test for features in specific releases.
// This is here only because every header file already includes this one.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We are almost always included from features.h.
// The GNU libc does not support any K&R compilers or the traditional mode
// of ISO C compilers anymore. Check for some of the combinations not
// anymore supported.
// Some user header file might have defined this before.
// All functions, except those with callbacks or those that
// synchronize memory, are leaf functions.
// GCC can always grok prototypes. For C++ programs we add throw()
// to help it optimize the function calls. But this works only with
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
// as non-throwing using a function attribute since programs can use
// the -fexceptions options for C code as well.
// Compilers that are not clang may object to
// #if defined __clang__ && __has_extension(...)
// even though they do not need to evaluate the right-hand side of the &&.
// These two macros are not used in glibc anymore. They are kept here
// only because some other projects expect the macros to be defined.
// For these things, GCC behaves the ANSI way normally,
// and the non-ANSI way under -traditional.
// This is not a typedef so `const __ptr_t' does the right thing.
// C++ needs to know that types and declarations are C, not C++.
// Fortify support.
// Support for flexible arrays.
// Headers that should use flexible arrays only if they're "real"
// (e.g. only if they won't affect sizeof()) should test
// #if __glibc_c99_flexarr_available.
// __asm__ ("xyz") is used throughout the headers to rename functions
// at the assembly language level. This is wrapped by the __REDIRECT
// macro, in order to support compilers that can do this some other
// way. When compilers don't support asm-names at all, we have to do
// preprocessor tricks instead (which don't have exactly the right
// semantics, but it's the best we can do).
//
// Example:
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
//
// #elif __SOME_OTHER_COMPILER__
//
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
// GCC has various useful declarations that can be made with the
// `__attribute__' syntax. All of the ways we use this do fine if
// they are omitted for compilers that don't understand it.
// At some point during the gcc 2.96 development the `malloc' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Tell the compiler which arguments to an allocation function
// indicate the size of the allocation.
// At some point during the gcc 2.96 development the `pure' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// This declaration tells the compiler that the value is constant.
// At some point during the gcc 3.1 development the `used' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Since version 3.2, gcc allows marking deprecated functions.
// Since version 4.5, gcc also allows one to specify the message printed
// when a deprecated function is used. clang claims to be gcc 4.2, but
// may also support this feature.
// At some point during the gcc 2.8 development the `format_arg' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// If several `format_arg' attributes are given for the same function, in
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
// all designated arguments are considered.
// At some point during the gcc 2.97 development the `strfmon' format
// attribute for functions was introduced. We don't want to use it
// unconditionally (although this would be possible) since it
// generates warnings.
// The nonull function attribute allows to mark pointer parameters which
// must not be NULL.
// If fortification mode, we warn about unused results of certain
// function calls which can lead to problems.
// Forces a function to be always inlined.
// The Linux kernel defines __always_inline in stddef.h (283d7573), and
// it conflicts with this definition. Therefore undefine it first to
// allow either header to be included first.
// Associate error messages with the source location of the call site rather
// than with the source location inside the function.
// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
// older than 4.3 may define these macros and still not guarantee GNU inlining
// semantics.
//
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
// __GNUC_GNU_INLINE__ macro definitions.
// GCC 4.3 and above allow passing all anonymous arguments of an
// __extern_always_inline function to some other vararg function.
// It is possible to compile containing GCC extensions even if GCC is
// run in pedantic mode if the uses are carefully marked using the
// `__extension__' keyword. But this is not generally available before
// version 2.8.
// __restrict is known in EGCS 1.2 and above.
// ISO C99 also allows to declare arrays as non-overlapping. The syntax is
// array_name[restrict]
// GCC 3.1 supports this.
// Describes a char array whose address can safely be passed as the first
// argument to strncpy and strncat, as the char array is not necessarily
// a NUL-terminated string.
// Undefine (also defined in libc-symbols.h).
// Copies attributes from the declaration or type referenced by
// the argument.
// Determine the wordsize from the preprocessor defines.
// Properties of long double type. ldbl-opt version.
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
// intended for use in preprocessor macros.
//
// Note: MESSAGE must be a _single_ string; concatenation of string
// literals is not supported.
// Generic selection (ISO C11) is a C-only feature, available in GCC
// since version 4.9. Previous versions do not provide generic
// selection, even though they might set __STDC_VERSION__ to 201112L,
// when in -std=c11 mode. Thus, we must check for !defined __GNUC__
// when testing __STDC_VERSION__ for generic selection support.
// On the other hand, Clang also defines __GNUC__, so a clang-specific
// check is required to enable the use of generic selection.
// If we don't have __REDIRECT, prototypes will be missing if
// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
// Decide whether we can define 'extern inline' functions in headers.
// This is here only because every header file already includes this one.
// Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
// <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
// that will always return failure (and set errno to ENOSYS).
// This file is automatically generated.
// This file selects the right generated file of `__stub_FUNCTION' macros
// based on the architecture being compiled for.
// Determine the wordsize from the preprocessor defines.
// This file is automatically generated.
// It defines a symbol `__stub_FUNCTION' for each function
// in the C library which is a stub, meaning it will fail
// every time called, usually setting errno to ENOSYS.
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Determine the wordsize from the preprocessor defines.
// Bit size of the time_t type at glibc build time, general case.
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Determine the wordsize from the preprocessor defines.
// Size in bits of the 'time_t' type of the default ABI.
// Convenience types.
type X__u_char = uint8 /* types.h:31:23 */
type X__u_short = uint16 /* types.h:32:28 */
type X__u_int = uint32 /* types.h:33:22 */
type X__u_long = uint64 /* types.h:34:27 */
// Fixed-size types, underlying types depend on word size and compiler.
type X__int8_t = int8 /* types.h:37:21 */
type X__uint8_t = uint8 /* types.h:38:23 */
type X__int16_t = int16 /* types.h:39:26 */
type X__uint16_t = uint16 /* types.h:40:28 */
type X__int32_t = int32 /* types.h:41:20 */
type X__uint32_t = uint32 /* types.h:42:22 */
type X__int64_t = int64 /* types.h:44:25 */
type X__uint64_t = uint64 /* types.h:45:27 */
// Smallest types with at least a given width.
type X__int_least8_t = X__int8_t /* types.h:52:18 */
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
type X__int_least16_t = X__int16_t /* types.h:54:19 */
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
type X__int_least32_t = X__int32_t /* types.h:56:19 */
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
type X__int_least64_t = X__int64_t /* types.h:58:19 */
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
// quad_t is also 64 bits.
type X__quad_t = int64 /* types.h:63:18 */
type X__u_quad_t = uint64 /* types.h:64:27 */
// Largest integral types.
type X__intmax_t = int64 /* types.h:72:18 */
type X__uintmax_t = uint64 /* types.h:73:27 */
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
// macros for each of the OS types we define below. The definitions
// of those macros must use the following macros for underlying types.
// We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
// variants of each of the following integer types on this machine.
//
// 16 -- "natural" 16-bit type (always short)
// 32 -- "natural" 32-bit type (always int)
// 64 -- "natural" 64-bit type (long or long long)
// LONG32 -- 32-bit type, traditionally long
// QUAD -- 64-bit type, traditionally long long
// WORD -- natural type of __WORDSIZE bits (int or long)
// LONGWORD -- type of __WORDSIZE bits, traditionally long
//
// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
// conventional uses of `long' or `long long' type modifiers match the
// types we define, even when a less-adorned type would be the same size.
// This matters for (somewhat) portably writing printf/scanf formats for
// these types, where using the appropriate l or ll format modifiers can
// make the typedefs and the formats match up across all GNU platforms. If
// we used `long' when it's 64 bits where `long long' is expected, then the
// compiler would warn about the formats not matching the argument types,
// and the programmer changing them to shut up the compiler would break the
// program's portability.
//
// Here we assume what is presently the case in all the GCC configurations
// we support: long long is always 64 bits, long is always word/address size,
// and int is always 32 bits.
// No need to mark the typedef with __extension__.
// bits/typesizes.h -- underlying types for *_t. Generic version.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// See <bits/types.h> for the meaning of these macros. This file exists so
// that <bits/types.h> need not vary across different GNU platforms.
// Tell the libc code that off_t and off64_t are actually the same type
// for all ABI purposes, even if possibly expressed as different base types
// for C type-checking purposes.
// Same for ino_t and ino64_t.
// And for rlim_t and rlim64_t.
// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
// Number of descriptors that can fit in an `fd_set'.
// bits/time64.h -- underlying types for __time64_t. Generic version.
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
// If we already have 64-bit time type then use it.
type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts.
type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
// Clock ID used in clock and timer functions.
type X__clockid_t = int32 /* types.h:168:29 */
// Timer ID returned by `timer_create'.
type X__timer_t = uintptr /* types.h:171:12 */
// Type to represent block size.
type X__blksize_t = int64 /* types.h:174:29 */
// Types from the Large File Support interface.
// Type to count number of disk blocks.
type X__blkcnt_t = int64 /* types.h:179:28 */
type X__blkcnt64_t = int64 /* types.h:180:30 */
// Type to count file system blocks.
type X__fsblkcnt_t = uint64 /* types.h:183:30 */
type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
// Type to count file system nodes.
type X__fsfilcnt_t = uint64 /* types.h:187:30 */
type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
// Type of miscellaneous file system fields.
type X__fsword_t = int64 /* types.h:191:28 */
type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
// Signed long type used in system calls.
type X__syscall_slong_t = int64 /* types.h:196:33 */
// Unsigned long type used in system calls.
type X__syscall_ulong_t = uint64 /* types.h:198:33 */
// These few don't really vary by system, they always correspond
// to one of the other defined types.
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
type X__caddr_t = uintptr /* types.h:203:14 */
// Duplicates info from stdint.h but this is used in unistd.h.
type X__intptr_t = int64 /* types.h:206:25 */
// Duplicate info from sys/socket.h.
type X__socklen_t = uint32 /* types.h:209:23 */
// C99: An integer type that can be accessed as an atomic entity,
// even in the presence of asynchronous interrupts.
// It is not currently necessary for this to be machine-specific.
type X__sig_atomic_t = int32 /* types.h:214:13 */
// Wide character type.
// Locale-writers should change this as necessary to
// be big enough to hold unique values not between 0 and 127,
// and not (wchar_t) -1, for each defined multibyte character.
// Define this type if we are doing the whole job,
// or if we want this type in particular.
// A null pointer constant.
// For the Single Unix specification we must define this type here.
type Gid_t = X__gid_t /* grp.h:37:17 */
// The group structure.
type Group = struct {
Fgr_name uintptr
Fgr_passwd uintptr
Fgr_gid X__gid_t
F__ccgo_pad1 [4]byte
Fgr_mem uintptr
} /* grp.h:42:1 */
var _ uint8 /* gen.c:2:13: */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo grp/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o grp/grp_netbsd_amd64.go -pkgname grp', DO NOT EDIT.
// Code generated by 'ccgo grp/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_netbsd_amd64.go -pkgname grp', DO NOT EDIT.
package grp
@ -15,128 +15,128 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321
BYTE_ORDER = 1234
FD_SETSIZE = 256
INT16_MAX = 32767
INT16_MIN = -32768
INT32_MAX = 2147483647
INT32_MIN = -2147483648
INT64_MAX = 9223372036854775807
INT64_MIN = -9223372036854775808
INT8_MAX = 127
INT8_MIN = -128
INTMAX_MAX = 9223372036854775807
INTMAX_MIN = -9223372036854775808
INTPTR_MAX = 9223372036854775807
INTPTR_MIN = -9223372036854775808
INT_FAST16_MAX = 2147483647
INT_FAST16_MIN = -2147483648
INT_FAST32_MAX = 2147483647
INT_FAST32_MIN = -2147483648
INT_FAST64_MAX = 9223372036854775807
INT_FAST64_MIN = -9223372036854775808
INT_FAST8_MAX = 2147483647
INT_FAST8_MIN = -2147483648
INT_LEAST16_MAX = 32767
INT_LEAST16_MIN = -32768
INT_LEAST32_MAX = 2147483647
INT_LEAST32_MIN = -2147483648
INT_LEAST64_MAX = 9223372036854775807
INT_LEAST64_MIN = -9223372036854775808
INT_LEAST8_MAX = 127
INT_LEAST8_MIN = -128
LITTLE_ENDIAN = 1234
NBBY = 8
NFDBITS = 32
NODEVMAJOR = -1
PDP_ENDIAN = 3412
PTRDIFF_MAX = 9223372036854775807
PTRDIFF_MIN = -9223372036854775808
SIG_ATOMIC_MAX = 2147483647
SIG_ATOMIC_MIN = -2147483648
SIZE_MAX = 18446744073709551615
UINT16_MAX = 65535
UINT32_MAX = 4294967295
UINT64_MAX = 18446744073709551615
UINT8_MAX = 255
UINTMAX_MAX = 18446744073709551615
UINTPTR_MAX = 18446744073709551615
UINT_FAST16_MAX = 4294967295
UINT_FAST32_MAX = 4294967295
UINT_FAST64_MAX = 18446744073709551615
UINT_FAST8_MAX = 4294967295
UINT_LEAST16_MAX = 65535
UINT_LEAST32_MAX = 4294967295
UINT_LEAST64_MAX = 18446744073709551615
UINT_LEAST8_MAX = 255
WCHAR_MAX = 0x7fffffff
WCHAR_MIN = -2147483648
WINT_MAX = 0x7fffffff
WINT_MIN = -2147483648
X_AMD64_BYTE_SWAP_H_ = 0
X_AMD64_INT_CONST_H_ = 0
X_AMD64_INT_LIMITS_H_ = 0
X_AMD64_INT_MWGWTYPES_H_ = 0
X_AMD64_INT_TYPES_H_ = 0
X_AMD64_WCHAR_LIMITS_H_ = 0
X_BIG_ENDIAN = 4321
X_BSD_INT16_T_ = 0
X_BSD_INT32_T_ = 0
X_BSD_INT64_T_ = 0
X_BSD_INT8_T_ = 0
X_BSD_INTPTR_T_ = 0
X_BSD_UINT16_T_ = 0
X_BSD_UINT32_T_ = 0
X_BSD_UINT64_T_ = 0
X_BSD_UINT8_T_ = 0
X_BSD_UINTPTR_T_ = 0
X_BYTE_ORDER = 1234
X_FILE_OFFSET_BITS = 64
X_GRP_H_ = 0
X_LIB_PTHREAD_TYPES_H = 0
X_LITTLE_ENDIAN = 1234
X_LP64 = 1
X_NETBSD_SOURCE = 1
X_PATH_GROUP = "/etc/group"
X_PDP_ENDIAN = 3412
X_PT_BARRIERATTR_DEAD = 0xDEAD0808
X_PT_BARRIERATTR_MAGIC = 0x88880808
X_PT_BARRIER_DEAD = 0xDEAD0008
X_PT_BARRIER_MAGIC = 0x88880008
X_PT_CONDATTR_DEAD = 0xDEAD0006
X_PT_CONDATTR_MAGIC = 0x66660006
X_PT_COND_DEAD = 0xDEAD0005
X_PT_COND_MAGIC = 0x55550005
X_PT_MUTEXATTR_DEAD = 0xDEAD0004
X_PT_MUTEXATTR_MAGIC = 0x44440004
X_PT_MUTEX_DEAD = 0xDEAD0003
X_PT_MUTEX_MAGIC = 0x33330003
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909
X_PT_RWLOCKATTR_MAGIC = 0x99990909
X_PT_RWLOCK_DEAD = 0xDEAD0009
X_PT_RWLOCK_MAGIC = 0x99990009
X_PT_SPINLOCK_DEAD = 0xDEAD0007
X_PT_SPINLOCK_MAGIC = 0x77770007
X_PT_SPINLOCK_PSHARED = 0x00000001
X_QUAD_HIGHWORD = 1
X_QUAD_LOWWORD = 0
X_SIZE_T = 0
X_SYS_ANSI_H_ = 0
X_SYS_BSWAP_H_ = 0
X_SYS_CDEFS_ELF_H_ = 0
X_SYS_CDEFS_H_ = 0
X_SYS_COMMON_ANSI_H_ = 0
X_SYS_COMMON_INT_LIMITS_H_ = 0
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0
X_SYS_COMMON_INT_TYPES_H_ = 0
X_SYS_ENDIAN_H_ = 0
X_SYS_FD_SET_H_ = 0
X_SYS_STDINT_H_ = 0
X_SYS_TYPES_H_ = 0
X_X86_64_BSWAP_H_ = 0
X_X86_64_CDEFS_H_ = 0
X_X86_64_TYPES_H_ = 0
BIG_ENDIAN = 4321 // endian.h:101:1:
BYTE_ORDER = 1234 // endian.h:103:1:
FD_SETSIZE = 256 // fd_set.h:59:1:
INT16_MAX = 32767 // common_int_limits.h:53:1:
INT16_MIN = -32768 // common_int_limits.h:47:1:
INT32_MAX = 2147483647 // common_int_limits.h:54:1:
INT32_MIN = -2147483648 // common_int_limits.h:48:1:
INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
INT8_MAX = 127 // common_int_limits.h:52:1:
INT8_MIN = -128 // common_int_limits.h:46:1:
INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
INTPTR_MAX = 9223372036854775807 // common_int_limits.h:105:1:
INTPTR_MIN = -9223372036854775808 // common_int_limits.h:104:1:
INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
LITTLE_ENDIAN = 1234 // endian.h:100:1:
NBBY = 8 // types.h:316:1:
NFDBITS = 32 // fd_set.h:93:1:
NODEVMAJOR = -1 // types.h:258:1:
PDP_ENDIAN = 3412 // endian.h:102:1:
PTRDIFF_MAX = 9223372036854775807 // common_int_limits.h:121:1:
PTRDIFF_MIN = -9223372036854775808 // common_int_limits.h:120:1:
SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
SIZE_MAX = 18446744073709551615 // common_int_limits.h:128:1:
UINT16_MAX = 65535 // common_int_limits.h:59:1:
UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
UINT8_MAX = 255 // common_int_limits.h:58:1:
UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
UINTPTR_MAX = 18446744073709551615 // common_int_limits.h:106:1:
UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
WCHAR_MAX = 0x7fffffff // wchar_limits.h:41:1:
WCHAR_MIN = -2147483648 // wchar_limits.h:40:1:
WINT_MAX = 0x7fffffff // wchar_limits.h:45:1:
WINT_MIN = -2147483648 // wchar_limits.h:44:1:
X_AMD64_BYTE_SWAP_H_ = 0 // byte_swap.h:37:1:
X_AMD64_INT_CONST_H_ = 0 // int_const.h:33:1:
X_AMD64_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
X_AMD64_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
X_AMD64_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
X_BIG_ENDIAN = 4321 // endian.h:44:1:
X_BSD_INT16_T_ = 0 // types.h:65:1:
X_BSD_INT32_T_ = 0 // types.h:75:1:
X_BSD_INT64_T_ = 0 // types.h:85:1:
X_BSD_INT8_T_ = 0 // types.h:55:1:
X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
X_BSD_UINT16_T_ = 0 // types.h:70:1:
X_BSD_UINT32_T_ = 0 // types.h:80:1:
X_BSD_UINT64_T_ = 0 // types.h:90:1:
X_BSD_UINT8_T_ = 0 // types.h:60:1:
X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
X_BYTE_ORDER = 1234 // endian_machdep.h:3:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GRP_H_ = 0 // grp.h:40:1:
X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
X_LP64 = 1 // <predefined>:268:1:
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
X_PATH_GROUP = "/etc/group" // grp.h:47:1:
X_PDP_ENDIAN = 3412 // endian.h:45:1:
X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
X_QUAD_HIGHWORD = 1 // endian.h:84:1:
X_QUAD_LOWWORD = 0 // endian.h:85:1:
X_SIZE_T = 0 // types.h:279:1:
X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
X_SYS_TYPES_H_ = 0 // types.h:40:1:
X_X86_64_BSWAP_H_ = 0 // bswap.h:6:1:
X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
X_X86_64_TYPES_H_ = 0 // types.h:35:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo grp/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o grp/grp_openbsd_amd64.go -pkgname grp', DO NOT EDIT.
// Code generated by 'ccgo grp/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_openbsd_amd64.go -pkgname grp', DO NOT EDIT.
package grp
@ -15,48 +15,48 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
BIG_ENDIAN = 4321
BYTE_ORDER = 1234
LITTLE_ENDIAN = 1234
PDP_ENDIAN = 3412
X_BIG_ENDIAN = 4321
X_BYTE_ORDER = 1234
X_CLOCKID_T_DEFINED_ = 0
X_CLOCK_T_DEFINED_ = 0
X_FILE_OFFSET_BITS = 64
X_GRP_H_ = 0
X_INT16_T_DEFINED_ = 0
X_INT32_T_DEFINED_ = 0
X_INT64_T_DEFINED_ = 0
X_INT8_T_DEFINED_ = 0
X_LITTLE_ENDIAN = 1234
X_LP64 = 1
X_MACHINE_CDEFS_H_ = 0
X_MACHINE_ENDIAN_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_MAX_PAGE_SHIFT = 12
X_OFF_T_DEFINED_ = 0
X_PATH_GROUP = "/etc/group"
X_PDP_ENDIAN = 3412
X_PID_T_DEFINED_ = 0
X_QUAD_HIGHWORD = 1
X_QUAD_LOWWORD = 0
X_RET_PROTECTOR = 1
X_SIZE_T_DEFINED_ = 0
X_SSIZE_T_DEFINED_ = 0
X_STACKALIGNBYTES = 15
X_SYS_CDEFS_H_ = 0
X_SYS_ENDIAN_H_ = 0
X_SYS_TYPES_H_ = 0
X_SYS__ENDIAN_H_ = 0
X_SYS__TYPES_H_ = 0
X_TIMER_T_DEFINED_ = 0
X_TIME_T_DEFINED_ = 0
X_UINT16_T_DEFINED_ = 0
X_UINT32_T_DEFINED_ = 0
X_UINT64_T_DEFINED_ = 0
X_UINT8_T_DEFINED_ = 0
Unix = 1
BIG_ENDIAN = 4321 // endian.h:45:1:
BYTE_ORDER = 1234 // endian.h:47:1:
LITTLE_ENDIAN = 1234 // endian.h:44:1:
PDP_ENDIAN = 3412 // endian.h:46:1:
X_BIG_ENDIAN = 4321 // _endian.h:43:1:
X_BYTE_ORDER = 1234 // endian.h:58:1:
X_CLOCKID_T_DEFINED_ = 0 // types.h:163:1:
X_CLOCK_T_DEFINED_ = 0 // types.h:158:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GRP_H_ = 0 // grp.h:41:1:
X_INT16_T_DEFINED_ = 0 // types.h:84:1:
X_INT32_T_DEFINED_ = 0 // types.h:94:1:
X_INT64_T_DEFINED_ = 0 // types.h:104:1:
X_INT8_T_DEFINED_ = 0 // types.h:74:1:
X_LITTLE_ENDIAN = 1234 // _endian.h:42:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
X_MACHINE_ENDIAN_H_ = 0 // endian.h:28:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:36:1:
X_MAX_PAGE_SHIFT = 12 // _types.h:52:1:
X_OFF_T_DEFINED_ = 0 // types.h:193:1:
X_PATH_GROUP = "/etc/group" // grp.h:46:1:
X_PDP_ENDIAN = 3412 // _endian.h:44:1:
X_PID_T_DEFINED_ = 0 // types.h:168:1:
X_QUAD_HIGHWORD = 1 // _endian.h:95:1:
X_QUAD_LOWWORD = 0 // _endian.h:96:1:
X_RET_PROTECTOR = 1 // <predefined>:2:1:
X_SIZE_T_DEFINED_ = 0 // types.h:173:1:
X_SSIZE_T_DEFINED_ = 0 // types.h:178:1:
X_STACKALIGNBYTES = 15 // _types.h:49:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_ENDIAN_H_ = 0 // endian.h:38:1:
X_SYS_TYPES_H_ = 0 // types.h:41:1:
X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1:
X_SYS__TYPES_H_ = 0 // _types.h:35:1:
X_TIMER_T_DEFINED_ = 0 // types.h:188:1:
X_TIME_T_DEFINED_ = 0 // types.h:183:1:
X_UINT16_T_DEFINED_ = 0 // types.h:89:1:
X_UINT32_T_DEFINED_ = 0 // types.h:99:1:
X_UINT64_T_DEFINED_ = 0 // types.h:109:1:
X_UINT8_T_DEFINED_ = 0 // types.h:79:1:
Unix = 1 // <predefined>:340:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo langinfo/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o langinfo/langinfo_freebsd_386.go -pkgname langinfo', DO NOT EDIT.
// Code generated by 'ccgo langinfo/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_freebsd_386.go -pkgname langinfo', DO NOT EDIT.
package langinfo

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo langinfo/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o langinfo/langinfo_freebsd_amd64.go -pkgname langinfo', DO NOT EDIT.
// Code generated by 'ccgo langinfo/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_freebsd_amd64.go -pkgname langinfo', DO NOT EDIT.
package langinfo

View File

@ -0,0 +1,5 @@
// Code generated by 'ccgo langinfo/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_linux_ppc64le.go -pkgname langinfo', DO NOT EDIT.
package langinfo
var CAPI = map[string]struct{}{}

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo langinfo/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o langinfo/langinfo_netbsd_amd64.go -pkgname langinfo', DO NOT EDIT.
// Code generated by 'ccgo langinfo/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_netbsd_amd64.go -pkgname langinfo', DO NOT EDIT.
package langinfo

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo langinfo/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o langinfo/langinfo_openbsd_amd64.go -pkgname langinfo', DO NOT EDIT.
// Code generated by 'ccgo langinfo/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_openbsd_amd64.go -pkgname langinfo', DO NOT EDIT.
package langinfo

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo langinfo/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o langinfo/langinfo_freebsd_386.go -pkgname langinfo', DO NOT EDIT.
// Code generated by 'ccgo langinfo/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_freebsd_386.go -pkgname langinfo', DO NOT EDIT.
package langinfo
@ -15,91 +15,91 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
ABDAY_1 = 14
ABDAY_2 = 15
ABDAY_3 = 16
ABDAY_4 = 17
ABDAY_5 = 18
ABDAY_6 = 19
ABDAY_7 = 20
ABMON_1 = 33
ABMON_10 = 42
ABMON_11 = 43
ABMON_12 = 44
ABMON_2 = 34
ABMON_3 = 35
ABMON_4 = 36
ABMON_5 = 37
ABMON_6 = 38
ABMON_7 = 39
ABMON_8 = 40
ABMON_9 = 41
ALTMON_1 = 58
ALTMON_10 = 67
ALTMON_11 = 68
ALTMON_12 = 69
ALTMON_2 = 59
ALTMON_3 = 60
ALTMON_4 = 61
ALTMON_5 = 62
ALTMON_6 = 63
ALTMON_7 = 64
ALTMON_8 = 65
ALTMON_9 = 66
ALT_DIGITS = 49
AM_STR = 5
CODESET = 0
CRNCYSTR = 56
DAY_1 = 7
DAY_2 = 8
DAY_3 = 9
DAY_4 = 10
DAY_5 = 11
DAY_6 = 12
DAY_7 = 13
D_FMT = 2
D_MD_ORDER = 57
D_T_FMT = 1
ERA = 45
ERA_D_FMT = 46
ERA_D_T_FMT = 47
ERA_T_FMT = 48
MON_1 = 21
MON_10 = 30
MON_11 = 31
MON_12 = 32
MON_2 = 22
MON_3 = 23
MON_4 = 24
MON_5 = 25
MON_6 = 26
MON_7 = 27
MON_8 = 28
MON_9 = 29
NOEXPR = 53
NOSTR = 55
PM_STR = 6
RADIXCHAR = 50
THOUSEP = 51
T_FMT = 3
T_FMT_AMPM = 4
YESEXPR = 52
YESSTR = 54
X_FILE_OFFSET_BITS = 64
X_ILP32 = 1
X_LANGINFO_H_ = 0
X_LOCALE_T_DEFINED = 0
X_MACHINE__LIMITS_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_NL_ITEM_DECLARED = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_SYS_CDEFS_H_ = 0
X_SYS__TYPES_H_ = 0
X_XLOCALE_LANGINFO_H = 0
I386 = 1
Unix = 1
ABDAY_1 = 14 // langinfo.h:60:1:
ABDAY_2 = 15 // langinfo.h:61:1:
ABDAY_3 = 16 // langinfo.h:62:1:
ABDAY_4 = 17 // langinfo.h:63:1:
ABDAY_5 = 18 // langinfo.h:64:1:
ABDAY_6 = 19 // langinfo.h:65:1:
ABDAY_7 = 20 // langinfo.h:66:1:
ABMON_1 = 33 // langinfo.h:83:1:
ABMON_10 = 42 // langinfo.h:92:1:
ABMON_11 = 43 // langinfo.h:93:1:
ABMON_12 = 44 // langinfo.h:94:1:
ABMON_2 = 34 // langinfo.h:84:1:
ABMON_3 = 35 // langinfo.h:85:1:
ABMON_4 = 36 // langinfo.h:86:1:
ABMON_5 = 37 // langinfo.h:87:1:
ABMON_6 = 38 // langinfo.h:88:1:
ABMON_7 = 39 // langinfo.h:89:1:
ABMON_8 = 40 // langinfo.h:90:1:
ABMON_9 = 41 // langinfo.h:91:1:
ALTMON_1 = 58 // langinfo.h:120:1:
ALTMON_10 = 67 // langinfo.h:129:1:
ALTMON_11 = 68 // langinfo.h:130:1:
ALTMON_12 = 69 // langinfo.h:131:1:
ALTMON_2 = 59 // langinfo.h:121:1:
ALTMON_3 = 60 // langinfo.h:122:1:
ALTMON_4 = 61 // langinfo.h:123:1:
ALTMON_5 = 62 // langinfo.h:124:1:
ALTMON_6 = 63 // langinfo.h:125:1:
ALTMON_7 = 64 // langinfo.h:126:1:
ALTMON_8 = 65 // langinfo.h:127:1:
ALTMON_9 = 66 // langinfo.h:128:1:
ALT_DIGITS = 49 // langinfo.h:100:1:
AM_STR = 5 // langinfo.h:47:1:
CODESET = 0 // langinfo.h:42:1:
CRNCYSTR = 56 // langinfo.h:113:1:
DAY_1 = 7 // langinfo.h:51:1:
DAY_2 = 8 // langinfo.h:52:1:
DAY_3 = 9 // langinfo.h:53:1:
DAY_4 = 10 // langinfo.h:54:1:
DAY_5 = 11 // langinfo.h:55:1:
DAY_6 = 12 // langinfo.h:56:1:
DAY_7 = 13 // langinfo.h:57:1:
D_FMT = 2 // langinfo.h:44:1:
D_MD_ORDER = 57 // langinfo.h:116:1:
D_T_FMT = 1 // langinfo.h:43:1:
ERA = 45 // langinfo.h:96:1:
ERA_D_FMT = 46 // langinfo.h:97:1:
ERA_D_T_FMT = 47 // langinfo.h:98:1:
ERA_T_FMT = 48 // langinfo.h:99:1:
MON_1 = 21 // langinfo.h:69:1:
MON_10 = 30 // langinfo.h:78:1:
MON_11 = 31 // langinfo.h:79:1:
MON_12 = 32 // langinfo.h:80:1:
MON_2 = 22 // langinfo.h:70:1:
MON_3 = 23 // langinfo.h:71:1:
MON_4 = 24 // langinfo.h:72:1:
MON_5 = 25 // langinfo.h:73:1:
MON_6 = 26 // langinfo.h:74:1:
MON_7 = 27 // langinfo.h:75:1:
MON_8 = 28 // langinfo.h:76:1:
MON_9 = 29 // langinfo.h:77:1:
NOEXPR = 53 // langinfo.h:106:1:
NOSTR = 55 // langinfo.h:110:1:
PM_STR = 6 // langinfo.h:48:1:
RADIXCHAR = 50 // langinfo.h:102:1:
THOUSEP = 51 // langinfo.h:103:1:
T_FMT = 3 // langinfo.h:45:1:
T_FMT_AMPM = 4 // langinfo.h:46:1:
YESEXPR = 52 // langinfo.h:105:1:
YESSTR = 54 // langinfo.h:109:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_ILP32 = 1 // <predefined>:1:1:
X_LANGINFO_H_ = 0 // langinfo.h:32:1:
X_LOCALE_T_DEFINED = 0 // _langinfo.h:38:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_NL_ITEM_DECLARED = 0 // langinfo.h:39:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_XLOCALE_LANGINFO_H = 0 // _langinfo.h:35:1:
I386 = 1 // <predefined>:335:1:
Unix = 1 // <predefined>:336:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo langinfo/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o langinfo/langinfo_freebsd_amd64.go -pkgname langinfo', DO NOT EDIT.
// Code generated by 'ccgo langinfo/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_freebsd_amd64.go -pkgname langinfo', DO NOT EDIT.
package langinfo
@ -15,90 +15,90 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
ABDAY_1 = 14
ABDAY_2 = 15
ABDAY_3 = 16
ABDAY_4 = 17
ABDAY_5 = 18
ABDAY_6 = 19
ABDAY_7 = 20
ABMON_1 = 33
ABMON_10 = 42
ABMON_11 = 43
ABMON_12 = 44
ABMON_2 = 34
ABMON_3 = 35
ABMON_4 = 36
ABMON_5 = 37
ABMON_6 = 38
ABMON_7 = 39
ABMON_8 = 40
ABMON_9 = 41
ALTMON_1 = 58
ALTMON_10 = 67
ALTMON_11 = 68
ALTMON_12 = 69
ALTMON_2 = 59
ALTMON_3 = 60
ALTMON_4 = 61
ALTMON_5 = 62
ALTMON_6 = 63
ALTMON_7 = 64
ALTMON_8 = 65
ALTMON_9 = 66
ALT_DIGITS = 49
AM_STR = 5
CODESET = 0
CRNCYSTR = 56
DAY_1 = 7
DAY_2 = 8
DAY_3 = 9
DAY_4 = 10
DAY_5 = 11
DAY_6 = 12
DAY_7 = 13
D_FMT = 2
D_MD_ORDER = 57
D_T_FMT = 1
ERA = 45
ERA_D_FMT = 46
ERA_D_T_FMT = 47
ERA_T_FMT = 48
MON_1 = 21
MON_10 = 30
MON_11 = 31
MON_12 = 32
MON_2 = 22
MON_3 = 23
MON_4 = 24
MON_5 = 25
MON_6 = 26
MON_7 = 27
MON_8 = 28
MON_9 = 29
NOEXPR = 53
NOSTR = 55
PM_STR = 6
RADIXCHAR = 50
THOUSEP = 51
T_FMT = 3
T_FMT_AMPM = 4
YESEXPR = 52
YESSTR = 54
X_FILE_OFFSET_BITS = 64
X_LANGINFO_H_ = 0
X_LOCALE_T_DEFINED = 0
X_LP64 = 1
X_MACHINE__LIMITS_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_NL_ITEM_DECLARED = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_SYS_CDEFS_H_ = 0
X_SYS__TYPES_H_ = 0
X_XLOCALE_LANGINFO_H = 0
Unix = 1
ABDAY_1 = 14 // langinfo.h:60:1:
ABDAY_2 = 15 // langinfo.h:61:1:
ABDAY_3 = 16 // langinfo.h:62:1:
ABDAY_4 = 17 // langinfo.h:63:1:
ABDAY_5 = 18 // langinfo.h:64:1:
ABDAY_6 = 19 // langinfo.h:65:1:
ABDAY_7 = 20 // langinfo.h:66:1:
ABMON_1 = 33 // langinfo.h:83:1:
ABMON_10 = 42 // langinfo.h:92:1:
ABMON_11 = 43 // langinfo.h:93:1:
ABMON_12 = 44 // langinfo.h:94:1:
ABMON_2 = 34 // langinfo.h:84:1:
ABMON_3 = 35 // langinfo.h:85:1:
ABMON_4 = 36 // langinfo.h:86:1:
ABMON_5 = 37 // langinfo.h:87:1:
ABMON_6 = 38 // langinfo.h:88:1:
ABMON_7 = 39 // langinfo.h:89:1:
ABMON_8 = 40 // langinfo.h:90:1:
ABMON_9 = 41 // langinfo.h:91:1:
ALTMON_1 = 58 // langinfo.h:120:1:
ALTMON_10 = 67 // langinfo.h:129:1:
ALTMON_11 = 68 // langinfo.h:130:1:
ALTMON_12 = 69 // langinfo.h:131:1:
ALTMON_2 = 59 // langinfo.h:121:1:
ALTMON_3 = 60 // langinfo.h:122:1:
ALTMON_4 = 61 // langinfo.h:123:1:
ALTMON_5 = 62 // langinfo.h:124:1:
ALTMON_6 = 63 // langinfo.h:125:1:
ALTMON_7 = 64 // langinfo.h:126:1:
ALTMON_8 = 65 // langinfo.h:127:1:
ALTMON_9 = 66 // langinfo.h:128:1:
ALT_DIGITS = 49 // langinfo.h:100:1:
AM_STR = 5 // langinfo.h:47:1:
CODESET = 0 // langinfo.h:42:1:
CRNCYSTR = 56 // langinfo.h:113:1:
DAY_1 = 7 // langinfo.h:51:1:
DAY_2 = 8 // langinfo.h:52:1:
DAY_3 = 9 // langinfo.h:53:1:
DAY_4 = 10 // langinfo.h:54:1:
DAY_5 = 11 // langinfo.h:55:1:
DAY_6 = 12 // langinfo.h:56:1:
DAY_7 = 13 // langinfo.h:57:1:
D_FMT = 2 // langinfo.h:44:1:
D_MD_ORDER = 57 // langinfo.h:116:1:
D_T_FMT = 1 // langinfo.h:43:1:
ERA = 45 // langinfo.h:96:1:
ERA_D_FMT = 46 // langinfo.h:97:1:
ERA_D_T_FMT = 47 // langinfo.h:98:1:
ERA_T_FMT = 48 // langinfo.h:99:1:
MON_1 = 21 // langinfo.h:69:1:
MON_10 = 30 // langinfo.h:78:1:
MON_11 = 31 // langinfo.h:79:1:
MON_12 = 32 // langinfo.h:80:1:
MON_2 = 22 // langinfo.h:70:1:
MON_3 = 23 // langinfo.h:71:1:
MON_4 = 24 // langinfo.h:72:1:
MON_5 = 25 // langinfo.h:73:1:
MON_6 = 26 // langinfo.h:74:1:
MON_7 = 27 // langinfo.h:75:1:
MON_8 = 28 // langinfo.h:76:1:
MON_9 = 29 // langinfo.h:77:1:
NOEXPR = 53 // langinfo.h:106:1:
NOSTR = 55 // langinfo.h:110:1:
PM_STR = 6 // langinfo.h:48:1:
RADIXCHAR = 50 // langinfo.h:102:1:
THOUSEP = 51 // langinfo.h:103:1:
T_FMT = 3 // langinfo.h:45:1:
T_FMT_AMPM = 4 // langinfo.h:46:1:
YESEXPR = 52 // langinfo.h:105:1:
YESSTR = 54 // langinfo.h:109:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LANGINFO_H_ = 0 // langinfo.h:32:1:
X_LOCALE_T_DEFINED = 0 // _langinfo.h:38:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_NL_ITEM_DECLARED = 0 // langinfo.h:39:1:
X_Nonnull = 0 // cdefs.h:783:1:
X_Null_unspecified = 0 // cdefs.h:785:1:
X_Nullable = 0 // cdefs.h:784:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_XLOCALE_LANGINFO_H = 0 // _langinfo.h:35:1:
Unix = 1 // <predefined>:337:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo langinfo/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o langinfo/langinfo_netbsd_amd64.go -pkgname langinfo', DO NOT EDIT.
// Code generated by 'ccgo langinfo/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_netbsd_amd64.go -pkgname langinfo', DO NOT EDIT.
package langinfo
@ -15,15 +15,15 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
NL_CAT_LOCALE = 1
NL_SETD = 1
X_FILE_OFFSET_BITS = 64
X_LANGINFO_H_ = 0
X_LP64 = 1
X_NL_TYPES_H_ = 0
X_SYS_CDEFS_ELF_H_ = 0
X_SYS_CDEFS_H_ = 0
X_X86_64_CDEFS_H_ = 0
NL_CAT_LOCALE = 1 // nl_types.h:75:1:
NL_SETD = 1 // nl_types.h:74:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LANGINFO_H_ = 0 // langinfo.h:9:1:
X_LP64 = 1 // <predefined>:268:1:
X_NL_TYPES_H_ = 0 // nl_types.h:33:1:
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo langinfo/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o langinfo/langinfo_openbsd_amd64.go -pkgname langinfo', DO NOT EDIT.
// Code generated by 'ccgo langinfo/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_openbsd_amd64.go -pkgname langinfo', DO NOT EDIT.
package langinfo
@ -15,69 +15,69 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
ABDAY_1 = 13
ABDAY_2 = 14
ABDAY_3 = 15
ABDAY_4 = 16
ABDAY_5 = 17
ABDAY_6 = 18
ABDAY_7 = 19
ABMON_1 = 32
ABMON_10 = 41
ABMON_11 = 42
ABMON_12 = 43
ABMON_2 = 33
ABMON_3 = 34
ABMON_4 = 35
ABMON_5 = 36
ABMON_6 = 37
ABMON_7 = 38
ABMON_8 = 39
ABMON_9 = 40
AM_STR = 4
CODESET = 51
CRNCYSTR = 50
DAY_1 = 6
DAY_2 = 7
DAY_3 = 8
DAY_4 = 9
DAY_5 = 10
DAY_6 = 11
DAY_7 = 12
D_FMT = 1
D_T_FMT = 0
MON_1 = 20
MON_10 = 29
MON_11 = 30
MON_12 = 31
MON_2 = 21
MON_3 = 22
MON_4 = 23
MON_5 = 24
MON_6 = 25
MON_7 = 26
MON_8 = 27
MON_9 = 28
NL_CAT_LOCALE = 1
NL_SETD = 1
NOEXPR = 49
NOSTR = 48
PM_STR = 5
RADIXCHAR = 44
THOUSEP = 45
T_FMT = 2
T_FMT_AMPM = 3
YESEXPR = 47
YESSTR = 46
X_FILE_OFFSET_BITS = 64
X_LANGINFO_H_ = 0
X_LOCALE_T_DEFINED_ = 0
X_LP64 = 1
X_MACHINE_CDEFS_H_ = 0
X_NL_TYPES_H_ = 0
X_RET_PROTECTOR = 1
X_SYS_CDEFS_H_ = 0
Unix = 1
ABDAY_1 = 13 // langinfo.h:29:1:
ABDAY_2 = 14 // langinfo.h:30:1:
ABDAY_3 = 15 // langinfo.h:31:1:
ABDAY_4 = 16 // langinfo.h:32:1:
ABDAY_5 = 17 // langinfo.h:33:1:
ABDAY_6 = 18 // langinfo.h:34:1:
ABDAY_7 = 19 // langinfo.h:35:1:
ABMON_1 = 32 // langinfo.h:50:1:
ABMON_10 = 41 // langinfo.h:59:1:
ABMON_11 = 42 // langinfo.h:60:1:
ABMON_12 = 43 // langinfo.h:61:1:
ABMON_2 = 33 // langinfo.h:51:1:
ABMON_3 = 34 // langinfo.h:52:1:
ABMON_4 = 35 // langinfo.h:53:1:
ABMON_5 = 36 // langinfo.h:54:1:
ABMON_6 = 37 // langinfo.h:55:1:
ABMON_7 = 38 // langinfo.h:56:1:
ABMON_8 = 39 // langinfo.h:57:1:
ABMON_9 = 40 // langinfo.h:58:1:
AM_STR = 4 // langinfo.h:18:1:
CODESET = 51 // langinfo.h:71:1:
CRNCYSTR = 50 // langinfo.h:69:1:
DAY_1 = 6 // langinfo.h:21:1:
DAY_2 = 7 // langinfo.h:22:1:
DAY_3 = 8 // langinfo.h:23:1:
DAY_4 = 9 // langinfo.h:24:1:
DAY_5 = 10 // langinfo.h:25:1:
DAY_6 = 11 // langinfo.h:26:1:
DAY_7 = 12 // langinfo.h:27:1:
D_FMT = 1 // langinfo.h:15:1:
D_T_FMT = 0 // langinfo.h:14:1:
MON_1 = 20 // langinfo.h:37:1:
MON_10 = 29 // langinfo.h:46:1:
MON_11 = 30 // langinfo.h:47:1:
MON_12 = 31 // langinfo.h:48:1:
MON_2 = 21 // langinfo.h:38:1:
MON_3 = 22 // langinfo.h:39:1:
MON_4 = 23 // langinfo.h:40:1:
MON_5 = 24 // langinfo.h:41:1:
MON_6 = 25 // langinfo.h:42:1:
MON_7 = 26 // langinfo.h:43:1:
MON_8 = 27 // langinfo.h:44:1:
MON_9 = 28 // langinfo.h:45:1:
NL_CAT_LOCALE = 1 // nl_types.h:76:1:
NL_SETD = 1 // nl_types.h:75:1:
NOEXPR = 49 // langinfo.h:68:1:
NOSTR = 48 // langinfo.h:67:1:
PM_STR = 5 // langinfo.h:19:1:
RADIXCHAR = 44 // langinfo.h:63:1:
THOUSEP = 45 // langinfo.h:64:1:
T_FMT = 2 // langinfo.h:16:1:
T_FMT_AMPM = 3 // langinfo.h:17:1:
YESEXPR = 47 // langinfo.h:66:1:
YESSTR = 46 // langinfo.h:65:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LANGINFO_H_ = 0 // langinfo.h:10:1:
X_LOCALE_T_DEFINED_ = 0 // langinfo.h:75:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
X_NL_TYPES_H_ = 0 // nl_types.h:34:1:
X_RET_PROTECTOR = 1 // <predefined>:2:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
Unix = 1 // <predefined>:340:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

4
vendor/modernc.org/libc/libc64.go generated vendored
View File

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build amd64 || arm64 || riscv64 || s390x
// +build amd64 arm64 riscv64 s390x
//go:build amd64 || arm64 || ppc64le || riscv64 || s390x
// +build amd64 arm64 ppc64le riscv64 s390x
package libc // import "modernc.org/libc"

View File

@ -2028,3 +2028,18 @@ func X__sincospif_stret(t *TLS, f float32) struct{ F__sinval, F__cosval float32
func X__sincospi_stret(t *TLS, f float64) struct{ F__sinval, F__cosval float64 } {
panic(todo(""))
}
// int __srget(FILE *);
func X__srget(t *TLS, f uintptr) int32 {
panic(todo(""))
}
// int __svfscanf(FILE *, const char *, va_list) __scanflike(2, 0);
func X__svfscanf(t *TLS, f uintptr, p, q uintptr) int32 {
panic(todo(""))
}
// int __swbuf(int, FILE *);
func X__swbuf(t *TLS, i int32, f uintptr) int32 {
panic(todo(""))
}

View File

@ -1507,3 +1507,5 @@ func Xuuid_parse(t *TLS, in uintptr, uu uintptr) int32 {
copy((*RawMem)(unsafe.Pointer(uu))[:unsafe.Sizeof(uuid.Uuid_t{})], r[:])
return 0
}
func X__srget(t *TLS, stream uintptr) int32 { return Xgetc(t, stream) }

View File

@ -630,8 +630,6 @@ func Xopendir(t *TLS, name uintptr) uintptr {
return p
}
func X__srget(t *TLS, stream uintptr) int32 { return Xgetc(t, stream) }
// int chflags(const char *path, u_int flags);
func Xchflags(t *TLS, path uintptr, flags uint32) int32 {
if err := unix.Chflags(GoString(path), int(flags)); err != nil {

487
vendor/modernc.org/libc/libc_linux_ppc64le.go generated vendored Normal file
View File

@ -0,0 +1,487 @@
// Copyright 2020 The Libc Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package libc // import "modernc.org/libc"
import (
"os"
"strings"
"unicode"
"unsafe"
"golang.org/x/sys/unix"
"modernc.org/libc/errno"
"modernc.org/libc/fcntl"
"modernc.org/libc/signal"
"modernc.org/libc/sys/types"
"modernc.org/libc/wctype"
)
// int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact);
func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 {
// musl/arch/x86_64/ksigaction.h
//
// struct k_sigaction {
// void (*handler)(int);
// unsigned long flags;
// void (*restorer)(void);
// unsigned mask[2];
// };
type k_sigaction struct {
handler uintptr
flags ulong
restorer uintptr
mask [2]uint32
}
var kact, koldact uintptr
if act != 0 {
sz := int(unsafe.Sizeof(k_sigaction{}))
kact = t.Alloc(sz)
defer t.Free(sz)
*(*k_sigaction)(unsafe.Pointer(kact)) = k_sigaction{
handler: (*signal.Sigaction)(unsafe.Pointer(act)).F__sigaction_handler.Fsa_handler,
flags: ulong((*signal.Sigaction)(unsafe.Pointer(act)).Fsa_flags),
restorer: (*signal.Sigaction)(unsafe.Pointer(act)).Fsa_restorer,
}
Xmemcpy(t, kact+unsafe.Offsetof(k_sigaction{}.mask), act+unsafe.Offsetof(signal.Sigaction{}.Fsa_mask), types.Size_t(unsafe.Sizeof(k_sigaction{}.mask)))
}
if oldact != 0 {
panic(todo(""))
}
if _, _, err := unix.Syscall6(unix.SYS_RT_SIGACTION, uintptr(signum), kact, koldact, unsafe.Sizeof(k_sigaction{}.mask), 0, 0); err != 0 {
t.setErrno(err)
return -1
}
if oldact != 0 {
panic(todo(""))
}
return 0
}
// int fcntl(int fd, int cmd, ... /* arg */ );
func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 {
var arg uintptr
if args != 0 {
arg = *(*uintptr)(unsafe.Pointer(args))
}
switch cmd {
case unix.F_GETLK64: // 0xc
cmd = unix.F_GETLK // 0x5
case unix.F_SETLK64: // 0xd
cmd = unix.F_SETLK // 0x6
case unix.F_SETLKW64: // 0xe
cmd = unix.F_SETLKW // 0x7
}
if cmd == fcntl.F_SETFL {
arg |= unix.O_LARGEFILE
}
n, _, err := unix.Syscall(unix.SYS_FCNTL, uintptr(fd), uintptr(cmd), arg)
if err != 0 {
// if dmesgs {
// dmesg("%v: fd %v cmd %v", origin(1), fcntlCmdStr(fd), cmd)
// }
t.setErrno(err)
return -1
}
// if dmesgs {
// dmesg("%v: %d %s %#x: %d", origin(1), fd, fcntlCmdStr(cmd), arg, n)
// }
return int32(n)
}
// int lstat(const char *pathname, struct stat *statbuf);
func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 {
if _, _, err := unix.Syscall(unix.SYS_LSTAT, pathname, statbuf, 0); err != 0 {
// if dmesgs {
// dmesg("%v: %q: %v", origin(1), GoString(pathname), err)
// }
t.setErrno(err)
return -1
}
// if dmesgs {
// dmesg("%v: %q: ok", origin(1), GoString(pathname))
// }
return 0
}
// int stat(const char *pathname, struct stat *statbuf);
func Xstat64(t *TLS, pathname, statbuf uintptr) int32 {
if _, _, err := unix.Syscall(unix.SYS_STAT, pathname, statbuf, 0); err != 0 {
// if dmesgs {
// dmesg("%v: %q: %v", origin(1), GoString(pathname), err)
// }
t.setErrno(err)
return -1
}
// if dmesgs {
// dmesg("%v: %q: ok", origin(1), GoString(pathname))
// }
return 0
}
// int fstat(int fd, struct stat *statbuf);
func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 {
if _, _, err := unix.Syscall(unix.SYS_FSTAT, uintptr(fd), statbuf, 0); err != 0 {
// if dmesgs {
// dmesg("%v: fd %d: %v", origin(1), fd, err)
// }
t.setErrno(err)
return -1
}
// if dmesgs {
// dmesg("%v: %d size %#x: ok\n%+v", origin(1), fd, (*stat.Stat)(unsafe.Pointer(statbuf)).Fst_size, (*stat.Stat)(unsafe.Pointer(statbuf)))
// }
return 0
}
func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr {
return Xmmap64(t, addr, length, prot, flags, fd, offset)
}
// void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset);
func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr {
data, _, err := unix.Syscall6(unix.SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
if err != 0 {
// if dmesgs {
// dmesg("%v: %v", origin(1), err)
// }
t.setErrno(err)
return ^uintptr(0) // (void*)-1
}
// if dmesgs {
// dmesg("%v: %#x", origin(1), data)
// }
return data
}
// void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ... /* void *new_address */);
func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags int32, args uintptr) uintptr {
var arg uintptr
if args != 0 {
arg = *(*uintptr)(unsafe.Pointer(args))
}
data, _, err := unix.Syscall6(unix.SYS_MREMAP, old_address, uintptr(old_size), uintptr(new_size), uintptr(flags), arg, 0)
if err != 0 {
// if dmesgs {
// dmesg("%v: %v", origin(1), err)
// }
t.setErrno(err)
return ^uintptr(0) // (void*)-1
}
// if dmesgs {
// dmesg("%v: %#x", origin(1), data)
// }
return data
}
// int ftruncate(int fd, off_t length);
func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 {
if _, _, err := unix.Syscall(unix.SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0); err != 0 {
// if dmesgs {
// dmesg("%v: fd %d: %v", origin(1), fd, err)
// }
t.setErrno(err)
return -1
}
// if dmesgs {
// dmesg("%v: %d %#x: ok", origin(1), fd, length)
// }
return 0
}
// off64_t lseek64(int fd, off64_t offset, int whence);
func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t {
n, _, err := unix.Syscall(unix.SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
if err != 0 {
// if dmesgs {
// dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), fd, offset, whenceStr(whence), err)
// }
t.setErrno(err)
return -1
}
// if dmesgs {
// dmesg("%v: fd %v, off %#x, whence %v: %#x", origin(1), fd, offset, whenceStr(whence), n)
// }
return types.Off_t(n)
}
// int utime(const char *filename, const struct utimbuf *times);
func Xutime(t *TLS, filename, times uintptr) int32 {
if _, _, err := unix.Syscall(unix.SYS_UTIME, filename, times, 0); err != 0 {
t.setErrno(err)
return -1
}
return 0
}
// unsigned int alarm(unsigned int seconds);
func Xalarm(t *TLS, seconds uint32) uint32 {
n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0)
if err != 0 {
panic(todo(""))
}
return uint32(n)
}
// time_t time(time_t *tloc);
func Xtime(t *TLS, tloc uintptr) types.Time_t {
n, _, err := unix.Syscall(unix.SYS_TIME, tloc, 0, 0)
if err != 0 {
t.setErrno(err)
return types.Time_t(-1)
}
if tloc != 0 {
*(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n)
}
return types.Time_t(n)
}
// int getrlimit(int resource, struct rlimit *rlim);
func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 {
if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 {
t.setErrno(err)
return -1
}
return 0
}
// int mkdir(const char *path, mode_t mode);
func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 {
if _, _, err := unix.Syscall(unix.SYS_MKDIR, path, uintptr(mode), 0); err != 0 {
t.setErrno(err)
return -1
}
// if dmesgs {
// dmesg("%v: %q: ok", origin(1), GoString(path))
// }
return 0
}
// int symlink(const char *target, const char *linkpath);
func Xsymlink(t *TLS, target, linkpath uintptr) int32 {
if _, _, err := unix.Syscall(unix.SYS_SYMLINK, target, linkpath, 0); err != 0 {
t.setErrno(err)
return -1
}
// if dmesgs {
// dmesg("%v: %q %q: ok", origin(1), GoString(target), GoString(linkpath))
// }
return 0
}
// int chmod(const char *pathname, mode_t mode)
func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 {
if _, _, err := unix.Syscall(unix.SYS_CHMOD, pathname, uintptr(mode), 0); err != 0 {
t.setErrno(err)
return -1
}
// if dmesgs {
// dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode)
// }
return 0
}
// int utimes(const char *filename, const struct timeval times[2]);
func Xutimes(t *TLS, filename, times uintptr) int32 {
if _, _, err := unix.Syscall(unix.SYS_UTIMES, filename, times, 0); err != 0 {
t.setErrno(err)
return -1
}
// if dmesgs {
// dmesg("%v: %q: ok", origin(1), GoString(filename))
// }
return 0
}
// int unlink(const char *pathname);
func Xunlink(t *TLS, pathname uintptr) int32 {
if _, _, err := unix.Syscall(unix.SYS_UNLINK, pathname, 0, 0); err != 0 {
t.setErrno(err)
return -1
}
// if dmesgs {
// dmesg("%v: %q: ok", origin(1), GoString(pathname))
// }
return 0
}
// int access(const char *pathname, int mode);
func Xaccess(t *TLS, pathname uintptr, mode int32) int32 {
if _, _, err := unix.Syscall(unix.SYS_ACCESS, pathname, uintptr(mode), 0); err != 0 {
// if dmesgs {
// dmesg("%v: %q: %v", origin(1), GoString(pathname), err)
// }
t.setErrno(err)
return -1
}
// if dmesgs {
// dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode)
// }
return 0
}
// int rmdir(const char *pathname);
func Xrmdir(t *TLS, pathname uintptr) int32 {
if _, _, err := unix.Syscall(unix.SYS_RMDIR, pathname, 0, 0); err != 0 {
t.setErrno(err)
return -1
}
// if dmesgs {
// dmesg("%v: %q: ok", origin(1), GoString(pathname))
// }
return 0
}
// int rename(const char *oldpath, const char *newpath);
func Xrename(t *TLS, oldpath, newpath uintptr) int32 {
if _, _, err := unix.Syscall(unix.SYS_RENAME, oldpath, newpath, 0); err != 0 {
t.setErrno(err)
return -1
}
return 0
}
// int mknod(const char *pathname, mode_t mode, dev_t dev);
func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 {
if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 {
t.setErrno(err)
return -1
}
return 0
}
// int chown(const char *pathname, uid_t owner, gid_t group);
func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 {
if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 {
t.setErrno(err)
return -1
}
return 0
}
// int link(const char *oldpath, const char *newpath);
func Xlink(t *TLS, oldpath, newpath uintptr) int32 {
if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 {
t.setErrno(err)
return -1
}
return 0
}
// int pipe(int pipefd[2]);
func Xpipe(t *TLS, pipefd uintptr) int32 {
if _, _, err := unix.Syscall(unix.SYS_PIPE, pipefd, 0, 0); err != 0 {
t.setErrno(err)
return -1
}
return 0
}
// int dup2(int oldfd, int newfd);
func Xdup2(t *TLS, oldfd, newfd int32) int32 {
n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
if err != 0 {
t.setErrno(err)
return -1
}
return int32(n)
}
// ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize);
func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t {
n, _, err := unix.Syscall(unix.SYS_READLINK, path, buf, uintptr(bufsize))
if err != 0 {
t.setErrno(err)
return -1
}
return types.Ssize_t(n)
}
// FILE *fopen64(const char *pathname, const char *mode);
func Xfopen64(t *TLS, pathname, mode uintptr) uintptr {
m := strings.ReplaceAll(GoString(mode), "b", "")
var flags int
switch m {
case "r":
flags = os.O_RDONLY
case "r+":
flags = os.O_RDWR
case "w":
flags = os.O_WRONLY | os.O_CREATE | os.O_TRUNC
case "w+":
flags = os.O_RDWR | os.O_CREATE | os.O_TRUNC
case "a":
flags = os.O_WRONLY | os.O_CREATE | os.O_APPEND
case "a+":
flags = os.O_RDWR | os.O_CREATE | os.O_APPEND
default:
panic(m)
}
//TODO- flags |= fcntl.O_LARGEFILE
fd, _, err := unix.Syscall(unix.SYS_OPEN, pathname, uintptr(flags|unix.O_LARGEFILE), 0666)
if err != 0 {
t.setErrno(err)
return 0
}
if p := newFile(t, int32(fd)); p != 0 {
return p
}
Xclose(t, int32(fd))
t.setErrno(errno.ENOMEM)
return 0
}
// int iswspace(wint_t wc);
func Xiswspace(t *TLS, wc wctype.Wint_t) int32 {
return Bool32(unicode.IsSpace(rune(wc)))
}
// int iswalnum(wint_t wc);
func Xiswalnum(t *TLS, wc wctype.Wint_t) int32 {
return Bool32(unicode.IsLetter(rune(wc)) || unicode.IsNumber(rune(wc)))
}
func __syscall1(t *TLS, trap, p1 long) long {
return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), 0, 0))
}
func __syscall3(t *TLS, trap, p1, p2, p3 long) long {
return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3)))
}
func __syscall4(t *TLS, trap, p1, p2, p3, p4 long) long {
return __syscall(unix.Syscall6(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3), uintptr(p4), 0, 0))
}

View File

@ -1592,3 +1592,5 @@ func Xuuid_parse(t *TLS, in uintptr, uu uintptr) int32 {
copy((*RawMem)(unsafe.Pointer(uu))[:unsafe.Sizeof(uuid.Uuid_t{})], r[:])
return 0
}
func X__srget(t *TLS, stream uintptr) int32 { return Xgetc(t, stream) }

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo limits/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o limits/limits_freebsd_386.go -pkgname limits', DO NOT EDIT.
// Code generated by 'ccgo limits/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_freebsd_386.go -pkgname limits', DO NOT EDIT.
package limits

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo limits/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o limits/limits_freebsd_amd64.go -pkgname limits', DO NOT EDIT.
// Code generated by 'ccgo limits/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_freebsd_amd64.go -pkgname limits', DO NOT EDIT.
package limits

5
vendor/modernc.org/libc/limits/capi_linux_ppc64le.go generated vendored Normal file
View File

@ -0,0 +1,5 @@
// Code generated by 'ccgo limits/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_linux_ppc64le.go -pkgname limits', DO NOT EDIT.
package limits
var CAPI = map[string]struct{}{}

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo limits/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o limits/limits_netbsd_amd64.go -pkgname limits', DO NOT EDIT.
// Code generated by 'ccgo limits/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_netbsd_amd64.go -pkgname limits', DO NOT EDIT.
package limits

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo limits/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o limits/limits_openbsd_amd64.go -pkgname limits', DO NOT EDIT.
// Code generated by 'ccgo limits/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_openbsd_amd64.go -pkgname limits', DO NOT EDIT.
package limits

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo limits/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o limits/limits_freebsd_386.go -pkgname limits', DO NOT EDIT.
// Code generated by 'ccgo limits/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_freebsd_386.go -pkgname limits', DO NOT EDIT.
package limits
@ -15,126 +15,126 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
ARG_MAX = 262144
BC_BASE_MAX = 99
BC_DIM_MAX = 2048
BC_SCALE_MAX = 99
BC_STRING_MAX = 1000
CHARCLASS_NAME_MAX = 14
CHAR_BIT = 8
CHAR_MAX = 127
CHAR_MIN = -128
CHILD_MAX = 40
COLL_WEIGHTS_MAX = 10
EXPR_NEST_MAX = 32
GID_MAX = 4294967295
INT_MAX = 2147483647
INT_MIN = -2147483648
IOV_MAX = 1024
LINE_MAX = 2048
LLONG_MAX = 9223372036854775807
LLONG_MIN = -9223372036854775808
LONG_BIT = 32
LONG_MAX = 2147483647
LONG_MIN = -2147483648
MAX_CANON = 255
MAX_INPUT = 255
MB_LEN_MAX = 6
MQ_PRIO_MAX = 64
NAME_MAX = 255
NGROUPS_MAX = 1023
NL_ARGMAX = 4096
NL_LANGMAX = 31
NL_MSGMAX = 32767
NL_NMAX = 1
NL_SETMAX = 255
NL_TEXTMAX = 2048
OFF_MAX = 9223372036854775807
OFF_MIN = -9223372036854775808
OPEN_MAX = 64
PASS_MAX = 128
PATH_MAX = 1024
PIPE_BUF = 512
QUAD_MAX = 9223372036854775807
QUAD_MIN = -9223372036854775808
RE_DUP_MAX = 255
SCHAR_MAX = 127
SCHAR_MIN = -128
SHRT_MAX = 32767
SHRT_MIN = -32768
SIZE_T_MAX = 4294967295
SSIZE_MAX = 2147483647
UCHAR_MAX = 255
UID_MAX = 4294967295
UINT_MAX = 4294967295
ULLONG_MAX = 18446744073709551615
ULONG_MAX = 4294967295
UQUAD_MAX = 18446744073709551615
USHRT_MAX = 65535
WORD_BIT = 32
X_FILE_OFFSET_BITS = 64
X_ILP32 = 1
X_LIMITS_H_ = 0
X_MACHINE__LIMITS_H_ = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_POSIX2_BC_BASE_MAX = 99
X_POSIX2_BC_DIM_MAX = 2048
X_POSIX2_BC_SCALE_MAX = 99
X_POSIX2_BC_STRING_MAX = 1000
X_POSIX2_CHARCLASS_NAME_MAX = 14
X_POSIX2_COLL_WEIGHTS_MAX = 2
X_POSIX2_EQUIV_CLASS_MAX = 2
X_POSIX2_EXPR_NEST_MAX = 32
X_POSIX2_LINE_MAX = 2048
X_POSIX2_RE_DUP_MAX = 255
X_POSIX_AIO_LISTIO_MAX = 2
X_POSIX_AIO_MAX = 1
X_POSIX_ARG_MAX = 4096
X_POSIX_CHILD_MAX = 25
X_POSIX_CLOCKRES_MIN = 20000000
X_POSIX_DELAYTIMER_MAX = 32
X_POSIX_HOST_NAME_MAX = 255
X_POSIX_LINK_MAX = 8
X_POSIX_LOGIN_NAME_MAX = 9
X_POSIX_MAX_CANON = 255
X_POSIX_MAX_INPUT = 255
X_POSIX_MQ_OPEN_MAX = 8
X_POSIX_MQ_PRIO_MAX = 32
X_POSIX_NAME_MAX = 14
X_POSIX_NGROUPS_MAX = 8
X_POSIX_OPEN_MAX = 20
X_POSIX_PATH_MAX = 256
X_POSIX_PIPE_BUF = 512
X_POSIX_RE_DUP_MAX = 255
X_POSIX_RTSIG_MAX = 8
X_POSIX_SEM_NSEMS_MAX = 256
X_POSIX_SEM_VALUE_MAX = 32767
X_POSIX_SIGQUEUE_MAX = 32
X_POSIX_SSIZE_MAX = 32767
X_POSIX_SS_REPL_MAX = 4
X_POSIX_STREAM_MAX = 8
X_POSIX_SYMLINK_MAX = 255
X_POSIX_SYMLOOP_MAX = 8
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
X_POSIX_THREAD_KEYS_MAX = 128
X_POSIX_THREAD_THREADS_MAX = 64
X_POSIX_TIMER_MAX = 32
X_POSIX_TRACE_EVENT_NAME_MAX = 30
X_POSIX_TRACE_NAME_MAX = 8
X_POSIX_TRACE_SYS_MAX = 8
X_POSIX_TRACE_USER_EVENT_MAX = 32
X_POSIX_TTY_NAME_MAX = 9
X_POSIX_TZNAME_MAX = 6
X_SYS_CDEFS_H_ = 0
X_SYS_LIMITS_H_ = 0
X_SYS_SYSLIMITS_H_ = 0
X_XOPEN_IOV_MAX = 16
X_XOPEN_NAME_MAX = 255
X_XOPEN_PATH_MAX = 1024
I386 = 1
Unix = 1
ARG_MAX = 262144 // syslimits.h:54:1:
BC_BASE_MAX = 99 // limits.h:65:1:
BC_DIM_MAX = 2048 // limits.h:66:1:
BC_SCALE_MAX = 99 // limits.h:67:1:
BC_STRING_MAX = 1000 // limits.h:68:1:
CHARCLASS_NAME_MAX = 14 // limits.h:69:1:
CHAR_BIT = 8 // limits.h:40:1:
CHAR_MAX = 127 // limits.h:51:1:
CHAR_MIN = -128 // limits.h:52:1:
CHILD_MAX = 40 // syslimits.h:57:1:
COLL_WEIGHTS_MAX = 10 // limits.h:70:1:
EXPR_NEST_MAX = 32 // limits.h:71:1:
GID_MAX = 4294967295 // limits.h:85:1:
INT_MAX = 2147483647 // limits.h:60:1:
INT_MIN = -2147483648 // limits.h:61:1:
IOV_MAX = 1024 // syslimits.h:70:1:
LINE_MAX = 2048 // limits.h:72:1:
LLONG_MAX = 9223372036854775807 // limits.h:69:1:
LLONG_MIN = -9223372036854775808 // limits.h:70:1:
LONG_BIT = 32 // limits.h:94:1:
LONG_MAX = 2147483647 // limits.h:64:1:
LONG_MIN = -2147483648 // limits.h:65:1:
MAX_CANON = 255 // syslimits.h:59:1:
MAX_INPUT = 255 // syslimits.h:60:1:
MB_LEN_MAX = 6 // limits.h:141:1:
MQ_PRIO_MAX = 64 // limits.h:99:1:
NAME_MAX = 255 // syslimits.h:61:1:
NGROUPS_MAX = 1023 // syslimits.h:63:1:
NL_ARGMAX = 4096 // limits.h:125:1:
NL_LANGMAX = 31 // limits.h:137:1:
NL_MSGMAX = 32767 // limits.h:126:1:
NL_NMAX = 1 // limits.h:138:1:
NL_SETMAX = 255 // limits.h:127:1:
NL_TEXTMAX = 2048 // limits.h:128:1:
OFF_MAX = 9223372036854775807 // limits.h:80:1:
OFF_MIN = -9223372036854775808 // limits.h:81:1:
OPEN_MAX = 64 // syslimits.h:66:1:
PASS_MAX = 128 // limits.h:135:1:
PATH_MAX = 1024 // syslimits.h:68:1:
PIPE_BUF = 512 // syslimits.h:69:1:
QUAD_MAX = 9223372036854775807 // limits.h:89:1:
QUAD_MIN = -9223372036854775808 // limits.h:90:1:
RE_DUP_MAX = 255 // limits.h:73:1:
SCHAR_MAX = 127 // limits.h:42:1:
SCHAR_MIN = -128 // limits.h:43:1:
SHRT_MAX = 32767 // limits.h:56:1:
SHRT_MIN = -32768 // limits.h:57:1:
SIZE_T_MAX = 4294967295 // limits.h:78:1:
SSIZE_MAX = 2147483647 // limits.h:74:1:
UCHAR_MAX = 255 // limits.h:45:1:
UID_MAX = 4294967295 // limits.h:86:1:
UINT_MAX = 4294967295 // limits.h:59:1:
ULLONG_MAX = 18446744073709551615 // limits.h:68:1:
ULONG_MAX = 4294967295 // limits.h:63:1:
UQUAD_MAX = 18446744073709551615 // limits.h:88:1:
USHRT_MAX = 65535 // limits.h:55:1:
WORD_BIT = 32 // limits.h:95:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_ILP32 = 1 // <predefined>:1:1:
X_LIMITS_H_ = 0 // limits.h:36:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_POSIX2_BC_BASE_MAX = 99 // limits.h:75:1:
X_POSIX2_BC_DIM_MAX = 2048 // limits.h:76:1:
X_POSIX2_BC_SCALE_MAX = 99 // limits.h:77:1:
X_POSIX2_BC_STRING_MAX = 1000 // limits.h:78:1:
X_POSIX2_CHARCLASS_NAME_MAX = 14 // limits.h:79:1:
X_POSIX2_COLL_WEIGHTS_MAX = 2 // limits.h:80:1:
X_POSIX2_EQUIV_CLASS_MAX = 2 // limits.h:81:1:
X_POSIX2_EXPR_NEST_MAX = 32 // limits.h:82:1:
X_POSIX2_LINE_MAX = 2048 // limits.h:83:1:
X_POSIX2_RE_DUP_MAX = 255 // limits.h:84:1:
X_POSIX_AIO_LISTIO_MAX = 2 // limits.h:89:1:
X_POSIX_AIO_MAX = 1 // limits.h:90:1:
X_POSIX_ARG_MAX = 4096 // limits.h:41:1:
X_POSIX_CHILD_MAX = 25 // limits.h:51:1:
X_POSIX_CLOCKRES_MIN = 20000000 // limits.h:100:1:
X_POSIX_DELAYTIMER_MAX = 32 // limits.h:91:1:
X_POSIX_HOST_NAME_MAX = 255 // limits.h:110:1:
X_POSIX_LINK_MAX = 8 // limits.h:42:1:
X_POSIX_LOGIN_NAME_MAX = 9 // limits.h:111:1:
X_POSIX_MAX_CANON = 255 // limits.h:43:1:
X_POSIX_MAX_INPUT = 255 // limits.h:44:1:
X_POSIX_MQ_OPEN_MAX = 8 // limits.h:92:1:
X_POSIX_MQ_PRIO_MAX = 32 // limits.h:93:1:
X_POSIX_NAME_MAX = 14 // limits.h:45:1:
X_POSIX_NGROUPS_MAX = 8 // limits.h:52:1:
X_POSIX_OPEN_MAX = 20 // limits.h:53:1:
X_POSIX_PATH_MAX = 256 // limits.h:54:1:
X_POSIX_PIPE_BUF = 512 // limits.h:46:1:
X_POSIX_RE_DUP_MAX = 255 // limits.h:121:1:
X_POSIX_RTSIG_MAX = 8 // limits.h:94:1:
X_POSIX_SEM_NSEMS_MAX = 256 // limits.h:95:1:
X_POSIX_SEM_VALUE_MAX = 32767 // limits.h:96:1:
X_POSIX_SIGQUEUE_MAX = 32 // limits.h:97:1:
X_POSIX_SSIZE_MAX = 32767 // limits.h:47:1:
X_POSIX_SS_REPL_MAX = 4 // limits.h:112:1:
X_POSIX_STREAM_MAX = 8 // limits.h:48:1:
X_POSIX_SYMLINK_MAX = 255 // limits.h:113:1:
X_POSIX_SYMLOOP_MAX = 8 // limits.h:114:1:
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // limits.h:104:1:
X_POSIX_THREAD_KEYS_MAX = 128 // limits.h:105:1:
X_POSIX_THREAD_THREADS_MAX = 64 // limits.h:106:1:
X_POSIX_TIMER_MAX = 32 // limits.h:98:1:
X_POSIX_TRACE_EVENT_NAME_MAX = 30 // limits.h:115:1:
X_POSIX_TRACE_NAME_MAX = 8 // limits.h:116:1:
X_POSIX_TRACE_SYS_MAX = 8 // limits.h:117:1:
X_POSIX_TRACE_USER_EVENT_MAX = 32 // limits.h:118:1:
X_POSIX_TTY_NAME_MAX = 9 // limits.h:119:1:
X_POSIX_TZNAME_MAX = 6 // limits.h:55:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_LIMITS_H_ = 0 // limits.h:35:1:
X_SYS_SYSLIMITS_H_ = 0 // syslimits.h:36:1:
X_XOPEN_IOV_MAX = 16 // limits.h:132:1:
X_XOPEN_NAME_MAX = 255 // limits.h:133:1:
X_XOPEN_PATH_MAX = 1024 // limits.h:134:1:
I386 = 1 // <predefined>:335:1:
Unix = 1 // <predefined>:336:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo limits/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o limits/limits_freebsd_amd64.go -pkgname limits', DO NOT EDIT.
// Code generated by 'ccgo limits/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_freebsd_amd64.go -pkgname limits', DO NOT EDIT.
package limits
@ -15,125 +15,125 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
ARG_MAX = 524288
BC_BASE_MAX = 99
BC_DIM_MAX = 2048
BC_SCALE_MAX = 99
BC_STRING_MAX = 1000
CHARCLASS_NAME_MAX = 14
CHAR_BIT = 8
CHAR_MAX = 127
CHAR_MIN = -128
CHILD_MAX = 40
COLL_WEIGHTS_MAX = 10
EXPR_NEST_MAX = 32
GID_MAX = 4294967295
INT_MAX = 2147483647
INT_MIN = -2147483648
IOV_MAX = 1024
LINE_MAX = 2048
LLONG_MAX = 9223372036854775807
LLONG_MIN = -9223372036854775808
LONG_BIT = 64
LONG_MAX = 9223372036854775807
LONG_MIN = -9223372036854775808
MAX_CANON = 255
MAX_INPUT = 255
MB_LEN_MAX = 6
MQ_PRIO_MAX = 64
NAME_MAX = 255
NGROUPS_MAX = 1023
NL_ARGMAX = 4096
NL_LANGMAX = 31
NL_MSGMAX = 32767
NL_NMAX = 1
NL_SETMAX = 255
NL_TEXTMAX = 2048
OFF_MAX = 9223372036854775807
OFF_MIN = -9223372036854775808
OPEN_MAX = 64
PASS_MAX = 128
PATH_MAX = 1024
PIPE_BUF = 512
QUAD_MAX = 9223372036854775807
QUAD_MIN = -9223372036854775808
RE_DUP_MAX = 255
SCHAR_MAX = 127
SCHAR_MIN = -128
SHRT_MAX = 32767
SHRT_MIN = -32768
SIZE_T_MAX = 18446744073709551615
SSIZE_MAX = 9223372036854775807
UCHAR_MAX = 255
UID_MAX = 4294967295
UINT_MAX = 4294967295
ULLONG_MAX = 18446744073709551615
ULONG_MAX = 18446744073709551615
UQUAD_MAX = 18446744073709551615
USHRT_MAX = 65535
WORD_BIT = 32
X_FILE_OFFSET_BITS = 64
X_LIMITS_H_ = 0
X_LP64 = 1
X_MACHINE__LIMITS_H_ = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_POSIX2_BC_BASE_MAX = 99
X_POSIX2_BC_DIM_MAX = 2048
X_POSIX2_BC_SCALE_MAX = 99
X_POSIX2_BC_STRING_MAX = 1000
X_POSIX2_CHARCLASS_NAME_MAX = 14
X_POSIX2_COLL_WEIGHTS_MAX = 2
X_POSIX2_EQUIV_CLASS_MAX = 2
X_POSIX2_EXPR_NEST_MAX = 32
X_POSIX2_LINE_MAX = 2048
X_POSIX2_RE_DUP_MAX = 255
X_POSIX_AIO_LISTIO_MAX = 2
X_POSIX_AIO_MAX = 1
X_POSIX_ARG_MAX = 4096
X_POSIX_CHILD_MAX = 25
X_POSIX_CLOCKRES_MIN = 20000000
X_POSIX_DELAYTIMER_MAX = 32
X_POSIX_HOST_NAME_MAX = 255
X_POSIX_LINK_MAX = 8
X_POSIX_LOGIN_NAME_MAX = 9
X_POSIX_MAX_CANON = 255
X_POSIX_MAX_INPUT = 255
X_POSIX_MQ_OPEN_MAX = 8
X_POSIX_MQ_PRIO_MAX = 32
X_POSIX_NAME_MAX = 14
X_POSIX_NGROUPS_MAX = 8
X_POSIX_OPEN_MAX = 20
X_POSIX_PATH_MAX = 256
X_POSIX_PIPE_BUF = 512
X_POSIX_RE_DUP_MAX = 255
X_POSIX_RTSIG_MAX = 8
X_POSIX_SEM_NSEMS_MAX = 256
X_POSIX_SEM_VALUE_MAX = 32767
X_POSIX_SIGQUEUE_MAX = 32
X_POSIX_SSIZE_MAX = 32767
X_POSIX_SS_REPL_MAX = 4
X_POSIX_STREAM_MAX = 8
X_POSIX_SYMLINK_MAX = 255
X_POSIX_SYMLOOP_MAX = 8
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
X_POSIX_THREAD_KEYS_MAX = 128
X_POSIX_THREAD_THREADS_MAX = 64
X_POSIX_TIMER_MAX = 32
X_POSIX_TRACE_EVENT_NAME_MAX = 30
X_POSIX_TRACE_NAME_MAX = 8
X_POSIX_TRACE_SYS_MAX = 8
X_POSIX_TRACE_USER_EVENT_MAX = 32
X_POSIX_TTY_NAME_MAX = 9
X_POSIX_TZNAME_MAX = 6
X_SYS_CDEFS_H_ = 0
X_SYS_LIMITS_H_ = 0
X_SYS_SYSLIMITS_H_ = 0
X_XOPEN_IOV_MAX = 16
X_XOPEN_NAME_MAX = 255
X_XOPEN_PATH_MAX = 1024
Unix = 1
ARG_MAX = 524288 // syslimits.h:52:1:
BC_BASE_MAX = 99 // limits.h:65:1:
BC_DIM_MAX = 2048 // limits.h:66:1:
BC_SCALE_MAX = 99 // limits.h:67:1:
BC_STRING_MAX = 1000 // limits.h:68:1:
CHARCLASS_NAME_MAX = 14 // limits.h:69:1:
CHAR_BIT = 8 // limits.h:40:1:
CHAR_MAX = 127 // limits.h:51:1:
CHAR_MIN = -128 // limits.h:52:1:
CHILD_MAX = 40 // syslimits.h:57:1:
COLL_WEIGHTS_MAX = 10 // limits.h:70:1:
EXPR_NEST_MAX = 32 // limits.h:71:1:
GID_MAX = 4294967295 // limits.h:85:1:
INT_MAX = 2147483647 // limits.h:60:1:
INT_MIN = -2147483648 // limits.h:61:1:
IOV_MAX = 1024 // syslimits.h:70:1:
LINE_MAX = 2048 // limits.h:72:1:
LLONG_MAX = 9223372036854775807 // limits.h:69:1:
LLONG_MIN = -9223372036854775808 // limits.h:70:1:
LONG_BIT = 64 // limits.h:94:1:
LONG_MAX = 9223372036854775807 // limits.h:64:1:
LONG_MIN = -9223372036854775808 // limits.h:65:1:
MAX_CANON = 255 // syslimits.h:59:1:
MAX_INPUT = 255 // syslimits.h:60:1:
MB_LEN_MAX = 6 // limits.h:141:1:
MQ_PRIO_MAX = 64 // limits.h:99:1:
NAME_MAX = 255 // syslimits.h:61:1:
NGROUPS_MAX = 1023 // syslimits.h:63:1:
NL_ARGMAX = 4096 // limits.h:125:1:
NL_LANGMAX = 31 // limits.h:137:1:
NL_MSGMAX = 32767 // limits.h:126:1:
NL_NMAX = 1 // limits.h:138:1:
NL_SETMAX = 255 // limits.h:127:1:
NL_TEXTMAX = 2048 // limits.h:128:1:
OFF_MAX = 9223372036854775807 // limits.h:80:1:
OFF_MIN = -9223372036854775808 // limits.h:81:1:
OPEN_MAX = 64 // syslimits.h:66:1:
PASS_MAX = 128 // limits.h:135:1:
PATH_MAX = 1024 // syslimits.h:68:1:
PIPE_BUF = 512 // syslimits.h:69:1:
QUAD_MAX = 9223372036854775807 // limits.h:89:1:
QUAD_MIN = -9223372036854775808 // limits.h:90:1:
RE_DUP_MAX = 255 // limits.h:73:1:
SCHAR_MAX = 127 // limits.h:42:1:
SCHAR_MIN = -128 // limits.h:43:1:
SHRT_MAX = 32767 // limits.h:56:1:
SHRT_MIN = -32768 // limits.h:57:1:
SIZE_T_MAX = 18446744073709551615 // limits.h:78:1:
SSIZE_MAX = 9223372036854775807 // limits.h:74:1:
UCHAR_MAX = 255 // limits.h:45:1:
UID_MAX = 4294967295 // limits.h:86:1:
UINT_MAX = 4294967295 // limits.h:59:1:
ULLONG_MAX = 18446744073709551615 // limits.h:68:1:
ULONG_MAX = 18446744073709551615 // limits.h:63:1:
UQUAD_MAX = 18446744073709551615 // limits.h:88:1:
USHRT_MAX = 65535 // limits.h:55:1:
WORD_BIT = 32 // limits.h:95:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LIMITS_H_ = 0 // limits.h:36:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_Nonnull = 0 // cdefs.h:783:1:
X_Null_unspecified = 0 // cdefs.h:785:1:
X_Nullable = 0 // cdefs.h:784:1:
X_POSIX2_BC_BASE_MAX = 99 // limits.h:75:1:
X_POSIX2_BC_DIM_MAX = 2048 // limits.h:76:1:
X_POSIX2_BC_SCALE_MAX = 99 // limits.h:77:1:
X_POSIX2_BC_STRING_MAX = 1000 // limits.h:78:1:
X_POSIX2_CHARCLASS_NAME_MAX = 14 // limits.h:79:1:
X_POSIX2_COLL_WEIGHTS_MAX = 2 // limits.h:80:1:
X_POSIX2_EQUIV_CLASS_MAX = 2 // limits.h:81:1:
X_POSIX2_EXPR_NEST_MAX = 32 // limits.h:82:1:
X_POSIX2_LINE_MAX = 2048 // limits.h:83:1:
X_POSIX2_RE_DUP_MAX = 255 // limits.h:84:1:
X_POSIX_AIO_LISTIO_MAX = 2 // limits.h:89:1:
X_POSIX_AIO_MAX = 1 // limits.h:90:1:
X_POSIX_ARG_MAX = 4096 // limits.h:41:1:
X_POSIX_CHILD_MAX = 25 // limits.h:51:1:
X_POSIX_CLOCKRES_MIN = 20000000 // limits.h:100:1:
X_POSIX_DELAYTIMER_MAX = 32 // limits.h:91:1:
X_POSIX_HOST_NAME_MAX = 255 // limits.h:110:1:
X_POSIX_LINK_MAX = 8 // limits.h:42:1:
X_POSIX_LOGIN_NAME_MAX = 9 // limits.h:111:1:
X_POSIX_MAX_CANON = 255 // limits.h:43:1:
X_POSIX_MAX_INPUT = 255 // limits.h:44:1:
X_POSIX_MQ_OPEN_MAX = 8 // limits.h:92:1:
X_POSIX_MQ_PRIO_MAX = 32 // limits.h:93:1:
X_POSIX_NAME_MAX = 14 // limits.h:45:1:
X_POSIX_NGROUPS_MAX = 8 // limits.h:52:1:
X_POSIX_OPEN_MAX = 20 // limits.h:53:1:
X_POSIX_PATH_MAX = 256 // limits.h:54:1:
X_POSIX_PIPE_BUF = 512 // limits.h:46:1:
X_POSIX_RE_DUP_MAX = 255 // limits.h:121:1:
X_POSIX_RTSIG_MAX = 8 // limits.h:94:1:
X_POSIX_SEM_NSEMS_MAX = 256 // limits.h:95:1:
X_POSIX_SEM_VALUE_MAX = 32767 // limits.h:96:1:
X_POSIX_SIGQUEUE_MAX = 32 // limits.h:97:1:
X_POSIX_SSIZE_MAX = 32767 // limits.h:47:1:
X_POSIX_SS_REPL_MAX = 4 // limits.h:112:1:
X_POSIX_STREAM_MAX = 8 // limits.h:48:1:
X_POSIX_SYMLINK_MAX = 255 // limits.h:113:1:
X_POSIX_SYMLOOP_MAX = 8 // limits.h:114:1:
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // limits.h:104:1:
X_POSIX_THREAD_KEYS_MAX = 128 // limits.h:105:1:
X_POSIX_THREAD_THREADS_MAX = 64 // limits.h:106:1:
X_POSIX_TIMER_MAX = 32 // limits.h:98:1:
X_POSIX_TRACE_EVENT_NAME_MAX = 30 // limits.h:115:1:
X_POSIX_TRACE_NAME_MAX = 8 // limits.h:116:1:
X_POSIX_TRACE_SYS_MAX = 8 // limits.h:117:1:
X_POSIX_TRACE_USER_EVENT_MAX = 32 // limits.h:118:1:
X_POSIX_TTY_NAME_MAX = 9 // limits.h:119:1:
X_POSIX_TZNAME_MAX = 6 // limits.h:55:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_LIMITS_H_ = 0 // limits.h:35:1:
X_SYS_SYSLIMITS_H_ = 0 // syslimits.h:36:1:
X_XOPEN_IOV_MAX = 16 // limits.h:132:1:
X_XOPEN_NAME_MAX = 255 // limits.h:133:1:
X_XOPEN_PATH_MAX = 1024 // limits.h:134:1:
Unix = 1 // <predefined>:337:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

953
vendor/modernc.org/libc/limits/limits_linux_ppc64le.go generated vendored Normal file
View File

@ -0,0 +1,953 @@
// Code generated by 'ccgo limits/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_linux_ppc64le.go -pkgname limits', DO NOT EDIT.
package limits
import (
"math"
"reflect"
"sync/atomic"
"unsafe"
)
var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
const (
AIO_PRIO_DELTA_MAX = 20 // local_lim.h:78:1:
BC_BASE_MAX = 99 // posix2_lim.h:63:1:
BC_DIM_MAX = 2048 // posix2_lim.h:66:1:
BC_SCALE_MAX = 99 // posix2_lim.h:69:1:
BC_STRING_MAX = 1000 // posix2_lim.h:72:1:
CHARCLASS_NAME_MAX = 2048 // posix2_lim.h:84:1:
CHAR_BIT = 8 // limits.h:64:1:
CHAR_MAX = 255 // limits.h:94:1:
CHAR_MIN = 0 // limits.h:91:1:
COLL_WEIGHTS_MAX = 255 // posix2_lim.h:75:1:
DELAYTIMER_MAX = 2147483647 // local_lim.h:85:1:
EXPR_NEST_MAX = 32 // posix2_lim.h:78:1:
HOST_NAME_MAX = 64 // local_lim.h:94:1:
INT_MAX = 2147483647 // limits.h:120:1:
INT_MIN = -2147483648 // limits.h:118:1:
LINE_MAX = 2048 // posix2_lim.h:81:1:
LLONG_MAX = 9223372036854775807 // limits.h:142:1:
LLONG_MIN = -9223372036854775808 // limits.h:140:1:
LOGIN_NAME_MAX = 256 // local_lim.h:91:1:
LONG_MAX = 9223372036854775807 // limits.h:131:1:
LONG_MIN = -9223372036854775808 // limits.h:129:1:
MAX_CANON = 255 // limits.h:10:1:
MAX_INPUT = 255 // limits.h:11:1:
MB_LEN_MAX = 16 // limits.h:32:1:
MQ_PRIO_MAX = 32768 // local_lim.h:97:1:
NAME_MAX = 255 // limits.h:12:1:
NGROUPS_MAX = 65536 // limits.h:7:1:
PATH_MAX = 4096 // limits.h:13:1:
PIPE_BUF = 4096 // limits.h:14:1:
PTHREAD_DESTRUCTOR_ITERATIONS = 4 // local_lim.h:69:1:
PTHREAD_KEYS_MAX = 1024 // local_lim.h:64:1:
PTHREAD_STACK_MIN = 131072 // local_lim.h:82:1:
RE_DUP_MAX = 32767 // posix2_lim.h:88:1:
RTSIG_MAX = 32 // limits.h:19:1:
SCHAR_MAX = 127 // limits.h:75:1:
SCHAR_MIN = -128 // limits.h:73:1:
SEM_VALUE_MAX = 2147483647 // local_lim.h:100:1:
SHRT_MAX = 32767 // limits.h:106:1:
SHRT_MIN = -32768 // limits.h:104:1:
SSIZE_MAX = 9223372036854775807 // posix1_lim.h:169:1:
TTY_NAME_MAX = 32 // local_lim.h:88:1:
UCHAR_MAX = 255 // limits.h:82:1:
UINT_MAX = 4294967295 // limits.h:124:1:
ULLONG_MAX = 18446744073709551615 // limits.h:146:1:
ULONG_MAX = 18446744073709551615 // limits.h:135:1:
USHRT_MAX = 65535 // limits.h:113:1:
XATTR_LIST_MAX = 65536 // limits.h:17:1:
XATTR_NAME_MAX = 255 // limits.h:15:1:
XATTR_SIZE_MAX = 65536 // limits.h:16:1:
X_ARCH_PPC = 1 // <predefined>:198:1:
X_ARCH_PPC64 = 1 // <predefined>:402:1:
X_ARCH_PPCGR = 1 // <predefined>:15:1:
X_ARCH_PPCSQ = 1 // <predefined>:43:1:
X_ARCH_PWR4 = 1 // <predefined>:381:1:
X_ARCH_PWR5 = 1 // <predefined>:90:1:
X_ARCH_PWR5X = 1 // <predefined>:137:1:
X_ARCH_PWR6 = 1 // <predefined>:91:1:
X_ARCH_PWR7 = 1 // <predefined>:92:1:
X_ARCH_PWR8 = 1 // <predefined>:93:1:
X_ATFILE_SOURCE = 1 // features.h:342:1:
X_BITS_POSIX1_LIM_H = 1 // posix1_lim.h:25:1:
X_BITS_POSIX2_LIM_H = 1 // posix2_lim.h:23:1:
X_CALL_ELF = 2 // <predefined>:415:1:
X_CALL_LINUX = 1 // <predefined>:123:1:
X_DEFAULT_SOURCE = 1 // features.h:227:1:
X_FEATURES_H = 1 // features.h:19:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GCC_LIMITS_H_ = 0 // limits.h:30:1:
X_LIBC_LIMITS_H_ = 1 // limits.h:23:1:
X_LIMITS_H___ = 0 // limits.h:60:1:
X_LINUX_LIMITS_H = 0 // limits.h:3:1:
X_LITTLE_ENDIAN = 1 // <predefined>:37:1:
X_LP64 = 1 // <predefined>:335:1:
X_POSIX2_BC_BASE_MAX = 99 // posix2_lim.h:27:1:
X_POSIX2_BC_DIM_MAX = 2048 // posix2_lim.h:30:1:
X_POSIX2_BC_SCALE_MAX = 99 // posix2_lim.h:33:1:
X_POSIX2_BC_STRING_MAX = 1000 // posix2_lim.h:36:1:
X_POSIX2_CHARCLASS_NAME_MAX = 14 // posix2_lim.h:55:1:
X_POSIX2_COLL_WEIGHTS_MAX = 2 // posix2_lim.h:40:1:
X_POSIX2_EXPR_NEST_MAX = 32 // posix2_lim.h:44:1:
X_POSIX2_LINE_MAX = 2048 // posix2_lim.h:47:1:
X_POSIX2_RE_DUP_MAX = 255 // posix2_lim.h:51:1:
X_POSIX_AIO_LISTIO_MAX = 2 // posix1_lim.h:32:1:
X_POSIX_AIO_MAX = 1 // posix1_lim.h:35:1:
X_POSIX_ARG_MAX = 4096 // posix1_lim.h:38:1:
X_POSIX_CHILD_MAX = 25 // posix1_lim.h:42:1:
X_POSIX_CLOCKRES_MIN = 20000000 // posix1_lim.h:157:1:
X_POSIX_C_SOURCE = 200809 // features.h:281:1:
X_POSIX_DELAYTIMER_MAX = 32 // posix1_lim.h:48:1:
X_POSIX_HOST_NAME_MAX = 255 // posix1_lim.h:52:1:
X_POSIX_LINK_MAX = 8 // posix1_lim.h:55:1:
X_POSIX_LOGIN_NAME_MAX = 9 // posix1_lim.h:58:1:
X_POSIX_MAX_CANON = 255 // posix1_lim.h:61:1:
X_POSIX_MAX_INPUT = 255 // posix1_lim.h:65:1:
X_POSIX_MQ_OPEN_MAX = 8 // posix1_lim.h:68:1:
X_POSIX_MQ_PRIO_MAX = 32 // posix1_lim.h:71:1:
X_POSIX_NAME_MAX = 14 // posix1_lim.h:74:1:
X_POSIX_NGROUPS_MAX = 8 // posix1_lim.h:78:1:
X_POSIX_OPEN_MAX = 20 // posix1_lim.h:85:1:
X_POSIX_PATH_MAX = 256 // posix1_lim.h:97:1:
X_POSIX_PIPE_BUF = 512 // posix1_lim.h:100:1:
X_POSIX_RE_DUP_MAX = 255 // posix1_lim.h:104:1:
X_POSIX_RTSIG_MAX = 8 // posix1_lim.h:107:1:
X_POSIX_SEM_NSEMS_MAX = 256 // posix1_lim.h:110:1:
X_POSIX_SEM_VALUE_MAX = 32767 // posix1_lim.h:113:1:
X_POSIX_SIGQUEUE_MAX = 32 // posix1_lim.h:116:1:
X_POSIX_SOURCE = 1 // features.h:279:1:
X_POSIX_SSIZE_MAX = 32767 // posix1_lim.h:119:1:
X_POSIX_STREAM_MAX = 8 // posix1_lim.h:122:1:
X_POSIX_SYMLINK_MAX = 255 // posix1_lim.h:125:1:
X_POSIX_SYMLOOP_MAX = 8 // posix1_lim.h:129:1:
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // local_lim.h:67:1:
X_POSIX_THREAD_KEYS_MAX = 128 // local_lim.h:62:1:
X_POSIX_THREAD_THREADS_MAX = 64 // local_lim.h:72:1:
X_POSIX_TIMER_MAX = 32 // posix1_lim.h:132:1:
X_POSIX_TTY_NAME_MAX = 9 // posix1_lim.h:135:1:
X_POSIX_TZNAME_MAX = 6 // posix1_lim.h:139:1:
X_STDC_PREDEF_H = 1 // <predefined>:203:1:
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
Linux = 1 // <predefined>:263:1:
Unix = 1 // <predefined>:222:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
type Size_t = uint64 /* <builtin>:9:23 */
type Wchar_t = int32 /* <builtin>:15:24 */
type X__int128_t = struct {
Flo int64
Fhi int64
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
type X__uint128_t = struct {
Flo uint64
Fhi uint64
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__ieee128 = float64 /* <builtin>:47:21 */
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
// GCC is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 3, or (at your option) any later
// version.
//
// GCC is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
// for more details.
//
// Under Section 7 of GPL version 3, you are granted additional
// permissions described in the GCC Runtime Library Exception, version
// 3.1, as published by the Free Software Foundation.
//
// You should have received a copy of the GNU General Public License and
// a copy of the GCC Runtime Library Exception along with this program;
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
// <http://www.gnu.org/licenses/>.
// This administrivia gets added to the beginning of limits.h
// if the system has its own version of limits.h.
// We use _GCC_LIMITS_H_ because we want this not to match
// any macros that the system's limits.h uses for its own purposes.
// Use "..." so that we find syslimits.h only in this same directory.
// syslimits.h stands for the system's own limits.h file.
// If we can use it ok unmodified, then we install this text.
// If fixincludes fixes it, then the fixed version is installed
// instead of this text.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// ISO C99 Standard: 7.10/5.2.4.2.1 Sizes of integer types <limits.h>
// Handle feature test macros at the start of a header.
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This header is internal to glibc and should not be included outside
// of glibc headers. Headers including it must define
// __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION first. This header
// cannot have multiple include guards because ISO C feature test
// macros depend on the definition of the macro when an affected
// header is included, not when the first system header is
// included.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// These are defined by the user (or the compiler)
// to specify the desired environment:
//
// __STRICT_ANSI__ ISO Standard C.
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
// __STDC_WANT_LIB_EXT2__
// Extensions to ISO C99 from TR 27431-2:2010.
// __STDC_WANT_IEC_60559_BFP_EXT__
// Extensions to ISO C11 from TS 18661-1:2014.
// __STDC_WANT_IEC_60559_FUNCS_EXT__
// Extensions to ISO C11 from TS 18661-4:2015.
// __STDC_WANT_IEC_60559_TYPES_EXT__
// Extensions to ISO C11 from TS 18661-3:2015.
//
// _POSIX_SOURCE IEEE Std 1003.1.
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
// if >=199309L, add IEEE Std 1003.1b-1993;
// if >=199506L, add IEEE Std 1003.1c-1995;
// if >=200112L, all of IEEE 1003.1-2004
// if >=200809L, all of IEEE 1003.1-2008
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
// Single Unix conformance is wanted, to 600 for the
// sixth revision, to 700 for the seventh revision.
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
// _FILE_OFFSET_BITS=N Select default filesystem interface.
// _ATFILE_SOURCE Additional *at interfaces.
// _GNU_SOURCE All of the above, plus GNU extensions.
// _DEFAULT_SOURCE The default set of features (taking precedence over
// __STRICT_ANSI__).
//
// _FORTIFY_SOURCE Add security hardening to many library functions.
// Set to 1 or 2; 2 performs stricter checks than 1.
//
// _REENTRANT, _THREAD_SAFE
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
//
// The `-ansi' switch to the GNU C compiler, and standards conformance
// options such as `-std=c99', define __STRICT_ANSI__. If none of
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
// 200809L, as well as enabling miscellaneous functions from BSD and
// SVID. If more than one of these are defined, they accumulate. For
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
// give you ISO C, 1003.1, and 1003.2, but nothing else.
//
// These are defined by this file and are used by the
// header files to decide what to declare or define:
//
// __GLIBC_USE (F) Define things from feature set F. This is defined
// to 1 or 0; the subsequent macros are either defined
// or undefined, and those tests should be moved to
// __GLIBC_USE.
// __USE_ISOC11 Define ISO C11 things.
// __USE_ISOC99 Define ISO C99 things.
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
// __USE_ISOCXX11 Define ISO C++11 things.
// __USE_POSIX Define IEEE Std 1003.1 things.
// __USE_POSIX2 Define IEEE Std 1003.2 things.
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
// __USE_XOPEN Define XPG things.
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
// __USE_UNIX98 Define Single Unix V2 things.
// __USE_XOPEN2K Define XPG6 things.
// __USE_XOPEN2KXSI Define XPG6 XSI things.
// __USE_XOPEN2K8 Define XPG7 things.
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
// __USE_LARGEFILE Define correct standard I/O things.
// __USE_LARGEFILE64 Define LFS things with separate names.
// __USE_FILE_OFFSET64 Define 64bit interface as default.
// __USE_MISC Define things from 4.3BSD or System V Unix.
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
// __USE_GNU Define GNU extensions.
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
//
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
// only for compatibility. All new code should use the other symbols
// to test for features.
//
// All macros listed above as possibly being defined by this file are
// explicitly undefined if they are not explicitly defined.
// Feature-test macros that are not defined by the user or compiler
// but are implied by the other feature-test macros defined (or by the
// lack of any definitions) are defined by the file.
//
// ISO C feature test macros depend on the definition of the macro
// when an affected header is included, not when the first system
// header is included, and so they are handled in
// <bits/libc-header-start.h>, which does not have a multiple include
// guard. Feature test macros that can be handled from the first
// system header included are handled here.
// Undefine everything, so we get a clean slate.
// Suppress kernel-name space pollution unless user expressedly asks
// for it.
// Convenience macro to test the version of gcc.
// Use like this:
// #if __GNUC_PREREQ (2,8)
// ... code requiring gcc 2.8 or later ...
// #endif
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
// added in 2.0.
// Similarly for clang. Features added to GCC after version 4.2 may
// or may not also be available in clang, and clang's definitions of
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
// features can be queried via __has_extension/__has_feature.
// Whether to use feature set F.
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
// issue a warning; the expectation is that the source is being
// transitioned to use the new macro.
// If _GNU_SOURCE was defined by the user, turn on all the other features.
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
// define _DEFAULT_SOURCE.
// This is to enable the ISO C2X extension.
// This is to enable the ISO C11 extension.
// This is to enable the ISO C99 extension.
// This is to enable the ISO C90 Amendment 1:1995 extension.
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
// is defined, use POSIX.1-2008 (or another version depending on
// _XOPEN_SOURCE).
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
// defined in all multithreaded code. GNU libc has not required this
// for many years. We now treat them as compatibility synonyms for
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
// comprehensive support for multithreaded code. Using them never
// lowers the selected level of POSIX conformance, only raises it.
// The function 'gets' existed in C89, but is impossible to use
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
// compatibility with various implementations of <cstdio>, this test
// must consider only the value of __cplusplus when compiling C++.
// GNU formerly extended the scanf functions with modified format
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
// input using malloc. This extension conflicts with ISO C99, which
// defines %a as a standalone format specifier that reads a floating-
// point number; moreover, POSIX.1-2008 provides the same feature
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
//
// We now follow C99 unless GNU extensions are active and the compiler
// is specifically in C89 or C++98 mode (strict or not). For
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
// old extension.
// Get definitions of __STDC_* predefined macros, if the compiler has
// not preincluded this header automatically.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// This macro indicates that the installed library is the GNU C Library.
// For historic reasons the value now is 6 and this will stay from now
// on. The use of this variable is deprecated. Use __GLIBC__ and
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
// GNU C library version and use the values in <gnu/lib-names.h> to get
// the sonames of the shared libraries.
// Major and minor version number of the GNU C library package. Use
// these macros to test for features in specific releases.
// This is here only because every header file already includes this one.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// We are almost always included from features.h.
// The GNU libc does not support any K&R compilers or the traditional mode
// of ISO C compilers anymore. Check for some of the combinations not
// anymore supported.
// Some user header file might have defined this before.
// All functions, except those with callbacks or those that
// synchronize memory, are leaf functions.
// GCC can always grok prototypes. For C++ programs we add throw()
// to help it optimize the function calls. But this works only with
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
// as non-throwing using a function attribute since programs can use
// the -fexceptions options for C code as well.
// Compilers that are not clang may object to
// #if defined __clang__ && __has_extension(...)
// even though they do not need to evaluate the right-hand side of the &&.
// These two macros are not used in glibc anymore. They are kept here
// only because some other projects expect the macros to be defined.
// For these things, GCC behaves the ANSI way normally,
// and the non-ANSI way under -traditional.
// This is not a typedef so `const __ptr_t' does the right thing.
// C++ needs to know that types and declarations are C, not C++.
// Fortify support.
// Support for flexible arrays.
// Headers that should use flexible arrays only if they're "real"
// (e.g. only if they won't affect sizeof()) should test
// #if __glibc_c99_flexarr_available.
// __asm__ ("xyz") is used throughout the headers to rename functions
// at the assembly language level. This is wrapped by the __REDIRECT
// macro, in order to support compilers that can do this some other
// way. When compilers don't support asm-names at all, we have to do
// preprocessor tricks instead (which don't have exactly the right
// semantics, but it's the best we can do).
//
// Example:
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
//
// #elif __SOME_OTHER_COMPILER__
//
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
// GCC has various useful declarations that can be made with the
// `__attribute__' syntax. All of the ways we use this do fine if
// they are omitted for compilers that don't understand it.
// At some point during the gcc 2.96 development the `malloc' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Tell the compiler which arguments to an allocation function
// indicate the size of the allocation.
// At some point during the gcc 2.96 development the `pure' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// This declaration tells the compiler that the value is constant.
// At some point during the gcc 3.1 development the `used' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// Since version 3.2, gcc allows marking deprecated functions.
// Since version 4.5, gcc also allows one to specify the message printed
// when a deprecated function is used. clang claims to be gcc 4.2, but
// may also support this feature.
// At some point during the gcc 2.8 development the `format_arg' attribute
// for functions was introduced. We don't want to use it unconditionally
// (although this would be possible) since it generates warnings.
// If several `format_arg' attributes are given for the same function, in
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
// all designated arguments are considered.
// At some point during the gcc 2.97 development the `strfmon' format
// attribute for functions was introduced. We don't want to use it
// unconditionally (although this would be possible) since it
// generates warnings.
// The nonull function attribute allows to mark pointer parameters which
// must not be NULL.
// If fortification mode, we warn about unused results of certain
// function calls which can lead to problems.
// Forces a function to be always inlined.
// The Linux kernel defines __always_inline in stddef.h (283d7573), and
// it conflicts with this definition. Therefore undefine it first to
// allow either header to be included first.
// Associate error messages with the source location of the call site rather
// than with the source location inside the function.
// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
// older than 4.3 may define these macros and still not guarantee GNU inlining
// semantics.
//
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
// __GNUC_GNU_INLINE__ macro definitions.
// GCC 4.3 and above allow passing all anonymous arguments of an
// __extern_always_inline function to some other vararg function.
// It is possible to compile containing GCC extensions even if GCC is
// run in pedantic mode if the uses are carefully marked using the
// `__extension__' keyword. But this is not generally available before
// version 2.8.
// __restrict is known in EGCS 1.2 and above.
// ISO C99 also allows to declare arrays as non-overlapping. The syntax is
// array_name[restrict]
// GCC 3.1 supports this.
// Describes a char array whose address can safely be passed as the first
// argument to strncpy and strncat, as the char array is not necessarily
// a NUL-terminated string.
// Undefine (also defined in libc-symbols.h).
// Copies attributes from the declaration or type referenced by
// the argument.
// Determine the wordsize from the preprocessor defines.
// Properties of long double type. ldbl-opt version.
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
// intended for use in preprocessor macros.
//
// Note: MESSAGE must be a _single_ string; concatenation of string
// literals is not supported.
// Generic selection (ISO C11) is a C-only feature, available in GCC
// since version 4.9. Previous versions do not provide generic
// selection, even though they might set __STDC_VERSION__ to 201112L,
// when in -std=c11 mode. Thus, we must check for !defined __GNUC__
// when testing __STDC_VERSION__ for generic selection support.
// On the other hand, Clang also defines __GNUC__, so a clang-specific
// check is required to enable the use of generic selection.
// If we don't have __REDIRECT, prototypes will be missing if
// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
// Decide whether we can define 'extern inline' functions in headers.
// This is here only because every header file already includes this one.
// Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
// <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
// that will always return failure (and set errno to ENOSYS).
// This file is automatically generated.
// This file selects the right generated file of `__stub_FUNCTION' macros
// based on the architecture being compiled for.
// Determine the wordsize from the preprocessor defines.
// This file is automatically generated.
// It defines a symbol `__stub_FUNCTION' for each function
// in the C library which is a stub, meaning it will fail
// every time called, usually setting errno to ENOSYS.
// ISO/IEC TR 24731-2:2010 defines the __STDC_WANT_LIB_EXT2__
// macro.
// ISO/IEC TS 18661-1:2014 defines the __STDC_WANT_IEC_60559_BFP_EXT__
// macro. Most but not all symbols enabled by that macro in TS
// 18661-1 are enabled unconditionally in C2X; the symbols in Annex F
// still require that macro in C2X.
// ISO/IEC TS 18661-4:2015 defines the
// __STDC_WANT_IEC_60559_FUNCS_EXT__ macro. Other than the reduction
// functions, the symbols from this TS are enabled unconditionally in
// C2X.
// ISO/IEC TS 18661-3:2015 defines the
// __STDC_WANT_IEC_60559_TYPES_EXT__ macro.
// Maximum length of any multibyte character in any locale.
// We define this value here since the gcc header does not define
// the correct value.
// If we are not using GNU CC we have to define all the symbols ourself.
// Otherwise use gcc's definitions (see below).
// Get the compiler's limits.h, which defines almost all the ISO constants.
//
// We put this #include_next outside the double inclusion check because
// it should be possible to include this file more than once and still get
// the definitions from gcc's header.
// The <limits.h> files in some gcc versions don't define LLONG_MIN,
// LLONG_MAX, and ULLONG_MAX. Instead only the values gcc defined for
// ages are available.
// The integer width macros are not defined by GCC's <limits.h> before
// GCC 7, or if _GNU_SOURCE rather than
// __STDC_WANT_IEC_60559_BFP_EXT__ is used to enable this feature.
// POSIX adds things to <limits.h>.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 2.9.2 Minimum Values Added to <limits.h>
//
// Never include this file directly; use <limits.h> instead.
// Determine the wordsize from the preprocessor defines.
// These are the standard-mandated minimum values.
// Minimum number of operations in one list I/O call.
// Minimal number of outstanding asynchronous I/O operations.
// Maximum length of arguments to `execve', including environment.
// Maximum simultaneous processes per real user ID.
// Minimal number of timer expiration overruns.
// Maximum length of a host name (not including the terminating null)
// as returned from the GETHOSTNAME function.
// Maximum link count of a file.
// Maximum length of login name.
// Number of bytes in a terminal canonical input queue.
// Number of bytes for which space will be
// available in a terminal input queue.
// Maximum number of message queues open for a process.
// Maximum number of supported message priorities.
// Number of bytes in a filename.
// Number of simultaneous supplementary group IDs per process.
// Number of files one process can have open at once.
// Number of bytes in a pathname.
// Number of bytes than can be written atomically to a pipe.
// The number of repeated occurrences of a BRE permitted by the
// REGEXEC and REGCOMP functions when using the interval notation.
// Minimal number of realtime signals reserved for the application.
// Number of semaphores a process can have.
// Maximal value of a semaphore.
// Number of pending realtime signals.
// Largest value of a `ssize_t'.
// Number of streams a process can have open at once.
// The number of bytes in a symbolic link.
// The number of symbolic links that can be traversed in the
// resolution of a pathname in the absence of a loop.
// Number of timer for a process.
// Maximum number of characters in a tty name.
// Maximum length of a timezone name (element of `tzname').
// Maximum clock resolution in nanoseconds.
// Get the implementation-specific values for the above.
// Minimum guaranteed maximum values for system limits. Linux/PPC version.
// Copyright (C) 1993-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; see the file COPYING.LIB. If
// not, see <https://www.gnu.org/licenses/>.
// The kernel header pollutes the namespace with the NR_OPEN symbol
// and defines LINK_MAX although filesystems have different maxima. A
// similar thing is true for OPEN_MAX: the limit can be changed at
// runtime and therefore the macro must not be defined. Remove this
// after including the header if necessary.
// The kernel sources contain a file with all the needed information.
// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
// Have to remove NR_OPEN?
// Have to remove LINK_MAX?
// Have to remove OPEN_MAX?
// Have to remove ARG_MAX?
// The number of data keys per process.
// This is the value this implementation supports.
// Controlling the iterations of destructors for thread-specific data.
// Number of iterations this implementation does.
// The number of threads per process.
// We have no predefined limit on the number of threads.
// Maximum amount by which a process can descrease its asynchronous I/O
// priority level.
// Minimum size for a thread. At least two pages for systems with 64k
// pages.
// Maximum number of timer expiration overruns.
// Maximum tty name length.
// Maximum login name length. This is arbitrary.
// Maximum host name length.
// Maximum message queue priority level.
// Maximum value the semaphore can have.
// ssize_t is not formally required to be the signed type
// corresponding to size_t, but it is for all configurations supported
// by glibc.
// This value is a guaranteed minimum maximum.
// The current maximum can be got from `sysconf'.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Never include this file directly; include <limits.h> instead.
// The maximum `ibase' and `obase' values allowed by the `bc' utility.
// The maximum number of elements allowed in an array by the `bc' utility.
// The maximum `scale' value allowed by the `bc' utility.
// The maximum length of a string constant accepted by the `bc' utility.
// The maximum number of weights that can be assigned to an entry of
// the LC_COLLATE `order' keyword in the locale definition file.
// The maximum number of expressions that can be nested
// within parentheses by the `expr' utility.
// The maximum length, in bytes, of an input line.
// The maximum number of repeated occurrences of a regular expression
// permitted when using the interval notation `\{M,N\}'.
// The maximum number of bytes in a character class name. We have no
// fixed limit, 2048 is a high number.
// These values are implementation-specific,
// and may vary within the implementation.
// Their precise values can be obtained from sysconf.
// This value is defined like this in regex.h.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
// GCC is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 3, or (at your option) any later
// version.
//
// GCC is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
// for more details.
//
// Under Section 7 of GPL version 3, you are granted additional
// permissions described in the GCC Runtime Library Exception, version
// 3.1, as published by the Free Software Foundation.
//
// You should have received a copy of the GNU General Public License and
// a copy of the GCC Runtime Library Exception along with this program;
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
// <http://www.gnu.org/licenses/>.
// Number of bits in a `char'.
// Maximum length of a multibyte character.
// Minimum and maximum values a `signed char' can hold.
// Maximum value an `unsigned char' can hold. (Minimum is 0).
// Minimum and maximum values a `char' can hold.
// Minimum and maximum values a `signed short int' can hold.
// Maximum value an `unsigned short int' can hold. (Minimum is 0).
// Minimum and maximum values a `signed int' can hold.
// Maximum value an `unsigned int' can hold. (Minimum is 0).
// Minimum and maximum values a `signed long int' can hold.
// (Same as `int').
// Maximum value an `unsigned long int' can hold. (Minimum is 0).
// Minimum and maximum values a `signed long long int' can hold.
// Maximum value an `unsigned long long int' can hold. (Minimum is 0).
// This administrivia gets added to the end of limits.h
// if the system has its own version of limits.h.
var _ uint8 /* gen.c:2:13: */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo limits/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o limits/limits_netbsd_amd64.go -pkgname limits', DO NOT EDIT.
// Code generated by 'ccgo limits/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_netbsd_amd64.go -pkgname limits', DO NOT EDIT.
package limits
@ -15,121 +15,121 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
ARG_MAX = 262144
BC_BASE_MAX = 2147483647
BC_DIM_MAX = 65535
BC_SCALE_MAX = 2147483647
BC_STRING_MAX = 2147483647
CHARCLASS_NAME_MAX = 14
CHAR_BIT = 8
CHAR_MAX = 127
CHAR_MIN = -128
CHILD_MAX = 160
COLL_WEIGHTS_MAX = 2
DBL_DIG = 15
EXPR_NEST_MAX = 32
FLT_DIG = 6
GID_MAX = 2147483647
INT_MAX = 0x7fffffff
INT_MIN = -2147483648
IOV_MAX = 1024
LINE_MAX = 2048
LINK_MAX = 32767
LLONG_MAX = 0x7fffffffffffffff
LLONG_MIN = -9223372036854775808
LOGIN_NAME_MAX = 17
LONG_BIT = 64
LONG_MAX = 0x7fffffffffffffff
LONG_MIN = -9223372036854775808
MAX_CANON = 255
MAX_INPUT = 255
MB_LEN_MAX = 32
NAME_MAX = 511
NGROUPS_MAX = 16
NL_ARGMAX = 9
NL_LANGMAX = 14
NL_MSGMAX = 32767
NL_NMAX = 1
NL_SETMAX = 255
NL_TEXTMAX = 2048
NZERO = 20
OPEN_MAX = 128
PASS_MAX = 128
PATH_MAX = 1024
PIPE_BUF = 512
PTHREAD_DESTRUCTOR_ITERATIONS = 4
PTHREAD_KEYS_MAX = 256
PTHREAD_THREADS_MAX = 64
QUAD_MAX = 0x7fffffffffffffff
QUAD_MIN = -9223372036854775808
RE_DUP_MAX = 255
SCHAR_MAX = 0x7f
SCHAR_MIN = -128
SHRT_MAX = 0x7fff
SHRT_MIN = -32768
SIZE_T_MAX = 18446744073709551615
SSIZE_MAX = 9223372036854775807
SSIZE_MIN = -9223372036854775808
TMP_MAX = 308915776
UCHAR_MAX = 0xff
UID_MAX = 2147483647
UINT_MAX = 0xffffffff
ULLONG_MAX = 0xffffffffffffffff
ULONG_MAX = 0xffffffffffffffff
UQUAD_MAX = 0xffffffffffffffff
USHRT_MAX = 0xffff
WORD_BIT = 32
X_FILE_OFFSET_BITS = 64
X_GETGR_R_SIZE_MAX = 1024
X_GETPW_R_SIZE_MAX = 1024
X_LIMITS_H_ = 0
X_LP64 = 1
X_NETBSD_SOURCE = 1
X_POSIX2_BC_BASE_MAX = 99
X_POSIX2_BC_DIM_MAX = 2048
X_POSIX2_BC_SCALE_MAX = 99
X_POSIX2_BC_STRING_MAX = 1000
X_POSIX2_CHARCLASS_NAME_MAX = 14
X_POSIX2_COLL_WEIGHTS_MAX = 2
X_POSIX2_EXPR_NEST_MAX = 32
X_POSIX2_LINE_MAX = 2048
X_POSIX2_RE_DUP_MAX = 255
X_POSIX_AIO_LISTIO_MAX = 2
X_POSIX_AIO_MAX = 1
X_POSIX_ARG_MAX = 4096
X_POSIX_CHILD_MAX = 25
X_POSIX_DELAYTIMER_MAX = 32
X_POSIX_HOST_NAME_MAX = 255
X_POSIX_LINK_MAX = 8
X_POSIX_LOGIN_NAME_MAX = 9
X_POSIX_MAX_CANON = 255
X_POSIX_MAX_INPUT = 255
X_POSIX_MQ_OPEN_MAX = 8
X_POSIX_MQ_PRIO_MAX = 32
X_POSIX_NAME_MAX = 14
X_POSIX_NGROUPS_MAX = 8
X_POSIX_OPEN_MAX = 20
X_POSIX_PATH_MAX = 256
X_POSIX_PIPE_BUF = 512
X_POSIX_REALTIME_SIGNALS = 200112
X_POSIX_RE_DUP_MAX = 255
X_POSIX_SEM_NSEMS_MAX = 256
X_POSIX_SIGQUEUE_MAX = 32
X_POSIX_SSIZE_MAX = 32767
X_POSIX_STREAM_MAX = 8
X_POSIX_SYMLINK_MAX = 255
X_POSIX_SYMLOOP_MAX = 8
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
X_POSIX_THREAD_KEYS_MAX = 128
X_POSIX_THREAD_THREADS_MAX = 64
X_POSIX_TIMER_MAX = 32
X_POSIX_TTY_NAME_MAX = 9
X_POSIX_TZNAME_MAX = 6
X_SYS_SYSLIMITS_H_ = 0
X_X86_64_LIMITS_H_ = 0
X_XOPEN_IOV_MAX = 16
X_XOPEN_NAME_MAX = 256
X_XOPEN_PATH_MAX = 1024
ARG_MAX = 262144 // syslimits.h:45:1:
BC_BASE_MAX = 2147483647 // syslimits.h:63:1:
BC_DIM_MAX = 65535 // syslimits.h:64:1:
BC_SCALE_MAX = 2147483647 // syslimits.h:65:1:
BC_STRING_MAX = 2147483647 // syslimits.h:66:1:
CHARCLASS_NAME_MAX = 14 // limits.h:125:1:
CHAR_BIT = 8 // limits.h:41:1:
CHAR_MAX = 127 // limits.h:163:1:
CHAR_MIN = -128 // limits.h:162:1:
CHILD_MAX = 160 // syslimits.h:47:1:
COLL_WEIGHTS_MAX = 2 // syslimits.h:67:1:
DBL_DIG = 15 // limits.h:85:1:
EXPR_NEST_MAX = 32 // syslimits.h:68:1:
FLT_DIG = 6 // limits.h:89:1:
GID_MAX = 2147483647 // syslimits.h:49:1:
INT_MAX = 0x7fffffff // limits.h:52:1:
INT_MIN = -2147483648 // limits.h:53:1:
IOV_MAX = 1024 // syslimits.h:84:1:
LINE_MAX = 2048 // syslimits.h:69:1:
LINK_MAX = 32767 // syslimits.h:50:1:
LLONG_MAX = 0x7fffffffffffffff // limits.h:62:1:
LLONG_MIN = -9223372036854775808 // limits.h:63:1:
LOGIN_NAME_MAX = 17 // syslimits.h:77:1:
LONG_BIT = 64 // limits.h:82:1:
LONG_MAX = 0x7fffffffffffffff // limits.h:56:1:
LONG_MIN = -9223372036854775808 // limits.h:57:1:
MAX_CANON = 255 // syslimits.h:51:1:
MAX_INPUT = 255 // syslimits.h:52:1:
MB_LEN_MAX = 32 // limits.h:145:1:
NAME_MAX = 511 // syslimits.h:53:1:
NGROUPS_MAX = 16 // syslimits.h:55:1:
NL_ARGMAX = 9 // limits.h:126:1:
NL_LANGMAX = 14 // limits.h:127:1:
NL_MSGMAX = 32767 // limits.h:128:1:
NL_NMAX = 1 // limits.h:129:1:
NL_SETMAX = 255 // limits.h:130:1:
NL_TEXTMAX = 2048 // limits.h:131:1:
NZERO = 20 // syslimits.h:85:1:
OPEN_MAX = 128 // syslimits.h:58:1:
PASS_MAX = 128 // limits.h:123:1:
PATH_MAX = 1024 // syslimits.h:60:1:
PIPE_BUF = 512 // syslimits.h:61:1:
PTHREAD_DESTRUCTOR_ITERATIONS = 4 // limits.h:90:1:
PTHREAD_KEYS_MAX = 256 // limits.h:91:1:
PTHREAD_THREADS_MAX = 64 // limits.h:93:1:
QUAD_MAX = 0x7fffffffffffffff // limits.h:75:1:
QUAD_MIN = -9223372036854775808 // limits.h:76:1:
RE_DUP_MAX = 255 // syslimits.h:70:1:
SCHAR_MAX = 0x7f // limits.h:44:1:
SCHAR_MIN = -128 // limits.h:45:1:
SHRT_MAX = 0x7fff // limits.h:48:1:
SHRT_MIN = -32768 // limits.h:49:1:
SIZE_T_MAX = 18446744073709551615 // limits.h:72:1:
SSIZE_MAX = 9223372036854775807 // limits.h:68:1:
SSIZE_MIN = -9223372036854775808 // limits.h:71:1:
TMP_MAX = 308915776 // limits.h:139:1:
UCHAR_MAX = 0xff // limits.h:43:1:
UID_MAX = 2147483647 // syslimits.h:56:1:
UINT_MAX = 0xffffffff // limits.h:51:1:
ULLONG_MAX = 0xffffffffffffffff // limits.h:61:1:
ULONG_MAX = 0xffffffffffffffff // limits.h:55:1:
UQUAD_MAX = 0xffffffffffffffff // limits.h:74:1:
USHRT_MAX = 0xffff // limits.h:47:1:
WORD_BIT = 32 // limits.h:83:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GETGR_R_SIZE_MAX = 1024 // limits.h:134:1:
X_GETPW_R_SIZE_MAX = 1024 // limits.h:135:1:
X_LIMITS_H_ = 0 // limits.h:35:1:
X_LP64 = 1 // <predefined>:268:1:
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
X_POSIX2_BC_BASE_MAX = 99 // limits.h:103:1:
X_POSIX2_BC_DIM_MAX = 2048 // limits.h:104:1:
X_POSIX2_BC_SCALE_MAX = 99 // limits.h:105:1:
X_POSIX2_BC_STRING_MAX = 1000 // limits.h:106:1:
X_POSIX2_CHARCLASS_NAME_MAX = 14 // limits.h:107:1:
X_POSIX2_COLL_WEIGHTS_MAX = 2 // limits.h:108:1:
X_POSIX2_EXPR_NEST_MAX = 32 // limits.h:109:1:
X_POSIX2_LINE_MAX = 2048 // limits.h:110:1:
X_POSIX2_RE_DUP_MAX = 255 // limits.h:111:1:
X_POSIX_AIO_LISTIO_MAX = 2 // limits.h:41:1:
X_POSIX_AIO_MAX = 1 // limits.h:42:1:
X_POSIX_ARG_MAX = 4096 // limits.h:43:1:
X_POSIX_CHILD_MAX = 25 // limits.h:44:1:
X_POSIX_DELAYTIMER_MAX = 32 // limits.h:99:1:
X_POSIX_HOST_NAME_MAX = 255 // limits.h:45:1:
X_POSIX_LINK_MAX = 8 // limits.h:46:1:
X_POSIX_LOGIN_NAME_MAX = 9 // limits.h:47:1:
X_POSIX_MAX_CANON = 255 // limits.h:48:1:
X_POSIX_MAX_INPUT = 255 // limits.h:49:1:
X_POSIX_MQ_OPEN_MAX = 8 // limits.h:50:1:
X_POSIX_MQ_PRIO_MAX = 32 // limits.h:51:1:
X_POSIX_NAME_MAX = 14 // limits.h:52:1:
X_POSIX_NGROUPS_MAX = 8 // limits.h:53:1:
X_POSIX_OPEN_MAX = 20 // limits.h:54:1:
X_POSIX_PATH_MAX = 256 // limits.h:55:1:
X_POSIX_PIPE_BUF = 512 // limits.h:56:1:
X_POSIX_REALTIME_SIGNALS = 200112 // limits.h:98:1:
X_POSIX_RE_DUP_MAX = 255 // limits.h:57:1:
X_POSIX_SEM_NSEMS_MAX = 256 // limits.h:96:1:
X_POSIX_SIGQUEUE_MAX = 32 // limits.h:97:1:
X_POSIX_SSIZE_MAX = 32767 // limits.h:58:1:
X_POSIX_STREAM_MAX = 8 // limits.h:59:1:
X_POSIX_SYMLINK_MAX = 255 // limits.h:60:1:
X_POSIX_SYMLOOP_MAX = 8 // limits.h:61:1:
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // limits.h:81:1:
X_POSIX_THREAD_KEYS_MAX = 128 // limits.h:82:1:
X_POSIX_THREAD_THREADS_MAX = 64 // limits.h:83:1:
X_POSIX_TIMER_MAX = 32 // limits.h:95:1:
X_POSIX_TTY_NAME_MAX = 9 // limits.h:100:1:
X_POSIX_TZNAME_MAX = 6 // limits.h:101:1:
X_SYS_SYSLIMITS_H_ = 0 // syslimits.h:35:1:
X_X86_64_LIMITS_H_ = 0 // limits.h:35:1:
X_XOPEN_IOV_MAX = 16 // limits.h:119:1:
X_XOPEN_NAME_MAX = 256 // limits.h:120:1:
X_XOPEN_PATH_MAX = 1024 // limits.h:121:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo limits/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o limits/limits_openbsd_amd64.go -pkgname limits', DO NOT EDIT.
// Code generated by 'ccgo limits/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_openbsd_amd64.go -pkgname limits', DO NOT EDIT.
package limits
@ -15,111 +15,111 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
ARG_MAX = 524288
BC_BASE_MAX = 2147483647
BC_DIM_MAX = 65535
BC_SCALE_MAX = 2147483647
BC_STRING_MAX = 2147483647
CHAR_BIT = 8
CHAR_MAX = 0x7f
CHAR_MIN = -128
CHILD_MAX = 80
COLL_WEIGHTS_MAX = 2
EXPR_NEST_MAX = 32
GID_MAX = 4294967295
HOST_NAME_MAX = 255
INT_MAX = 0x7fffffff
INT_MIN = -2147483648
IOV_MAX = 1024
LINE_MAX = 2048
LINK_MAX = 32767
LLONG_MAX = 0x7fffffffffffffff
LLONG_MIN = -9223372036854775808
LOGIN_NAME_MAX = 32
LONG_BIT = 64
LONG_MAX = 0x7fffffffffffffff
LONG_MIN = -9223372036854775808
MAX_CANON = 255
MAX_INPUT = 255
MB_LEN_MAX = 4
NAME_MAX = 255
NGROUPS_MAX = 16
NL_ARGMAX = 9
NL_LANGMAX = 14
NL_MSGMAX = 32767
NL_SETMAX = 255
NL_TEXTMAX = 255
NZERO = 20
OPEN_MAX = 64
PATH_MAX = 1024
PIPE_BUF = 512
QUAD_MAX = 0x7fffffffffffffff
QUAD_MIN = -9223372036854775808
RE_DUP_MAX = 255
SCHAR_MAX = 0x7f
SCHAR_MIN = -128
SEM_VALUE_MAX = 4294967295
SHRT_MAX = 0x7fff
SHRT_MIN = -32768
SIZE_T_MAX = 18446744073709551615
SSIZE_MAX = 9223372036854775807
SYMLINK_MAX = 1024
SYMLOOP_MAX = 32
TTY_NAME_MAX = 260
UCHAR_MAX = 0xff
UID_MAX = 4294967295
UINT_MAX = 0xffffffff
ULLONG_MAX = 0xffffffffffffffff
ULONG_MAX = 0xffffffffffffffff
UQUAD_MAX = 0xffffffffffffffff
USHRT_MAX = 0xffff
WORD_BIT = 32
X_FILE_OFFSET_BITS = 64
X_LIMITS_H_ = 0
X_LP64 = 1
X_MACHINE_CDEFS_H_ = 0
X_MACHINE_LIMITS_H_ = 0
X_POSIX2_BC_BASE_MAX = 99
X_POSIX2_BC_DIM_MAX = 2048
X_POSIX2_BC_SCALE_MAX = 99
X_POSIX2_BC_STRING_MAX = 1000
X_POSIX2_CHARCLASS_NAME_MAX = 14
X_POSIX2_COLL_WEIGHTS_MAX = 2
X_POSIX2_EXPR_NEST_MAX = 32
X_POSIX2_LINE_MAX = 2048
X_POSIX2_RE_DUP_MAX = 255
X_POSIX_ARG_MAX = 4096
X_POSIX_CHILD_MAX = 25
X_POSIX_CLOCKRES_MIN = 20000000
X_POSIX_HOST_NAME_MAX = 255
X_POSIX_LINK_MAX = 8
X_POSIX_LOGIN_NAME_MAX = 9
X_POSIX_MAX_CANON = 255
X_POSIX_MAX_INPUT = 255
X_POSIX_NAME_MAX = 14
X_POSIX_NGROUPS_MAX = 8
X_POSIX_OPEN_MAX = 20
X_POSIX_PATH_MAX = 256
X_POSIX_PIPE_BUF = 512
X_POSIX_RE_DUP_MAX = 255
X_POSIX_SEM_NSEMS_MAX = 256
X_POSIX_SEM_VALUE_MAX = 32767
X_POSIX_SSIZE_MAX = 32767
X_POSIX_STREAM_MAX = 8
X_POSIX_SYMLINK_MAX = 255
X_POSIX_SYMLOOP_MAX = 8
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
X_POSIX_THREAD_KEYS_MAX = 128
X_POSIX_THREAD_THREADS_MAX = 4
X_POSIX_TTY_NAME_MAX = 9
X_POSIX_TZNAME_MAX = 6
X_RET_PROTECTOR = 1
X_SYS_CDEFS_H_ = 0
X_SYS_LIMITS_H_ = 0
X_XOPEN_IOV_MAX = 16
X_XOPEN_NAME_MAX = 255
X_XOPEN_PATH_MAX = 1024
Unix = 1
ARG_MAX = 524288 // syslimits.h:38:1:
BC_BASE_MAX = 2147483647 // syslimits.h:51:1:
BC_DIM_MAX = 65535 // syslimits.h:52:1:
BC_SCALE_MAX = 2147483647 // syslimits.h:53:1:
BC_STRING_MAX = 2147483647 // syslimits.h:54:1:
CHAR_BIT = 8 // limits.h:36:1:
CHAR_MAX = 0x7f // limits.h:46:1:
CHAR_MIN = -128 // limits.h:47:1:
CHILD_MAX = 80 // syslimits.h:39:1:
COLL_WEIGHTS_MAX = 2 // syslimits.h:55:1:
EXPR_NEST_MAX = 32 // syslimits.h:56:1:
GID_MAX = 4294967295 // limits.h:84:1:
HOST_NAME_MAX = 255 // syslimits.h:76:1:
INT_MAX = 0x7fffffff // limits.h:57:1:
INT_MIN = -2147483648 // limits.h:58:1:
IOV_MAX = 1024 // syslimits.h:64:1:
LINE_MAX = 2048 // syslimits.h:57:1:
LINK_MAX = 32767 // syslimits.h:40:1:
LLONG_MAX = 0x7fffffffffffffff // limits.h:76:1:
LLONG_MIN = -9223372036854775808 // limits.h:78:1:
LOGIN_NAME_MAX = 32 // syslimits.h:72:1:
LONG_BIT = 64 // limits.h:89:1:
LONG_MAX = 0x7fffffffffffffff // limits.h:63:1:
LONG_MIN = -9223372036854775808 // limits.h:65:1:
MAX_CANON = 255 // syslimits.h:41:1:
MAX_INPUT = 255 // syslimits.h:42:1:
MB_LEN_MAX = 4 // limits.h:50:1:
NAME_MAX = 255 // syslimits.h:43:1:
NGROUPS_MAX = 16 // syslimits.h:44:1:
NL_ARGMAX = 9 // limits.h:89:1:
NL_LANGMAX = 14 // limits.h:90:1:
NL_MSGMAX = 32767 // limits.h:91:1:
NL_SETMAX = 255 // limits.h:92:1:
NL_TEXTMAX = 255 // limits.h:93:1:
NZERO = 20 // syslimits.h:65:1:
OPEN_MAX = 64 // syslimits.h:45:1:
PATH_MAX = 1024 // syslimits.h:46:1:
PIPE_BUF = 512 // syslimits.h:47:1:
QUAD_MAX = 0x7fffffffffffffff // limits.h:47:1:
QUAD_MIN = -9223372036854775808 // limits.h:48:1:
RE_DUP_MAX = 255 // syslimits.h:59:1:
SCHAR_MAX = 0x7f // limits.h:38:1:
SCHAR_MIN = -128 // limits.h:39:1:
SEM_VALUE_MAX = 4294967295 // syslimits.h:60:1:
SHRT_MAX = 0x7fff // limits.h:53:1:
SHRT_MIN = -32768 // limits.h:54:1:
SIZE_T_MAX = 18446744073709551615 // limits.h:44:1:
SSIZE_MAX = 9223372036854775807 // limits.h:40:1:
SYMLINK_MAX = 1024 // syslimits.h:48:1:
SYMLOOP_MAX = 32 // syslimits.h:49:1:
TTY_NAME_MAX = 260 // syslimits.h:71:1:
UCHAR_MAX = 0xff // limits.h:41:1:
UID_MAX = 4294967295 // limits.h:83:1:
UINT_MAX = 0xffffffff // limits.h:56:1:
ULLONG_MAX = 0xffffffffffffffff // limits.h:74:1:
ULONG_MAX = 0xffffffffffffffff // limits.h:61:1:
UQUAD_MAX = 0xffffffffffffffff // limits.h:46:1:
USHRT_MAX = 0xffff // limits.h:52:1:
WORD_BIT = 32 // limits.h:93:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_LIMITS_H_ = 0 // limits.h:36:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
X_MACHINE_LIMITS_H_ = 0 // limits.h:35:1:
X_POSIX2_BC_BASE_MAX = 99 // limits.h:71:1:
X_POSIX2_BC_DIM_MAX = 2048 // limits.h:72:1:
X_POSIX2_BC_SCALE_MAX = 99 // limits.h:73:1:
X_POSIX2_BC_STRING_MAX = 1000 // limits.h:74:1:
X_POSIX2_CHARCLASS_NAME_MAX = 14 // limits.h:79:1:
X_POSIX2_COLL_WEIGHTS_MAX = 2 // limits.h:75:1:
X_POSIX2_EXPR_NEST_MAX = 32 // limits.h:76:1:
X_POSIX2_LINE_MAX = 2048 // limits.h:77:1:
X_POSIX2_RE_DUP_MAX = 255 // limits.h:78:1:
X_POSIX_ARG_MAX = 4096 // limits.h:41:1:
X_POSIX_CHILD_MAX = 25 // limits.h:42:1:
X_POSIX_CLOCKRES_MIN = 20000000 // limits.h:61:1:
X_POSIX_HOST_NAME_MAX = 255 // limits.h:82:1:
X_POSIX_LINK_MAX = 8 // limits.h:43:1:
X_POSIX_LOGIN_NAME_MAX = 9 // limits.h:83:1:
X_POSIX_MAX_CANON = 255 // limits.h:44:1:
X_POSIX_MAX_INPUT = 255 // limits.h:45:1:
X_POSIX_NAME_MAX = 14 // limits.h:46:1:
X_POSIX_NGROUPS_MAX = 8 // limits.h:62:1:
X_POSIX_OPEN_MAX = 20 // limits.h:63:1:
X_POSIX_PATH_MAX = 256 // limits.h:47:1:
X_POSIX_PIPE_BUF = 512 // limits.h:48:1:
X_POSIX_RE_DUP_MAX = 255 // limits.h:49:1:
X_POSIX_SEM_NSEMS_MAX = 256 // limits.h:50:1:
X_POSIX_SEM_VALUE_MAX = 32767 // limits.h:51:1:
X_POSIX_SSIZE_MAX = 32767 // limits.h:52:1:
X_POSIX_STREAM_MAX = 8 // limits.h:53:1:
X_POSIX_SYMLINK_MAX = 255 // limits.h:54:1:
X_POSIX_SYMLOOP_MAX = 8 // limits.h:55:1:
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // limits.h:56:1:
X_POSIX_THREAD_KEYS_MAX = 128 // limits.h:57:1:
X_POSIX_THREAD_THREADS_MAX = 4 // limits.h:58:1:
X_POSIX_TTY_NAME_MAX = 9 // limits.h:84:1:
X_POSIX_TZNAME_MAX = 6 // limits.h:64:1:
X_RET_PROTECTOR = 1 // <predefined>:2:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS_LIMITS_H_ = 0 // limits.h:27:1:
X_XOPEN_IOV_MAX = 16 // limits.h:106:1:
X_XOPEN_NAME_MAX = 255 // limits.h:107:1:
X_XOPEN_PATH_MAX = 1024 // limits.h:108:1:
Unix = 1 // <predefined>:340:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */

View File

@ -2904,7 +2904,7 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get
// var res uintptr at bp, 8
var err int32
for ok := true; ok; ok = err == 34 {
for __ccgo := true; __ccgo; __ccgo = err == 34 {
Xfree(tls, _sh)
_sh = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1)))
if !(_sh != 0) {
@ -3019,7 +3019,7 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam
// var res uintptr at bp, 8
var err int32
for ok := true; ok; ok = err == 34 {
for __ccgo := true; __ccgo; __ccgo = err == 34 {
Xfree(tls, _sh1)
_sh1 = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1)))
if !(_sh1 != 0) {
@ -3308,7 +3308,7 @@ type res_sym = struct {
func itoa(tls *TLS, p uintptr, x uint32) uintptr { /* getnameinfo.c:18:13: */
p += uintptr(uint64(3) * uint64(unsafe.Sizeof(int32(0))))
*(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(0)
for ok := true; ok; ok = x != 0 {
for __ccgo := true; __ccgo; __ccgo = x != 0 {
*(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(uint32('0') + x%uint32(10))
x = x / uint32(10)
}

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6,getnameinfo,gethostbyaddr_r, -nostdinc -nostdlib -o ../musl_freebsd_386.go -pkgname libc -static-locals-prefix _s -Iarch/i386 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../freebsd/table.cpp.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strnlen.c src/string/strspn.c', DO NOT EDIT.
// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6,getnameinfo,gethostbyaddr_r, -nostdinc -nostdlib -o ../musl_freebsd_386.go -pkgname libc -static-locals-prefix _s -Iarch/i386 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../freebsd/table.cpp.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isspace.c src/ctype/isupper.c src/ctype/isxdigit.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strnlen.c src/string/strspn.c', DO NOT EDIT.
package libc
@ -3352,6 +3352,51 @@ func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */
return Xisdigit(tls, c)
}
func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */
return Bool32(uint32(c)-uint32('a') < uint32(26))
}
func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */
return Xislower(tls, c)
}
func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */
return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f))
}
func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */
return Xisprint(tls, c)
}
func Xisspace(tls *TLS, c int32) int32 { /* isspace.c:4:5: */
return Bool32(c == ' ' || uint32(c)-uint32('\t') < uint32(5))
}
func X__isspace_l(tls *TLS, c int32, l locale_t) int32 { /* isspace.c:9:5: */
return Xisspace(tls, c)
}
func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */
return Bool32(uint32(c)-uint32('A') < uint32(26))
}
func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */
return Xisupper(tls, c)
}
func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */
return Bool32(func() int32 {
if 0 != 0 {
return Xisdigit(tls, c)
}
return Bool32(uint32(c)-uint32('0') < uint32(10))
}() != 0 || uint32(c)|uint32(32)-uint32('a') < uint32(6))
}
func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */
return Xisxdigit(tls, c)
}
type uintptr_t = uint32 /* alltypes.h:78:24 */
type intptr_t = int32 /* alltypes.h:93:15 */
@ -5300,7 +5345,7 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get
// var res uintptr at bp, 4
var err int32
for ok := true; ok; ok = err == 34 {
for __ccgo := true; __ccgo; __ccgo = err == 34 {
Xfree(tls, _sh)
_sh = Xmalloc(tls, AssignAddUint32(&size, size+size_t(1)))
if !(_sh != 0) {
@ -5330,7 +5375,7 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam
// var res uintptr at bp, 4
var err int32
for ok := true; ok; ok = err == 34 {
for __ccgo := true; __ccgo; __ccgo = err == 34 {
Xfree(tls, _sh1)
_sh1 = Xmalloc(tls, AssignAddUint32(&size, size+size_t(1)))
if !(_sh1 != 0) {
@ -5609,7 +5654,7 @@ type res_sym = struct {
func itoa(tls *TLS, p uintptr, x uint32) uintptr { /* getnameinfo.c:18:13: */
p += uintptr(uint32(3) * uint32(unsafe.Sizeof(int32(0))))
*(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(0)
for ok := true; ok; ok = x != 0 {
for __ccgo := true; __ccgo; __ccgo = x != 0 {
*(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(uint32('0') + x%uint32(10))
x = x / uint32(10)
}
@ -6603,6 +6648,26 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */
return -1
}
func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */
var try uintptr
var sign int32
for nel > size_t(0) {
try = base + uintptr(width*(nel/size_t(2)))
sign = (*struct {
f func(*TLS, uintptr, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try)
if sign < 0 {
nel = nel / size_t(2)
} else if sign > 0 {
base = try + uintptr(width)
nel = nel - (nel/size_t(2) + size_t(1))
} else {
return try
}
}
return uintptr(0)
}
func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */
bp := tls.Alloc(136)
defer tls.Free(136)

View File

@ -5396,7 +5396,7 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get
// var res uintptr at bp, 8
var err int32
for ok := true; ok; ok = err == 34 {
for __ccgo := true; __ccgo; __ccgo = err == 34 {
Xfree(tls, _sh)
_sh = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1)))
if !(_sh != 0) {
@ -5426,7 +5426,7 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam
// var res uintptr at bp, 8
var err int32
for ok := true; ok; ok = err == 34 {
for __ccgo := true; __ccgo; __ccgo = err == 34 {
Xfree(tls, _sh1)
_sh1 = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1)))
if !(_sh1 != 0) {
@ -5715,7 +5715,7 @@ type res_sym = struct {
func itoa(tls *TLS, p uintptr, x uint32) uintptr { /* getnameinfo.c:18:13: */
p += uintptr(uint64(3) * uint64(unsafe.Sizeof(int32(0))))
*(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(0)
for ok := true; ok; ok = x != 0 {
for __ccgo := true; __ccgo; __ccgo = x != 0 {
*(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(uint32('0') + x%uint32(10))
x = x / uint32(10)
}

7012
vendor/modernc.org/libc/musl_linux_ppc64le.go generated vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6,getnameinfo,gethostbyaddr_r, -nostdinc -nostdlib -o ../musl_netbsd_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../netbsd/ctype_.cpp.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strnlen.c src/string/strspn.c', DO NOT EDIT.
// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6,getnameinfo,gethostbyaddr_r, -nostdinc -nostdlib -o ../musl_netbsd_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../netbsd/ctype_.cpp.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/isprint.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strnlen.c src/string/strspn.c', DO NOT EDIT.
package libc
@ -893,6 +893,14 @@ func X__isdigit_l(tls *TLS, c int32, l locale_t1) int32 { /* isdigit.c:9:5: */
return Xisdigit(tls, c)
}
func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */
return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f))
}
func X__isprint_l(tls *TLS, c int32, l locale_t1) int32 { /* isprint.c:9:5: */
return Xisprint(tls, c)
}
type uintptr_t = uint64 /* alltypes.h:55:24 */
type intptr_t = int64 /* alltypes.h:70:15 */
@ -2884,7 +2892,7 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get
// var res uintptr at bp, 8
var err int32
for ok := true; ok; ok = err == 34 {
for __ccgo := true; __ccgo; __ccgo = err == 34 {
Xfree(tls, _sh)
_sh = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1)))
if !(_sh != 0) {
@ -2914,7 +2922,7 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam
// var res uintptr at bp, 8
var err int32
for ok := true; ok; ok = err == 34 {
for __ccgo := true; __ccgo; __ccgo = err == 34 {
Xfree(tls, _sh1)
_sh1 = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1)))
if !(_sh1 != 0) {
@ -3203,7 +3211,7 @@ type res_sym = struct {
func itoa(tls *TLS, p uintptr, x uint32) uintptr { /* getnameinfo.c:18:13: */
p += uintptr(uint64(3) * uint64(unsafe.Sizeof(int32(0))))
*(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(0)
for ok := true; ok; ok = x != 0 {
for __ccgo := true; __ccgo; __ccgo = x != 0 {
*(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(uint32('0') + x%uint32(10))
x = x / uint32(10)
}

View File

@ -5396,7 +5396,7 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get
// var res uintptr at bp, 8
var err int32
for ok := true; ok; ok = err == 34 {
for __ccgo := true; __ccgo; __ccgo = err == 34 {
Xfree(tls, _sh)
_sh = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1)))
if !(_sh != 0) {
@ -5426,7 +5426,7 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam
// var res uintptr at bp, 8
var err int32
for ok := true; ok; ok = err == 34 {
for __ccgo := true; __ccgo; __ccgo = err == 34 {
Xfree(tls, _sh1)
_sh1 = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1)))
if !(_sh1 != 0) {
@ -5715,7 +5715,7 @@ type res_sym = struct {
func itoa(tls *TLS, p uintptr, x uint32) uintptr { /* getnameinfo.c:18:13: */
p += uintptr(uint64(3) * uint64(unsafe.Sizeof(int32(0))))
*(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(0)
for ok := true; ok; ok = x != 0 {
for __ccgo := true; __ccgo; __ccgo = x != 0 {
*(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(uint32('0') + x%uint32(10))
x = x / uint32(10)
}

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo netdb/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o netdb/netdb_freebsd_386.go -pkgname netdb', DO NOT EDIT.
// Code generated by 'ccgo netdb/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netdb/netdb_freebsd_386.go -pkgname netdb', DO NOT EDIT.
package netdb

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo netdb/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o netdb/netdb_freebsd_amd64.go -pkgname netdb', DO NOT EDIT.
// Code generated by 'ccgo netdb/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netdb/netdb_freebsd_amd64.go -pkgname netdb', DO NOT EDIT.
package netdb

5
vendor/modernc.org/libc/netdb/capi_linux_ppc64le.go generated vendored Normal file
View File

@ -0,0 +1,5 @@
// Code generated by 'ccgo netdb/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netdb/netdb_linux_ppc64le.go -pkgname netdb', DO NOT EDIT.
package netdb
var CAPI = map[string]struct{}{}

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo netdb/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o netdb/netdb_netbsd_amd64.go -pkgname netdb', DO NOT EDIT.
// Code generated by 'ccgo netdb/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netdb/netdb_netbsd_amd64.go -pkgname netdb', DO NOT EDIT.
package netdb

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo netdb/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o netdb/netdb_openbsd_amd64.go -pkgname netdb', DO NOT EDIT.
// Code generated by 'ccgo netdb/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netdb/netdb_openbsd_amd64.go -pkgname netdb', DO NOT EDIT.
package netdb

View File

@ -1,4 +1,4 @@
// Code generated by 'ccgo netdb/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o netdb/netdb_freebsd_386.go -pkgname netdb', DO NOT EDIT.
// Code generated by 'ccgo netdb/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netdb/netdb_freebsd_386.go -pkgname netdb', DO NOT EDIT.
package netdb
@ -15,69 +15,69 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
AI_ADDRCONFIG = 0x00000400
AI_ALL = 0x00000100
AI_CANONNAME = 0x00000002
AI_DEFAULT = 1536
AI_MASK = 3343
AI_NUMERICHOST = 0x00000004
AI_NUMERICSERV = 0x00000008
AI_PASSIVE = 0x00000001
AI_V4MAPPED = 0x00000800
AI_V4MAPPED_CFG = 0x00000200
EAI_AGAIN = 2
EAI_BADFLAGS = 3
EAI_BADHINTS = 12
EAI_FAIL = 4
EAI_FAMILY = 5
EAI_MAX = 15
EAI_MEMORY = 6
EAI_NONAME = 8
EAI_OVERFLOW = 14
EAI_PROTOCOL = 13
EAI_SERVICE = 9
EAI_SOCKTYPE = 10
EAI_SYSTEM = 11
HOST_NOT_FOUND = 1
IPPORT_RESERVED = 1024
NETDB_INTERNAL = -1
NETDB_SUCCESS = 0
NI_DGRAM = 0x00000010
NI_MAXHOST = 1025
NI_MAXSERV = 32
NI_NAMEREQD = 0x00000004
NI_NOFQDN = 0x00000001
NI_NUMERICHOST = 0x00000002
NI_NUMERICSCOPE = 0x00000020
NI_NUMERICSERV = 0x00000008
NO_ADDRESS = 4
NO_DATA = 4
NO_RECOVERY = 3
SCOPE_DELIMITER = 37
TRY_AGAIN = 2
X_FILE_OFFSET_BITS = 64
X_ILP32 = 1
X_IN_ADDR_T_DECLARED = 0
X_IN_PORT_T_DECLARED = 0
X_MACHINE__LIMITS_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_NETDB_H_ = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_PATH_HEQUIV = "/etc/hosts.equiv"
X_PATH_HOSTS = "/etc/hosts"
X_PATH_NETWORKS = "/etc/networks"
X_PATH_PROTOCOLS = "/etc/protocols"
X_PATH_SERVICES = "/etc/services"
X_PATH_SERVICES_DB = "/var/db/services.db"
X_SIZE_T_DECLARED = 0
X_SOCKLEN_T_DECLARED = 0
X_SYS_CDEFS_H_ = 0
X_SYS__TYPES_H_ = 0
X_UINT32_T_DECLARED = 0
I386 = 1
Unix = 1
AI_ADDRCONFIG = 0x00000400 // netdb.h:200:1:
AI_ALL = 0x00000100 // netdb.h:198:1:
AI_CANONNAME = 0x00000002 // netdb.h:190:1:
AI_DEFAULT = 1536 // netdb.h:203:1:
AI_MASK = 3343 // netdb.h:194:1:
AI_NUMERICHOST = 0x00000004 // netdb.h:191:1:
AI_NUMERICSERV = 0x00000008 // netdb.h:192:1:
AI_PASSIVE = 0x00000001 // netdb.h:189:1:
AI_V4MAPPED = 0x00000800 // netdb.h:201:1:
AI_V4MAPPED_CFG = 0x00000200 // netdb.h:199:1:
EAI_AGAIN = 2 // netdb.h:168:1:
EAI_BADFLAGS = 3 // netdb.h:169:1:
EAI_BADHINTS = 12 // netdb.h:181:1:
EAI_FAIL = 4 // netdb.h:170:1:
EAI_FAMILY = 5 // netdb.h:171:1:
EAI_MAX = 15 // netdb.h:184:1:
EAI_MEMORY = 6 // netdb.h:172:1:
EAI_NONAME = 8 // netdb.h:177:1:
EAI_OVERFLOW = 14 // netdb.h:183:1:
EAI_PROTOCOL = 13 // netdb.h:182:1:
EAI_SERVICE = 9 // netdb.h:178:1:
EAI_SOCKTYPE = 10 // netdb.h:179:1:
EAI_SYSTEM = 11 // netdb.h:180:1:
HOST_NOT_FOUND = 1 // netdb.h:155:1:
IPPORT_RESERVED = 1024 // netdb.h:146:1:
NETDB_INTERNAL = -1 // netdb.h:153:1:
NETDB_SUCCESS = 0 // netdb.h:154:1:
NI_DGRAM = 0x00000010 // netdb.h:218:1:
NI_MAXHOST = 1025 // netdb.h:208:1:
NI_MAXSERV = 32 // netdb.h:209:1:
NI_NAMEREQD = 0x00000004 // netdb.h:216:1:
NI_NOFQDN = 0x00000001 // netdb.h:214:1:
NI_NUMERICHOST = 0x00000002 // netdb.h:215:1:
NI_NUMERICSCOPE = 0x00000020 // netdb.h:219:1:
NI_NUMERICSERV = 0x00000008 // netdb.h:217:1:
NO_ADDRESS = 4 // netdb.h:159:1:
NO_DATA = 4 // netdb.h:158:1:
NO_RECOVERY = 3 // netdb.h:157:1:
SCOPE_DELIMITER = 37 // netdb.h:224:1:
TRY_AGAIN = 2 // netdb.h:156:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_ILP32 = 1 // <predefined>:1:1:
X_IN_ADDR_T_DECLARED = 0 // netdb.h:67:1:
X_IN_PORT_T_DECLARED = 0 // netdb.h:72:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_NETDB_H_ = 0 // netdb.h:60:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_PATH_HEQUIV = "/etc/hosts.equiv" // netdb.h:91:1:
X_PATH_HOSTS = "/etc/hosts" // netdb.h:93:1:
X_PATH_NETWORKS = "/etc/networks" // netdb.h:94:1:
X_PATH_PROTOCOLS = "/etc/protocols" // netdb.h:95:1:
X_PATH_SERVICES = "/etc/services" // netdb.h:96:1:
X_PATH_SERVICES_DB = "/var/db/services.db" // netdb.h:97:1:
X_SIZE_T_DECLARED = 0 // netdb.h:77:1:
X_SOCKLEN_T_DECLARED = 0 // netdb.h:82:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_UINT32_T_DECLARED = 0 // netdb.h:87:1:
I386 = 1 // <predefined>:335:1:
Unix = 1 // <predefined>:336:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */

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