소스 검색

Make off_t and time_t long long

Jeremy Soller 2 년 전
부모
커밋
041d1604b5
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      include/sys/types_internal.h
  2. 2 2
      src/platform/types.rs

+ 2 - 2
include/sys/types_internal.h

@@ -9,11 +9,11 @@ typedef int gid_t;
 typedef int uid_t;
 typedef int mode_t;
 typedef unsigned long nlink_t;
-typedef long off_t;
+typedef long long off_t;
 typedef int pid_t;
 typedef unsigned id_t;
 typedef long ssize_t;
-typedef long time_t;
+typedef long long time_t;
 typedef unsigned int useconds_t;
 typedef int suseconds_t;
 typedef long clock_t;

+ 2 - 2
src/platform/types.rs

@@ -54,9 +54,9 @@ pub type wchar_t = i32;
 pub type wint_t = u32;
 
 pub type regoff_t = size_t;
-pub type off_t = c_long;
+pub type off_t = c_longlong;
 pub type mode_t = c_int;
-pub type time_t = c_long;
+pub type time_t = c_longlong;
 pub type pid_t = c_int;
 pub type id_t = c_uint;
 pub type gid_t = c_int;