diff options
| author | Zachary Turner <zturner@google.com> | 2014-08-21 21:49:24 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2014-08-21 21:49:24 +0000 |
| commit | a21fee0ee403731a198926ce63e7b6958419f53a (patch) | |
| tree | 7de00cd5a04f230f140ccedb67a9ba34e346e351 /lldb/source/Host/posix/HostInfoPosix.cpp | |
| parent | 6b36337c0913fc5fdb4e73678d63248bd89ff5f0 (diff) | |
| download | bcm5719-llvm-a21fee0ee403731a198926ce63e7b6958419f53a.tar.gz bcm5719-llvm-a21fee0ee403731a198926ce63e7b6958419f53a.zip | |
Move the rest of the HostInfo functions over.
This should bring HostInfo up to 99% completion. The remainder
of code in Host will be split into instantiatable classes
representing host processes, threads, dynamic libraries, and
process launching strategies.
llvm-svn: 216230
Diffstat (limited to 'lldb/source/Host/posix/HostInfoPosix.cpp')
| -rw-r--r-- | lldb/source/Host/posix/HostInfoPosix.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lldb/source/Host/posix/HostInfoPosix.cpp b/lldb/source/Host/posix/HostInfoPosix.cpp index bb95a0d26c9..78dc031fff2 100644 --- a/lldb/source/Host/posix/HostInfoPosix.cpp +++ b/lldb/source/Host/posix/HostInfoPosix.cpp @@ -97,6 +97,30 @@ HostInfoPosix::LookupGroupName(uint32_t gid, std::string &group_name) return NULL; } +uint32_t +HostInfoPosix::GetUserID() +{ + return getuid(); +} + +uint32_t +HostInfoPosix::GetGroupID() +{ + return getgid(); +} + +uint32_t +HostInfoPosix::GetEffectiveUserID() +{ + return geteuid(); +} + +uint32_t +HostInfoPosix::GetEffectiveGroupID() +{ + return getegid(); +} + bool HostInfoPosix::ComputeSupportExeDirectory(FileSpec &file_spec) { |

