Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
_unix_errors.h File Reference
#include <unistd.h>
#include <stddef.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _PR_MD_MAP_DEFAULT_ERROR   _MD_unix_map_default_error
#define _PR_MD_MAP_OPENDIR_ERROR   _MD_unix_map_opendir_error
#define _PR_MD_MAP_CLOSEDIR_ERROR   _MD_unix_map_closedir_error
#define _PR_MD_MAP_READDIR_ERROR   _MD_unix_readdir_error
#define _PR_MD_MAP_UNLINK_ERROR   _MD_unix_map_unlink_error
#define _PR_MD_MAP_STAT_ERROR   _MD_unix_map_stat_error
#define _PR_MD_MAP_FSTAT_ERROR   _MD_unix_map_fstat_error
#define _PR_MD_MAP_RENAME_ERROR   _MD_unix_map_rename_error
#define _PR_MD_MAP_ACCESS_ERROR   _MD_unix_map_access_error
#define _PR_MD_MAP_MKDIR_ERROR   _MD_unix_map_mkdir_error
#define _PR_MD_MAP_RMDIR_ERROR   _MD_unix_map_rmdir_error
#define _PR_MD_MAP_READ_ERROR   _MD_unix_map_read_error
#define _PR_MD_MAP_WRITE_ERROR   _MD_unix_map_write_error
#define _PR_MD_MAP_LSEEK_ERROR   _MD_unix_map_lseek_error
#define _PR_MD_MAP_FSYNC_ERROR   _MD_unix_map_fsync_error
#define _PR_MD_MAP_CLOSE_ERROR   _MD_unix_map_close_error
#define _PR_MD_MAP_SOCKET_ERROR   _MD_unix_map_socket_error
#define _PR_MD_MAP_SOCKETAVAILABLE_ERROR   _MD_unix_map_socketavailable_error
#define _PR_MD_MAP_RECV_ERROR   _MD_unix_map_recv_error
#define _PR_MD_MAP_RECVFROM_ERROR   _MD_unix_map_recvfrom_error
#define _PR_MD_MAP_SEND_ERROR   _MD_unix_map_send_error
#define _PR_MD_MAP_SENDTO_ERROR   _MD_unix_map_sendto_error
#define _PR_MD_MAP_WRITEV_ERROR   _MD_unix_map_writev_error
#define _PR_MD_MAP_ACCEPT_ERROR   _MD_unix_map_accept_error
#define _PR_MD_MAP_CONNECT_ERROR   _MD_unix_map_connect_error
#define _PR_MD_MAP_BIND_ERROR   _MD_unix_map_bind_error
#define _PR_MD_MAP_LISTEN_ERROR   _MD_unix_map_listen_error
#define _PR_MD_MAP_SHUTDOWN_ERROR   _MD_unix_map_shutdown_error
#define _PR_MD_MAP_SOCKETPAIR_ERROR   _MD_unix_map_socketpair_error
#define _PR_MD_MAP_GETSOCKNAME_ERROR   _MD_unix_map_getsockname_error
#define _PR_MD_MAP_GETPEERNAME_ERROR   _MD_unix_map_getpeername_error
#define _PR_MD_MAP_GETSOCKOPT_ERROR   _MD_unix_map_getsockopt_error
#define _PR_MD_MAP_SETSOCKOPT_ERROR   _MD_unix_map_setsockopt_error
#define _PR_MD_MAP_OPEN_ERROR   _MD_unix_map_open_error
#define _PR_MD_MAP_MMAP_ERROR   _MD_unix_map_mmap_error
#define _PR_MD_MAP_GETHOSTNAME_ERROR   _MD_unix_map_gethostname_error
#define _PR_MD_MAP_SELECT_ERROR   _MD_unix_map_select_error
#define _PR_MD_MAP_POLL_ERROR   _MD_unix_map_poll_error
#define _PR_MD_MAP_POLL_REVENTS_ERROR   _MD_unix_map_poll_revents_error
#define _PR_MD_MAP_FLOCK_ERROR   _MD_unix_map_flock_error
#define _PR_MD_MAP_LOCKF_ERROR   _MD_unix_map_lockf_error

Functions

PR_BEGIN_EXTERN_C void _MD_unix_map_default_error (int err)
void _MD_unix_map_opendir_error (int err)
void _MD_unix_map_closedir_error (int err)
void _MD_unix_readdir_error (int err)
void _MD_unix_map_unlink_error (int err)
void _MD_unix_map_stat_error (int err)
void _MD_unix_map_fstat_error (int err)
void _MD_unix_map_rename_error (int err)
void _MD_unix_map_access_error (int err)
void _MD_unix_map_mkdir_error (int err)
void _MD_unix_map_rmdir_error (int err)
void _MD_unix_map_read_error (int err)
void _MD_unix_map_write_error (int err)
void _MD_unix_map_lseek_error (int err)
void _MD_unix_map_fsync_error (int err)
void _MD_unix_map_close_error (int err)
void _MD_unix_map_socket_error (int err)
void _MD_unix_map_socketavailable_error (int err)
void _MD_unix_map_recv_error (int err)
void _MD_unix_map_recvfrom_error (int err)
void _MD_unix_map_send_error (int err)
void _MD_unix_map_sendto_error (int err)
void _MD_unix_map_writev_error (int err)
void _MD_unix_map_accept_error (int err)
void _MD_unix_map_connect_error (int err)
void _MD_unix_map_bind_error (int err)
void _MD_unix_map_listen_error (int err)
void _MD_unix_map_shutdown_error (int err)
void _MD_unix_map_socketpair_error (int err)
void _MD_unix_map_getsockname_error (int err)
void _MD_unix_map_getpeername_error (int err)
void _MD_unix_map_getsockopt_error (int err)
void _MD_unix_map_setsockopt_error (int err)
void _MD_unix_map_open_error (int err)
void _MD_unix_map_mmap_error (int err)
void _MD_unix_map_gethostname_error (int err)
void _MD_unix_map_select_error (int err)
void _MD_unix_map_poll_error (int err)
void _MD_unix_map_poll_revents_error (int err)
void _MD_unix_map_flock_error (int err)
void _MD_unix_map_lockf_error (int err)

Define Documentation

Definition at line 116 of file _unix_errors.h.

Definition at line 71 of file _unix_errors.h.

Definition at line 122 of file _unix_errors.h.

Definition at line 92 of file _unix_errors.h.

Definition at line 53 of file _unix_errors.h.

Definition at line 119 of file _unix_errors.h.

Definition at line 47 of file _unix_errors.h.

Definition at line 164 of file _unix_errors.h.

Definition at line 65 of file _unix_errors.h.

Definition at line 89 of file _unix_errors.h.

Definition at line 152 of file _unix_errors.h.

Definition at line 137 of file _unix_errors.h.

Definition at line 134 of file _unix_errors.h.

Definition at line 140 of file _unix_errors.h.

Definition at line 125 of file _unix_errors.h.

Definition at line 167 of file _unix_errors.h.

Definition at line 86 of file _unix_errors.h.

Definition at line 74 of file _unix_errors.h.

Definition at line 149 of file _unix_errors.h.

Definition at line 146 of file _unix_errors.h.

Definition at line 50 of file _unix_errors.h.

Definition at line 158 of file _unix_errors.h.

Definition at line 161 of file _unix_errors.h.

Definition at line 80 of file _unix_errors.h.

Definition at line 56 of file _unix_errors.h.

Definition at line 101 of file _unix_errors.h.

Definition at line 104 of file _unix_errors.h.

Definition at line 68 of file _unix_errors.h.

Definition at line 77 of file _unix_errors.h.

Definition at line 155 of file _unix_errors.h.

Definition at line 107 of file _unix_errors.h.

Definition at line 110 of file _unix_errors.h.

Definition at line 143 of file _unix_errors.h.

Definition at line 128 of file _unix_errors.h.

Definition at line 95 of file _unix_errors.h.

Definition at line 98 of file _unix_errors.h.

Definition at line 131 of file _unix_errors.h.

Definition at line 62 of file _unix_errors.h.

Definition at line 59 of file _unix_errors.h.

Definition at line 83 of file _unix_errors.h.

Definition at line 113 of file _unix_errors.h.


Function Documentation

Definition at line 916 of file beos_errors.c.

{
       switch (err) {
              case EAGAIN:
#if EWOULDBLOCK != EAGAIN
              case EWOULDBLOCK:
#endif
                     PR_SetError(PR_WOULD_BLOCK_ERROR, err);
                     break;
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#if !defined(BEOS)
              case ENOTSOCK:
                     PR_SetError(PR_NOT_SOCKET_ERROR, err);
                     break;
#endif
#if !defined(BEOS)
              case EOPNOTSUPP:
#endif
              case ENODEV:
                     PR_SetError(PR_NOT_TCP_SOCKET_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EMFILE:
                     PR_SetError(PR_PROC_DESC_TABLE_FULL_ERROR, err);
                     break;
              case ENFILE:
                     PR_SetError(PR_SYS_DESC_TABLE_FULL_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case ENOMEM:
                     PR_SetError(PR_OUT_OF_MEMORY_ERROR, err);
                     break;
#ifdef ENOSR
              case ENOSR:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
#endif
#ifdef EPROTO
              case EPROTO:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
#endif
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 318 of file beos_errors.c.

{
       switch (err) {
              case EACCES:
                     PR_SetError(PR_NO_ACCESS_RIGHTS_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case EINVAL:
                     PR_SetError(PR_INVALID_ARGUMENT_ERROR, err);
                     break;
              case ELOOP:
                     PR_SetError(PR_LOOP_ERROR, err);
                     break;
              case ETIMEDOUT:
                     PR_SetError(PR_REMOTE_FILE_ERROR, err);
                     break;
              case ENAMETOOLONG:
                     PR_SetError(PR_NAME_TOO_LONG_ERROR, err);
                     break;
              case ENOENT:
                     PR_SetError(PR_FILE_NOT_FOUND_ERROR, err);
                     break;
              case ENOTDIR:
                     PR_SetError(PR_NOT_DIRECTORY_ERROR, err);
                     break;
              case EROFS:
                     PR_SetError(PR_READ_ONLY_FILESYSTEM_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 1059 of file beos_errors.c.

{
       switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#if !defined(BEOS)
              case ENOTSOCK:
                     PR_SetError(PR_NOT_SOCKET_ERROR, err);
                     break;
#endif
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EADDRNOTAVAIL:
                     PR_SetError(PR_ADDRESS_NOT_AVAILABLE_ERROR, err);
                     break;
              case EADDRINUSE:
                     PR_SetError(PR_ADDRESS_IN_USE_ERROR, err);
                     break;
              case EACCES:
                     PR_SetError(PR_NO_ACCESS_RIGHTS_ERROR, err);
                     break;
              case EINVAL:
                     PR_SetError(PR_SOCKET_ADDRESS_IS_BOUND_ERROR, err);
                     break;
#ifdef ENOSR
              case ENOSR:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
#endif
              /*
               * UNIX domain sockets are not supported in NSPR
               */
              case EIO:
              case EISDIR:
              case ELOOP:
              case ENOENT:
              case ENOTDIR:
              case EROFS:
                     PR_SetError(PR_ADDRESS_NOT_SUPPORTED_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 624 of file beos_errors.c.

{
       switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
#ifdef ENOLINK
              case ENOLINK:
#endif
              case ETIMEDOUT:
                     PR_SetError(PR_REMOTE_FILE_ERROR, err);
                     break;
              case EIO:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 76 of file beos_errors.c.

{
       switch (err) {
              case EINVAL:
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 970 of file beos_errors.c.

{
       switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
              case EADDRNOTAVAIL:
                     PR_SetError(PR_ADDRESS_NOT_AVAILABLE_ERROR, err);
                     break;
              case EINPROGRESS:
                     PR_SetError(PR_IN_PROGRESS_ERROR, err);
                     break;
              case EALREADY:
                     PR_SetError(PR_ALREADY_INITIATED_ERROR, err);
                     break;
#if !defined(BEOS)
              case ENOTSOCK:
                     PR_SetError(PR_NOT_SOCKET_ERROR, err);
                     break;
#endif
              case EAFNOSUPPORT:
                     PR_SetError(PR_ADDRESS_NOT_SUPPORTED_ERROR, err);
                     break;
              case EISCONN:
                     PR_SetError(PR_IS_CONNECTED_ERROR, err);
                     break;
              case ETIMEDOUT:
                     PR_SetError(PR_IO_TIMEOUT_ERROR, err);
                     break;
              case ECONNREFUSED:
                     PR_SetError(PR_CONNECT_REFUSED_ERROR, err);
                     break;
              case ENETUNREACH:
                     PR_SetError(PR_NETWORK_UNREACHABLE_ERROR, err);
                     break;
              case EADDRINUSE:
                     PR_SetError(PR_ADDRESS_IN_USE_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              /*
               * UNIX domain sockets are not supported in NSPR
               */
              case EACCES:
                     PR_SetError(PR_ADDRESS_NOT_SUPPORTED_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case EINVAL:
                     PR_SetError(PR_INVALID_ARGUMENT_ERROR, err);
                     break;
              case EIO:
#if defined(UNIXWARE) || defined(SNI) || defined(NEC)
                     /*
                      * On some platforms, if we connect to a port on
                      * the local host (the loopback address) that no
                      * process is listening on, we get EIO instead
                      * of ECONNREFUSED.
                      */
                     PR_SetError(PR_CONNECT_REFUSED_ERROR, err);
#else
                     PR_SetError(PR_IO_ERROR, err);
#endif
                     break;
              case ELOOP:
                     PR_SetError(PR_ADDRESS_NOT_SUPPORTED_ERROR, err);
                     break;
              case ENOENT:
                     PR_SetError(PR_ADDRESS_NOT_SUPPORTED_ERROR, err);
                     break;
#ifdef ENOSR
              case ENOSR:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
#endif
              case ENXIO:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
              case EPROTOTYPE:
                     PR_SetError(PR_ADDRESS_NOT_SUPPORTED_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 44 of file unix_errors.c.

{
    PRErrorCode prError;

    switch (err ) {
        case EACCES:
            prError = PR_NO_ACCESS_RIGHTS_ERROR;
            break;
        case EADDRINUSE:
            prError = PR_ADDRESS_IN_USE_ERROR;
            break;
        case EADDRNOTAVAIL:
            prError = PR_ADDRESS_NOT_AVAILABLE_ERROR;
            break;
        case EAFNOSUPPORT:
            prError = PR_ADDRESS_NOT_SUPPORTED_ERROR;
            break;
        case EAGAIN:
            prError = PR_WOULD_BLOCK_ERROR;
            break;
        /*
         * On QNX and Neutrino, EALREADY is defined as EBUSY.
         */
#if EALREADY != EBUSY
        case EALREADY:
            prError = PR_ALREADY_INITIATED_ERROR;
            break;
#endif
        case EBADF:
            prError = PR_BAD_DESCRIPTOR_ERROR;
            break;
#ifdef EBADMSG
        case EBADMSG:
            prError = PR_IO_ERROR;
            break;
#endif
        case EBUSY:
            prError = PR_FILESYSTEM_MOUNTED_ERROR;
            break;
        case ECONNABORTED:
            prError = PR_CONNECT_ABORTED_ERROR;
            break;
        case ECONNREFUSED:
            prError = PR_CONNECT_REFUSED_ERROR;
            break;
        case ECONNRESET:
            prError = PR_CONNECT_RESET_ERROR;
            break;
        case EDEADLK:
            prError = PR_DEADLOCK_ERROR;
            break;
#ifdef EDIRCORRUPTED
        case EDIRCORRUPTED:
            prError = PR_DIRECTORY_CORRUPTED_ERROR;
            break;
#endif
#ifdef EDQUOT
        case EDQUOT:
            prError = PR_NO_DEVICE_SPACE_ERROR;
            break;
#endif
        case EEXIST:
            prError = PR_FILE_EXISTS_ERROR;
            break;
        case EFAULT:
            prError = PR_ACCESS_FAULT_ERROR;
            break;
        case EFBIG:
            prError = PR_FILE_TOO_BIG_ERROR;
            break;
        case EHOSTUNREACH:
            prError = PR_HOST_UNREACHABLE_ERROR;
            break;
        case EINPROGRESS:
            prError = PR_IN_PROGRESS_ERROR;
            break;
        case EINTR:
            prError = PR_PENDING_INTERRUPT_ERROR;
            break;
        case EINVAL:
            prError = PR_INVALID_ARGUMENT_ERROR;
            break;
        case EIO:
            prError = PR_IO_ERROR;
            break;
        case EISCONN:
            prError = PR_IS_CONNECTED_ERROR;
            break;
        case EISDIR:
            prError = PR_IS_DIRECTORY_ERROR;
            break;
        case ELOOP:
            prError = PR_LOOP_ERROR;
            break;
        case EMFILE:
            prError = PR_PROC_DESC_TABLE_FULL_ERROR;
            break;
        case EMLINK:
            prError = PR_MAX_DIRECTORY_ENTRIES_ERROR;
            break;
        case EMSGSIZE:
            prError = PR_INVALID_ARGUMENT_ERROR;
            break;
#ifdef EMULTIHOP
        case EMULTIHOP:
            prError = PR_REMOTE_FILE_ERROR;
            break;
#endif
        case ENAMETOOLONG:
            prError = PR_NAME_TOO_LONG_ERROR;
            break;
        case ENETUNREACH:
            prError = PR_NETWORK_UNREACHABLE_ERROR;
            break;
        case ENFILE:
            prError = PR_SYS_DESC_TABLE_FULL_ERROR;
            break;
        /*
         * On SCO OpenServer 5, ENOBUFS is defined as ENOSR.
         */
#if defined(ENOBUFS) && (ENOBUFS != ENOSR)
        case ENOBUFS:
            prError = PR_INSUFFICIENT_RESOURCES_ERROR;
            break;
#endif
        case ENODEV:
            prError = PR_FILE_NOT_FOUND_ERROR;
            break;
        case ENOENT:
            prError = PR_FILE_NOT_FOUND_ERROR;
            break;
        case ENOLCK:
            prError = PR_FILE_IS_LOCKED_ERROR;
            break;
#ifdef ENOLINK 
        case ENOLINK:
            prError = PR_REMOTE_FILE_ERROR;
            break;
#endif
        case ENOMEM:
            prError = PR_OUT_OF_MEMORY_ERROR;
            break;
        case ENOPROTOOPT:
            prError = PR_INVALID_ARGUMENT_ERROR;
            break;
        case ENOSPC:
            prError = PR_NO_DEVICE_SPACE_ERROR;
            break;
#ifdef ENOSR
        case ENOSR:
            prError = PR_INSUFFICIENT_RESOURCES_ERROR;
            break;
#endif
        case ENOTCONN:
            prError = PR_NOT_CONNECTED_ERROR;
            break;
        case ENOTDIR:
            prError = PR_NOT_DIRECTORY_ERROR;
            break;
        case ENOTSOCK:
            prError = PR_NOT_SOCKET_ERROR;
            break;
        case ENXIO:
            prError = PR_FILE_NOT_FOUND_ERROR;
            break;
        case EOPNOTSUPP:
            prError = PR_NOT_TCP_SOCKET_ERROR;
            break;
#ifdef EOVERFLOW
        case EOVERFLOW:
            prError = PR_BUFFER_OVERFLOW_ERROR;
            break;
#endif
        case EPERM:
            prError = PR_NO_ACCESS_RIGHTS_ERROR;
            break;
        case EPIPE:
            prError = PR_CONNECT_RESET_ERROR;
            break;
#ifdef EPROTO
        case EPROTO:
            prError = PR_IO_ERROR;
            break;
#endif
        case EPROTONOSUPPORT:
            prError = PR_PROTOCOL_NOT_SUPPORTED_ERROR;
            break;
        case EPROTOTYPE:
            prError = PR_ADDRESS_NOT_SUPPORTED_ERROR;
            break;
        case ERANGE:
            prError = PR_INVALID_METHOD_ERROR;
            break;
        case EROFS:
            prError = PR_READ_ONLY_FILESYSTEM_ERROR;
            break;
        case ESPIPE:
            prError = PR_INVALID_METHOD_ERROR;
            break;
        case ETIMEDOUT:
            prError = PR_IO_TIMEOUT_ERROR;
            break;
#if EWOULDBLOCK != EAGAIN
        case EWOULDBLOCK:
            prError = PR_WOULD_BLOCK_ERROR;
            break;
#endif
        case EXDEV:
            prError = PR_NOT_SAME_DEVICE_ERROR;
            break;
        default:
            prError = PR_UNKNOWN_ERROR;
            break;
    }
    PR_SetError(prError, err);
}

Here is the caller graph for this function:

Definition at line 1457 of file beos_errors.c.

{
    switch (err) {
              case EBADF:
              case EINVAL:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
              case EWOULDBLOCK:
                     PR_SetError(PR_FILE_IS_LOCKED_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
    }
}

Here is the call graph for this function:

Definition at line 227 of file beos_errors.c.

{
       switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case ETIMEDOUT:
#ifdef ENOLINK
              case ENOLINK:
#endif
                     PR_SetError(PR_REMOTE_FILE_ERROR, err);
                     break;
#ifdef EOVERFLOW
              case EOVERFLOW:
                     PR_SetError(PR_BUFFER_OVERFLOW_ERROR, err);
                     break;
#endif
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 597 of file beos_errors.c.

{
       switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#ifdef ENOLINK
              case ENOLINK:
#endif
              case ETIMEDOUT:
                     PR_SetError(PR_REMOTE_FILE_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case EIO:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
              case EINVAL:
                     PR_SetError(PR_INVALID_METHOD_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 1407 of file beos_errors.c.

{
    switch (err) {
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
    }
}

Here is the call graph for this function:

Definition at line 1212 of file beos_errors.c.

{

       switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#if !defined(BEOS)
              case ENOTSOCK:
                     PR_SetError(PR_NOT_SOCKET_ERROR, err);
                     break;
#endif
              case ENOTCONN:
                     PR_SetError(PR_NOT_CONNECTED_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
#if !defined(SCO)
              case ENOBUFS:
#endif /* !defined(SCO) */
              case ENOMEM:
#ifdef ENOSR
              case ENOSR:
#endif
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 1183 of file beos_errors.c.

{
       switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#if !defined(BEOS)
              case ENOTSOCK:
                     PR_SetError(PR_NOT_SOCKET_ERROR, err);
                     break;
#endif
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
#if !defined(SCO)
              case ENOBUFS:
#endif /* !defined(SCO) */
              case ENOMEM:
#ifdef ENOSR
              case ENOSR:
#endif
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 1245 of file beos_errors.c.

{
       switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#if !defined(BEOS)
              case ENOTSOCK:
                     PR_SetError(PR_NOT_SOCKET_ERROR, err);
                     break;
#endif
              case ENOPROTOOPT:
                     PR_SetError(PR_INVALID_ARGUMENT_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EINVAL:
                     PR_SetError(PR_BUFFER_OVERFLOW_ERROR, err);
                     break;
              case ENOMEM:
#ifdef ENOSR
              case ENOSR:
#endif
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 1107 of file beos_errors.c.

{
       switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#if !defined(BEOS)
              case ENOTSOCK:
                     PR_SetError(PR_NOT_SOCKET_ERROR, err);
                     break;
#endif
#if !defined(BEOS)
              case EOPNOTSUPP:
                     PR_SetError(PR_NOT_TCP_SOCKET_ERROR, err);
                     break;
#endif
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 1473 of file beos_errors.c.

{
    switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
              case EACCES:
                     PR_SetError(PR_FILE_IS_LOCKED_ERROR, err);
                     break;
              case EDEADLK:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
    }
}

Here is the call graph for this function:

Definition at line 579 of file beos_errors.c.

{
       switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
              case ESPIPE:
                     PR_SetError(PR_INVALID_METHOD_ERROR, err);
                     break;
              case EINVAL:
                     PR_SetError(PR_INVALID_ARGUMENT_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 357 of file beos_errors.c.

{
       switch (err) {
              case ENOTDIR:
                     PR_SetError(PR_NOT_DIRECTORY_ERROR, err);
                     break;
              case ENOENT:
                     PR_SetError(PR_FILE_NOT_FOUND_ERROR, err);
                     break;
              case ENAMETOOLONG:
                     PR_SetError(PR_NAME_TOO_LONG_ERROR, err);
                     break;
              case EACCES:
                     PR_SetError(PR_NO_ACCESS_RIGHTS_ERROR, err);
                     break;
              case EEXIST:
                     PR_SetError(PR_FILE_EXISTS_ERROR, err);
                     break;
              case EROFS:
                     PR_SetError(PR_READ_ONLY_FILESYSTEM_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case ELOOP:
                     PR_SetError(PR_LOOP_ERROR, err);
                     break;
              case EMLINK:
                     PR_SetError(PR_MAX_DIRECTORY_ENTRIES_ERROR, err);
                     break;
              case ENOSPC:
                     PR_SetError(PR_NO_DEVICE_SPACE_ERROR, err);
                     break;
#ifdef EDQUOT
              case EDQUOT:
                     PR_SetError(PR_NO_DEVICE_SPACE_ERROR, err);
                     break;
#endif
              case EIO:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 1385 of file beos_errors.c.

{

       switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
              case EAGAIN:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
              case EACCES:
                     PR_SetError(PR_NO_ACCESS_RIGHTS_ERROR, err);
                     break;
              case ENOMEM:
                     PR_SetError(PR_OUT_OF_MEMORY_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 1309 of file beos_errors.c.

{
       switch (err) {
              case EACCES:
                     PR_SetError(PR_NO_ACCESS_RIGHTS_ERROR, err);
                     break;
              case EAGAIN:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
              case EBUSY:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
              case EEXIST:
                     PR_SetError(PR_FILE_EXISTS_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case EINVAL:
                     PR_SetError(PR_INVALID_ARGUMENT_ERROR, err);
                     break;
              case EIO:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
              case EISDIR:
                     PR_SetError(PR_IS_DIRECTORY_ERROR, err);
                     break;
              case ELOOP:
                     PR_SetError(PR_LOOP_ERROR, err);
                     break;
              case EMFILE:
                     PR_SetError(PR_PROC_DESC_TABLE_FULL_ERROR, err);
                     break;
              case ENAMETOOLONG:
                     PR_SetError(PR_NAME_TOO_LONG_ERROR, err);
                     break;
              case ENFILE:
                     PR_SetError(PR_SYS_DESC_TABLE_FULL_ERROR, err);
                     break;
              case ENODEV:
              case ENOENT:
              case ENXIO:
                     PR_SetError(PR_FILE_NOT_FOUND_ERROR, err);
                     break;
              case ENOMEM:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
              case ENOSPC:
                     PR_SetError(PR_NO_DEVICE_SPACE_ERROR, err);
                     break;
#ifdef ENOSR
              case ENOSR:
#endif
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
              case ENOTDIR:
                     PR_SetError(PR_NOT_DIRECTORY_ERROR, err);
                     break;
              case EPERM:
                     PR_SetError(PR_NO_ACCESS_RIGHTS_ERROR, err);
                     break;
              case ETIMEDOUT:
                     PR_SetError(PR_REMOTE_FILE_ERROR, err);
                     break;
              case EROFS:
                     PR_SetError(PR_READ_ONLY_FILESYSTEM_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 43 of file beos_errors.c.

{
       switch (err) {
              case ENOTDIR:
                     PR_SetError(PR_NOT_DIRECTORY_ERROR, err);
                     break;
              case EACCES:
                     PR_SetError(PR_NO_ACCESS_RIGHTS_ERROR, err);
                     break;
              case EMFILE:
                     PR_SetError(PR_PROC_DESC_TABLE_FULL_ERROR, err);
                     break;
              case ENFILE:
                     PR_SetError(PR_SYS_DESC_TABLE_FULL_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case ELOOP:
                     PR_SetError(PR_LOOP_ERROR, err);
                     break;
              case ENAMETOOLONG:
                     PR_SetError(PR_NAME_TOO_LONG_ERROR, err);
                     break;
              case ENOENT:
                     PR_SetError(PR_FILE_NOT_FOUND_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 1437 of file beos_errors.c.

{
    PRErrorCode prerror;
    switch (err) {
        case EAGAIN:
            prerror = PR_INSUFFICIENT_RESOURCES_ERROR;
            break;
        case EINVAL:
            prerror = PR_INVALID_ARGUMENT_ERROR;
            break;
        case EFAULT:
            prerror = PR_ACCESS_FAULT_ERROR;
            break;
        default:
            prerror = PR_UNKNOWN_ERROR;
            break;
    }
    PR_SetError(prerror, err);
}

Definition at line 450 of file beos_errors.c.

{
       switch (err) {
              case EACCES:
                     PR_SetError(PR_NO_ACCESS_RIGHTS_ERROR, err);
                     break;
              case EAGAIN:
#if EWOULDBLOCK != EAGAIN
              case EWOULDBLOCK:
#endif
                     PR_SetError(PR_WOULD_BLOCK_ERROR, err);
                     break;
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#ifdef EBADMSG
              case EBADMSG:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
#endif
              case EDEADLK:
                     PR_SetError(PR_DEADLOCK_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case EINVAL:
                     PR_SetError(PR_INVALID_METHOD_ERROR, err);
                     break;
              case EIO:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
              case ENOLCK:
                     PR_SetError(PR_FILE_IS_LOCKED_ERROR, err);
                     break;
              case ENXIO:
                     PR_SetError(PR_INVALID_ARGUMENT_ERROR, err);
                     break;
              case EISDIR:
                     PR_SetError(PR_IS_DIRECTORY_ERROR, err);
                     break;
              case ECONNRESET:
              case EPIPE:
                     PR_SetError(PR_CONNECT_RESET_ERROR, err);
                     break;
#ifdef ENOLINK
              case ENOLINK:
                     PR_SetError(PR_REMOTE_FILE_ERROR, err);
                     break;
#endif
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 683 of file beos_errors.c.

{
       switch (err) {
              case EAGAIN:
#if EWOULDBLOCK != EAGAIN
              case EWOULDBLOCK:
#endif
                     PR_SetError(PR_WOULD_BLOCK_ERROR, err);
                     break;
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#if !defined(BEOS)
              case ENOTSOCK:
                     PR_SetError(PR_NOT_SOCKET_ERROR, err);
                     break;
#endif
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case ENOMEM:
                     PR_SetError(PR_OUT_OF_MEMORY_ERROR, err);
                     break;
              case ECONNRESET:
              case EPIPE:
                     PR_SetError(PR_CONNECT_RESET_ERROR, err);
                     break;
#ifdef ENOSR
              case ENOSR:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
#endif
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 724 of file beos_errors.c.

{
       switch (err) {
              case EAGAIN:
#if EWOULDBLOCK != EAGAIN
              case EWOULDBLOCK:
#endif
                     PR_SetError(PR_WOULD_BLOCK_ERROR, err);
                     break;
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#if !defined(BEOS)
              case ENOTSOCK:
                     PR_SetError(PR_NOT_SOCKET_ERROR, err);
                     break;
#endif
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case ENOMEM:
                     PR_SetError(PR_OUT_OF_MEMORY_ERROR, err);
                     break;
#ifdef ENOSR
              case ENOSR:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
#endif
              case ECONNRESET:
                     PR_SetError(PR_CONNECT_RESET_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 256 of file beos_errors.c.

{
       switch (err) {
              case EACCES:
                     PR_SetError(PR_NO_ACCESS_RIGHTS_ERROR, err);
                     break;
              case EBUSY:
                     PR_SetError(PR_FILESYSTEM_MOUNTED_ERROR, err);
                     break;
#ifdef EDQUOT
              case EDQUOT:
                     PR_SetError(PR_NO_DEVICE_SPACE_ERROR, err);
                     break;
#endif
              case EEXIST:
                     PR_SetError(PR_DIRECTORY_NOT_EMPTY_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case EINVAL:
                     PR_SetError(PR_INVALID_ARGUMENT_ERROR, err);
                     break;
              case EIO:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
              case EISDIR:
                     PR_SetError(PR_IS_DIRECTORY_ERROR, err);
                     break;
              case ELOOP:
                     PR_SetError(PR_LOOP_ERROR, err);
                     break;
              case ENAMETOOLONG:
                     PR_SetError(PR_NAME_TOO_LONG_ERROR, err);
                     break;
              case ENOENT:
                     PR_SetError(PR_FILE_NOT_FOUND_ERROR, err);
                     break;
              case ENOSPC:
                     PR_SetError(PR_NO_DEVICE_SPACE_ERROR, err);
                     break;
              case ENOTDIR:
                     PR_SetError(PR_NOT_DIRECTORY_ERROR, err);
                     break;
              case EROFS:
                     PR_SetError(PR_READ_ONLY_FILESYSTEM_ERROR, err);
                     break;
              case EXDEV:
                     PR_SetError(PR_NOT_SAME_DEVICE_ERROR, err);
                     break;
              case EMLINK:
                     PR_SetError(PR_MAX_DIRECTORY_ENTRIES_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 404 of file beos_errors.c.

{

       switch (err) {
              case EACCES:
                     PR_SetError(PR_NO_ACCESS_RIGHTS_ERROR, err);
                     break;
              case EBUSY:
                     PR_SetError(PR_FILESYSTEM_MOUNTED_ERROR, err);
                     break;
              case EEXIST:
                     PR_SetError(PR_DIRECTORY_NOT_EMPTY_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EINVAL:
                     PR_SetError(PR_DIRECTORY_NOT_EMPTY_ERROR, err);
                     break;
              case EIO:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
              case ELOOP:
                     PR_SetError(PR_LOOP_ERROR, err);
                     break;
              case ETIMEDOUT:
                     PR_SetError(PR_REMOTE_FILE_ERROR, err);
                     break;
              case ENAMETOOLONG:
                     PR_SetError(PR_NAME_TOO_LONG_ERROR, err);
                     break;
              case ENOENT:
                     PR_SetError(PR_FILE_NOT_FOUND_ERROR, err);
                     break;
              case ENOTDIR:
                     PR_SetError(PR_NOT_DIRECTORY_ERROR, err);
                     break;
              case EROFS:
                     PR_SetError(PR_READ_ONLY_FILESYSTEM_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 1419 of file beos_errors.c.

{
    switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case EINVAL:
                     PR_SetError(PR_INVALID_ARGUMENT_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
    }
}

Here is the call graph for this function:

Definition at line 764 of file beos_errors.c.

{
       switch (err) {
              case EAGAIN:
#if EWOULDBLOCK != EAGAIN
              case EWOULDBLOCK:
#endif
                     PR_SetError(PR_WOULD_BLOCK_ERROR, err);
                     break;
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#if !defined(BEOS)
              case ENOTSOCK:
                     PR_SetError(PR_NOT_SOCKET_ERROR, err);
                     break;
#endif
#if !defined(BEOS)
              case EMSGSIZE:
#endif
              case EINVAL:
                     PR_SetError(PR_INVALID_ARGUMENT_ERROR, err);
                     break;
#if !defined(SCO)
              case ENOBUFS:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
#endif /* !defined(SCO) */
              case ECONNREFUSED:
                     PR_SetError(PR_CONNECT_REFUSED_ERROR, err);
                     break;
              case EISCONN:
                     PR_SetError(PR_IS_CONNECTED_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case ENOMEM:
                     PR_SetError(PR_OUT_OF_MEMORY_ERROR, err);
                     break;
#ifdef ENOSR
              case ENOSR:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
#endif
              case ECONNRESET:
              case EPIPE:
                     PR_SetError(PR_CONNECT_RESET_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 822 of file beos_errors.c.

{
       switch (err) {
              case EAGAIN:
#if EWOULDBLOCK != EAGAIN
              case EWOULDBLOCK:
#endif
                     PR_SetError(PR_WOULD_BLOCK_ERROR, err);
                     break;
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#if !defined(BEOS)
              case ENOTSOCK:
                     PR_SetError(PR_NOT_SOCKET_ERROR, err);
                     break;
#endif
#if !defined(BEOS)
              case EMSGSIZE:
#endif
              case EINVAL:
                     PR_SetError(PR_INVALID_ARGUMENT_ERROR, err);
                     break;
#if !defined(SCO)
              case ENOBUFS:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
#endif /* !defined(SCO) */
              case ECONNREFUSED:
                     PR_SetError(PR_CONNECT_REFUSED_ERROR, err);
                     break;
              case EISCONN:
                     PR_SetError(PR_IS_CONNECTED_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case ENOMEM:
                     PR_SetError(PR_OUT_OF_MEMORY_ERROR, err);
                     break;
#ifdef ENOSR
              case ENOSR:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
#endif
              case ECONNRESET:
              case EPIPE:
                     PR_SetError(PR_CONNECT_RESET_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 1277 of file beos_errors.c.

{
       switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#if !defined(BEOS)
              case ENOTSOCK:
                     PR_SetError(PR_NOT_SOCKET_ERROR, err);
                     break;
#endif
              case ENOPROTOOPT:
                     PR_SetError(PR_INVALID_ARGUMENT_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EINVAL:
                     PR_SetError(PR_BUFFER_OVERFLOW_ERROR, err);
                     break;
              case ENOMEM:
#ifdef ENOSR
              case ENOSR:
#endif
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 1129 of file beos_errors.c.

{
       switch (err) {
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#if !defined(BEOS)
              case ENOTSOCK:
                     PR_SetError(PR_NOT_SOCKET_ERROR, err);
                     break;
#endif
              case ENOTCONN:
                     PR_SetError(PR_NOT_CONNECTED_ERROR, err);
                     break;
              case ENOMEM:
                     PR_SetError(PR_OUT_OF_MEMORY_ERROR, err);
                     break;
#ifdef ENOSR
              case ENOSR:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
#endif
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 648 of file beos_errors.c.

{
       switch (err) {
              case EPROTONOSUPPORT:
                     PR_SetError(PR_PROTOCOL_NOT_SUPPORTED_ERROR, err);
                     break;
              case EMFILE:
                     PR_SetError(PR_PROC_DESC_TABLE_FULL_ERROR, err);
                     break;
              case ENFILE:
                     PR_SetError(PR_SYS_DESC_TABLE_FULL_ERROR, err);
                     break;
              case EACCES:
                     PR_SetError(PR_NO_ACCESS_RIGHTS_ERROR, err);
                     break;
#if !defined(SCO)
              case ENOBUFS:
#endif /* !defined(SCO) */
              case ENOMEM:
#ifdef ENOSR
              case ENOSR:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
#endif
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 678 of file beos_errors.c.

{
       PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
}

Definition at line 1157 of file beos_errors.c.

{
       switch (err) {
              case EMFILE:
                     PR_SetError(PR_PROC_DESC_TABLE_FULL_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case ENOMEM:
#ifdef ENOSR
              case ENOSR:
#endif
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
              case EAFNOSUPPORT:
              case EPROTONOSUPPORT:
#if !defined(BEOS)
              case EOPNOTSUPP:
#endif
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 189 of file beos_errors.c.

{
       switch (err) {
              case EACCES:
                     PR_SetError(PR_NO_ACCESS_RIGHTS_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case ETIMEDOUT:
                     PR_SetError(PR_REMOTE_FILE_ERROR, err);
                     break;
              case ELOOP:
                     PR_SetError(PR_LOOP_ERROR, err);
                     break;
              case ENAMETOOLONG:
                     PR_SetError(PR_NAME_TOO_LONG_ERROR, err);
                     break;
              case ENOENT:
                     PR_SetError(PR_FILE_NOT_FOUND_ERROR, err);
                     break;
              case ENOTDIR:
                     PR_SetError(PR_NOT_DIRECTORY_ERROR, err);
                     break;
#ifdef EOVERFLOW
              case EOVERFLOW:
                     PR_SetError(PR_BUFFER_OVERFLOW_ERROR, err);
                     break;
#endif
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 150 of file beos_errors.c.

{
       switch (err) {
              case EACCES:
                     PR_SetError(PR_NO_ACCESS_RIGHTS_ERROR, err);
                     break;
              case EBUSY:
                     PR_SetError(PR_FILESYSTEM_MOUNTED_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case ELOOP:
                     PR_SetError(PR_LOOP_ERROR, err);
                     break;
              case ENAMETOOLONG:
                     PR_SetError(PR_NAME_TOO_LONG_ERROR, err);
                     break;
              case ENOENT:
                     PR_SetError(PR_FILE_NOT_FOUND_ERROR, err);
                     break;
              case ENOTDIR:
                     PR_SetError(PR_NOT_DIRECTORY_ERROR, err);
                     break;
              case EPERM:
                     PR_SetError(PR_IS_DIRECTORY_ERROR, err);
                     break;
              case EROFS:
                     PR_SetError(PR_READ_ONLY_FILESYSTEM_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 509 of file beos_errors.c.

{
       switch (err) {
              case EAGAIN:
#if EWOULDBLOCK != EAGAIN
              case EWOULDBLOCK:
#endif
                     PR_SetError(PR_WOULD_BLOCK_ERROR, err);
                     break;
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
              case EDEADLK:
                     PR_SetError(PR_DEADLOCK_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EFBIG:
                     PR_SetError(PR_FILE_TOO_BIG_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case EINVAL:
                     PR_SetError(PR_INVALID_METHOD_ERROR, err);
                     break;
              case EIO:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
              case ENOLCK:
                     PR_SetError(PR_FILE_IS_LOCKED_ERROR, err);
                     break;
#ifdef ENOSR
              case ENOSR:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
#endif
              case ENOSPC:
                     PR_SetError(PR_NO_DEVICE_SPACE_ERROR, err);
                     break;
              case ENXIO:
                     PR_SetError(PR_INVALID_METHOD_ERROR, err);
                     break;
              case ERANGE:
                     PR_SetError(PR_INVALID_METHOD_ERROR, err);
                     break;
              case ETIMEDOUT:
                     PR_SetError(PR_REMOTE_FILE_ERROR, err);
                     break;
              case ECONNRESET:
              case EPIPE:
                     PR_SetError(PR_CONNECT_RESET_ERROR, err);
                     break;
#ifdef EDQUOT
              case EDQUOT:
                     PR_SetError(PR_NO_DEVICE_SPACE_ERROR, err);
                     break;
#endif
#ifdef ENOLINK
              case ENOLINK:
                     PR_SetError(PR_REMOTE_FILE_ERROR, err);
                     break;
#endif
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 880 of file beos_errors.c.

{
       switch (err) {
              case EAGAIN:
#if EWOULDBLOCK != EAGAIN
              case EWOULDBLOCK:
#endif
                     PR_SetError(PR_WOULD_BLOCK_ERROR, err);
                     break;
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
#ifdef ENOSR
              case ENOSR:
                     PR_SetError(PR_INSUFFICIENT_RESOURCES_ERROR, err);
                     break;
#endif
              case EINVAL:
                     PR_SetError(PR_INVALID_ARGUMENT_ERROR, err);
                     break;
              case ECONNRESET:
              case EPIPE:
                     PR_SetError(PR_CONNECT_RESET_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}

Here is the call graph for this function:

Definition at line 89 of file beos_errors.c.

{

       switch (err) {
              case 0:
              case ENOENT:
                     PR_SetError(PR_NO_MORE_FILES_ERROR, err);
                     break;
              case EBADF:
                     PR_SetError(PR_BAD_DESCRIPTOR_ERROR, err);
                     break;
#ifdef IRIX
#ifdef IRIX5_3
#else
              case EDIRCORRUPTED:
                     PR_SetError(PR_DIRECTORY_CORRUPTED_ERROR, err);
                     break;
#endif
#endif
#ifdef EOVERFLOW
              case EOVERFLOW:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
#endif
              case EINVAL:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
#ifdef EBADMSG
              case EBADMSG:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
#endif
              case EDEADLK:
                     PR_SetError(PR_DEADLOCK_ERROR, err);
                     break;
              case EFAULT:
                     PR_SetError(PR_ACCESS_FAULT_ERROR, err);
                     break;
              case EINTR:
                     PR_SetError(PR_PENDING_INTERRUPT_ERROR, err);
                     break;
              case EIO:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
              case ENOLCK:
                     PR_SetError(PR_FILE_IS_LOCKED_ERROR, err);
                     break;
#ifdef ENOLINK
              case ENOLINK:
                     PR_SetError(PR_REMOTE_FILE_ERROR, err);
                     break;
#endif
              case ENXIO:
                     PR_SetError(PR_IO_ERROR, err);
                     break;
              default:
                     PR_SetError(PR_UNKNOWN_ERROR, err);
                     break;
       }
}