This class is the "low level class" that implements IOsal.h.
More...
#include "utils/command/executor/osal/Linux.h"
This class is the "low level class" that implements IOsal.h.
- Note
- Copy contructor, copy-assignment operator, move constructor and move-assignment operator are defined to be compliant with the "Rule of five"
- See also
- https://en.cppreference.com/w/cpp/language/rule_of_three
- Author
- Boubacar DIENE bouba.nosp@m.car..nosp@m.diene.nosp@m.@gma.nosp@m.il.co.nosp@m.m
- Date
- May 2020
◆ Linux() [1/3]
| utils::command::osal::Linux::Linux |
( |
| ) |
|
◆ ~Linux()
| utils::command::osal::Linux::~Linux |
( |
| ) |
|
|
override |
Class destructor
- Note
- The override specifier aims at making the compiler warn if the base class's destructor is not virtual.
◆ Linux() [2/3]
| utils::command::osal::Linux::Linux |
( |
const Linux & |
| ) |
|
|
delete |
◆ Linux() [3/3]
| utils::command::osal::Linux::Linux |
( |
Linux && |
| ) |
|
|
delete |
◆ createProcess()
| ProcessId utils::command::osal::Linux::createProcess |
( |
| ) |
const |
|
overridevirtual |
◆ dropPrivileges()
| void utils::command::osal::Linux::dropPrivileges |
( |
| ) |
const |
|
overridevirtual |
◆ executeProgram()
| void utils::command::osal::Linux::executeProgram |
( |
const char * |
pathname, |
|
|
char *const |
argv[], |
|
|
char *const |
envp[] |
|
) |
| const |
|
overridevirtual |
Execute the program referred to by pathname.
- Parameters
-
| pathname | Either a binary executable, or a script starting with a line of the form: "#! interpreter [optional-arg]" |
| argv | An array of argument strings passed to the new program. By convention, the first of these strings should contain the filename associated with the file being executed. |
| envp | An array of strings of the form key=value, which are passed as environment to the new program. |
Implements utils::command::osal::IOsal.
◆ operator=() [1/2]
| Linux& utils::command::osal::Linux::operator= |
( |
const Linux & |
| ) |
|
|
delete |
Class copy-assignment operator
◆ operator=() [2/2]
| Linux& utils::command::osal::Linux::operator= |
( |
Linux && |
| ) |
|
|
delete |
Class move-assignment operator
◆ reseedPRNG()
| void utils::command::osal::Linux::reseedPRNG |
( |
| ) |
const |
|
overridevirtual |
Initialize the Random Number Generator for a new sequence of pseudo-random integers to be returned by rand()
Implements utils::command::osal::IOsal.
◆ sanitizeFiles()
| void utils::command::osal::Linux::sanitizeFiles |
( |
| ) |
const |
|
overridevirtual |
Close all opened file descriptors except those related to the standard streams (stdin, stdout, stderr). These are only reopened to /dev/null if not already opened.
Implements utils::command::osal::IOsal.
◆ waitChildProcess()
| void utils::command::osal::Linux::waitChildProcess |
( |
| ) |
const |
|
overridevirtual |
◆ m_internal
| std::unique_ptr<Internal> utils::command::osal::Linux::m_internal |
|
private |
The documentation for this class was generated from the following file:
- /workdir/src/utils/command/executor/osal/Linux.h