PageRenderTime 17ms CodeModel.GetById 10ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

C Header | 90 lines | 42 code | 1 blank | 47 comment | 0 complexity | a42101fbfe8fb84de0367a16a6d65c2b MD5 | raw file
 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 * ***** BEGIN LICENSE BLOCK *****
10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
11 *
12 * The contents of this file are subject to the Mozilla Public License Version
13 * 1.1 (the "License"); you may not use this file except in compliance with
14 * the License. You may obtain a copy of the License at
15 *
16 *
17 * Software distributed under the License is distributed on an "AS IS" basis,
18 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
19 * for the specific language governing rights and limitations under the
20 * License.
21 *
22 * The Original Code is the Netscape security libraries.
23 *
24 * The Initial Developer of the Original Code is
25 * Netscape Communications Corporation.
26 * Portions created by the Initial Developer are Copyright (C) 1994-2000
27 * the Initial Developer. All Rights Reserved.
28 *
29 * Contributor(s):
30 *
31 * Alternatively, the contents of this file may be used under the terms of
32 * either the GNU General Public License Version 2 or later (the "GPL"), or
33 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
34 * in which case the provisions of the GPL or the LGPL are applicable instead
35 * of those above. If you wish to allow use of your version of this file only
36 * under the terms of either the GPL or the LGPL, and not to allow others to
37 * use your version of this file under the terms of the MPL, indicate your
38 * decision by deleting the provisions above and replace them with the notice
39 * and other provisions required by the GPL or the LGPL. If you do not delete
40 * the provisions above, a recipient may use your version of this file under
41 * the terms of any one of the MPL, the GPL or the LGPL.
42 *
43 * ***** END LICENSE BLOCK ***** */
44/* $Id: unix_err.h,v 1.3 2004/04/27 23:04:39 Exp $ */
46/*  NSPR doesn't make these functions public, so we have to duplicate
47**  them in NSS.
49extern void nss_MD_hpux_map_sendfile_error(int err);
50extern void nss_MD_unix_map_accept_error(int err);
51extern void nss_MD_unix_map_access_error(int err);
52extern void nss_MD_unix_map_bind_error(int err);
53extern void nss_MD_unix_map_close_error(int err);
54extern void nss_MD_unix_map_closedir_error(int err);
55extern void nss_MD_unix_map_connect_error(int err);
56extern void nss_MD_unix_map_default_error(int err);
57extern void nss_MD_unix_map_flock_error(int err);
58extern void nss_MD_unix_map_fstat_error(int err);
59extern void nss_MD_unix_map_fsync_error(int err);
60extern void nss_MD_unix_map_gethostname_error(int err);
61extern void nss_MD_unix_map_getpeername_error(int err);
62extern void nss_MD_unix_map_getsockname_error(int err);
63extern void nss_MD_unix_map_getsockopt_error(int err);
64extern void nss_MD_unix_map_listen_error(int err);
65extern void nss_MD_unix_map_lockf_error(int err);
66extern void nss_MD_unix_map_lseek_error(int err);
67extern void nss_MD_unix_map_mkdir_error(int err);
68extern void nss_MD_unix_map_mmap_error(int err);
69extern void nss_MD_unix_map_open_error(int err);
70extern void nss_MD_unix_map_opendir_error(int err);
71extern void nss_MD_unix_map_poll_error(int err);
72extern void nss_MD_unix_map_poll_revents_error(int err);
73extern void nss_MD_unix_map_read_error(int err);
74extern void nss_MD_unix_map_readdir_error(int err);
75extern void nss_MD_unix_map_recv_error(int err);
76extern void nss_MD_unix_map_recvfrom_error(int err);
77extern void nss_MD_unix_map_rename_error(int err);
78extern void nss_MD_unix_map_rmdir_error(int err);
79extern void nss_MD_unix_map_select_error(int err);
80extern void nss_MD_unix_map_send_error(int err);
81extern void nss_MD_unix_map_sendto_error(int err);
82extern void nss_MD_unix_map_setsockopt_error(int err);
83extern void nss_MD_unix_map_shutdown_error(int err);
84extern void nss_MD_unix_map_socket_error(int err);
85extern void nss_MD_unix_map_socketavailable_error(int err);
86extern void nss_MD_unix_map_socketpair_error(int err);
87extern void nss_MD_unix_map_stat_error(int err);
88extern void nss_MD_unix_map_unlink_error(int err);
89extern void nss_MD_unix_map_write_error(int err);
90extern void nss_MD_unix_map_writev_error(int err);