shithub: mc

Download patch

ref: 0bb2378d7e2b714998b34394f6977b2ead023d6c
parent: d861ac1aa2d18ba89b389785ea23b9e72e1edaa1
author: iriri <iri@konnichiwastevenspielbergde.su>
date: Sat Aug 18 12:16:01 EDT 2018

Make timespec/timeval struct members signed to simplify arithmetic.

--- a/support/syscall-gen/types+freebsd-x64.frag
+++ b/support/syscall-gen/types+freebsd-x64.frag
@@ -256,13 +256,13 @@
 ;;
 
 type timespec = struct
-	sec	: uint64
-	nsec	: uint64 
+	sec	: int64
+	nsec	: int64
 ;;
 
 type timeval = struct
-	sec	: uint64
-	usec	: uint64
+	sec	: int64
+	usec	: int64
 ;;
 
 type itimerval = struct
--- a/support/syscall-gen/types+linux-x64.frag
+++ b/support/syscall-gen/types+linux-x64.frag
@@ -95,13 +95,13 @@
 ;;
 
 type timespec = struct
-	sec	: uint64
-	nsec	: uint64
+	sec	: int64
+	nsec	: int64
 ;;
 
 type timeval = struct
-	sec	: uint64
-	usec	: uint64
+	sec	: int64
+	usec	: int64
 ;;
 
 type timex = struct
--- a/support/syscall-gen/types+openbsd:6.1-x64.frag
+++ b/support/syscall-gen/types+openbsd:6.1-x64.frag
@@ -38,13 +38,13 @@
 ;;
 
 type timespec = struct
-	sec	: uint64
-	nsec	: uint64 
+	sec	: int64
+	nsec	: int64
 ;;
 
 type timeval = struct
-	sec	: uint64
-	usec	: uint64
+	sec	: int64
+	usec	: int64
 ;;
 
 type pollfd = struct
--- a/support/syscall-gen/types+openbsd:6.2-x64.frag
+++ b/support/syscall-gen/types+openbsd:6.2-x64.frag
@@ -48,13 +48,13 @@
 ;;
 
 type timespec = struct
-	sec	: uint64
-	nsec	: uint64 
+	sec	: int64
+	nsec	: int64
 ;;
 
 type timeval = struct
-	sec	: uint64
-	usec	: uint64
+	sec	: int64
+	usec	: int64
 ;;
 
 type timezone = struct
--- a/support/syscall-gen/types+openbsd:6.3-x64.frag
+++ b/support/syscall-gen/types+openbsd:6.3-x64.frag
@@ -49,13 +49,13 @@
 ;;
 
 type timespec = struct
-	sec	: uint64
-	nsec	: uint64 
+	sec	: int64
+	nsec	: int64
 ;;
 
 type timeval = struct
-	sec	: uint64
-	usec	: uint64
+	sec	: int64
+	usec	: int64
 ;;
 
 type timezone = struct