1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
/*
bosh system stuff (spawning processes etc)
$Id: system.h,v 1.17 2009/03/26 14:31:01 alexsisson Exp $
(C) Copyright 2004-2009 Alex Sisson (alexsisson@gmail.com)
*/
#ifndef SYSTEM_H_INCLUDED
#define SYSTEM_H_INCLUDED
/* includes */
#include "bosh.h"
#define errstr (strerror(errno))
int bosh_open(bosh_t *bosh);
int bosh_pipe(bosh_t *bosh, char *command);
int bosh_action(bosh_t *bosh, int a);
int bosh_read(bosh_t *bosh);
int bosh_write(bosh_t *bosh, char c);
void bosh_close(bosh_t *bosh);
int bosh_unlink(const char *path);
#endif
|