...

Source file src/runtime/nbpipe_fcntl_unix_test.go

Documentation: runtime

		 1  // Copyright 2019 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  //go:build dragonfly || freebsd || linux || netbsd || openbsd
		 6  // +build dragonfly freebsd linux netbsd openbsd
		 7  
		 8  package runtime_test
		 9  
		10  import (
		11  	"internal/syscall/unix"
		12  	"syscall"
		13  )
		14  
		15  func fcntl(fd uintptr, cmd int, arg uintptr) (uintptr, syscall.Errno) {
		16  	res, _, err := syscall.Syscall(unix.FcntlSyscall, fd, uintptr(cmd), arg)
		17  	return res, err
		18  }
		19  

View as plain text