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