add missing posix_spawnattr_init/destroy functions
authorRich Felker <dalias@aerifal.cx>
Tue, 13 Sep 2011 18:45:59 +0000 (14:45 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 13 Sep 2011 18:45:59 +0000 (14:45 -0400)
src/process/posix_spawnattr_destroy.c [new file with mode: 0644]
src/process/posix_spawnattr_init.c [new file with mode: 0644]

diff --git a/src/process/posix_spawnattr_destroy.c b/src/process/posix_spawnattr_destroy.c
new file mode 100644 (file)
index 0000000..fc714a1
--- /dev/null
@@ -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 (file)
index 0000000..0dcd868
--- /dev/null
@@ -0,0 +1,7 @@
+#include <spawn.h>
+
+int posix_spawnattr_init(posix_spawnattr_t *attr)
+{
+       *attr = (posix_spawnattr_t){ 0 };
+       return 0;
+}