diff options
Diffstat (limited to 'libpod/oci_attach_linux_cgo.go')
-rw-r--r-- | libpod/oci_attach_linux_cgo.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libpod/oci_attach_linux_cgo.go b/libpod/oci_attach_linux_cgo.go new file mode 100644 index 000000000..d81243360 --- /dev/null +++ b/libpod/oci_attach_linux_cgo.go @@ -0,0 +1,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()) +} |