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.
This commit is contained in:
Marçal Comajoan Cara 2018-12-09 19:53:33 +01:00 committed by Joel Sherrill
parent a46b0250e5
commit 048b03ea60
2 changed files with 8 additions and 8 deletions

View File

@ -1129,7 +1129,7 @@ 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
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
1 Methods Header File IEEE Std 1003.1-2008 IEEE Std 1003.1-2003 PSE51 PSE52 PSE53 PSE54 C99 C11 FACE 2.1 Security FACE 2.1 Safety Base FACE 2.1 Safety Extended FACE 2.1 General Purpose FACE 3.0 Security FACE 3.0 Safety Base FACE 3.0 Safety Extended FACE 3.0 General Purpose SCA 2.2.2 AEP SCA 4.1 Ultra Lightweight AEP SCA 4.1 Lightweight AEP SCA 4.1 [Full] AEP RTEMS w/o Networking RTEMS w/ Networking Deos RTEMS Safety Base Deos RTEMS Safety Ext Deos RTEMS Gen Purp RTEMS Impl Note POSIX Functionality Categories
1129 usleep() unistd.h INCL RT-YES RT-YES
1130 utime() utime.h INCL INCL INCL INCL INCL INCL RT-YES POSIX_FILE_SYSTEM
1131 utimensat() sys/stat.h INCL RT-NO
1132 utimes() sys/times.h sys/time.h INCL INCL INCL INCL RT-YES RT-YES POSIX_MULTI_PROCESS
1133 va_arg() stdarg.h INCL INCL INCL INCL INCL INCL INCL INCL INCL INCL INCL INCL INCL HAND-YES POSIX_C_LANG_SUPPORT
1134 va_copy() stdarg.h INCL INCL INCL INCL INCL INCL INCL INCL INCL INCL INCL HAND-YES POSIX_C_LANG_SUPPORT
1135 va_end() stdarg.h INCL INCL INCL INCL INCL INCL INCL INCL INCL INCL INCL INCL INCL HAND-YES POSIX_C_LANG_SUPPORT

View File

@ -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'])