security/nss/lib/ssl/win32err.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/lib/ssl/win32err.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,51 @@
     1.4 +/*
     1.5 + * This file essentially replicates NSPR's source for the functions that
     1.6 + * map system-specific error codes to NSPR error codes.  We would use 
     1.7 + * NSPR's functions, instead of duplicating them, but they're private.
     1.8 + * As long as SSL's server session cache code must do platform native I/O
     1.9 + * to accomplish its job, and NSPR's error mapping functions remain private,
    1.10 + * This code will continue to need to be replicated.
    1.11 + * 
    1.12 + * This Source Code Form is subject to the terms of the Mozilla Public
    1.13 + * License, v. 2.0. If a copy of the MPL was not distributed with this
    1.14 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    1.15 +
    1.16 +/*  NSPR doesn't make these functions public, so we have to duplicate
    1.17 +**  them in NSS.
    1.18 +*/
    1.19 +extern void nss_MD_win32_map_accept_error(PRInt32 err);
    1.20 +extern void nss_MD_win32_map_acceptex_error(PRInt32 err);
    1.21 +extern void nss_MD_win32_map_access_error(PRInt32 err);
    1.22 +extern void nss_MD_win32_map_bind_error(PRInt32 err);
    1.23 +extern void nss_MD_win32_map_close_error(PRInt32 err);
    1.24 +extern void nss_MD_win32_map_closedir_error(PRInt32 err);
    1.25 +extern void nss_MD_win32_map_connect_error(PRInt32 err);
    1.26 +extern void nss_MD_win32_map_default_error(PRInt32 err);
    1.27 +extern void nss_MD_win32_map_delete_error(PRInt32 err);
    1.28 +extern void nss_MD_win32_map_fstat_error(PRInt32 err);
    1.29 +extern void nss_MD_win32_map_fsync_error(PRInt32 err);
    1.30 +extern void nss_MD_win32_map_gethostname_error(PRInt32 err);
    1.31 +extern void nss_MD_win32_map_getpeername_error(PRInt32 err);
    1.32 +extern void nss_MD_win32_map_getsockname_error(PRInt32 err);
    1.33 +extern void nss_MD_win32_map_getsockopt_error(PRInt32 err);
    1.34 +extern void nss_MD_win32_map_listen_error(PRInt32 err);
    1.35 +extern void nss_MD_win32_map_lockf_error(PRInt32 err);
    1.36 +extern void nss_MD_win32_map_lseek_error(PRInt32 err);
    1.37 +extern void nss_MD_win32_map_mkdir_error(PRInt32 err);
    1.38 +extern void nss_MD_win32_map_open_error(PRInt32 err);
    1.39 +extern void nss_MD_win32_map_opendir_error(PRInt32 err);
    1.40 +extern void nss_MD_win32_map_read_error(PRInt32 err);
    1.41 +extern void nss_MD_win32_map_readdir_error(PRInt32 err);
    1.42 +extern void nss_MD_win32_map_recv_error(PRInt32 err);
    1.43 +extern void nss_MD_win32_map_recvfrom_error(PRInt32 err);
    1.44 +extern void nss_MD_win32_map_rename_error(PRInt32 err);
    1.45 +extern void nss_MD_win32_map_rmdir_error(PRInt32 err);
    1.46 +extern void nss_MD_win32_map_select_error(PRInt32 err);
    1.47 +extern void nss_MD_win32_map_send_error(PRInt32 err);
    1.48 +extern void nss_MD_win32_map_sendto_error(PRInt32 err);
    1.49 +extern void nss_MD_win32_map_setsockopt_error(PRInt32 err);
    1.50 +extern void nss_MD_win32_map_shutdown_error(PRInt32 err);
    1.51 +extern void nss_MD_win32_map_socket_error(PRInt32 err);
    1.52 +extern void nss_MD_win32_map_stat_error(PRInt32 err);
    1.53 +extern void nss_MD_win32_map_transmitfile_error(PRInt32 err);
    1.54 +extern void nss_MD_win32_map_write_error(PRInt32 err);

mercurial