Changeset - 9416465039f3
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 16 years ago 2009-07-12 21:51:34
ohnobinki@ohnopublishing.net
fixed typos and added doxygen tags
1 file changed with 10 insertions and 7 deletions:
0 comments (0 inline, 0 general)
src/common/execio.h
Show inline comments
 
@@ -40,32 +40,35 @@ struct execio
 

	
 
  enum execio_state state;
 

	
 
  pid_t child;
 
};
 

	
 
/*
 
/**
 
  runs progname with the arguments in argv. argv must be null terminated!!!!!!!!!
 

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

	
 
/*
 
/**
 
   doesn't block,
 
   returns 0 on success, 1 on failure
 
*/
 
int execio_read(struct execio *eio, void *buf, size_t len, size_t *bytesread);
 
int execio_write(struct execio *eio, void *buf, size_t len, size_t *bytesread);
 
int execio_write(struct execio *eio, void *buf, size_t len, size_t *byteswritten);
 

	
 
/*
 
/**
 
  use this function to determine if the using program should keep trying to read/write
 

	
 
  @todo is this function good enough/necessary?
 
 */
 
enum execio_state execio_state(struct execio *eio);
 

	
 
/* 
 
   nonzero return on error 
 
/**
 
   Closes an execio session.
 
   @return nonzero on error 
 
*/
 
int execio_close(struct execio *eio);
 

	
 
#endif
 

	
0 comments (0 inline, 0 general)