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: James Montgomerie <email@hidden>
- Date: Mon, 21 Jan 2002 17:06:33 -0800
On Monday, January 21, 2002, at 04:37 PM, James Montgomerie wrote:
On Monday, January 21, 2002, at 03:52 pm, Zack Morris wrote:
How
do I call BSD UNIX routines from OS X? Specifically, I need to call
getpwent() which is inside the pwd.h header. You can read about it by
doing
a "man getpwent" search in google. For some reason it didn't show up
in man
on my computer. I have searched my drive and cannot find the pwd.h
file or
getpwent in the contents. I downloaded the developer tools but that
did not
help. I assume that I need to download and install some unix
libraries, but
I don't know how. I know that the routine exists because I can call it
from
perl on the command line. Here is my test file called "getnames.pl":
The file should be in /usr/include. If you're looking for it in the
Finder, use Go->Go to folder... and type /usr/include in the box (/usr
is usually hidden).
Apologies, I read your mail incorrectly - I thought you couldn't find
the header file, but had the man page.
If the man page is not there (i.e. you can't call it up by typing 'man
getpwent' in the Terminal), something is wrong with your installation.
You might want to check you have the BSD and Developer packages fully
installed.
Jamie.