From c43a6c505a79b21d47bd8bc54fec0b4f63e50850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 26 Jan 2006 00:14:03 +0000 Subject: [PATCH] Moved _kern_shutdown() to the registrar's R5Compatiblity.cpp where it belongs. (but maybe that file should be moved into libhaikucompat.a?) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16096 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/storage/LibBeAdapter.cpp | 8 -------- src/servers/registrar/R5Compatibility.cpp | 15 ++++++++++++--- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/kits/storage/LibBeAdapter.cpp b/src/kits/storage/LibBeAdapter.cpp index d3936d547f..cd49e607c5 100644 --- a/src/kits/storage/LibBeAdapter.cpp +++ b/src/kits/storage/LibBeAdapter.cpp @@ -735,11 +735,3 @@ _kern_get_safemode_option(const char *parameter, char *buffer, size_t *_bufferSi return _kget_safemode_option_(parameter, buffer, _bufferSize); } - -extern "C" status_t -_kern_shutdown(bool reboot) -{ - puts(reboot ? "reboot" : "shutdown"); - return B_ERROR; -} - diff --git a/src/servers/registrar/R5Compatibility.cpp b/src/servers/registrar/R5Compatibility.cpp index b80cc39e2e..e86d51c602 100644 --- a/src/servers/registrar/R5Compatibility.cpp +++ b/src/servers/registrar/R5Compatibility.cpp @@ -3,21 +3,30 @@ * Distributed under the terms of the MIT License. */ -// Syscalls not existing under R5 +//! Syscalls not existing under R5 #include +#include + // _kern_register_messaging_service -area_id +extern "C" area_id _kern_register_messaging_service(sem_id lockSem, sem_id counterSem) { return B_ERROR; } // _kern_unregister_messaging_service -status_t +extern "C" status_t _kern_unregister_messaging_service() { return B_ERROR; } +extern "C" status_t +_kern_shutdown(bool reboot) +{ + puts(reboot ? "reboot" : "shutdown"); + return B_ERROR; +} +