Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: future "safety" of MiG based projects



Sorry for the delay responding,

On Apr 13, 2004, at 12:23 PM, David Leimbach wrote:
> I noticed that on Panther the APIs for task_get_bootstrap_port are not
> "advertised" as they once were.

Officially, in Panther (i.e. Apple's Mac OS X product), they were never
APIs. All Mach-ish things are SPIs in Apple products (with CFMachPort
straddling the API/SPI line). But with that public service
announcement aside, how has this interface's treatment changed in
Panther? It is still there in <mach/task_special_ports.h> which is
still reachable from:

#include <mach/mach.h> // the only Mach kernel header
you should be including directly in applications

Are you somehow missing those files even after installing the developer
packages? They should be there (and are on all my Panther machines).
Or are you more concerned about the bootstrap_xxx() APIs themselves?
These are published in:

#include <servers/bootstrap.h> // a set of services for
registering and looking up mach ports "by name"

> This makes me nervous to develop anything that uses MiG to generate a
> mach_ports based IPC
> communication system. Is this being replaced or removed? :)

No plans in the foreseeable future.

> I suppose it's not unthinkable that I could have my own port
> registration and lookup functions but
> I'd like to avoid that.
>
> I've also looked in CoreFoundation and found that CFMessagePort uses
> these functions as well.
>
> I know Apple doesn't like to talk about future plans... but I'd like
> to know if I am walking a forbidden
> path of mystery that ends only in pain before I start committing
> development time to these APIs. :)

Well, as I said, this is all SPI in Apple products. So, using them
always has their risks. But it also is a core part of the Darwin
system. Besides some tweaking of where these services are exported
from (which daemon, not the location or content of the headers), there
is no plan in Darwin to change or abandon this. In fact, when you look
at Panther, there is more reliance on the bootstrap facilities than
ever before.

--Jim

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.