Lines Matching full:status

29 #include "utils/process/status.hpp"
49 /// Constructs a new status object based on the status value of waitpid(2).
51 /// \param dead_pid_ The PID of the process this status belonged to.
52 /// \param stat_loc The status value returnd by waitpid(2).
53 process::status::status(const int dead_pid_, int stat_loc) : in status() function in process::status
65 /// Constructs a new status object based on fake values.
67 /// \param exited_ If not none, specifies the exit status of the program.
70 process::status::status(const optional< int >& exited_, in status() function in process::status
79 /// Constructs a new status object based on a fake exit status.
83 /// \return A status object with fake data.
84 process::status
85 process::status::fake_exited(const int exitstatus_) in fake_exited()
87 return status(utils::make_optional(exitstatus_), none); in fake_exited()
91 /// Constructs a new status object based on a fake exit status.
96 /// \return A status object with fake data.
97 process::status
98 process::status::fake_signaled(const int termsig_, const bool coredump_) in fake_signaled()
100 return status(none, utils::make_optional(std::make_pair(termsig_, in fake_signaled()
105 /// Returns the PID of the process this status was taken from.
113 process::status::dead_pid(void) const in dead_pid()
123 process::status::exited(void) const in exited()
135 process::status::exitstatus(void) const in exitstatus()
146 process::status::signaled(void) const in signaled()
159 process::status::termsig(void) const in termsig()
176 process::status::coredump(void) const in coredump()
186 /// \param status The object to format.
190 process::operator<<(std::ostream& output, const status& status) in operator <<() argument
192 if (status.exited()) { in operator <<()
193 output << F("status{exitstatus=%s}") % status.exitstatus(); in operator <<()
195 INV(status.signaled()); in operator <<()
196 output << F("status{termsig=%s, coredump=%s}") % status.termsig() % in operator <<()
197 status.coredump(); in operator <<()