Xref: utzoo comp.sys.att:3887 unix-pc.general:1185 Path: utzoo!utgpu!water!watmath!uunet!labrea!rutgers!ucsd!nosc!humu!uhccux!islenet!richard From: richard@islenet.UUCP (Richard Foulk) Newsgroups: comp.sys.att,unix-pc.general Subject: Re: shared lib ... Message-ID: <4124@islenet.UUCP> Date: 31 Jul 88 18:32:32 GMT References: <4121@islenet.UUCP> <13@zeno.MN.ORG> Reply-To: richard@islenet.UUCP (Richard Foulk) Organization: Islenet Inc., Honolulu Lines: 48 I had several replys to my inquiry about the "missing" entries in the shared library. I was unable to reply by mail. The only routine that I've taken the time to locate thus far is _doprnt. Apparently the address I gave doesn't work for everyone. I'm pretty sure it won't work for 3.0 and it may not work for 3.5 either. All I know is that it does work for 3.51. The address is 0x328a34 (_tbase + 0x18a34). Here's a test of the shared lib _doprnt: # to unbundle, "sh" this file -- DO NOT use csh # SHAR archive format. Archive created Sun Jul 31 06:27:00 PM echo x - Makefile sed 's/^X//' > Makefile <<'+FUNKY+STUFF+' XCC=/bin/cc X Xt: t.o ifile-add X ld /lib/crt0s.o /lib/shlib.ifile ifile-add t.o -o t +FUNKY+STUFF+ echo '-rw-r--r-- 1 richard users 82 Jul 31 18:21 Makefile (as sent)' chmod u=rw,g=r,o=r Makefile ls -l Makefile echo x - t.c sed 's/^X//' > t.c <<'+FUNKY+STUFF+' X#include X Xmain() { X char *format = "%s %s %s %s\n"; X static char *cv[] = { "this", "is", "a", "test" }; X X _doprnt(format, cv, stdout); X} +FUNKY+STUFF+ echo '-rw-r--r-- 1 richard users 147 Jul 31 18:14 t.c (as sent)' chmod u=rw,g=r,o=r t.c ls -l t.c echo x - ifile-add sed 's/^X//' > ifile-add <<'+FUNKY+STUFF+' X_doprnt = 0x328a34; +FUNKY+STUFF+ echo '-rw-r--r-- 2 richard users 20 Jul 31 18:24 ifile-add (as sent)' chmod u=rw,g=r,o=r ifile-add ls -l ifile-add exit 0 -- Richard Foulk ...{vortex,ihnp4,spl1}!islenet!richard Honolulu, Hawaii