mcfs.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /**
  2. * \file
  3. * \brief Header: Midnight Commander file system
  4. */
  5. #ifndef MC_VFS_MCFS_H
  6. #define MC_VFS_MCFS_H
  7. #define mcserver_port 9876
  8. /* This number was registered for program "mcfs" with rpc@Sun.COM */
  9. #define RPC_PROGNUM 300516
  10. #define RPC_PROGVER 2
  11. /* this constants must be kept in sync with mcserv.c commands */
  12. /* They are the messages sent on the link connection */
  13. enum {
  14. MC_OPEN,
  15. MC_CLOSE,
  16. MC_READ,
  17. MC_WRITE,
  18. MC_OPENDIR,
  19. MC_READDIR,
  20. MC_CLOSEDIR,
  21. MC_STAT,
  22. MC_LSTAT,
  23. MC_FSTAT,
  24. MC_CHMOD,
  25. MC_CHOWN,
  26. MC_READLINK,
  27. MC_UNLINK,
  28. MC_RENAME,
  29. MC_CHDIR,
  30. MC_LSEEK,
  31. MC_RMDIR,
  32. MC_SYMLINK,
  33. MC_MKNOD,
  34. MC_MKDIR,
  35. MC_LINK,
  36. MC_GETHOME,
  37. MC_GETUPDIR,
  38. /* Control commands */
  39. MC_LOGIN,
  40. MC_QUIT,
  41. MC_UTIME, /* it has to go here for compatibility with old
  42. servers/clients. sigh ... */
  43. MC_INVALID_PASS = 0x1000,
  44. MC_NEED_PASSWORD,
  45. MC_LOGINOK,
  46. MC_VERSION_OK,
  47. MC_VERSION_MISMATCH,
  48. MC_PASS
  49. };
  50. extern void init_mcfs (void);
  51. extern void tcp_invalidate_socket (int);
  52. #endif