1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 3 * Copyright (c) International Business Machines Corp., 2005 4 * Robbie Williamson <[email protected]> 5 * 6 * Copyright (c) Wipro Technologies Ltd, 2005. All Rights Reserved. 7 * Prashant P Yendigeri <[email protected]> 8 * 9 * Copyright (c) 2022 SUSE LLC Avinesh Kumar <[email protected]> 10 */ 11 12 /*\ 13 * [Description] 14 * 15 * Verify that getpagesize(2) returns the number of bytes in a 16 * memory page as expected. 17 */ 18 19 #include "tst_test.h" 20 run(void)21static void run(void) 22 { 23 int pagesize_sysconf; 24 25 pagesize_sysconf = sysconf(_SC_PAGESIZE); 26 TST_EXP_VAL(getpagesize(), pagesize_sysconf); 27 } 28 29 static struct tst_test test = { 30 .test_all = run 31 }; 32