107 lines
3.7 KiB
HTML
107 lines
3.7 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 -->
|
|
<!-- Copyright (c) 2001 The Open Group, All Rights Reserved -->
|
|
<title><sys/un.h></title>
|
|
</head>
|
|
<body bgcolor="white">
|
|
<script type="text/javascript" language="JavaScript" src="../../jscript/dotcode.js">
|
|
</script>
|
|
|
|
<basefont size="3"> <a name="<sys/un.h>"></a> <a name="tag_13_69"></a><!-- <sys/un.h> -->
|
|
<!--header start-->
|
|
<center><font size="2">The Open Group Base Specifications Issue 6<br>
|
|
IEEE Std 1003.1-2001<br>
|
|
Copyright © 2001 The IEEE and The Open Group, All Rights reserved.</font></center>
|
|
|
|
<!--header end-->
|
|
<hr size="2" noshade>
|
|
<h4><a name="tag_13_69_01"></a>NAME</h4>
|
|
|
|
<blockquote>sys/un.h - definitions for UNIX domain sockets</blockquote>
|
|
|
|
<h4><a name="tag_13_69_02"></a>SYNOPSIS</h4>
|
|
|
|
<blockquote class="synopsis">
|
|
<p><tt>#include <sys/un.h></tt></p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_13_69_03"></a>DESCRIPTION</h4>
|
|
|
|
<blockquote>
|
|
<p>The <i><sys/un.h></i> header shall define the <b>sockaddr_un</b> structure that includes at least the following
|
|
members:</p>
|
|
|
|
<pre>
|
|
<tt>sa_family_t sun_family </tt> Address family. <tt>
|
|
char sun_path[] </tt> Socket pathname. <tt>
|
|
</tt>
|
|
</pre>
|
|
|
|
<p>The <b>sockaddr_un</b> structure is used to store addresses for UNIX domain sockets. Values of this type shall be cast by
|
|
applications to <b>struct sockaddr</b> for use with socket functions.</p>
|
|
|
|
<p>The <b>sa_family_t</b> type shall be defined as described in <a href=
|
|
"../sys/socket.h.html#tag_13_61"><i><sys/socket.h></i></a> .</p>
|
|
</blockquote>
|
|
|
|
<hr>
|
|
<div class="box"><em>The following sections are informative.</em></div>
|
|
|
|
<h4><a name="tag_13_69_04"></a>APPLICATION USAGE</h4>
|
|
|
|
<blockquote>
|
|
<p>The size of <i>sun_path</i> has intentionally been left undefined. This is because different implementations use different
|
|
sizes. For example, 4.3 BSD uses a size of 108, and 4.4 BSD uses a size of 104. Since most implementations originate from BSD
|
|
versions, the size is typically in the range 92 to 108.</p>
|
|
|
|
<p>Applications should not assume a particular length for <i>sun_path</i> or assume that it can hold {_POSIX_PATH_MAX} characters
|
|
(255).</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_13_69_05"></a>RATIONALE</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_13_69_06"></a>FUTURE DIRECTIONS</h4>
|
|
|
|
<blockquote>
|
|
<p>None.</p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_13_69_07"></a>SEE ALSO</h4>
|
|
|
|
<blockquote>
|
|
<p><a href="../sys/socket.h.html#tag_13_61"><i><sys/socket.h></i></a> , the System Interfaces volume of
|
|
IEEE Std 1003.1-2001, <a href="../../functions/bind.html"><i>bind</i>()</a>, <a href=
|
|
"../../functions/socket.html"><i>socket</i>()</a>, <a href="../../functions/socketpair.html"><i>socketpair</i>()</a></p>
|
|
</blockquote>
|
|
|
|
<h4><a name="tag_13_69_08"></a>CHANGE HISTORY</h4>
|
|
|
|
<blockquote>
|
|
<p>First released in Issue 6. Derived from the XNS, Issue 5.2 specification.</p>
|
|
</blockquote>
|
|
|
|
<div class="box"><em>End of informative text.</em></div>
|
|
|
|
<hr>
|
|
<hr size="2" noshade>
|
|
<center><font size="2"><!--footer start-->
|
|
UNIX ® is a registered Trademark of The Open Group.<br>
|
|
POSIX ® is a registered Trademark of The IEEE.<br>
|
|
[ <a href="../../mindex.html">Main Index</a> | <a href="../../basedefs/contents.html">XBD</a> | <a href=
|
|
"../../utilities/contents.html">XCU</a> | <a href="../../functions/contents.html">XSH</a> | <a href=
|
|
"../../xrat/contents.html">XRAT</a> ]</font></center>
|
|
|
|
<!--footer end-->
|
|
<hr size="2" noshade>
|
|
</body>
|
|
</html>
|
|
|