...
As per the N1401-C1X document, the following library functions are not required to avoid data races:
- rand()
- getenv()
- strtok()
- strerror()
- asctime()
- ctime()
...
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
C1X00-C | medium | probable | High | P4 | L3 |
Automated Detection
A module can be written in Compass/ROSE to detect violations of this rule.
References
Wiki Markup |
---|
\[[N1401-C1X Draft|http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1401.pdf]\] Section 7.21.2.1 rand() function, Section 7.21.4.6 getenv() function, Section 7.22.5.8 strtok() function, Section 7.22.6.2 strerror() function, Section 7.25.3.1 asctime() function, Section 7.25.3.2 ctime() function \[[POSIX.1 Thread Safety|http://www.unix.org/whitepapers/reentrant.html]\] |
...