diff options
Diffstat (limited to 'upstream/archlinux/man3/shm_open.3')
-rw-r--r-- | upstream/archlinux/man3/shm_open.3 | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/upstream/archlinux/man3/shm_open.3 b/upstream/archlinux/man3/shm_open.3 index dafc95d2..25ff059f 100644 --- a/upstream/archlinux/man3/shm_open.3 +++ b/upstream/archlinux/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.06" +.TH shm_open 3 2024-05-02 "Linux man-pages 6.8" .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" \& |