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:
Richard Alpe
2023-05-10 09:50:53 +02:00
committed by Joachim Wiberg
parent e7e22c4a13
commit 53ad138854
4 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -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);
+1 -1
View File
@@ -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;
+9
View File
@@ -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_ */