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
FWFlorian Weimer <fw@deneb.enyo.de>
Date
Apr 5, 2007, 21:17 UTC
Message-ID
<87r6qy7c6x.fsf@mid.deneb.enyo.de>
In-Reply-To
<20070405171432.GK5436@spearce.org>
* Shawn O. Pearce:
Show 9 quoted lines
> 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.  ;-)

This is actually what "#define _FILE_OFFSET_BITS 64" does. It's usually not a bad idea per se, but you must not use off_t in library header files if you do this.

lseek64 and friends are under -D_LARGEFILE64_SOURCE, it seems. Pitty we couldn't get rid of this mess when switching to libc6. 8-(

Previous: Shawn O. Pearce
Message 12 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.