|
@@ -2915,6 +2915,12 @@ sub process {
|
|
|
if ($line =~ /\bbzero\(/) {
|
|
|
ERROR("use memset() instead of bzero()\n" . $herecurr);
|
|
|
}
|
|
|
+ if ($line =~ /\bgetpagesize\(\)/) {
|
|
|
+ ERROR("use qemu_real_host_page_size instead of getpagesize()\n" . $herecurr);
|
|
|
+ }
|
|
|
+ if ($line =~ /\bsysconf\(_SC_PAGESIZE\)/) {
|
|
|
+ ERROR("use qemu_real_host_page_size instead of sysconf(_SC_PAGESIZE)\n" . $herecurr);
|
|
|
+ }
|
|
|
my $non_exit_glib_asserts = qr{g_assert_cmpstr|
|
|
|
g_assert_cmpint|
|
|
|
g_assert_cmpuint|
|