Back to index

lightning-sunbird  0.9+nobinonly
os2_err.h
Go to the documentation of this file.
00001 /*
00002  * This file essentially replicates NSPR's source for the functions that
00003  * map system-specific error codes to NSPR error codes.  We would use 
00004  * NSPR's functions, instead of duplicating them, but they're private.
00005  * As long as SSL's server session cache code must do platform native I/O
00006  * to accomplish its job, and NSPR's error mapping functions remain private,
00007  * This code will continue to need to be replicated.
00008  * 
00009  * ***** BEGIN LICENSE BLOCK *****
00010  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00011  *
00012  * The contents of this file are subject to the Mozilla Public License Version
00013  * 1.1 (the "License"); you may not use this file except in compliance with
00014  * the License. You may obtain a copy of the License at
00015  * http://www.mozilla.org/MPL/
00016  *
00017  * Software distributed under the License is distributed on an "AS IS" basis,
00018  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00019  * for the specific language governing rights and limitations under the
00020  * License.
00021  *
00022  * The Original Code is the Netscape security libraries.
00023  *
00024  * The Initial Developer of the Original Code is
00025  * Netscape Communications Corporation.
00026  * Portions created by the Initial Developer are Copyright (C) 1994-2000
00027  * the Initial Developer. All Rights Reserved.
00028  *
00029  * Contributor(s):
00030  *
00031  * Alternatively, the contents of this file may be used under the terms of
00032  * either the GNU General Public License Version 2 or later (the "GPL"), or
00033  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00034  * in which case the provisions of the GPL or the LGPL are applicable instead
00035  * of those above. If you wish to allow use of your version of this file only
00036  * under the terms of either the GPL or the LGPL, and not to allow others to
00037  * use your version of this file under the terms of the MPL, indicate your
00038  * decision by deleting the provisions above and replace them with the notice
00039  * and other provisions required by the GPL or the LGPL. If you do not delete
00040  * the provisions above, a recipient may use your version of this file under
00041  * the terms of any one of the MPL, the GPL or the LGPL.
00042  *
00043  * ***** END LICENSE BLOCK ***** */
00044 /* $Id: os2_err.h,v 1.4 2004/04/27 23:04:39 gerv%gerv.net Exp $ */
00045 
00046 /*  NSPR doesn't make these functions public, so we have to duplicate
00047 **  them in NSS.
00048 */
00049 
00050 //HCT  Based on Win32err.h
00051 extern void nss_MD_os2_map_accept_error(PRInt32 err);
00052 extern void nss_MD_os2_map_acceptex_error(PRInt32 err);
00053 extern void nss_MD_os2_map_access_error(PRInt32 err);
00054 extern void nss_MD_os2_map_bind_error(PRInt32 err);
00055 extern void nss_MD_os2_map_close_error(PRInt32 err);
00056 extern void nss_MD_os2_map_closedir_error(PRInt32 err);
00057 extern void nss_MD_os2_map_connect_error(PRInt32 err);
00058 extern void nss_MD_os2_map_default_error(PRInt32 err);
00059 extern void nss_MD_os2_map_delete_error(PRInt32 err);
00060 extern void nss_MD_os2_map_fstat_error(PRInt32 err);
00061 extern void nss_MD_os2_map_fsync_error(PRInt32 err);
00062 extern void nss_MD_os2_map_gethostname_error(PRInt32 err);
00063 extern void nss_MD_os2_map_getpeername_error(PRInt32 err);
00064 extern void nss_MD_os2_map_getsockname_error(PRInt32 err);
00065 extern void nss_MD_os2_map_getsockopt_error(PRInt32 err);
00066 extern void nss_MD_os2_map_listen_error(PRInt32 err);
00067 extern void nss_MD_os2_map_lockf_error(PRInt32 err);
00068 extern void nss_MD_os2_map_lseek_error(PRInt32 err);
00069 extern void nss_MD_os2_map_mkdir_error(PRInt32 err);
00070 extern void nss_MD_os2_map_open_error(PRInt32 err);
00071 extern void nss_MD_os2_map_opendir_error(PRInt32 err);
00072 extern void nss_MD_os2_map_read_error(PRInt32 err);
00073 extern void nss_MD_os2_map_readdir_error(PRInt32 err);
00074 extern void nss_MD_os2_map_recv_error(PRInt32 err);
00075 extern void nss_MD_os2_map_recvfrom_error(PRInt32 err);
00076 extern void nss_MD_os2_map_rename_error(PRInt32 err);
00077 extern void nss_MD_os2_map_rmdir_error(PRInt32 err);
00078 extern void nss_MD_os2_map_select_error(PRInt32 err);
00079 extern void nss_MD_os2_map_send_error(PRInt32 err);
00080 extern void nss_MD_os2_map_sendto_error(PRInt32 err);
00081 extern void nss_MD_os2_map_setsockopt_error(PRInt32 err);
00082 extern void nss_MD_os2_map_shutdown_error(PRInt32 err);
00083 extern void nss_MD_os2_map_socket_error(PRInt32 err);
00084 extern void nss_MD_os2_map_stat_error(PRInt32 err);
00085 extern void nss_MD_os2_map_transmitfile_error(PRInt32 err);
00086 extern void nss_MD_os2_map_write_error(PRInt32 err);