13 #ifndef __STOUT_OS_POSIX_EXISTS_HPP__
14 #define __STOUT_OS_POSIX_EXISTS_HPP__
26 inline bool exists(
const std::string& path)
30 if (::lstat(path.c_str(), &s) < 0) {
45 if (::
kill(pid, 0) == 0 || errno == EPERM) {
55 #endif // __STOUT_OS_POSIX_EXISTS_HPP__
bool exists(const std::string &path)
Definition: exists.hpp:26
DWORD pid_t
Definition: windows.hpp:187
Try< hashmap< std::string, uint64_t > > stat(const std::string &hierarchy, const std::string &cgroup, const std::string &file)
int kill(pid_t pid, int sig)
Definition: kill.hpp:21