|
Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
#include "lix/libutil/types.hh"#include "lix/libutil/error.hh"#include "lix/libutil/file-descriptor.hh"#include <sys/types.h>#include <sys/stat.h>#include <dirent.h>#include <unistd.h>#include <signal.h>#include <functional>#include <map>#include <optional>Go to the source code of this file.
Classes | |
| class | nix::Pid |
| struct | nix::ProcessOptions |
| struct | nix::RunOptions |
| struct | nix::RunOptions::Redirection |
| struct | nix::RunningProgram |
| class | nix::ExecError |
Functions | |
| void | nix::killUser (uid_t uid) |
| Pid | nix::startProcess (std::function< void()> fun, const ProcessOptions &options) |
| std::string | nix::runProgram (Path program, bool searchPath, const Strings &args, bool isInteractive) |
| std::pair< int, std::string > | nix::runProgram (RunOptions &&options) |
| RunningProgram | nix::runProgram2 (const RunOptions &options) |
| std::string | nix::statusToString (int status) |
| bool | nix::statusOk (int status) |
| void nix::killUser | ( | uid_t | uid | ) |
Kill all processes running under the specified uid by sending them a SIGKILL.
| std::string nix::runProgram | ( | Path | program, |
| bool | searchPath = false, | ||
| const Strings & | args = Strings(), | ||
| bool | isInteractive = false ) |
Run a program and return its stdout in a string (i.e., like the shell backtick operator).
| std::string nix::statusToString | ( | int | status | ) |
Convert the exit status of a child as returned by wait() into an error string.