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

VxWorks

开发平台:

C/C++

  1. /* shellLib.h - header for shell facilities */
  2. /* Copyright 1984 - 2002 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 02e,30apr02,elr  changed API for shellParserControl() and added shellLogin()
  7.            +fmk  added shellIsRemoteConnectedSet() and
  8.                  shellIsRemoteConnectedGet()
  9. 02d,14feb01,spm  merged from version 02d of tor2_0x branch (base 02c):
  10.                  added support for alternate command interpreter (SPR #5948)  
  11. 02c,22sep92,rrr  added support for c++
  12. 02b,16jul92,jcf  added variable declarations.
  13. 02a,04jul92,jcf  cleaned up.
  14. 01e,26may92,rrr  the tree shuffle
  15. 01d,04oct91,rrr  passed through the ansification filter
  16.   -changed VOID to void
  17.   -changed copyright notice
  18. 01c,05oct90,dnw  deleted private functions
  19. 01b,05oct90,shl  added ANSI function prototypes.
  20.                  made #endif ANSI style.
  21.                  added copyright notice.
  22. 01a,10aug90,dnw  written
  23. */
  24. #ifndef __INCshellLibh
  25. #define __INCshellLibh
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. /* variable declarations */
  30. extern char * shellTaskName;
  31. extern int shellTaskId;
  32. /* function declarations */
  33. #if defined(__STDC__) || defined(__cplusplus)
  34. extern BOOL  shellLock (BOOL request);
  35. extern STATUS  execute (char *line);
  36. extern STATUS  shellInit (int stackSize, int arg);
  37. extern void  shell (BOOL interactive);
  38. extern STATUS  shellParserControl (UINT32, UINT32, UINT32);
  39. extern void  shellHistory (int size);
  40. extern STATUS   shellLogin (int fd);
  41. extern void  shellLoginInstall (FUNCPTR logRtn, int logVar);
  42. extern void  shellLogout (void);
  43. extern void  shellLogoutInstall (FUNCPTR logRtn, int logVar);
  44. extern void  shellOrigStdSet (int which, int fd);
  45. extern void  shellPromptSet (char *newPrompt);
  46. extern void  shellRestart (BOOL staySecure);
  47. extern void  shellScriptAbort (void);
  48. extern void     shellIsRemoteConnectedSet (BOOL remoteConnection);
  49. extern BOOL     shellIsRemoteConnectedGet (void);
  50. #else /* __STDC__ */
  51. extern BOOL  shellLock ();
  52. extern STATUS  execute ();
  53. extern STATUS  shellInit ();
  54. extern void  shell ();
  55. extern STATUS  shellParserControl ();
  56. extern void  shellHistory ();
  57. extern STATUS   shellLogin ();
  58. extern void  shellLoginInstall ();
  59. extern void  shellLogout ();
  60. extern void  shellLogoutInstall ();
  61. extern void  shellOrigStdSet ();
  62. extern void  shellPromptSet ();
  63. extern void  shellRestart ();
  64. extern void  shellScriptAbort ();
  65. extern void     shellIsRemoteConnectedSet ();
  66. extern BOOL     shellIsRemoteConnectedGet ();
  67. #endif /* __STDC__ */
  68. #ifdef __cplusplus
  69. }
  70. #endif
  71. #endif /* __INCshellLibh */