From 05c0dde554b2d354ee06ca7dab7ce20cd39411ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 26 Jul 2006 13:19:52 +0000 Subject: [PATCH] Uh, the reason why ping did only work once, was because set_alarm() did not call the existing syscall... The second ping now ends in a kernel panic, though 8-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18277 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/os/time.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/system/libroot/os/time.c b/src/system/libroot/os/time.c index 0556e920e7..7ae2f99599 100644 --- a/src/system/libroot/os/time.c +++ b/src/system/libroot/os/time.c @@ -1,9 +1,13 @@ -/* - * Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. +/* + * Copyright 2002-2006, Axel Dörfler, axeld@pinc-software.de. * Distributed under the terms of the MIT License. */ +#include +#include +#include + #include #include @@ -11,10 +15,6 @@ #include #include -#include -#include -#include - static struct real_time_data sRealTimeDefaults; static struct real_time_data *sRealTimeData; @@ -103,8 +103,7 @@ set_timezone(char *timezone) bigtime_t -set_alarm(bigtime_t when, uint32 flags) +set_alarm(bigtime_t when, uint32 mode) { - // ToDo: set_alarm() - return B_ERROR; + return _kern_set_alarm(when, mode); }