summaryrefslogtreecommitdiff
path: root/lib/spawn_faction_destroy.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-09-28 13:49:24 +0200
committerBruno Haible <bruno@clisp.org>2008-09-28 13:49:24 +0200
commit350d23d166665e88171de392e537922f589b7b5c (patch)
treeaeecb58c4e7dc12d32907d82bff37fdaffe2e24b /lib/spawn_faction_destroy.c
parenteab7b90dfe48d5081a52f723a429cd414dcc97a4 (diff)
downloadgnulib-350d23d166665e88171de392e537922f589b7b5c.tar.gz
New module 'posix_spawn_file_actions_destroy'.
Diffstat (limited to 'lib/spawn_faction_destroy.c')
-rw-r--r--lib/spawn_faction_destroy.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/spawn_faction_destroy.c b/lib/spawn_faction_destroy.c
new file mode 100644
index 0000000000..285730227c
--- /dev/null
+++ b/lib/spawn_faction_destroy.c
@@ -0,0 +1,31 @@
+/* Copyright (C) 2000 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+#include <config.h>
+
+/* Specification. */
+#include <spawn.h>
+
+#include <stdlib.h>
+
+/* Initialize data structure for file attribute for `spawn' call. */
+int
+posix_spawn_file_actions_destroy (posix_spawn_file_actions_t *file_actions)
+{
+ /* Free the memory allocated. */
+ free (file_actions->_actions);
+ return 0;
+}