classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] handle case with lots of unreferenced objects that has


From: Dr. Torsten Rupp
Subject: Re: [cp-patches] handle case with lots of unreferenced objects that has fd's open]
Date: Mon, 08 Nov 2004 10:03:51 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

Dear Mark,

The interface for the native open() isn't really optimal it seems.
The TARGET_NATIVE_FILE_OPEN macro seems to prevent us from detecting the
real reason for the file open call to fail. I think for now this is the
best we can do. But we should really redesign the platform specific
interface for this class so that the underlying system can signal what
went wrong for which reason.

If you think on some error code, TARGET_NATIVE_FILE_OPEN() itself does
not prevent this. With TARGET_NATIVE_LAST_ERROR() as system indepentant
error code of the last called OS function can be detected (which is
based on errno). If some error code in the list of system indepentant
error codes is missing, it should be added.

Is this the function you need?

Sincerely,

Torsten







reply via email to

[Prev in Thread] Current Thread [Next in Thread]