| 1 |
//go:build !go1.12 |
| 2 |
// +build !go1.12 |
| 3 |
|
| 4 |
package cap |
| 5 |
|
| 6 |
import "os" |
| 7 |
|
| 8 |
// fd returns the file descriptor of the file. Suboptimal because it |
| 9 |
// locks a thread to the system calls. |
| 10 |
func fd(file *os.File) uintptr { |
| 11 |
return uintptr(file.Fd()) |
| 12 |
} |