about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-09-13 14:45:59 -0400
committerRich Felker <dalias@aerifal.cx>2011-09-13 14:45:59 -0400
commit0f1ef81462f3533c52a0b030b4bfe87f7f200dcc (patch)
treed2f9b3f7fc860db9359f95e295524a2d5505581d /src
parent801b311a5b6f00a9490ae9933439d1e62451fbd3 (diff)
downloadmusl-0f1ef81462f3533c52a0b030b4bfe87f7f200dcc.tar.gz
musl-0f1ef81462f3533c52a0b030b4bfe87f7f200dcc.tar.xz
musl-0f1ef81462f3533c52a0b030b4bfe87f7f200dcc.zip
add missing posix_spawnattr_init/destroy functions
Diffstat (limited to 'src')
-rw-r--r--src/process/posix_spawnattr_destroy.c6
-rw-r--r--src/process/posix_spawnattr_init.c7
2 files changed, 13 insertions, 0 deletions
diff --git a/src/process/posix_spawnattr_destroy.c b/src/process/posix_spawnattr_destroy.c
new file mode 100644
index 00000000..fc714a1b
--- /dev/null
+++ b/src/process/posix_spawnattr_destroy.c
@@ -0,0 +1,6 @@
+#include <spawn.h>
+
+int posix_spawnattr_destroy(posix_spawnattr_t *attr)
+{
+	return 0;
+}
diff --git a/src/process/posix_spawnattr_init.c b/src/process/posix_spawnattr_init.c
new file mode 100644
index 00000000..0dcd868f
--- /dev/null
+++ b/src/process/posix_spawnattr_init.c
@@ -0,0 +1,7 @@
+#include <spawn.h>
+
+int posix_spawnattr_init(posix_spawnattr_t *attr)
+{
+	*attr = (posix_spawnattr_t){ 0 };
+	return 0;
+}