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

VxWorks

开发平台:

C/C++

  1. /* ptyDrv.h - header file for ptyDrv.c */
  2. /* Copyright 1984 - 2001 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01g,02nov01,brk  SPR65498 add SELECT functionality to master
  7. 01f,14feb01,spm  merged from version 01f of tor2_0_x branch (base 01e):
  8.                  added removal of pty device (SPR #28675)
  9. 01e,22sep92,rrr  added support for c++
  10. 01d,04jul92,jcf  cleaned up.
  11. 01c,26may92,rrr  the tree shuffle
  12. 01b,04oct91,rrr  passed through the ansification filter
  13.   -fixed #else and #endif
  14.   -changed copyright notice
  15. 01a,05oct90,shl created.
  16. */
  17. #ifndef __INCptyDrvh
  18. #define __INCptyDrvh
  19. #include "tyLib.h"
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. /* function declarations */
  24. #if defined(__STDC__) || defined(__cplusplus)
  25. extern STATUS  ptyDevCreate (char *name, int rdBufSize, int wrtBufSize);
  26. extern STATUS  ptyDevRemove (char *pName);
  27. extern STATUS  ptyDrv (void);
  28. #else /* __STDC__ */
  29. extern STATUS  ptyDevCreate ();
  30. extern STATUS  ptyDevRemove ();
  31. extern STATUS  ptyDrv ();
  32. #endif /* __STDC__ */
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. typedef struct /* PSEUDO_DEV */
  37.     {
  38.     TY_DEV tyDev;
  39.     DEV_HDR slaveDev;
  40.     SEMAPHORE masterReadSyncSem;
  41.     BOOL ateof;
  42.     SEL_WAKEUP_LIST masterSelWakeupList;
  43.     } PSEUDO_DEV;
  44. #endif /* __INCptyDrvh */