]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: document errno value semantics
authorBrian Palmer <brian@codekitchen.net>
Fri, 27 Sep 2024 20:09:11 +0000 (14:09 -0600)
committerGopher Robot <gobot@golang.org>
Tue, 1 Oct 2024 18:16:07 +0000 (18:16 +0000)
commitb37b27b595898f6c5e65e3c78d76bc50caef8622
treea7dcbf75cf1cf4b81f54674416ec9090d1ee760a
parente470a00cdff2c4c13162dc8887fedd6812393514
cmd/cgo: document errno value semantics

Added a section about errno values vs normal go
error value semantics, and checking the return
value of C functions for error before looking at
errno.

Fixes #63485

Change-Id: Id0132a9f11e4127f4adc14e010b7e17f57a0f7d3
Reviewed-on: https://go-review.googlesource.com/c/go/+/616264
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/cgo/doc.go