Subject: Re: fstat() and cloned devices
To: None <tech-kern@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 10/07/2007 23:23:59
>> If fstat() returns -1 errno is set to 45 (EOPNOTSUPP) which is not
>> listed on the man page for fstat().
> Realistically, fstat on an arbitrary object can fail with almost any
> error, depending on what filesystem code backs the object you're
> looking at.  Trying to enumerate all the possibilities in the man
> pages is a losing battle, and in general the errors listed should be
> treated as representative rather than comprehensive.

Then fstat(2) really needs to be updated to make this clear.  In
general, the lists of errnos are (or at least are represented as)
comprehensive.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B