aboutsummaryrefslogtreecommitdiff
path: root/libpod/oci_attach_linux_cgo.go
blob: d812433604d243b045bbf09cbefdf12efeb62191 (plain)
1
2
3
4
5
6
7
8
9
10
11
//+build linux,cgo

package libpod

//#include <sys/un.h>
// extern int unix_path_length(){struct sockaddr_un addr; return sizeof(addr.sun_path) - 1;}
import "C"

func unixPathLength() int {
	return int(C.unix_path_length())
}