Re: __ prefix in system call
Re: __ prefix in system call
- Subject: Re: __ prefix in system call
- From: Kevin Van Vechten <email@hidden>
- Date: Sat, 01 May 2010 13:39:26 -0700
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 <email@hidden>
>
>> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden