slidge-whatsapp 0.2.6__cp312-cp312-manylinux_2_36_aarch64.whl → 0.3.0b0__cp312-cp312-manylinux_2_36_aarch64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. slidge_whatsapp/contact.py +13 -3
  2. slidge_whatsapp/event.go +115 -39
  3. slidge_whatsapp/gateway.go +7 -63
  4. slidge_whatsapp/gateway.py +2 -3
  5. slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.h +169 -152
  6. slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.so +0 -0
  7. slidge_whatsapp/generated/build.py +134 -120
  8. slidge_whatsapp/generated/whatsapp.c +1511 -1239
  9. slidge_whatsapp/generated/whatsapp.go +1263 -1152
  10. slidge_whatsapp/generated/whatsapp.py +1171 -1046
  11. slidge_whatsapp/generated/whatsapp_go.h +169 -152
  12. slidge_whatsapp/go.mod +18 -15
  13. slidge_whatsapp/go.sum +38 -32
  14. slidge_whatsapp/group.py +34 -30
  15. slidge_whatsapp/media/media.go +6 -2
  16. slidge_whatsapp/session.go +33 -16
  17. slidge_whatsapp/session.py +46 -14
  18. slidge_whatsapp/vendor/github.com/beeper/argo-go/LICENSE +9 -0
  19. slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockreader.go +329 -0
  20. slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockwriter.go +417 -0
  21. slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/decoder.go +652 -0
  22. slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/encoder.go +985 -0
  23. slidge_whatsapp/vendor/github.com/beeper/argo-go/header/header.go +135 -0
  24. slidge_whatsapp/vendor/github.com/beeper/argo-go/internal/util/util.go +133 -0
  25. slidge_whatsapp/vendor/github.com/beeper/argo-go/label/label.go +384 -0
  26. slidge_whatsapp/vendor/github.com/beeper/argo-go/label/wiremarkers.go +37 -0
  27. slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/bitset/bitset.go +197 -0
  28. slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/buf/buf.go +420 -0
  29. slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/varint/varint.go +246 -0
  30. slidge_whatsapp/vendor/github.com/beeper/argo-go/wire/wire.go +614 -0
  31. slidge_whatsapp/vendor/github.com/beeper/argo-go/wirecodec/decode.go +341 -0
  32. slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/LICENSE +21 -0
  33. slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/list.go +95 -0
  34. slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/orderedmap.go +187 -0
  35. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz.go +1 -0
  36. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo.go +3 -0
  37. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_nocgo.go +4 -5
  38. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_darwin.go +11 -1
  39. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_linux.go +10 -0
  40. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_windows.go +12 -0
  41. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/.gitignore +0 -2
  42. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/CHANGELOG.md +30 -0
  43. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/COPYRIGHT.txt +6 -1
  44. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/README.md +14 -17
  45. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi.go +1 -1
  46. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi2.go +7 -0
  47. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/LICENSE +21 -0
  48. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_amd64/libffi.8.dylib +0 -0
  49. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_arm64/libffi.8.dylib +0 -0
  50. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/windows_amd64/libffi-8.dll +0 -0
  51. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif.go +15 -0
  52. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif_arm64.go +16 -0
  53. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed.go +49 -0
  54. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_amd64.go +10 -0
  55. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_arm64.go +10 -0
  56. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_windows_amd64.go +10 -0
  57. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/ffi.go +51 -13
  58. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/init.go +22 -9
  59. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/README.md +2 -0
  60. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c +3096 -1651
  61. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.h +188 -128
  62. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_userauth.go +13 -140
  63. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3ext.h +4 -0
  64. slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.23.go +2 -2
  65. slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.25.go +37 -0
  66. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/LICENSE +19 -0
  67. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/argmap.go +37 -0
  68. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/collections.go +148 -0
  69. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/comment.go +31 -0
  70. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/decode.go +216 -0
  71. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/definition.go +110 -0
  72. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/directive.go +43 -0
  73. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/document.go +89 -0
  74. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/dumper.go +159 -0
  75. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/fragment.go +41 -0
  76. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/operation.go +32 -0
  77. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/path.go +72 -0
  78. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/selection.go +41 -0
  79. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/source.go +19 -0
  80. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/type.go +68 -0
  81. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/value.go +122 -0
  82. slidge_whatsapp/vendor/go.mau.fi/util/exhttp/handleerrors.go +60 -26
  83. slidge_whatsapp/vendor/go.mau.fi/util/exhttp/json.go +1 -6
  84. slidge_whatsapp/vendor/go.mau.fi/util/exhttp/networkerror.go +2 -1
  85. slidge_whatsapp/vendor/go.mau.fi/util/exstrings/stringutil.go +104 -0
  86. slidge_whatsapp/vendor/go.mau.fi/util/exsync/event.go +19 -3
  87. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.pre-commit-config.yaml +3 -3
  88. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +1 -1
  89. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/hash.go +1 -1
  90. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +5 -1
  91. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo-wire-type-store.argo +63 -0
  92. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo.go +62 -0
  93. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/name-to-queryids.json +306 -0
  94. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +40 -7
  95. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/encoder.go +1 -1
  96. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +2 -1
  97. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +79 -45
  98. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +13 -6
  99. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download-to-file.go +19 -12
  100. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +26 -6
  101. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +3 -0
  102. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +99 -27
  103. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +54 -26
  104. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/keepalive.go +1 -0
  105. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +208 -57
  106. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +2 -14
  107. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/newsletter.go +83 -7
  108. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +17 -8
  109. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +2 -2
  110. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +15 -6
  111. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/extra.go +7 -0
  112. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.pb.go +983 -0
  113. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.proto +85 -0
  114. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/extra.go +3 -0
  115. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.pb.go +197 -0
  116. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.proto +13 -0
  117. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.pb.go +279 -0
  118. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.proto +21 -0
  119. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.pb.go +137 -0
  120. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.proto +10 -0
  121. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.pb.go +313 -0
  122. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.proto +27 -0
  123. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.pb.go +1299 -0
  124. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.proto +112 -0
  125. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.pb.go +514 -0
  126. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.proto +47 -0
  127. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.pb.go +123 -0
  128. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.proto +7 -0
  129. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/extra.go +3 -0
  130. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.pb.go +720 -0
  131. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.proto +59 -0
  132. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/extra.go +3 -0
  133. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.pb.go +365 -0
  134. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.proto +33 -0
  135. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.pb.go +1238 -0
  136. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.proto +105 -0
  137. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.go +16 -4
  138. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.proto +3 -0
  139. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.pb.go +5156 -0
  140. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.proto +516 -0
  141. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.pb.go +46 -10
  142. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.proto +4 -0
  143. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +8975 -11209
  144. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +193 -421
  145. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +52 -23
  146. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +3 -0
  147. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.pb.go +198 -0
  148. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.proto +14 -0
  149. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/extra.go +7 -6
  150. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.pb.go +952 -0
  151. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.proto +88 -0
  152. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +1143 -463
  153. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +60 -0
  154. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +60 -38
  155. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +3 -0
  156. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.go +11 -3
  157. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +2 -0
  158. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +20 -7
  159. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingfields.json +1 -0
  160. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingtoken.go +176 -0
  161. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/retry.go +10 -2
  162. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +38 -21
  163. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/sendfb.go +1 -0
  164. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +1 -1
  165. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +3 -2
  166. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/container.go +9 -6
  167. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +25 -5
  168. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/00-latest-schema.sql +4 -2
  169. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/10-chat-db-lid-migration-ts.sql +2 -0
  170. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +5 -1
  171. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/call.go +1 -0
  172. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +13 -2
  173. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/jid.go +2 -1
  174. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/message.go +1 -0
  175. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/user.go +2 -0
  176. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +14 -8
  177. slidge_whatsapp/vendor/golang.org/x/crypto/curve25519/curve25519.go +1 -1
  178. slidge_whatsapp/vendor/golang.org/x/net/http2/config.go +44 -2
  179. slidge_whatsapp/vendor/golang.org/x/net/http2/frame.go +8 -8
  180. slidge_whatsapp/vendor/golang.org/x/net/http2/gotrack.go +14 -3
  181. slidge_whatsapp/vendor/golang.org/x/net/http2/http2.go +7 -29
  182. slidge_whatsapp/vendor/golang.org/x/net/http2/server.go +53 -71
  183. slidge_whatsapp/vendor/golang.org/x/net/http2/transport.go +20 -74
  184. slidge_whatsapp/vendor/golang.org/x/sys/unix/affinity_linux.go +1 -3
  185. slidge_whatsapp/vendor/golang.org/x/sys/unix/mkerrors.sh +3 -0
  186. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin.go +1 -55
  187. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_solaris.go +1 -1
  188. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux.go +47 -16
  189. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +3 -0
  190. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +3 -0
  191. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +3 -0
  192. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +3 -0
  193. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +3 -0
  194. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +3 -0
  195. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +3 -0
  196. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +3 -0
  197. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +3 -0
  198. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +3 -0
  199. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +3 -0
  200. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +3 -0
  201. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +3 -0
  202. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +3 -0
  203. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +3 -0
  204. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +4 -4
  205. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +1 -0
  206. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +1 -0
  207. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +1 -0
  208. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +1 -0
  209. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +1 -0
  210. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +1 -0
  211. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +1 -0
  212. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +1 -0
  213. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +1 -0
  214. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +1 -0
  215. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +1 -0
  216. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +1 -0
  217. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +1 -0
  218. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +1 -0
  219. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +1 -0
  220. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux.go +168 -12
  221. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +17 -1
  222. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +16 -0
  223. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +18 -2
  224. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +16 -0
  225. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +16 -0
  226. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +17 -1
  227. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +16 -0
  228. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +16 -0
  229. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +17 -1
  230. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +18 -2
  231. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +16 -0
  232. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +16 -0
  233. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +16 -0
  234. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +16 -0
  235. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +16 -0
  236. slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows.go +6 -0
  237. slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +483 -483
  238. slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/protowire/wire.go +25 -1
  239. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb +0 -0
  240. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/editions.go +10 -5
  241. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/presence.go +33 -0
  242. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/api_gen.go +6 -0
  243. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +68 -22
  244. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_message_opaque.go +2 -1
  245. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_opaque.go +8 -37
  246. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/presence.go +0 -3
  247. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/version/version.go +1 -1
  248. slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +8 -0
  249. slidge_whatsapp/vendor/modules.txt +57 -23
  250. {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/METADATA +2 -2
  251. {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/RECORD +254 -174
  252. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi_amd64.go +0 -7
  253. slidge_whatsapp/vendor/golang.org/x/net/http2/config_go124.go +0 -61
  254. slidge_whatsapp/vendor/golang.org/x/net/http2/config_pre_go124.go +0 -16
  255. slidge_whatsapp/vendor/golang.org/x/net/http2/timer.go +0 -20
  256. {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/LICENSE +0 -0
  257. {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/WHEEL +0 -0
  258. {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/entry_points.txt +0 -0
@@ -193,50 +193,6 @@ type Transport struct {
193
193
 
194
194
  type transportTestHooks struct {
195
195
  newclientconn func(*ClientConn)
196
- group synctestGroupInterface
197
- }
198
-
199
- func (t *Transport) markNewGoroutine() {
200
- if t != nil && t.transportTestHooks != nil {
201
- t.transportTestHooks.group.Join()
202
- }
203
- }
204
-
205
- func (t *Transport) now() time.Time {
206
- if t != nil && t.transportTestHooks != nil {
207
- return t.transportTestHooks.group.Now()
208
- }
209
- return time.Now()
210
- }
211
-
212
- func (t *Transport) timeSince(when time.Time) time.Duration {
213
- if t != nil && t.transportTestHooks != nil {
214
- return t.now().Sub(when)
215
- }
216
- return time.Since(when)
217
- }
218
-
219
- // newTimer creates a new time.Timer, or a synthetic timer in tests.
220
- func (t *Transport) newTimer(d time.Duration) timer {
221
- if t.transportTestHooks != nil {
222
- return t.transportTestHooks.group.NewTimer(d)
223
- }
224
- return timeTimer{time.NewTimer(d)}
225
- }
226
-
227
- // afterFunc creates a new time.AfterFunc timer, or a synthetic timer in tests.
228
- func (t *Transport) afterFunc(d time.Duration, f func()) timer {
229
- if t.transportTestHooks != nil {
230
- return t.transportTestHooks.group.AfterFunc(d, f)
231
- }
232
- return timeTimer{time.AfterFunc(d, f)}
233
- }
234
-
235
- func (t *Transport) contextWithTimeout(ctx context.Context, d time.Duration) (context.Context, context.CancelFunc) {
236
- if t.transportTestHooks != nil {
237
- return t.transportTestHooks.group.ContextWithTimeout(ctx, d)
238
- }
239
- return context.WithTimeout(ctx, d)
240
196
  }
241
197
 
242
198
  func (t *Transport) maxHeaderListSize() uint32 {
@@ -366,7 +322,7 @@ type ClientConn struct {
366
322
  readerErr error // set before readerDone is closed
367
323
 
368
324
  idleTimeout time.Duration // or 0 for never
369
- idleTimer timer
325
+ idleTimer *time.Timer
370
326
 
371
327
  mu sync.Mutex // guards following
372
328
  cond *sync.Cond // hold mu; broadcast on flow/closed changes
@@ -534,14 +490,12 @@ func (cs *clientStream) closeReqBodyLocked() {
534
490
  cs.reqBodyClosed = make(chan struct{})
535
491
  reqBodyClosed := cs.reqBodyClosed
536
492
  go func() {
537
- cs.cc.t.markNewGoroutine()
538
493
  cs.reqBody.Close()
539
494
  close(reqBodyClosed)
540
495
  }()
541
496
  }
542
497
 
543
498
  type stickyErrWriter struct {
544
- group synctestGroupInterface
545
499
  conn net.Conn
546
500
  timeout time.Duration
547
501
  err *error
@@ -551,7 +505,7 @@ func (sew stickyErrWriter) Write(p []byte) (n int, err error) {
551
505
  if *sew.err != nil {
552
506
  return 0, *sew.err
553
507
  }
554
- n, err = writeWithByteTimeout(sew.group, sew.conn, sew.timeout, p)
508
+ n, err = writeWithByteTimeout(sew.conn, sew.timeout, p)
555
509
  *sew.err = err
556
510
  return n, err
557
511
  }
@@ -650,9 +604,9 @@ func (t *Transport) RoundTripOpt(req *http.Request, opt RoundTripOpt) (*http.Res
650
604
  backoff := float64(uint(1) << (uint(retry) - 1))
651
605
  backoff += backoff * (0.1 * mathrand.Float64())
652
606
  d := time.Second * time.Duration(backoff)
653
- tm := t.newTimer(d)
607
+ tm := time.NewTimer(d)
654
608
  select {
655
- case <-tm.C():
609
+ case <-tm.C:
656
610
  t.vlogf("RoundTrip retrying after failure: %v", roundTripErr)
657
611
  continue
658
612
  case <-req.Context().Done():
@@ -699,6 +653,7 @@ var (
699
653
  errClientConnUnusable = errors.New("http2: client conn not usable")
700
654
  errClientConnNotEstablished = errors.New("http2: client conn could not be established")
701
655
  errClientConnGotGoAway = errors.New("http2: Transport received Server's graceful shutdown GOAWAY")
656
+ errClientConnForceClosed = errors.New("http2: client connection force closed via ClientConn.Close")
702
657
  )
703
658
 
704
659
  // shouldRetryRequest is called by RoundTrip when a request fails to get
@@ -838,14 +793,11 @@ func (t *Transport) newClientConn(c net.Conn, singleUse bool) (*ClientConn, erro
838
793
  pingTimeout: conf.PingTimeout,
839
794
  pings: make(map[[8]byte]chan struct{}),
840
795
  reqHeaderMu: make(chan struct{}, 1),
841
- lastActive: t.now(),
796
+ lastActive: time.Now(),
842
797
  }
843
- var group synctestGroupInterface
844
798
  if t.transportTestHooks != nil {
845
- t.markNewGoroutine()
846
799
  t.transportTestHooks.newclientconn(cc)
847
800
  c = cc.tconn
848
- group = t.group
849
801
  }
850
802
  if VerboseLogs {
851
803
  t.vlogf("http2: Transport creating client conn %p to %v", cc, c.RemoteAddr())
@@ -857,7 +809,6 @@ func (t *Transport) newClientConn(c net.Conn, singleUse bool) (*ClientConn, erro
857
809
  // TODO: adjust this writer size to account for frame size +
858
810
  // MTU + crypto/tls record padding.
859
811
  cc.bw = bufio.NewWriter(stickyErrWriter{
860
- group: group,
861
812
  conn: c,
862
813
  timeout: conf.WriteByteTimeout,
863
814
  err: &cc.werr,
@@ -906,7 +857,7 @@ func (t *Transport) newClientConn(c net.Conn, singleUse bool) (*ClientConn, erro
906
857
  // Start the idle timer after the connection is fully initialized.
907
858
  if d := t.idleConnTimeout(); d != 0 {
908
859
  cc.idleTimeout = d
909
- cc.idleTimer = t.afterFunc(d, cc.onIdleTimeout)
860
+ cc.idleTimer = time.AfterFunc(d, cc.onIdleTimeout)
910
861
  }
911
862
 
912
863
  go cc.readLoop()
@@ -917,7 +868,7 @@ func (cc *ClientConn) healthCheck() {
917
868
  pingTimeout := cc.pingTimeout
918
869
  // We don't need to periodically ping in the health check, because the readLoop of ClientConn will
919
870
  // trigger the healthCheck again if there is no frame received.
920
- ctx, cancel := cc.t.contextWithTimeout(context.Background(), pingTimeout)
871
+ ctx, cancel := context.WithTimeout(context.Background(), pingTimeout)
921
872
  defer cancel()
922
873
  cc.vlogf("http2: Transport sending health check")
923
874
  err := cc.Ping(ctx)
@@ -1120,7 +1071,7 @@ func (cc *ClientConn) tooIdleLocked() bool {
1120
1071
  // times are compared based on their wall time. We don't want
1121
1072
  // to reuse a connection that's been sitting idle during
1122
1073
  // VM/laptop suspend if monotonic time was also frozen.
1123
- return cc.idleTimeout != 0 && !cc.lastIdle.IsZero() && cc.t.timeSince(cc.lastIdle.Round(0)) > cc.idleTimeout
1074
+ return cc.idleTimeout != 0 && !cc.lastIdle.IsZero() && time.Since(cc.lastIdle.Round(0)) > cc.idleTimeout
1124
1075
  }
1125
1076
 
1126
1077
  // onIdleTimeout is called from a time.AfterFunc goroutine. It will
@@ -1186,7 +1137,6 @@ func (cc *ClientConn) Shutdown(ctx context.Context) error {
1186
1137
  done := make(chan struct{})
1187
1138
  cancelled := false // guarded by cc.mu
1188
1139
  go func() {
1189
- cc.t.markNewGoroutine()
1190
1140
  cc.mu.Lock()
1191
1141
  defer cc.mu.Unlock()
1192
1142
  for {
@@ -1257,8 +1207,7 @@ func (cc *ClientConn) closeForError(err error) {
1257
1207
  //
1258
1208
  // In-flight requests are interrupted. For a graceful shutdown, use Shutdown instead.
1259
1209
  func (cc *ClientConn) Close() error {
1260
- err := errors.New("http2: client connection force closed via ClientConn.Close")
1261
- cc.closeForError(err)
1210
+ cc.closeForError(errClientConnForceClosed)
1262
1211
  return nil
1263
1212
  }
1264
1213
 
@@ -1427,7 +1376,6 @@ func (cc *ClientConn) roundTrip(req *http.Request, streamf func(*clientStream))
1427
1376
  //
1428
1377
  // It sends the request and performs post-request cleanup (closing Request.Body, etc.).
1429
1378
  func (cs *clientStream) doRequest(req *http.Request, streamf func(*clientStream)) {
1430
- cs.cc.t.markNewGoroutine()
1431
1379
  err := cs.writeRequest(req, streamf)
1432
1380
  cs.cleanupWriteRequest(err)
1433
1381
  }
@@ -1558,9 +1506,9 @@ func (cs *clientStream) writeRequest(req *http.Request, streamf func(*clientStre
1558
1506
  var respHeaderTimer <-chan time.Time
1559
1507
  var respHeaderRecv chan struct{}
1560
1508
  if d := cc.responseHeaderTimeout(); d != 0 {
1561
- timer := cc.t.newTimer(d)
1509
+ timer := time.NewTimer(d)
1562
1510
  defer timer.Stop()
1563
- respHeaderTimer = timer.C()
1511
+ respHeaderTimer = timer.C
1564
1512
  respHeaderRecv = cs.respHeaderRecv
1565
1513
  }
1566
1514
  // Wait until the peer half-closes its end of the stream,
@@ -1753,7 +1701,7 @@ func (cc *ClientConn) awaitOpenSlotForStreamLocked(cs *clientStream) error {
1753
1701
  // Return a fatal error which aborts the retry loop.
1754
1702
  return errClientConnNotEstablished
1755
1703
  }
1756
- cc.lastActive = cc.t.now()
1704
+ cc.lastActive = time.Now()
1757
1705
  if cc.closed || !cc.canTakeNewRequestLocked() {
1758
1706
  return errClientConnUnusable
1759
1707
  }
@@ -2092,10 +2040,10 @@ func (cc *ClientConn) forgetStreamID(id uint32) {
2092
2040
  if len(cc.streams) != slen-1 {
2093
2041
  panic("forgetting unknown stream id")
2094
2042
  }
2095
- cc.lastActive = cc.t.now()
2043
+ cc.lastActive = time.Now()
2096
2044
  if len(cc.streams) == 0 && cc.idleTimer != nil {
2097
2045
  cc.idleTimer.Reset(cc.idleTimeout)
2098
- cc.lastIdle = cc.t.now()
2046
+ cc.lastIdle = time.Now()
2099
2047
  }
2100
2048
  // Wake up writeRequestBody via clientStream.awaitFlowControl and
2101
2049
  // wake up RoundTrip if there is a pending request.
@@ -2121,7 +2069,6 @@ type clientConnReadLoop struct {
2121
2069
 
2122
2070
  // readLoop runs in its own goroutine and reads and dispatches frames.
2123
2071
  func (cc *ClientConn) readLoop() {
2124
- cc.t.markNewGoroutine()
2125
2072
  rl := &clientConnReadLoop{cc: cc}
2126
2073
  defer rl.cleanup()
2127
2074
  cc.readerErr = rl.run()
@@ -2188,9 +2135,9 @@ func (rl *clientConnReadLoop) cleanup() {
2188
2135
  if cc.idleTimeout > 0 && unusedWaitTime > cc.idleTimeout {
2189
2136
  unusedWaitTime = cc.idleTimeout
2190
2137
  }
2191
- idleTime := cc.t.now().Sub(cc.lastActive)
2138
+ idleTime := time.Now().Sub(cc.lastActive)
2192
2139
  if atomic.LoadUint32(&cc.atomicReused) == 0 && idleTime < unusedWaitTime && !cc.closedOnIdle {
2193
- cc.idleTimer = cc.t.afterFunc(unusedWaitTime-idleTime, func() {
2140
+ cc.idleTimer = time.AfterFunc(unusedWaitTime-idleTime, func() {
2194
2141
  cc.t.connPool().MarkDead(cc)
2195
2142
  })
2196
2143
  } else {
@@ -2250,9 +2197,9 @@ func (rl *clientConnReadLoop) run() error {
2250
2197
  cc := rl.cc
2251
2198
  gotSettings := false
2252
2199
  readIdleTimeout := cc.readIdleTimeout
2253
- var t timer
2200
+ var t *time.Timer
2254
2201
  if readIdleTimeout != 0 {
2255
- t = cc.t.afterFunc(readIdleTimeout, cc.healthCheck)
2202
+ t = time.AfterFunc(readIdleTimeout, cc.healthCheck)
2256
2203
  }
2257
2204
  for {
2258
2205
  f, err := cc.fr.ReadFrame()
@@ -2998,7 +2945,6 @@ func (cc *ClientConn) Ping(ctx context.Context) error {
2998
2945
  var pingError error
2999
2946
  errc := make(chan struct{})
3000
2947
  go func() {
3001
- cc.t.markNewGoroutine()
3002
2948
  cc.wmu.Lock()
3003
2949
  defer cc.wmu.Unlock()
3004
2950
  if pingError = cc.fr.WritePing(false, p); pingError != nil {
@@ -3228,7 +3174,7 @@ func traceGotConn(req *http.Request, cc *ClientConn, reused bool) {
3228
3174
  cc.mu.Lock()
3229
3175
  ci.WasIdle = len(cc.streams) == 0 && reused
3230
3176
  if ci.WasIdle && !cc.lastActive.IsZero() {
3231
- ci.IdleTime = cc.t.timeSince(cc.lastActive)
3177
+ ci.IdleTime = time.Since(cc.lastActive)
3232
3178
  }
3233
3179
  cc.mu.Unlock()
3234
3180
 
@@ -38,9 +38,7 @@ func SchedSetaffinity(pid int, set *CPUSet) error {
38
38
 
39
39
  // Zero clears the set s, so that it contains no CPUs.
40
40
  func (s *CPUSet) Zero() {
41
- for i := range s {
42
- s[i] = 0
43
- }
41
+ clear(s[:])
44
42
  }
45
43
 
46
44
  func cpuBitsIndex(cpu int) int {
@@ -349,6 +349,9 @@ struct ltchars {
349
349
  #define _HIDIOCGRAWPHYS HIDIOCGRAWPHYS(_HIDIOCGRAWPHYS_LEN)
350
350
  #define _HIDIOCGRAWUNIQ HIDIOCGRAWUNIQ(_HIDIOCGRAWUNIQ_LEN)
351
351
 
352
+ // Renamed in v6.16, commit c6d732c38f93 ("net: ethtool: remove duplicate defines for family info")
353
+ #define ETHTOOL_FAMILY_NAME ETHTOOL_GENL_NAME
354
+ #define ETHTOOL_FAMILY_VERSION ETHTOOL_GENL_VERSION
352
355
  '
353
356
 
354
357
  includes_NetBSD='
@@ -602,14 +602,9 @@ func Connectx(fd int, srcIf uint32, srcAddr, dstAddr Sockaddr, associd SaeAssocI
602
602
  return
603
603
  }
604
604
 
605
- // sys connectx(fd int, endpoints *SaEndpoints, associd SaeAssocID, flags uint32, iov []Iovec, n *uintptr, connid *SaeConnID) (err error)
606
605
  const minIovec = 8
607
606
 
608
607
  func Readv(fd int, iovs [][]byte) (n int, err error) {
609
- if !darwinKernelVersionMin(11, 0, 0) {
610
- return 0, ENOSYS
611
- }
612
-
613
608
  iovecs := make([]Iovec, 0, minIovec)
614
609
  iovecs = appendBytes(iovecs, iovs)
615
610
  n, err = readv(fd, iovecs)
@@ -618,9 +613,6 @@ func Readv(fd int, iovs [][]byte) (n int, err error) {
618
613
  }
619
614
 
620
615
  func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) {
621
- if !darwinKernelVersionMin(11, 0, 0) {
622
- return 0, ENOSYS
623
- }
624
616
  iovecs := make([]Iovec, 0, minIovec)
625
617
  iovecs = appendBytes(iovecs, iovs)
626
618
  n, err = preadv(fd, iovecs, offset)
@@ -629,10 +621,6 @@ func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) {
629
621
  }
630
622
 
631
623
  func Writev(fd int, iovs [][]byte) (n int, err error) {
632
- if !darwinKernelVersionMin(11, 0, 0) {
633
- return 0, ENOSYS
634
- }
635
-
636
624
  iovecs := make([]Iovec, 0, minIovec)
637
625
  iovecs = appendBytes(iovecs, iovs)
638
626
  if raceenabled {
@@ -644,10 +632,6 @@ func Writev(fd int, iovs [][]byte) (n int, err error) {
644
632
  }
645
633
 
646
634
  func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) {
647
- if !darwinKernelVersionMin(11, 0, 0) {
648
- return 0, ENOSYS
649
- }
650
-
651
635
  iovecs := make([]Iovec, 0, minIovec)
652
636
  iovecs = appendBytes(iovecs, iovs)
653
637
  if raceenabled {
@@ -707,45 +691,7 @@ func readvRacedetect(iovecs []Iovec, n int, err error) {
707
691
  }
708
692
  }
709
693
 
710
- func darwinMajorMinPatch() (maj, min, patch int, err error) {
711
- var un Utsname
712
- err = Uname(&un)
713
- if err != nil {
714
- return
715
- }
716
-
717
- var mmp [3]int
718
- c := 0
719
- Loop:
720
- for _, b := range un.Release[:] {
721
- switch {
722
- case b >= '0' && b <= '9':
723
- mmp[c] = 10*mmp[c] + int(b-'0')
724
- case b == '.':
725
- c++
726
- if c > 2 {
727
- return 0, 0, 0, ENOTSUP
728
- }
729
- case b == 0:
730
- break Loop
731
- default:
732
- return 0, 0, 0, ENOTSUP
733
- }
734
- }
735
- if c != 2 {
736
- return 0, 0, 0, ENOTSUP
737
- }
738
- return mmp[0], mmp[1], mmp[2], nil
739
- }
740
-
741
- func darwinKernelVersionMin(maj, min, patch int) bool {
742
- actualMaj, actualMin, actualPatch, err := darwinMajorMinPatch()
743
- if err != nil {
744
- return false
745
- }
746
- return actualMaj > maj || actualMaj == maj && (actualMin > min || actualMin == min && actualPatch >= patch)
747
- }
748
-
694
+ //sys connectx(fd int, endpoints *SaEndpoints, associd SaeAssocID, flags uint32, iov []Iovec, n *uintptr, connid *SaeConnID) (err error)
749
695
  //sys sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error)
750
696
 
751
697
  //sys shmat(id int, addr uintptr, flag int) (ret uintptr, err error)
@@ -629,7 +629,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
629
629
  //sys Kill(pid int, signum syscall.Signal) (err error)
630
630
  //sys Lchown(path string, uid int, gid int) (err error)
631
631
  //sys Link(path string, link string) (err error)
632
- //sys Listen(s int, backlog int) (err error) = libsocket.__xnet_llisten
632
+ //sys Listen(s int, backlog int) (err error) = libsocket.__xnet_listen
633
633
  //sys Lstat(path string, stat *Stat_t) (err error)
634
634
  //sys Madvise(b []byte, advice int) (err error)
635
635
  //sys Mkdir(path string, mode uint32) (err error)
@@ -319,6 +319,7 @@ const (
319
319
  AUDIT_INTEGRITY_POLICY_RULE = 0x70f
320
320
  AUDIT_INTEGRITY_RULE = 0x70d
321
321
  AUDIT_INTEGRITY_STATUS = 0x70a
322
+ AUDIT_INTEGRITY_USERSPACE = 0x710
322
323
  AUDIT_IPC = 0x517
323
324
  AUDIT_IPC_SET_PERM = 0x51f
324
325
  AUDIT_IPE_ACCESS = 0x58c
@@ -327,6 +328,8 @@ const (
327
328
  AUDIT_KERNEL = 0x7d0
328
329
  AUDIT_KERNEL_OTHER = 0x524
329
330
  AUDIT_KERN_MODULE = 0x532
331
+ AUDIT_LANDLOCK_ACCESS = 0x58f
332
+ AUDIT_LANDLOCK_DOMAIN = 0x590
330
333
  AUDIT_LAST_FEATURE = 0x1
331
334
  AUDIT_LAST_KERN_ANOM_MSG = 0x707
332
335
  AUDIT_LAST_USER_MSG = 0x4af
@@ -491,6 +494,7 @@ const (
491
494
  BPF_F_BEFORE = 0x8
492
495
  BPF_F_ID = 0x20
493
496
  BPF_F_NETFILTER_IP_DEFRAG = 0x1
497
+ BPF_F_PREORDER = 0x40
494
498
  BPF_F_QUERY_EFFECTIVE = 0x1
495
499
  BPF_F_REDIRECT_FLAGS = 0x19
496
500
  BPF_F_REPLACE = 0x4
@@ -527,6 +531,7 @@ const (
527
531
  BPF_LDX = 0x1
528
532
  BPF_LEN = 0x80
529
533
  BPF_LL_OFF = -0x200000
534
+ BPF_LOAD_ACQ = 0x100
530
535
  BPF_LSH = 0x60
531
536
  BPF_MAJOR_VERSION = 0x1
532
537
  BPF_MAXINSNS = 0x1000
@@ -554,6 +559,7 @@ const (
554
559
  BPF_RET = 0x6
555
560
  BPF_RSH = 0x70
556
561
  BPF_ST = 0x2
562
+ BPF_STORE_REL = 0x110
557
563
  BPF_STX = 0x3
558
564
  BPF_SUB = 0x10
559
565
  BPF_TAG_SIZE = 0x8
@@ -843,9 +849,9 @@ const (
843
849
  DM_UUID_FLAG = 0x4000
844
850
  DM_UUID_LEN = 0x81
845
851
  DM_VERSION = 0xc138fd00
846
- DM_VERSION_EXTRA = "-ioctl (2023-03-01)"
852
+ DM_VERSION_EXTRA = "-ioctl (2025-04-28)"
847
853
  DM_VERSION_MAJOR = 0x4
848
- DM_VERSION_MINOR = 0x30
854
+ DM_VERSION_MINOR = 0x32
849
855
  DM_VERSION_PATCHLEVEL = 0x0
850
856
  DT_BLK = 0x6
851
857
  DT_CHR = 0x2
@@ -936,11 +942,10 @@ const (
936
942
  EPOLL_CTL_MOD = 0x3
937
943
  EPOLL_IOC_TYPE = 0x8a
938
944
  EROFS_SUPER_MAGIC_V1 = 0xe0f5e1e2
939
- ESP_V4_FLOW = 0xa
940
- ESP_V6_FLOW = 0xc
941
- ETHER_FLOW = 0x12
942
945
  ETHTOOL_BUSINFO_LEN = 0x20
943
946
  ETHTOOL_EROMVERS_LEN = 0x20
947
+ ETHTOOL_FAMILY_NAME = "ethtool"
948
+ ETHTOOL_FAMILY_VERSION = 0x1
944
949
  ETHTOOL_FEC_AUTO = 0x2
945
950
  ETHTOOL_FEC_BASER = 0x10
946
951
  ETHTOOL_FEC_LLRS = 0x20
@@ -1203,13 +1208,18 @@ const (
1203
1208
  FAN_DENY = 0x2
1204
1209
  FAN_ENABLE_AUDIT = 0x40
1205
1210
  FAN_EPIDFD = -0x2
1211
+ FAN_ERRNO_BITS = 0x8
1212
+ FAN_ERRNO_MASK = 0xff
1213
+ FAN_ERRNO_SHIFT = 0x18
1206
1214
  FAN_EVENT_INFO_TYPE_DFID = 0x3
1207
1215
  FAN_EVENT_INFO_TYPE_DFID_NAME = 0x2
1208
1216
  FAN_EVENT_INFO_TYPE_ERROR = 0x5
1209
1217
  FAN_EVENT_INFO_TYPE_FID = 0x1
1218
+ FAN_EVENT_INFO_TYPE_MNT = 0x7
1210
1219
  FAN_EVENT_INFO_TYPE_NEW_DFID_NAME = 0xc
1211
1220
  FAN_EVENT_INFO_TYPE_OLD_DFID_NAME = 0xa
1212
1221
  FAN_EVENT_INFO_TYPE_PIDFD = 0x4
1222
+ FAN_EVENT_INFO_TYPE_RANGE = 0x6
1213
1223
  FAN_EVENT_METADATA_LEN = 0x18
1214
1224
  FAN_EVENT_ON_CHILD = 0x8000000
1215
1225
  FAN_FS_ERROR = 0x8000
@@ -1224,9 +1234,12 @@ const (
1224
1234
  FAN_MARK_IGNORED_SURV_MODIFY = 0x40
1225
1235
  FAN_MARK_IGNORE_SURV = 0x440
1226
1236
  FAN_MARK_INODE = 0x0
1237
+ FAN_MARK_MNTNS = 0x110
1227
1238
  FAN_MARK_MOUNT = 0x10
1228
1239
  FAN_MARK_ONLYDIR = 0x8
1229
1240
  FAN_MARK_REMOVE = 0x2
1241
+ FAN_MNT_ATTACH = 0x1000000
1242
+ FAN_MNT_DETACH = 0x2000000
1230
1243
  FAN_MODIFY = 0x2
1231
1244
  FAN_MOVE = 0xc0
1232
1245
  FAN_MOVED_FROM = 0x40
@@ -1240,6 +1253,7 @@ const (
1240
1253
  FAN_OPEN_EXEC = 0x1000
1241
1254
  FAN_OPEN_EXEC_PERM = 0x40000
1242
1255
  FAN_OPEN_PERM = 0x10000
1256
+ FAN_PRE_ACCESS = 0x100000
1243
1257
  FAN_Q_OVERFLOW = 0x4000
1244
1258
  FAN_RENAME = 0x10000000
1245
1259
  FAN_REPORT_DFID_NAME = 0xc00
@@ -1247,6 +1261,7 @@ const (
1247
1261
  FAN_REPORT_DIR_FID = 0x400
1248
1262
  FAN_REPORT_FD_ERROR = 0x2000
1249
1263
  FAN_REPORT_FID = 0x200
1264
+ FAN_REPORT_MNT = 0x4000
1250
1265
  FAN_REPORT_NAME = 0x800
1251
1266
  FAN_REPORT_PIDFD = 0x80
1252
1267
  FAN_REPORT_TARGET_FID = 0x1000
@@ -1266,6 +1281,7 @@ const (
1266
1281
  FIB_RULE_PERMANENT = 0x1
1267
1282
  FIB_RULE_UNRESOLVED = 0x4
1268
1283
  FIDEDUPERANGE = 0xc0189436
1284
+ FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED = 0x1
1269
1285
  FSCRYPT_KEY_DESCRIPTOR_SIZE = 0x8
1270
1286
  FSCRYPT_KEY_DESC_PREFIX = "fscrypt:"
1271
1287
  FSCRYPT_KEY_DESC_PREFIX_SIZE = 0x8
@@ -1574,7 +1590,6 @@ const (
1574
1590
  IPV6_DONTFRAG = 0x3e
1575
1591
  IPV6_DROP_MEMBERSHIP = 0x15
1576
1592
  IPV6_DSTOPTS = 0x3b
1577
- IPV6_FLOW = 0x11
1578
1593
  IPV6_FREEBIND = 0x4e
1579
1594
  IPV6_HDRINCL = 0x24
1580
1595
  IPV6_HOPLIMIT = 0x34
@@ -1625,7 +1640,6 @@ const (
1625
1640
  IPV6_TRANSPARENT = 0x4b
1626
1641
  IPV6_UNICAST_HOPS = 0x10
1627
1642
  IPV6_UNICAST_IF = 0x4c
1628
- IPV6_USER_FLOW = 0xe
1629
1643
  IPV6_V6ONLY = 0x1a
1630
1644
  IPV6_VERSION = 0x60
1631
1645
  IPV6_VERSION_MASK = 0xf0
@@ -1687,7 +1701,6 @@ const (
1687
1701
  IP_TTL = 0x2
1688
1702
  IP_UNBLOCK_SOURCE = 0x25
1689
1703
  IP_UNICAST_IF = 0x32
1690
- IP_USER_FLOW = 0xd
1691
1704
  IP_XFRM_POLICY = 0x11
1692
1705
  ISOFS_SUPER_MAGIC = 0x9660
1693
1706
  ISTRIP = 0x20
@@ -1809,7 +1822,11 @@ const (
1809
1822
  LANDLOCK_ACCESS_FS_WRITE_FILE = 0x2
1810
1823
  LANDLOCK_ACCESS_NET_BIND_TCP = 0x1
1811
1824
  LANDLOCK_ACCESS_NET_CONNECT_TCP = 0x2
1825
+ LANDLOCK_CREATE_RULESET_ERRATA = 0x2
1812
1826
  LANDLOCK_CREATE_RULESET_VERSION = 0x1
1827
+ LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON = 0x2
1828
+ LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF = 0x1
1829
+ LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF = 0x4
1813
1830
  LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET = 0x1
1814
1831
  LANDLOCK_SCOPE_SIGNAL = 0x2
1815
1832
  LINUX_REBOOT_CMD_CAD_OFF = 0x0
@@ -2485,6 +2502,10 @@ const (
2485
2502
  PR_FP_EXC_UND = 0x40000
2486
2503
  PR_FP_MODE_FR = 0x1
2487
2504
  PR_FP_MODE_FRE = 0x2
2505
+ PR_FUTEX_HASH = 0x4e
2506
+ PR_FUTEX_HASH_GET_IMMUTABLE = 0x3
2507
+ PR_FUTEX_HASH_GET_SLOTS = 0x2
2508
+ PR_FUTEX_HASH_SET_SLOTS = 0x1
2488
2509
  PR_GET_AUXV = 0x41555856
2489
2510
  PR_GET_CHILD_SUBREAPER = 0x25
2490
2511
  PR_GET_DUMPABLE = 0x3
@@ -2644,6 +2665,10 @@ const (
2644
2665
  PR_TAGGED_ADDR_ENABLE = 0x1
2645
2666
  PR_TASK_PERF_EVENTS_DISABLE = 0x1f
2646
2667
  PR_TASK_PERF_EVENTS_ENABLE = 0x20
2668
+ PR_TIMER_CREATE_RESTORE_IDS = 0x4d
2669
+ PR_TIMER_CREATE_RESTORE_IDS_GET = 0x2
2670
+ PR_TIMER_CREATE_RESTORE_IDS_OFF = 0x0
2671
+ PR_TIMER_CREATE_RESTORE_IDS_ON = 0x1
2647
2672
  PR_TIMING_STATISTICAL = 0x0
2648
2673
  PR_TIMING_TIMESTAMP = 0x1
2649
2674
  PR_TSC_ENABLE = 0x1
@@ -2724,6 +2749,7 @@ const (
2724
2749
  PTRACE_SETREGSET = 0x4205
2725
2750
  PTRACE_SETSIGINFO = 0x4203
2726
2751
  PTRACE_SETSIGMASK = 0x420b
2752
+ PTRACE_SET_SYSCALL_INFO = 0x4212
2727
2753
  PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG = 0x4210
2728
2754
  PTRACE_SINGLESTEP = 0x9
2729
2755
  PTRACE_SYSCALL = 0x18
@@ -2787,7 +2813,7 @@ const (
2787
2813
  RTAX_UNSPEC = 0x0
2788
2814
  RTAX_WINDOW = 0x3
2789
2815
  RTA_ALIGNTO = 0x4
2790
- RTA_MAX = 0x1e
2816
+ RTA_MAX = 0x1f
2791
2817
  RTCF_DIRECTSRC = 0x4000000
2792
2818
  RTCF_DOREDIRECT = 0x1000000
2793
2819
  RTCF_LOG = 0x2000000
@@ -2864,10 +2890,12 @@ const (
2864
2890
  RTM_DELACTION = 0x31
2865
2891
  RTM_DELADDR = 0x15
2866
2892
  RTM_DELADDRLABEL = 0x49
2893
+ RTM_DELANYCAST = 0x3d
2867
2894
  RTM_DELCHAIN = 0x65
2868
2895
  RTM_DELLINK = 0x11
2869
2896
  RTM_DELLINKPROP = 0x6d
2870
2897
  RTM_DELMDB = 0x55
2898
+ RTM_DELMULTICAST = 0x39
2871
2899
  RTM_DELNEIGH = 0x1d
2872
2900
  RTM_DELNETCONF = 0x51
2873
2901
  RTM_DELNEXTHOP = 0x69
@@ -2917,11 +2945,13 @@ const (
2917
2945
  RTM_NEWACTION = 0x30
2918
2946
  RTM_NEWADDR = 0x14
2919
2947
  RTM_NEWADDRLABEL = 0x48
2948
+ RTM_NEWANYCAST = 0x3c
2920
2949
  RTM_NEWCACHEREPORT = 0x60
2921
2950
  RTM_NEWCHAIN = 0x64
2922
2951
  RTM_NEWLINK = 0x10
2923
2952
  RTM_NEWLINKPROP = 0x6c
2924
2953
  RTM_NEWMDB = 0x54
2954
+ RTM_NEWMULTICAST = 0x38
2925
2955
  RTM_NEWNDUSEROPT = 0x44
2926
2956
  RTM_NEWNEIGH = 0x1c
2927
2957
  RTM_NEWNEIGHTBL = 0x40
@@ -2970,6 +3000,7 @@ const (
2970
3000
  RTPROT_NTK = 0xf
2971
3001
  RTPROT_OPENR = 0x63
2972
3002
  RTPROT_OSPF = 0xbc
3003
+ RTPROT_OVN = 0x54
2973
3004
  RTPROT_RA = 0x9
2974
3005
  RTPROT_REDIRECT = 0x1
2975
3006
  RTPROT_RIP = 0xbd
@@ -2987,11 +3018,12 @@ const (
2987
3018
  RUSAGE_THREAD = 0x1
2988
3019
  RWF_APPEND = 0x10
2989
3020
  RWF_ATOMIC = 0x40
3021
+ RWF_DONTCACHE = 0x80
2990
3022
  RWF_DSYNC = 0x2
2991
3023
  RWF_HIPRI = 0x1
2992
3024
  RWF_NOAPPEND = 0x20
2993
3025
  RWF_NOWAIT = 0x8
2994
- RWF_SUPPORTED = 0x7f
3026
+ RWF_SUPPORTED = 0xff
2995
3027
  RWF_SYNC = 0x4
2996
3028
  RWF_WRITE_LIFE_NOT_SET = 0x0
2997
3029
  SCHED_BATCH = 0x3
@@ -3271,6 +3303,7 @@ const (
3271
3303
  STATX_BTIME = 0x800
3272
3304
  STATX_CTIME = 0x80
3273
3305
  STATX_DIOALIGN = 0x2000
3306
+ STATX_DIO_READ_ALIGN = 0x20000
3274
3307
  STATX_GID = 0x10
3275
3308
  STATX_INO = 0x100
3276
3309
  STATX_MNT_ID = 0x1000
@@ -3322,7 +3355,7 @@ const (
3322
3355
  TASKSTATS_GENL_NAME = "TASKSTATS"
3323
3356
  TASKSTATS_GENL_VERSION = 0x1
3324
3357
  TASKSTATS_TYPE_MAX = 0x6
3325
- TASKSTATS_VERSION = 0xe
3358
+ TASKSTATS_VERSION = 0x10
3326
3359
  TCIFLUSH = 0x0
3327
3360
  TCIOFF = 0x2
3328
3361
  TCIOFLUSH = 0x2
@@ -3392,8 +3425,6 @@ const (
3392
3425
  TCP_TX_DELAY = 0x25
3393
3426
  TCP_ULP = 0x1f
3394
3427
  TCP_USER_TIMEOUT = 0x12
3395
- TCP_V4_FLOW = 0x1
3396
- TCP_V6_FLOW = 0x5
3397
3428
  TCP_WINDOW_CLAMP = 0xa
3398
3429
  TCP_ZEROCOPY_RECEIVE = 0x23
3399
3430
  TFD_TIMER_ABSTIME = 0x1
@@ -3503,6 +3534,7 @@ const (
3503
3534
  TP_STATUS_WRONG_FORMAT = 0x4
3504
3535
  TRACEFS_MAGIC = 0x74726163
3505
3536
  TS_COMM_LEN = 0x20
3537
+ UBI_IOCECNFO = 0xc01c6f06
3506
3538
  UDF_SUPER_MAGIC = 0x15013346
3507
3539
  UDP_CORK = 0x1
3508
3540
  UDP_ENCAP = 0x64
@@ -3515,8 +3547,6 @@ const (
3515
3547
  UDP_NO_CHECK6_RX = 0x66
3516
3548
  UDP_NO_CHECK6_TX = 0x65
3517
3549
  UDP_SEGMENT = 0x67
3518
- UDP_V4_FLOW = 0x2
3519
- UDP_V6_FLOW = 0x6
3520
3550
  UMOUNT_NOFOLLOW = 0x8
3521
3551
  USBDEVICE_SUPER_MAGIC = 0x9fa2
3522
3552
  UTIME_NOW = 0x3fffffff
@@ -3559,7 +3589,7 @@ const (
3559
3589
  WDIOS_TEMPPANIC = 0x4
3560
3590
  WDIOS_UNKNOWN = -0x1
3561
3591
  WEXITED = 0x4
3562
- WGALLOWEDIP_A_MAX = 0x3
3592
+ WGALLOWEDIP_A_MAX = 0x4
3563
3593
  WGDEVICE_A_MAX = 0x8
3564
3594
  WGPEER_A_MAX = 0xa
3565
3595
  WG_CMD_MAX = 0x1
@@ -3673,6 +3703,7 @@ const (
3673
3703
  XDP_SHARED_UMEM = 0x1
3674
3704
  XDP_STATISTICS = 0x7
3675
3705
  XDP_TXMD_FLAGS_CHECKSUM = 0x2
3706
+ XDP_TXMD_FLAGS_LAUNCH_TIME = 0x4
3676
3707
  XDP_TXMD_FLAGS_TIMESTAMP = 0x1
3677
3708
  XDP_TX_METADATA = 0x2
3678
3709
  XDP_TX_RING = 0x3