Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
filesystem.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License version 2.1 as published by the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16  */
17 
24 #ifndef LXCPP_FILESYSTEM_HPP
25 #define LXCPP_FILESYSTEM_HPP
26 
27 #include <string>
28 
29 namespace lxcpp {
30 
31 void mount(const std::string& source,
32  const std::string& target,
33  const std::string& filesystemtype,
34  unsigned long mountflags,
35  const std::string& data);
36 
37 void umount(const std::string& path, const int flags);
38 
39 bool isMountPoint(const std::string& path);
40 
48 bool isMountPointShared(const std::string& path);
49 
50 void fchdir(int fd);
51 
52 void chdir(const std::string& path);
53 
54 } // namespace lxcpp
55 
56 #endif // LXCPP_FILESYSTEM_HPP
void umount(const std::string &path, const int flags)
Definition: filesystem.cpp:64
void fchdir(int fd)
Definition: filesystem.cpp:123
void mount(const std::string &source, const std::string &target, const std::string &filesystemtype, unsigned long mountflags, const std::string &data)
Definition: filesystem.cpp:42
char data[368]
Definition: initctl.cpp:41
bool isMountPointShared(const std::string &path)
Detect whether path is mounted as MS_SHARED.
Definition: filesystem.cpp:93
bool isMountPoint(const std::string &path)
Definition: filesystem.cpp:73
void chdir(const std::string &path)
Definition: filesystem.cpp:132