• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Calling BSD from Cocoa and/or CFM?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling BSD from Cocoa and/or CFM?


  • Subject: Re: Calling BSD from Cocoa and/or CFM?
  • From: email@hidden
  • Date: Tue, 22 Jan 2002 12:04:01 -0500

On Monday, January 21, 2002, at 06:52 PM, Zack Morris wrote:

Hi, I am new to the list and have a newbie question (for future
reference, is there a better list to ask about pure OS X questions?). 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 man page should be there if you have 10.1 and the dev tools. If you think
you should have the 10.1 man pages, but they don't come up in the terminal
try un-setting your MANPATH variable. If you have imported your login
initialization files (.login .cshrc .profile etc) from a "typical" unix system,
your MANPATH variable may hiding the man pages from you.

email@hidden


References: 
 >Calling BSD from Cocoa and/or CFM? (From: Zack Morris <email@hidden>)

  • Prev by Date: Archiving problem with subclass of NSCalendarDate
  • Next by Date: Re: app preferences top view
  • Previous by thread: Re: Calling BSD from Cocoa and/or CFM?
  • Next by thread: Is dataWithContentsOfURL: thread-safe?
  • Index(es):
    • Date
    • Thread