Catching full disk space error
Axel Siebenwirth
axel@pearbough.net
Wed Jan 21 13:28:00 GMT 2004
Hi Benjamin!
On Wed, 21 Jan 2004, Reschke Benjamin-A16256 wrote:
> I want to be able to catch a 'disk space full' error. Is there either an exception or signal I can catch or a way of working out how much disk space is available on a disk.
>
> I am using both GCC 2.95.3 and 3.2, on Solaris 8, HP-UX 11 and Linux machines. So if possible I would like a solution which is portalable across all these.
glibc library functions return a ENOSPC error when trying to write to a full
disk.
(http://www.gnu.org/software/libc/manual/html_mono/libc.html#Error%20Reporting)
Axel
____________________________________________________________________________
Axel Siebenwirth phone +49 3641 776807 |
Am Birnstiel 3 axel at pearbough dot net |
07745 Jena |
Germany________________________________________________http://pearbough.net |
"I used to think I was indecisive, but now I'm not so sure."
____________________________________________________________________________
More information about the Gcc-help
mailing list