[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT PATCH 1/1] uksysinfo: Add check for _SC_PAGESIZE in sysconf
- To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
- From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
- Date: Tue, 1 Oct 2019 15:34:03 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9tpOAexm7QgmMSwyWzsTwwjpPEb2yFbttXygPlnJqGM=; b=h2WZD73fVT4xbKEkHc7SoGlSlQzjxvuwmAYBEddCSr9H6feL+ldfJOsQHFQI9+9wLsZAt8ss7S4mb3TSojFUMPj96wahrnHmdm2r1iF+Gyqzh0idFBzHxXmvX25oUWMcSWy/vv2R+eAYkzHQC4mGzL03AU9azt/E9nmW7iKq+B5peMBPFPKdGC8/tFIGpN4SnzTHoy7hslRWkdOKDjQCef3kzU5dkT8oGDV6RTQXxH6olzssscYCCbeJP139Eh/KuEdFGrwsCKiqN8QtcQdXVAMek8e7GMsYD+4hZdifcCutNtAQa6XwO5u854mEcqCmR0WDDu/bB8B+3R++85zclQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cE5Q7o5lVDJjz/g372UQs8Cn+qTAbnyo5TpjGQQq0kxsebYkMZy68SLm+8pwdFA7rC4yD36kxcIQo2IHUfzpswdTSYHsbd/APMoL/KMSE9S+ZJhUyptLguoP6dvrvqEqntkbSEuOWtwDbLSku/9PY72DKENi+gwgpdiFUbetLf9ELBo8TSsto92ZRwJeuiLvrrxP2NoS2FJOnxpxgTdAJj/CBK+dKSMxAMEarX5t+4ncbFjZCR54oa0Q0fE8DolVoh5WfFmly2mT8Tcdljq6Cp2/bSRBi9OPITu3x2/kbfR0d/kTaOeBZDYonqsBcXwjYQoTvnTw/ZblAvgL0LWkbQ==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
- Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>, Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
- Delivery-date: Tue, 01 Oct 2019 15:34:11 +0000
- List-id: Mini-os development list <minios-devel.lists.xenproject.org>
- Thread-index: AQHVeG2ntbze21wnukKPlS2sIKs1Eg==
- Thread-topic: [UNIKRAFT PATCH 1/1] uksysinfo: Add check for _SC_PAGESIZE in sysconf
sysconf call returns __PAGE_SIZE when _SC_PAGESIZE is passed as an arguement.
---
lib/uksysinfo/sysinfo.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/uksysinfo/sysinfo.c b/lib/uksysinfo/sysinfo.c
index b546d7bf..6adcf221 100644
--- a/lib/uksysinfo/sysinfo.c
+++ b/lib/uksysinfo/sysinfo.c
@@ -72,6 +72,9 @@ long sysconf(int name)
if (name == _SC_NPROCESSORS_ONLN)
return 1;
+ if (name == _SC_PAGESIZE)
+ return __PAGE_SIZE;
+
return 0;
}
--
2.20.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|