home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / nspr30-e.zip / nspr30-e / include / md / _unix_errors.h < prev    next >
C/C++ Source or Header  |  1998-11-02  |  6KB  |  153 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /*
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  * 
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  * 
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef prunixerrors_h___
  20. #define prunixerrors_h___
  21.  
  22. #include <unistd.h>
  23. #include <stddef.h>
  24.  
  25. PR_BEGIN_EXTERN_C
  26.  
  27. PR_EXTERN(PRStatus) _MD_gethostname(char *name, PRUint32 namelen);
  28. #define _MD_GETHOSTNAME        _MD_gethostname
  29.  
  30. PR_EXTERN(void) _MD_unix_map_opendir_error(int err);
  31. #define    _PR_MD_MAP_OPENDIR_ERROR    _MD_unix_map_opendir_error
  32.  
  33. PR_EXTERN(void) _MD_unix_map_closedir_error(int err);
  34. #define    _PR_MD_MAP_CLOSEDIR_ERROR    _MD_unix_map_closedir_error
  35.  
  36. PR_EXTERN(void) _MD_unix_readdir_error(int err);
  37. #define    _PR_MD_MAP_READDIR_ERROR    _MD_unix_readdir_error
  38.  
  39. PR_EXTERN(void) _MD_unix_map_unlink_error(int err);
  40. #define    _PR_MD_MAP_UNLINK_ERROR    _MD_unix_map_unlink_error
  41.  
  42. PR_EXTERN(void) _MD_unix_map_stat_error(int err);
  43. #define    _PR_MD_MAP_STAT_ERROR    _MD_unix_map_stat_error
  44.  
  45. PR_EXTERN(void) _MD_unix_map_fstat_error(int err);
  46. #define    _PR_MD_MAP_FSTAT_ERROR    _MD_unix_map_fstat_error
  47.  
  48. PR_EXTERN(void) _MD_unix_map_rename_error(int err);
  49. #define    _PR_MD_MAP_RENAME_ERROR    _MD_unix_map_rename_error
  50.  
  51. PR_EXTERN(void) _MD_unix_map_access_error(int err);
  52. #define    _PR_MD_MAP_ACCESS_ERROR    _MD_unix_map_access_error
  53.  
  54. PR_EXTERN(void) _MD_unix_map_mkdir_error(int err);
  55. #define    _PR_MD_MAP_MKDIR_ERROR    _MD_unix_map_mkdir_error
  56.  
  57. PR_EXTERN(void) _MD_unix_map_rmdir_error(int err);
  58. #define    _PR_MD_MAP_RMDIR_ERROR    _MD_unix_map_rmdir_error
  59.  
  60. PR_EXTERN(void) _MD_unix_map_read_error(int err);
  61. #define    _PR_MD_MAP_READ_ERROR    _MD_unix_map_read_error
  62.  
  63. PR_EXTERN(void) _MD_unix_map_write_error(int err);
  64. #define    _PR_MD_MAP_WRITE_ERROR    _MD_unix_map_write_error
  65.  
  66. PR_EXTERN(void) _MD_unix_map_lseek_error(int err);
  67. #define    _PR_MD_MAP_LSEEK_ERROR    _MD_unix_map_lseek_error
  68.  
  69. PR_EXTERN(void) _MD_unix_map_fsync_error(int err);
  70. #define    _PR_MD_MAP_FSYNC_ERROR    _MD_unix_map_fsync_error
  71.  
  72. PR_EXTERN(void) _MD_unix_map_close_error(int err);
  73. #define    _PR_MD_MAP_CLOSE_ERROR    _MD_unix_map_close_error
  74.  
  75. PR_EXTERN(void) _MD_unix_map_socket_error(int err);
  76. #define    _PR_MD_MAP_SOCKET_ERROR    _MD_unix_map_socket_error
  77.  
  78. PR_EXTERN(void) _MD_unix_map_socketavailable_error(int err);
  79. #define    _PR_MD_MAP_SOCKETAVAILABLE_ERROR    _MD_unix_map_socketavailable_error
  80.  
  81. PR_EXTERN(void) _MD_unix_map_recv_error(int err);
  82. #define    _PR_MD_MAP_RECV_ERROR    _MD_unix_map_recv_error
  83.  
  84. PR_EXTERN(void) _MD_unix_map_recvfrom_error(int err);
  85. #define    _PR_MD_MAP_RECVFROM_ERROR    _MD_unix_map_recvfrom_error
  86.  
  87. PR_EXTERN(void) _MD_unix_map_send_error(int err);
  88. #define    _PR_MD_MAP_SEND_ERROR    _MD_unix_map_send_error
  89.  
  90. PR_EXTERN(void) _MD_unix_map_sendto_error(int err);
  91. #define    _PR_MD_MAP_SENDTO_ERROR    _MD_unix_map_sendto_error
  92.  
  93. PR_EXTERN(void) _MD_unix_map_writev_error(int err);
  94. #define    _PR_MD_MAP_WRITEV_ERROR    _MD_unix_map_writev_error
  95.  
  96. PR_EXTERN(void) _MD_unix_map_accept_error(int err);
  97. #define    _PR_MD_MAP_ACCEPT_ERROR    _MD_unix_map_accept_error
  98.  
  99. PR_EXTERN(void) _MD_unix_map_connect_error(int err);
  100. #define    _PR_MD_MAP_CONNECT_ERROR    _MD_unix_map_connect_error
  101.  
  102. PR_EXTERN(void) _MD_unix_map_bind_error(int err);
  103. #define    _PR_MD_MAP_BIND_ERROR    _MD_unix_map_bind_error
  104.  
  105. PR_EXTERN(void) _MD_unix_map_listen_error(int err);
  106. #define    _PR_MD_MAP_LISTEN_ERROR    _MD_unix_map_listen_error
  107.  
  108. PR_EXTERN(void) _MD_unix_map_shutdown_error(int err);
  109. #define    _PR_MD_MAP_SHUTDOWN_ERROR    _MD_unix_map_shutdown_error
  110.  
  111. PR_EXTERN(void) _MD_unix_map_socketpair_error(int err);
  112. #define    _PR_MD_MAP_SOCKETPAIR_ERROR    _MD_unix_map_socketpair_error
  113.  
  114. PR_EXTERN(void) _MD_unix_map_getsockname_error(int err);
  115. #define    _PR_MD_MAP_GETSOCKNAME_ERROR    _MD_unix_map_getsockname_error
  116.  
  117. PR_EXTERN(void) _MD_unix_map_getpeername_error(int err);
  118. #define    _PR_MD_MAP_GETPEERNAME_ERROR    _MD_unix_map_getpeername_error
  119.  
  120. PR_EXTERN(void) _MD_unix_map_getsockopt_error(int err);
  121. #define    _PR_MD_MAP_GETSOCKOPT_ERROR    _MD_unix_map_getsockopt_error
  122.  
  123. PR_EXTERN(void) _MD_unix_map_setsockopt_error(int err);
  124. #define    _PR_MD_MAP_SETSOCKOPT_ERROR    _MD_unix_map_setsockopt_error
  125.  
  126. PR_EXTERN(void) _MD_unix_map_open_error(int err);
  127. #define    _PR_MD_MAP_OPEN_ERROR    _MD_unix_map_open_error
  128.  
  129. PR_EXTERN(void) _MD_unix_map_mmap_error(int err);
  130. #define    _PR_MD_MAP_MMAP_ERROR    _MD_unix_map_mmap_error
  131.  
  132. PR_EXTERN(void) _MD_unix_map_gethostname_error(int err);
  133. #define    _PR_MD_MAP_GETHOSTNAME_ERROR    _MD_unix_map_gethostname_error
  134.  
  135. PR_EXTERN(void) _MD_unix_map_select_error(int err);
  136. #define    _PR_MD_MAP_SELECT_ERROR    _MD_unix_map_select_error
  137.  
  138. PR_EXTERN(void) _MD_unix_map_poll_error(int err);
  139. #define _PR_MD_MAP_POLL_ERROR _MD_unix_map_poll_error
  140.  
  141. PR_EXTERN(void) _MD_unix_map_poll_revents_error(int err);
  142. #define _PR_MD_MAP_POLL_REVENTS_ERROR _MD_unix_map_poll_revents_error
  143.  
  144. PR_EXTERN(void) _MD_unix_map_flock_error(int err);
  145. #define    _PR_MD_MAP_FLOCK_ERROR    _MD_unix_map_flock_error
  146.  
  147. PR_EXTERN(void) _MD_unix_map_lockf_error(int err);
  148. #define    _PR_MD_MAP_LOCKF_ERROR    _MD_unix_map_lockf_error
  149.  
  150. PR_END_EXTERN_C
  151.  
  152. #endif /* prunixerrors_h___ */
  153.