Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
_win32_errors.h File Reference
#include <windows.h>
#include <winsock.h>
#include <errno.h>

Go to the source code of this file.

Defines

#define _PR_MD_MAP_DEFAULT_ERROR   _MD_win32_map_default_error
#define _PR_MD_MAP_OPENDIR_ERROR   _MD_win32_map_opendir_error
#define _PR_MD_MAP_CLOSEDIR_ERROR   _MD_win32_map_closedir_error
#define _PR_MD_MAP_READDIR_ERROR   _MD_unix_readdir_error
#define _PR_MD_MAP_DELETE_ERROR   _MD_win32_map_delete_error
#define _PR_MD_MAP_STAT_ERROR   _MD_win32_map_stat_error
#define _PR_MD_MAP_FSTAT_ERROR   _MD_win32_map_fstat_error
#define _PR_MD_MAP_RENAME_ERROR   _MD_win32_map_rename_error
#define _PR_MD_MAP_ACCESS_ERROR   _MD_win32_map_access_error
#define _PR_MD_MAP_MKDIR_ERROR   _MD_win32_map_mkdir_error
#define _PR_MD_MAP_RMDIR_ERROR   _MD_win32_map_rmdir_error
#define _PR_MD_MAP_READ_ERROR   _MD_win32_map_read_error
#define _PR_MD_MAP_TRANSMITFILE_ERROR   _MD_win32_map_transmitfile_error
#define _PR_MD_MAP_WRITE_ERROR   _MD_win32_map_write_error
#define _PR_MD_MAP_LSEEK_ERROR   _MD_win32_map_lseek_error
#define _PR_MD_MAP_FSYNC_ERROR   _MD_win32_map_fsync_error
#define _PR_MD_MAP_CLOSE_ERROR   _MD_win32_map_close_error
#define _PR_MD_MAP_SOCKET_ERROR   _MD_win32_map_socket_error
#define _PR_MD_MAP_RECV_ERROR   _MD_win32_map_recv_error
#define _PR_MD_MAP_RECVFROM_ERROR   _MD_win32_map_recvfrom_error
#define _PR_MD_MAP_SEND_ERROR   _MD_win32_map_send_error
#define _PR_MD_MAP_SENDTO_ERROR   _MD_win32_map_sendto_error
#define _PR_MD_MAP_ACCEPT_ERROR   _MD_win32_map_accept_error
#define _PR_MD_MAP_ACCEPTEX_ERROR   _MD_win32_map_acceptex_error
#define _PR_MD_MAP_CONNECT_ERROR   _MD_win32_map_connect_error
#define _PR_MD_MAP_BIND_ERROR   _MD_win32_map_bind_error
#define _PR_MD_MAP_LISTEN_ERROR   _MD_win32_map_listen_error
#define _PR_MD_MAP_SHUTDOWN_ERROR   _MD_win32_map_shutdown_error
#define _PR_MD_MAP_GETSOCKNAME_ERROR   _MD_win32_map_getsockname_error
#define _PR_MD_MAP_GETPEERNAME_ERROR   _MD_win32_map_getpeername_error
#define _PR_MD_MAP_GETSOCKOPT_ERROR   _MD_win32_map_getsockopt_error
#define _PR_MD_MAP_SETSOCKOPT_ERROR   _MD_win32_map_setsockopt_error
#define _PR_MD_MAP_OPEN_ERROR   _MD_win32_map_open_error
#define _PR_MD_MAP_GETHOSTNAME_ERROR   _MD_win32_map_gethostname_error
#define _PR_MD_MAP_SELECT_ERROR   _MD_win32_map_select_error
#define _PR_MD_MAP_LOCKF_ERROR   _MD_win32_map_lockf_error

Functions

void _MD_win32_map_default_error (PRInt32 err)
void _MD_win32_map_opendir_error (PRInt32 err)
void _MD_win32_map_closedir_error (PRInt32 err)
void _MD_unix_readdir_error (PRInt32 err)
void _MD_win32_map_delete_error (PRInt32 err)
void _MD_win32_map_stat_error (PRInt32 err)
void _MD_win32_map_fstat_error (PRInt32 err)
void _MD_win32_map_rename_error (PRInt32 err)
void _MD_win32_map_access_error (PRInt32 err)
void _MD_win32_map_mkdir_error (PRInt32 err)
void _MD_win32_map_rmdir_error (PRInt32 err)
void _MD_win32_map_read_error (PRInt32 err)
void _MD_win32_map_transmitfile_error (PRInt32 err)
void _MD_win32_map_write_error (PRInt32 err)
void _MD_win32_map_lseek_error (PRInt32 err)
void _MD_win32_map_fsync_error (PRInt32 err)
void _MD_win32_map_close_error (PRInt32 err)
void _MD_win32_map_socket_error (PRInt32 err)
void _MD_win32_map_recv_error (PRInt32 err)
void _MD_win32_map_recvfrom_error (PRInt32 err)
void _MD_win32_map_send_error (PRInt32 err)
void _MD_win32_map_sendto_error (PRInt32 err)
void _MD_win32_map_accept_error (PRInt32 err)
void _MD_win32_map_acceptex_error (PRInt32 err)
PRInt32 _MD_win32_map_connect_error (PRInt32 err)
void _MD_win32_map_bind_error (PRInt32 err)
void _MD_win32_map_listen_error (PRInt32 err)
void _MD_win32_map_shutdown_error (PRInt32 err)
void _MD_win32_map_getsockname_error (PRInt32 err)
void _MD_win32_map_getpeername_error (PRInt32 err)
void _MD_win32_map_getsockopt_error (PRInt32 err)
void _MD_win32_map_setsockopt_error (PRInt32 err)
void _MD_win32_map_open_error (PRInt32 err)
void _MD_win32_map_gethostname_error (PRInt32 err)
void _MD_win32_map_select_error (PRInt32 err)
void _MD_win32_map_lockf_error (int err)

Define Documentation

Definition at line 113 of file _win32_errors.h.

Definition at line 116 of file _win32_errors.h.

Definition at line 71 of file _win32_errors.h.

Definition at line 122 of file _win32_errors.h.

Definition at line 95 of file _win32_errors.h.

Definition at line 53 of file _win32_errors.h.

Definition at line 119 of file _win32_errors.h.

Definition at line 47 of file _win32_errors.h.

Definition at line 59 of file _win32_errors.h.

Definition at line 65 of file _win32_errors.h.

Definition at line 92 of file _win32_errors.h.

Definition at line 146 of file _win32_errors.h.

Definition at line 134 of file _win32_errors.h.

Definition at line 131 of file _win32_errors.h.

Definition at line 137 of file _win32_errors.h.

Definition at line 125 of file _win32_errors.h.

Definition at line 152 of file _win32_errors.h.

Definition at line 89 of file _win32_errors.h.

Definition at line 74 of file _win32_errors.h.

Definition at line 143 of file _win32_errors.h.

Definition at line 50 of file _win32_errors.h.

Definition at line 80 of file _win32_errors.h.

Definition at line 56 of file _win32_errors.h.

Definition at line 101 of file _win32_errors.h.

Definition at line 104 of file _win32_errors.h.

Definition at line 68 of file _win32_errors.h.

Definition at line 77 of file _win32_errors.h.

Definition at line 149 of file _win32_errors.h.

Definition at line 107 of file _win32_errors.h.

Definition at line 110 of file _win32_errors.h.

Definition at line 140 of file _win32_errors.h.

Definition at line 128 of file _win32_errors.h.

Definition at line 98 of file _win32_errors.h.

Definition at line 62 of file _win32_errors.h.

Definition at line 83 of file _win32_errors.h.

Definition at line 86 of file _win32_errors.h.


Function Documentation

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;
       }
}

Here is the call graph for this function:

Definition at line 422 of file win32_errors.c.

{
    PRErrorCode prError;

    switch (err) {
        case WSAEOPNOTSUPP:
            prError = PR_NOT_TCP_SOCKET_ERROR;
            break;
        case WSAEINVAL:
            prError = PR_INVALID_STATE_ERROR;
            break;
        default:
            _MD_win32_map_default_error(err);
            return;
    }
    PR_SetError(prError, err);
}

Here is the call graph for this function:

Definition at line 440 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 328 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 466 of file win32_errors.c.

{
    PRErrorCode prError;

    switch (err) {
        case WSAEINVAL:
            prError = PR_SOCKET_ADDRESS_IS_BOUND_ERROR;
            break;
        default:
            _MD_win32_map_default_error(err);
            return;
    }
    PR_SetError(prError, err);
}

Here is the call graph for this function:

Definition at line 371 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 296 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 445 of file win32_errors.c.

{
    PRErrorCode prError;

    switch (err) {
        case WSAEWOULDBLOCK:
            prError = PR_IN_PROGRESS_ERROR;
            break;
        case WSAEINVAL:
            prError = PR_ALREADY_INITIATED_ERROR;
            break;
        case WSAETIMEDOUT:
            prError = PR_IO_TIMEOUT_ERROR;
            break;
        default:
            _MD_win32_map_default_error(err);
            return;
    }
    PR_SetError(prError, err);
}

Here is the call graph for this function:

Definition at line 81 of file win32_errors.c.

{
    PRErrorCode prError;

    switch (err) {
        case ERROR_ACCESS_DENIED:
            prError = PR_NO_ACCESS_RIGHTS_ERROR;
            break;
        case ERROR_ALREADY_EXISTS:
            prError = PR_FILE_EXISTS_ERROR;
            break;
        case ERROR_CALL_NOT_IMPLEMENTED:
            prError = PR_NOT_IMPLEMENTED_ERROR;
            break;
        case ERROR_DISK_CORRUPT:
            prError = PR_IO_ERROR; 
            break;
        case ERROR_DISK_FULL:
            prError = PR_NO_DEVICE_SPACE_ERROR;
            break;
        case ERROR_DISK_OPERATION_FAILED:
            prError = PR_IO_ERROR;
            break;
        case ERROR_DRIVE_LOCKED:
            prError = PR_FILE_IS_LOCKED_ERROR;
            break;
        case ERROR_FILENAME_EXCED_RANGE:
            prError = PR_NAME_TOO_LONG_ERROR;
            break;
        case ERROR_FILE_CORRUPT:
            prError = PR_IO_ERROR;
            break;
        case ERROR_FILE_EXISTS:
            prError = PR_FILE_EXISTS_ERROR;
            break;
        case ERROR_FILE_INVALID:
            prError = PR_BAD_DESCRIPTOR_ERROR;
            break;
        case ERROR_FILE_NOT_FOUND:
            prError = PR_FILE_NOT_FOUND_ERROR;
            break;
        case ERROR_HANDLE_DISK_FULL:
            prError = PR_NO_DEVICE_SPACE_ERROR;
            break;
        case ERROR_INVALID_ADDRESS:
            prError = PR_ACCESS_FAULT_ERROR;
            break;
        case ERROR_INVALID_HANDLE:
            prError = PR_BAD_DESCRIPTOR_ERROR;
            break;
        case ERROR_INVALID_NAME:
            prError = PR_INVALID_ARGUMENT_ERROR;
            break;
        case ERROR_INVALID_PARAMETER:
            prError = PR_INVALID_ARGUMENT_ERROR;
            break;
        case ERROR_INVALID_USER_BUFFER:
            prError = PR_INSUFFICIENT_RESOURCES_ERROR;
            break;
        case ERROR_LOCKED:
            prError = PR_FILE_IS_LOCKED_ERROR;
            break;
        case ERROR_NETNAME_DELETED:
            prError = PR_CONNECT_RESET_ERROR;
            break;
        case ERROR_NOACCESS:
            prError = PR_ACCESS_FAULT_ERROR;
            break;
        case ERROR_NOT_ENOUGH_MEMORY:
            prError = PR_INSUFFICIENT_RESOURCES_ERROR;
            break;
        case ERROR_NOT_ENOUGH_QUOTA:
            prError = PR_OUT_OF_MEMORY_ERROR;
            break;
        case ERROR_NOT_READY:
            prError = PR_IO_ERROR;
            break;
        case ERROR_NO_MORE_FILES:
            prError = PR_NO_MORE_FILES_ERROR;
            break;
        case ERROR_OPEN_FAILED:
            prError = PR_IO_ERROR;
            break;
        case ERROR_OPEN_FILES:
            prError = PR_IO_ERROR;
            break;
        case ERROR_OPERATION_ABORTED:
            prError = PR_OPERATION_ABORTED_ERROR;
            break;
        case ERROR_OUTOFMEMORY:
            prError = PR_INSUFFICIENT_RESOURCES_ERROR;
            break;
        case ERROR_PATH_BUSY:
            prError = PR_IO_ERROR;
            break;
        case ERROR_PATH_NOT_FOUND:
            prError = PR_FILE_NOT_FOUND_ERROR;
            break;
        case ERROR_SEEK_ON_DEVICE:
            prError = PR_IO_ERROR;
            break;
        case ERROR_SHARING_VIOLATION:
            prError = PR_FILE_IS_BUSY_ERROR;
            break;
        case ERROR_STACK_OVERFLOW:
            prError = PR_ACCESS_FAULT_ERROR;
            break;
        case ERROR_TOO_MANY_OPEN_FILES:
            prError = PR_SYS_DESC_TABLE_FULL_ERROR;
            break;
        case ERROR_WRITE_PROTECT:
            prError = PR_NO_ACCESS_RIGHTS_ERROR;
            break;
        case WSAEACCES:
            prError = PR_NO_ACCESS_RIGHTS_ERROR;
            break;
        case WSAEADDRINUSE:
            prError = PR_ADDRESS_IN_USE_ERROR;
            break;
        case WSAEADDRNOTAVAIL:
            prError = PR_ADDRESS_NOT_AVAILABLE_ERROR;
            break;
        case WSAEAFNOSUPPORT:
            prError = PR_ADDRESS_NOT_SUPPORTED_ERROR;
            break;
        case WSAEALREADY:
            prError = PR_ALREADY_INITIATED_ERROR;
            break;
        case WSAEBADF:
            prError = PR_BAD_DESCRIPTOR_ERROR;
            break;
        case WSAECONNABORTED:
            prError = PR_CONNECT_ABORTED_ERROR;
            break;
        case WSAECONNREFUSED:
            prError = PR_CONNECT_REFUSED_ERROR;
            break;
        case WSAECONNRESET:
            prError = PR_CONNECT_RESET_ERROR;
            break;
        case WSAEDESTADDRREQ:
            prError = PR_INVALID_ARGUMENT_ERROR;
            break;
        case WSAEFAULT:
            prError = PR_ACCESS_FAULT_ERROR;
            break;
        case WSAEHOSTUNREACH:
            prError = PR_HOST_UNREACHABLE_ERROR;
            break;
        case WSAEINVAL:
            prError = PR_INVALID_ARGUMENT_ERROR;
            break;
        case WSAEISCONN:
            prError = PR_IS_CONNECTED_ERROR;
            break;
        case WSAEMFILE:
            prError = PR_PROC_DESC_TABLE_FULL_ERROR;
            break;
        case WSAEMSGSIZE:
            prError = PR_BUFFER_OVERFLOW_ERROR;
            break;
        case WSAENETDOWN:
            prError = PR_NETWORK_DOWN_ERROR;
            break;
        case WSAENETRESET:
            prError = PR_CONNECT_ABORTED_ERROR;
            break;
        case WSAENETUNREACH:
            prError = PR_NETWORK_UNREACHABLE_ERROR;
            break;
        case WSAENOBUFS:
            prError = PR_INSUFFICIENT_RESOURCES_ERROR;
            break;
        case WSAENOPROTOOPT:
            prError = PR_INVALID_ARGUMENT_ERROR;
            break;
        case WSAENOTCONN:
            prError = PR_NOT_CONNECTED_ERROR;
            break;
        case WSAENOTSOCK:
            prError = PR_NOT_SOCKET_ERROR;
            break;
        case WSAEOPNOTSUPP:
            prError = PR_OPERATION_NOT_SUPPORTED_ERROR;
            break;
        case WSAEPROTONOSUPPORT:
            prError = PR_PROTOCOL_NOT_SUPPORTED_ERROR;
            break;
        case WSAEPROTOTYPE:
            prError = PR_INVALID_ARGUMENT_ERROR;
            break;
        case WSAESHUTDOWN:
            prError = PR_SOCKET_SHUTDOWN_ERROR;
            break;
        case WSAESOCKTNOSUPPORT:
            prError = PR_INVALID_ARGUMENT_ERROR;
            break;
        case WSAETIMEDOUT:
            prError = PR_CONNECT_ABORTED_ERROR;
            break;
        case WSAEWOULDBLOCK:
            prError = PR_WOULD_BLOCK_ERROR;
            break;
        default:
            prError = PR_UNKNOWN_ERROR;
            break;
    }
    PR_SetError(prError, err);
}

Here is the caller graph for this function:

Definition at line 306 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 317 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 363 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 539 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 519 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 504 of file win32_errors.c.

{
    PRErrorCode prError;

    switch (err) {
        case WSAEINVAL:
            prError = PR_INVALID_STATE_ERROR;
            break;
        default:
            _MD_win32_map_default_error(err);
            return;
    }
    PR_SetError(prError, err);
}

Here is the call graph for this function:

Definition at line 524 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 481 of file win32_errors.c.

{
    PRErrorCode prError;

    switch (err) {
        case WSAEOPNOTSUPP:
            prError = PR_NOT_TCP_SOCKET_ERROR;
            break;
        case WSAEINVAL:
            prError = PR_INVALID_STATE_ERROR;
            break;
        default:
            _MD_win32_map_default_error(err);
            return;
    }
    PR_SetError(prError, err);
}

Here is the call graph for this function:

Definition at line 562 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 358 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 333 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 534 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 291 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 343 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 382 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 387 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 322 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 338 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 547 of file win32_errors.c.

{
    PRErrorCode prError;

    switch (err) {
        case WSAENOTSOCK:
            prError = PR_BAD_DESCRIPTOR_ERROR;
            break;
        default:
            _MD_win32_map_default_error(err);
            return;
    }
    PR_SetError(prError, err);
}

Here is the call graph for this function:

Definition at line 392 of file win32_errors.c.

{
    PRErrorCode prError;

    switch (err) {
        case WSAEMSGSIZE:
            prError = PR_INVALID_ARGUMENT_ERROR;
            break;
        default:
            _MD_win32_map_default_error(err);
            return;
    }
    PR_SetError(prError, err);
}

Here is the call graph for this function:

Definition at line 407 of file win32_errors.c.

{
    PRErrorCode prError;

    switch (err) {
        case WSAEMSGSIZE:
            prError = PR_INVALID_ARGUMENT_ERROR;
            break;
        default:
            _MD_win32_map_default_error(err);
            return;
    }
    PR_SetError(prError, err);
}

Here is the call graph for this function:

Definition at line 529 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 499 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 376 of file win32_errors.c.

{
    PR_ASSERT(err != WSANOTINITIALISED);
    _MD_win32_map_default_error(err);
}

Here is the call graph for this function:

Definition at line 312 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 348 of file win32_errors.c.

Here is the call graph for this function:

Definition at line 353 of file win32_errors.c.

Here is the call graph for this function: