site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Shantonu On Apr 19, 2005, at 10:02 AM, Alexey Proskuryakov wrote: On 19.04.2005 17:41, "Ed Mansky" <mansky@mindspring.com> wrote: What Darwin Project is malloc.c located in ? I want to learn the BSD-style of malloc-ing and in particular the use of vm_allocate. How do you look up where a particular source file or header file is located ? ( ie. what project a source file or header are in) http://www.google.com/search?&q=malloc.c+site:darwinsource.opendarwin.org The search gives several different results, but you are probably looking for xnu. - WBR, Alexey Proskuryakov _______________________________________________ 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/ssen%40opendarwin.org -- E. J. Mansky II Eikonal Research Institute Bend, Oregon _______________________________________________ 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... Thanks for the replies, good tips. And Shantonu you're quite correct Free BSD isn't Apple. Question: Does the darwinxref tool allow one to find the project a given file/header is in ? No, you're probably not. xnu is the kernel. malloc in userspace is implemented in the Libc project, in Libc/gen/malloc.c and scalable_malloc.c. I don't see how you're going to learn the BSD style of malloc-ing by looking at Apple's implementation, which is not shared with any other OS that I know of. This email sent to ssen@opendarwin.org This email sent to site_archiver@lists.apple.com
participants (1)
-
Ed Mansky