Re: Calling BSD from Cocoa and/or CFM?
Re: Calling BSD from Cocoa and/or CFM?
- Subject: Re: Calling BSD from Cocoa and/or CFM?
- From: Finlay Dobbie <email@hidden>
- Date: Wed, 23 Jan 2002 18:20:44 +0000
On Wednesday, January 23, 2002, at 07:12 AM, Zack Morris wrote:
The example says to load the bundle for "System.framework"
but evidently that's not where getpwent is stored. I was able to
import a
bunch of other bsd commands, so I know it's almost working. The example
says to use "nm" from the command line to see which functions are in
which
libraries, and I did get it to work for single libraries, but I really
need
to search the whole frameworks folder for "getpwent".
[localhost:~] finlayd% nm /usr/lib/libSystem.B.dylib | grep getpwent
/usr/lib/libSystem.B.dylib(getpwent.o):
70083670 T __old_getpwent
U __old_getpwent
70088240 T _getpwent
700882a0 t _lu_getpwent
Looks like it is in System. :-P
-- Finlay