On Wed, 15 Apr 2026 06:48:42 -0000 (UTC), Anthk wrote:
By default under GNU/Linux you need to pass a preprocessor flag to
enforce large file support on 32 bit programs.
All that does is choose which kernel calls your source code will make.
Lawrence DrCOOliveiro wrote:
On Wed, 15 Apr 2026 06:48:42 -0000 (UTC), Anthk wrote:
By default under GNU/Linux you need to pass a preprocessor flag to
enforce large file support on 32 bit programs.
All that does is choose which kernel calls your source code will make.
It does rather more than that. The primary thing it does is change the definition of off_t so that it is a 64-bit integer instead of 32.
Lawrence DrCOOliveiro wrote:
On Wed, 15 Apr 2026 06:48:42 -0000 (UTC), Anthk wrote:
By default under GNU/Linux you need to pass a preprocessor flag to
enforce large file support on 32 bit programs.
All that does is choose which kernel calls your source code will
make.
It does rather more than that. The primary thing it does is change
the definition of off_t so that it is a 64-bit integer instead of
32.
On Fri, 17 Apr 2026 14:20:59 +0100, Geoff Clare wrote:
Lawrence DrCOOliveiro wrote:
On Wed, 15 Apr 2026 06:48:42 -0000 (UTC), Anthk wrote:
By default under GNU/Linux you need to pass a preprocessor flag to
enforce large file support on 32 bit programs.
All that does is choose which kernel calls your source code will
make.
It does rather more than that. The primary thing it does is change
the definition of off_t so that it is a 64-bit integer instead of
32.
Again, thatrCOs just to suit different kernel calls. The kernel doesnrCOt know, doesnrCOt care, what rCLoff_trCY means in your source code, or indeed any other name you might use.
Lawrence DrCOOliveiro wrote:
On Fri, 17 Apr 2026 14:20:59 +0100, Geoff Clare wrote:
Lawrence DrCOOliveiro wrote:
On Wed, 15 Apr 2026 06:48:42 -0000 (UTC), Anthk wrote:
By default under GNU/Linux you need to pass a preprocessor flag to
enforce large file support on 32 bit programs.
All that does is choose which kernel calls your source code will
make.
It does rather more than that. The primary thing it does is change
the definition of off_t so that it is a 64-bit integer instead of
32.
Again, thatrCOs just to suit different kernel calls. The kernel doesnrCOt
know, doesnrCOt care, what rCLoff_trCY means in your source code, or indeed >> any other name you might use.
The kernel doesn't care about the change of off_t size, but programmers
very much need to care. If you try to mix object files compiled with >different off_t sizes, and they interact in any way that involves
off_t, it is not going to end well. The way glibc handles this for its
own functions (that I mentioned but you didn't quote) is a special case
of this, but for third-party libraries you're probably on your own.
Lawrence DrCOOliveiro wrote:
On Fri, 17 Apr 2026 14:20:59 +0100, Geoff Clare wrote:
Lawrence DrCOOliveiro wrote:
On Wed, 15 Apr 2026 06:48:42 -0000 (UTC), Anthk wrote:
By default under GNU/Linux you need to pass a preprocessor flag
to enforce large file support on 32 bit programs.
All that does is choose which kernel calls your source code will
make.
It does rather more than that. The primary thing it does is change
the definition of off_t so that it is a 64-bit integer instead of
32.
Again, thatrCOs just to suit different kernel calls. The kernel
doesnrCOt know, doesnrCOt care, what rCLoff_trCY means in your source code, >> or indeed any other name you might use.
The kernel doesn't care about the change of off_t size, but
programmers very much need to care.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 06:11:39 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
921 files (14,318M bytes) |
| Messages: | 264,699 |