_win32_errors.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef nspr_win32_errors_h___
  6. #define nspr_win32_errors_h___
  7. #include <windows.h>
  8. #include <winsock.h>
  9. #include <errno.h>
  10. extern void _MD_win32_map_default_error(PRInt32 err);
  11. #define _PR_MD_MAP_DEFAULT_ERROR _MD_win32_map_default_error
  12. extern void _MD_win32_map_opendir_error(PRInt32 err);
  13. #define _PR_MD_MAP_OPENDIR_ERROR _MD_win32_map_opendir_error
  14. extern void _MD_win32_map_closedir_error(PRInt32 err);
  15. #define _PR_MD_MAP_CLOSEDIR_ERROR _MD_win32_map_closedir_error
  16. extern void _MD_unix_readdir_error(PRInt32 err);
  17. #define _PR_MD_MAP_READDIR_ERROR _MD_unix_readdir_error
  18. extern void _MD_win32_map_delete_error(PRInt32 err);
  19. #define _PR_MD_MAP_DELETE_ERROR _MD_win32_map_delete_error
  20. extern void _MD_win32_map_stat_error(PRInt32 err);
  21. #define _PR_MD_MAP_STAT_ERROR _MD_win32_map_stat_error
  22. extern void _MD_win32_map_fstat_error(PRInt32 err);
  23. #define _PR_MD_MAP_FSTAT_ERROR _MD_win32_map_fstat_error
  24. extern void _MD_win32_map_rename_error(PRInt32 err);
  25. #define _PR_MD_MAP_RENAME_ERROR _MD_win32_map_rename_error
  26. extern void _MD_win32_map_access_error(PRInt32 err);
  27. #define _PR_MD_MAP_ACCESS_ERROR _MD_win32_map_access_error
  28. extern void _MD_win32_map_mkdir_error(PRInt32 err);
  29. #define _PR_MD_MAP_MKDIR_ERROR _MD_win32_map_mkdir_error
  30. extern void _MD_win32_map_rmdir_error(PRInt32 err);
  31. #define _PR_MD_MAP_RMDIR_ERROR _MD_win32_map_rmdir_error
  32. extern void _MD_win32_map_read_error(PRInt32 err);
  33. #define _PR_MD_MAP_READ_ERROR _MD_win32_map_read_error
  34. extern void _MD_win32_map_transmitfile_error(PRInt32 err);
  35. #define _PR_MD_MAP_TRANSMITFILE_ERROR _MD_win32_map_transmitfile_error
  36. extern void _MD_win32_map_write_error(PRInt32 err);
  37. #define _PR_MD_MAP_WRITE_ERROR _MD_win32_map_write_error
  38. extern void _MD_win32_map_lseek_error(PRInt32 err);
  39. #define _PR_MD_MAP_LSEEK_ERROR _MD_win32_map_lseek_error
  40. extern void _MD_win32_map_fsync_error(PRInt32 err);
  41. #define _PR_MD_MAP_FSYNC_ERROR _MD_win32_map_fsync_error
  42. extern void _MD_win32_map_close_error(PRInt32 err);
  43. #define _PR_MD_MAP_CLOSE_ERROR _MD_win32_map_close_error
  44. extern void _MD_win32_map_socket_error(PRInt32 err);
  45. #define _PR_MD_MAP_SOCKET_ERROR _MD_win32_map_socket_error
  46. extern void _MD_win32_map_recv_error(PRInt32 err);
  47. #define _PR_MD_MAP_RECV_ERROR _MD_win32_map_recv_error
  48. extern void _MD_win32_map_recvfrom_error(PRInt32 err);
  49. #define _PR_MD_MAP_RECVFROM_ERROR _MD_win32_map_recvfrom_error
  50. extern void _MD_win32_map_send_error(PRInt32 err);
  51. #define _PR_MD_MAP_SEND_ERROR _MD_win32_map_send_error
  52. extern void _MD_win32_map_sendto_error(PRInt32 err);
  53. #define _PR_MD_MAP_SENDTO_ERROR _MD_win32_map_sendto_error
  54. extern void _MD_win32_map_accept_error(PRInt32 err);
  55. #define _PR_MD_MAP_ACCEPT_ERROR _MD_win32_map_accept_error
  56. extern void _MD_win32_map_acceptex_error(PRInt32 err);
  57. #define _PR_MD_MAP_ACCEPTEX_ERROR _MD_win32_map_acceptex_error
  58. extern void _MD_win32_map_connect_error(PRInt32 err);
  59. #define _PR_MD_MAP_CONNECT_ERROR _MD_win32_map_connect_error
  60. extern void _MD_win32_map_bind_error(PRInt32 err);
  61. #define _PR_MD_MAP_BIND_ERROR _MD_win32_map_bind_error
  62. extern void _MD_win32_map_listen_error(PRInt32 err);
  63. #define _PR_MD_MAP_LISTEN_ERROR _MD_win32_map_listen_error
  64. extern void _MD_win32_map_shutdown_error(PRInt32 err);
  65. #define _PR_MD_MAP_SHUTDOWN_ERROR _MD_win32_map_shutdown_error
  66. extern void _MD_win32_map_getsockname_error(PRInt32 err);
  67. #define _PR_MD_MAP_GETSOCKNAME_ERROR _MD_win32_map_getsockname_error
  68. extern void _MD_win32_map_getpeername_error(PRInt32 err);
  69. #define _PR_MD_MAP_GETPEERNAME_ERROR _MD_win32_map_getpeername_error
  70. extern void _MD_win32_map_getsockopt_error(PRInt32 err);
  71. #define _PR_MD_MAP_GETSOCKOPT_ERROR _MD_win32_map_getsockopt_error
  72. extern void _MD_win32_map_setsockopt_error(PRInt32 err);
  73. #define _PR_MD_MAP_SETSOCKOPT_ERROR _MD_win32_map_setsockopt_error
  74. extern void _MD_win32_map_open_error(PRInt32 err);
  75. #define _PR_MD_MAP_OPEN_ERROR _MD_win32_map_open_error
  76. extern void _MD_win32_map_gethostname_error(PRInt32 err);
  77. #define _PR_MD_MAP_GETHOSTNAME_ERROR _MD_win32_map_gethostname_error
  78. extern void _MD_win32_map_select_error(PRInt32 err);
  79. #define _PR_MD_MAP_SELECT_ERROR _MD_win32_map_select_error
  80. extern void _MD_win32_map_lockf_error(int err);
  81. #define _PR_MD_MAP_LOCKF_ERROR _MD_win32_map_lockf_error
  82. #endif /* nspr_win32_errors_h___ */