github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/libpod/oci_attach_linux_cgo.go (about)

     1  //+build linux,cgo
     2  
     3  package libpod
     4  
     5  //#include <sys/un.h>
     6  // extern int unix_path_length(){struct sockaddr_un addr; return sizeof(addr.sun_path) - 1;}
     7  import "C"
     8  
     9  func unixPathLength() int {
    10  	return int(C.unix_path_length())
    11  }