security/nss/lib/ssl/unix_err.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /*
michael@0 2 * This file essentially replicates NSPR's source for the functions that
michael@0 3 * map system-specific error codes to NSPR error codes. We would use
michael@0 4 * NSPR's functions, instead of duplicating them, but they're private.
michael@0 5 * As long as SSL's server session cache code must do platform native I/O
michael@0 6 * to accomplish its job, and NSPR's error mapping functions remain private,
michael@0 7 * this code will continue to need to be replicated.
michael@0 8 *
michael@0 9 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 10 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 11 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 12
michael@0 13 /* NSPR doesn't make these functions public, so we have to duplicate
michael@0 14 ** them in NSS.
michael@0 15 */
michael@0 16 extern void nss_MD_hpux_map_sendfile_error(int err);
michael@0 17 extern void nss_MD_unix_map_accept_error(int err);
michael@0 18 extern void nss_MD_unix_map_access_error(int err);
michael@0 19 extern void nss_MD_unix_map_bind_error(int err);
michael@0 20 extern void nss_MD_unix_map_close_error(int err);
michael@0 21 extern void nss_MD_unix_map_closedir_error(int err);
michael@0 22 extern void nss_MD_unix_map_connect_error(int err);
michael@0 23 extern void nss_MD_unix_map_default_error(int err);
michael@0 24 extern void nss_MD_unix_map_flock_error(int err);
michael@0 25 extern void nss_MD_unix_map_fstat_error(int err);
michael@0 26 extern void nss_MD_unix_map_fsync_error(int err);
michael@0 27 extern void nss_MD_unix_map_gethostname_error(int err);
michael@0 28 extern void nss_MD_unix_map_getpeername_error(int err);
michael@0 29 extern void nss_MD_unix_map_getsockname_error(int err);
michael@0 30 extern void nss_MD_unix_map_getsockopt_error(int err);
michael@0 31 extern void nss_MD_unix_map_listen_error(int err);
michael@0 32 extern void nss_MD_unix_map_lockf_error(int err);
michael@0 33 extern void nss_MD_unix_map_lseek_error(int err);
michael@0 34 extern void nss_MD_unix_map_mkdir_error(int err);
michael@0 35 extern void nss_MD_unix_map_mmap_error(int err);
michael@0 36 extern void nss_MD_unix_map_open_error(int err);
michael@0 37 extern void nss_MD_unix_map_opendir_error(int err);
michael@0 38 extern void nss_MD_unix_map_poll_error(int err);
michael@0 39 extern void nss_MD_unix_map_poll_revents_error(int err);
michael@0 40 extern void nss_MD_unix_map_read_error(int err);
michael@0 41 extern void nss_MD_unix_map_readdir_error(int err);
michael@0 42 extern void nss_MD_unix_map_recv_error(int err);
michael@0 43 extern void nss_MD_unix_map_recvfrom_error(int err);
michael@0 44 extern void nss_MD_unix_map_rename_error(int err);
michael@0 45 extern void nss_MD_unix_map_rmdir_error(int err);
michael@0 46 extern void nss_MD_unix_map_select_error(int err);
michael@0 47 extern void nss_MD_unix_map_send_error(int err);
michael@0 48 extern void nss_MD_unix_map_sendto_error(int err);
michael@0 49 extern void nss_MD_unix_map_setsockopt_error(int err);
michael@0 50 extern void nss_MD_unix_map_shutdown_error(int err);
michael@0 51 extern void nss_MD_unix_map_socket_error(int err);
michael@0 52 extern void nss_MD_unix_map_socketavailable_error(int err);
michael@0 53 extern void nss_MD_unix_map_socketpair_error(int err);
michael@0 54 extern void nss_MD_unix_map_stat_error(int err);
michael@0 55 extern void nss_MD_unix_map_unlink_error(int err);
michael@0 56 extern void nss_MD_unix_map_write_error(int err);
michael@0 57 extern void nss_MD_unix_map_writev_error(int err);

mercurial