mirror of
https://github.com/pygos/init.git
synced 2024-05-20 04:36:12 +02:00
David Oberhollenzer
87a524d931
- exec_t belongs to service.h, the main place where it is used/needed - code for executing exec_t is moved to runsvc for the same reason - what is left are NORETURN and ARRAY_SIZE - the former can be replaced with direct attribute usage since the only relevant compilers all support the attribute. - the later is only used in 3 places and can be trivially replaced with direct usage of sizeof(). Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
24 lines
397 B
C
24 lines
397 B
C
/* SPDX-License-Identifier: ISC */
|
|
#ifndef RUNSVC_H
|
|
#define RUNSVC_H
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/wait.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
#include <fcntl.h>
|
|
|
|
#include "service.h"
|
|
#include "libcfg.h"
|
|
#include "config.h"
|
|
|
|
#define ENVFILE ETCPATH "/initd.env"
|
|
|
|
int initenv(void);
|
|
|
|
#endif /* RUNSVC_H */
|