summaryrefslogtreecommitdiff
path: root/src/libstddjb
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-05-18 13:33:40 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-05-18 13:33:40 +0000
commit3d210ed280513100f9466a2c171db77ee6952a25 (patch)
treea5a40ee9ab6b314db6aa66843ceb85a2a06cc9bb /src/libstddjb
parent5246da15e870b83bb0c803bde31317b01731b23f (diff)
downloadskalibs-3d210ed280513100f9466a2c171db77ee6952a25.tar.xz
Add xpathexec_* functions, prepare for 2.5.1.0
Diffstat (limited to 'src/libstddjb')
-rw-r--r--src/libstddjb/xexecvep.c10
-rw-r--r--src/libstddjb/xpathexec.c10
-rw-r--r--src/libstddjb/xpathexec0.c10
-rw-r--r--src/libstddjb/xpathexec0_run.c10
-rw-r--r--src/libstddjb/xpathexec_fromenv.c10
-rw-r--r--src/libstddjb/xpathexec_r.c10
-rw-r--r--src/libstddjb/xpathexec_r_name.c10
-rw-r--r--src/libstddjb/xpathexec_run.c10
8 files changed, 80 insertions, 0 deletions
diff --git a/src/libstddjb/xexecvep.c b/src/libstddjb/xexecvep.c
new file mode 100644
index 0000000..3a3363e
--- /dev/null
+++ b/src/libstddjb/xexecvep.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/djbunix.h>
+#include <skalibs/strerr2.h>
+
+void xexecvep (char const *file, char const *const *argv, char const *const *envp, char const *path)
+{
+ execvep(file, argv, envp, path) ;
+ strerr_dieexec(111, file) ;
+}
diff --git a/src/libstddjb/xpathexec.c b/src/libstddjb/xpathexec.c
new file mode 100644
index 0000000..92e78dd
--- /dev/null
+++ b/src/libstddjb/xpathexec.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/djbunix.h>
+#include <skalibs/strerr2.h>
+
+void xpathexec (char const *const *argv)
+{
+ pathexec(argv) ;
+ strerr_dieexec(111, argv[0]) ;
+}
diff --git a/src/libstddjb/xpathexec0.c b/src/libstddjb/xpathexec0.c
new file mode 100644
index 0000000..c9c2c74
--- /dev/null
+++ b/src/libstddjb/xpathexec0.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/djbunix.h>
+#include <skalibs/strerr2.h>
+
+void xpathexec0 (char const *const *argv)
+{
+ pathexec0(argv) ;
+ strerr_dieexec(111, argv[0]) ;
+}
diff --git a/src/libstddjb/xpathexec0_run.c b/src/libstddjb/xpathexec0_run.c
new file mode 100644
index 0000000..c24e931
--- /dev/null
+++ b/src/libstddjb/xpathexec0_run.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/djbunix.h>
+#include <skalibs/strerr2.h>
+
+void xpathexec0_run (char const *const *argv, char const *const *envp)
+{
+ pathexec0_run(argv, envp) ;
+ strerr_dieexec(111, argv[0]) ;
+}
diff --git a/src/libstddjb/xpathexec_fromenv.c b/src/libstddjb/xpathexec_fromenv.c
new file mode 100644
index 0000000..e75b94a
--- /dev/null
+++ b/src/libstddjb/xpathexec_fromenv.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/djbunix.h>
+#include <skalibs/strerr2.h>
+
+void xpathexec_fromenv (char const *const *argv, char const *const *envp, size_t envlen)
+{
+ pathexec_fromenv(argv, envp, envlen) ;
+ strerr_dieexec(111, argv[0]) ;
+}
diff --git a/src/libstddjb/xpathexec_r.c b/src/libstddjb/xpathexec_r.c
new file mode 100644
index 0000000..02628f3
--- /dev/null
+++ b/src/libstddjb/xpathexec_r.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/djbunix.h>
+#include <skalibs/strerr2.h>
+
+void xpathexec_r (char const *const *argv, char const *const *envp, size_t envlen, char const *modifs, size_t modiflen)
+{
+ pathexec_r(argv, envp, envlen, modifs, modiflen) ;
+ strerr_dieexec(111, argv[0]) ;
+}
diff --git a/src/libstddjb/xpathexec_r_name.c b/src/libstddjb/xpathexec_r_name.c
new file mode 100644
index 0000000..76eaf2e
--- /dev/null
+++ b/src/libstddjb/xpathexec_r_name.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/djbunix.h>
+#include <skalibs/strerr2.h>
+
+void xpathexec_r_name (char const *file, char const *const *argv, char const *const *envp, size_t envlen, char const *modifs, size_t modiflen)
+{
+ pathexec_r_name(file, argv, envp, envlen, modifs, modiflen) ;
+ strerr_dieexec(111, file) ;
+}
diff --git a/src/libstddjb/xpathexec_run.c b/src/libstddjb/xpathexec_run.c
new file mode 100644
index 0000000..3596f2f
--- /dev/null
+++ b/src/libstddjb/xpathexec_run.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/djbunix.h>
+#include <skalibs/strerr2.h>
+
+void xpathexec_run (char const *file, char const *const *argv, char const *const *envp)
+{
+ pathexec_run(file, argv, envp) ;
+ strerr_dieexec(111, file) ;
+}