annotate lib/spawnattr_destroy.c @ 10780:5c7a68d31801

Add support for Haiku.
author Bruno Haible <bruno@clisp.org>
date Mon, 10 Nov 2008 12:37:32 +0100
parents a604f5d409f9
children b5e42ef33b49
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10524
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Copyright (C) 2000 Free Software Foundation, Inc.
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 This file is part of the GNU C Library.
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 #include <config.h>
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 /* Specification. */
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #include <spawn.h>
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 /* Initialize data structure for file attribute for `spawn' call. */
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 int
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 posix_spawnattr_destroy (posix_spawnattr_t *attr)
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 {
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 /* Nothing to do in the moment. */
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 return 0;
a604f5d409f9 New module 'posix_spawnattr_destroy'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 }