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
@@ -28,7 +28,7 @@ struct stream_capture
28 size_t sc_nlines; /* number of captured lines */ 28 size_t sc_nlines; /* number of captured lines */
29 int sc_storfd; /* Storage file descriptor */ 29 int sc_storfd; /* Storage file descriptor */
30 30
31 void (*sc_linemon) (const char *, size_t, void *); 31 void (*sc_linemon)(const char *, size_t, void *);
32 /* Line monitor function */ 32 /* Line monitor function */
33 void *sc_monarg; /* Line monitor argument */ 33 void *sc_monarg; /* Line monitor argument */
34}; 34};
@@ -49,7 +49,7 @@ struct runcap
49 unsigned rc_timeout; /* [IN] Execution timeout */ 49 unsigned rc_timeout; /* [IN] Execution timeout */
50 struct stream_capture rc_cap[RUNCAP_NBUF]; 50 struct stream_capture rc_cap[RUNCAP_NBUF];
51 /* rc_cap[RUNCAP_STDIN] - [IN], rest - [OUT] */ 51 /* rc_cap[RUNCAP_STDIN] - [IN], rest - [OUT] */
52 pid_t rc_pid; /* [OUT] - PID of the process */ 52 pid_t rc_pid; /* PID of the process */
53 int rc_status; /* [OUT] - Termination status */ 53 int rc_status; /* [OUT] - Termination status */
54 int rc_errno; /* [OUT] - Value of errno, if terminated on error */ 54 int rc_errno; /* [OUT] - Value of errno, if terminated on error */
55}; 55};
@@ -69,7 +69,7 @@ int runcap(struct runcap *rc, int flags);
69void runcap_free(struct runcap *rc); 69void runcap_free(struct runcap *rc);
70 70
71static inline struct stream_capture * 71static inline struct stream_capture *
72runcap_stream_capture(struct runcap *rc, int stream) 72runcap_get_capture(struct runcap *rc, int stream)
73{ 73{
74 struct stream_capture *fp; 74 struct stream_capture *fp;
75 75

Return to:

Send suggestions and report system problems to the System administrator.