Back to index

lightning-sunbird  0.9+nobinonly
unix_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: unix_err.h,v 1.3 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 extern void nss_MD_hpux_map_sendfile_error(int err);
00050 extern void nss_MD_unix_map_accept_error(int err);
00051 extern void nss_MD_unix_map_access_error(int err);
00052 extern void nss_MD_unix_map_bind_error(int err);
00053 extern void nss_MD_unix_map_close_error(int err);
00054 extern void nss_MD_unix_map_closedir_error(int err);
00055 extern void nss_MD_unix_map_connect_error(int err);
00056 extern void nss_MD_unix_map_default_error(int err);
00057 extern void nss_MD_unix_map_flock_error(int err);
00058 extern void nss_MD_unix_map_fstat_error(int err);
00059 extern void nss_MD_unix_map_fsync_error(int err);
00060 extern void nss_MD_unix_map_gethostname_error(int err);
00061 extern void nss_MD_unix_map_getpeername_error(int err);
00062 extern void nss_MD_unix_map_getsockname_error(int err);
00063 extern void nss_MD_unix_map_getsockopt_error(int err);
00064 extern void nss_MD_unix_map_listen_error(int err);
00065 extern void nss_MD_unix_map_lockf_error(int err);
00066 extern void nss_MD_unix_map_lseek_error(int err);
00067 extern void nss_MD_unix_map_mkdir_error(int err);
00068 extern void nss_MD_unix_map_mmap_error(int err);
00069 extern void nss_MD_unix_map_open_error(int err);
00070 extern void nss_MD_unix_map_opendir_error(int err);
00071 extern void nss_MD_unix_map_poll_error(int err);
00072 extern void nss_MD_unix_map_poll_revents_error(int err);
00073 extern void nss_MD_unix_map_read_error(int err);
00074 extern void nss_MD_unix_map_readdir_error(int err);
00075 extern void nss_MD_unix_map_recv_error(int err);
00076 extern void nss_MD_unix_map_recvfrom_error(int err);
00077 extern void nss_MD_unix_map_rename_error(int err);
00078 extern void nss_MD_unix_map_rmdir_error(int err);
00079 extern void nss_MD_unix_map_select_error(int err);
00080 extern void nss_MD_unix_map_send_error(int err);
00081 extern void nss_MD_unix_map_sendto_error(int err);
00082 extern void nss_MD_unix_map_setsockopt_error(int err);
00083 extern void nss_MD_unix_map_shutdown_error(int err);
00084 extern void nss_MD_unix_map_socket_error(int err);
00085 extern void nss_MD_unix_map_socketavailable_error(int err);
00086 extern void nss_MD_unix_map_socketpair_error(int err);
00087 extern void nss_MD_unix_map_stat_error(int err);
00088 extern void nss_MD_unix_map_unlink_error(int err);
00089 extern void nss_MD_unix_map_write_error(int err);
00090 extern void nss_MD_unix_map_writev_error(int err);