summaryrefslogtreecommitdiffstats
path: root/man/man7/unix.7
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--man/man7/unix.7 (renamed from man7/unix.7)8
1 files changed, 7 insertions, 1 deletions
diff --git a/man7/unix.7 b/man/man7/unix.7
index 426a430..eacc0a3 100644
--- a/man7/unix.7
+++ b/man/man7/unix.7
@@ -12,7 +12,7 @@
.\" address that can appear in the sockaddr_un structure: pathname,
.\" unnamed, and abstract.
.\"
-.TH UNIX 7 2024-03-16 "Linux man-pages 6.7"
+.TH UNIX 7 2024-05-02 "Linux man-pages (unreleased)"
.SH NAME
unix \- sockets for local interprocess communication
.SH SYNOPSIS
@@ -960,9 +960,13 @@ $
/*
* File connection.h
*/
+#ifndef CONNECTION_H
+#define CONNECTION_H
\&
#define SOCKET_NAME "/tmp/9Lq7BNBnBycd6nxy.socket"
#define BUFFER_SIZE 12
+\&
+#endif // include guard
.EE
.\" SRC END
.P
@@ -976,6 +980,7 @@ $
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
+#include <sys/types.h>
#include <sys/un.h>
#include <unistd.h>
\&
@@ -1121,6 +1126,7 @@ main(void)
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
+#include <sys/types.h>
#include <sys/un.h>
#include <unistd.h>
\&