mcfs.h 1.0 KB

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