Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Finish the merging of Cristian branch by fixing some of the remaining glitches preven...
[simgrid.git] / src / gras / Virtu / sg_dns.c
1 /* $Id$ */
2
3 /* sg_dns - name resolution (simulator)                                     */
4
5 /* Copyright (c) 2005 Martin Quinson. All rights reserved.                  */
6
7 /* This program is free software; you can redistribute it and/or modify it
8  * under the terms of the license (GNU LGPL) which comes with this package. */
9
10
11 #include "gras/Virtu/virtu_sg.h"
12
13 const char *gras_os_myname(void)
14 {
15   smx_host_t host = SIMIX_host_self();
16   if (host != NULL)
17     return SIMIX_host_get_name(SIMIX_host_self());
18   else
19     return "";
20 }