Re: open(2) vs fopen(3)

From: Andy Whitcroft <apw@shadowen.org>
Date: 2006-09-14 20:52:59
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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Sep 14 20:53:32 2006

This archive was generated by hypermail 2.1.8 : 2006-09-14 20:54:10 EST