📄 sysun.h.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title><sys/un.h></title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4>NAME</h4><blockquote>sys/un.h - definitions for UNIX-domain sockets<xref type="10" name="sys_unh"></xref></blockquote><h4>SYNOPSIS</h4><blockquote><pre><code>#include <sys/un.h></code></pre></blockquote><h4>DESCRIPTION</h4><blockquote>The<i><sys/un.h></i>header defines the<B>sockaddr_un</B>structure that includes at least the following members:<pre><code>sa_family_t sun_family address familychar sun_path[] socket pathname</code></pre>The<B>sockaddr_un</B>structure is used to store addresses for UNIX domain sockets.Values of this type must be cast to<B>struct sockaddr</B>for use with the socket interfaces defined in this document.<p>The<i><sys/un.h></i>header defines the type<B>sa_family_t</B>as described in<i><a href="syssocket.h.html"><sys/socket.h></a></i>.<p><p>The size of sun_path has intentionally been leftundefined. This was done for good reasons.Different implementations have used different sizes.For example, BSD4.3 uses a size of 108. BSD4.4 uses asize of 104. Since most of the implementations todayoriginated from BSD versions, most of the major vendors today usea size that ranges from 92 to 108. Applications should notassume a particular length for sun_path or assume that it canhold _POSIX_PATH_MAX characters (255).</blockquote><h4>SEE ALSO</h4><blockquote><i><a href="bind.html">bind()</a></i>,<i><a href="socket.html">socket()</a></i>,<i><a href="socketpair.html">socketpair()</a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -