gras/Transport/rl_transport.c gras/Transport/transport_plugin_tcp.c gras/Transport/transport_plugin_file.c \
\
gras/Virtu/rl_chrono.c \
- gras/Virtu/rl_process.c gras/Virtu/rl_time.c gras/Virtu/rl_conditional.c
+ gras/Virtu/rl_process.c gras/Virtu/rl_time.c gras/Virtu/rl_conditional.c \
+ gras/Virtu/rl_dns.c
SG_SRC= \
xbt/context.c \
gras/Transport/sg_transport.c gras/Transport/transport_plugin_sg.c \
\
gras/Virtu/sg_chrono.c \
- gras/Virtu/sg_process.c gras/Virtu/sg_time.c gras/Virtu/sg_conditional.c
+ gras/Virtu/sg_process.c gras/Virtu/sg_time.c gras/Virtu/sg_conditional.c \
+ gras/Virtu/sg_dns.c
gras/DataDesc/ddt_parse.yy.c: gras/DataDesc/ddt_parse.yy.l
@LEX@ -o$@ -Pgras_ddt_parse_ $^
--- /dev/null
+/* $Id$ */
+
+/* rl_dns - name resolution (real life) */
+
+/* Copyright (c) 2003, 2004 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_rl.h"
+
+/* A portable DNS resolver is a nightmare to do in a portable manner */
+
+/* the ADNS library is a good candidate for inclusion in the source tree, but
+ * it would be a bit too much. We need a stripped down version of it, and it's
+ * a bit too late for this tonight.
+ *
+ * Next time maybe ;)
+ */
+const char *gras_os_myname(void) {
+
+ return "(unknown host)";
+}
+
--- /dev/null
+/* $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());
+}