]> git.saurik.com Git - apple/security.git/blob - libsecurityd/lib/SharedMemoryCommon.h
Security-55471.tar.gz
[apple/security.git] / libsecurityd / lib / SharedMemoryCommon.h
1 #ifndef __SHARED_MEMORY_COMMON__
2 #define __SHARED_MEMORY_COMMON__
3
4
5
6 #include <sys/types.h>
7
8 const unsigned kSegmentSize = 4096;
9 const unsigned kNumberOfSegments = 8;
10 const unsigned kSharedMemoryPoolSize = kSegmentSize * kNumberOfSegments;
11
12 const unsigned kBytesWrittenOffset = 0;
13 const unsigned kBytesWrittenLength = 4;
14 const unsigned kPoolAvailableForData = kSharedMemoryPoolSize - kBytesWrittenLength;
15
16 typedef u_int32_t SegmentOffsetType;
17
18 #define SECURITY_MESSAGES_NAME "SecurityMessages"
19
20 #endif