[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nlist() for TOS executables ...



Here is a version of nlist() for mntlib/toslib. Works OK with my binary config
program but your milage may vary :-). I'm not sure what error codes should be
returned so I've done something like this (in errno):

EDOM:	stripped binary.
EREAD:  any kind of unexpected EOF.
ENOEXEC: bad executable format.
EFAULT: NULL pointer to nlist().
otherwise any open() errors return whatever open() would.
	Feel free to hack this to bits. 'nlist.h' should go in include dir.

Steve.


table
 !"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
begin 644 nlist.zoo
M6D]/(#(N,3 @07)C:&EV92X:  #<I\3]*@   -;___\"  $        #W*?$z
M_0("J00  '$   #R&A"0[U.."@  . 0   (!          !N;&ES="YC    y
M    "@ $HA<     M@%     0"DC*  #8FO;L;3=!^9B1]_HLD)LDD)3?")2x
MLRE!PU6 E1"K:ZJIIQOF1VN<VF^>UFM/S=[WNYMQA#&2VN2WX2V\.ZMMISN+w
MA!,LE*@CFH#7(E4LFGB5-2/ZQ;^\'"'YT2*4A(:=@:,77B#\4)IF2$"8@H1*v
MB"E$0"[3 K4@)ZM,LD(13:X)$F_G ^:JBA QK8%5**0^-0R^E0P*"B(X3T:.u
MT$?,9-$,-IV:],TI4AK@52<%XM_>W][[I$PRU1(#TTJPS5*Q:N6Y)'",AW(Zt
MDC;46Y(BBA,VY'K@AHFIW)#!C<CI51(GN-(*:)$<B4!H]W4_ZO;FT>O]7@]&s
M/'X*#24R?PB:-L7RJ%00#<+EK)T$_&S<?WE%1!E0B((J$!3\<63:EEF3W$FAr
MFJ2K)N;NY"A5 ^_[.S/VYV[I>'#3.JAQPW(3T[$0"/5@UT3:Q]8Y)4&1\]2@q
MD'Z2!.IC__,F;.($HW209%]-_>:92]RXI;5'[]H7?#!PBD6Z-;KBH&HB321Mp
MA>9[@,P:*.M,0.CEFW6+QQYS!6#Q78T3\QKO.E^6UBI@6VX&*W"C"XRU#+-2o
MAC,4##_/E=!8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