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