Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

blkgandolf

macrumors newbie
Original poster
Feb 6, 2019
1
0
Hello,

I'm writing a program to enumerate port information and I came across some documents that referenced bootstrap_info() API, however it seems in the latest Mac this API is no longer supported. Is there some alternative way to query this information from the bootstrap service (launchd) in C?

Thanks,
 
Calls to system functions in C are part of the now-deprecated Carbon API. There should be an Objective C/Swift interface for doing this with Cocoa.
 
It looks looks like there is a Cocoa class to handle this:

NSMachBootstrapServer
A port name server that takes and returns Mach port objects.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.