CodeQL library for C/C++
codeql/cpp-all 2.1.1 (changelog, source)
Search

Module Constants

Standard Unix constants.

Import path

import semmle.code.cpp.commons.unix.Constants

Imports

cpp

Provides classes and predicates for working with C/C++ code.

Predicates

o_accmode

Gets the number that can be used in a bitwise and with the file status flag to produce a number representing the file access mode.

o_creat

Gets the number corresponding to the file creation flag O_CREAT on Linux.

o_excl

Gets the number corresponding to the file creation flag O_EXCL on Linux.

o_rdonly

Gets the number corresponding to the read-only file access mode.

o_rdwr

Gets the number corresponding to the read-and-write file access mode.

o_wronly

Gets the number corresponding to the write-only file access mode.

parseOctal

Gets the number corresponding to the contents of input in base-8. Note: the first character of input must be 0. For example: parseOctal("012345") = 5349.

s_irgrp

Gets the number corresponding to the read permission bit for the group owner of the file in Unix.

s_iroth

Gets the number corresponding to the read permission bit for other users in Unix.

s_irusr

Gets the number corresponding to the read permission bit for owner of the file in Unix.

s_irwxg

Gets the number corresponding to the permissions S_IRGRP | S_IWGRP | S_IXGRP in Unix.

s_irwxo

Gets the number corresponding to the permissions S_IROTH | S_IWOTH | S_IXOTH in Unix.

s_irwxu

Gets the number corresponding to the permissions S_IRUSR | S_IWUSR | S_IXUSR in Unix.

s_isgid

Gets the number corresponding to the “set-group-ID on execute bit” in Unix.

s_isuid

Gets the number corresponding to the “set-user-ID on execute bit” in Unix.

s_isvtx

Gets the number corresponding to the sticky bit in Unix.

s_iwgrp

Gets the number corresponding to the write permission bit for the group owner of the file in Unix.

s_iwoth

Gets the number corresponding to the write permission bit for other users in Unix.

s_iwusr

Gets the number corresponding to the write permission bit for owner of the file in Unix.

s_ixgrp

Gets the number corresponding to the execute permission bit for the group owner of the file in Unix.

s_ixoth

Gets the number corresponding to the execute-or-search permission bit for other users in Unix.

s_ixusr

Gets the number corresponding to the execute permission bit for owner of the file in Unix.