Subject: Re: open(2) vs fopen(3)

From: Andy Whitcroft <[email-masked]>
Date: Thu, 14 Sep 2006 11:52:59 +0100

moreau francis wrote:
> Hi GIT folks,
> 
> I'm reading git source code and falling on this stupid question:
> Why sometime open(2) is used and other time fopen(3) is
> prefered. I'm sorry for this dump question but I have no clue.

It looks very much from a quick random sampling, that open is used where
we are going to mmap the file for quick access.  fopen otherwise.

-apw