1 /* 2 * This file essentially replicates NSPR's source for the functions that 3 * map system-specific error codes to NSPR error codes. We would use 4 * NSPR's functions, instead of duplicating them, but they're private. 5 * As long as SSL's server session cache code must do platform native I/O 6 * to accomplish its job, and NSPR's error mapping functions remain private, 7 * This code will continue to need to be replicated. 8 * 9 * This Source Code Form is subject to the terms of the Mozilla Public 10 * License, v. 2.0. If a copy of the MPL was not distributed with this 11 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 12 13 /* NSPR doesn't make these functions public, so we have to duplicate 14 ** them in NSS. 15 */ 16 extern void nss_MD_win32_map_accept_error(PRInt32 err); 17 extern void nss_MD_win32_map_acceptex_error(PRInt32 err); 18 extern void nss_MD_win32_map_access_error(PRInt32 err); 19 extern void nss_MD_win32_map_bind_error(PRInt32 err); 20 extern void nss_MD_win32_map_close_error(PRInt32 err); 21 extern void nss_MD_win32_map_closedir_error(PRInt32 err); 22 extern void nss_MD_win32_map_connect_error(PRInt32 err); 23 extern void nss_MD_win32_map_default_error(PRInt32 err); 24 extern void nss_MD_win32_map_delete_error(PRInt32 err); 25 extern void nss_MD_win32_map_fstat_error(PRInt32 err); 26 extern void nss_MD_win32_map_fsync_error(PRInt32 err); 27 extern void nss_MD_win32_map_gethostname_error(PRInt32 err); 28 extern void nss_MD_win32_map_getpeername_error(PRInt32 err); 29 extern void nss_MD_win32_map_getsockname_error(PRInt32 err); 30 extern void nss_MD_win32_map_getsockopt_error(PRInt32 err); 31 extern void nss_MD_win32_map_listen_error(PRInt32 err); 32 extern void nss_MD_win32_map_lockf_error(PRInt32 err); 33 extern void nss_MD_win32_map_lseek_error(PRInt32 err); 34 extern void nss_MD_win32_map_mkdir_error(PRInt32 err); 35 extern void nss_MD_win32_map_open_error(PRInt32 err); 36 extern void nss_MD_win32_map_opendir_error(PRInt32 err); 37 extern void nss_MD_win32_map_read_error(PRInt32 err); 38 extern void nss_MD_win32_map_readdir_error(PRInt32 err); 39 extern void nss_MD_win32_map_recv_error(PRInt32 err); 40 extern void nss_MD_win32_map_recvfrom_error(PRInt32 err); 41 extern void nss_MD_win32_map_rename_error(PRInt32 err); 42 extern void nss_MD_win32_map_rmdir_error(PRInt32 err); 43 extern void nss_MD_win32_map_select_error(PRInt32 err); 44 extern void nss_MD_win32_map_send_error(PRInt32 err); 45 extern void nss_MD_win32_map_sendto_error(PRInt32 err); 46 extern void nss_MD_win32_map_setsockopt_error(PRInt32 err); 47 extern void nss_MD_win32_map_shutdown_error(PRInt32 err); 48 extern void nss_MD_win32_map_socket_error(PRInt32 err); 49 extern void nss_MD_win32_map_stat_error(PRInt32 err); 50 extern void nss_MD_win32_map_transmitfile_error(PRInt32 err); 51 extern void nss_MD_win32_map_write_error(PRInt32 err); 52