Skip to content

Commit 0467995

Browse files
committed
C++: Make explicit that O_CREAT and O_EXCL are Linux-specific
1 parent 7b2c9c5 commit 0467995

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/semmle/code/cpp/commons/unix/Constants.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ int o_wronly() { result = parseOctal("01") }
8989
/** Gets the number corresponding to the read-and-write file access mode. */
9090
int o_rdwr() { result = parseOctal("02") }
9191

92-
/** Gets the number corresponding to the file creation flag O_CREAT. */
92+
/** Gets the number corresponding to the file creation flag O_CREAT on Linux. */
9393
int o_creat() { result = parseOctal("0100") }
9494

95-
/** Gets the number corresponding to the file creation flag O_EXCL. */
95+
/** Gets the number corresponding to the file creation flag O_EXCL on Linux. */
9696
int o_excl() { result = parseOctal("0200") }

0 commit comments

Comments
 (0)