Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  
os/utils.h
1 /***************************************************************************
2  copyright : (C) 2002-2008 by Stefano Barbato
3  email : stefano@codesink.org
4 
5  $Id: utils.h,v 1.9 2008-10-07 11:06:26 tat Exp $
6  ***************************************************************************/
7 #ifndef _MIMETIC_OS_UTILS_H_
8 #define _MIMETIC_OS_UTILS_H_
9 #include <string>
10 
11 namespace mimetic
12 {
13 /// Returns host name
14 std::string gethostname();
15 
16 /// Returns the ID of the calling process
17 int getpid();
18 
19 }
20 
21 #endif
std::string gethostname()
Returns host name.
int getpid()
Returns the ID of the calling process.