Re: use result of open(2) to check for presence
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Jan 5, 2006, 15:12 UTC
- Message-ID
- <81b0412b0601050712q4c2123f7i8e9190c3b75b6fda@mail.gmail.com>
- In-Reply-To
- <118833cc0601050648t17f68bcch8fd7c541585e965c@mail.gmail.com>
On 1/5/06, Morten Welinder <mwelinder@gmail.com> wrote:
> Neat, but perhaps you should check the fstat return code. > It actually can fail, for example if the filesize cannot be represented in the > structure because it is too big.
Yes, of course. It will be added along with the missing test for mmap returning MAP_FAILED. Sometime.
Sarcasm aside, how do you get such a situation?