We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 436f9c3 commit d782470Copy full SHA for d782470
include/pfs/types.hpp
@@ -28,9 +28,9 @@
28
29
namespace pfs {
30
31
-static const uid_t INVALID_UID = (uid_t)-1;
32
-static const pid_t INVALID_PID = (pid_t)-1;
33
-static const ino_t INVALID_INODE = (ino_t)0;
+extern const uid_t INVALID_UID;
+extern const pid_t INVALID_PID;
+extern const ino_t INVALID_INODE;
34
35
// Note: We only support values that exist post 2.6.32.
36
enum class task_state
src/types.cpp
@@ -21,6 +21,10 @@
21
22
23
24
+const uid_t INVALID_UID = (uid_t)-1;
25
+const pid_t INVALID_PID = (pid_t)-1;
26
+const ino_t INVALID_INODE = (ino_t)0;
27
+
// =============================================================
// Capabilities mask
0 commit comments