2 * Bacula Shared Memory structure
6 * NB: these items are deprecated. Shared memory was
7 * used in a first version of the Storage daemon
8 * when it forked. Since then it has been converted
9 * to use threads. However, there are still some
10 * vestiges of the shared memory code that remain and
16 Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
18 This program is free software; you can redistribute it and/or
19 modify it under the terms of the GNU General Public License as
20 published by the Free Software Foundation; either version 2 of
21 the License, or (at your option) any later version.
23 This program is distributed in the hope that it will be useful,
24 but WITHOUT ANY WARRANTY; without even the implied warranty of
25 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26 General Public License for more details.
28 You should have received a copy of the GNU General Public
29 License along with this program; if not, write to the Free
30 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
35 typedef struct s_bshm {
36 int size; /* length desired */
37 int perms; /* permissions desired */
39 int shmid; /* id set by shm_create and shm_open */
40 key_t shmkey; /* key set by shm_create */
41 void *shmbuf; /* set by shm_open */