MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getSystemPageSize

Method getSystemPageSize

src/common/isc_sync.cpp:1249–1269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1247
1248
1249ULONG 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
1272SharedMemoryBase::SharedMemoryBase(const TEXT* filename, ULONG length, IpcObject* callback, bool skipLock)

Callers

nothing calls this directly

Calls 3

getpagesizeFunction · 0.85
GetSystemInfoFunction · 0.85
errorFunction · 0.70

Tested by

no test coverage detected