Unix specific features.
More...
Unix specific features.
◆ SysCtrlBool()
| bool ts::SysCtrlBool |
( |
const std::string & | name | ) |
|
Get a Unix sysctl(2) boolean value by name. This function now works on BSD systems only (macOS, FreeBSD, OpenBSD, DragonFlyBSD). Linux no longer supports sysctl(2), replaced by the /proc/sys filesystem.
- Parameters
-
| [in] | name | Name of the data to return. |
- Returns
- The bool value. False if not found.
◆ SysCtrlString()
| UString ts::SysCtrlString |
( |
std::initializer_list< int > | oid | ) |
|
Get a Unix sysctl(2) string value. This function now works on BSD systems only (macOS, FreeBSD, OpenBSD, DragonFlyBSD). Linux no longer supports sysctl(2), replaced by the /proc/sys filesystem.
- Parameters
-
| [in] | oid | Identifier of the data to return as a list of int values. |
- Returns
- The string value or empty if not found.
◆ SysCtrlBytes()
| ByteBlock ts::SysCtrlBytes |
( |
std::initializer_list< int > | oid | ) |
|
Get a Unix sysctl(2) binary value. This function now works on BSD systems only (macOS, FreeBSD, OpenBSD, DragonFlyBSD). Linux no longer supports sysctl(2), replaced by the /proc/sys filesystem.
- Parameters
-
| [in] | oid | Identifier of the data to return as a list of int values. |
- Returns
- The binary value or empty if not found.