mc.sh & mc.csh creation fixed...
[midnight-commander.git] / vfs / mcfsutil.h
blobb382ef874ad570fe8d70ff77eaf74c9ce96d0bbf
1 #ifndef __MCFSUTIL_H
2 #define __MCFSUTIL_H
4 /*
5 * FIXME: This protocol uses 32-bit integers for the communication.
6 * It is a problem on systems with large file support, which is now
7 * default. This means that lseek is broken unless --disable-largefile
8 * is used. 64-bit systems are probably broken even more.
9 */
11 enum {
12 RPC_END, /* End of RPC commands */
13 RPC_INT, /* Next argument is integer */
14 RPC_STRING, /* Next argument is a string */
15 RPC_BLOCK, /* Next argument is a len/block */
16 RPC_LIMITED_STRING /* same as STRING, but has a size limit */
19 int rpc_get (int sock, ...);
20 int rpc_send (int sock, ...);
21 int socket_read_block (int sock, char *dest, int len);
22 int socket_write_block (int sock, char *buffer, int len);
23 #endif /* !__MCFSUTIL_H */