blob: 2a16bcaa67f35661bdc192b5f6fda4e53941dbb1 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package server
// #include <sys/un.h>
import "C"
func GetMaxSockPathLen() int {
var t C.struct_sockaddr_un
return len(t.sun_path) - 1 // -1 for the \0 that's part of c strings.
}