summaryrefslogtreecommitdiff
path: root/sys/src/cmd/aux/9pcon.c
AgeCommit message (Collapse)Author
2022-09-09aux/9pcon: styleJacob Moody
2022-09-099pcon: add support for Rerror in assert modeMichael Forney
This is useful for checking error behavior of 9p servers.
2022-06-30aux/9pcon: add assert flagJacob Moody
2020-08-01pre-lib9p servers: fix incorrect Tversion handlingkvik
version(5) says: If the server does not understand the client's version string, it should respond with an Rversion message (not Rerror) with the version string the 7 characters ``unknown''. Pre-lib9p file servers -- all except cwfs(4) -- do return Rerror. lib9p(2) follows the above spec, although ignoring the next part concerning comparison after period-stripping. It assumes an Fcall.version starting with "9P" is correctly formed and returns the only supported version of the protocol, which seems alright. This patch brings pre-lib9p servers in accordance with the spec.
2016-07-24make error handling in 9p service loops consistentcinap_lenrek
when we get eof, stop the loop immidiately and do not rely on the read to eventually return an error. when convM2S() fails to decode the message, error out and stop the loop. there is no point in continuing.
2015-08-039pcon: use strtol() to parse integerscinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen