15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)/* 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * This file essentially replicates NSPR's source for the functions that 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * map system-specific error codes to NSPR error codes. We would use 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * NSPR's functions, instead of duplicating them, but they're private. 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * As long as SSL's server session cache code must do platform native I/O 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * to accomplish its job, and NSPR's error mapping functions remain private, 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * This code will continue to need to be replicated. 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * 92a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * This Source Code Form is subject to the terms of the Mozilla Public 102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * License, v. 2.0. If a copy of the MPL was not distributed with this 112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)/* NSPR doesn't make these functions public, so we have to duplicate 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)** them in NSS. 155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)*/ 165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_accept_error(PRInt32 err); 175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_acceptex_error(PRInt32 err); 185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_access_error(PRInt32 err); 195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_bind_error(PRInt32 err); 205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_close_error(PRInt32 err); 215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_closedir_error(PRInt32 err); 225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_connect_error(PRInt32 err); 235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_default_error(PRInt32 err); 245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_delete_error(PRInt32 err); 255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_fstat_error(PRInt32 err); 265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_fsync_error(PRInt32 err); 275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_gethostname_error(PRInt32 err); 285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_getpeername_error(PRInt32 err); 295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_getsockname_error(PRInt32 err); 305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_getsockopt_error(PRInt32 err); 315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_listen_error(PRInt32 err); 325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_lockf_error(PRInt32 err); 335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_lseek_error(PRInt32 err); 345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_mkdir_error(PRInt32 err); 355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_open_error(PRInt32 err); 365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_opendir_error(PRInt32 err); 375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_read_error(PRInt32 err); 385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_readdir_error(PRInt32 err); 395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_recv_error(PRInt32 err); 405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_recvfrom_error(PRInt32 err); 415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_rename_error(PRInt32 err); 425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_rmdir_error(PRInt32 err); 435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_select_error(PRInt32 err); 445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_send_error(PRInt32 err); 455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_sendto_error(PRInt32 err); 465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_setsockopt_error(PRInt32 err); 475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_shutdown_error(PRInt32 err); 485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_socket_error(PRInt32 err); 495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_stat_error(PRInt32 err); 505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_transmitfile_error(PRInt32 err); 515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern void nss_MD_win32_map_write_error(PRInt32 err); 52