• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: __ prefix in system call
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: __ prefix in system call
      • From: Terry Lambert <email@hidden>
    • Re: __ prefix in system call
      • From: Kevin Van Vechten <email@hidden>
  • Prev by Date: Re: How can I tell if another process is 32 or 64 bit
  • Next by Date: Re: __ prefix in system call
  • Previous by thread: Re: How can I tell if another process is 32 or 64 bit
  • Next by thread: Re: __ prefix in system call
  • Index(es):
    • Date
    • Thread