Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Typo + cosmetics in portability helpers
[simgrid.git] / src / xbt / memory_map.hpp
index 3bf3d68..88807a2 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2015. The SimGrid Team.
+/* Copyright (c) 2007-2023. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
 #include <string>
 #include <vector>
 
-#include <xbt/base.h>
-#include <sys/types.h>
-
-namespace simgrid {
-namespace xbt {
+namespace simgrid::xbt {
 
 /** An virtual memory map entry from /proc/$pid/maps */
 struct VmMap {
@@ -30,9 +26,7 @@ struct VmMap {
   std::string pathname;         /* Path name of the mapped file */
 };
 
-XBT_PRIVATE std::vector<VmMap> get_memory_map(pid_t pid);
-
-}
-}
+std::vector<VmMap> get_memory_map(pid_t pid);
+} // namespace simgrid::xbt
 
 #endif