[PATCH] Support: Provide a function to get the home directory of an arbitrary user

Zachary Turner zturner at google.com
Thu Jul 31 17:42:36 PDT 2014


Hi rnk,

llvm::sys::path already provides a function home_directory() which returns the current user's home directory.

This patch extends this by implementing a function which returns the home directory of an arbitrary user.  This satisfies a use case in LLDB where we need to resolve paths of the form ~username/path, and since it is similar in nature to the existing home_directory() function, seems generally useful for llvm

http://reviews.llvm.org/D4749

Files:
  include/llvm/Support/Path.h
  lib/Support/Unix/Path.inc
  lib/Support/Windows/Path.inc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4749.12089.patch
Type: text/x-patch
Size: 3315 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140801/9c7dbd2e/attachment.bin>


More information about the llvm-commits mailing list