Commit Briefs

Omar Polo

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.



Omar Polo

add a first draft of Twalk


Omar Polo

define QIDSIZE, it's handy


Omar Polo

add constants for Qid type


Omar Polo

initial Tversion handling


Omar Polo

bump MSIZE9P (max message size)


Omar Polo

define a handy HEADERSIZE

sizeof(struct np_msg_header) includes unwanted padding...


Omar Polo

add more useful constants


Omar Polo

fix bufferevent tls I/O on libevent2

port of telescope commit 1470eab31452d2fab50bc4965320dab7892b2ef3 original commit message: > on libevent2 we need to wrap evbuffer_add with > evbuffer_freeze/evbuffer_unfreeze. Not sure exactly why, probably > because we're doing some evbuffer_enable/disable/enable-again.


Omar Polo

s/SIMPLEQ_/STAILQ_/g

STAILQ_* macros seems to be more widespread than SIMPLEQ_*


Omar Polo

move MIN to header


Omar Polo

first stab at 9p


Omar Polo

add flags to listener; warn if missing auth_table

in the future we'll have also plain 9p, so mark the tls listeners with L_TLS and add the libtls machinery only in that case.


Omar Polo

use table for auth