summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2013-05-20 18:11:26 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2013-05-20 18:11:26 +0200
commiteae9997d3c2dbaef53022ddabe61c1800a619499 (patch)
treef6d3cd74a5d27a0cb027341da9081a3e58688c89
parent3e51eabb1cb8ca35fa350c68fc4fddedc85daa84 (diff)
downloadTCE-eae9997d3c2dbaef53022ddabe61c1800a619499.tar.gz
TCE-eae9997d3c2dbaef53022ddabe61c1800a619499.zip
Stupidity corrected.
-rw-r--r--src/include/tce/vfs.h10
-rw-r--r--src/kernel/vfs/node.h6
2 files changed, 8 insertions, 8 deletions
diff --git a/src/include/tce/vfs.h b/src/include/tce/vfs.h
index 4425a18..8af3514 100644
--- a/src/include/tce/vfs.h
+++ b/src/include/tce/vfs.h
@@ -27,11 +27,11 @@ typedef struct _file_info {
#define LM_OUTPUT_TO 4
// file type flags
-#define FT_FILE 0x00000101
-#define FT_DIR 0x00000102
-#define FT_SYMLINK 0x00000104
-#define FT_DEV 0x00000108
-#define FT_TERMINAL 0x00000110
+#define FT_FILE 0x00000100
+#define FT_DIR 0x00000200
+#define FT_SYMLINK 0x00000400
+#define FT_DEV 0x00000800
+#define FT_TERMINAL 0x00001000
// device types
#define DT_BLOCK 1
diff --git a/src/kernel/vfs/node.h b/src/kernel/vfs/node.h
index c3b1585..2ebf93b 100644
--- a/src/kernel/vfs/node.h
+++ b/src/kernel/vfs/node.h
@@ -12,10 +12,10 @@ class vt;
class node {
public:
node* parent;
- int type, dev_type;
- int mode, uid, gid;
+ uint32_t type, dev_type;
+ uint32_t mode, uid, gid;
- node(node* p, int t) : parent(p), type(t) {}
+ node(node* p, uint32_t t) : parent(p), type(t) {}
virtual ~node() {}
virtual int open(process *proc, int mode);