Re: __ prefix in system call
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com The extra __ prefix has no special meaning, but is a convention indicating that applications should not make use of that symbol directly — it is an internal implementation detail of the OS. These syscall stubs are generated by the Libsyscall subproject of xnu. Kevin On May 1, 2010, at 1:32 PM, Ariel Feinerman wrote:
2010/4/23 Jean-Daniel Dupas <devlists@shadowlab.org>
Le 22 avr. 2010 à 23:16, Ariel Feinerman a écrit :
I look at libc`s posix_spawn() function, one calls __posix_spawn() internally, I think __posix_spawn() is system call, but I learn xnu source by grep carefully, threre is only one function: posix_spawn(). What is __ ?
nm libSystem.dylib 0000000000048020 t ___posix_spawn
Answer: a libSystem internal symbol (aka implementation detail). What are you trying to do ?
Nothing, I want to look at __posix_spawn() source when I learn libc implementation. So does it means __posix_spawn() prototype in libc is posix_spawn() prototype in xnu? For example if I want to call function from kernel or implement wrapper I need to insert __ ?
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Kevin Van Vechten