linux: add Host/linux subdirectory
    
Start putting linux specific host code in its own directory.  For now, just
implement Host::GetOSVersion.

llvm-svn: 128133
diff --git a/lldb/source/Host/linux/Host.cpp b/lldb/source/Host/linux/Host.cpp
new file mode 100644
index 0000000..b0d43e8
--- /dev/null
+++ b/lldb/source/Host/linux/Host.cpp
@@ -0,0 +1,35 @@
+//===-- source/Host/linux/Host.cpp ------------------------------*- C++ -*-===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// C Includes
+#include <stdio.h>
+#include <sys/utsname.h>
+
+// C++ Includes
+// Other libraries and framework includes
+// Project includes
+#include "lldb/Host/Host.h"
+
+using namespace lldb;
+using namespace lldb_private;
+
+bool
+Host::GetOSVersion(uint32_t &major, 
+                   uint32_t &minor, 
+                   uint32_t &update)
+{
+    struct utsname un;
+    int status;
+
+    if (uname(&un))
+        return false;
+
+    status = sscanf(un.release, "%u.%u.%u", &major, &minor, &update);
+     return status == 3;
+}