summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authoririri <iri@konnichiwastevenspielbergde.su>2018-08-11 19:11:19 -0700
committerOri Bernstein <ori@eigenstate.org>2018-08-14 22:34:01 -0700
commit1db9bc54f99b5489d34b7c048fe3909b0279a317 (patch)
treea157381448158d43b059fb37b35e23d86074f26a /support
parent2cd9927f90410e345fab398fe2573fe6971ef3b0 (diff)
downloadmc-1db9bc54f99b5489d34b7c048fe3909b0279a317.tar.gz
Make timespec/timeval struct members signed to simplify arithmetic.
Every single conversion except for one for OS X is uint64 to int64.
Diffstat (limited to 'support')
-rw-r--r--support/syscall-gen/specials+openbsd:6.1-x64.frag2
-rw-r--r--support/syscall-gen/specials+openbsd:6.2-x64.frag2
-rw-r--r--support/syscall-gen/specials+openbsd:6.3-x64.frag2
3 files changed, 3 insertions, 3 deletions
diff --git a/support/syscall-gen/specials+openbsd:6.1-x64.frag b/support/syscall-gen/specials+openbsd:6.1-x64.frag
index 4cc3843..b326ec1 100644
--- a/support/syscall-gen/specials+openbsd:6.1-x64.frag
+++ b/support/syscall-gen/specials+openbsd:6.1-x64.frag
@@ -190,7 +190,7 @@ const clock_settime = {clk, ts; -> (syscall(Sysclock_settime, clockid(clk), a(ts
const sleep = {time
var req, rem
- req = [.sec = time, .nsec = 0]
+ req = [.sec = (time : int64), .nsec = 0]
-> nanosleep(&req, &rem)
}
diff --git a/support/syscall-gen/specials+openbsd:6.2-x64.frag b/support/syscall-gen/specials+openbsd:6.2-x64.frag
index 4cc3843..b326ec1 100644
--- a/support/syscall-gen/specials+openbsd:6.2-x64.frag
+++ b/support/syscall-gen/specials+openbsd:6.2-x64.frag
@@ -190,7 +190,7 @@ const clock_settime = {clk, ts; -> (syscall(Sysclock_settime, clockid(clk), a(ts
const sleep = {time
var req, rem
- req = [.sec = time, .nsec = 0]
+ req = [.sec = (time : int64), .nsec = 0]
-> nanosleep(&req, &rem)
}
diff --git a/support/syscall-gen/specials+openbsd:6.3-x64.frag b/support/syscall-gen/specials+openbsd:6.3-x64.frag
index 4cc3843..b326ec1 100644
--- a/support/syscall-gen/specials+openbsd:6.3-x64.frag
+++ b/support/syscall-gen/specials+openbsd:6.3-x64.frag
@@ -190,7 +190,7 @@ const clock_settime = {clk, ts; -> (syscall(Sysclock_settime, clockid(clk), a(ts
const sleep = {time
var req, rem
- req = [.sec = time, .nsec = 0]
+ req = [.sec = (time : int64), .nsec = 0]
-> nanosleep(&req, &rem)
}