mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 13:03:02 +02:00
sys/confd: expose systemv functions in new header
Expose systemv() and systemv_silent() to confd code that includes core.h or systemv.h explicitly. Signed-off-by: Richard Alpe <richard@bit42.se>
This commit is contained in:
committed by
Joachim Wiberg
parent
e7e22c4a13
commit
53ad138854
@@ -8,4 +8,4 @@ confd_plugin_la_CFLAGS = $(augeas_CFLAGS) $(libite_CFLAGS) $(sysrepo_CFLAGS) $(
|
||||
confd_plugin_la_LIBADD = $(augeas_LIBS) $(libite_LIBS) $(sysrepo_LIBS)
|
||||
confd_plugin_la_LDFLAGS = -module -avoid-version -shared
|
||||
confd_plugin_la_SOURCES = core.c core.h helpers.c helpers.h srx_module.c srx_module.h srx_val.c srx_val.h \
|
||||
ietf-system.c ietf-interfaces.c systemv.c
|
||||
ietf-system.c ietf-interfaces.c systemv.c systemv.h
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <sysrepo/xpath.h>
|
||||
|
||||
#include "helpers.h"
|
||||
#include "systemv.h"
|
||||
|
||||
#ifndef HAVE_VASPRINTF
|
||||
int vasprintf(char **strp, const char *fmt, va_list ap);
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* Reimplementation of system() without /bin/sh intermediary
|
||||
*/
|
||||
int fsystemv(char **args, FILE *in, FILE *out, FILE *err)
|
||||
static int fsystemv(char **args, FILE *in, FILE *out, FILE *err)
|
||||
{
|
||||
struct sigaction sa = { .sa_handler = SIG_IGN };
|
||||
sigset_t oldmask;
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* SPDX-License-Identifier: BSD-3-Clause */
|
||||
|
||||
#ifndef CONFD_SYSTEMV_H_
|
||||
#define CONFD_SYSTEMV_H_
|
||||
|
||||
int systemv(char **args);
|
||||
int systemv_silent(char **args);
|
||||
|
||||
#endif /* CONFD_SYSTEMV_H_ */
|
||||
Reference in New Issue
Block a user