build: check runtime link file
This commit is contained in:
15
c/c_linux.go
Normal file
15
c/c_linux.go
Normal file
@@ -0,0 +1,15 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package c
|
||||
|
||||
import _ "unsafe"
|
||||
|
||||
//go:linkname Stdin stdin
|
||||
var Stdin FilePtr
|
||||
|
||||
//go:linkname Stdout stdout
|
||||
var Stdout FilePtr
|
||||
|
||||
//go:linkname Stderr stderr
|
||||
var Stderr FilePtr
|
||||
Reference in New Issue
Block a user