1sys_shm.h(0P)              POSIX Programmer's Manual             sys_shm.h(0P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       sys/shm.h — XSI shared memory facility
13

SYNOPSIS

15       #include <sys/shm.h>
16

DESCRIPTION

18       The <sys/shm.h> header shall define the following symbolic constants:
19
20       SHM_RDONLY  Attach read-only (else read-write).
21
22       SHM_RND     Round attach address to SHMLBA.
23
24       SHMLBA      Segment low boundary address multiple.
25
26       The <sys/shm.h> header shall define the following  data  types  through
27       typedef:
28
29       shmatt_t    Unsigned  integer  used  for the number of current attaches
30                   that must be able to store values at least as  large  as  a
31                   type unsigned short.
32
33       The <sys/shm.h> header shall define the shmid_ds structure, which shall
34       include the following members:
35
36
37           struct ipc_perm shm_perm   Operation permission structure.
38           size_t          shm_segsz  Size of segment in bytes.
39           pid_t           shm_lpid   Process ID of last shared memory operation.
40           pid_t           shm_cpid   Process ID of creator.
41           shmatt_t        shm_nattch Number of current attaches.
42           time_t          shm_atime  Time of last shmat().
43           time_t          shm_dtime  Time of last shmdt().
44           time_t          shm_ctime  Time of last change by shmctl().
45
46       The <sys/shm.h> header shall define the pid_t, size_t, and time_t types
47       as described in <sys/types.h>.
48
49       The following shall be declared as functions and may also be defined as
50       macros. Function prototypes shall be provided.
51
52
53           void *shmat(int, const void *, int);
54           int   shmctl(int, int, struct shmid_ds *);
55           int   shmdt(const void *);
56           int   shmget(key_t, size_t, int);
57
58       In addition, the  <sys/shm.h>  header  shall  include  the  <sys/ipc.h>
59       header.
60
61       The following sections are informative.
62

APPLICATION USAGE

64       None.
65

RATIONALE

67       None.
68

FUTURE DIRECTIONS

70       None.
71

SEE ALSO

73       <sys_ipc.h>, <sys_types.h>
74
75       The  System  Interfaces  volume  of  POSIX.1‐2017,  shmat(),  shmctl(),
76       shmdt(), shmget()
77
79       Portions of this text are reprinted and reproduced in  electronic  form
80       from  IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
81       table Operating System Interface (POSIX), The Open Group Base  Specifi‐
82       cations  Issue  7, 2018 Edition, Copyright (C) 2018 by the Institute of
83       Electrical and Electronics Engineers, Inc and The Open Group.   In  the
84       event of any discrepancy between this version and the original IEEE and
85       The Open Group Standard, the original IEEE and The Open Group  Standard
86       is  the  referee document. The original Standard can be obtained online
87       at http://www.opengroup.org/unix/online.html .
88
89       Any typographical or formatting errors that appear  in  this  page  are
90       most likely to have been introduced during the conversion of the source
91       files to man page format. To report such errors,  see  https://www.ker
92       nel.org/doc/man-pages/reporting_bugs.html .
93
94
95
96IEEE/The Open Group                  2017                        sys_shm.h(0P)
Impressum