13 #ifndef __STOUT_OS_POSIX_EXISTS_HPP__ 14 #define __STOUT_OS_POSIX_EXISTS_HPP__ 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
Definition: posix_signalhandler.hpp:23
DWORD pid_t
Definition: windows.hpp:181
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