netDrv.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:3k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* netDrv.h - netDrv header */
  2. /* Copyright 1984-2002 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01m,12mar02,elr  added values for netDrvDebugLevelSet()
  7. 01l,13mar95,dzb  added param to netLsByName() prototype (SPR #3662).
  8. 01k,22jul93,jmm  added declaration for netLsByName() (spr 2305)
  9. 01j,22sep92,rrr  added support for c++
  10. 01i,04jul92,jcf  cleaned up.
  11. 01h,26may92,rrr  the tree shuffle
  12. 01g,04oct91,rrr  passed through the ansification filter
  13.   -fixed #else and #endif
  14.   -changed copyright notice
  15. 01f,05oct90,shl  added ANSI function prototypes.
  16.                  made #endif ANSI style.
  17.                  added copyright notice.
  18. 01e,08aut90,shl  added INCnetDrvh to #endif.
  19. 01d,08jan87,jlf  added ifndef's to keep from being included twice.
  20. 01c,24dec86,gae  changed stsLib.h to vwModNum.h.
  21. 01b,27jul86,llk  added S_netDrv_NO_SUCH_FILE_OR_DIR, S_netDrv_PERMISSION_DENIED,
  22.  S_netDrv_IS_A_DIRECTORY, S_netDrv_UNIX_FILE_ERROR
  23. 01a,30apr86,llk  written.
  24. */
  25. #ifndef __INCnetDrvh
  26. #define __INCnetDrvh
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. #include "vwModNum.h"
  31. /* netDrv status codes */
  32. #define S_netDrv_INVALID_NUMBER_OF_BYTES (M_netDrv | 1)
  33. #define S_netDrv_SEND_ERROR (M_netDrv | 2)
  34. #define S_netDrv_RECV_ERROR (M_netDrv | 3)
  35. #define S_netDrv_UNKNOWN_REQUEST (M_netDrv | 4)
  36. #define S_netDrv_BAD_SEEK (M_netDrv | 5)
  37. #define S_netDrv_SEEK_PAST_EOF_ERROR (M_netDrv | 6)
  38. #define S_netDrv_BAD_EOF_POSITION (M_netDrv | 7)
  39. #define S_netDrv_SEEK_FATAL_ERROR (M_netDrv | 8)
  40. #define S_netDrv_WRITE_ONLY_CANNOT_READ (M_netDrv | 9)
  41. #define S_netDrv_READ_ONLY_CANNOT_WRITE (M_netDrv | 10)
  42. #define S_netDrv_READ_ERROR (M_netDrv | 11)
  43. #define S_netDrv_WRITE_ERROR (M_netDrv | 12)
  44. #define S_netDrv_NO_SUCH_FILE_OR_DIR (M_netDrv | 13)
  45. #define S_netDrv_PERMISSION_DENIED (M_netDrv | 14)
  46. #define S_netDrv_IS_A_DIRECTORY (M_netDrv | 15)
  47. #define S_netDrv_UNIX_FILE_ERROR (M_netDrv | 16)
  48. #define S_netDrv_ILLEGAL_VALUE (M_netDrv | 17)
  49. /* flags for debuging */
  50. #define NETLIB_DEBUG_OFF 0
  51. #define NETLIB_DEBUG_ERRORS 1
  52. #define NETLIB_DEBUG_ALL 2
  53. /* function declarations */
  54. #if defined(__STDC__) || defined(__cplusplus)
  55. extern STATUS   netDrvDebugLevelSet (UINT32 debugLevel);
  56. extern STATUS  netDevCreate (char *devName, char *host, int protocol);
  57. extern STATUS  netDrv (void);
  58. extern STATUS   netLsByName (char *dirName);
  59. #else /* __STDC__ */
  60. extern STATUS   netDrvDebugLevelSet ();
  61. extern STATUS  netDevCreate ();
  62. extern STATUS  netDrv ();
  63. extern STATUS   netLsByName ();
  64. #endif /* __STDC__ */
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68. #endif /* __INCnetDrvh */