summaryrefslogtreecommitdiffstats
path: root/plugins/runcmd.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-01-31 11:27:22 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-01-31 11:27:22 (GMT)
commit184ce9f6a38f5ee3355fdb8a6e557c3dc7811482 (patch)
tree9129d107a71bd1140eaae454015e4023a147917d /plugins/runcmd.c
parent6c4468a728788676621d4c5948ae018fc9d7c917 (diff)
downloadmonitoring-plugins-184ce9f6a38f5ee3355fdb8a6e557c3dc7811482.tar.gz
Bump plugins/ to GPLv3 (non-plugind files)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1918 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/runcmd.c')
-rw-r--r--plugins/runcmd.c79
1 files changed, 40 insertions, 39 deletions
diff --git a/plugins/runcmd.c b/plugins/runcmd.c
index af12d22..8c52b5c 100644
--- a/plugins/runcmd.c
+++ b/plugins/runcmd.c
@@ -1,42 +1,43 @@
1/**************************************************************************** 1/*****************************************************************************
2 * Nagios run command utilities 2*
3 * 3* Nagios run command utilities
4 * License: GPL 4*
5 * Copyright (c) 2005 nagios-plugins team 5* License: GPL
6 * 6* Copyright (c) 2005-2006 Nagios Plugins Development Team
7 * $Id$ 7*
8 * 8* Last Modified: $Date$
9 * Description : 9*
10 * 10* Description :
11 * A simple interface to executing programs from other programs, using an 11*
12 * optimized and safe popen()-like implementation. It is considered safe 12* A simple interface to executing programs from other programs, using an
13 * in that no shell needs to be spawned and the environment passed to the 13* optimized and safe popen()-like implementation. It is considered safe
14 * execve()'d program is essentially empty. 14* in that no shell needs to be spawned and the environment passed to the
15 * 15* execve()'d program is essentially empty.
16 * 16*
17 * The code in this file is a derivative of popen.c which in turn was taken 17* The code in this file is a derivative of popen.c which in turn was taken
18 * from "Advanced Programming for the Unix Environment" by W. Richard Stevens. 18* from "Advanced Programming for the Unix Environment" by W. Richard Stevens.
19 * 19*
20 * Care has been taken to make sure the functions are async-safe. The one 20* Care has been taken to make sure the functions are async-safe. The one
21 * function which isn't is np_runcmd_init() which it doesn't make sense to 21* function which isn't is np_runcmd_init() which it doesn't make sense to
22 * call twice anyway, so the api as a whole should be considered async-safe. 22* call twice anyway, so the api as a whole should be considered async-safe.
23 * 23*
24 * License Information: 24*
25 * 25* This program is free software: you can redistribute it and/or modify
26 * This program is free software; you can redistribute it and/or modify 26* it under the terms of the GNU General Public License as published by
27 * it under the terms of the GNU General Public License as published by 27* the Free Software Foundation, either version 3 of the License, or
28 * the Free Software Foundation; either version 2 of the License, or 28* (at your option) any later version.
29 * (at your option) any later version. 29*
30 * 30* This program is distributed in the hope that it will be useful,
31 * This program is distributed in the hope that it will be useful, 31* but WITHOUT ANY WARRANTY; without even the implied warranty of
32 * but WITHOUT ANY WARRANTY; without even the implied warranty of 32* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 33* GNU General Public License for more details.
34 * GNU General Public License for more details. 34*
35 * 35* You should have received a copy of the GNU General Public License
36 * You should have received a copy of the GNU General Public License 36* along with this program. If not, see <http://www.gnu.org/licenses/>.
37 * along with this program; if not, write to the Free Software 37*
38 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 38* $Id$
39 */ 39*
40*****************************************************************************/
40 41
41#define NAGIOSPLUG_API_C 1 42#define NAGIOSPLUG_API_C 1
42 43