2014-05-12 12:41:46 -04:00
|
|
|
/*
|
2016-01-14 16:50:22 -05:00
|
|
|
Copyright (c) 2016, Antonio SJ Musumeci <trapexit@spawn.link>
|
|
|
|
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
|
purpose with or without fee is hereby granted, provided that the above
|
|
|
|
|
copyright notice and this permission notice appear in all copies.
|
|
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
2014-05-12 12:41:46 -04:00
|
|
|
*/
|
|
|
|
|
|
2017-06-30 11:15:20 -04:00
|
|
|
#pragma once
|
2014-05-12 12:41:46 -04:00
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <vector>
|
2015-06-22 23:22:51 -04:00
|
|
|
|
2017-06-28 21:17:47 -04:00
|
|
|
#include <fcntl.h>
|
2016-12-22 22:46:20 -05:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
2014-05-12 12:41:46 -04:00
|
|
|
namespace fs
|
|
|
|
|
{
|
|
|
|
|
using std::string;
|
|
|
|
|
using std::vector;
|
|
|
|
|
|
2019-01-25 07:03:46 -05:00
|
|
|
void findallfiles(const vector<string> &basepaths_,
|
|
|
|
|
const char *fusepath_,
|
|
|
|
|
vector<string> &paths_);
|
2015-02-07 18:27:47 -05:00
|
|
|
|
2019-01-25 07:03:46 -05:00
|
|
|
void realpathize(vector<string> &strs_);
|
2015-09-15 18:49:18 -04:00
|
|
|
|
2019-01-25 07:03:46 -05:00
|
|
|
int getfl(const int fd_);
|
|
|
|
|
int setfl(const int fd_,
|
|
|
|
|
const mode_t mode_);
|
2015-09-15 18:49:18 -04:00
|
|
|
|
2019-01-25 07:03:46 -05:00
|
|
|
int mfs(const vector<string> &srcs_,
|
|
|
|
|
const uint64_t minfreespace_,
|
|
|
|
|
string &path_);
|
|
|
|
|
}
|