Scott James Remnant | 8092e79 | 2008-04-29 23:36:16 +0100 | [diff] [blame] | 1 | /* upstart |
| 2 | * |
Scott James Remnant | d69c1da | 2010-02-26 15:29:07 +0000 | [diff] [blame] | 3 | * Copyright © 2010 Canonical Ltd. |
Scott James Remnant | 7d5b2ea | 2009-05-22 15:20:12 +0200 | [diff] [blame] | 4 | * Author: Scott James Remnant <scott@netsplit.com>. |
Scott James Remnant | 8092e79 | 2008-04-29 23:36:16 +0100 | [diff] [blame] | 5 | * |
Scott James Remnant | 0c0c5a5 | 2009-06-23 10:29:35 +0100 | [diff] [blame] | 6 | * 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 Remnant | 7512302 | 2009-05-22 13:27:56 +0200 | [diff] [blame] | 8 | * published by the Free Software Foundation. |
Scott James Remnant | 8092e79 | 2008-04-29 23:36:16 +0100 | [diff] [blame] | 9 | * |
| 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 Remnant | 0c0c5a5 | 2009-06-23 10:29:35 +0100 | [diff] [blame] | 15 | * 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 Remnant | 8092e79 | 2008-04-29 23:36:16 +0100 | [diff] [blame] | 18 | */ |
Scott James Remnant | 8092e79 | 2008-04-29 23:36:16 +0100 | [diff] [blame] | 19 | |
| 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 | |
| 30 | NIH_BEGIN_EXTERN |
| 31 | |
Scott James Remnant | 2e9ff7e | 2011-05-12 13:42:28 -0700 | [diff] [blame] | 32 | int system_kill (pid_t pid, int signal) |
Scott James Remnant | 8092e79 | 2008-04-29 23:36:16 +0100 | [diff] [blame] | 33 | __attribute__ ((warn_unused_result)); |
| 34 | |
| 35 | int system_setup_console (ConsoleType type, int reset) |
| 36 | __attribute__ ((warn_unused_result)); |
| 37 | |
Mike Frysinger | 7506b64 | 2020-11-17 18:58:12 -0500 | [diff] [blame^] | 38 | int system_mount (const char *type, const char *dir, unsigned int opts, |
| 39 | const char *options) |
Scott James Remnant | d69c1da | 2010-02-26 15:29:07 +0000 | [diff] [blame] | 40 | __attribute__ ((warn_unused_result)); |
| 41 | |
Scott James Remnant | 8092e79 | 2008-04-29 23:36:16 +0100 | [diff] [blame] | 42 | NIH_END_EXTERN |
| 43 | |
| 44 | #endif /* INIT_SYSTEM_H */ |