Main Page Class Hierarchy Alphabetical List Compound List Examples |
00001 /*************************************************************************** 00002 copyright : (C) 2002-2005 by Stefano Barbato 00003 email : stefano@codesink.org 00004 00005 $Id: utils.h,v 1.8 2005/02/23 10:26:15 tat Exp $ 00006 ***************************************************************************/ 00007 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 #ifndef _MIMETIC_OS_UTILS_H_ 00017 #define _MIMETIC_OS_UTILS_H_ 00018 #include <string> 00019 00020 namespace mimetic 00021 { 00022 /// Returns host name 00023 std::string gethostname(); 00024 00025 /// Returns the ID of the calling process 00026 int getpid(); 00027 00028 } 00029 00030 #endif