Apache Mesos
xattr.hpp
Go to the documentation of this file.
1 // Licensed under the Apache License, Version 2.0 (the "License");
2 // you may not use this file except in compliance with the License.
3 // You may obtain a copy of the License at
4 //
5 // http://www.apache.org/licenses/LICENSE-2.0
6 //
7 // Unless required by applicable law or agreed to in writing, software
8 // distributed under the License is distributed on an "AS IS" BASIS,
9 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 // See the License for the specific language governing permissions and
11 // limitations under the License.
12 
13 #ifndef __STOUT_OS_WINDOWS_XATTR_HPP__
14 #define __STOUT_OS_WINDOWS_XATTR_HPP__
15 
16 namespace os {
17 
18 // NOTE: These functions are deleted because Windows does
19 // not support POSIX extended attribute semantics.
20 inline Try<Nothing> setxattr(
21  const std::string& path,
22  const std::string& name,
23  const std::string& value,
24  int flags) = delete;
25 
26 
28  const std::string& path,
29  const std::string& name) = delete;
30 
31 
33  const std::string& path,
34  const std::string& name) = delete;
35 
36 } // namespace os {
37 
38 #endif /* __STOUT_OS_WINDOWS_XATTR_HPP__ */
Definition: path.hpp:29
Try< Nothing > removexattr(const std::string &path, const std::string &name)
Definition: xattr.hpp:113
Try< Nothing > setxattr(const std::string &path, const std::string &name, const std::string &value, int flags)
Definition: xattr.hpp:31
Definition: check.hpp:33
Definition: posix_signalhandler.hpp:23
Try< std::string > getxattr(const std::string &path, const std::string &name)
Definition: xattr.hpp:67
Definition: parse.hpp:33
constexpr const char * name
Definition: shell.hpp:41