Browse Source

use pragma once in headers

pull/422/head
Antonio SJ Musumeci 8 years ago
parent
commit
a7b126cb48
  1. 4
      Makefile
  2. 5
      src/access.hpp
  3. 5
      src/assert.hpp
  4. 5
      src/buildmap.hpp
  5. 5
      src/buildvector.hpp
  6. 5
      src/category.hpp
  7. 5
      src/chmod.hpp
  8. 5
      src/chown.hpp
  9. 5
      src/config.hpp
  10. 5
      src/create.hpp
  11. 5
      src/destroy.hpp
  12. 5
      src/dirinfo.hpp
  13. 5
      src/errno.hpp
  14. 5
      src/fallocate.hpp
  15. 5
      src/fgetattr.hpp
  16. 5
      src/fileinfo.hpp
  17. 5
      src/flock.hpp
  18. 5
      src/flush.hpp
  19. 5
      src/fs.hpp
  20. 2
      src/fs_acl.hpp
  21. 5
      src/fs_attr.hpp
  22. 5
      src/fs_base_access.hpp
  23. 5
      src/fs_base_chmod.hpp
  24. 5
      src/fs_base_chown.hpp
  25. 5
      src/fs_base_close.hpp
  26. 5
      src/fs_base_closedir.hpp
  27. 5
      src/fs_base_dirfd.hpp
  28. 5
      src/fs_base_dup.hpp
  29. 5
      src/fs_base_fadvise.hpp
  30. 5
      src/fs_base_fallocate.hpp
  31. 5
      src/fs_base_flock.hpp
  32. 9
      src/fs_base_fsync.hpp
  33. 5
      src/fs_base_ftruncate.hpp
  34. 5
      src/fs_base_futimesat.hpp
  35. 5
      src/fs_base_getxattr.hpp
  36. 5
      src/fs_base_ioctl.hpp
  37. 5
      src/fs_base_link.hpp
  38. 5
      src/fs_base_listxattr.hpp
  39. 5
      src/fs_base_lseek.hpp
  40. 5
      src/fs_base_mkdir.hpp
  41. 5
      src/fs_base_mknod.hpp
  42. 5
      src/fs_base_mkstemp.hpp
  43. 5
      src/fs_base_open.hpp
  44. 5
      src/fs_base_opendir.hpp
  45. 5
      src/fs_base_read.hpp
  46. 5
      src/fs_base_readdir.hpp
  47. 5
      src/fs_base_readlink.hpp
  48. 5
      src/fs_base_realpath.hpp
  49. 5
      src/fs_base_remove.hpp
  50. 5
      src/fs_base_removexattr.hpp
  51. 5
      src/fs_base_rename.hpp
  52. 5
      src/fs_base_rmdir.hpp
  53. 5
      src/fs_base_setxattr.hpp
  54. 5
      src/fs_base_stat.hpp
  55. 5
      src/fs_base_statvfs.hpp
  56. 5
      src/fs_base_symlink.hpp
  57. 5
      src/fs_base_truncate.hpp
  58. 5
      src/fs_base_unlink.hpp
  59. 5
      src/fs_base_utime.hpp
  60. 5
      src/fs_base_utime_generic.hpp
  61. 5
      src/fs_base_utime_utimensat.hpp
  62. 5
      src/fs_base_write.hpp
  63. 5
      src/fs_clonefile.hpp
  64. 5
      src/fs_clonepath.hpp
  65. 5
      src/fs_devid.hpp
  66. 7
      src/fs_inode.hpp
  67. 5
      src/fs_movefile.hpp
  68. 5
      src/fs_path.hpp
  69. 5
      src/fs_sendfile.hpp
  70. 5
      src/fs_xattr.hpp
  71. 5
      src/fsync.hpp
  72. 5
      src/fsyncdir.hpp
  73. 5
      src/ftruncate.hpp
  74. 5
      src/fusefunc.hpp
  75. 5
      src/getattr.hpp
  76. 5
      src/getxattr.hpp
  77. 5
      src/gidcache.hpp
  78. 5
      src/init.hpp
  79. 7
      src/ioctl.hpp
  80. 5
      src/link.hpp
  81. 5
      src/listxattr.hpp
  82. 5
      src/mergerfs.hpp
  83. 5
      src/mkdir.hpp
  84. 5
      src/mknod.hpp
  85. 9
      src/num.hpp
  86. 5
      src/open.hpp
  87. 7
      src/opendir.hpp
  88. 5
      src/option_parser.hpp
  89. 5
      src/policy.hpp
  90. 5
      src/read.hpp
  91. 5
      src/read_buf.hpp
  92. 5
      src/readdir.hpp
  93. 5
      src/readlink.hpp
  94. 5
      src/release.hpp
  95. 5
      src/releasedir.hpp
  96. 5
      src/removexattr.hpp
  97. 5
      src/rename.hpp
  98. 5
      src/resources.hpp
  99. 5
      src/rmdir.hpp
  100. 5
      src/rv.hpp

4
Makefile

@ -92,10 +92,8 @@ authors:
src/version.hpp: src/version.hpp:
$(eval VERSION := $(shell $(GIT) describe --always --tags --dirty)) $(eval VERSION := $(shell $(GIT) describe --always --tags --dirty))
@echo "#ifndef _VERSION_HPP" > src/version.hpp
@echo "#define _VERSION_HPP" >> src/version.hpp
@echo "#pragma once" > src/version.hpp
@echo "static const char MERGERFS_VERSION[] = \"$(VERSION)\";" >> src/version.hpp @echo "static const char MERGERFS_VERSION[] = \"$(VERSION)\";" >> src/version.hpp
@echo "#endif" >> src/version.hpp
obj/obj-stamp: obj/obj-stamp:
$(MKDIR) -p obj $(MKDIR) -p obj

5
src/access.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __ACCESS_HPP__
#define __ACCESS_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -26,5 +25,3 @@ namespace mergerfs
int mask); int mask);
} }
} }
#endif

5
src/assert.hpp

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

5
src/buildmap.hpp

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

5
src/buildvector.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __BUILDVECTOR_HPP__
#define __BUILDVECTOR_HPP__
#pragma once
#include <algorithm> #include <algorithm>
@ -44,5 +43,3 @@ public:
private: private:
std::vector<V> _vector; std::vector<V> _vector;
}; };
#endif

5
src/category.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __CATEGORY_HPP__
#define __CATEGORY_HPP__
#pragma once
#include <string> #include <string>
#include <vector> #include <vector>
@ -86,5 +85,3 @@ namespace mergerfs
static const Category &search; static const Category &search;
}; };
} }
#endif

5
src/chmod.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __CHMOD_HPP__
#define __CHMOD_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -26,5 +25,3 @@ namespace mergerfs
mode_t mode); mode_t mode);
} }
} }
#endif

5
src/chown.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __CHOWN_HPP__
#define __CHOWN_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -27,5 +26,3 @@ namespace mergerfs
gid_t gid); gid_t gid);
} }
} }
#endif

5
src/config.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __CONFIG_HPP__
#define __CONFIG_HPP__
#pragma once
#include <fuse.h> #include <fuse.h>
@ -106,5 +105,3 @@ namespace mergerfs
} }
}; };
} }
#endif

5
src/create.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __CREATE_HPP__
#define __CREATE_HPP__
#pragma once
#include <fuse.h> #include <fuse.h>
@ -31,5 +30,3 @@ namespace mergerfs
fuse_file_info *ffi); fuse_file_info *ffi);
} }
} }
#endif

5
src/destroy.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __DESTROY_HPP__
#define __DESTROY_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -25,5 +24,3 @@ namespace mergerfs
destroy(void *); destroy(void *);
} }
} }
#endif

5
src/dirinfo.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __DIRINFO_HPP__
#define __DIRINFO_HPP__
#pragma once
#include <string> #include <string>
@ -30,5 +29,3 @@ public:
public: public:
std::string fusepath; std::string fusepath;
}; };
#endif

5
src/errno.hpp

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

5
src/fallocate.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FALLOCATE_HPP__
#define __FALLOCATE_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -29,5 +28,3 @@ namespace mergerfs
fuse_file_info *fi); fuse_file_info *fi);
} }
} }
#endif

5
src/fgetattr.hpp

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

5
src/fileinfo.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FILEINFO_HPP__
#define __FILEINFO_HPP__
#pragma once
#include <string> #include <string>
@ -33,5 +32,3 @@ public:
int fd; int fd;
std::string fusepath; std::string fusepath;
}; };
#endif

5
src/flock.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FLOCK_HPP__
#define __FLOCK_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -27,5 +26,3 @@ namespace mergerfs
int op); int op);
} }
} }
#endif

5
src/flush.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FLUSH_HPP__
#define __FLUSH_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -26,5 +25,3 @@ namespace mergerfs
fuse_file_info *fi); fuse_file_info *fi);
} }
} }
#endif

5
src/fs.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_HPP__
#define __FS_HPP__
#pragma once
#include <string> #include <string>
#include <vector> #include <vector>
@ -67,5 +66,3 @@ namespace fs
const uint64_t minfreespace, const uint64_t minfreespace,
string &path); string &path);
}; };
#endif // __FS_HPP__

2
src/fs_acl.hpp

@ -16,6 +16,8 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#pragma once
#include <string> #include <string>
namespace fs namespace fs

5
src/fs_attr.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_ATTR_HPP__
#define __FS_ATTR_HPP__
#pragma once
#include <string> #include <string>
@ -31,5 +30,3 @@ namespace fs
const string &to); const string &to);
} }
} }
#endif // __FS_ATTR_HPP__

5
src/fs_base_access.hpp

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

5
src/fs_base_chmod.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_CHMOD_HPP__
#define __FS_BASE_CHMOD_HPP__
#pragma once
#include <sys/stat.h> #include <sys/stat.h>
@ -106,5 +105,3 @@ namespace fs
return 0; return 0;
} }
} }
#endif

5
src/fs_base_chown.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_CHOWN_HPP__
#define __FS_BASE_CHOWN_HPP__
#pragma once
#include <string> #include <string>
@ -140,5 +139,3 @@ namespace fs
return 0; return 0;
} }
} }
#endif

5
src/fs_base_close.hpp

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

5
src/fs_base_closedir.hpp

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

5
src/fs_base_dirfd.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_DIRFD_HPP__
#define __FS_DIRFD_HPP__
#pragma once
#include <dirent.h> #include <dirent.h>
#include <sys/types.h> #include <sys/types.h>
@ -32,5 +31,3 @@ namespace fs
return ::dirfd(dirp); return ::dirfd(dirp);
} }
} }
#endif

5
src/fs_base_dup.hpp

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

5
src/fs_base_fadvise.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_FADVISE_HPP__
#define __FS_BASE_FADVISE_HPP__
#pragma once
namespace fs namespace fs
{ {
@ -34,5 +33,3 @@ namespace fs
const off_t offset = 0, const off_t offset = 0,
const off_t len = 0); const off_t len = 0);
} }
#endif // __FS_FADVISE_HPP__

5
src/fs_base_fallocate.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_FALLOCATE_HPP__
#define __FS_BASE_FALLOCATE_HPP__
#pragma once
#include <fcntl.h> #include <fcntl.h>
@ -27,5 +26,3 @@ namespace fs
const off_t offset, const off_t offset,
const off_t len); const off_t len);
} }
#endif

5
src/fs_base_flock.hpp

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

9
src/fs_base_fsync.hpp

@ -16,17 +16,16 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_FSYNC_HPP__
#define __FS_BASE_FSYNC_HPP__
#pragma once
#ifndef _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE #define _GNU_SOURCE
#endif #endif
#include <unistd.h>
#include "errno.hpp" #include "errno.hpp"
#include <unistd.h>
namespace fs namespace fs
{ {
static static
@ -49,5 +48,3 @@ namespace fs
#endif #endif
} }
} }
#endif

5
src/fs_base_ftruncate.hpp

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

5
src/fs_base_futimesat.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_FUTIMESAT_HPP__
#define __FS_BASE_FUTIMESAT_HPP__
#pragma once
namespace fs namespace fs
{ {
@ -26,5 +25,3 @@ namespace fs
const char *pathname, const char *pathname,
const struct timeval times[2]); const struct timeval times[2]);
} }
#endif

5
src/fs_base_getxattr.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_GETXATTR_HPP__
#define __FS_BASE_GETXATTR_HPP__
#pragma once
#include <sys/types.h> #include <sys/types.h>
@ -41,5 +40,3 @@ namespace fs
#endif #endif
} }
} }
#endif

5
src/fs_base_ioctl.hpp

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

5
src/fs_base_link.hpp

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

5
src/fs_base_listxattr.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_LISTXATTR_HPP__
#define __FS_BASE_LISTXATTR_HPP__
#pragma once
#include <sys/types.h> #include <sys/types.h>
@ -40,5 +39,3 @@ namespace fs
#endif #endif
} }
} }
#endif

5
src/fs_base_lseek.hpp

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

5
src/fs_base_mkdir.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_MKDIR_HPP__
#define __FS_BASE_MKDIR_HPP__
#pragma once
#include <string> #include <string>
@ -35,5 +34,3 @@ namespace fs
return ::mkdir(path.c_str(),mode); return ::mkdir(path.c_str(),mode);
} }
} }
#endif

5
src/fs_base_mknod.hpp

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

5
src/fs_base_mkstemp.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_MKSTEMP_HPP__
#define __FS_BASE_MKSTEMP_HPP__
#pragma once
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -46,5 +45,3 @@ namespace fs
return fd; return fd;
} }
} }
#endif

5
src/fs_base_open.hpp

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

5
src/fs_base_opendir.hpp

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

5
src/fs_base_read.hpp

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

5
src/fs_base_readdir.hpp

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

5
src/fs_base_readlink.hpp

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

5
src/fs_base_realpath.hpp

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

5
src/fs_base_remove.hpp

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

5
src/fs_base_removexattr.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_REMOVEXATTR_HPP__
#define __FS_BASE_REMOVEXATTR_HPP__
#pragma once
#include <sys/types.h> #include <sys/types.h>
@ -39,5 +38,3 @@ namespace fs
#endif #endif
} }
} }
#endif

5
src/fs_base_rename.hpp

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

5
src/fs_base_rmdir.hpp

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

5
src/fs_base_setxattr.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_SETXATTR_HPP__
#define __FS_BASE_SETXATTR_HPP__
#pragma once
#include <sys/types.h> #include <sys/types.h>
@ -42,5 +41,3 @@ namespace fs
#endif #endif
} }
} }
#endif

5
src/fs_base_stat.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_STAT_HPP__
#define __FS_BASE_STAT_HPP__
#pragma once
#include <string> #include <string>
@ -113,5 +112,3 @@ namespace fs
#endif #endif
} }
} }
#endif

5
src/fs_base_statvfs.hpp

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

5
src/fs_base_symlink.hpp

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

5
src/fs_base_truncate.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_TRUNCATE_HPP__
#define __FS_BASE_TRUNCATE_HPP__
#pragma once
#include <string> #include <string>
@ -35,5 +34,3 @@ namespace fs
return ::truncate(path.c_str(),length); return ::truncate(path.c_str(),length);
} }
} }
#endif

5
src/fs_base_unlink.hpp

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

5
src/fs_base_utime.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_UTIME_HPP__
#define __FS_BASE_UTIME_HPP__
#pragma once
#ifdef __linux__ #ifdef __linux__
# include "fs_base_utime_utimensat.hpp" # include "fs_base_utime_utimensat.hpp"
@ -66,5 +65,3 @@ namespace fs
return fs::utime(AT_FDCWD,path,times,AT_SYMLINK_NOFOLLOW); return fs::utime(AT_FDCWD,path,times,AT_SYMLINK_NOFOLLOW);
} }
} }
#endif

5
src/fs_base_utime_generic.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_BASE_UTIME_GENERIC_HPP__
#define __FS_BASE_UTIME_GENERIC_HPP__
#pragma once
#include <string> #include <string>
@ -312,5 +311,3 @@ namespace fs
return ::futimes(fd,tvp); return ::futimes(fd,tvp);
} }
} }
#endif

5
src/fs_base_utime_utimensat.hpp

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

5
src/fs_base_write.hpp

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

5
src/fs_clonefile.hpp

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

5
src/fs_clonepath.hpp

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

5
src/fs_devid.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_DEVID_HPP__
#define __FS_DEVID_HPP__
#pragma once
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
@ -40,5 +39,3 @@ namespace fs
return st.st_dev; return st.st_dev;
} }
} }
#endif

7
src/fs_inode.hpp

@ -16,8 +16,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_INODE_HPP__
#define __FS_INODE_HPP__
#pragma once
#include <stdint.h> #include <stdint.h>
#include <sys/stat.h> #include <sys/stat.h>
@ -35,7 +34,7 @@ namespace fs
void void
recompute(struct stat &st) recompute(struct stat &st)
{ {
// not ideal to do this at runtime but usually gets optimized out
// not ideal to do this at runtime but likely gets optimized out
if(sizeof(st.st_ino) == 4) if(sizeof(st.st_ino) == 4)
st.st_ino |= ((uint32_t)st.st_dev << 16); st.st_ino |= ((uint32_t)st.st_dev << 16);
else else
@ -43,5 +42,3 @@ namespace fs
} }
} }
} }
#endif

5
src/fs_movefile.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_MOVEFILE_HPP__
#define __FS_MOVEFILE_HPP__
#pragma once
#include <string> #include <string>
#include <vector> #include <vector>
@ -28,5 +27,3 @@ namespace fs
const size_t additional_size, const size_t additional_size,
int &origfd); int &origfd);
} }
#endif

5
src/fs_path.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_PATH_HPP__
#define __FS_PATH_HPP__
#pragma once
#include <string> #include <string>
#include <vector> #include <vector>
@ -67,5 +66,3 @@ namespace fs
} }
} }
}; };
#endif // __FS_PATH_HPP__

5
src/fs_sendfile.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_SENDFILE_HPP__
#define __FS_SENDFILE_HPP__
#pragma once
namespace fs namespace fs
{ {
@ -24,5 +23,3 @@ namespace fs
const int fdout, const int fdout,
const size_t count); const size_t count);
} }
#endif // __FS_SENDFILE_HPP__

5
src/fs_xattr.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FS_XATTR_HPP__
#define __FS_XATTR_HPP__
#pragma once
#include <string> #include <string>
#include <vector> #include <vector>
@ -65,5 +64,3 @@ namespace fs
const string &to); const string &to);
} }
} }
#endif // __FS_HPP__

5
src/fsync.hpp

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

5
src/fsyncdir.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FSYNCDIR_HPP__
#define __FSYNCDIR_HPP__
#pragma once
#include <fuse.h> #include <fuse.h>
@ -29,5 +28,3 @@ namespace mergerfs
fuse_file_info *ffi); fuse_file_info *ffi);
} }
} }
#endif

5
src/ftruncate.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FTRUNCATE_HPP__
#define __FTRUNCATE_HPP__
#pragma once
#include <fuse.h> #include <fuse.h>
@ -32,5 +31,3 @@ namespace mergerfs
fuse_file_info *fi); fuse_file_info *fi);
} }
} }
#endif

5
src/fusefunc.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __FUSEFUNC_HPP__
#define __FUSEFUNC_HPP__
#pragma once
#include <string> #include <string>
#include <vector> #include <vector>
@ -127,5 +126,3 @@ namespace mergerfs
static const FuseFunc &utimens; static const FuseFunc &utimens;
}; };
} }
#endif

5
src/getattr.hpp

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

5
src/getxattr.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __GETXATTR_HPP__
#define __GETXATTR_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -28,5 +27,3 @@ namespace mergerfs
size_t count); size_t count);
} }
} }
#endif

5
src/gidcache.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __GIDCACHE_HPP__
#define __GIDCACHE_HPP__
#pragma once
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
@ -54,5 +53,3 @@ public:
initgroups(const uid_t uid, initgroups(const uid_t uid,
const gid_t gid); const gid_t gid);
}; };
#endif

5
src/init.hpp

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

7
src/ioctl.hpp

@ -14,8 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __IOCTL_HPP__
#define __IOCTL_HPP__
#pragma once
#include <fuse.h>
namespace mergerfs namespace mergerfs
{ {
@ -30,5 +31,3 @@ namespace mergerfs
void *data); void *data);
} }
} }
#endif

5
src/link.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __LINK_HPP__
#define __LINK_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -26,5 +25,3 @@ namespace mergerfs
const char *to); const char *to);
} }
} }
#endif

5
src/listxattr.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __LISTXATTR_HPP__
#define __LISTXATTR_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -27,5 +26,3 @@ namespace mergerfs
size_t count); size_t count);
} }
} }
#endif

5
src/mergerfs.hpp

@ -14,7 +14,4 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __MERGER_HPP__
#define __MERGER_HPP__
#endif
#pragma once

5
src/mkdir.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __MKDIR_HPP__
#define __MKDIR_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -26,5 +25,3 @@ namespace mergerfs
mode_t mode); mode_t mode);
} }
} }
#endif

5
src/mknod.hpp

@ -15,8 +15,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __MKNOD_HPP__
#define __MKNOD_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -28,5 +27,3 @@ namespace mergerfs
dev_t rdev); dev_t rdev);
} }
} }
#endif

9
src/num.hpp

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

5
src/open.hpp

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

7
src/opendir.hpp

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

5
src/option_parser.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __OPTION_PARSER_HPP__
#define __OPTION_PARSER_HPP__
#pragma once
#include <fuse.h> #include <fuse.h>
@ -30,5 +29,3 @@ namespace mergerfs
Config &config); Config &config);
} }
} }
#endif

5
src/policy.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __POLICY_HPP__
#define __POLICY_HPP__
#pragma once
#include <string> #include <string>
#include <vector> #include <vector>
@ -190,5 +189,3 @@ namespace mergerfs
static const Policy &rand; static const Policy &rand;
}; };
} }
#endif

5
src/read.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __READ_HPP__
#define __READ_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -43,5 +42,3 @@ namespace mergerfs
fuse_file_info *fi); fuse_file_info *fi);
} }
} }
#endif

5
src/read_buf.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __READ_BUF_HPP__
#define __READ_BUF_HPP__
#pragma once
#include <fuse.h> #include <fuse.h>
@ -33,5 +32,3 @@ namespace mergerfs
fuse_file_info *fi); fuse_file_info *fi);
} }
} }
#endif

5
src/readdir.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __READDIR_HPP__
#define __READDIR_HPP__
#pragma once
#include <string> #include <string>
#include <vector> #include <vector>
@ -38,5 +37,3 @@ namespace mergerfs
fuse_file_info *fi); fuse_file_info *fi);
} }
} }
#endif

5
src/readlink.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __READLINK_HPP__
#define __READLINK_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -27,5 +26,3 @@ namespace mergerfs
size_t size); size_t size);
} }
} }
#endif

5
src/release.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __RELEASE_HPP__
#define __RELEASE_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -26,5 +25,3 @@ namespace mergerfs
fuse_file_info *fi); fuse_file_info *fi);
} }
} }
#endif

5
src/releasedir.hpp

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

5
src/removexattr.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __REMOVEXATTR_HPP__
#define __REMOVEXATTR_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -26,5 +25,3 @@ namespace mergerfs
const char *attrname); const char *attrname);
} }
} }
#endif

5
src/rename.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __RENAME_HPP__
#define __RENAME_HPP__
#pragma once
namespace mergerfs namespace mergerfs
{ {
@ -26,5 +25,3 @@ namespace mergerfs
const char *to); const char *to);
} }
} }
#endif

5
src/resources.hpp

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

5
src/rmdir.hpp

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

5
src/rv.hpp

@ -14,8 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifndef __RV_HPP__
#define __RV_HPP__
#pragma once
namespace error namespace error
{ {
@ -36,5 +35,3 @@ namespace error
return 0; return 0;
} }
} }
#endif // __RV_HPP__

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save