E2BIG wasn't catched by the sed scripts... added.

Some #ifdefs to allow building under BeOS.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22665 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2007-10-22 16:01:15 +00:00
parent cb44673606
commit c87d0ba1fb

View File

@ -19,7 +19,7 @@ struct error_pair {
} kErrorNames[] = { } kErrorNames[] = {
#define E(e) { e, #e } #define E(e) { e, #e }
// generated by: // generated by:
// tr ' ,=\t()+' '\n\n\n\n\n\n\n' <headers/os/support/Errors.h | grep '\(^B_\|^E[A-Z]\)' | sort | uniq | awk '{ print "\tE(" $1 ")," }' // tr ' ,=\t()+' '\n\n\n\n\n\n\n' <headers/os/support/Errors.h | grep '\(^B_\|^E[A-Z0-9]\)' | sort | uniq | awk '{ print "\tE(" $1 ")," }'
E(B_ALREADY_RUNNING), E(B_ALREADY_RUNNING),
E(B_AMBIGUOUS_APP_LAUNCH), E(B_AMBIGUOUS_APP_LAUNCH),
E(B_APP_ERROR_BASE), E(B_APP_ERROR_BASE),
@ -40,7 +40,9 @@ struct error_pair {
E(B_BAD_TYPE), E(B_BAD_TYPE),
E(B_BAD_VALUE), E(B_BAD_VALUE),
E(B_BUFFER_NOT_AVAILABLE), E(B_BUFFER_NOT_AVAILABLE),
#ifdef B_BUFFER_OVERFLOW
E(B_BUFFER_OVERFLOW), E(B_BUFFER_OVERFLOW),
#endif
E(B_BUSTED_PIPE), E(B_BUSTED_PIPE),
E(B_BUSY), E(B_BUSY),
E(B_CANCELED), E(B_CANCELED),
@ -48,7 +50,9 @@ struct error_pair {
E(B_DEBUGGER_ALREADY_INSTALLED), E(B_DEBUGGER_ALREADY_INSTALLED),
E(B_DEVICE_ERROR_BASE), E(B_DEVICE_ERROR_BASE),
E(B_DEVICE_FULL), E(B_DEVICE_FULL),
#ifdef B_DEVICE_NOT_FOUND
E(B_DEVICE_NOT_FOUND), E(B_DEVICE_NOT_FOUND),
#endif
E(B_DEV_BAD_DRIVE_NUM), E(B_DEV_BAD_DRIVE_NUM),
E(B_DEV_BAD_PID), E(B_DEV_BAD_PID),
E(B_DEV_CONFIGURATION_ERROR), E(B_DEV_CONFIGURATION_ERROR),
@ -89,7 +93,9 @@ struct error_pair {
E(B_FILE_ERROR), E(B_FILE_ERROR),
E(B_FILE_EXISTS), E(B_FILE_EXISTS),
E(B_FILE_NOT_FOUND), E(B_FILE_NOT_FOUND),
#ifdef B_FILE_TOO_LARGE
E(B_FILE_TOO_LARGE), E(B_FILE_TOO_LARGE),
#endif
E(B_GENERAL_ERROR_BASE), E(B_GENERAL_ERROR_BASE),
E(B_INTERFACE_ERROR_BASE), E(B_INTERFACE_ERROR_BASE),
E(B_INTERRUPTED), E(B_INTERRUPTED),
@ -126,7 +132,9 @@ struct error_pair {
E(B_NOT_AN_EXECUTABLE), E(B_NOT_AN_EXECUTABLE),
E(B_NOT_A_DIRECTORY), E(B_NOT_A_DIRECTORY),
E(B_NOT_A_MESSAGE), E(B_NOT_A_MESSAGE),
#ifdef B_NOT_SUPPORTED
E(B_NOT_SUPPORTED), E(B_NOT_SUPPORTED),
#endif
E(B_NO_ERROR), E(B_NO_ERROR),
E(B_NO_INIT), E(B_NO_INIT),
E(B_NO_MEMORY), E(B_NO_MEMORY),
@ -145,19 +153,28 @@ struct error_pair {
E(B_READ_ONLY_DEVICE), E(B_READ_ONLY_DEVICE),
E(B_RESOURCE_NOT_FOUND), E(B_RESOURCE_NOT_FOUND),
E(B_RESOURCE_UNAVAILABLE), E(B_RESOURCE_UNAVAILABLE),
#ifdef B_RESULT_NOT_REPRESENTABLE
E(B_RESULT_NOT_REPRESENTABLE), E(B_RESULT_NOT_REPRESENTABLE),
#endif
E(B_SERVER_NOT_FOUND), E(B_SERVER_NOT_FOUND),
#ifdef B_SHUTDOWN_CANCELLED
E(B_SHUTDOWN_CANCELLED), E(B_SHUTDOWN_CANCELLED),
#endif
#ifdef B_SHUTTING_DOWN
E(B_SHUTTING_DOWN), E(B_SHUTTING_DOWN),
#endif
E(B_STORAGE_ERROR_BASE), E(B_STORAGE_ERROR_BASE),
E(B_STREAM_NOT_FOUND), E(B_STREAM_NOT_FOUND),
E(B_SUBSCRIBER_NOT_ENTERED), E(B_SUBSCRIBER_NOT_ENTERED),
E(B_TIMED_OUT), E(B_TIMED_OUT),
#ifdef B_TOO_MANY_ARGS
E(B_TOO_MANY_ARGS), E(B_TOO_MANY_ARGS),
#endif
E(B_TRANSLATION_ERROR_BASE), E(B_TRANSLATION_ERROR_BASE),
E(B_UNKNOWN_MIME_TYPE), E(B_UNKNOWN_MIME_TYPE),
E(B_UNSUPPORTED), E(B_UNSUPPORTED),
E(B_WOULD_BLOCK), E(B_WOULD_BLOCK),
E(E2BIG),
E(EACCES), E(EACCES),
E(EADDRINUSE), E(EADDRINUSE),
E(EADDRNOTAVAIL), E(EADDRNOTAVAIL),
@ -165,24 +182,36 @@ struct error_pair {
E(EAGAIN), E(EAGAIN),
E(EALREADY), E(EALREADY),
E(EBADF), E(EBADF),
#ifdef EBADMSG
E(EBADMSG), E(EBADMSG),
#endif
E(EBUSY), E(EBUSY),
#ifdef ECANCELED
E(ECANCELED), E(ECANCELED),
#endif
E(ECHILD), E(ECHILD),
E(ECONNABORTED), E(ECONNABORTED),
E(ECONNREFUSED), E(ECONNREFUSED),
E(ECONNRESET), E(ECONNRESET),
E(EDEADLK), E(EDEADLK),
#ifdef EDESTADDRREQ
E(EDESTADDRREQ), E(EDESTADDRREQ),
#endif
E(EDOM), E(EDOM),
#ifdef EDQUOT
E(EDQUOT), E(EDQUOT),
#endif
E(EEXIST), E(EEXIST),
E(EFAULT), E(EFAULT),
E(EFBIG), E(EFBIG),
E(EFPOS), E(EFPOS),
#ifdef EHOSTDOWN
E(EHOSTDOWN), E(EHOSTDOWN),
#endif
E(EHOSTUNREACH), E(EHOSTUNREACH),
#ifdef EIDRM
E(EIDRM), E(EIDRM),
#endif
E(EILSEQ), E(EILSEQ),
E(EINPROGRESS), E(EINPROGRESS),
E(EINTR), E(EINTR),
@ -194,31 +223,43 @@ struct error_pair {
E(EMFILE), E(EMFILE),
E(EMLINK), E(EMLINK),
E(EMSGSIZE), E(EMSGSIZE),
#ifdef EMULTIHOP
E(EMULTIHOP), E(EMULTIHOP),
#endif
E(ENAMETOOLONG), E(ENAMETOOLONG),
E(ENETDOWN), E(ENETDOWN),
E(ENETRESET), E(ENETRESET),
E(ENETUNREACH), E(ENETUNREACH),
E(ENFILE), E(ENFILE),
E(ENOBUFS), E(ENOBUFS),
#ifdef ENODATA
E(ENODATA), E(ENODATA),
#endif
E(ENODEV), E(ENODEV),
E(ENOENT), E(ENOENT),
E(ENOEXEC), E(ENOEXEC),
E(ENOLCK), E(ENOLCK),
#ifdef ENOLINK
E(ENOLINK), E(ENOLINK),
#endif
E(ENOMEM), E(ENOMEM),
E(ENOMSG), E(ENOMSG),
E(ENOPROTOOPT), E(ENOPROTOOPT),
E(ENOSPC), E(ENOSPC),
#ifdef ENOSR
E(ENOSR), E(ENOSR),
#endif
#ifdef ENOSTR
E(ENOSTR), E(ENOSTR),
#endif
E(ENOSYS), E(ENOSYS),
E(ENOTCONN), E(ENOTCONN),
E(ENOTDIR), E(ENOTDIR),
E(ENOTEMPTY), E(ENOTEMPTY),
E(ENOTSOCK), E(ENOTSOCK),
#ifdef ENOTSUP
E(ENOTSUP), E(ENOTSUP),
#endif
E(ENOTTY), E(ENOTTY),
E(ENXIO), E(ENXIO),
E(EOPNOTSUPP), E(EOPNOTSUPP),
@ -226,7 +267,9 @@ struct error_pair {
E(EPERM), E(EPERM),
E(EPFNOSUPPORT), E(EPFNOSUPPORT),
E(EPIPE), E(EPIPE),
#ifdef EPROTO
E(EPROTO), E(EPROTO),
#endif
E(EPROTONOSUPPORT), E(EPROTONOSUPPORT),
E(EPROTOTYPE), E(EPROTOTYPE),
E(ERANGE), E(ERANGE),
@ -236,9 +279,13 @@ struct error_pair {
E(ESPIPE), E(ESPIPE),
E(ESRCH), E(ESRCH),
E(ESTALE), E(ESTALE),
#ifdef ETIME
E(ETIME), E(ETIME),
#endif
E(ETIMEDOUT), E(ETIMEDOUT),
#ifdef ETXTBSY
E(ETXTBSY), E(ETXTBSY),
#endif
E(EWOULDBLOCK), E(EWOULDBLOCK),
E(EXDEV), E(EXDEV),
{ 0, NULL } { 0, NULL }