TSDuck v3.40-4163
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches

Unix specific features. More...

Collaboration diagram for Unix:

Files

file  tsSysCtl.h
 Reading Unix sysctl(2) values.
 

Classes

class  ts::DTVProperties
 Encapsulation of Linux DVB property lists. More...
 
class  ts::MacPList
 This class implements a macOS XML PList file. More...
 
class  ts::SignalAllocator
 Allocate POSIX real-time signal numbers (Linux-specific). More...
 
class  ts::TunerDeviceInfo
 Information on Linux DVB tuner device. More...
 

Functions

bool ts::SysCtrlBool (const std::string &name)
 Get a Unix sysctl(2) boolean value by name.
 
ByteBlock ts::SysCtrlBytes (std::initializer_list< int > oid)
 Get a Unix sysctl(2) binary value.
 
UString ts::SysCtrlString (std::initializer_list< int > oid)
 Get a Unix sysctl(2) string value.
 

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.