From 8b97187793808d81e63b0a486599114135e95e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 17 Aug 2008 20:35:05 +0000 Subject: [PATCH] * Adds the _kunlock_node_() syscall obviously used by p4. This should fix ticket #2626. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27011 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/os/arch/x86/compatibility.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/system/libroot/os/arch/x86/compatibility.c b/src/system/libroot/os/arch/x86/compatibility.c index 93cf92137f..4db8064e0a 100644 --- a/src/system/libroot/os/arch/x86/compatibility.c +++ b/src/system/libroot/os/arch/x86/compatibility.c @@ -1,5 +1,5 @@ /* - * Copyright 2005-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Copyright 2005-2008, Axel Dörfler, axeld@pinc-software.de. * Distributed under the terms of the MIT License. */ @@ -8,8 +8,7 @@ // least they should only be used when compiling for GCC 2.95.3, though. #if __GNUC__ < 30 -// This file includes some known R5 syscalls -// ToDo: maybe they should indeed do something... +//! This file includes some known R5 syscalls #include #include @@ -24,6 +23,7 @@ int _kset_mon_limit_(int num); int _kset_fd_limit_(int num); int _klock_node_(int fd); +int _kunlock_node_(int fd); int _kget_cpu_state_(int cpuNum); int _kset_cpu_state_(int cpuNum, int state); int _kstatfs_(dev_t device, void *whatever, int fd, const char *path, fs_info *info); @@ -64,6 +64,13 @@ _klock_node_(int fd) } +int +_kunlock_node_(int fd) +{ + return _kern_unlock_node(fd); +} + + int _kget_cpu_state_(int cpuNum) {