Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man4/unix.4
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)unix.4 8.1 (Berkeley) 6/9/93 | .\" @(#)unix.4 8.1 (Berkeley) 6/9/93 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd August 19, 2018 | .Dd August 3, 2020 | ||||
.Dt UNIX 4 | .Dt UNIX 4 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm unix | .Nm unix | ||||
.Nd UNIX-domain protocol family | .Nd UNIX-domain protocol family | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In sys/types.h | .In sys/types.h | ||||
.In sys/un.h | .In sys/un.h | ||||
▲ Show 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | |||||
.Fa cmcred_pid | .Fa cmcred_pid | ||||
should not be looked up (such as via the | should not be looked up (such as via the | ||||
.Dv KERN_PROC_PID | .Dv KERN_PROC_PID | ||||
sysctl) for making security decisions. | sysctl) for making security decisions. | ||||
The sending process could have exited and its process ID already been | The sending process could have exited and its process ID already been | ||||
reused for a new process. | reused for a new process. | ||||
.Sh SOCKET OPTIONS | .Sh SOCKET OPTIONS | ||||
.Tn UNIX | .Tn UNIX | ||||
domain sockets support a number of socket options which can be set with | domain sockets support a number of socket options for the options level | ||||
.Dv SOL_LOCAL , | |||||
which can be set with | |||||
.Xr setsockopt 2 | .Xr setsockopt 2 | ||||
and tested with | and tested with | ||||
.Xr getsockopt 2 : | .Xr getsockopt 2 : | ||||
.Bl -tag -width ".Dv LOCAL_CONNWAIT" | .Bl -tag -width ".Dv LOCAL_CONNWAIT" | ||||
.It Dv LOCAL_CREDS | .It Dv LOCAL_CREDS | ||||
This option may be enabled on | This option may be enabled on | ||||
.Dv SOCK_DGRAM , | .Dv SOCK_DGRAM , | ||||
.Dv SOCK_SEQPACKET , | .Dv SOCK_SEQPACKET , | ||||
▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines |