site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -- Terry On Nov 20, 2007, at 2:58 PM, Terry Lambert <tlambert@apple.com> wrote: #define path "mypath" and then #includes a system header to get e.g.: Int open(const char *path, int flags, ...); -- Terry On Nov 20, 2007, at 8:01 AM, Quinn <eskimo1@apple.com> wrote: [1] The bug tracking this is <rdar://problem/3524590>. [2] Alas, there are fairly good technical reasons for this. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/tlambert%40apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/tlambert%40apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... Of course, that's supposed to be "prototype parameters either", but my iPhone ate my homework. 8^). Actually both UNIX/POSIX and ANSI/ISO C standards require that prototypeseither be omitted or in the implementation name space -- have underscore prefixes so if a user e.g. does: In scope, path in the parameter list doesn't change into something else that's syntactically incorrect (or worse, syntactically correct but wrong). Unfortunately, there's user code out there that puts variables and definitions into that space anyway, so we just try to avoid it all. At 9:54 -0600 20/11/07, Kynan Shook wrote: Now, is there any documentation on these interfaces? A google on vnode_open returns very few results... Not really )-: [1] And given the BSD habit of not including formal parameter names in prototypes [2], your only real option is to look at the Darwin source. S+E -- Quinn "The Eskimo!" <http://www.apple.com/developer/
Apple Developer Relations, Developer Technical Support, Core OS/ Hardware This email sent to tlambert@apple.com This email sent to tlambert@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert