process-r0drv-darwin.cpp revision a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fc
d9b89b456290f14f6117118a051f8141173e03edvboxsync/* $Id$ */
59190ecd61435d19ba3515b876272aee7bd12298vboxsync/** @file
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * innotek Portable Runtime - Process, Ring-0 Driver, Darwin.
59190ecd61435d19ba3515b876272aee7bd12298vboxsync */
59190ecd61435d19ba3515b876272aee7bd12298vboxsync
59190ecd61435d19ba3515b876272aee7bd12298vboxsync/*
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * Copyright (C) 2006-2007 innotek GmbH
59190ecd61435d19ba3515b876272aee7bd12298vboxsync *
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * available from http://www.virtualbox.org. This file is free software;
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * you can redistribute it and/or modify it under the terms of the GNU
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * General Public License (GPL) as published by the Free Software
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
59190ecd61435d19ba3515b876272aee7bd12298vboxsync *
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * The contents of this file may alternatively be used under the terms
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * of the Common Development and Distribution License Version 1.0
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * VirtualBox OSE distribution, in which case the provisions of the
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * CDDL are applicable instead of those of the GPL.
59190ecd61435d19ba3515b876272aee7bd12298vboxsync *
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * You may elect to license modified versions of this file under the
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * terms and conditions of either the GPL or the CDDL or both.
59190ecd61435d19ba3515b876272aee7bd12298vboxsync */
59190ecd61435d19ba3515b876272aee7bd12298vboxsync
59190ecd61435d19ba3515b876272aee7bd12298vboxsync/*******************************************************************************
59190ecd61435d19ba3515b876272aee7bd12298vboxsync* Header Files *
59190ecd61435d19ba3515b876272aee7bd12298vboxsync*******************************************************************************/
59190ecd61435d19ba3515b876272aee7bd12298vboxsync#include "the-darwin-kernel.h"
59190ecd61435d19ba3515b876272aee7bd12298vboxsync#include <iprt/process.h>
59190ecd61435d19ba3515b876272aee7bd12298vboxsync
59190ecd61435d19ba3515b876272aee7bd12298vboxsync
6cfe2f211777112941f9aaac734529f593edb7f4vboxsyncRTDECL(RTPROCESS) RTProcSelf(void)
59190ecd61435d19ba3515b876272aee7bd12298vboxsync{
59190ecd61435d19ba3515b876272aee7bd12298vboxsync return proc_selfpid();
59190ecd61435d19ba3515b876272aee7bd12298vboxsync}
59190ecd61435d19ba3515b876272aee7bd12298vboxsync
59190ecd61435d19ba3515b876272aee7bd12298vboxsync
59190ecd61435d19ba3515b876272aee7bd12298vboxsyncRTR0DECL(RTR0PROCESS) RTR0ProcHandleSelf(void)
59190ecd61435d19ba3515b876272aee7bd12298vboxsync{
59190ecd61435d19ba3515b876272aee7bd12298vboxsync return (RTR0PROCESS)current_task();
59190ecd61435d19ba3515b876272aee7bd12298vboxsync}
59190ecd61435d19ba3515b876272aee7bd12298vboxsync
59190ecd61435d19ba3515b876272aee7bd12298vboxsync