mcfs.h 922 B

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