Skip to content

Commit f250080

Browse files
rlubosstephanosio
authored andcommitted
doc: Add gmtime_r() to rule A.5 exceptions
According to commit 400c1fa which introduced rule A.5 to the coding guidelines, the initial exception list was based on the non-standard function availability in minimal libc. gmtime_r() however, has not been included to the list, although it's present in minimal libc since 3e8df8b. This commit fixes this, by adding gmtime_r() to the rule A.5 exception list. Signed-off-by: Robert Lubos <[email protected]>
1 parent 0966be0 commit f250080

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/contribute/coding_guidelines/index.rst

+2
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,7 @@ Zephyr codebase:
14561456
:header: Function,Source
14571457
:widths: auto
14581458

1459+
`gmtime_r()`_,POSIX.1-2001
14591460
`strnlen()`_,POSIX.1-2008
14601461
`strtok_r()`_,POSIX.1-2001
14611462

@@ -1482,5 +1483,6 @@ these functions can lead to compatibility issues with the third-party
14821483
toolchains that come with their own C standard libraries.
14831484

14841485
.. _main Zephyr repository: https://github.com/zephyrproject-rtos/zephyr
1486+
.. _gmtime_r(): https://pubs.opengroup.org/onlinepubs/9699919799/functions/gmtime_r.html
14851487
.. _strnlen(): https://pubs.opengroup.org/onlinepubs/9699919799/functions/strlen.html
14861488
.. _strtok_r(): https://pubs.opengroup.org/onlinepubs/9699919799/functions/strtok.html

0 commit comments

Comments
 (0)