PageRenderTime 25ms CodeModel.GetById 16ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/security/nss/lib/ssl/os2_err.h

http://github.com/zpao/v8monkey
C Header | 86 lines | 36 code | 2 blank | 48 comment | 0 complexity | 2c45cac77c95d2c6d4ad073299441d52 MD5 | raw file
 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 * ***** 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 * http://www.mozilla.org/MPL/
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: os2_err.h,v 1.4 2004/04/27 23:04:39 gerv%gerv.net Exp $ */
45
46/*  NSPR doesn't make these functions public, so we have to duplicate
47**  them in NSS.
48*/
49
50//HCT  Based on Win32err.h
51extern void nss_MD_os2_map_accept_error(PRInt32 err);
52extern void nss_MD_os2_map_acceptex_error(PRInt32 err);
53extern void nss_MD_os2_map_access_error(PRInt32 err);
54extern void nss_MD_os2_map_bind_error(PRInt32 err);
55extern void nss_MD_os2_map_close_error(PRInt32 err);
56extern void nss_MD_os2_map_closedir_error(PRInt32 err);
57extern void nss_MD_os2_map_connect_error(PRInt32 err);
58extern void nss_MD_os2_map_default_error(PRInt32 err);
59extern void nss_MD_os2_map_delete_error(PRInt32 err);
60extern void nss_MD_os2_map_fstat_error(PRInt32 err);
61extern void nss_MD_os2_map_fsync_error(PRInt32 err);
62extern void nss_MD_os2_map_gethostname_error(PRInt32 err);
63extern void nss_MD_os2_map_getpeername_error(PRInt32 err);
64extern void nss_MD_os2_map_getsockname_error(PRInt32 err);
65extern void nss_MD_os2_map_getsockopt_error(PRInt32 err);
66extern void nss_MD_os2_map_listen_error(PRInt32 err);
67extern void nss_MD_os2_map_lockf_error(PRInt32 err);
68extern void nss_MD_os2_map_lseek_error(PRInt32 err);
69extern void nss_MD_os2_map_mkdir_error(PRInt32 err);
70extern void nss_MD_os2_map_open_error(PRInt32 err);
71extern void nss_MD_os2_map_opendir_error(PRInt32 err);
72extern void nss_MD_os2_map_read_error(PRInt32 err);
73extern void nss_MD_os2_map_readdir_error(PRInt32 err);
74extern void nss_MD_os2_map_recv_error(PRInt32 err);
75extern void nss_MD_os2_map_recvfrom_error(PRInt32 err);
76extern void nss_MD_os2_map_rename_error(PRInt32 err);
77extern void nss_MD_os2_map_rmdir_error(PRInt32 err);
78extern void nss_MD_os2_map_select_error(PRInt32 err);
79extern void nss_MD_os2_map_send_error(PRInt32 err);
80extern void nss_MD_os2_map_sendto_error(PRInt32 err);
81extern void nss_MD_os2_map_setsockopt_error(PRInt32 err);
82extern void nss_MD_os2_map_shutdown_error(PRInt32 err);
83extern void nss_MD_os2_map_socket_error(PRInt32 err);
84extern void nss_MD_os2_map_stat_error(PRInt32 err);
85extern void nss_MD_os2_map_transmitfile_error(PRInt32 err);
86extern void nss_MD_os2_map_write_error(PRInt32 err);