[openbeos] Error codes

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: "Open BeOS" <openbeos@xxxxxxxxxxxxx>
  • Date: Thu, 17 Oct 2002 18:19:26 +0200 CEST

Hi,

does anybody mind if I add some more error types and correct some wrong 
B_ names?
A short list, most likely not complete:

wrong names:
EBADF => is currently B_FILE_ERROR, but should be B_BAD_FD or something 
like this

missing names:
EOPNOTSUPP => B_NOT_SUPPORTED
EFBIG => B_FILE_TOO_LARGE
E2BIG => B_TOO_MANY_ARGS
ERANGE => B_RESULT_TOO_LARGE
ENXIO => B_BAD_DEVICE (not sure about this one - B_BAD_IO_DEVICE, 
B_IO_DEVICE_NOT_FOUND, ...?)
ENODEV => B_DEVICE_NOT_FOUND

missing codes:
EACCESS => B_ACCESS_DENIED
(many network codes)

Currently, most functions return B_BAD_VALUE when they should return 
ENODEV instead - I think we could safely fix this.
Furthermore, strerror() doesn't always work correctly, at least in 
Dano, maybe in R5.

Adios...
   Axel.



Other related posts: