openthread-br  0.3.0-72c0388
Macros | Enumerations | Functions
system_utils.cpp File Reference
#include "system_utils.hpp"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "common/logging.hpp"

Macros

#define OTBR_LOG_TAG   "UTILS"
 

Enumerations

enum  { otbr::SystemUtils::kSystemCommandMaxLength = 1024 }
 

Functions

int otbr::SystemUtils::ExecuteCommand (const char *aFormat,...)
 

Detailed Description

The file implements POSIX system utilities.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kSystemCommandMaxLength 

Max length of a system call command.

Function Documentation

◆ ExecuteCommand()

int otbr::SystemUtils::ExecuteCommand ( const char *  aFormat,
  ... 
)

This method formats a system command to execute.

Parameters
[in]aFormatA pointer to the format string.
[in]...Arguments for the format specification.
Returns
The command exit code.