Skip to content
Snippets Groups Projects
Commit 95e9c9a3 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

change struct svc_sig to resolve_sig, add svc_shutnremove function

parent e2dc39f1
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@
#include <skalibs/genalloc.h>
#include <s6/ftrigr.h>
#include <66/resolve.h>
#include <66/ssexec.h>
typedef struct svstat_s svstat_t, *svstat_t_ref ;
......@@ -47,15 +48,10 @@ struct svstat_s
.remove = 0 \
}
typedef struct svc_sig_s svc_sig, *svc_sig_t_ref ;
struct svc_sig_s
typedef struct ss_resolve_sig_s ss_resolve_sig_t, *ss_resovle_sig_t_ref ;
struct ss_resolve_sig_s
{
unsigned int scan ; //pos in sv
size_t scanlen ;
unsigned int name ; //pos in sv
size_t namelen ;
unsigned int src ; //pos in sv
size_t srclen ;
ss_resolve_t res ;
unsigned int notify ;
unsigned int ndeath;
tain_t deadline ;
......@@ -65,13 +61,9 @@ struct svc_sig_s
int state ;
} ;
#define SVC_SIG_ZERO \
#define RESOLVE_SIG_ZERO \
{ \
.scan = 0 , \
.name = 0 , \
.namelen = 0 , \
.src = 0 , \
.srclen = 0, \
.res = RESOLVE_ZERO, \
.notify = 0, \
.ndeath = 3, \
.deadline = TAIN_ZERO, \
......@@ -107,7 +99,8 @@ enum sigactions_e
extern int svc_switch_to(ssexec_t *info,unsigned int where) ;
extern int svc_init(char const *scandir,char const *src, genalloc *ga) ;
extern int svc_init_pipe(ftrigr_t *fifo,genalloc *gasv,stralloc *sasv) ;
extern int svc_init(ssexec_t *info,char const *src, genalloc *ga) ;
extern int svc_init_pipe(ftrigr_t *fifo,genalloc *gasv) ;
extern int svc_shutnremove(ssexec_t *info, genalloc *ga,char const *sig, char const *const *envp) ;
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment