summaryrefslogtreecommitdiff
path: root/src/common/io.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-04-11 00:36:41 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-04-11 00:36:41 (GMT)
commit30009c26869094699c93ff5d922405e3a13fd26f (patch)
tree4bc9160061d1ab4dc1f8250185242fee1b348439 /src/common/io.h
parent3fbcabfd38e58dc4c47c9cd6ad95acb82e6e352b (diff)
Moved all the temporary creations in a temporary directory.
Diffstat (limited to 'src/common/io.h')
-rw-r--r--src/common/io.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/io.h b/src/common/io.h
index 0ada366..d70c64a 100644
--- a/src/common/io.h
+++ b/src/common/io.h
@@ -28,6 +28,7 @@
#include <stdbool.h>
#include <sys/types.h>
#include <sys/socket.h>
+#include <sys/un.h>
@@ -49,6 +50,12 @@ bool safe_send(int, const void *, size_t, int);
/* S'assure qu'un chemin donné existe dans le système. */
int ensure_path_exists(const char *);
+/* Met en place un fichier temporaire. */
+int make_tmp_file(const char *, char **);
+
+/* Met en place un canal UNIX temporaire. */
+bool build_tmp_socket(const char *, struct sockaddr_un *);
+
#endif /* _COMMON_IO_H */