summaryrefslogtreecommitdiff
path: root/src/wordexp
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-09 16:59:31 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-09 16:59:31 -0500
commitd15ecf4db13c4396f8a6e4f948abbb6c1188aee9 (patch)
treeb57a1da43e567322b0bb75442a3a27497414a344 /src/wordexp
parentc2df77a517e8651a07e323aaa18c6caa2d77eb1b (diff)
merge POSIX.2 identifiers
Diffstat (limited to 'src/wordexp')
-rw-r--r--src/wordexp/WRDE_APPEND.c6
-rw-r--r--src/wordexp/WRDE_BADCHAR.c6
-rw-r--r--src/wordexp/WRDE_BADVAL.c6
-rw-r--r--src/wordexp/WRDE_CMDSUB.c6
-rw-r--r--src/wordexp/WRDE_DOOFFS.c6
-rw-r--r--src/wordexp/WRDE_NOCMD.c6
-rw-r--r--src/wordexp/WRDE_NOSPACE.c6
-rw-r--r--src/wordexp/WRDE_NOSYS.c6
-rw-r--r--src/wordexp/WRDE_REUSE.c6
-rw-r--r--src/wordexp/WRDE_SHOWERR.c6
-rw-r--r--src/wordexp/WRDE_SYNTAX.c6
-rw-r--r--src/wordexp/WRDE_UNDEF.c6
-rw-r--r--src/wordexp/wordexp.c11
-rw-r--r--src/wordexp/wordexp_t.c12
-rw-r--r--src/wordexp/wordfree.c10
15 files changed, 105 insertions, 0 deletions
diff --git a/src/wordexp/WRDE_APPEND.c b/src/wordexp/WRDE_APPEND.c
new file mode 100644
index 00000000..81c709c1
--- /dev/null
+++ b/src/wordexp/WRDE_APPEND.c
@@ -0,0 +1,6 @@
+#include <wordexp.h>
+#define WRDE_APPEND 1
+/*
+POSIX(2)
+*/
+
diff --git a/src/wordexp/WRDE_BADCHAR.c b/src/wordexp/WRDE_BADCHAR.c
new file mode 100644
index 00000000..b91c845e
--- /dev/null
+++ b/src/wordexp/WRDE_BADCHAR.c
@@ -0,0 +1,6 @@
+#include <wordexp.h>
+#define WRDE_BADCHAR 1
+/*
+POSIX(2)
+*/
+
diff --git a/src/wordexp/WRDE_BADVAL.c b/src/wordexp/WRDE_BADVAL.c
new file mode 100644
index 00000000..706c17f0
--- /dev/null
+++ b/src/wordexp/WRDE_BADVAL.c
@@ -0,0 +1,6 @@
+#include <wordexp.h>
+#define WRDE_BADVAL 2
+/*
+POSIX(2)
+*/
+
diff --git a/src/wordexp/WRDE_CMDSUB.c b/src/wordexp/WRDE_CMDSUB.c
new file mode 100644
index 00000000..41c0be87
--- /dev/null
+++ b/src/wordexp/WRDE_CMDSUB.c
@@ -0,0 +1,6 @@
+#include <wordexp.h>
+#define WRDE_CMDSUB 3
+/*
+POSIX(2)
+*/
+
diff --git a/src/wordexp/WRDE_DOOFFS.c b/src/wordexp/WRDE_DOOFFS.c
new file mode 100644
index 00000000..c74e162b
--- /dev/null
+++ b/src/wordexp/WRDE_DOOFFS.c
@@ -0,0 +1,6 @@
+#include <wordexp.h>
+#define WRDE_DOOFFS 2
+/*
+POSIX(2)
+*/
+
diff --git a/src/wordexp/WRDE_NOCMD.c b/src/wordexp/WRDE_NOCMD.c
new file mode 100644
index 00000000..729d9bae
--- /dev/null
+++ b/src/wordexp/WRDE_NOCMD.c
@@ -0,0 +1,6 @@
+#include <wordexp.h>
+#define WRDE_NOCMD 3
+/*
+POSIX(2)
+*/
+
diff --git a/src/wordexp/WRDE_NOSPACE.c b/src/wordexp/WRDE_NOSPACE.c
new file mode 100644
index 00000000..c3edabf4
--- /dev/null
+++ b/src/wordexp/WRDE_NOSPACE.c
@@ -0,0 +1,6 @@
+#include <wordexp.h>
+#define WRDE_NOSPACE 4
+/*
+POSIX(2)
+*/
+
diff --git a/src/wordexp/WRDE_NOSYS.c b/src/wordexp/WRDE_NOSYS.c
new file mode 100644
index 00000000..03e0ba0c
--- /dev/null
+++ b/src/wordexp/WRDE_NOSYS.c
@@ -0,0 +1,6 @@
+#include <wordexp.h>
+#define WRDE_NOSYS -1
+/*
+POSIX(2)
+*/
+
diff --git a/src/wordexp/WRDE_REUSE.c b/src/wordexp/WRDE_REUSE.c
new file mode 100644
index 00000000..0552fad4
--- /dev/null
+++ b/src/wordexp/WRDE_REUSE.c
@@ -0,0 +1,6 @@
+#include <wordexp.h>
+#define WRDE_REUSE 4
+/*
+POSIX(2)
+*/
+
diff --git a/src/wordexp/WRDE_SHOWERR.c b/src/wordexp/WRDE_SHOWERR.c
new file mode 100644
index 00000000..c40db1e4
--- /dev/null
+++ b/src/wordexp/WRDE_SHOWERR.c
@@ -0,0 +1,6 @@
+#include <wordexp.h>
+#define WRDE_SHOWERR 5
+/*
+POSIX(2)
+*/
+
diff --git a/src/wordexp/WRDE_SYNTAX.c b/src/wordexp/WRDE_SYNTAX.c
new file mode 100644
index 00000000..af83c6b9
--- /dev/null
+++ b/src/wordexp/WRDE_SYNTAX.c
@@ -0,0 +1,6 @@
+#include <wordexp.h>
+#define WRDE_SYNTAX 5
+/*
+POSIX(2)
+*/
+
diff --git a/src/wordexp/WRDE_UNDEF.c b/src/wordexp/WRDE_UNDEF.c
new file mode 100644
index 00000000..1f533a5b
--- /dev/null
+++ b/src/wordexp/WRDE_UNDEF.c
@@ -0,0 +1,6 @@
+#include <wordexp.h>
+#define WRDE_UNDEF 6
+/*
+POSIX(2)
+*/
+
diff --git a/src/wordexp/wordexp.c b/src/wordexp/wordexp.c
new file mode 100644
index 00000000..5ac38d9e
--- /dev/null
+++ b/src/wordexp/wordexp.c
@@ -0,0 +1,11 @@
+#include <wordexp.h>
+
+int wordexp(const char *restrict words, wordexp_t *restrict pwordexp, int flags)
+{
+ return 0;
+}
+
+/*
+POSIX(2)
+*/
+
diff --git a/src/wordexp/wordexp_t.c b/src/wordexp/wordexp_t.c
new file mode 100644
index 00000000..1bf6eac9
--- /dev/null
+++ b/src/wordexp/wordexp_t.c
@@ -0,0 +1,12 @@
+#include <wordexp.h>
+
+typedef struct {
+ size_t we_wordc;
+ char ** we_wordv;
+ size_t we_offs;
+} wordexp_t;
+
+/*
+POSIX(2)
+*/
+
diff --git a/src/wordexp/wordfree.c b/src/wordexp/wordfree.c
new file mode 100644
index 00000000..f1043c2d
--- /dev/null
+++ b/src/wordexp/wordfree.c
@@ -0,0 +1,10 @@
+#include <wordexp.h>
+
+void wordfree(wordexp_t *pwordexp)
+{
+}
+
+/*
+POSIX(2)
+*/
+