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