Re: open(2) vs fopen(3)
- From
Andy Whitcroft <apw@shadowen.org>
- Date
- Sep 14, 2006, 10:52 UTC
- Message-ID
- <4509348B.3060907@shadowen.org>
- In-Reply-To
- <20060914091513.19826.qmail@web25812.mail.ukl.yahoo.com>
moreau francis wrote:
Show 5 quoted lines
> 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