Apache Mesos
Namespaces | Enumerations | Functions
stat.hpp File Reference
#include <sys/stat.h>
#include <sys/statvfs.h>
#include <string>
#include <stout/bytes.hpp>
#include <stout/try.hpp>
#include <stout/unreachable.hpp>
#include <stout/os/int_fd.hpp>

Go to the source code of this file.

Namespaces

 os
 
 os::stat
 
 os::stat::internal
 

Enumerations

enum  os::stat::FollowSymlink { os::stat::FollowSymlink::DO_NOT_FOLLOW_SYMLINK, os::stat::FollowSymlink::FOLLOW_SYMLINK, os::stat::FollowSymlink::DO_NOT_FOLLOW_SYMLINK, os::stat::FollowSymlink::FOLLOW_SYMLINK }
 

Functions

Try< struct::stat > os::stat::internal::stat (const std::string &path, const FollowSymlink follow)
 
Try< struct::stat > os::stat::internal::stat (const int_fd fd)
 
bool os::stat::islink (const std::string &path)
 
bool os::stat::isdir (const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
 
bool os::stat::isdir (const int_fd fd)
 
bool os::stat::isfile (const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
 
bool os::stat::issocket (const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
 
Try< Bytesos::stat::size (const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
 
Try< Bytesos::stat::size (const int_fd fd)
 
Try< long > os::stat::mtime (const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
 
Try< mode_tos::stat::mode (const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
 
Try< dev_t > os::stat::dev (const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
 
Try< dev_t > os::stat::rdev (const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
 
Try< ino_t > os::stat::inode (const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
 
Try< uid_tos::stat::uid (const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)