Lines Matching +full:2 +full:- +full:a

9 .\" 2. Redistributions in binary form must reproduce the above copyright
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
33 .Nd UNIX-domain protocol family
39 .Ux Ns -domain
40 protocol family is a collection of protocols
41 that provides local (on-machine) interprocess
43 .Xr socket 2
46 .Ux Ns -domain
55 .Ux Ns -domain
56 addresses are variable-length file system pathnames of
61 .Bd -literal -offset indent
69 Binding a name to a
70 .Ux Ns -domain
72 .Xr bind 2
73 causes a socket file to be created in the file system.
77 .Xr unlink 2
80 Prior to binding a socket,
81 .Xr fchmod 2
84 and a subsequent call to
85 .Xr chmod 2 .
86 Once the socket is bound to a file name, the permissions of the file can not be
90 .Ux Ns -domain
92 .Xr bind 2
94 .Xr connect 2 ,
101 field must be terminated by a
112 .Ux Ns -domain
117 All addresses are absolute- or relative-pathnames
119 .Ux Ns -domain
121 Normal file system access-control mechanisms are also
123 of a
124 .Xr connect 2
126 .Xr sendto 2
130 .Ux Ns -domain
138 .Xr sendmsg 2
140 .Xr recvmsg 2 .
141 The items to be passed are described using a
155 The received descriptor is a
164 .Xr recvmsg 2
170 Credentials of the sending process can be transmitted explicitly using a
173 with a data portion of type
178 .Bd -literal
189 The sender should pass a zeroed buffer which will be filled in by the system.
201 reused for a new process.
204 domain sockets support a number of socket options for the options level
207 .Xr setsockopt 2
209 .Xr getsockopt 2 :
210 .Bl -tag -width ".Dv LOCAL_CREDS_PERSISTENT"
215 or a
218 This option provides a mechanism for the receiver to
220 .Xr write 2 ,
221 .Xr send 2 ,
222 .Xr sendto 2
224 .Xr sendmsg 2
225 as a
226 .Xr recvmsg 2
232 structure points to a buffer that contains a
234 structure followed by a variable length
239 .Bd -literal
258 structure for a specified number
263 .Bd -literal
273 sockets credentials are passed only on the first read from a socket,
281 If this option is enabled and the sender attached a
283 control message with a
285 it will be discarded and a
290 .Xr write 2
293 Therefore, a message accompanied by a particular
299 except that socket credentials are passed on every read from a
308 structure points to a buffer that contains a
310 structure followed by a variable length
315 .Bd -literal
333 .Bd -literal
346 .Xr getsockopt 2
347 on a
352 These will arrive in the form of a filled in
357 .Bd -literal
373 .Xr listen 2
375 .Xr connect 2 ;
377 .Xr connect 2
379 .Xr listen 2 .
383 .Xr connect 2
385 .Xr listen 2 )
388 To reliably obtain peer credentials on a
396 .Ux Ns -domain
399 .Xr send 2
401 .Xr write 2
409 .Ux Ns -domain
421 .Ux Ns -domain
424 are unreliable and always non-blocking for write operations.
429 A
432 .Xr bind 2
440 connected socket, preventing a situation when a single writer can exhaust
443 .Xr sendto 2
446 A side effect of the implementation is that it doesn't guarantee
449 The order is preserved for writes coming through a particular connection.
451 .Xr connect 2 ,
452 .Xr dup 2 ,
453 .Xr fchmod 2 ,
454 .Xr fcntl 2 ,
455 .Xr getsockopt 2 ,
456 .Xr listen 2 ,
457 .Xr recvmsg 2 ,
458 .Xr sendto 2 ,
459 .Xr setsockopt 2 ,
460 .Xr socket 2 ,