Main Page Class Hierarchy Alphabetical List Compound List Examples |
00001 /*************************************************************************** 00002 copyright : (C) 2002-2008 by Stefano Barbato 00003 email : stefano@codesink.org 00004 00005 $Id: utils.h,v 1.9 2008-10-07 11:06:26 tat Exp $ 00006 ***************************************************************************/ 00007 #ifndef _MIMETIC_OS_UTILS_H_ 00008 #define _MIMETIC_OS_UTILS_H_ 00009 #include <string> 00010 00011 namespace mimetic 00012 { 00013 /// Returns host name 00014 std::string gethostname(); 00015 00016 /// Returns the ID of the calling process 00017 int getpid(); 00018 00019 } 00020 00021 #endif