[rtems-docs commit] posix-compliance: Change utimes() from sys/ times.h to sys/time.h

Joel Sherrill joel at rtems.org
Sun Dec 9 23:05:21 UTC 2018


Module:    rtems-docs
Branch:    master
Commit:    048b03ea607b42a5cc348b7b867ba18fad12e0a4
Changeset: http://git.rtems.org/rtems-docs/commit/?id=048b03ea607b42a5cc348b7b867ba18fad12e0a4

Author:    Marçal Comajoan Cara <mcomajoancara at gmail.com>
Date:      Sun Dec  9 19:53:33 2018 +0100

posix-compliance: Change utimes() from sys/times.h to sys/time.h

In the RTEMS POSIX 1003.1 Compliance Guide it says:

The following methods and variables in <sys/times.h> are supported:
 - times()
 - utimes()

But according to the official POSIX Specifications
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_times.h.html,
<sys/times.h> only declares times(), and utimes() is decleared by
<sys/time.h> (notice that it's time, not times) according to
http://pubs.opengroup.org/onlinepubs/9699919799/functions/utimensat.html
and http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_time.h.html.

This patch fixes this error.

This work was part of GCI 2018.

---

 ...ompliance-v4.csv => RTEMS-Standards-Compliance-v4a.csv} | 14 +++++++-------
 posix-compliance/wscript                                   |  2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/posix-compliance/RTEMS-Standards-Compliance-v4.csv b/posix-compliance/RTEMS-Standards-Compliance-v4a.csv
similarity index 99%
rename from posix-compliance/RTEMS-Standards-Compliance-v4.csv
rename to posix-compliance/RTEMS-Standards-Compliance-v4a.csv
index 3519e12..993b5a0 100755
--- a/posix-compliance/RTEMS-Standards-Compliance-v4.csv
+++ b/posix-compliance/RTEMS-Standards-Compliance-v4a.csv
@@ -1126,13 +1126,13 @@ unlinkat(),unistd.h,INCL,,,,,,,,,,,,,,,,,,,,,RT-NO,,,,,
 unlockpt(),stdlib.h,INCL,INCL,,,,,,,,,,,,,,,,,,,,RT-NO,,,,,XSI_DEVICE_SPECIFIC
 unsetenv(),stdlib.h,INCL,INCL,INCL,INCL,INCL,INCL,,,,,,INCL,,,,INCL,,,,,CTS-YES,CTS-YES,,,CTS-YES,,POSIX_SINGLE_PROCESS
 uselocale(),locale.h,INCL,,,,,,,,,,,,,,,,,,,,,RT-YES,,,,,
-usleep(),unistd.h,,INCL,,,,,,,,,,,,,,,,,,,RT-YES,RT-YES,,,,,
-utime(),utime.h,INCL,INCL,,INCL,INCL,INCL,,,,,,,,,,,INCL,,,,,RT-YES,,,,,POSIX_FILE_SYSTEM
-utimensat(),sys/stat.h,INCL,,,,,,,,,,,,,,,,,,,,,RT-NO,,,,,
-utimes(),sys/times.h,INCL,INCL,,,INCL,INCL,,,,,,,,,,,,,,,RT-YES,RT-YES,,,,,POSIX_MULTI_PROCESS
-va_arg(),stdarg.h,INCL,INCL,INCL,INCL,INCL,INCL,INCL,INCL,,,INCL,INCL,,,INCL,INCL,,,,INCL,,HAND-YES,,,,,POSIX_C_LANG_SUPPORT
-va_copy(),stdarg.h,INCL,INCL,INCL,INCL,INCL,INCL,INCL,INCL,,,,INCL,,,,INCL,,,,INCL,,HAND-YES,,,,,POSIX_C_LANG_SUPPORT
-va_end(),stdarg.h,INCL,INCL,INCL,INCL,INCL,INCL,INCL,INCL,,,INCL,INCL,,,INCL,INCL,,,,INCL,,HAND-YES,,,,,POSIX_C_LANG_SUPPORT
+usleep(),unistd.h,,INCL,,,,,,,,,,,,,,,,,,,RT-YES,RT-YES,,,,,
+utime(),utime.h,INCL,INCL,,INCL,INCL,INCL,,,,,,,,,,,INCL,,,,,RT-YES,,,,,POSIX_FILE_SYSTEM
+utimensat(),sys/stat.h,INCL,,,,,,,,,,,,,,,,,,,,,RT-NO,,,,,
+utimes(),sys/time.h,INCL,INCL,,,INCL,INCL,,,,,,,,,,,,,,,RT-YES,RT-YES,,,,,POSIX_MULTI_PROCESS
+va_arg(),stdarg.h,INCL,INCL,INCL,INCL,INCL,INCL,INCL,INCL,,,INCL,INCL,,,INCL,INCL,,,,INCL,,HAND-YES,,,,,POSIX_C_LANG_SUPPORT
+va_copy(),stdarg.h,INCL,INCL,INCL,INCL,INCL,INCL,INCL,INCL,,,,INCL,,,,INCL,,,,INCL,,HAND-YES,,,,,POSIX_C_LANG_SUPPORT
+va_end(),stdarg.h,INCL,INCL,INCL,INCL,INCL,INCL,INCL,INCL,,,INCL,INCL,,,INCL,INCL,,,,INCL,,HAND-YES,,,,,POSIX_C_LANG_SUPPORT
 va_start(),stdarg.h,INCL,INCL,INCL,INCL,INCL,INCL,INCL,INCL,,,INCL,INCL,,,INCL,INCL,,,,INCL,,HAND-YES,,,,,POSIX_C_LANG_SUPPORT
 vdprintf(),stdio.h,INCL,,,,,,,,,,,,,,,,,,,,,RT-YES,,,,,
 vfork(),unistd.h,,INCL,,,,,,,,,,,,,,,,,,,,,,,,,
diff --git a/posix-compliance/wscript b/posix-compliance/wscript
index 06eb7a0..376ee76 100644
--- a/posix-compliance/wscript
+++ b/posix-compliance/wscript
@@ -28,6 +28,6 @@ def gen_posix_rst(task):
 
 def build(ctx):
     ctx(rule = gen_posix_rst,
-        source = ['posix_rst.py', 'RTEMS-Standards-Compliance-v4.csv'],
+        source = ['posix_rst.py', 'RTEMS-Standards-Compliance-v4a.csv'],
         target = 'generated-posix-compliance.rst')
     doc_build(ctx, extra_source = ['generated-posix-compliance.rst'])



More information about the vc mailing list