master
h 24 lines 422 Bytes
Raw
1 // Copyright (C) Microsoft Corporation. All rights reserved.
2 #pragma once
3
4 #include "p9defs.h"
5 #include "expected.h"
6 #include "result_macros.h"
7
8 namespace p9fs {
9
10 using util::BasicExpected;
11 using util::Unexpected;
12
13 using LxError = Unexpected<LX_INT>;
14
15 template <typename T>
16 using Expected = BasicExpected<T, LX_INT>;
17
18 namespace util {
19
20 LX_INT LinuxErrorFromCaughtException();
21
22 } // namespace util
23
24 } // namespace p9fs