mirror of https://github.com/vitalif/zbackup
17 lines
357 B
C++
17 lines
357 B
C++
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
|
|
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
|
|
|
|
#include "page_size.hh"
|
|
|
|
#include <unistd.h>
|
|
|
|
unsigned getPageSize()
|
|
{
|
|
static unsigned value = 0;
|
|
|
|
if ( !value )
|
|
value = sysconf( _SC_PAGESIZE );
|
|
|
|
return value;
|
|
}
|