Browse Source

add ifndefs to all headers

pull/361/head
Antonio SJ Musumeci 8 years ago
parent
commit
a60d815e92
  1. 5
      src/access.hpp
  2. 5
      src/assert.hpp
  3. 5
      src/buildmap.hpp
  4. 5
      src/buildvector.hpp
  5. 5
      src/chmod.hpp
  6. 5
      src/chown.hpp
  7. 5
      src/create.hpp
  8. 5
      src/destroy.hpp
  9. 5
      src/errno.hpp
  10. 5
      src/fallocate.hpp
  11. 5
      src/fgetattr.hpp
  12. 5
      src/flock.hpp
  13. 5
      src/flush.hpp
  14. 4
      src/fs.hpp
  15. 5
      src/fs_base_access.hpp
  16. 5
      src/fs_base_chmod.hpp
  17. 5
      src/fs_base_chown.hpp
  18. 5
      src/fs_base_close.hpp
  19. 5
      src/fs_base_closedir.hpp
  20. 5
      src/fs_base_dup.hpp
  21. 5
      src/fs_base_flock.hpp
  22. 8
      src/fs_base_fsync.hpp
  23. 5
      src/fs_base_ftruncate.hpp
  24. 5
      src/fs_base_getxattr.hpp
  25. 5
      src/fs_base_ioctl.hpp
  26. 5
      src/fs_base_link.hpp
  27. 5
      src/fs_base_listxattr.hpp
  28. 5
      src/fs_base_lseek.hpp
  29. 5
      src/fs_base_mkdir.hpp
  30. 5
      src/fs_base_mknod.hpp
  31. 5
      src/fs_base_open.hpp
  32. 5
      src/fs_base_opendir.hpp
  33. 5
      src/fs_base_read.hpp
  34. 5
      src/fs_base_readdir.hpp
  35. 5
      src/fs_base_readlink.hpp
  36. 5
      src/fs_base_realpath.hpp
  37. 5
      src/fs_base_remove.hpp
  38. 5
      src/fs_base_removexattr.hpp
  39. 5
      src/fs_base_rename.hpp
  40. 5
      src/fs_base_rmdir.hpp
  41. 5
      src/fs_base_setxattr.hpp
  42. 5
      src/fs_base_stat.hpp
  43. 5
      src/fs_base_statvfs.hpp
  44. 5
      src/fs_base_symlink.hpp
  45. 5
      src/fs_base_truncate.hpp
  46. 5
      src/fs_base_unlink.hpp
  47. 5
      src/fs_base_utime.hpp
  48. 5
      src/fs_base_utime_generic.hpp
  49. 5
      src/fs_base_utime_utimensat.hpp
  50. 5
      src/fs_base_write.hpp
  51. 5
      src/fs_clonefile.hpp
  52. 5
      src/fs_clonepath.hpp
  53. 1
      src/fs_devid.hpp
  54. 5
      src/fsync.hpp
  55. 5
      src/ftruncate.hpp
  56. 5
      src/getattr.hpp
  57. 5
      src/getxattr.hpp
  58. 5
      src/init.hpp
  59. 5
      src/ioctl.hpp
  60. 5
      src/link.hpp
  61. 5
      src/listxattr.hpp
  62. 5
      src/mkdir.hpp
  63. 6
      src/mknod.hpp
  64. 7
      src/num.hpp
  65. 5
      src/open.hpp
  66. 5
      src/opendir.hpp
  67. 5
      src/option_parser.hpp
  68. 5
      src/read.hpp
  69. 8
      src/readdir.hpp
  70. 5
      src/readlink.hpp
  71. 5
      src/release.hpp
  72. 5
      src/releasedir.hpp
  73. 5
      src/removexattr.hpp
  74. 5
      src/rename.hpp
  75. 5
      src/resources.hpp
  76. 5
      src/rmdir.hpp
  77. 5
      src/rwlock.hpp
  78. 5
      src/setxattr.hpp
  79. 5
      src/statfs.hpp
  80. 5
      src/statvfs_util.hpp
  81. 5
      src/str.hpp
  82. 5
      src/success_fail.hpp
  83. 5
      src/symlink.hpp
  84. 5
      src/truncate.hpp
  85. 2
      src/ugid.hpp
  86. 5
      src/ugid_linux.hpp
  87. 5
      src/ugid_rwlock.hpp
  88. 5
      src/unlink.hpp
  89. 5
      src/utimens.hpp
  90. 5
      src/write.hpp
  91. 5
      src/xattr.hpp

5
src/access.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __ACCESS_HPP__
#define __ACCESS_HPP__
namespace mergerfs
{
namespace fuse
@ -23,3 +26,5 @@ namespace mergerfs
int mask);
}
}
#endif

5
src/assert.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __ASSERT_HPP__
#define __ASSERT_HPP__
#define STATIC_ASSERT(cond) assert::StaticAssert< (cond) >()
#define STATIC_ARRAYLENGTH_ASSERT(array,size) STATIC_ASSERT(((sizeof(array)/sizeof(array[0]))==(size)))
@ -26,3 +29,5 @@ namespace assert
struct StaticAssert<true>
{};
}
#endif

5
src/buildmap.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __BUILDMAP_HPP__
#define __BUILDMAP_HPP__
#include <algorithm>
template<typename K,typename V>
@ -41,3 +44,5 @@ public:
private:
std::map<K,V> _map;
};
#endif

5
src/buildvector.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __BUILDVECTOR_HPP__
#define __BUILDVECTOR_HPP__
#include <algorithm>
template<typename V, bool SORT = false>
@ -41,3 +44,5 @@ public:
private:
std::vector<V> _vector;
};
#endif

5
src/chmod.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __CHMOD_HPP__
#define __CHMOD_HPP__
namespace mergerfs
{
namespace fuse
@ -23,3 +26,5 @@ namespace mergerfs
mode_t mode);
}
}
#endif

5
src/chown.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __CHOWN_HPP__
#define __CHOWN_HPP__
namespace mergerfs
{
namespace fuse
@ -24,3 +27,5 @@ namespace mergerfs
gid_t gid);
}
}
#endif

5
src/create.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __CREATE_HPP__
#define __CREATE_HPP__
#include <fuse.h>
#include <sys/types.h>
@ -28,3 +31,5 @@ namespace mergerfs
fuse_file_info *ffi);
}
}
#endif

5
src/destroy.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __DESTROY_HPP__
#define __DESTROY_HPP__
namespace mergerfs
{
namespace fuse
@ -22,3 +25,5 @@ namespace mergerfs
destroy(void *);
}
}
#endif

5
src/errno.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __ERRNO_HPP__
#define __ERRNO_HPP__
#include <errno.h>
#if defined(ENODATA) && !defined(ENOATTR)
@ -27,3 +30,5 @@
#if !defined(ENOATTR) && !defined(ENODATA)
#error "Neither ENOATTR or ENODATA defined: please contact mergerfs author with platform information"
#endif
#endif

5
src/fallocate.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FALLOCATE_HPP__
#define __FALLOCATE_HPP__
namespace mergerfs
{
namespace fuse
@ -26,3 +29,5 @@ namespace mergerfs
fuse_file_info *fi);
}
}
#endif

5
src/fgetattr.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FGETATTR_HPP__
#define __FGETATTR_HPP__
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
@ -28,3 +31,5 @@ namespace mergerfs
fuse_file_info *fileinfo);
}
}
#endif

5
src/flock.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FLOCK_HPP__
#define __FLOCK_HPP__
namespace mergerfs
{
namespace fuse
@ -24,3 +27,5 @@ namespace mergerfs
int op);
}
}
#endif

5
src/flush.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FLUSH_HPP__
#define __FLUSH_HPP__
namespace mergerfs
{
namespace fuse
@ -23,3 +26,5 @@ namespace mergerfs
fuse_file_info *fi);
}
}
#endif

4
src/fs.hpp

@ -17,11 +17,11 @@
#ifndef __FS_HPP__
#define __FS_HPP__
#include <stdint.h>
#include <string>
#include <vector>
#include <stdint.h>
namespace fs
{
using std::string;

5
src/fs_base_access.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_ACCESS_HPP__
#define __FS_BASE_ACCESS_HPP__
#include <string>
#include <fcntl.h>
@ -53,3 +56,5 @@ namespace fs
return fs::access(path,mode,AT_EACCESS);
}
}
#endif

5
src/fs_base_chmod.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_CHMOD_HPP__
#define __FS_BASE_CHMOD_HPP__
#include <sys/stat.h>
namespace fs
@ -47,3 +50,5 @@ namespace fs
return ::fchmod(fd,st.st_mode);
}
}
#endif

5
src/fs_base_chown.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_CHOWN_HPP__
#define __FS_BASE_CHOWN_HPP__
#include <string>
#include <sys/stat.h>
@ -72,3 +75,5 @@ namespace fs
return fs::fchown(fd,st.st_uid,st.st_gid);
}
}
#endif

5
src/fs_base_close.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_CLOSE_HPP__
#define __FS_BASE_CLOSE_HPP__
#include <unistd.h>
namespace fs
@ -28,3 +31,5 @@ namespace fs
return ::close(fd);
}
}
#endif

5
src/fs_base_closedir.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_CLOSEDIR_HPP__
#define __FS_BASE_CLOSEDIR_HPP__
#include <dirent.h>
#include <sys/types.h>
@ -29,3 +32,5 @@ namespace fs
return ::closedir(dirp);
}
}
#endif

5
src/fs_base_dup.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_DUP_HPP__
#define __FS_BASE_DUP_HPP__
#include <unistd.h>
namespace fs
@ -28,3 +31,5 @@ namespace fs
return ::dup(fd);
}
}
#endif

5
src/fs_base_flock.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_FLOCK_HPP__
#define __FS_BASE_FLOCK_HPP__
#include <sys/file.h>
namespace fs
@ -29,3 +32,5 @@ namespace fs
return ::flock(fd,operation);
}
}
#endif

8
src/fs_base_fsync.hpp

@ -16,9 +16,13 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <errno.h>
#ifndef __FS_BASE_FSYNC_HPP__
#define __FS_BASE_FSYNC_HPP__
#include <unistd.h>
#include "errno.hpp"
namespace fs
{
static
@ -41,3 +45,5 @@ namespace fs
#endif
}
}
#endif

5
src/fs_base_ftruncate.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_FTRUNCATE_HPP__
#define __FS_BASE_FTRUNCATE_HPP__
#include <sys/types.h>
#include <unistd.h>
@ -30,3 +33,5 @@ namespace fs
return ::ftruncate(fd,size);
}
}
#endif

5
src/fs_base_getxattr.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_GETXATTR_HPP__
#define __FS_BASE_GETXATTR_HPP__
#include <sys/types.h>
#include "errno.hpp"
@ -38,3 +41,5 @@ namespace fs
#endif
}
}
#endif

5
src/fs_base_ioctl.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_IOCTL_HPP__
#define __FS_BASE_IOCTL_HPP__
#include <sys/ioctl.h>
namespace fs
@ -30,3 +33,5 @@ namespace fs
return ::ioctl(fd,request,data);
}
}
#endif

5
src/fs_base_link.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_LINK_HPP__
#define __FS_BASE_LINK_HPP__
#include <string>
#include <unistd.h>
@ -31,3 +34,5 @@ namespace fs
return ::link(oldpath.c_str(),newpath.c_str());
}
}
#endif

5
src/fs_base_listxattr.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_LISTXATTR_HPP__
#define __FS_BASE_LISTXATTR_HPP__
#include <sys/types.h>
#include "errno.hpp"
@ -37,3 +40,5 @@ namespace fs
#endif
}
}
#endif

5
src/fs_base_lseek.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_LSEEK_HPP__
#define __FS_BASE_LSEEK_HPP__
#include <sys/types.h>
#include <unistd.h>
@ -31,3 +34,5 @@ namespace fs
return ::lseek(fd,offset,whence);
}
}
#endif

5
src/fs_base_mkdir.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_MKDIR_HPP__
#define __FS_BASE_MKDIR_HPP__
#include <string>
#include <sys/stat.h>
@ -32,3 +35,5 @@ namespace fs
return ::mkdir(path.c_str(),mode);
}
}
#endif

5
src/fs_base_mknod.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_MKNOD_HPP__
#define __FS_BASE_MKNOD_HPP__
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
@ -33,3 +36,5 @@ namespace fs
return ::mknod(path.c_str(),mode,dev);
}
}
#endif

5
src/fs_base_open.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_OPEN_HPP__
#define __FS_BASE_OPEN_HPP__
#include <string>
#include <fcntl.h>
@ -43,3 +46,5 @@ namespace fs
return ::open(path.c_str(),flags,mode);
}
}
#endif

5
src/fs_base_opendir.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_OPENDIR_HPP__
#define __FS_BASE_OPENDIR_HPP__
#include <string>
#include <dirent.h>
@ -31,3 +34,5 @@ namespace fs
return ::opendir(name.c_str());
}
}
#endif

5
src/fs_base_read.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_READ_HPP__
#define __FS_BASE_READ_HPP__
#include <unistd.h>
namespace fs
@ -41,3 +44,5 @@ namespace fs
return ::pread(fd,buf,count,offset);
}
}
#endif

5
src/fs_base_readdir.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_READDIR_HPP__
#define __FS_BASE_READDIR_HPP__
#include <dirent.h>
namespace fs
@ -28,3 +31,5 @@ namespace fs
return ::readdir(dirp);
}
}
#endif

5
src/fs_base_readlink.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_READLINK_HPP__
#define __FS_BASE_READLINK_HPP__
#include <string>
#include <unistd.h>
@ -32,3 +35,5 @@ namespace fs
return ::readlink(path.c_str(),buf,bufsiz);
}
}
#endif

5
src/fs_base_realpath.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_REALPATH_HPP__
#define __FS_BASE_REALPATH_HPP__
#include <string>
#include <limits.h>
@ -40,3 +43,5 @@ namespace fs
return fs::realpath(path,NULL);
}
}
#endif

5
src/fs_base_remove.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_REMOVE_HPP__
#define __FS_BASE_REMOVE_HPP__
#include <string>
#include <stdio.h>
@ -30,3 +33,5 @@ namespace fs
return ::remove(pathname.c_str());
}
}
#endif

5
src/fs_base_removexattr.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_REMOVEXATTR_HPP__
#define __FS_BASE_REMOVEXATTR_HPP__
#include <sys/types.h>
#include "errno.hpp"
@ -36,3 +39,5 @@ namespace fs
#endif
}
}
#endif

5
src/fs_base_rename.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_RENAME_HPP__
#define __FS_BASE_RENAME_HPP__
#include <stdio.h>
namespace fs
@ -29,3 +32,5 @@ namespace fs
return ::rename(oldpath.c_str(),newpath.c_str());
}
}
#endif

5
src/fs_base_rmdir.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_RMDIR_HPP__
#define __FS_BASE_RMDIR_HPP__
#include <string>
#include <unistd.h>
@ -30,3 +33,5 @@ namespace fs
return ::rmdir(path.c_str());
}
}
#endif

5
src/fs_base_setxattr.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_SETXATTR_HPP__
#define __FS_BASE_SETXATTR_HPP__
#include <sys/types.h>
#include "errno.hpp"
@ -39,3 +42,5 @@ namespace fs
#endif
}
}
#endif

5
src/fs_base_stat.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_STAT_HPP__
#define __FS_BASE_STAT_HPP__
#include <string>
#include <sys/stat.h>
@ -60,3 +63,5 @@ namespace fs
return ::fstat(fd,&st);
}
}
#endif

5
src/fs_base_statvfs.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_STATVFS_HPP__
#define __FS_BASE_STATVFS_HPP__
#include <string>
#include <sys/statvfs.h>
@ -40,3 +43,5 @@ namespace fs
return fs::statvfs(path.c_str(),st);
}
}
#endif

5
src/fs_base_symlink.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_SYMLINK_HPP__
#define __FS_BASE_SYMLINK_HPP__
#include <string>
#include <unistd.h>
@ -40,3 +43,5 @@ namespace fs
return ::symlink(oldpath,newpath.c_str());
}
}
#endif

5
src/fs_base_truncate.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_TRUNCATE_HPP__
#define __FS_BASE_TRUNCATE_HPP__
#include <string>
#include <sys/types.h>
@ -32,3 +35,5 @@ namespace fs
return ::truncate(path.c_str(),length);
}
}
#endif

5
src/fs_base_unlink.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_UNLINK_HPP__
#define __FS_BASE_UNLINK_HPP__
#include <string>
#include <unistd.h>
@ -30,3 +33,5 @@ namespace fs
return ::unlink(path.c_str());
}
}
#endif

5
src/fs_base_utime.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_UTIME_HPP__
#define __FS_BASE_UTIME_HPP__
#ifdef __linux__
# include "fs_base_utime_utimensat.hpp"
#elif __FreeBSD__ >= 11
@ -61,3 +64,5 @@ namespace fs
return fs::utime(AT_FDCWD,path,times,AT_SYMLINK_NOFOLLOW);
}
}
#endif

5
src/fs_base_utime_generic.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_UTIME_GENERIC_HPP__
#define __FS_BASE_UTIME_GENERIC_HPP__
#include <string>
#include <fcntl.h>
@ -296,3 +299,5 @@ namespace fs
return ::futimes(fd,tvp);
}
}
#endif

5
src/fs_base_utime_utimensat.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_UTIME_UTIMENSAT_HPP__
#define __FS_BASE_UTIME_UTIMENSAT_HPP__
#include <string>
#include <fcntl.h>
@ -43,3 +46,5 @@ namespace fs
return ::futimens(fd,times);
}
}
#endif

5
src/fs_base_write.hpp

@ -16,6 +16,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_BASE_WRITE_HPP__
#define __FS_BASE_WRITE_HPP__
#include <unistd.h>
namespace fs
@ -41,3 +44,5 @@ namespace fs
return ::pwrite(fd,buf,count,offset);
}
}
#endif

5
src/fs_clonefile.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_CLONEFILE_HPP__
#define __FS_CLONEFILE_HPP__
#include <string>
namespace fs
@ -23,3 +26,5 @@ namespace fs
int clonefile(const std::string &from,
const std::string &to);
}
#endif

5
src/fs_clonepath.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FS_CLONEPATH_HPP__
#define __FS_CLONEPATH_HPP__
#include <string>
namespace fs
@ -25,3 +28,5 @@ namespace fs
const std::string &to,
const std::string &relative);
}
#endif

1
src/fs_devid.hpp

@ -42,4 +42,3 @@ namespace fs
}
#endif

5
src/fsync.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FSYNC_HPP__
#define __FSYNC_HPP__
#include <fuse.h>
namespace mergerfs
@ -26,3 +29,5 @@ namespace mergerfs
fuse_file_info *fi);
}
}
#endif

5
src/ftruncate.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __FTRUNCATE_HPP__
#define __FTRUNCATE_HPP__
#include <fuse.h>
#include <sys/types.h>
@ -29,3 +32,5 @@ namespace mergerfs
fuse_file_info *fi);
}
}
#endif

5
src/getattr.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __GETATTR_HPP__
#define __GETATTR_HPP__
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
@ -27,3 +30,5 @@ namespace mergerfs
struct stat *buf);
}
}
#endif

5
src/getxattr.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __GETXATTR_HPP__
#define __GETXATTR_HPP__
namespace mergerfs
{
namespace fuse
@ -25,3 +28,5 @@ namespace mergerfs
size_t count);
}
}
#endif

5
src/init.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __INIT_HPP__
#define __INIT_HPP__
namespace mergerfs
{
namespace fuse
@ -22,3 +25,5 @@ namespace mergerfs
init(fuse_conn_info *conn);
}
}
#endif

5
src/ioctl.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __IOCTL_HPP__
#define __IOCTL_HPP__
namespace mergerfs
{
namespace fuse
@ -27,3 +30,5 @@ namespace mergerfs
void *data);
}
}
#endif

5
src/link.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __LINK_HPP__
#define __LINK_HPP__
namespace mergerfs
{
namespace fuse
@ -23,3 +26,5 @@ namespace mergerfs
const char *to);
}
}
#endif

5
src/listxattr.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __LISTXATTR_HPP__
#define __LISTXATTR_HPP__
namespace mergerfs
{
namespace fuse
@ -24,3 +27,5 @@ namespace mergerfs
size_t count);
}
}
#endif

5
src/mkdir.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __MKDIR_HPP__
#define __MKDIR_HPP__
namespace mergerfs
{
namespace fuse
@ -23,3 +26,5 @@ namespace mergerfs
mode_t mode);
}
}
#endif

6
src/mknod.hpp

@ -1,3 +1,4 @@
/*
Copyright (c) 2016, Antonio SJ Musumeci <trapexit@spawn.link>
@ -14,6 +15,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __MKNOD_HPP__
#define __MKNOD_HPP__
namespace mergerfs
{
namespace fuse
@ -24,3 +28,5 @@ namespace mergerfs
dev_t rdev);
}
}
#endif

7
src/num.hpp

@ -14,11 +14,16 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <stdint.h>
#ifndef __NUM_HPP__
#define __NUM_HPP__
#include <string>
#include <stdint.h>
namespace num
{
int to_uint64_t(const std::string &str, uint64_t &value);
}
#endif

5
src/open.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __OPEN_HPP__
#define __OPEN_HPP__
#include <fuse.h>
namespace mergerfs
@ -25,3 +28,5 @@ namespace mergerfs
fuse_file_info *ffi);
}
}
#endif

5
src/opendir.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __OPENDIR_HPP__
#define __OPENDIR_HPP__
#include <vector>
namespace mergerfs
@ -25,3 +28,5 @@ namespace mergerfs
fuse_file_info *ffi);
}
}
#endif

5
src/option_parser.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __OPTION_PARSER_HPP__
#define __OPTION_PARSER_HPP__
#include <fuse.h>
#include "config.hpp"
@ -27,3 +30,5 @@ namespace mergerfs
Config &config);
}
}
#endif

5
src/read.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __READ_HPP__
#define __READ_HPP__
namespace mergerfs
{
namespace fuse
@ -33,3 +36,5 @@ namespace mergerfs
fuse_file_info *fi);
}
}
#endif

8
src/readdir.hpp

@ -14,14 +14,14 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __MERGERFS_READDIR_HPP__
#define __MERGERFS_READDIR_HPP__
#include <fuse.h>
#ifndef __READDIR_HPP__
#define __READDIR_HPP__
#include <string>
#include <vector>
#include <fuse.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

5
src/readlink.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __READLINK_HPP__
#define __READLINK_HPP__
namespace mergerfs
{
namespace fuse
@ -24,3 +27,5 @@ namespace mergerfs
size_t size);
}
}
#endif

5
src/release.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __RELEASE_HPP__
#define __RELEASE_HPP__
namespace mergerfs
{
namespace fuse
@ -23,3 +26,5 @@ namespace mergerfs
fuse_file_info *fi);
}
}
#endif

5
src/releasedir.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __RELEASEDIR_HPP__
#define __RELEASEDIR_HPP__
#include <fuse.h>
namespace mergerfs
@ -25,3 +28,5 @@ namespace mergerfs
fuse_file_info *ffi);
}
}
#endif

5
src/removexattr.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __REMOVEXATTR_HPP__
#define __REMOVEXATTR_HPP__
namespace mergerfs
{
namespace fuse
@ -23,3 +26,5 @@ namespace mergerfs
const char *attrname);
}
}
#endif

5
src/rename.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __RENAME_HPP__
#define __RENAME_HPP__
namespace mergerfs
{
namespace fuse
@ -23,3 +26,5 @@ namespace mergerfs
const char *to);
}
}
#endif

5
src/resources.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __RESOURCES_HPP__
#define __RESOURCES_HPP__
namespace mergerfs
{
namespace resources
@ -25,3 +28,5 @@ namespace mergerfs
int setpriority(const int prio);
}
}
#endif

5
src/rmdir.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __RMDIR_HPP__
#define __RMDIR_HPP__
namespace mergerfs
{
namespace fuse
@ -22,3 +25,5 @@ namespace mergerfs
rmdir(const char *fusepath);
}
}
#endif

5
src/rwlock.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __RWLOCK_HPP__
#define __RWLOCK_HPP__
#include <pthread.h>
namespace mergerfs
@ -63,3 +66,5 @@ namespace mergerfs
};
}
}
#endif

5
src/setxattr.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __SETXATTR_HPP__
#define __SETXATTR_HPP__
namespace mergerfs
{
namespace fuse
@ -26,3 +29,5 @@ namespace mergerfs
int flags);
}
}
#endif

5
src/statfs.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __STATFS_HPP__
#define __STATFS_HPP__
namespace mergerfs
{
namespace fuse
@ -23,3 +26,5 @@ namespace mergerfs
struct statvfs *fsstat);
}
}
#endif

5
src/statvfs_util.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __STATVFS_UTIL_HPP__
#define __STATVFS_UTIL_HPP__
#include <string>
#include <sys/statvfs.h>
@ -46,3 +49,5 @@ namespace StatVFS
return (st.f_frsize * (st.f_blocks - st.f_bavail));
}
}
#endif

5
src/str.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __STR_HPP__
#define __STR_HPP__
#include <string>
#include <vector>
@ -55,3 +58,5 @@ namespace str
isprefix(const std::string &s0,
const std::string &s1);
}
#endif

5
src/success_fail.hpp

@ -14,7 +14,8 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __MERGERFS_SUCCESS_FAIL_HPP__
#ifndef __SUCCESS_FAIL_HPP__
#define __SUCCESS_FAIL_HPP__
#define STATVFS_SUCCESS 0
#define STATVFS_SUCCEEDED(RV) ((RV) == STATVFS_SUCCESS)
@ -42,4 +43,4 @@
#define RENAME_FAILED(RV) ((RV) == RENAME_FAIL)
#define RENAME_FAILED_WITH(RV,ERRNO) (((RV) == RENAME_FAIL) && (errno == ERRNO))
#endif /*__MERGERFS_SUCCESS_FAIL_HPP__ */
#endif

5
src/symlink.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __SYMLINK_HPP__
#define __SYMLINK_HPP__
namespace mergerfs
{
namespace fuse
@ -23,3 +26,5 @@ namespace mergerfs
const char *newpath);
}
}
#endif

5
src/truncate.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __TRUNCATE_HPP__
#define __TRUNCATE_HPP__
#include <sys/types.h>
namespace mergerfs
@ -25,3 +28,5 @@ namespace mergerfs
off_t size);
}
}
#endif

2
src/ugid.hpp

@ -37,4 +37,4 @@ namespace mergerfs
#include "ugid_rwlock.hpp"
#endif
#endif /* __UGID_HPP__ */
#endif

5
src/ugid_linux.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __UGID_LINUX_HPP__
#define __UGID_LINUX_HPP__
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
@ -87,3 +90,5 @@ namespace mergerfs
};
}
}
#endif

5
src/ugid_rwlock.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __UGID_RWLOCK_HPP__
#define __UGID_RWLOCK_HPP__
#include <pthread.h>
#include <sys/stat.h>
#include <sys/types.h>
@ -97,3 +100,5 @@ namespace mergerfs
};
}
}
#endif

5
src/unlink.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __UNLINK_HPP__
#define __UNLINK_HPP__
namespace mergerfs
{
namespace fuse
@ -22,3 +25,5 @@ namespace mergerfs
unlink(const char *fusepath);
}
}
#endif

5
src/utimens.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __UTIMENS_HPP__
#define __UTIMENS_HPP__
namespace mergerfs
{
namespace fuse
@ -23,3 +26,5 @@ namespace mergerfs
const timespec ts[2]);
}
}
#endif

5
src/write.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __WRITE_HPP__
#define __WRITE_HPP__
namespace mergerfs
{
namespace fuse
@ -33,3 +36,5 @@ namespace mergerfs
fuse_file_info *fi);
}
}
#endif

5
src/xattr.hpp

@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef __XATTR_HPP__
#define __XATTR_HPP__
#ifndef WITHOUT_XATTR
#include <attr/xattr.h>
#endif
@ -25,3 +28,5 @@
#ifndef XATTR_REPLACE
# define XATTR_REPLACE 0x2
#endif
#endif
Loading…
Cancel
Save