fix for #188
[free-mc.git] / vfs / mcfsutil.h
blobdc0ece65635f6c8858c2e96dfed34d8299e5c862
1 #ifndef MC_VFS_MCFSUTIL_H
2 #define MC_VFS_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, const char *buffer, int len);
24 #endif