diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-03-14 03:15:59 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-03-14 03:15:59 +0100 |
commit | 8726990cf563f72d91e1cb8335510d5a1d38ec02 (patch) | |
tree | bda21ce6c92a056e92c5328852876deda2489890 /sys/lib | |
parent | e485362b0bde40debee791afaf4d9dc8585d0acf (diff) |
truss: add fake __NSEC syscall name for ape
Diffstat (limited to 'sys/lib')
-rw-r--r-- | sys/lib/acid/truss | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/lib/acid/truss b/sys/lib/acid/truss index 86070088d..c11816bdc 100644 --- a/sys/lib/acid/truss +++ b/sys/lib/acid/truss @@ -153,15 +153,13 @@ trussapecalls = { "_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); |