On Wed, 28 Nov 2007, micke wrote:

> perror says: invalid argument, but is perror compatible with priocntl?
> errno is 22, can I get the errno msg? of do I have to check it manually? Not 
> that home at error handling in c. :(
> I am root.

For "descriptions" of the errno values, see <sys/errno.h>, which says 
EINVAL is 22. perror / strerror will simply print the localized version of 
the corresponding comment in <sys/errno.h>.

EINVAL is a "valid" failure code for priocntl(2), see manpage, "man -s 2 
priocntl".

Have you got a small testcase for the failure ? It might be as simple as a 
typo in some structure initialization ...

FrankH.



>
>
> This message posted from opensolaris.org
> _______________________________________________
> opensolaris-code mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
>

------------------------------------------------------------------------------
No good can come from selling your freedom, not for all the gold in the world,
for the value of this heavenly gift far exceeds that of any fortune on earth.
------------------------------------------------------------------------------
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to