1 //===-- source/Host/linux/Host.cpp ------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // C Includes
11 #include <stdio.h>
12 #include <sys/utsname.h>
13 
14 // C++ Includes
15 // Other libraries and framework includes
16 // Project includes
17 #include "lldb/Core/Error.h"
18 #include "lldb/Host/Host.h"
19 
20 using namespace lldb;
21 using namespace lldb_private;
22 
23 bool
24 Host::GetOSVersion(uint32_t &major,
25                    uint32_t &minor,
26                    uint32_t &update)
27 {
28     struct utsname un;
29     int status;
30 
31     if (uname(&un))
32         return false;
33 
34     status = sscanf(un.release, "%u.%u.%u", &major, &minor, &update);
35      return status == 3;
36 }
37 
38 Error
39 Host::LaunchProcess (ProcessLaunchInfo &launch_info)
40 {
41     Error error;
42     assert(!"Not implemented yet!!!");
43     return error;
44 }
45 
46