📄 utsname.h.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-2004 IEEE and The Open Group, All Rights Reserved --><title><sys/utsname.h></title></head><body bgcolor="white"><script type="text/javascript" language="JavaScript" src="../../jscript/dotcode.js"></script><basefont size="3"> <a name="<sys/utsname.h>"></a> <a name="tag_13_70"></a><!-- <sys/utsname.h> --> <!--header start--><center><font size="2">The Open Group Base Specifications Issue 6<br>IEEE Std 1003.1, 2004 Edition<br>Copyright © 2001-2004 The IEEE and The Open Group, All Rights reserved.</font></center><!--header end--><hr size="2" noshade><h4><a name="tag_13_70_01"></a>NAME</h4><blockquote>sys/utsname.h - system name structure</blockquote><h4><a name="tag_13_70_02"></a>SYNOPSIS</h4><blockquote class="synopsis"><p><tt>#include <sys/utsname.h></tt></p></blockquote><h4><a name="tag_13_70_03"></a>DESCRIPTION</h4><blockquote><p>The <i><sys/utsname.h></i> header shall define the structure <b>utsname</b> which shall include at least the followingmembers:</p><pre><tt>char sysname[] </tt> Name of this implementation of the operating system. <tt>char nodename[]</tt> Name of this node within the communications <tt> </tt> network to which this node is attached, if any. <tt>char release[] </tt> Current release level of this implementation. <tt>char version[] </tt> Current version level of this release. <tt>char machine[] </tt> Name of the hardware type on which the system is running. <tt></tt></pre><p>The character arrays are of unspecified size, but the data stored in them shall be terminated by a null byte.</p><p>The following shall be declared as a function and may also be defined as a macro:</p><pre><tt>int uname(struct utsname *);</tt></pre></blockquote><hr><div class="box"><em>The following sections are informative.</em></div><h4><a name="tag_13_70_04"></a>APPLICATION USAGE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_70_05"></a>RATIONALE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_70_06"></a>FUTURE DIRECTIONS</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_70_07"></a>SEE ALSO</h4><blockquote><p>The System Interfaces volume of IEEE Std 1003.1-2001, <a href="../../functions/uname.html"><i>uname</i>()</a></p></blockquote><h4><a name="tag_13_70_08"></a>CHANGE HISTORY</h4><blockquote><p>First released in Issue 1. Derived from Issue 1 of the SVID.</p></blockquote><h4><a name="tag_13_70_09"></a>Issue 6</h4><blockquote><p>IEEE Std 1003.1-2001/Cor 2-2004, item XBD/TC2/D6/27 is applied, changing the description of <i>nodename</i>within the <b>utsname</b> structure from ``an implementation-defined communications network'' to ``the communications network towhich this node is attached, if any''.</p></blockquote><div class="box"><em>End of informative text.</em></div><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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -