1 // 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 
9 namespace base {
10 
GetCurrentProcId()11 ProcessId GetCurrentProcId() {
12   return getpid();
13 }
14 
GetCurrentProcessHandle()15 ProcessHandle GetCurrentProcessHandle() {
16   return GetCurrentProcId();
17 }
18 
GetProcId(ProcessHandle process)19 ProcessId GetProcId(ProcessHandle process) {
20   return process;
21 }
22 
23 }  // namespace base
24