Commits


add kamiftp, a scratch of an ftp-like program for 9p


fix kamirepl_SOURCES spotted by cage, thanks :)


split some code from kamirepl into 9pclib.c


count test starting from one


Topen implemented Implement Topen plus some basic testing. ORCLOSE (remove file when the fid is clunked) is mapped to O_CLOEXEC and tried to be honoured on fid_free. "vanilla" 9P2000 uses reads on directories to list the entries while 9P2000.L (and .U too possibly) introduces an explicit Treaddir. I'm planning to support 9P2000-style read-on-dir but not yet.


pass AM_CFLAGS to automake so we compile with warnings


initialize to -1 fid' fd


update qid and fid structs + docs I've finally made up my mind regarding the qid and fid handling. fids are fine as they currently are, I've just added some comments to don't forget the meaning of the iomode and fd fields. The values KFIO_W/R are new and will be soon used by the (soon to be added) Topen call. qids keep the current semantics, but loose some fields that I've added when I wasn't sure yet. To reiterate: a qid is a directory file descriptor plus an optional path. If path is empty, the qid refers to the directory, otherwise to that file in the current directory, c.f. openat(3). This makes implementing Topen easier: for instance, if fid1 and fid2 are backed by the same qid, a Topen on fid1 doesn't need to alter fid1->qid, and so fid2 is still fine. The reference counting on qids ensures that we end up closing all the directories fd.


include the ninepscript documentation in the distribution tarball


add ninepscript.5 manpage -- description of the language


fix val_trueish implementation consider to be true also strings and handle other integers.


publish some functions


add ninepscript.8 manpage -- our test runner


typo


pass flags to ninepscript