I don't have 64 bit Sun with a compiler. But again, your compiler has a man page. It will tell you how to use 64 bit mode. Or "man lfcompile" will tell you how to write largefiles while in 32 bit mode. You're going to need to read those man pages and follow the instructions.
The first option, using 64 bit mode is the best. You will probably need nothing more than one more option on the cc command line. The option may be phased "use sparcv9 code" or something like that.
I guess that I can do this on a 32 bit sparc and use the technique in the lfcompile man page. First I need a program:
This will try to make a file that is a few bytes larger than 2GB. After, I run it, "tail bigfile ; sleep 4" will show:
line num=107374180
line num=107374181
line num=107374182
line nu
I need that sleep so my prompt did not overwrite the last line which does not end with a newline character. This is where you are, you have a program that can't write a largefile.
Now that "man lfcompile" page say to use "getconf LFS_CFLAGS" to get the flags I need to compile the program. I see that "getconf LFS_CFLAGS" returns
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
but I will just go with:
/opt/SUNWspro/bin/cc `getconf LFS_CFLAGS` makebigfile.c -o makebigfile
to compile my program. All that matters is that I feed those new options into the compiler one way or another. This really seems rather trivial, but this must be where you were stuck.
Now when I rerun the program, bigfile ends with:
line num=107374186
line num=107374187
line num=107374188
line num=107374189
Hi,
I've compiled a 64-bit version of ClamAV 0.98.7 on my Solaris 10 SPARC server. I have a selection of files all containing the eicar signature but clamd is only picking up the signature in the files <2GB.
I have the following set in clamd.conf, to remove file size checking:
MaxScanSize 0... (4 Replies)
Hi,
kstat -p -m zfs -n arcstats -s size returns
zfs:0:arcstats:size 8177310584
this values is approx (7.61 GB)
but my Physical Memory size is only 6144 Megabytes.
Can this happen ?
if yes, then how can I find free memory on the system.
BTW, I ran the kstat commands from a Non... (2 Replies)
Hi All,
I'm new for Solaris and exceed both. I tried searching in forum but couldn't locate any similar issue posted so posting the issue. I'm remotely connecting a solaris machine using Exceed XDMCP Query and while login I select Chinese language / locale for login. After login when I... (0 Replies)
Hello All,
I am working on an issue, where I need to check the max file size of a file. If the file size exceeds 2 GB, then I need to generate an error message. Since the file system does not allow a file to be created larger than 2 GB, I am planning to use named pipes & AWK file to acheive my... (6 Replies)
Hi All,
We are running HP rp7400 box with hpux 11iv1.
Recently, we changed 3 kernel parameters
a) msgseg from 32560 to 32767
b) msgmnb from 65536 to 65535
c) msgssz from 128 to 256
Then we noticed that all application debug file size increase upto 2GB then it stops. So far we did not... (1 Reply)
Does anyone know a way to determine the maximum filesize on a file system on Solaris, HP-UX, AIX, Linux, and OSF1 using the command line?
TIA (2 Replies)
My HP-UX 11.0 system is supporting an Oracle database. I have found a number of references on the Net to the "Max I/O size" in relation to setting Oracle parameters.
How can I tell what my max i/o size is? I originally made the assumption that it was referring to my stripe size but now I think... (1 Reply)
Hello all!
I have found a new home, this place is great!
I have been searching for days to find a way to set a max size for a log.txt file using a cron job exicuting a shell script. Is it possible for a script to remove older entries in a log file to maintain a limited file size? If so,... (5 Replies)