summaryrefslogtreecommitdiff
path: root/lib/thread
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-08-27 15:55:36 -0700
committerOri Bernstein <ori@eigenstate.org>2016-08-27 15:55:36 -0700
commite83d16d5bd500b8e1913a836560f943a757ab86b (patch)
treeed88a93da5185122d16eec51086a053f0910b9a0 /lib/thread
parent6121d28dc28103cb85b22fe404daaa8c441790b4 (diff)
downloadmc-e83d16d5bd500b8e1913a836560f943a757ab86b.tar.gz
Rename `std.Fail to `std.Err.
Diffstat (limited to 'lib/thread')
-rw-r--r--lib/thread/spawn+freebsd.myr4
-rw-r--r--lib/thread/spawn+linux.myr4
-rw-r--r--lib/thread/spawn+openbsd.myr4
-rw-r--r--lib/thread/spawn+osx.myr2
-rw-r--r--lib/thread/spawn+plan9.myr2
5 files changed, 8 insertions, 8 deletions
diff --git a/lib/thread/spawn+freebsd.myr b/lib/thread/spawn+freebsd.myr
index 9bf75e4..71ae87d 100644
--- a/lib/thread/spawn+freebsd.myr
+++ b/lib/thread/spawn+freebsd.myr
@@ -21,7 +21,7 @@ const spawnstk = {fn, sz
stk = getstk(sz)
if stk == sys.Mapbad
- -> `std.Fail "couldn't get stack"
+ -> `std.Err "couldn't get stack"
;;
tid = -1
/* find top of stack */
@@ -51,7 +51,7 @@ const spawnstk = {fn, sz
], sizeof(sys.thrparam))
if ret < 0
- -> `std.Fail "couldn't spawn thread"
+ -> `std.Err "couldn't spawn thread"
;;
-> `std.Ok (tid : tid)
}
diff --git a/lib/thread/spawn+linux.myr b/lib/thread/spawn+linux.myr
index 20e1de8..524144c 100644
--- a/lib/thread/spawn+linux.myr
+++ b/lib/thread/spawn+linux.myr
@@ -26,7 +26,7 @@ const spawnstk = {fn, sz
stk = getstk(sz)
if stk == sys.Mapbad
- -> `std.Fail "couldn't get stack"
+ -> `std.Err "couldn't get stack"
;;
tos = (stk : std.intptr)
tos -= sizeof(int64)
@@ -42,7 +42,7 @@ const spawnstk = {fn, sz
&ctid, (0 : byte#), \
(startthread : void#))
if ret < 0
- -> `std.Fail "couldn't spawn thread"
+ -> `std.Err "couldn't spawn thread"
;;
-> `std.Ok (ret : tid)
}
diff --git a/lib/thread/spawn+openbsd.myr b/lib/thread/spawn+openbsd.myr
index f0e1fd4..0ccf759 100644
--- a/lib/thread/spawn+openbsd.myr
+++ b/lib/thread/spawn+openbsd.myr
@@ -20,7 +20,7 @@ const spawnstk = {fn, sz
stk = getstk(sz)
if stk == sys.Mapbad
- -> `std.Fail "couldn't get stack"
+ -> `std.Err "couldn't get stack"
;;
/* store size */
tos = (stk : std.intptr)
@@ -42,7 +42,7 @@ const spawnstk = {fn, sz
sizeof(sys.tforkparams), \
(startthread : void#), \
(0 : void#)) < 0
- -> `std.Fail "couldn't spawn thread"
+ -> `std.Err "couldn't spawn thread"
;;
-> `std.Ok (ret : tid)
}
diff --git a/lib/thread/spawn+osx.myr b/lib/thread/spawn+osx.myr
index 0ae8e1b..a301fb8 100644
--- a/lib/thread/spawn+osx.myr
+++ b/lib/thread/spawn+osx.myr
@@ -46,7 +46,7 @@ const spawnstk = {fn, sz
0)
if ret == (-1 : void#)
- -> `std.Fail "couldn't spawn thread"
+ -> `std.Err "couldn't spawn thread"
;;
-> `std.Ok (ret : tid)
}
diff --git a/lib/thread/spawn+plan9.myr b/lib/thread/spawn+plan9.myr
index 2c6e856..bb23c2b 100644
--- a/lib/thread/spawn+plan9.myr
+++ b/lib/thread/spawn+plan9.myr
@@ -12,7 +12,7 @@ const spawn = {fn
| 0:
fn()
std.exit(0)
- | -1: -> `std.Fail "unable to spawn thread"
+ | -1: -> `std.Err "unable to spawn thread"
| thr: -> `std.Ok (thr : tid)
;;
}