📄 types.h.html
字号:
<dd><sup>[<a href="javascript:open_code('TRC')">TRC</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"> Used to identify a trace stream. <img src="../../images/opt-end.gif" alt="[Option End]" border="0"></dd><dt><b>uid_t</b></dt><dd>Used for user IDs.</dd><dt><b>useconds_t</b></dt><dd><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"> Used for time in microseconds. <img src="../../images/opt-end.gif" alt="[Option End]" border="0"></dd></dl><p>All of the types shall be defined as arithmetic types of an appropriate length, with the following exceptions:</p><p><br><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"><br><b>key_t</b><br><img src="../../images/opt-end.gif" alt="[Option End]" border="0"><br><sup>[<a href="javascript:open_code('THR')">THR</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"><br><b>pthread_attr_t</b><br><img src="../../images/opt-end.gif" alt="[Option End]" border="0"><br><sup>[<a href="javascript:open_code('BAR')">BAR</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"><br><b>pthread_barrier_t</b><br><b>pthread_barrierattr_t</b><br><img src="../../images/opt-end.gif" alt="[Option End]" border="0"><br><sup>[<a href="javascript:open_code('THR')">THR</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"><br><b>pthread_cond_t</b><br><b>pthread_condattr_t</b><br><b>pthread_key_t</b><br><b>pthread_mutex_t</b><br><b>pthread_mutexattr_t</b><br><b>pthread_once_t</b><br><b>pthread_rwlock_t</b><br><b>pthread_rwlockattr_t</b><br><img src="../../images/opt-end.gif" alt="[Option End]" border="0"><br><sup>[<a href="javascript:open_code('SPI')">SPI</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"><br><b>pthread_spinlock_t</b><br><img src="../../images/opt-end.gif" alt="[Option End]" border="0"><br><sup>[<a href="javascript:open_code('TRC')">TRC</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"><br><b>trace_attr_t</b><br><b>trace_event_id_t</b><br><img src="../../images/opt-end.gif" alt="[Option End]" border="0"><br><sup>[<a href="javascript:open_code('TRC TEF')">TRC TEF</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]"border="0"><br><b>trace_event_set_t</b><br><img src="../../images/opt-end.gif" alt="[Option End]" border="0"><br><sup>[<a href="javascript:open_code('TRC')">TRC</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"><br><b>trace_id_t</b><br><img src="../../images/opt-end.gif" alt="[Option End]" border="0"><br></p><p>Additionally:</p><ul><li><p><b>mode_t</b> shall be an integer type.</p></li><li><p><b>nlink_t</b>, <b>uid_t</b>, <b>gid_t</b>, and <b>id_t</b> shall be integer types.</p></li><li><p><b>blkcnt_t</b> and <b>off_t</b> shall be signed integer types.</p></li><li><p><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"> <b>fsblkcnt_t</b>, <b>fsfilcnt_t</b>, <img src="../../images/opt-end.gif" alt="[Option End]" border="0"> and<b>ino_t</b> shall be defined as unsigned integer types.</p></li><li><p><b>size_t</b> shall be an unsigned integer type.</p></li><li><p><b>blksize_t</b>, <b>pid_t</b>, and <b>ssize_t</b> shall be signed integer types.</p></li><li><p><b>time_t</b> and <b>clock_t</b> shall be integer or real-floating types.</p></li></ul><p>The type <b>ssize_t</b> shall be capable of storing values at least in the range [-1, {SSIZE_MAX}]. <sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"> The type<b>useconds_t</b> shall be an unsigned integer type capable of storing values at least in the range [0, 1000000]. The type<b>suseconds_t</b> shall be a signed integer type capable of storing values at least in the range [-1, 1000000]. <img src="../../images/opt-end.gif" alt="[Option End]" border="0"></p><p>The implementation shall support one or more programming environments in which the widths of <b>blksize_t</b>, <b>pid_t</b>,<b>size_t</b>, <b>ssize_t</b>, <b>suseconds_t</b>, and <b>useconds_t</b> are no greater than the width of type <b>long</b>. Thenames of these programming environments can be obtained using the <a href="../../functions/confstr.html"><i>confstr</i>()</a>function or the <a href="../../utilities/getconf.html"><i>getconf</i></a> utility.</p><p>There are no defined comparison or assignment operators for the following types:</p><p><br><sup>[<a href="javascript:open_code('THR')">THR</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"><br><b>pthread_attr_t</b><br><img src="../../images/opt-end.gif" alt="[Option End]" border="0"><br><sup>[<a href="javascript:open_code('BAR')">BAR</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"><br><b>pthread_barrier_t</b><br><b>pthread_barrierattr_t</b><br><img src="../../images/opt-end.gif" alt="[Option End]" border="0"><br><sup>[<a href="javascript:open_code('THR')">THR</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"><br><b>pthread_cond_t</b><br><b>pthread_condattr_t</b><br><b>pthread_mutex_t</b><br><b>pthread_mutexattr_t</b><br><b>pthread_rwlock_t</b><br><b>pthread_rwlockattr_t</b><br><img src="../../images/opt-end.gif" alt="[Option End]" border="0"><br><sup>[<a href="javascript:open_code('SPI')">SPI</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"><br><b>pthread_spinlock_t</b><br><img src="../../images/opt-end.gif" alt="[Option End]" border="0"><br><sup>[<a href="javascript:open_code('TRC')">TRC</a>]</sup> <img src="../../images/opt-start.gif" alt="[Option Start]" border="0"><br><b>trace_attr_t</b><br><img src="../../images/opt-end.gif" alt="[Option End]" border="0"><br></p></blockquote><hr><div class="box"><em>The following sections are informative.</em></div><h4><a name="tag_13_67_04"></a>APPLICATION USAGE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_67_05"></a>RATIONALE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_67_06"></a>FUTURE DIRECTIONS</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_67_07"></a>SEE ALSO</h4><blockquote><p><a href="time.h.html"><i><time.h></i></a> , the System Interfaces volume of IEEE Std 1003.1-2001, <a href="../../functions/confstr.html"><i>confstr</i>()</a>, the Shell and Utilities volume of IEEE Std 1003.1-2001, <a href="../../utilities/getconf.html"><i>getconf</i></a></p></blockquote><h4><a name="tag_13_67_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_67_09"></a>Issue 5</h4><blockquote><p>The <b>clockid_t</b> and <b>timer_t</b> types are defined for alignment with the POSIX Realtime Extension.</p><p>The types <b>blkcnt_t</b>, <b>blksize_t</b>, <b>fsblkcnt_t</b>, <b>fsfilcnt_t</b>, and <b>suseconds_t</b> are added.</p><p>Large File System extensions are added.</p><p>Updated for alignment with the POSIX Threads Extension.</p></blockquote><h4><a name="tag_13_67_10"></a>Issue 6</h4><blockquote><p>The <b>pthread_barrier_t</b>, <b>pthread_barrierattr_t</b>, and <b>pthread_spinlock_t</b> types are added for alignment withIEEE Std 1003.1j-2000.</p><p>The margin code is changed from XSI to THR for the <b>pthread_rwlock_t</b> and <b>pthread_rwlockattr_t</b> types as Read-WriteLocks have been absorbed into the POSIX Threads option. The threads types are marked THR.</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -