summaryrefslogtreecommitdiff
path: root/libpod/oci_attach_linux_cgo.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-07-22 22:46:18 +0200
committerGitHub <noreply@github.com>2019-07-22 22:46:18 +0200
commita12a2312ac5c6c485eaa1d45e4b7e29d6cc4a9ff (patch)
tree2fe83dbecabff2df6aabfe7204418fd6fa05919e /libpod/oci_attach_linux_cgo.go
parentcf9efa90e5dcf89e10408eae5229c4ce904d9fc7 (diff)
parent53e1ede46b030ad2aeecbdd7b2a385b60500ac4c (diff)
downloadpodman-a12a2312ac5c6c485eaa1d45e4b7e29d6cc4a9ff.tar.gz
podman-a12a2312ac5c6c485eaa1d45e4b7e29d6cc4a9ff.tar.bz2
podman-a12a2312ac5c6c485eaa1d45e4b7e29d6cc4a9ff.zip
Merge pull request #3143 from haircommander/conmon-exec
use conmon for exec
Diffstat (limited to 'libpod/oci_attach_linux_cgo.go')
-rw-r--r--libpod/oci_attach_linux_cgo.go11
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())
+}