]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: update comments for x/sys migration
authorLynn Boger <laboger@linux.vnet.ibm.com>
Tue, 4 Apr 2017 12:34:55 +0000 (08:34 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 5 Apr 2017 14:22:15 +0000 (14:22 +0000)
The comments in this package state that users should be
migrating code that uses the syscall package to its
corresponding package in x/sys. However, the syscall.Signal
and syscall.Errno types and the syscall.SysProcAttr struct is
not defined in the x/sys package and still need to be referenced
from within syscall.  This adds a change to the comments to
clarify that the migration will need to continue to use some
references to syscall for now.

Fixes #19560

Change-Id: I8abb96b93bea90070ce461da16dc7bcf7b4b29c1
Reviewed-on: https://go-review.googlesource.com/39450
Reviewed-by: Rob Pike <r@golang.org>
src/syscall/syscall.go

index e8560a036d0fdbb97040195c9089c0aeded63b32..7db994bf08440638d28b50a186ef5f554c34d0b0 100644 (file)
 // Go repository should be migrated to use the corresponding
 // package in the golang.org/x/sys repository. That is also where updates
 // required by new systems or versions should be applied.
-// See https://golang.org/s/go1.4-syscall for more information.
+// Signal, Errno and SysProcAttr are not yet available in
+// golang.org/x/sys and must still be referenced from the
+// syscall package. See https://golang.org/s/go1.4-syscall
+// for more information.
 //
 package syscall