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

utime.h.0p (2442B)


  1. '\" et
  2. .TH utime.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. utime.h
  12. \(em access and modification times structure
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <utime.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <utime.h>
  21. header shall declare the
  22. .BR utimbuf
  23. structure, which shall include the following members:
  24. .sp
  25. .RS 4
  26. .nf
  27. time_t actime \fRAccess time.\fR
  28. time_t modtime \fRModification time.\fR
  29. .fi
  30. .P
  31. .RE
  32. .P
  33. The times shall be measured in seconds since the Epoch.
  34. .P
  35. The
  36. .IR <utime.h>
  37. header shall define the
  38. .BR time_t
  39. type as described in
  40. .IR <sys/types.h> .
  41. .P
  42. The following shall be declared as a function and may also be defined
  43. as a macro. A function prototype shall be provided.
  44. .sp
  45. .RS 4
  46. .nf
  47. int utime(const char *, const struct utimbuf *);
  48. .fi
  49. .P
  50. .RE
  51. .LP
  52. .IR "The following sections are informative."
  53. .SH "APPLICATION USAGE"
  54. The
  55. \fIutime\fR()
  56. function only allows setting file timestamps to the nearest second.
  57. Applications should use the
  58. \fIutimensat\fR()
  59. function instead. See
  60. .IR <sys/stat.h> .
  61. .SH RATIONALE
  62. None.
  63. .SH "FUTURE DIRECTIONS"
  64. The
  65. .IR <utime.h>
  66. header may be removed in a future version.
  67. .SH "SEE ALSO"
  68. .IR "\fB<sys_stat.h>\fP",
  69. .IR "\fB<sys_types.h>\fP"
  70. .P
  71. The System Interfaces volume of POSIX.1\(hy2017,
  72. .IR "\fIfutimens\fR\^(\|)",
  73. .IR "\fIutime\fR\^(\|)"
  74. .\"
  75. .SH COPYRIGHT
  76. Portions of this text are reprinted and reproduced in electronic form
  77. from IEEE Std 1003.1-2017, Standard for Information Technology
  78. -- Portable Operating System Interface (POSIX), The Open Group Base
  79. Specifications Issue 7, 2018 Edition,
  80. Copyright (C) 2018 by the Institute of
  81. Electrical and Electronics Engineers, Inc and The Open Group.
  82. In the event of any discrepancy between this version and the original IEEE and
  83. The Open Group Standard, the original IEEE and The Open Group Standard
  84. is the referee document. The original Standard can be obtained online at
  85. http://www.opengroup.org/unix/online.html .
  86. .PP
  87. Any typographical or formatting errors that appear
  88. in this page are most likely
  89. to have been introduced during the conversion of the source files to
  90. man page format. To report such errors, see
  91. https://www.kernel.org/doc/man-pages/reporting_bugs.html .