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

VxWorks

开发平台:

C/C++

  1. /* tftpdLib.h - vxWorks Trival File Transfer protocol header file */
  2. /* Copyright 1992-1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 02b,22sep92,rrr  added support for c++
  7. 02a,04jul92,jcf  cleaned up.
  8. 01b,26may92,rrr  the tree shuffle
  9.   -changed includes to have absolute path from h/
  10. 01a,06Feb92,jmm  written.
  11. */
  12. #ifndef __INCtftpdLibh
  13. #define __INCtftpdLibh
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #include "vwModNum.h"
  18. #include "lstLib.h"
  19. #include "ioLib.h"
  20. #include "netinet/in.h"
  21. #include "tftpLib.h"
  22. #if ((CPU_FAMILY==I960) && (defined __GNUC__))
  23. #pragma align 1                 /* tell gcc960 not to optimize alignments */
  24. #endif  /* CPU_FAMILY==I960 */
  25. typedef struct tftpd_dir
  26.     {
  27.     NODE node;
  28.     char dirName [MAX_FILENAME_LENGTH];
  29.     } TFTPD_DIR;
  30. #if ((CPU_FAMILY==I960) && (defined __GNUC__))
  31. #pragma align 0                 /* turn off alignment requirement */
  32. #endif  /* CPU_FAMILY==I960 */
  33. #if defined(__STDC__) || defined(__cplusplus)
  34. extern STATUS  tftpdInit (int stackSize, int nDirectories,
  35.    char ** directoryNames, BOOL noControl,
  36.    int maxConnections);
  37. extern STATUS  tftpdTask (int nDirectories, char ** directoryNames,
  38.    int maxConnections);
  39. extern STATUS  tftpdDirectoryAdd (char *fileName);
  40. extern STATUS  tftpdDirectoryRemove (char *fileName);
  41. #else /* __STDC__ */
  42. extern STATUS  tftpdInit ();
  43. extern STATUS  tftpdTask ();
  44. extern STATUS  tftpdDirectoryAdd ();
  45. extern STATUS  tftpdDirectoryRemove ();
  46. #endif /* __STDC__ */
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif /* __INCtftpdLibh */