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_time.h.0p (3553B)


  1. '\" et
  2. .TH sys_time.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/time.h
  12. \(em time types
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <sys/time.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <sys/time.h>
  21. header shall define the
  22. .BR timeval
  23. structure, which shall include at least the following members:
  24. .sp
  25. .RS 4
  26. .nf
  27. time_t tv_sec \fRSeconds.\fR
  28. suseconds_t tv_usec \fRMicroseconds.\fR
  29. .fi
  30. .P
  31. .RE
  32. .P
  33. The
  34. .IR <sys/time.h>
  35. header shall define the
  36. .BR itimerval
  37. structure, which shall include at least the following members:
  38. .sp
  39. .RS 4
  40. .nf
  41. struct timeval it_interval \fRTimer interval.\fR
  42. struct timeval it_value \fRCurrent value.\fR
  43. .fi
  44. .P
  45. .RE
  46. .P
  47. The
  48. .IR <sys/time.h>
  49. header shall define the
  50. .BR time_t
  51. and
  52. .BR suseconds_t
  53. types as described in
  54. .IR <sys/types.h> .
  55. .P
  56. The
  57. .IR <sys/time.h>
  58. header shall define the
  59. .BR fd_set
  60. type as described in
  61. .IR <sys/select.h> .
  62. .P
  63. The
  64. .IR <sys/time.h>
  65. header shall define the following symbolic constants for the
  66. .IR which
  67. argument of
  68. \fIgetitimer\fR()
  69. and
  70. \fIsetitimer\fR():
  71. .IP ITIMER_REAL 14
  72. Decrements in real time.
  73. .IP ITIMER_VIRTUAL 14
  74. Decrements in process virtual time.
  75. .IP ITIMER_PROF 14
  76. Decrements both in process virtual time and when the system is running
  77. on behalf of the process.
  78. .P
  79. The
  80. .IR <sys/time.h>
  81. header shall define the following as described in
  82. .IR <sys/select.h> :
  83. \fIFD_CLR\fR()
  84. \fIFD_ISSET\fR()
  85. \fIFD_SET\fR()
  86. \fIFD_ZERO\fR()
  87. FD_SETSIZE
  88. .P
  89. The following shall be declared as functions and may also be defined
  90. as macros. Function prototypes shall be provided.
  91. .sp
  92. .RS 4
  93. .nf
  94. int getitimer(int, struct itimerval *);
  95. int gettimeofday(struct timeval *restrict, void *restrict);
  96. int setitimer(int, const struct itimerval *restrict,
  97. struct itimerval *restrict);
  98. int select(int, fd_set *restrict, fd_set *restrict, fd_set *restrict,
  99. struct timeval *restrict);
  100. int utimes(const char *, const struct timeval [2]);
  101. .fi
  102. .P
  103. .RE
  104. .P
  105. Inclusion of the
  106. .IR <sys/time.h>
  107. header may make visible all symbols from the
  108. .IR <sys/select.h>
  109. header.
  110. .LP
  111. .IR "The following sections are informative."
  112. .SH "APPLICATION USAGE"
  113. None.
  114. .SH RATIONALE
  115. None.
  116. .SH "FUTURE DIRECTIONS"
  117. None.
  118. .SH "SEE ALSO"
  119. .IR "\fB<sys_select.h>\fP",
  120. .IR "\fB<sys_types.h>\fP"
  121. .P
  122. The System Interfaces volume of POSIX.1\(hy2017,
  123. .IR "\fIfutimens\fR\^(\|)",
  124. .IR "\fIgetitimer\fR\^(\|)",
  125. .IR "\fIgettimeofday\fR\^(\|)",
  126. .IR "\fIpselect\fR\^(\|)"
  127. .\"
  128. .SH COPYRIGHT
  129. Portions of this text are reprinted and reproduced in electronic form
  130. from IEEE Std 1003.1-2017, Standard for Information Technology
  131. -- Portable Operating System Interface (POSIX), The Open Group Base
  132. Specifications Issue 7, 2018 Edition,
  133. Copyright (C) 2018 by the Institute of
  134. Electrical and Electronics Engineers, Inc and The Open Group.
  135. In the event of any discrepancy between this version and the original IEEE and
  136. The Open Group Standard, the original IEEE and The Open Group Standard
  137. is the referee document. The original Standard can be obtained online at
  138. http://www.opengroup.org/unix/online.html .
  139. .PP
  140. Any typographical or formatting errors that appear
  141. in this page are most likely
  142. to have been introduced during the conversion of the source files to
  143. man page format. To report such errors, see
  144. https://www.kernel.org/doc/man-pages/reporting_bugs.html .