Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Implement a gras_os_myname. KISS and don't try a DNS resolver tonight. ie, don't...
[simgrid.git] / src / gras / Virtu / sg_dns.c
diff --git a/src/gras/Virtu/sg_dns.c b/src/gras/Virtu/sg_dns.c
new file mode 100644 (file)
index 0000000..1d67ee4
--- /dev/null
@@ -0,0 +1,15 @@
+/* $Id$ */
+
+/* sg_dns - name resolution (simulator)                                     */
+
+/* Copyright (c) 2005 Martin Quinson. All rights reserved.                  */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
+
+#include "gras/Virtu/virtu_sg.h"
+
+const char *gras_os_myname(void) {
+   return MSG_host_get_name(MSG_host_self());
+}