Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
6
66
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Vidal
66
Commits
95e9c9a3
Commit
95e9c9a3
authored
6 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
change struct svc_sig to resolve_sig, add svc_shutnremove function
parent
e2dc39f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/include/66/svc.h
+9
-16
9 additions, 16 deletions
src/include/66/svc.h
with
9 additions
and
16 deletions
src/include/66/svc.h
+
9
−
16
View file @
95e9c9a3
...
...
@@ -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
s
vc_sig_s
svc
_sig
,
*
s
vc
_sig_t_ref
;
struct
s
vc
_sig_s
typedef
struct
s
s_resolve_sig_s
ss_resolve
_sig
_t
,
*
s
s_resovle
_sig_t_ref
;
struct
s
s_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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment