git: 9front

Download patch

ref: 96028db0a449d9162a59adde7b553e1e682dc8a4
parent: 98b1ff3240e5d4b83740773b08f072f15ed03624
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Mar 13 23:15:59 EDT 2016

truss: add fake __NSEC syscall name for ape

--- a/sys/lib/acid/truss
+++ b/sys/lib/acid/truss
@@ -153,15 +153,13 @@
 		"_PREAD",
 		"_PWRITE",
 		"_TSEMACQUIRE",
+		"__NSEC",
 	};
 
 defn addressof(pattern) {
 	// translate to ape system calls if we have an ape binary
-	if _addressof("_EXITS") != 0 then {
+	if _addressof("_EXITS") != 0 then
 		pattern = trussapecalls[match(pattern, trusscalls)];
-		if pattern == {} then
-			return 0;
-	}
 	if regexp("(seek|_SEEK)", pattern) && (objtype=="amd64" || objtype == "power64" || objtype == "alpha") then
 		pattern = "_" + pattern;
 	return _addressof(pattern);
--