TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches

Unix specific features. More...

Collaboration diagram for Unix:

Files

file  tsOpenSSL.h
file  tsSysCtl.h

Classes

class  ts::DTVProperties
class  ts::MacPList
class  ts::OpenSSL
class  ts::SignalAllocator
class  ts::TunerDeviceInfo

Functions

bool ts::SysCtrlBool (const std::string &name)
ByteBlock ts::SysCtrlBytes (std::initializer_list< int > oid)
UString ts::SysCtrlString (std::initializer_list< int > oid)

Detailed Description

Unix specific features.

Function Documentation

◆ 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]nameName 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]oidIdentifier 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]oidIdentifier of the data to return as a list of int values.
Returns
The binary value or empty if not found.