github.com/m10x/go/src@v0.0.0-20220112094212-ba61592315da/syscall/export_darwin_test.go (about)

     1  // Copyright 2020 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package syscall
     6  
     7  func Ioctl(fd, req, arg uintptr) Errno {
     8  	err := ioctl(int(fd), int(req), int(arg))
     9  	if err != nil {
    10  		return err.(Errno)
    11  	}
    12  	return 0
    13  }