All of lore.kernel.org
 help / color / mirror / Atom feed
* standard error codes
@ 2017-03-14  4:33 Tobin C. Harding
  2017-03-14  6:15 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Tobin C. Harding @ 2017-03-14  4:33 UTC (permalink / raw)
  To: kernelnewbies

Driver code in staging/drivers/ks7010 uses the error code -E2BIG as
the error returned if a string argument is larger than destination
buffer. Would this not be better suited to the error code -EOVERFLOW?
Does it matter?

For reference;

#define E2BIG        7  /* Argument list too long */
#define EOVERFLOW   75  /* Value too large for defined data type */

thanks,
Tobin.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* standard error codes
  2017-03-14  4:33 standard error codes Tobin C. Harding
@ 2017-03-14  6:15 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2017-03-14  6:15 UTC (permalink / raw)
  To: kernelnewbies

On Tue, Mar 14, 2017 at 03:33:38PM +1100, Tobin C. Harding wrote:
> Driver code in staging/drivers/ks7010 uses the error code -E2BIG as
> the error returned if a string argument is larger than destination
> buffer. Would this not be better suited to the error code -EOVERFLOW?
> Does it matter?
> 
> For reference;
> 
> #define E2BIG        7  /* Argument list too long */
> #define EOVERFLOW   75  /* Value too large for defined data type */

It all depends on what happens to this error code.  Is it sent to
userspace?  If so, what type of itnerface is it?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-14  6:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-14  4:33 standard error codes Tobin C. Harding
2017-03-14  6:15 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.