Changeset - 529ca20aaaa5
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 17 years ago 2009-02-23 18:14:39
ohnobinki@ohnopublishing.net
execio: more api change to allow passing args to
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/common/execio.h
Show inline comments
 
@@ -33,25 +33,25 @@ enum execio_state
 
  };
 
  
 

	
 
struct execio
 
{
 
  int pipe_write;
 
  int pipe_read;
 
  
 
  pid_t child;
 
};
 

	
 
/* nonzsero return on error */
 
int execio_open(const char *spec, struct execio **eio);
 
int execio_open(struct execio **rem, const char *progname, char *cont argv[]);
 

	
 
/* 
 
   blocks, 
 
   returns 0 if len is 0. Otherwise, only returns 0 on error/EOF: use execio_state() to determine
 
*/
 
size_t execio_read(struct execio *eio, void *buf, size_t len);
 
size_t execio_write(struct execio *eio, void *buf, size_t len);
 

	
 
enum execio_state execio_state(struct execio *eio);
 

	
 
/* nonzero return on error */
 
int execio_close(struct execio *eio);
0 comments (0 inline, 0 general)