RE: Version of dynamic library
RE: Version of dynamic library
- Subject: RE: Version of dynamic library
- From: Quinn <email@hidden>
- Date: Fri, 11 Apr 2008 10:39:24 +0100
At 14:45 +0530 11/4/08, anukriti_shrimal wrote:
Well, when I read the fat_header, it gives following values:
magic = 3199925962, (bebafeca)
nfat_arch = 0
Since the no. of fat_archs is 0, how can I determine the version number in
this case.
A value of zero for fat_archs is very unlikely. You're doing
something wrong in your read code. Here's a typical example of a fat
header:
$ hexdump -n 8 /usr/lib/libSystem.dylib
0000000 ca fe ba be 00 00 00 04
Remember that fat headers are always big endian.
My high level goal is to find the version of the dynamic library when I m
given its full path.
That's just a restatement of your original question. I was asking
about /why/ you're trying to get this information. If I can
understand what you're trying to do, I may be able to suggest a
better approach (where "better" means "less code for you to write").
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden