r25068: Older samba3 DCs will return DCERPC_FAULT_OP_RNG_ERROR for every opcode on the
[Samba.git] / source / lib / replace / system / shmem.h
blob234ec1c14a1cd148ddfaab7c2c8745980b4122c6
1 #ifndef _system_shmem_h
2 #define _system_shmem_h
3 /*
4 Unix SMB/CIFS implementation.
6 shared memory system include wrappers
8 Copyright (C) Andrew Tridgell 2004
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
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 2 of the License, or (at your option) any later version.
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.
24 You should have received a copy of the GNU Lesser General Public
25 License along with this library; if not, write to the Free Software
26 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 #if defined(HAVE_SYS_IPC_H)
31 #include <sys/ipc.h>
32 #endif /* HAVE_SYS_IPC_H */
34 #if defined(HAVE_SYS_SHM_H)
35 #include <sys/shm.h>
36 #endif /* HAVE_SYS_SHM_H */
38 #ifdef HAVE_SYS_MMAN_H
39 #include <sys/mman.h>
40 #endif
42 /* NetBSD doesn't have these */
43 #ifndef SHM_R
44 #define SHM_R 0400
45 #endif
47 #ifndef SHM_W
48 #define SHM_W 0200
49 #endif
52 #ifndef MAP_FILE
53 #define MAP_FILE 0
54 #endif
56 #ifndef MAP_FAILED
57 #define MAP_FAILED ((void *)-1)
58 #endif
60 #endif