diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-24 04:52:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-24 04:52:22 +0000 |
commit | 7f3caba522f4d24764f29d83aa2de9198bb7f01c (patch) | |
tree | 66b798ea74302325d6a5c11df044cbe4bb845af1 /man3/shm_open.3 | |
parent | Adding upstream version 6.7. (diff) | |
download | manpages-upstream.tar.xz manpages-upstream.zip |
Adding upstream version 6.8.upstream/6.8upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | man/man3/shm_open.3 (renamed from man3/shm_open.3) | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/man3/shm_open.3 b/man/man3/shm_open.3 index 6d07292..257e460 100644 --- a/man3/shm_open.3 +++ b/man/man3/shm_open.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH shm_open 3 2023-10-31 "Linux man-pages 6.7" +.TH shm_open 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME shm_open, shm_unlink \- create/open or unlink POSIX shared memory objects .SH LIBRARY @@ -290,13 +290,13 @@ on the memory object that is shared between the two programs. .in +4n .\" SRC BEGIN (pshm_ucase.h) .EX -#include <fcntl.h> +#ifndef PSHM_UCASE_H +#define PSHM_UCASE_H +\& #include <semaphore.h> +#include <stddef.h> #include <stdio.h> #include <stdlib.h> -#include <sys/mman.h> -#include <sys/stat.h> -#include <unistd.h> \& #define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \e } while (0) @@ -312,6 +312,8 @@ struct shmbuf { size_t cnt; /* Number of bytes used in \[aq]buf\[aq] */ char buf[BUF_SIZE]; /* Data being transferred */ }; +\& +#endif // include guard .EE .\" SRC END .in @@ -338,6 +340,11 @@ to tell the "send" program that it may now access the shared memory. Licensed under GNU General Public License v2 or later. */ #include <ctype.h> +#include <fcntl.h> +#include <stdio.h> +#include <stdlib.h> +#include <sys/mman.h> +#include <unistd.h> \& #include "pshm_ucase.h" \& @@ -430,7 +437,13 @@ on standard output. \& Licensed under GNU General Public License v2 or later. */ +#include <fcntl.h> +#include <stddef.h> +#include <stdio.h> +#include <stdlib.h> #include <string.h> +#include <sys/mman.h> +#include <unistd.h> \& #include "pshm_ucase.h" \& |