os/errno:fix os.Errno 's nil pointer derefer in linux
This commit is contained in:
@@ -70,8 +70,8 @@ type (
|
||||
StatT = syscall.Stat_t
|
||||
)
|
||||
|
||||
//go:linkname Errno errno
|
||||
var Errno c.Int
|
||||
//go:linkname Errno C.llgoErrno
|
||||
func Errno() c.Int
|
||||
|
||||
//go:linkname Umask C.umask
|
||||
func Umask(cmask ModeT) ModeT
|
||||
|
||||
Reference in New Issue
Block a user