aboutsummaryrefslogtreecommitdiff
path: root/src/misc.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-07-12 00:54:27 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-07-12 00:54:27 +0200
commita882dbfaa2a878f9fb7c11e361e76e192ef27951 (patch)
tree02c6f98dd687c9bd3862ed3a6760163e17758431 /src/misc.h
parent78d3bb2eff827029e9f9ee01f7548f397332943f (diff)
downloadbbs-a882dbfaa2a878f9fb7c11e361e76e192ef27951.tar.gz
Some refactoring
Diffstat (limited to 'src/misc.h')
-rw-r--r--src/misc.h18
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[]);