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