add directory Ref-docs
This commit is contained in:
116
Ref-docs/POSIX/susv3/basedefs/net/if.h.html
Normal file
116
Ref-docs/POSIX/susv3/basedefs/net/if.h.html
Normal file
@@ -0,0 +1,116 @@
|
||||
<!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><net/if.h></title>
|
||||
</head>
|
||||
<body bgcolor="white">
|
||||
<script type="text/javascript" language="JavaScript" src="../../jscript/dotcode.js">
|
||||
</script>
|
||||
|
||||
<basefont size="3"> <a name="<net/if.h>"></a> <a name="tag_13_30"></a><!-- <net/if.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_30_01"></a>NAME</h4>
|
||||
|
||||
<blockquote>net/if.h - sockets local interfaces</blockquote>
|
||||
|
||||
<h4><a name="tag_13_30_02"></a>SYNOPSIS</h4>
|
||||
|
||||
<blockquote class="synopsis">
|
||||
<p><tt>#include <net/if.h></tt></p>
|
||||
</blockquote>
|
||||
|
||||
<h4><a name="tag_13_30_03"></a>DESCRIPTION</h4>
|
||||
|
||||
<blockquote>
|
||||
<p>The <i><net/if.h></i> header shall define the <b>if_nameindex</b> structure that includes at least the following
|
||||
members:</p>
|
||||
|
||||
<pre>
|
||||
<tt>unsigned if_index </tt> Numeric index of the interface. <tt>
|
||||
char *if_name </tt> Null-terminated name of the interface. <tt>
|
||||
</tt>
|
||||
</pre>
|
||||
|
||||
<p>The <i><net/if.h></i> header shall define the following macro for the length of a buffer containing an interface name
|
||||
(including the terminating NULL character):</p>
|
||||
|
||||
<dl compact>
|
||||
<dt>IF_NAMESIZE</dt>
|
||||
|
||||
<dd>Interface name length.</dd>
|
||||
</dl>
|
||||
|
||||
<p>The following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided.</p>
|
||||
|
||||
<pre>
|
||||
<tt>unsigned if_nametoindex(const char *);
|
||||
char *if_indextoname(unsigned, char *);
|
||||
struct if_nameindex *if_nameindex(void);
|
||||
void if_freenameindex(struct if_nameindex *);
|
||||
</tt>
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<hr>
|
||||
<div class="box"><em>The following sections are informative.</em></div>
|
||||
|
||||
<h4><a name="tag_13_30_04"></a>APPLICATION USAGE</h4>
|
||||
|
||||
<blockquote>
|
||||
<p>None.</p>
|
||||
</blockquote>
|
||||
|
||||
<h4><a name="tag_13_30_05"></a>RATIONALE</h4>
|
||||
|
||||
<blockquote>
|
||||
<p>None.</p>
|
||||
</blockquote>
|
||||
|
||||
<h4><a name="tag_13_30_06"></a>FUTURE DIRECTIONS</h4>
|
||||
|
||||
<blockquote>
|
||||
<p>None.</p>
|
||||
</blockquote>
|
||||
|
||||
<h4><a name="tag_13_30_07"></a>SEE ALSO</h4>
|
||||
|
||||
<blockquote>
|
||||
<p>The System Interfaces volume of IEEE Std 1003.1-2001, <a href=
|
||||
"../../functions/if_freenameindex.html"><i>if_freenameindex</i>()</a>, <a href=
|
||||
"../../functions/if_indextoname.html"><i>if_indextoname</i>()</a>, <a href=
|
||||
"../../functions/if_nameindex.html"><i>if_nameindex</i>()</a>, <a href=
|
||||
"../../functions/if_nametoindex.html"><i>if_nametoindex</i>()</a></p>
|
||||
</blockquote>
|
||||
|
||||
<h4><a name="tag_13_30_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>
|
||||
|
||||
119
Ref-docs/POSIX/susv3/basedefs/net/style.css
Normal file
119
Ref-docs/POSIX/susv3/basedefs/net/style.css
Normal file
@@ -0,0 +1,119 @@
|
||||
A:link { COLOR: #0000FF; }
|
||||
A:visited { COLOR: #6666FF; }
|
||||
A:active { COLOR: #6666FF; }
|
||||
A:hover {
|
||||
COLOR: #FF0000;
|
||||
TEXT-DECORATION: underline;
|
||||
}
|
||||
|
||||
H1{
|
||||
FONT-FAMILY: Arial, Helvetica, sans-serif;
|
||||
COLOR: #006600;
|
||||
BACKGROUND-COLOR: white;
|
||||
FONT-SIZE: 20pt;
|
||||
}
|
||||
H2{
|
||||
FONT-FAMILY: Arial, Helvetica, sans-serif;
|
||||
COLOR: #006600;
|
||||
BACKGROUND-COLOR: white;
|
||||
FONT-SIZE: 15pt;
|
||||
}
|
||||
H3{
|
||||
FONT-FAMILY: Arial, Helvetica, sans-serif;
|
||||
COLOR: #006600;
|
||||
BACKGROUND-COLOR: white;
|
||||
FONT-SIZE: 14pt;
|
||||
}
|
||||
H4{
|
||||
FONT-FAMILY: Arial, Helvetica, sans-serif;
|
||||
COLOR: #006600;
|
||||
BACKGROUND-COLOR: white;
|
||||
FONT-Style: italic;
|
||||
FONT-SIZE: 12pt;
|
||||
}
|
||||
H5{
|
||||
FONT-FAMILY: Arial, Helvetica, sans-serif;
|
||||
COLOR: #006600;
|
||||
BACKGROUND-COLOR: white;
|
||||
FONT-SIZE: 11pt;
|
||||
}
|
||||
H6{
|
||||
FONT-FAMILY: Arial, Helvetica, sans-serif;
|
||||
COLOR: #006666;
|
||||
BACKGROUND-COLOR: white;
|
||||
FONT-SIZE: 10pt;
|
||||
font-weight : bold;
|
||||
}
|
||||
|
||||
BODY
|
||||
{
|
||||
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
|
||||
FONT-SIZE: 10pt;
|
||||
MARGIN-LEFT: 3pt;
|
||||
MARGIN-TOP: 2pt;
|
||||
COLOR: #000000;
|
||||
BACKGROUND-COLOR: white;
|
||||
}
|
||||
|
||||
BLOCKQUOTE.synopsis
|
||||
{
|
||||
FONT-SIZE: 11pt;
|
||||
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
/*em { font-style: italic; font-weight: normal; font-size:10pt; }*/
|
||||
|
||||
BLOCKQUOTE.body
|
||||
{
|
||||
FONT-SIZE: 10pt;
|
||||
MARGIN-BOTTOM: 0pt;
|
||||
MARGIN-LEFT: 0pt;
|
||||
MARGIN-TOP: 0pt;
|
||||
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
|
||||
TEXT-INDENT: 10px;
|
||||
}
|
||||
|
||||
TABLE {
|
||||
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
|
||||
FONT-SIZE: 10pt;
|
||||
MARGIN-LEFT: 0pt;
|
||||
MARGIN-TOP: 0pt;
|
||||
COLOR: #000000;
|
||||
BACKGROUND-COLOR: white;
|
||||
}
|
||||
|
||||
P.tent {
|
||||
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
|
||||
FONT-SIZE: 10pt;
|
||||
}
|
||||
|
||||
UL
|
||||
{
|
||||
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
|
||||
FONT-SIZE: 10pt;
|
||||
COLOR: #000000;
|
||||
}
|
||||
|
||||
LI
|
||||
{
|
||||
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
|
||||
FONT-SIZE: 10pt;
|
||||
COLOR: #000000;
|
||||
/* TEXT-INDENT: -10px; */
|
||||
|
||||
}
|
||||
|
||||
HR
|
||||
{
|
||||
COLOR: #009900;
|
||||
}
|
||||
|
||||
div.box { border: none; border-width: thin;
|
||||
background: rgb(204,204,255);
|
||||
font-size: 11pt;
|
||||
}
|
||||
|
||||
|
||||
pre {FONT-SIZE: 11pt; }
|
||||
pre { font-family: monospace; }
|
||||
|
||||
Reference in New Issue
Block a user