aboutsummaryrefslogtreecommitdiff
path: root/runcap.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-07-19 15:23:20 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2017-07-19 17:07:26 +0300
commit99d911104d7c03608398d47c74f1ce3c39bff211 (patch)
treefa0daaa47c29ea23d8e1cae8d32cd18085636cdf /runcap.h
parent651babfefa21536112cbcd799932b3595aeb2da4 (diff)
downloadruncap-99d911104d7c03608398d47c74f1ce3c39bff211.tar.gz
runcap-99d911104d7c03608398d47c74f1ce3c39bff211.tar.bz2
Include the manpage; improve make distcheck
Diffstat (limited to 'runcap.h')
-rw-r--r--runcap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/runcap.h b/runcap.h
index 9537eee..3ed907d 100644
--- a/runcap.h
+++ b/runcap.h
@@ -25,13 +25,13 @@ struct stream_capture
size_t sc_level; /* number of characters currently in buffer */
size_t sc_cur; /* current offset in buffer */
off_t sc_leng; /* total length of captured data */
size_t sc_nlines; /* number of captured lines */
int sc_storfd; /* Storage file descriptor */
- void (*sc_linemon) (const char *, size_t, void *);
+ void (*sc_linemon)(const char *, size_t, void *);
/* Line monitor function */
void *sc_monarg; /* Line monitor argument */
};
#define STRCAP_BUFSIZE 4096
@@ -46,13 +46,13 @@ struct runcap
{
char *rc_program; /* [IN] (Path)name of the program to run */
char **rc_argv; /* [IN] Argument vector */
unsigned rc_timeout; /* [IN] Execution timeout */
struct stream_capture rc_cap[RUNCAP_NBUF];
/* rc_cap[RUNCAP_STDIN] - [IN], rest - [OUT] */
- pid_t rc_pid; /* [OUT] - PID of the process */
+ pid_t rc_pid; /* PID of the process */
int rc_status; /* [OUT] - Termination status */
int rc_errno; /* [OUT] - Value of errno, if terminated on error */
};
#define RCF_PROGRAM 0x0001 /* rc_program is set */
#define RCF_TIMEOUT 0x0002 /* rc_timeout is set */
@@ -66,13 +66,13 @@ int stream_capture_init(struct stream_capture *fc, size_t size);
void stream_capture_free(struct stream_capture *fc);
int runcap(struct runcap *rc, int flags);
void runcap_free(struct runcap *rc);
static inline struct stream_capture *
-runcap_stream_capture(struct runcap *rc, int stream)
+runcap_get_capture(struct runcap *rc, int stream)
{
struct stream_capture *fp;
if (stream != RUNCAP_STDOUT && stream != RUNCAP_STDERR) {
errno = EINVAL;
return NULL;

Return to:

Send suggestions and report system problems to the System administrator.