Browse Source

Make off_t and time_t long long

Jeremy Soller 2 years ago
parent
commit
041d1604b5
2 changed files with 4 additions and 4 deletions
  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;