Re: __ prefix in system call
Re: __ prefix in system call
- Subject: Re: __ prefix in system call
- From: Ariel Feinerman <email@hidden>
- Date: Sat, 1 May 2010 23:32:38 +0300
2010/4/23 Jean-Daniel Dupas
<email@hidden>
Le 22 avr. 2010 à 23:16, Ariel Feinerman a écrit :
> Hi,
>
> 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 __ ?
-- Jean-Daniel
--
best regards
Ariel
_______________________________________________
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