git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-{repack,pack-objects} accept --{pack,blob}-limit to control pack size

From
Shawn O. Pearce <spearce@spearce.org>
Date
Apr 5, 2007, 17:14 UTC
Message-ID
<20070405171432.GK5436@spearce.org>
In-Reply-To
<Pine.LNX.4.64.0704050910590.6730@woody.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> wrote:
Show 8 quoted lines
> 
> On Thu, 5 Apr 2007, Shawn O. Pearce wrote:
> > 
> > Sure, OK, but that libc function doesn't exist on Mac OS X:
> 
> My bad. It's *not* linux-specific like the OSX man-page apparently says, 
> it's very traditional. But the right name is "lseek64()" (and offt64_t for 
> the size).

Sorry for the confusion, that manpage snippet came from a Gentoo/x86 system. But I digress, you are right, the right interfaces to be using here is lseek64 and open64.

Now those also don't eixst on OSX, because as you pointed out, they have no legacy to deal with and are just using sizeof off_t == 8.

So we'd probably have to do something like:
	#ifndef _LFS_LARGEFILE
	#define open64 open
	#define lseek64 lseek
	#endif

and then start using the open64/lseek64 variants instead. Or do the reverse #define's. ;-)

-- 
Shawn.
Previous: Linus TorvaldsNext: Florian Weimer
Message 11 of 12 in “git-{repack,pack-objects} accept --{pack,blob}-limit to control pack size”
  1. git-{repack,pack-objects} accept --{pack,blob}-limit to control pack sizeDana How, Apr 4, 2007
  2. Nicolas PitreApr 4, 2007
  3. Dana HowApr 4, 2007
  4. Nicolas PitreApr 5, 2007
  5. Shawn O. PearceApr 5, 2007
  6. Nicolas PitreApr 5, 2007
  7. Shawn O. PearceApr 5, 2007
  8. Linus TorvaldsApr 5, 2007
  9. Shawn O. PearceApr 5, 2007
  10. Linus TorvaldsApr 5, 2007
  11. Shawn O. PearceApr 5, 2007
  12. Florian WeimerApr 5, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.