Browse Source

add missing posix_spawnattr_init/destroy functions

Rich Felker 13 years ago
parent
commit
0f1ef81462
2 changed files with 13 additions and 0 deletions
  1. 6 0
      src/process/posix_spawnattr_destroy.c
  2. 7 0
      src/process/posix_spawnattr_init.c

+ 6 - 0
src/process/posix_spawnattr_destroy.c

@@ -0,0 +1,6 @@
+#include <spawn.h>
+
+int posix_spawnattr_destroy(posix_spawnattr_t *attr)
+{
+	return 0;
+}

+ 7 - 0
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;
+}