annotate lib/spawnattr_init.c @ 17249:e542fd46ad6f

maint: update all copyright year number ranges Run "make update-copyright". Compare to commit 1602f0a from last year. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Tue, 01 Jan 2013 00:50:58 +0000
parents 18a38c9615f0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17249
e542fd46ad6f maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents: 16235
diff changeset
1 /* Copyright (C) 2000, 2009-2013 Free Software Foundation, Inc.
10511
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 This file is part of the GNU C Library.
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 #include <config.h>
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 /* Specification. */
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #include <spawn.h>
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 #include <string.h>
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23
16235
18a38c9615f0 In commentary, do not use ` to quote.
Paul Eggert <eggert@cs.ucla.edu>
parents: 16201
diff changeset
24 /* Initialize data structure for file attribute for 'spawn' call. */
10511
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 int
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 posix_spawnattr_init (posix_spawnattr_t *attr)
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 {
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 /* All elements have to be initialized to the default values which
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 is generally zero. */
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 memset (attr, '\0', sizeof (*attr));
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 return 0;
49d1dc7b5213 New module 'posix_spawnattr_init'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 }