The following diff works on my amd64. I split an 8GB file into two chunks: 5GB and 3GB
Index: split.c =================================================================== RCS file: /cvs/src/usr.bin/split/split.c,v retrieving revision 1.13 diff -u -r1.13 split.c --- split.c 2006/08/10 22:44:17 1.13 +++ split.c 2006/10/17 07:23:15 @@ -60,7 +60,7 @@ #define DEFLINE 1000 /* Default num lines per file. */ -ssize_t bytecnt; /* Byte count to split on. */ +off_t bytecnt; /* Byte count to split on. */ long numlines; /* Line count to split on. */ int file_open; /* If a file open. */ int ifd = -1, ofd = -1; /* Input/output file descriptors. */ On 10/17/06, Otto Moerbeek <[EMAIL PROTECTED]> wrote:
On Mon, 16 Oct 2006, Sebastian Dehne wrote: > Hi, > > I noticed that split(1) can only handle files which's size <= 2GB. I > adjusted my version so that it support larger files. > > Why is this limit never increased. I mean, the fs supports much bigger > files. Are there any plans to increased this limit in the future so I > don't need to patch again when installing a new release? send a diff and we will consider it. -Otto
-- GDB has a 'break' feature; why doesn't it have 'fix' too?