]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/bshm.h
Big reorganization of restore code into lib/attr.c
[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  *   Version $Id$
14  */
15 /*
16    Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
17
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.
22
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.
27
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,
31    MA 02111-1307, USA.
32
33  */
34
35 typedef struct s_bshm {
36    int size;                          /* length desired */
37    int perms;                         /* permissions desired */
38
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 */
42 } BSHM;