2007-07-30 17:25:13 +04:00
|
|
|
/*
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Evoke, head honcho of everything
|
|
|
|
* Part of Equinox Desktop Environment (EDE).
|
|
|
|
* Copyright (c) 2000-2007 EDE Authors.
|
|
|
|
*
|
|
|
|
* This program is licensed under terms of the
|
|
|
|
* GNU General Public License version 2 or newer.
|
|
|
|
* See COPYING for details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SPAWN_H__
|
|
|
|
#define __SPAWN_H__
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This is little bit modified code from edelib run_program()
|
|
|
|
* so evoke specific stuff can be added. Also, possible option
|
|
|
|
* is that edelib run_program(), at some time, consult evoke
|
|
|
|
* for running programs.
|
|
|
|
*/
|
|
|
|
#define SPAWN_NOT_FOUND 65535 // executable not found
|
|
|
|
#define SPAWN_EMPTY 65534 // given parameter is NULL
|
|
|
|
#define SPAWN_NOT_EXEC 65533 // given parameter is not executable on system
|
|
|
|
#define SPAWN_FORK_FAILED 65532 // internal fork failed
|
|
|
|
#define SPAWN_WAITPID_FAILED 65531 // internal waitpid failed
|
|
|
|
#define SPAWN_EXECVE_FAILED 65530 // internal execve failed
|
|
|
|
#define SPAWN_PTY_FAILED 65529 // TODO
|
|
|
|
#define SPAWN_USER_CANCELED 65528 // TODO
|
|
|
|
|
2007-07-30 17:30:41 +04:00
|
|
|
int spawn_program(const char* cmd);
|
2007-07-30 17:25:13 +04:00
|
|
|
|
|
|
|
#endif
|