Back to index

lightning-sunbird  0.9+nobinonly
_win32_errors.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is the Netscape Portable Runtime (NSPR).
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 1998-2000
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either the GNU General Public License Version 2 or later (the "GPL"), or
00026  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the MPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the MPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037 
00038 #ifndef nspr_win32_errors_h___
00039 #define nspr_win32_errors_h___
00040 
00041 #include <windows.h>
00042 #include <winsock.h>
00043 #include <errno.h>
00044 
00045 
00046 extern void _MD_win32_map_default_error(PRInt32 err);
00047 #define _PR_MD_MAP_DEFAULT_ERROR   _MD_win32_map_default_error
00048 
00049 extern void _MD_win32_map_opendir_error(PRInt32 err);
00050 #define       _PR_MD_MAP_OPENDIR_ERROR    _MD_win32_map_opendir_error
00051 
00052 extern void _MD_win32_map_closedir_error(PRInt32 err);
00053 #define       _PR_MD_MAP_CLOSEDIR_ERROR   _MD_win32_map_closedir_error
00054 
00055 extern void _MD_unix_readdir_error(PRInt32 err);
00056 #define       _PR_MD_MAP_READDIR_ERROR    _MD_unix_readdir_error
00057 
00058 extern void _MD_win32_map_delete_error(PRInt32 err);
00059 #define       _PR_MD_MAP_DELETE_ERROR     _MD_win32_map_delete_error
00060 
00061 extern void _MD_win32_map_stat_error(PRInt32 err);
00062 #define       _PR_MD_MAP_STAT_ERROR       _MD_win32_map_stat_error
00063 
00064 extern void _MD_win32_map_fstat_error(PRInt32 err);
00065 #define       _PR_MD_MAP_FSTAT_ERROR      _MD_win32_map_fstat_error
00066 
00067 extern void _MD_win32_map_rename_error(PRInt32 err);
00068 #define       _PR_MD_MAP_RENAME_ERROR     _MD_win32_map_rename_error
00069 
00070 extern void _MD_win32_map_access_error(PRInt32 err);
00071 #define       _PR_MD_MAP_ACCESS_ERROR     _MD_win32_map_access_error
00072 
00073 extern void _MD_win32_map_mkdir_error(PRInt32 err);
00074 #define       _PR_MD_MAP_MKDIR_ERROR      _MD_win32_map_mkdir_error
00075 
00076 extern void _MD_win32_map_rmdir_error(PRInt32 err);
00077 #define       _PR_MD_MAP_RMDIR_ERROR      _MD_win32_map_rmdir_error
00078 
00079 extern void _MD_win32_map_read_error(PRInt32 err);
00080 #define       _PR_MD_MAP_READ_ERROR       _MD_win32_map_read_error
00081 
00082 extern void _MD_win32_map_transmitfile_error(PRInt32 err);
00083 #define       _PR_MD_MAP_TRANSMITFILE_ERROR      _MD_win32_map_transmitfile_error
00084 
00085 extern void _MD_win32_map_write_error(PRInt32 err);
00086 #define       _PR_MD_MAP_WRITE_ERROR      _MD_win32_map_write_error
00087 
00088 extern void _MD_win32_map_lseek_error(PRInt32 err);
00089 #define       _PR_MD_MAP_LSEEK_ERROR      _MD_win32_map_lseek_error
00090 
00091 extern void _MD_win32_map_fsync_error(PRInt32 err);
00092 #define       _PR_MD_MAP_FSYNC_ERROR      _MD_win32_map_fsync_error
00093 
00094 extern void _MD_win32_map_close_error(PRInt32 err);
00095 #define       _PR_MD_MAP_CLOSE_ERROR      _MD_win32_map_close_error
00096 
00097 extern void _MD_win32_map_socket_error(PRInt32 err);
00098 #define       _PR_MD_MAP_SOCKET_ERROR     _MD_win32_map_socket_error
00099 
00100 extern void _MD_win32_map_recv_error(PRInt32 err);
00101 #define       _PR_MD_MAP_RECV_ERROR       _MD_win32_map_recv_error
00102 
00103 extern void _MD_win32_map_recvfrom_error(PRInt32 err);
00104 #define       _PR_MD_MAP_RECVFROM_ERROR   _MD_win32_map_recvfrom_error
00105 
00106 extern void _MD_win32_map_send_error(PRInt32 err);
00107 #define       _PR_MD_MAP_SEND_ERROR       _MD_win32_map_send_error
00108 
00109 extern void _MD_win32_map_sendto_error(PRInt32 err);
00110 #define       _PR_MD_MAP_SENDTO_ERROR     _MD_win32_map_sendto_error
00111 
00112 extern void _MD_win32_map_accept_error(PRInt32 err);
00113 #define       _PR_MD_MAP_ACCEPT_ERROR     _MD_win32_map_accept_error
00114 
00115 extern void _MD_win32_map_acceptex_error(PRInt32 err);
00116 #define       _PR_MD_MAP_ACCEPTEX_ERROR   _MD_win32_map_acceptex_error
00117 
00118 extern PRInt32 _MD_win32_map_connect_error(PRInt32 err);
00119 #define       _PR_MD_MAP_CONNECT_ERROR    _MD_win32_map_connect_error
00120 
00121 extern void _MD_win32_map_bind_error(PRInt32 err);
00122 #define       _PR_MD_MAP_BIND_ERROR       _MD_win32_map_bind_error
00123 
00124 extern void _MD_win32_map_listen_error(PRInt32 err);
00125 #define       _PR_MD_MAP_LISTEN_ERROR     _MD_win32_map_listen_error
00126 
00127 extern void _MD_win32_map_shutdown_error(PRInt32 err);
00128 #define       _PR_MD_MAP_SHUTDOWN_ERROR   _MD_win32_map_shutdown_error
00129 
00130 extern void _MD_win32_map_getsockname_error(PRInt32 err);
00131 #define       _PR_MD_MAP_GETSOCKNAME_ERROR       _MD_win32_map_getsockname_error
00132 
00133 extern void _MD_win32_map_getpeername_error(PRInt32 err);
00134 #define       _PR_MD_MAP_GETPEERNAME_ERROR       _MD_win32_map_getpeername_error
00135 
00136 extern void _MD_win32_map_getsockopt_error(PRInt32 err);
00137 #define       _PR_MD_MAP_GETSOCKOPT_ERROR _MD_win32_map_getsockopt_error
00138 
00139 extern void _MD_win32_map_setsockopt_error(PRInt32 err);
00140 #define       _PR_MD_MAP_SETSOCKOPT_ERROR _MD_win32_map_setsockopt_error
00141 
00142 extern void _MD_win32_map_open_error(PRInt32 err);
00143 #define       _PR_MD_MAP_OPEN_ERROR       _MD_win32_map_open_error
00144 
00145 extern void _MD_win32_map_gethostname_error(PRInt32 err);
00146 #define       _PR_MD_MAP_GETHOSTNAME_ERROR       _MD_win32_map_gethostname_error
00147 
00148 extern void _MD_win32_map_select_error(PRInt32 err);
00149 #define       _PR_MD_MAP_SELECT_ERROR     _MD_win32_map_select_error
00150 
00151 extern void _MD_win32_map_lockf_error(int err);
00152 #define _PR_MD_MAP_LOCKF_ERROR  _MD_win32_map_lockf_error
00153 
00154 #endif /* nspr_win32_errors_h___ */