Workqueues and internal API conventions
Posted Aug 31, 2006 22:05 UTC (Thu) by giraffedata
Parent article: Workqueues and internal API conventions
This convention goes against the normal C conventions for boolean values - a "false" value means that everything is OK
This is a strange observation. First, there's no C convention that a "false" boolean value means "something's wrong," and second, there's no C convention that the return code of a function is a boolean value.
The strongest C convention for return codes, which is actually older than C, is that the return code is an error code -- it tells what's wrong. 0 is a value that naturally says, "nothing."
to post comments)