13 #ifndef __STOUT_POSIX_FS_HPP__    14 #define __STOUT_POSIX_FS_HPP__    17 #include <sys/statvfs.h>    35   if (::statvfs(
path.c_str(), &buf) < 0) {
    38   return Bytes(buf.f_frsize) * buf.f_blocks;
    46   if (::statvfs(
path.c_str(), &buf) < 0) {
    49   return Bytes(buf.f_frsize) * (buf.f_blocks - buf.f_bfree);
    58   if (statvfs(
path.c_str(), &buf) < 0) {
    61   return (
double) (buf.f_blocks - buf.f_bfree) / buf.f_blocks;
    66     const std::string& original,
    67     const std::string& link)
    69   if (::
symlink(original.c_str(), link.c_str()) < 0) {
    93 #endif // __STOUT_POSIX_FS_HPP__ 
Definition: nothing.hpp:16
 
Try< Nothing > symlink(const std::string &original, const std::string &link)
Definition: fs.hpp:65
 
Definition: errorbase.hpp:50
 
Try< Bytes > size(const std::string &path="/")
Definition: fs.hpp:32
 
Try< std::list< std::string > > list(const std::string &pattern)
Definition: fs.hpp:86
 
Try< Bytes > used(const std::string &path="/")
Definition: fs.hpp:43
 
Try< double > usage(const std::string &path="/")
Definition: fs.hpp:55
 
Try< std::list< std::string > > glob(const std::string &pattern)
Definition: os.hpp:239