summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorroot <root@nolonger-other.tetra.james.local>2020-10-25 13:26:29 +0000
committerroot <root@nolonger-other.tetra.james.local>2020-10-25 13:26:29 +0000
commit62bc1af6c6a1201db551e1ec523e757415464fd5 (patch)
tree49c2eadf8a51e7e43a059f1aff59997c3c169c5e /util.h
parent4b4e4972088d82cac99941398834d8e6d661682c (diff)
downloadgalaxy_tools-62bc1af6c6a1201db551e1ec523e757415464fd5.tar.gz
galaxy_tools-62bc1af6c6a1201db551e1ec523e757415464fd5.tar.bz2
galaxy_tools-62bc1af6c6a1201db551e1ec523e757415464fd5.zip
tidy up, make less awful
Diffstat (limited to 'util.h')
-rw-r--r--util.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/util.h b/util.h
new file mode 100644
index 0000000..9bee282
--- /dev/null
+++ b/util.h
@@ -0,0 +1,13 @@
+#ifndef _util_h_
+#define _util_h_
+
+/* util.c */
+extern void set_nonblocking (int fd);
+extern void set_blocking (int fd);
+extern int fd_can_read (int fd);
+extern int fd_drain (int fd);
+extern int open_tty (const char *path, int baud);
+extern int open_tcp_client (const char *host, unsigned port);
+extern int open_tcp_server (unsigned port);
+
+#endif /* _util_h_ */