File: system.h

package info (click to toggle)
bosh 0.6-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 612 kB
  • sloc: ansic: 2,008; sh: 1,005; makefile: 14
file content (27 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (6)
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