getpagesize.c 331 B

1234567891011121314
  1. #include <stdio.h>
  2. #include <unistd.h>
  3. #include <errno.h>
  4. #include "test_helpers.h"
  5. int main(void) {
  6. errno = 0;
  7. int getpagesize_result = getpagesize();
  8. int getpagesize_errno = errno;
  9. printf("getpagesize(): %d, errno: %d = %s\n", getpagesize_result,
  10. getpagesize_errno, strerror(getpagesize_errno));
  11. }