AHCI initial commit.
[akaros.git] / kern / arch / riscv / types.h
index 305210d..6f174f1 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef ROS_INC_TYPES_H
-#define ROS_INC_TYPES_H
+#pragma once
 
 #include <stddef.h>
 
@@ -28,11 +27,10 @@ typedef unsigned int uint32_t;
 typedef long long int64_t;
 typedef unsigned long long uint64_t;
 
-typedef long ssize_t;
-typedef long pid_t;
-typedef long uid_t;
-typedef long gid_t;
+typedef int64_t ssize_t;
+typedef int32_t pid_t;
+typedef int32_t uid_t;
+typedef int32_t gid_t;
 
 typedef unsigned long uintptr_t;
-
-#endif /* !ROS_INC_TYPES_H */
+typedef signed long intptr_t;