summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoririri <iri@konnichiwastevenspielbergde.su>2018-08-18 16:16:01 -0700
committerOri Bernstein <ori@eigenstate.org>2018-08-19 17:27:11 -0700
commit0bb2378d7e2b714998b34394f6977b2ead023d6c (patch)
treea1e47d5ceb41ca3905d041f7be6f61deac866ade
parentd861ac1aa2d18ba89b389785ea23b9e72e1edaa1 (diff)
downloadmc-0bb2378d7e2b714998b34394f6977b2ead023d6c.tar.gz
Make timespec/timeval struct members signed to simplify arithmetic.
-rw-r--r--support/syscall-gen/types+freebsd-x64.frag8
-rw-r--r--support/syscall-gen/types+linux-x64.frag8
-rw-r--r--support/syscall-gen/types+openbsd:6.1-x64.frag8
-rw-r--r--support/syscall-gen/types+openbsd:6.2-x64.frag8
-rw-r--r--support/syscall-gen/types+openbsd:6.3-x64.frag8
5 files changed, 20 insertions, 20 deletions
diff --git a/support/syscall-gen/types+freebsd-x64.frag b/support/syscall-gen/types+freebsd-x64.frag
index 62bdaea..9bae305 100644
--- a/support/syscall-gen/types+freebsd-x64.frag
+++ b/support/syscall-gen/types+freebsd-x64.frag
@@ -256,13 +256,13 @@ type timezone = struct
;;
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
diff --git a/support/syscall-gen/types+linux-x64.frag b/support/syscall-gen/types+linux-x64.frag
index 235888a..13d95aa 100644
--- a/support/syscall-gen/types+linux-x64.frag
+++ b/support/syscall-gen/types+linux-x64.frag
@@ -95,13 +95,13 @@ type sigevent = struct
;;
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
diff --git a/support/syscall-gen/types+openbsd:6.1-x64.frag b/support/syscall-gen/types+openbsd:6.1-x64.frag
index 48b8f5b..ac7157e 100644
--- 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 waitstatus = union
;;
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
diff --git a/support/syscall-gen/types+openbsd:6.2-x64.frag b/support/syscall-gen/types+openbsd:6.2-x64.frag
index 8d48229..7747a9b 100644
--- 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 rlimit = struct
;;
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
diff --git a/support/syscall-gen/types+openbsd:6.3-x64.frag b/support/syscall-gen/types+openbsd:6.3-x64.frag
index cd204e5..40f0f03 100644
--- 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 rlimit = struct
;;
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