From fa433836c643bbd9a60ed8ccdc9451a1edd98418 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Fri, 28 Oct 2022 02:06:01 +0100 Subject: handling of unix domain sockets --- unix.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 unix.h (limited to 'unix.h') diff --git a/unix.h b/unix.h new file mode 100644 index 0000000..410911e --- /dev/null +++ b/unix.h @@ -0,0 +1,17 @@ +#ifndef unix_h_INCLUDED +#define unix_h_INCLUDED + +#include +#include +#include +#include +#include +#include + + +// takes filename, returns socket fd +// or -1 on failure. +int unix_setup(char sockname[]); + +#endif // unix_h_INCLUDED + -- cgit v1.2.3