summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-11-23faces: add 9front.org/unknown (thanks qrstuv)cinap_lenrek
2013-11-23ndb/dns: ignore refused (5) error repliescinap_lenrek
2013-11-23removing (outdated) drawtermcinap_lenrek
drawterm is much better maintained by russ cox, so removing this outdated copy. for a more recent version, go to: http://swtch.com/drawterm/
2013-11-23kbdfs: add esc1+shift and esc1+ctrl pages (see sources kbmap-uk-weird patch)cinap_lenrek
Add pages for esc1+shift and esc1+ctrl - some UK USB keyboards (Dell) and it seems some German ones: https://groups.google.com/forum/#!topic/comp.os.plan9/ycok6NTCWCg seem to generate an esc1 + code scancode combination for the pipe/backslash key. Seems like overkill to add two whole pages for just two keys, but there again RAM is cheap these days. Probably should take the changes across to omap/kbd.c (and by extension bcm/kbd.c) but the changes are trivial.
2013-11-22kernel: more kproc pexit() and sleep error handlingcinap_lenrek
2013-11-22pc kernel: kproc error and exitcinap_lenrek
catch the error() that can be thrown by sleep() and tsleep() in kprocs. add missing pexit() calls. always set the freemem argument to pexit() from kproc otherwise the process gets added to the broken list.
2013-11-22kernel: kproc error and exitcinap_lenrek
catch the error() that can be thrown by sleep() and tsleep() in kprocs. add missing pexit() calls. always set the freemem argument to pexit() from kproc otherwise the process gets added to the broken list.
2013-11-22acme: fix arrow key oddity (thanks mark van atten and erik)cinap_lenrek
from 9atom/acmearrowfun patch: reported by mark van atten In Plan 9 acme, if you type {} then go back and type text between the brackets {Curiouser and curiouser!} the right arrow is blocked when you want to go over the closing bracket to continue typing to its right. (If you first go to the left, and then back to the right, it works.) Same for the other brackets: [ ], ( ), < >. noted that brackets are not necessary. same behavior with any character. fix is to textcommit before moving.
2013-11-20rio -b: make lighttitlecol darkerstanley lieber
2013-11-20fortunes: That's the process.stanley lieber
2013-11-20ndb/dns: filter dns answers avoiding cache poisoningcinap_lenrek
only cache what we asked for or need to resolve the query. filter out everything else.
2013-11-17ndb/dns: another attempt...cinap_lenrek
we have to fail the whole query that got no cached nameservers and nameservers are looping, not just omit the looping nameserver. issuequery() will refresh nameserver info for the domain when recursing up.
2013-11-16ndb/dns: detect query loopscinap_lenrek
never try to resolve a nameserver address when that nameserver is in the set of nameservers already being queried. this situation can happen when the Ta and Taaaa RR's expire, but the Tns records are still in the cache so there is no usable nameserver but they still refer to each another.
2013-11-15ndb/dns: various changescinap_lenrek
stop absolute/relative dual use of RR.ttl. now RR.ttl is *always* the *relative* ttl value. we derive absolute timeout in RR.expire. remove unused lookuptime field in DN. replace refs and keep with mark field in DN. we do not care about the number of references. only *iff* it is referenced, so use a single bit for that (bit 0). for keep, we use bit 1. remove dolock parameter in dnagenever(), it is not needed. we always need to lock. mark local dns servers and domains as never to be aged. the keeper bit is *just* a cache optimization, preventing the domain and the domains it points to from being flushed. it should not be used as a write protect bit in rrattach() for preventing spoofing as it will prevent updates of say, cname domains. remove "removing spam ..." message. these are usualy just hints, so normal. still, remove the hint as we currently do no check if the nameserver has authority over the cname domain. remove "mydnsquery: trying to send to myself (%s); bzzzt" message. this can happen when myaddr() fails for other reasons. myaddr() will print error for us anyway.
2013-11-13ndb/dns: case sensitive ndb attributes, Domlen consistency, dblookup() ↵cinap_lenrek
inplace lower case conversion, cleanups ndb keys are strictly case sensitive, so consitently use strcmp() when comparing attribute keys. dblookup() used to lower case convert its name argument inplace to match domain/sys name in ndb. better to do the convesion in its own buffer and only read from the name argument. always use cistrcmp() when comparing DN.name. the Domlen constant denotes the size of the buffer including the null terminator. consistently use it as such. have to hold dnlock in freearea() before reading list head pointer.
2013-11-12/lib/roa: fix blank line at the endcinap_lenrek
2013-11-12kernel: handle memimageinit() errorcinap_lenrek
2013-11-12libmemdraw: change memimageinit() to return integer error (for kernel), ↵cinap_lenrek
minor cleanups
2013-11-12devsd: fix scsi emulation for disks bigger than 4 billion sectors (from erik ↵cinap_lenrek
quanstros 9atom) for read capacity (10 (0x25) if we have more than 4 billion sectors, we must not return nsectors % (1<<32), we must return 0xffffffff.
2013-11-10libjson: don't perform chartorune in getch() when char is null terminator, ↵BurnZeZ
and remove empty string check added last commit
2013-11-10libjson: check for empty string in jsonparse()BurnZeZ
2013-11-10sdide: add pci did for VIA VT6415 PATA IDE controllerBurnZeZ
2013-11-10arch(3): englishstanley lieber
2013-11-10arch(3), aml(2): document /dev/acpitbls filecinap_lenrek
2013-11-10ndb/common: add ipv6 addresses of root name serverscinap_lenrek
2013-11-10aml(2): tabelize by function, move hardware linkage on separate pagecinap_lenrek
2013-11-08mergecinap_lenrek
2013-11-08kernel: make image cache not hold onto the channel, remove nocache flagcinap_lenrek
the image cache should not hold onto the text file channel when not neccesary. now, the image keeps track of the number of page cache references in Image.pgref. if the number of page cache references and Image.ref are equal, this means all the references to this image are from the page cache. so no segments are using this image. in that case, we can close the channel, but keep the Image in the hash table. when attachimage() finds our image, it will check if Image.c is nil and reattach the channel to the image before it is used. the Image.nocache flag isnt needed anymore.
2013-11-08/rc/bin/": fix typostanley lieber
2013-11-08acidleak: show free blocks as free (leak -b)cinap_lenrek
2013-11-07fortunes: that's greatstanley lieber
2013-11-07/rc/bin/", /rc/bin/"": handle the venerable ; promptstanley lieber
2013-11-06mergecinap_lenrek
2013-11-06mp3dec: fix volume for mp3deccinap_lenrek
the libmad samples need to be scaled properly. the previous assumption was that it is 32 bits, but it really is MAD_F_FRACTBITS + sign bit and rest used for overflow. thanks eekee!
2013-11-06synchronize ape's vfprintf with libstdiomischief
in ape's vfprintf we don't check if the file we're writing is actually a string buffer, resulting in a return of -1, when we should actually return the number of bytes that would be written.
2013-11-05mergecinap_lenrek
2013-11-05rio: eleminate temporary allocations before frinsert() and in namecomplete()cinap_lenrek
frinsert() shouldnt modify the runes passed and the buffer isnt going to be modified my us during the call so removing the temporary copies. namecomplete() makes utf-8 copies of the rune strings so theres no need to copy the runes.
2013-11-03fortunes: AFTER READ THE PAGE YOU UNDRSTAND WHAT IM TALKING TO YOU !stanley lieber
2013-11-03aml(2): englishstanley lieber
2013-11-04aml(2): fix amldelay() decscription. it takes microseconds, not milliseconds.cinap_lenrek
2013-11-03add aml(2) manual pagecinap_lenrek
2013-11-03rio: do backspace \b processing inplace avoiding buffer allocationcinap_lenrek
2013-11-03rio: cleanup and error handlingcinap_lenrek
2013-11-02rio: huge simplification of flush handlingcinap_lenrek
xfidflush() now uses a simpler way to flush another xfid. when we can send to Xfid.c channel, we know that the xfid is completed. so all xfidflush() needs todo is to do an alt sending to both Xfid.c and Xfid.flushc. once the send to Xfid.c succeeds, we know the xfid is gone and we can respond to the flush request. theres no need to keep track of flush state anymore. so Xfid.active and Xfid.flushing can be removed. note, that it is ok to respond normally to a currently flushed request.
2013-11-01rio: add sanity check in xfidallocthread()cinap_lenrek
2013-11-01rio: enforce flush reply ordering for all xfidscinap_lenrek
flushing isnt optional for concurrently handled requests. we need to ensure that Rflush is replied *after* the origianl request. so we assign the flushtag for *every* xfid in xfidctl(), and filsysrespond() checks if the xfid was flushed *after* replying and wakes up the flushing xfid.
2013-11-01rio: properly handle follow up flushes (fixes unexpected reply tag)cinap_lenrek
when multiple flushes are send, they need to be replied in order. we ensure this by having the flush xfid taking over the flushtag (synchronized with a new fs->csyncflush channel) so the next flush will flush the previous flush.
2013-11-01make auto negotiation work on 82562et (thanks mischief!)cinap_lenrek
the diver used to skip auto negotiation when auto-negotiation enable (bit 12 in command register) was clear. setting the bit now, which makes auto negotiation work. we skip auto negotiation only when it was already enabled and status regiser indicates completion (bit 9).
2013-10-31fix format compiler warningcinap_lenrek
2013-10-31kernel: add support for multiboot memory mapcinap_lenrek