~ubuntu-branches/ubuntu/saucy/sssd/saucy

« back to all changes in this revision

Viewing changes to replace/system/shmem.h

  • Committer: Stéphane Graber
  • Date: 2011-06-15 16:23:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: stgraber@ubuntu.com-20110615162314-rbhoppnpaxfqo5q7
Merge 1.5.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _system_shmem_h
2
 
#define _system_shmem_h
3
 
/* 
4
 
   Unix SMB/CIFS implementation.
5
 
 
6
 
   shared memory system include wrappers
7
 
 
8
 
   Copyright (C) Andrew Tridgell 2004
9
 
   
10
 
     ** NOTE! The following LGPL license applies to the replace
11
 
     ** library. This does NOT imply that all of Samba is released
12
 
     ** under the LGPL
13
 
   
14
 
   This library is free software; you can redistribute it and/or
15
 
   modify it under the terms of the GNU Lesser General Public
16
 
   License as published by the Free Software Foundation; either
17
 
   version 3 of the License, or (at your option) any later version.
18
 
 
19
 
   This library is distributed in the hope that it will be useful,
20
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
21
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22
 
   Lesser General Public License for more details.
23
 
 
24
 
   You should have received a copy of the GNU Lesser General Public
25
 
   License along with this library; if not, see <http://www.gnu.org/licenses/>.
26
 
 
27
 
*/
28
 
 
29
 
#if defined(HAVE_SYS_IPC_H)
30
 
#include <sys/ipc.h>
31
 
#endif /* HAVE_SYS_IPC_H */
32
 
 
33
 
#if defined(HAVE_SYS_SHM_H)
34
 
#include <sys/shm.h>
35
 
#endif /* HAVE_SYS_SHM_H */
36
 
 
37
 
#ifdef HAVE_SYS_MMAN_H
38
 
#include <sys/mman.h>
39
 
#endif
40
 
 
41
 
/* NetBSD doesn't have these */
42
 
#ifndef SHM_R
43
 
#define SHM_R 0400
44
 
#endif
45
 
 
46
 
#ifndef SHM_W
47
 
#define SHM_W 0200
48
 
#endif
49
 
 
50
 
 
51
 
#ifndef MAP_FILE
52
 
#define MAP_FILE 0
53
 
#endif
54
 
 
55
 
#ifndef MAP_FAILED
56
 
#define MAP_FAILED ((void *)-1)
57
 
#endif
58
 
 
59
 
#endif