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
14 Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
16 This program is free software; you can redistribute it and/or
17 modify it under the terms of the GNU General Public License as
18 published by the Free Software Foundation; either version 2 of
19 the License, or (at your option) any later version.
21 This program is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 General Public License for more details.
26 You should have received a copy of the GNU General Public
27 License along with this program; if not, write to the Free
28 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
33 typedef struct s_bshm {
34 int size; /* length desired */
35 int perms; /* permissions desired */
37 int shmid; /* id set by shm_create and shm_open */
38 key_t shmkey; /* key set by shm_create */
39 void *shmbuf; /* set by shm_open */