"Fossies" - the Fresh Open Source Software Archive 
Member "mpr-2.8/config/bti386.c" (18 Oct 2002, 290 Bytes) of package /linux/misc/old/mpr-2.8.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #undef ulong
2 #define ulong unsigned long
3
4 extern int mprprint(int, char *, ...);
5
6 #define getfp(ap) (ap-2)
7 #define getpc(fp) (fp[1])
8
9 void
10 mprbt(int fd)
11 {
12 ulong pc, *fp = getfp((ulong *)&fd);
13
14 while (fp && *fp && (pc = getpc(fp))) {
15 mprprint(fd, "%U:", pc-1);
16 fp = (ulong *)*fp;
17 }
18 }