[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Edlug Archive Jan 2003
]
Re: [edlug] BASH question
You could try running the program below to create a large file with a
hole at the start, then do "echo hello >> junk". If the echo fails then
bash doesn't know about large files. Compile with -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
int
main(int argc,char **argv)
{
int fd;
fd=open("junk",O_WRONLY|O_CREAT|O_LARGEFILE,0666);
llseek(fd,34359738368LL,0);
write(fd,"x",1);
close(fd);
return 0;
}
-----------------------------------------------------------------------
You can find the EdLUG mailing list FAQ list at:
http://www.edlug.org.uk/list_faq.html