diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2016-02-13 22:14:04 -0500 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2016-02-13 22:14:04 -0500 |
commit | fbcdf864613bfeb84edfa945304c065f6a29b44e (patch) | |
tree | 456f93eced1509f2517c767b536d5aa0d6aa2930 /src/utility.h | |
parent | f4bd49c5bea13e574bb955864641d2b5adc99843 (diff) |
Save root file descriptor when starting up
Allow access to underlying file system by saving a file descriptor to
the underlying directory when starting. Close the FD during FUSE’s
destroy routine, though it won’t matter much.
Diffstat (limited to 'src/utility.h')
-rw-r--r-- | src/utility.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/utility.h b/src/utility.h new file mode 100644 index 0000000..53e3840 --- /dev/null +++ b/src/utility.h @@ -0,0 +1,26 @@ +// Copyright 2016 Benjamin Barenblat +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy +// of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +#ifndef UTILITY_H_ +#define UTILITY_H_ + +#include <string> + +namespace scoville { + +std::string ErrnoText(); + +} // namespace scoville + +#endif // UTILITY_H_ |