| 1247 | |
| 1248 | |
| 1249 | ULONG SharedMemoryBase::getSystemPageSize(CheckStatusWrapper* statusVector) |
| 1250 | { |
| 1251 | // Get system page size as this is the unit of mapping. |
| 1252 | |
| 1253 | #ifdef SOLARIS |
| 1254 | const long ps = sysconf(_SC_PAGESIZE); |
| 1255 | if (ps == -1) |
| 1256 | { |
| 1257 | error(statusVector, "sysconf", errno); |
| 1258 | return 0; |
| 1259 | } |
| 1260 | #else |
| 1261 | const int ps = getpagesize(); |
| 1262 | if (ps == -1) |
| 1263 | { |
| 1264 | error(statusVector, "getpagesize", errno); |
| 1265 | return 0; |
| 1266 | } |
| 1267 | #endif |
| 1268 | return ps; |
| 1269 | } |
| 1270 | |
| 1271 | |
| 1272 | SharedMemoryBase::SharedMemoryBase(const TEXT* filename, ULONG length, IpcObject* callback, bool skipLock) |
nothing calls this directly
no test coverage detected