NEST
2.6.0,not_revisioned_source_dir@0
|
#include <processes.h>
Classes | |
class | AvailableFunction |
class | CtermidFunction |
class | Dup2_is_isFunction |
class | Dup2_is_osFunction |
class | Dup2_os_isFunction |
class | Dup2_os_osFunction |
class | ForkFunction |
class | GetPGRPFunction |
class | GetPIDFunction |
class | GetPPIDFunction |
class | Isatty_isFunction |
class | Isatty_osFunction |
class | KillFunction |
class | MemoryThisjobBgFunction |
class | MemoryThisjobDarwinFunction |
class | MkfifoFunction |
class | PipeFunction |
class | SetNonblockFunction |
class | Sysexec_aFunction |
class | WaitPIDFunction |
Public Member Functions | |
Processes (void) | |
~Processes (void) | |
void | init (SLIInterpreter *) |
Initialise the module. More... | |
const std::string | name (void) const |
Return name of the module. More... | |
const std::string | commandstring (void) const |
Return sli command sequence to be executed for initialisation. More... | |
Public Member Functions inherited from SLIModule | |
virtual | ~SLIModule () |
void | install (std::ostream &, SLIInterpreter *) |
Print installation message via interpreter message command. More... | |
Static Public Member Functions | |
static const std::string | systemerror (SLIInterpreter *) |
static int | fd (std::istream *s) |
static int | fd (std::ostream *s) |
static int | fd (std::ostream &s) |
static int | fd (std::istream &s) |
Static Public Attributes | |
static pid_t | children_group = 0 |
|
inline |
Processes::~Processes | ( | void | ) |
|
virtual |
Return sli command sequence to be executed for initialisation.
Reimplemented from SLIModule.
|
static |
References assert(), fdbuf::fd(), and ifdstream::rdbuf().
Referenced by Processes::Dup2_is_isFunction::execute(), Processes::Dup2_os_osFunction::execute(), Processes::Dup2_is_osFunction::execute(), Processes::Dup2_os_isFunction::execute(), Processes::AvailableFunction::execute(), Processes::SetNonblockFunction::execute(), Processes::Isatty_isFunction::execute(), and Processes::Isatty_osFunction::execute().
|
static |
References assert(), fdbuf::fd(), and ofdstream::rdbuf().
|
virtual |
Initialise the module.
When this function is called, most of the interpreter's fascilities are up and running. However, depending on where in the interpreter's bootstrap sequence the module is initialised, not all services may be available.
Implements SLIModule.
References assert(), availablefunction, SLIInterpreter::baselookup(), SLIInterpreter::createcommand(), ctermidfunction, SLIInterpreter::def(), dup2_is_isfunction, dup2_is_osfunction, dup2_os_isfunction, dup2_os_osfunction, E2BIG_name, EACCES_name, EAGAIN_name, EBADF_name, EBUSY_name, ECHILD_name, EDEADLK_name, EDOM_name, EEXIST_name, EFAULT_name, EFBIG_name, EINTR_name, EINVAL_name, EIO_name, EISDIR_name, EMFILE_name, EMLINK_name, ENAMETOOLONG_name, ENFILE_name, ENODEV_name, ENOENT_name, ENOEXEC_name, ENOLCK_name, ENOMEM_name, ENOSPC_name, ENOSYS_name, ENOTDIR_name, ENOTEMPTY_name, ENOTTY_name, ENXIO_name, EPERM_name, EPIPE_name, ERANGE_name, EROFS_name, SLIInterpreter::errordict_name, ESPIPE_name, ESRCH_name, EXDEV_name, forkfunction, getpgrpfunction, getpidfunction, getppidfunction, Dictionary::insert(), isatty_isfunction, isatty_osfunction, killfunction, memorythisjobbgfunction, memorythisjobdarwinfunction, mkfifofunction, pipefunction, setnonblockfunction, SIGABRT_name, SIGALRM_name, SIGCHLD_name, SIGCONT_name, SIGFPE_name, SIGHUP_name, SIGILL_name, SIGINT_name, SIGKILL_name, signaldict_name, SIGPIPE_name, SIGQUIT_name, SIGSEGV_name, SIGSTOP_name, SIGTERM_name, SIGTSTP_name, SIGTTIN_name, SIGTTOU_name, SIGUSR1_name, SIGUSR2_name, sys_errname, sys_errno, sysexec_afunction, and waitPIDfunction.
|
virtual |
Return name of the module.
Implements SLIModule.
|
static |
References assert(), SLIInterpreter::baselookup(), and SLIInterpreter::errordict_name.
Referenced by Processes::ForkFunction::execute(), Processes::Sysexec_aFunction::execute(), Processes::WaitPIDFunction::execute(), Processes::KillFunction::execute(), Processes::PipeFunction::execute(), Processes::Dup2_is_isFunction::execute(), Processes::Dup2_os_osFunction::execute(), Processes::Dup2_is_osFunction::execute(), Processes::Dup2_os_isFunction::execute(), Processes::GetPIDFunction::execute(), Processes::GetPPIDFunction::execute(), Processes::GetPGRPFunction::execute(), Processes::MkfifoFunction::execute(), Processes::SetNonblockFunction::execute(), PclocksFunction::execute(), and PgetrusageFunction::execute().
AvailableFunction Processes::availablefunction |
Referenced by init().
|
static |
CtermidFunction Processes::ctermidfunction |
Referenced by init().
Dup2_is_isFunction Processes::dup2_is_isfunction |
Referenced by init().
Dup2_is_osFunction Processes::dup2_is_osfunction |
Referenced by init().
Dup2_os_isFunction Processes::dup2_os_isfunction |
Referenced by init().
Dup2_os_osFunction Processes::dup2_os_osfunction |
Referenced by init().
ForkFunction Processes::forkfunction |
Referenced by init().
GetPGRPFunction Processes::getpgrpfunction |
Referenced by init().
GetPIDFunction Processes::getpidfunction |
Referenced by init().
GetPPIDFunction Processes::getppidfunction |
Referenced by init().
Isatty_isFunction Processes::isatty_isfunction |
Referenced by init().
Isatty_osFunction Processes::isatty_osfunction |
Referenced by init().
KillFunction Processes::killfunction |
Referenced by init().
MemoryThisjobBgFunction Processes::memorythisjobbgfunction |
Referenced by init().
MemoryThisjobDarwinFunction Processes::memorythisjobdarwinfunction |
Referenced by init().
MkfifoFunction Processes::mkfifofunction |
Referenced by init().
PipeFunction Processes::pipefunction |
Referenced by init().
SetNonblockFunction Processes::setnonblockfunction |
Referenced by init().
Sysexec_aFunction Processes::sysexec_afunction |
Referenced by init().
WaitPIDFunction Processes::waitPIDfunction |
Referenced by init().