From 610b2c27a05491d7edb2004d35e4cf95015819db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Tue, 25 Mar 2008 18:51:30 +0000 Subject: [PATCH] more comments --- spawn.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/spawn.c b/spawn.c index 870d79b6..060d6a3e 100644 --- a/spawn.c +++ b/spawn.c @@ -42,7 +42,9 @@ typedef struct spawn { } spawn_t; - +/** + * Structs for reading back output from a spawn via a pipe + */ TAILQ_HEAD(spawn_output_buf_queue, spawn_output_buf); #define MAX_SOB_SIZE 4000 @@ -131,8 +133,12 @@ spawn_enq(const char *name, int pid) - - +/** + * Execute the given program and return its output in a malloc()ed buffer + * + * *outp will point to the allocated buffer + * The function will return the size of the buffer + */ int spawn_and_store_stdout(const char *prog, char **outp) {