logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

sys_types.h.0p (6152B)


  1. '\" et
  2. .TH sys_types.h "0P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. sys/types.h
  12. \(em data types
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <sys/types.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <sys/types.h>
  21. header shall define at least the following types:
  22. .IP "\fBblkcnt_t\fP" 16
  23. Used for file block counts.
  24. .IP "\fBblksize_t\fP" 16
  25. Used for block sizes.
  26. .IP "\fBclock_t\fP" 16
  27. Used for system times in clock ticks or CLOCKS_PER_SEC; see
  28. .IR <time.h> .
  29. .IP "\fBclockid_t\fP" 16
  30. Used for clock ID type in the clock and timer functions.
  31. .IP "\fBdev_t\fP" 16
  32. Used for device IDs.
  33. .IP "\fBfsblkcnt_t\fP" 16
  34. Used for file system block counts.
  35. .IP "\fBfsfilcnt_t\fP" 16
  36. Used for file system file counts.
  37. .IP "\fBgid_t\fP" 16
  38. Used for group IDs.
  39. .IP "\fBid_t\fP" 16
  40. Used as a general identifier; can be used to contain at least a
  41. .BR pid_t ,
  42. .BR uid_t ,
  43. or
  44. .BR gid_t .
  45. .IP "\fBino_t\fP" 16
  46. Used for file serial numbers.
  47. .IP "\fBkey_t\fP" 16
  48. Used for XSI interprocess communication.
  49. .IP "\fBmode_t\fP" 16
  50. Used for some file attributes.
  51. .IP "\fBnlink_t\fP" 16
  52. Used for link counts.
  53. .IP "\fBoff_t\fP" 16
  54. Used for file sizes.
  55. .IP "\fBpid_t\fP" 16
  56. Used for process IDs and process group IDs.
  57. .IP "\fBpthread_attr_t\fP" 16
  58. Used to identify a thread attribute object.
  59. .IP "\fBpthread_barrier_t\fP" 16
  60. Used to identify a barrier.
  61. .IP "\fBpthread_barrierattr_t\fP" 16
  62. Used to define a barrier attributes object.
  63. .IP "\fBpthread_cond_t\fP" 16
  64. Used for condition variables.
  65. .IP "\fBpthread_condattr_t\fP" 16
  66. Used to identify a condition attribute object.
  67. .IP "\fBpthread_key_t\fP" 16
  68. Used for thread-specific data keys.
  69. .IP "\fBpthread_mutex_t\fP" 16
  70. Used for mutexes.
  71. .IP "\fBpthread_mutexattr_t\fP" 16
  72. Used to identify a mutex attribute object.
  73. .IP "\fBpthread_once_t\fP" 16
  74. Used for dynamic package initialization.
  75. .IP "\fBpthread_rwlock_t\fP" 16
  76. Used for read-write locks.
  77. .IP "\fBpthread_rwlockattr_t\fP" 16
  78. Used for read-write lock attributes.
  79. .IP "\fBpthread_spinlock_t\fP" 16
  80. Used to identify a spin lock.
  81. .IP "\fBpthread_t\fP" 16
  82. Used to identify a thread.
  83. .IP "\fBsize_t\fP" 16
  84. Used for sizes of objects.
  85. .IP "\fBssize_t\fP" 16
  86. Used for a count of bytes or an error indication.
  87. .IP "\fBsuseconds_t\fP" 16
  88. Used for time in microseconds.
  89. .IP "\fBtime_t\fP" 16
  90. Used for time in seconds.
  91. .IP "\fBtimer_t\fP" 16
  92. Used for timer ID returned by
  93. \fItimer_create\fR().
  94. .IP "\fBtrace_attr_t\fP" 16
  95. Used to identify a trace stream attributes object
  96. .IP "\fBtrace_event_id_t\fP" 16
  97. Used to identify a trace event type.
  98. .IP "\fBtrace_event_set_t\fP" 16
  99. Used to identify a trace event type set.
  100. .IP "\fBtrace_id_t\fP" 16
  101. Used to identify a trace stream.
  102. .IP "\fBuid_t\fP" 16
  103. Used for user IDs.
  104. .P
  105. All of the types shall be defined as arithmetic types of an appropriate
  106. length, with the following exceptions:
  107. .P
  108. .nf
  109. .BR pthread_attr_t
  110. .BR pthread_barrier_t
  111. .BR pthread_barrierattr_t
  112. .BR pthread_cond_t
  113. .BR pthread_condattr_t
  114. .BR pthread_key_t
  115. .BR pthread_mutex_t
  116. .BR pthread_mutexattr_t
  117. .BR pthread_once_t
  118. .BR pthread_rwlock_t
  119. .BR pthread_rwlockattr_t
  120. .BR pthread_spinlock_t
  121. .BR pthread_t
  122. .BR timer_t
  123. .BR trace_attr_t
  124. .BR trace_event_id_t
  125. .BR trace_event_set_t
  126. .BR trace_id_t
  127. .fi
  128. .P
  129. Additionally:
  130. .IP " *" 4
  131. .BR mode_t
  132. shall be an integer type.
  133. .IP " *" 4
  134. .BR dev_t
  135. shall be an integer type.
  136. .IP " *" 4
  137. .BR nlink_t ,
  138. .BR uid_t ,
  139. .BR gid_t ,
  140. and
  141. .BR id_t
  142. shall be integer types.
  143. .IP " *" 4
  144. .BR blkcnt_t
  145. and
  146. .BR off_t
  147. shall be signed integer types.
  148. .IP " *" 4
  149. .BR fsblkcnt_t ,
  150. .BR fsfilcnt_t ,
  151. and
  152. .BR ino_t
  153. shall be defined as unsigned integer types.
  154. .IP " *" 4
  155. .BR size_t
  156. shall be an unsigned integer type.
  157. .IP " *" 4
  158. .BR blksize_t ,
  159. .BR pid_t ,
  160. and
  161. .BR ssize_t
  162. shall be signed integer types.
  163. .IP " *" 4
  164. .BR clock_t
  165. shall be an integer or real-floating type.
  166. .BR time_t
  167. shall be an integer type.
  168. .P
  169. The type
  170. .BR ssize_t
  171. shall be capable of storing values at least in the range
  172. [\-1,\ {SSIZE_MAX}].
  173. .P
  174. The type
  175. .BR suseconds_t
  176. shall be a signed integer type capable of storing values at least in
  177. the range [\-1,\ 1\|000\|000].
  178. .P
  179. The implementation shall support one or more programming environments
  180. in which the widths of
  181. .BR blksize_t ,
  182. .BR pid_t ,
  183. .BR size_t ,
  184. .BR ssize_t ,
  185. and
  186. .BR suseconds_t
  187. are no greater than the width of type
  188. .BR long .
  189. The names of these programming environments can be obtained using the
  190. \fIconfstr\fR()
  191. function or the
  192. .IR getconf
  193. utility.
  194. .P
  195. There are no defined comparison or assignment operators for the
  196. following types:
  197. .P
  198. .nf
  199. .BR pthread_attr_t
  200. .BR pthread_barrier_t
  201. .BR pthread_barrierattr_t
  202. .BR pthread_cond_t
  203. .BR pthread_condattr_t
  204. .BR pthread_mutex_t
  205. .BR pthread_mutexattr_t
  206. .BR pthread_rwlock_t
  207. .BR pthread_rwlockattr_t
  208. .BR pthread_spinlock_t
  209. .BR timer_t
  210. .BR trace_attr_t
  211. .fi
  212. .LP
  213. .IR "The following sections are informative."
  214. .SH "APPLICATION USAGE"
  215. None.
  216. .SH RATIONALE
  217. None.
  218. .SH "FUTURE DIRECTIONS"
  219. None.
  220. .SH "SEE ALSO"
  221. .IR "\fB<time.h>\fP"
  222. .P
  223. The System Interfaces volume of POSIX.1\(hy2017,
  224. .IR "\fIconfstr\fR\^(\|)"
  225. .P
  226. The Shell and Utilities volume of POSIX.1\(hy2017,
  227. .IR "\fIgetconf\fR\^"
  228. .\"
  229. .SH COPYRIGHT
  230. Portions of this text are reprinted and reproduced in electronic form
  231. from IEEE Std 1003.1-2017, Standard for Information Technology
  232. -- Portable Operating System Interface (POSIX), The Open Group Base
  233. Specifications Issue 7, 2018 Edition,
  234. Copyright (C) 2018 by the Institute of
  235. Electrical and Electronics Engineers, Inc and The Open Group.
  236. In the event of any discrepancy between this version and the original IEEE and
  237. The Open Group Standard, the original IEEE and The Open Group Standard
  238. is the referee document. The original Standard can be obtained online at
  239. http://www.opengroup.org/unix/online.html .
  240. .PP
  241. Any typographical or formatting errors that appear
  242. in this page are most likely
  243. to have been introduced during the conversion of the source files to
  244. man page format. To report such errors, see
  245. https://www.kernel.org/doc/man-pages/reporting_bugs.html .