[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT/LIBNEWLIB PATCH 1/1] Add clock_getres and clock_settime stubs
- To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
- From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
- Date: Tue, 3 Sep 2019 12:21:50 +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=hQrvLSHE/9CMficQCSv+tRiWfuRw+cIPS+EkXcd1qAA=; b=OV65me6yx+TjR0NSWNDbLJ4PUsX47rd0Db0erqrE6FgPw6gH1sDhiHdLZqRgwiAL2mFqFbow9usDAsKGZX0CYUe7UsQaBow+vy7ZdLF8o5B09JoPQQHBDL/LF93MJnaCgi23fsMHiuaoMxPZQ2tUO+4v36w6VFBOXMxbntZQ8JOL2ElPP40uchF6Rt+P/6MHTHPTEVIT6ZtoJfSJFVwVeCG/fjDGzv2AXZAHcwDSZR9sNWu4MSxxFUxK1QUM4nOsEai6OuligNP4WdvoqaVqAXuGmGJVJ/Ar7Xs95C/eJH7N72nUZrpvC0UyfO7NHtpqKV5tyN2y41OOax84p2ytvQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e4MbpEx9wsz/sx1iPsx7YLK5r+ACBjdl5mFUv0fhOM/cPf0g7gJTYHUVMri5wufNXBEVBe4zhRvOycDFM6jXfWEomruFWsDbuitVTZTJLqYiagMewFqfqUKiZ4e29PxSTeQsR+yQiXBCJTOGgEgxRSVeybZ7/bQg0+B/j+lhPCkTUp25is7czw1TJuY+kbGeuffY3guu8HDIuVl00jeNYjLTXCwsTyGK538Teh2dC1aoSqVCkhjXSTgQ9wmnptOhWdJtVykislgTDLU13G3BvqM72hUyjrW1Y1+akDcAnmHqw/QKHIunog8Onqdxd+LXMZk3+tbcaAODiYGWBzLIQg==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
- Cc: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>, "costin.lupu@xxxxxxxxx" <costin.lupu@xxxxxxxxx>
- Delivery-date: Tue, 03 Sep 2019 12:21:57 +0000
- List-id: Mini-os development list <minios-devel.lists.xenproject.org>
- Thread-index: AQHVYlIprnV+zE6Fx0afiaVXAk3Smg==
- Thread-topic: [UNIKRAFT/LIBNEWLIB PATCH 1/1] Add clock_getres and clock_settime stubs
Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
time.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/time.c b/time.c
index 94e8097..a79691c 100644
--- a/time.c
+++ b/time.c
@@ -137,6 +137,11 @@ unsigned int sleep(unsigned int seconds)
return 0;
}
+int clock_getres(clockid_t clk_id __unused, struct timespec *res __unused)
+{
+ return 0;
+}
+
int clock_gettime(clockid_t clk_id __unused, struct timespec *tp __unused)
{
__nsec now;
@@ -162,3 +167,8 @@ int clock_gettime(clockid_t clk_id __unused, struct
timespec *tp __unused)
tp->tv_nsec = ukarch_time_subsec(now);
return 0;
}
+
+int clock_settime(clockid_t clk_id __unused, const struct timespec *tp
__unused)
+{
+ return 0;
+}
--
2.20.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|