blob: 4e332df1a0f64deb288f1e579baf9f9fb3d85ad2 [file] [log] [blame]
[email protected]992a60652013-07-15 18:29:351// Copyright (c) 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "base/process/process_handle.h"
6
7#include <unistd.h>
8
9namespace base {
10
11ProcessId GetCurrentProcId() {
12 return getpid();
13}
14
15ProcessHandle GetCurrentProcessHandle() {
16 return GetCurrentProcId();
17}
18
[email protected]992a60652013-07-15 18:29:3519ProcessId GetProcId(ProcessHandle process) {
20 return process;
21}
22
23} // namespace base