1shm.h(3HEAD)                        Headers                       shm.h(3HEAD)
2
3
4

NAME

6       shm.h, shm -  shared memory facility
7

SYNOPSIS

9       #include <sys/shm.h>
10
11

DESCRIPTION

13       The <sys/shm.h> header defines the following symbolic constants:
14
15       SHM_RDONLY    attach read-only (else read-write)
16
17
18       SHM_RND       round attach address to SHMLBA
19
20
21
22       The <sys/shm.h> header defines the following symbolic value:
23
24       SHMLBA    segment low boundary address multiple
25
26
27
28       The following data types are defined through typedef:
29
30       shmatt_t    Unsigned  integer  used  for the number of current attaches
31                   that must be able to store values at least as  large  as  a
32                   type unsigned short.
33
34
35
36       The shmid_ds structure contains the following members:
37
38         struct ipc_perm shm_perm       /* operation permission structure */
39         size_t          shm_segsz      /* size of segment in bytes */
40         pid_t           shm_lpid       /* process ID of last shared memory
41                                           operation */
42         pid_t           shm_cpid       /* process ID of creator */
43         shmatt_t        shm_nattch     /* number of current attaches */
44         time_t          shm_atime      /* time of last shmat() */
45         time_t          shm_dtime      /* time of last shmdt() */
46         time_t          shm_ctime      /* time of last change by shmctl() */
47
48
49
50       The  pid_t, time_t, key_t, and size_t types are defined as described in
51       <sys/types.h>. See types.h(3HEAD).
52
53
54       In addition, all of the symbols from <sys/ipc.h> are defined when  this
55       header is included.
56

ATTRIBUTES

58       See attributes(5) for descriptions of the following attributes:
59
60
61
62
63       ┌─────────────────────────────┬─────────────────────────────┐
64       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
65       ├─────────────────────────────┼─────────────────────────────┤
66       │Interface Stability          │Standard                     │
67       └─────────────────────────────┴─────────────────────────────┘
68

SEE ALSO

70       shmctl(2),    shmget(2),    shmop(2),   ipc.h(3HEAD),   types.h(3HEAD),
71       attributes(5), standards(5)
72
73
74
75SunOS 5.11                        10 Sep 2004                     shm.h(3HEAD)
Impressum