blob: e7957c4407ee3e947c176e8d9eba3bf0bc2c72b4 [file] [log] [blame]
Scott James Remnant8092e792008-04-29 23:36:16 +01001/* upstart
2 *
Scott James Remnantd69c1da2010-02-26 15:29:07 +00003 * Copyright © 2010 Canonical Ltd.
Scott James Remnant7d5b2ea2009-05-22 15:20:12 +02004 * Author: Scott James Remnant <scott@netsplit.com>.
Scott James Remnant8092e792008-04-29 23:36:16 +01005 *
Scott James Remnant0c0c5a52009-06-23 10:29:35 +01006 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2, as
Scott James Remnant75123022009-05-22 13:27:56 +02008 * published by the Free Software Foundation.
Scott James Remnant8092e792008-04-29 23:36:16 +01009 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
Scott James Remnant0c0c5a52009-06-23 10:29:35 +010015 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Scott James Remnant8092e792008-04-29 23:36:16 +010018 */
Scott James Remnant8092e792008-04-29 23:36:16 +010019
20#ifndef INIT_SYSTEM_H
21#define INIT_SYSTEM_H
22
23#include <sys/types.h>
24
25#include <nih/macros.h>
26
27#include "job_class.h"
28
29
30NIH_BEGIN_EXTERN
31
Scott James Remnant2e9ff7e2011-05-12 13:42:28 -070032int system_kill (pid_t pid, int signal)
Scott James Remnant8092e792008-04-29 23:36:16 +010033 __attribute__ ((warn_unused_result));
34
35int system_setup_console (ConsoleType type, int reset)
36 __attribute__ ((warn_unused_result));
37
Mike Frysinger7506b642020-11-17 18:58:12 -050038int system_mount (const char *type, const char *dir, unsigned int opts,
39 const char *options)
Scott James Remnantd69c1da2010-02-26 15:29:07 +000040 __attribute__ ((warn_unused_result));
41
Scott James Remnant8092e792008-04-29 23:36:16 +010042NIH_END_EXTERN
43
44#endif /* INIT_SYSTEM_H */