commit - ebd395452e7f81ece3d3877a04fbe26a324f6a3d
commit + 6c8856475f496f9e36038d253a4653a23b5db187
blob - bc04560173d90d4e72d0e419d39fec332064b8bd
blob + 12081ebd077823217773a354da3c15b62cea7147
--- acid/386
+++ acid/386
defn
dynamicmap()
{
- if systype == "linux" then {
+ if systype == "linux" || systype == "freebsd" then {
local r, m, n;
r = linkdebug();
n = 0;
while m != 0 && n < 100 do {
complex Linkmap m;
- if m.name && *(m.name\b) then
+ if m.name && *(m.name\b) && access(*(m.name\s)) then
textfile({*(m.name\s), m.addr\X});
m = m.next;
n = n+1;
blob - 492fdfb4ec6f4d0b8b411ed8f5c262eb076047ef
blob + 290b3c6947eb5cf5490d6af48e332e89e73b0a06
--- src/cmd/acid/builtin.c
+++ src/cmd/acid/builtin.c
r->op = OCONST;
r->type = TINT;
+ r->store.fmt = 'D';
r->store.u.ival = 0;
if(access(res.store.u.string->string, 4) == 0)
r->store.u.ival = 1;