tsymopen - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 8b549a62142839c7e184939fe56850987dded578
parent 1ab0f6f00bbbb313ddc79f3905546124363079d6
Author: rsc 
Date:   Fri,  7 Jan 2005 20:45:11 +0000

symopen

Diffstat:
  M include/mach.h                      |       3 ++-
  M src/cmd/acid/builtin.c              |       4 ++--
  M src/cmd/acid/main.c                 |       2 +-

3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/include/mach.h b/include/mach.h
t@@ -293,11 +293,12 @@ void                uncrackhdr(Fhdr *hdr);
 int                crackelf(int fd, Fhdr *hdr);
 int                crackmacho(int fd, Fhdr *hdr);
 
-int                syminit(Fhdr*);
+int                symopen(Fhdr*);
 int                symdwarf(Fhdr*);
 int                symelf(Fhdr*);
 int                symstabs(Fhdr*);
 int                symmacho(Fhdr*);
+void                symclose(Fhdr*);
 
 int                mapfile(Fhdr *fp, ulong base, Map *map, Regs **regs);
 void                unmapfile(Fhdr *fp, Map *map);
diff --git a/src/cmd/acid/builtin.c b/src/cmd/acid/builtin.c
t@@ -1408,8 +1408,8 @@ textfile(Node *r, Node *args)
                         free(correg);
                         mapfile(corhdr, 0, cormap, &correg);
                 }
-                if(syminit(fp) < 0)
-                        fprint(2, "syminit %s: %r\n", file);
+                if(symopen(fp) < 0)
+                        fprint(2, "symopen %s: %r\n", file);
                 else
                         addvarsym(fp);
                 return;
diff --git a/src/cmd/acid/main.c b/src/cmd/acid/main.c
t@@ -258,7 +258,7 @@ attachfiles(int argc, char **argv)
         }
 
         if(symhdr)
-                syminit(symhdr);
+                symopen(symhdr);
 
         if(!mach)
                 mach = machcpu;