summaryrefslogtreecommitdiffstats
path: root/man/man2/shmop.2
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--man/man2/shmop.2 (renamed from man2/shmop.2)19
1 files changed, 10 insertions, 9 deletions
diff --git a/man2/shmop.2 b/man/man2/shmop.2
index a763420..1cb835e 100644
--- a/man2/shmop.2
+++ b/man/man2/shmop.2
@@ -17,7 +17,7 @@
.\" Changed wording and placement of sentence regarding attachment
.\" of segments marked for destruction
.\"
-.TH SHMOP 2 2023-10-31 "Linux man-pages 6.7"
+.TH SHMOP 2 2024-05-02 "Linux man-pages (unreleased)"
.SH NAME
shmat, shmdt \- System V shared memory operations
.SH LIBRARY
@@ -319,27 +319,28 @@ The following header file is included by the "reader" and "writer" programs:
\&
Licensed under GNU General Public License v2 or later.
*/
-#include <sys/types.h>
-#include <sys/ipc.h>
-#include <sys/shm.h>
-#include <sys/sem.h>
+#ifndef SVSHM_STRING_H
+#define SVSHM_STRING_H
+\&
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
+#include <sys/sem.h>
\&
#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \e
} while (0)
\&
union semun { /* Used in calls to semctl() */
int val;
- struct semid_ds * buf;
- unsigned short * array;
+ struct semid_ds *buf;
+ unsigned short *array;
#if defined(__linux__)
- struct seminfo * __buf;
+ struct seminfo *__buf;
#endif
};
\&
#define MEM_SIZE 4096
+\&
+#endif // include guard
.EE
.\" SRC END
.in