瀏覽代碼

Kernel+LibC: Let's say that off_t is a ssize_t

Andreas Kling 5 年之前
父節點
當前提交
1afbd8936a
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Kernel/UnixTypes.h
  2. 1 1
      Libraries/LibC/sys/types.h

+ 1 - 1
Kernel/UnixTypes.h

@@ -320,7 +320,7 @@ struct sigaction {
 
 #define OFF_T_MAX 2147483647
 
-typedef i32 off_t;
+typedef ssize_t off_t;
 typedef i64 time_t;
 
 struct utimbuf {

+ 1 - 1
Libraries/LibC/sys/types.h

@@ -48,7 +48,7 @@ typedef int id_t;
 typedef __WINT_TYPE__ wint_t;
 
 typedef uint32_t ino_t;
-typedef int32_t off_t;
+typedef ssize_t off_t;
 
 typedef uint32_t dev_t;
 typedef uint16_t mode_t;