unix.4 (81949) | unix.4 (107788) |
---|---|
1.\" Copyright (c) 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)unix.4 8.1 (Berkeley) 6/9/93 | 1.\" Copyright (c) 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)unix.4 8.1 (Berkeley) 6/9/93 |
33.\" $FreeBSD: head/share/man/man4/unix.4 81949 2001-08-20 08:28:18Z ru $ | 33.\" $FreeBSD: head/share/man/man4/unix.4 107788 2002-12-12 17:26:04Z ru $ |
34.\" 35.Dd July 15, 2001 36.Dt UNIX 4 37.Os 38.Sh NAME 39.Nm unix 40.Nd UNIX-domain protocol family 41.Sh SYNOPSIS --- 9 unchanged lines hidden (view full) --- 51mechanisms. 52The 53.Ux Ns -domain 54family supports the 55.Dv SOCK_STREAM 56and 57.Dv SOCK_DGRAM 58socket types and uses | 34.\" 35.Dd July 15, 2001 36.Dt UNIX 4 37.Os 38.Sh NAME 39.Nm unix 40.Nd UNIX-domain protocol family 41.Sh SYNOPSIS --- 9 unchanged lines hidden (view full) --- 51mechanisms. 52The 53.Ux Ns -domain 54family supports the 55.Dv SOCK_STREAM 56and 57.Dv SOCK_DGRAM 58socket types and uses |
59filesystem pathnames for addressing. | 59file system pathnames for addressing. |
60.Sh ADDRESSING 61.Ux Ns -domain | 60.Sh ADDRESSING 61.Ux Ns -domain |
62addresses are variable-length filesystem pathnames of | 62addresses are variable-length file system pathnames of |
63at most 104 characters. 64The include file 65.Aq Pa sys/un.h 66defines this address: 67.Bd -literal -offset indent 68struct sockaddr_un { 69u_char sun_len; 70u_char sun_family; 71char sun_path[104]; 72}; 73.Ed 74.Pp 75Binding a name to a 76.Ux Ns -domain 77socket with 78.Xr bind 2 | 63at most 104 characters. 64The include file 65.Aq Pa sys/un.h 66defines this address: 67.Bd -literal -offset indent 68struct sockaddr_un { 69u_char sun_len; 70u_char sun_family; 71char sun_path[104]; 72}; 73.Ed 74.Pp 75Binding a name to a 76.Ux Ns -domain 77socket with 78.Xr bind 2 |
79causes a socket file to be created in the filesystem. | 79causes a socket file to be created in the file system. |
80This file is 81.Em not 82removed when the socket is closed \(em 83.Xr unlink 2 84must be used to remove the file. 85.Pp 86The 87.Ux Ns -domain 88protocol family does not support broadcast addressing or any form 89of 90.Dq wildcard 91matching on incoming messages. 92All addresses are absolute- or relative-pathnames 93of other 94.Ux Ns -domain 95sockets. | 80This file is 81.Em not 82removed when the socket is closed \(em 83.Xr unlink 2 84must be used to remove the file. 85.Pp 86The 87.Ux Ns -domain 88protocol family does not support broadcast addressing or any form 89of 90.Dq wildcard 91matching on incoming messages. 92All addresses are absolute- or relative-pathnames 93of other 94.Ux Ns -domain 95sockets. |
96Normal filesystem access-control mechanisms are also | 96Normal file system access-control mechanisms are also |
97applied when referencing pathnames; e.g., the destination 98of a 99.Xr connect 2 100or 101.Xr sendto 2 102must be writable. 103.Sh PROTOCOLS 104The --- 87 unchanged lines hidden --- | 97applied when referencing pathnames; e.g., the destination 98of a 99.Xr connect 2 100or 101.Xr sendto 2 102must be writable. 103.Sh PROTOCOLS 104The --- 87 unchanged lines hidden --- |