Marçal Comajoan Cara 048b03ea60 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.
2018-12-09 17:05:16 -06:00

34 lines
1.0 KiB
Python

from sys import path
from os.path import abspath
path.append(abspath('../common/'))
from waf import cmd_configure as configure
from waf import cmd_build as doc_build
from waf import cmd_options as options
from waf import spell
from waf import cmd_spell
from waf import linkcheck
from waf import cmd_linkcheck
import posix_rst
def gen_posix_rst(task):
c = posix_rst.compliance()
c.load(task.inputs[1].abspath())
s = ['']
for standard in posix_rst.standards:
s += ['.. comment SPDX-License-Identifier: CC-BY-SA-4.0',
'',
posix_rst.standard_names[standard],
'*' * len(posix_rst.standard_names[standard]),
''] + c.output(standard)
with open(task.outputs[0].abspath(), 'w') as w:
from os import linesep
w.write(linesep.join(s))
def build(ctx):
ctx(rule = gen_posix_rst,
source = ['posix_rst.py', 'RTEMS-Standards-Compliance-v4a.csv'],
target = 'generated-posix-compliance.rst')
doc_build(ctx, extra_source = ['generated-posix-compliance.rst'])