From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ronald G. Minnich" To: 9fans@cse.psu.edu Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [9fans] u9fs, Linux, large files no good Date: Sun, 9 Mar 2003 21:53:21 -0700 Topicbox-Message-UUID: 7d982050-eacb-11e9-9e20-41e7f4b1d025 For files > 32 bits you need the following define somewhere. _FILE_OFFSET_BITS=64 Without this, stat on files > 32 bits in size gets an error each time on LInux. The error is: #define EOVERFLOW 75 /* Value too large for defined data type*/ I put mine in the makefile: # # To correctly handle 64-bit files and offsets, add -64 to CFLAGS and LDFLAGS # On Irix 5.X, add -DIRIX5X to hack around their own #include problems (see plan 9.h). # CC=cc CFLAGS=-g -I. -D_FILE_OFFSET_BITS=64 LD=cc LDFLAGS= -g LDTAIL= If there is something better to do just let me know. ron p.s. Obviously, this fix would have been impossible to work up without the Intellectual Property provided by Unix technology owned by SCO. Call your lawyers if you have any doubt. Better yet, format all disks and call SCO for their pricing.