Run.h
/*
* $Id: Run.h 3499 2013-01-05 03:18:47Z karijes $
*
* Run external program
* Copyright (c) 2005-2013 edelib authors
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __EDELIB_RUN_H__
#define __EDELIB_RUN_H__
#include "edelib-global.h"
EDELIB_NS_BEGIN
enum {
RUN_NOT_FOUND = 65535,
RUN_EMPTY = 65534,
RUN_NOT_EXEC = 65533,
RUN_FORK_FAILED = 65532,
RUN_WAITPID_FAILED = 65531,
RUN_EXECVE_FAILED = 65530,
RUN_PIPE_FAILED = 65529,
RUN_NO_ACCESS = 65528
};
EDELIB_API int run_sync(const char *fmt, ...);
EDELIB_API int run_async(const char *fmt, ...);
EDELIB_API int run_async_with_pid(int *child_pid, const char *fmt, ...);
EDELIB_NS_END
#endif
edelib::RUN_EMPTY
given parameter is NULL
Definition: Run.h:30
edelib::RUN_FORK_FAILED
internal fork failed
Definition: Run.h:32
edelib::RUN_NO_ACCESS
not enough permissions to execute it
Definition: Run.h:36
edelib::run_async_with_pid
int run_async_with_pid(int *child_pid, const char *fmt,...)
edelib::RUN_WAITPID_FAILED
internal waitpid failed
Definition: Run.h:33
edelib::RUN_NOT_EXEC
given parameter is not executable on system
Definition: Run.h:31
edelib::run_sync
int run_sync(const char *fmt,...)
edelib::RUN_NOT_FOUND
executable not found
Definition: Run.h:29
edelib::run_async
int run_async(const char *fmt,...)
edelib::RUN_PIPE_FAILED
internal pipe failed
Definition: Run.h:35
edelib::RUN_EXECVE_FAILED
internal execve failed
Definition: Run.h:34