projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3029741
)
exec plugin: Added markers to fold methods in vim.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sun, 4 Nov 2007 13:19:30 +0000
(14:19 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sun, 4 Nov 2007 13:19:30 +0000
(14:19 +0100)
src/exec.c
patch
|
blob
|
history
diff --git
a/src/exec.c
b/src/exec.c
index
d9f2d8c
..
b5a3abb
100644
(file)
--- a/
src/exec.c
+++ b/
src/exec.c
@@
-59,7
+59,7
@@
static program_list_t *pl_head = NULL;
/*
* Functions
*/
/*
* Functions
*/
-static int exec_config (const char *key, const char *value)
+static int exec_config (const char *key, const char *value)
/* {{{ */
{
if (strcasecmp ("Exec", key) == 0)
{
{
if (strcasecmp ("Exec", key) == 0)
{
@@
-111,9
+111,9
@@
static int exec_config (const char *key, const char *value)
}
return (0);
}
return (0);
-} /* int exec_config */
+} /* int exec_config
}}}
*/
-static void exec_child (program_list_t *pl)
+static void exec_child (program_list_t *pl)
/* {{{ */
{
int status;
int uid;
{
int status;
int uid;
@@
-216,9
+216,9
@@
static void exec_child (program_list_t *pl)
ERROR ("exec plugin: exec failed: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));
exit (-1);
ERROR ("exec plugin: exec failed: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));
exit (-1);
-} /* void exec_child */
+} /* void exec_child
}}}
*/
-static int fork_child (program_list_t *pl)
+static int fork_child (program_list_t *pl)
/* {{{ */
{
int fd_pipe[2];
int status;
{
int fd_pipe[2];
int status;
@@
-261,9
+261,9
@@
static int fork_child (program_list_t *pl)
close (fd_pipe[1]);
return (fd_pipe[0]);
close (fd_pipe[1]);
return (fd_pipe[0]);
-} /* int fork_child */
+} /* int fork_child
}}}
*/
-static int parse_line (char *buffer)
+static int parse_line (char *buffer)
/* {{{ */
{
char *fields[256];
int fields_num;
{
char *fields[256];
int fields_num;
@@
-273,9
+273,9
@@
static int parse_line (char *buffer)
handle_putval (stdout, fields, fields_num + 1);
return (0);
handle_putval (stdout, fields, fields_num + 1);
return (0);
-} /* int parse_line */
+} /* int parse_line
}}}
*/
-static void *exec_read_one (void *arg)
+static void *exec_read_one (void *arg)
/* {{{ */
{
program_list_t *pl = (program_list_t *) arg;
int fd;
{
program_list_t *pl = (program_list_t *) arg;
int fd;
@@
-320,9
+320,9
@@
static void *exec_read_one (void *arg)
pthread_exit ((void *) 0);
return (NULL);
pthread_exit ((void *) 0);
return (NULL);
-} /* void *exec_read_one */
+} /* void *exec_read_one
}}}
*/
-static int exec_read (void)
+static int exec_read (void)
/* {{{ */
{
program_list_t *pl;
{
program_list_t *pl;
@@
-340,9
+340,9
@@
static int exec_read (void)
} /* for (pl) */
return (0);
} /* for (pl) */
return (0);
-} /* int exec_read */
+} /* int exec_read
}}}
*/
-static int exec_shutdown (void)
+static int exec_shutdown (void)
/* {{{ */
{
program_list_t *pl;
program_list_t *next;
{
program_list_t *pl;
program_list_t *next;
@@
-366,7
+366,7
@@
static int exec_shutdown (void)
pl_head = NULL;
return (0);
pl_head = NULL;
return (0);
-} /* int exec_shutdown */
+} /* int exec_shutdown
}}}
*/
void module_register (void)
{
void module_register (void)
{
@@
-376,5
+376,5
@@
void module_register (void)
} /* void module_register */
/*
} /* void module_register */
/*
- * vim:shiftwidth=2:softtabstop=2:tabstop=8
+ * vim:shiftwidth=2:softtabstop=2:tabstop=8
:fdm=marker
*/
*/