]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/bshm.h
Initial revision
[bacula/bacula] / bacula / src / lib / bshm.h
1 /*
2  * Bacula Shared Memory structure
3  *
4  *  Kern Sibbald, May MM
5  *
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
11  *         can be removed.
12  */
13 /*
14    Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
15
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.
20
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.
25
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,
29    MA 02111-1307, USA.
30
31  */
32
33 typedef struct s_bshm {
34    int size;                          /* length desired */
35    int perms;                         /* permissions desired */
36
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 */
40 } BSHM;