libsysprof-capture: add sysprof_getpagesize()

This is a helper to get the page size on various platforms so that calling
code does not need to duplicate that effort.
This commit is contained in:
Christian Hergert
2020-02-13 14:30:16 -08:00
parent 19e077736b
commit 86dcedfba0
2 changed files with 19 additions and 1 deletions

View File

@ -61,6 +61,8 @@
G_BEGIN_DECLS
SYSPROF_AVAILABLE_IN_ALL
int sysprof_memfd_create (const gchar *desc);
int sysprof_memfd_create (const gchar *desc);
SYSPROF_AVAILABLE_IN_3_36
gsize sysprof_getpagesize (void);
G_END_DECLS