git » go-net » unix-separados » tree

[unix-separados] / unix / defs_linux.go

// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build ignore

package unix

/*
#define _GNU_SOURCE

#include <sys/socket.h>
#include <sys/un.h>
*/
import "C"

type ucred C.struct_ucred

const (
	sysSO_PEERCRED = C.SO_PEERCRED
	sysSOL_SOCKET  = C.SOL_SOCKET

	sizeofUcred = C.sizeof_struct_ucred
)