3 fversion \- initialize 9P connection and negotiate version
13 int fversion(int fd, int bufsize, char *version, int nversion)
17 is used to initialize the 9P connection represented by
19 and to negotiate the version of the protocol to be used.
23 determines the size of the I/O buffer used to stage 9P requests to the server,
24 subject to the constraints of the server itself.
27 is a text string that represents the highest version level the protocol will support.
30 will be overwritten with the negotiated, possibly lower, version of the protocol.
33 is the length of the returned version string; the value of
35 is therefore not the length of the version string presented to the system call,
36 but the total length of the buffer to accept the final result, in the manner of a read system call.
38 Default values of zero for
40 and the empty string for
42 will negotiate sensible defaults for the connection.
47 must still be large enough to receive the returned version string.
49 The interpretation of the version strings is defined in
54 directly; usually the default negotiation performed
65 .B /sys/src/libc/9syscall