execute.h revision 15ae422b7471cf6f41ccf450243d8afd8ea0a054
337eebb936be1da1215535e866965ce54c82d755Lennart Poettering/*-*- Mode: C; c-basic-offset: 8 -*-*/
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering This file is part of systemd.
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering Copyright 2010 Lennart Poettering
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering systemd is free software; you can redistribute it and/or modify it
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering under the terms of the GNU General Public License as published by
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering the Free Software Foundation; either version 2 of the License, or
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering (at your option) any later version.
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering systemd is distributed in the hope that it will be useful, but
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
0e0320e04500d1e68630b3973714f14cfb7b3450Lennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
652e737517bbbae692923246aeb687e2d1f314efZbigniew Jędrzejewski-Szmek General Public License for more details.
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering You should have received a copy of the GNU General Public License
0e0320e04500d1e68630b3973714f14cfb7b3450Lennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
7c9a6f906308a6474f1ebb98058c4a33a02c33f1Lennart Poettering/* Abstract namespace! */
3a67e927e3be7efb8edf314a31aa4f8f5cba4f53Tom Gundersen#define LOGGER_SOCKET "/org/freedesktop/systemd1/logger"
08c51903fb895e836866b8e7a09f0523b72b9aafMarc-Antoine Perennou int status; /* as in sigingo_t::si_status */
struct ExecCommand {
char *path;
char **argv;
struct ExecContext {
char **environment;
int oom_adjust;
int nice;
int ioprio;
int cpu_sched_policy;
int cpu_sched_priority;
unsigned long timer_slack_ns;
int syslog_priority;
char *syslog_identifier;
char *tty_path;
char *user;
char *group;
char **supplementary_groups;
unsigned long mount_flags;
int secure_bits;
bool cpu_sched_reset_on_fork;
bool non_blocking;
bool private_tmp;
typedef enum ExitStatus {
} ExitStatus;
char **argv,
bool apply_permissions,
bool apply_chroot,
bool confirm_spawn,
int exec_output_from_string(const char *s);
int exec_input_from_string(const char *s);