diff options
Diffstat (limited to 'urunlevel/runlevel/lib_init_d.h')
-rw-r--r-- | urunlevel/runlevel/lib_init_d.h | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/urunlevel/runlevel/lib_init_d.h b/urunlevel/runlevel/lib_init_d.h index a9179d5..21ce71c 100644 --- a/urunlevel/runlevel/lib_init_d.h +++ b/urunlevel/runlevel/lib_init_d.h | |||
@@ -53,8 +53,8 @@ typedef struct init_d_info_s { | |||
53 | char **reqstop; | 53 | char **reqstop; |
54 | char **shouldstart; | 54 | char **shouldstart; |
55 | char **shouldstop; | 55 | char **shouldstop; |
56 | int *defstart; | 56 | int *defstart; |
57 | int *defstop; | 57 | int *defstop; |
58 | char *shortdesc; | 58 | char *shortdesc; |
59 | char *desc; | 59 | char *desc; |
60 | char *comment; | 60 | char *comment; |
@@ -69,14 +69,14 @@ typedef struct init_d_info_s { | |||
69 | */ | 69 | */ |
70 | 70 | ||
71 | typedef struct init_d_handle_s { | 71 | typedef struct init_d_handle_s { |
72 | int (*start)(struct init_d_handle_s *, int); | 72 | int (*start) (struct init_d_handle_s *, int); |
73 | int (*stop)(struct init_d_handle_s *, int); | 73 | int (*stop) (struct init_d_handle_s *, int); |
74 | int (*restart)(struct init_d_handle_s *, int); | 74 | int (*restart) (struct init_d_handle_s *, int); |
75 | int (*try_restart)(struct init_d_handle_s *, int); | 75 | int (*try_restart) (struct init_d_handle_s *, int); |
76 | int (*reload)(struct init_d_handle_s *, int); | 76 | int (*reload) (struct init_d_handle_s *, int); |
77 | int (*force_reload)(struct init_d_handle_s *, int); | 77 | int (*force_reload) (struct init_d_handle_s *, int); |
78 | int (*status)(struct init_d_handle_s *, int); | 78 | int (*status) (struct init_d_handle_s *, int); |
79 | int (*show_info)(struct init_d_handle_s *, int); | 79 | int (*show_info) (struct init_d_handle_s *, int); |
80 | char *basename; | 80 | char *basename; |
81 | char *pathname; | 81 | char *pathname; |
82 | char *args; | 82 | char *args; |
@@ -142,7 +142,8 @@ int print_status(struct init_d_handle_s *init_d, int quiet, int status); | |||
142 | /* | 142 | /* |
143 | * /lib/lsb/init-functions | 143 | * /lib/lsb/init-functions |
144 | */ | 144 | */ |
145 | int start_daemon(int force, int nice_level, char *pidfile, char *pathname, char *args); | 145 | int start_daemon(int force, int nice_level, char *pidfile, char *pathname, |
146 | char *args); | ||
146 | int killproc(char *pidfile, char *pathname, int my_signal); | 147 | int killproc(char *pidfile, char *pathname, int my_signal); |
147 | int checkpid(char *pid); | 148 | int checkpid(char *pid); |
148 | int pidofproc(char *pidfile, char *pathname, char **pids); | 149 | int pidofproc(char *pidfile, char *pathname, char **pids); |
@@ -154,7 +155,7 @@ void log_warning_msg(char *message); | |||
154 | init_d_info_t *parse_init_info(char *info_text, char *name); | 155 | init_d_info_t *parse_init_info(char *info_text, char *name); |
155 | char *get_init_info(char *pathname); | 156 | char *get_init_info(char *pathname); |
156 | llist_t *get_scripts(void); | 157 | llist_t *get_scripts(void); |
157 | llist_t *sort_scripts(llist_t *unsorted); | 158 | llist_t *sort_scripts(llist_t * unsorted, init_d_info_t *for_script); |
158 | 159 | ||
159 | 160 | ||
160 | #define REDIR 1 | 161 | #define REDIR 1 |
@@ -166,8 +167,7 @@ llist_t *sort_scripts(llist_t *unsorted); | |||
166 | 167 | ||
167 | extern struct stat path_stat; | 168 | extern struct stat path_stat; |
168 | 169 | ||
169 | typedef struct nodes_s | 170 | typedef struct nodes_s { |
170 | { | ||
171 | const char *name; | 171 | const char *name; |
172 | mode_t mode; | 172 | mode_t mode; |
173 | int major; | 173 | int major; |
@@ -186,17 +186,20 @@ char *doit(int mode, char *command, ...); | |||
186 | #endif | 186 | #endif |
187 | #ifdef RUNLEVEL_LIST | 187 | #ifdef RUNLEVEL_LIST |
188 | // From ifupdown, so it should probably be in libbb. | 188 | // From ifupdown, so it should probably be in libbb. |
189 | llist_t *llist_add_to_end(llist_t *list_head, char *data); | 189 | llist_t *llist_add_to_end(llist_t * list_head, char *data); |
190 | #else | 190 | #else |
191 | extern llist_t *llist_add_to_end(llist_t *list_head, char *data); | 191 | extern llist_t *llist_add_to_end(llist_t * list_head, char *data); |
192 | #endif | 192 | #endif |
193 | 193 | ||
194 | llist_t *llist_delete(llist_t **unsorted, llist_t *previous, llist_t *current); | 194 | llist_t *llist_delete(llist_t ** unsorted, llist_t * previous, |
195 | void make_disk(char *token, const nodes_t *nodes); | 195 | llist_t * current); |
196 | void make_disk(char *token); | ||
196 | void make_ram_disk(int size, int number, char *place, int TMPFS); | 197 | void make_ram_disk(int size, int number, char *place, int TMPFS); |
197 | void quick_mount(char *type, char *device, char *path, char *data, ...); | 198 | void quick_mount(char *type, char *device, char *path, char *data, ...); |
198 | char *quick_read(char *filename); | 199 | char *quick_read(char *filename); |
199 | void quick_write(const char *filename, const char *data, ...); | 200 | void quick_write(const char *filename, const char *data, ...); |
201 | void read_sysconfig(char *sysconfig); | ||
202 | void set_sysconfig_env(char *token); | ||
200 | 203 | ||
201 | 204 | ||
202 | #endif | 205 | #endif |