diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-07-12 00:54:27 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-07-12 00:54:27 +0200 |
commit | a882dbfaa2a878f9fb7c11e361e76e192ef27951 (patch) | |
tree | 02c6f98dd687c9bd3862ed3a6760163e17758431 /src/misc.h | |
parent | 78d3bb2eff827029e9f9ee01f7548f397332943f (diff) | |
download | bbs-a882dbfaa2a878f9fb7c11e361e76e192ef27951.tar.gz |
Some refactoring
Diffstat (limited to 'src/misc.h')
-rw-r--r-- | src/misc.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/misc.h b/src/misc.h new file mode 100644 index 0000000..49a3384 --- /dev/null +++ b/src/misc.h @@ -0,0 +1,18 @@ +/* + * misc.h + * (c) 2019, Jonas Gunz, jonasgunz.de + * <Description> + * <License> +*/ + +#pragma once + +#include <unistd.h> +#include <stdlib.h> +#include <stdio.h> +#include <errno.h> +#include <string.h> + +int try_write(int _fd, char *_buff, int _size, int _retry); + +pid_t fork_run(int _stdin, int _stdout, int _stderr, int argc, char* argv[]); |