2015-01-24 15:51:42 -07:00
|
|
|
package runtime
|
|
|
|
|
|
|
|
import "unsafe"
|
|
|
|
|
2015-10-16 12:17:25 -06:00
|
|
|
// Return values of access/connect/socket are the return values of the syscall
|
|
|
|
// (may encode error numbers).
|
|
|
|
|
|
|
|
// int access(const char *, int)
|
2015-01-24 15:51:42 -07:00
|
|
|
//go:noescape
|
|
|
|
func access(name *byte, mode int32) int32
|
|
|
|
|
2015-10-16 12:17:25 -06:00
|
|
|
// int connect(int, const struct sockaddr*, socklen_t)
|
|
|
|
func connect(fd int32, addr unsafe.Pointer, len int32) int32
|
2015-01-24 15:51:42 -07:00
|
|
|
|
2015-10-16 12:17:25 -06:00
|
|
|
// int socket(int, int, int)
|
2015-01-24 15:51:42 -07:00
|
|
|
func socket(domain int32, typ int32, prot int32) int32
|