S
shyam
Hi All
I have a application which is basically a log manager and accepts log
messages from other processes and logs them in files ( one file per
process per day ). The application manages the creating of log files,
formatting the incoming log messages with proper time stamp and writing
the logs in the respective log files.
I am using C++ ofstream for doing the file operations in Linux 2.4 .
I want to implement large file support so that when the logfile size
reaches 2GB limit the system doesnt exit with signal SIGXFSZ.
I know that this works in C using -D_LARGEFILE_SOURCE flag.
But I want to know how to implement this in C++ , and using only
ofstream ?
I am not sure it it is possible that way without using mix of FILE and
ofstream
Any suggestions?
thanks in advance
Shyam
I have a application which is basically a log manager and accepts log
messages from other processes and logs them in files ( one file per
process per day ). The application manages the creating of log files,
formatting the incoming log messages with proper time stamp and writing
the logs in the respective log files.
I am using C++ ofstream for doing the file operations in Linux 2.4 .
I want to implement large file support so that when the logfile size
reaches 2GB limit the system doesnt exit with signal SIGXFSZ.
I know that this works in C using -D_LARGEFILE_SOURCE flag.
But I want to know how to implement this in C++ , and using only
ofstream ?
I am not sure it it is possible that way without using mix of FILE and
ofstream
Any suggestions?
thanks in advance
Shyam