diff options
Diffstat (limited to 'tryservice.h')
| -rw-r--r-- | tryservice.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tryservice.h b/tryservice.h new file mode 100644 index 0000000..ac615eb --- /dev/null +++ b/tryservice.h @@ -0,0 +1,16 @@ + +static int tryservice(char *home, char *service, char *type, char *other, + void *buffer) { + int r; + open_inout(home); + errmsg_puts(-1,0); + errmsg_puts(-1,type); + errmsg_put(-1,service,str_len(service)+1); + if (other) + errmsg_puts(-1,other); + errmsg_puts(infd,0); + + r=read(outfd,buffer, 4*sizeof(struct process)); + close(infd); close(outfd); + return r; +} |
