From: Andy Whitcroft Date: Thu, 14 Sep 2006 10:52:59 GMT Subject: Re: open(2) vs fopen(3) Message-ID: <4509348B.3060907@shadowen.org> In-Reply-To: <20060914091513.19826.qmail@web25812.mail.ukl.yahoo.com> 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